zk.load('zkmax',function(){if(zk._p=zkpi('clientbind'))try{
/*! For license information please see index.js.LICENSE.txt */
(function(){"use strict";var __webpack_modules__={1319:function(e,n){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])},t(e,n)};n.Z=function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i),e.prototype._$super="$subclass$"==e.name&&n.prototype._$super?n.prototype._$super:n.prototype}},1842:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.ExecutionResolver=n.BindELResolver=n.RemoteObject=void 0;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n}(zk.Object);n.RemoteObject=o;var a=function(e){function n(n,t){var i=e.call(this)||this;return i.context=n,i.comp=t,i.resolvers=[new s(i.comp)],i}var t;return i(n,e),t=n,n.prototype.resolve=function(e,n){var t;if("self"==n)return this.comp;var i=this.context[n];if(null!=i)return i;var r=this.comp instanceof clientbind.ShadowInfo?null===(t=this.comp.getHost())||void 0===t?void 0:t._getBinder(!0):this.comp._getBinder(!0);if((null==r?void 0:r.vmName)==n)return r.vm[n];if((null==r?void 0:r._vmsg)==n)return clientbind.RemoteEL;for(var o=0,a=this.resolvers;o<a.length;o++){var s=a[o].resolve(e,n);if(null!=s)return s}},n.init=function(e,n){return new t(e,n)},t=r([zk.WrapClass("clientbind.BindELResolver")],n)}(zk.Object);n.BindELResolver=a;var s=function(e){function n(n){var t=e.call(this)||this;return t.self=n,t}return i(n,e),n.prototype.resolve=function(e,t){switch(t){case"componentScope":case"self":return this.self;case"desktopScope":case"desktop":return this.self.desktop;case"pageScope":case"page":return this.self.getPage();case"spaceOwner":return this.self.$o();default:if(n.isRemoteObject(t))return new o}return this.getAttributeOrFellow(e,this.self,this.self,t)},n.isRemoteObject=function(e){switch(e){case"arg":case"execution":case"requestScope":case"sessionScope":case"session":case"spaceScope":return!0}return!1},n.getExtraAttrs=function(e,n,t){var i=void 0,r=n.getExtraAttrs();if(r&&Object.hasOwnProperty.call(r,t)&&null!=(i=r[t])){if(i instanceof clientbind.ReferenceBinding){var o=i.resolve(),a=o[0],s=o[1],l=e;return l.ref=s,l.refExpr=a,s}return i}},n.getShadowVariable=function(e,n,t){var i=this.getExtraAttrs(e,n,t);return void 0!==i?i:Object.hasOwnProperty.call(n,t)||Object.hasOwnProperty.call(n,"_"+t)?n.get(t):n.parent?this.getShadowVariable(e,n.parent,t):void 0},n.findNearestShadow=function(e,n){for(var t=e.firstChild;t;t=t.nextSibling)if(t instanceof clientbind.ShadowInfo)switch(t.inRange(t,n)){case"IN_RANGE":case"FIRST":case"LAST":return this.findNearestShadow(t,n)}return e},n.prototype.getAttributeOrFellow=function(e,t,i,r){var o;if(t!=i){var a=t.getShadowRoots();if(null!=a)for(var s=Zone.current._properties,l=s.DistributedIndexInfo,c=0,u=a;c<u.length;c++){var d=u[c];try{switch(s.DistributedIndexInfo=null!==(o=d.getIndexCacheMap())&&void 0!==o?o:new Map,d.inRange(d,i)){case"FIRST":case"LAST":case"IN_RANGE":d=n.findNearestShadow(d,i);var _=n.getShadowVariable(e,d,r);if(null!=_)return _;break;case"UNKNOWN":for(var p=d.firstChild;p instanceof clientbind.ShadowInfo&&!p.getFirstInsertion();)p=p.firstChild;for(;p;p=p.nextSibling){var h=p,f=h.fillUpIndexMap(h.getFirstInsertion(),h.getLastInsertion()),g=h.queryIntersectedShadowIfAny(i.getChildIndex(),f);if(g){var v=n.getShadowVariable(e,g,r);if(null!=v)return v}}}}finally{s.DistributedIndexInfo=l}}}var m=n.getExtraAttrs(e,t,r);if(void 0!==m)return m;if(t._fellows&&null!=(m=t.$f(r)))return m;var b=t instanceof clientbind.ShadowInfo?t.getHost():t;if(null==b?void 0:b.$ZKBINDER$){var w=b._getBinder(!0);if((null==w?void 0:w.vmName)==r)return w.vm[r]}if(t.parent){if(!(t.parent instanceof zk.Desktop))return this.getAttributeOrFellow(e,t.parent,t,r)}else if(t instanceof clientbind.ShadowInfo)return this.getAttributeOrFellow(e,t.getHost(),t.getHost(),r)},n}(zk.Object);n.ExecutionResolver=s,clientbind.BindELResolver=a,clientbind.RemoteObject=o,clientbind.ExecutionResolver=s,window.clientbind||(window.clientbind={}),window.clientbind.BindELResolver||(window.clientbind.BindELResolver={}),window.clientbind.BindELResolver._={RemoteObject:o,BindELResolver:a,ExecutionResolver:s}},1617:function(e,n,t){var i=t(1319).Z,r=t(655)._T,o=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.isObjectEquals=n.isObject=n.Binder=n.ReferenceBinding=void 0;var a="form",s="$formId$",l="_$$",c="children",u="model",d="value",_=l+d,p="before",h="after",f="LOAD_EVENT",g="SAVE_EVENT",v="LOAD_REPLACEMENT",m="LOAD_TYPE",b="SAVE_REPLACEMENT",w="NotifyChange",y="$ubc$",k="$ubd$",E="$vbc$",O="$vbd$",T="$vbp$",S="$vbcp$",I="$vsfb$",x="$rec$",A="$rcc$",C="$rca$",P="$rcvmc$",L="$fsc$",D="$fdf$",M="$fdp$",R="Status",N="$id$",B="$im$",$="$lc$",j="$sel$",z="totalSize",U="$cevt$",K="$cta$",W="$ZKBINDER$",V="$imclz$",q=function(){function e(e){this._resolver=e}return e.prototype.resolve=function(){return this._resolver()},e}();function F(e,n){return e?e[n]:void 0}function Z(e){return"__".concat(e,"__")}n.ReferenceBinding=q;var H=function(e){function n(n,t){var i=e.call(this)||this;mobx.configure({disableErrorBoundaries:!0}),i.view=n,Object.hasOwnProperty.call(t,V)&&(i._importClz=t[V],delete t[V]),i.vmName=Object.keys(t)[0];var r=t[i.vmName][N],o=!1;i.children=[];for(var a=n.parent;a;){if(a.$binder_&&(i.parent=a.$binder_,i.parent.children.push(i),!o)){var s=i.parent.vm;if(s){var l=s[i.parent.vmName],c=[];i._collectAllBeanInfoByUid(c,l,r,l,"."),c.length>0&&(o=!0,t[i.vmName]=c[0].b)}}a=a.parent}return i.vm=mobx.observable(i._prepareVmData(t)),i._bindings=new Map,i._formIds=new Map,i._assocFormSaveBindings=new Map,i._commandValidations=new Map,i._beforeLoad=new Map,i._beforeSave=new Map,i._afterLoad=new Map,i._afterSave=new Map,n[W]=!0,i}var t;return i(n,e),t=n,n.prototype._prepareVmData=function(e){if(G(e)){if(mobx.isObservable(e))return e;var n=void 0,t=function(t){var r;if(t==N)return"continue";var o=e[t];if(null==o)return"continue";if(t==$){var a=i._prepareVmData(o);(r={})[$]=a,r[Symbol.iterator]=function(){return Object.values(a)[Symbol.iterator]()},r.forEach=function(e){return this[$].forEach(e)},r.includes=function(e){return this[$].includes(e)},r.map=function(e){return this[$].map(e)},r.$equals=function(e){return this[$].$equals(e)},r.length=function(e){return this[$].length},n=r}else e[t]=i._prepareVmData(o)},i=this;for(var r in e)t(r);null!=n&&(e=Object.assign({},e,n))}return e},n.prototype.getClientBinder=function(e){var n;return null!==(n=null==e?void 0:e.$binder())&&void 0!==n?n:this.view.$binder()},n.prototype.addBinding=function(e){this._bindings.set(e.$oid,e)},n.prototype.removeBinding=function(e){this._bindings.delete(e.$oid)&&this.clearBinding(e)},n.prototype.resolve=function(e,n){return this.doEvalExpression(this.compileExpression(e),{},n)},n.prototype.doEvalExpression=function(e,n,t){var i=clientbind.BindELResolver.init(n,t);return e.eval(i)},n.prototype.compileExpression=function(e){return SpelExpressionEvaluator.compile(e)},n.prototype.isRemoteExpression=function(e){for(var n=this,t=[e._compiledExpression];t.length;){var i=t.shift();if("method"==i.getType()){var r=i.getRaw(),o=r.methodName,a=r.args,s=!1;switch(o){case"get":1===a.length&&"number"===a[0].getType()&&(s=!0);break;case"size":s=!0}if(s)continue;return!0}if("op-eq"==i.getType())return!0;if(null!=i.getChildren()&&t.push.apply(t,i.getChildren()),"property"==i.getType()){if(this._vmsg&&i.getRaw()===this._vmsg)return this.$vmsgs&&(mobx.runInAction((function(){n.$vmsgs.set(e.expression[0],!1)})),this.$vmsgs.get(e.expression[0])),!0;if(this._importClz&&this._importClz.includes(i.getRaw()))return!0;if(clientbind.ExecutionResolver.isRemoteObject(i.getRaw())&&t[0]&&"property"==t[0].getType())return!0}}return!1},n.prototype.toRemoteExpression=function(e,n,t){var i=clientbind.BindELResolver.init(n,t);return new clientbind.RemoteExpression(e,i).evaluate()},n.prototype.setValidationMessage=function(e){var n=this;return this._vmsg=e,this.$vmsgs=mobx.observable(new Map,{deep:!1}),this.getClientBinder().after(x,(function(e){var t=Array.from(n.$vmsgs.keys());mobx.runInAction((function(){t.forEach((function(e){n.$vmsgs.set(e,!0)}))}))})),this},n.prototype.clearBinding=function(e){var n=e.getAtInit(),t=e.getAtLoad(),i=e.getAtSave(),o=e.getAtCommand(),a=e.getAtGlobalCommand();if(null!=n){var s=n,l=c,d=s[l],_=u,p=s[_],h=r(s,[l+"",_+""]);for(var f in d&&this.clearChildrenBinding(e,d),p&&this.clearModelBinding(e,p),h)this.clearPropertyInit(e,f,h[f])}if(null!=t){var g=t,v=c,m=(d=g[v],u);for(var f in p=g[m],h=r(g,[v+"",m+""]),d&&this.clearChildrenBinding(e,d),p&&this.clearModelBinding(e,p),h)this.clearPropertyLoad(e,f,h[f])}if(null!=i)for(var f in i)for(var b=0,w=i[f];b<w.length;b++){var y=w[b];this.clearPropertySave(e,f,y)}if(null!=o)for(var f in o)this.clearCommandBinding(e,f,o[f]);if(null!=a)for(var f in a)this.clearGlobalCommandBinding(e,f,a[f]);this.removeFormAssociatedSaveBindings(e)},n.lookupAssociatedFormComponent=function(e,n){void 0===n&&(n=!1);for(var t=e;null!=t;){if(t[s])return t;t=t.parent}if(!n)throw new Error("Not found Form Component")},n.getJsonEventData=function(e){var n=e.name,t=e.domEvent,i={};if(zk.copy(i,{command:n}),e.data){var r=[];e.data=zAu._deconstructPacket(e.data,r),zk.copy(i,jq.parseJSON(zAu.toJSON(e.target,e.data))),r.length&&zAu._constructPacket(i,r)}if(t){var o=t.originalEvent,a=o.type;"undefined"!=typeof DragEvent&&o instanceof DragEvent&&"drop"==a?zk.copy(i,{eventType:"DropEvent"}):o instanceof MouseEvent?zk.copy(i,{eventType:"MouseEvent"}):o instanceof KeyboardEvent?zk.copy(i,{eventType:"KeyboardEvent"}):"change"==a||"input"==a?"checkbox"==o.target.type?zk.copy(i,{eventType:"CheckEvent"}):zk.copy(i,{eventType:"InputEvent"}):"select"==a&&zk.copy(i,{eventType:"SelectEvent"})}else"onChanging"==n&&zk.copy(i,{eventType:"InputEvent"});return i.uuid=e.target.uuid,i},n.prototype.addFormAssociatedSaveBinding=function(e,n){var i=t.lookupAssociatedFormComponent(e);if(i){var r=this._assocFormSaveBindings.get(i.uuid);null==r&&(r=new Set,this._assocFormSaveBindings.set(i.uuid,r)),n.comp=e,r.add(n)}},n.prototype.getFormAssociatedSaveBindings=function(e){var n=this._assocFormSaveBindings.get(e.uuid);return null==n?new Set:n},n.prototype.removeFormAssociatedSaveBindings=function(e){var n=t.lookupAssociatedFormComponent(e,!0);if(n){var i=this._assocFormSaveBindings.get(n.uuid);if(i){var r=Array.from(i.values()).filter((function(n){return n.comp==e}));if(r.length)return r.forEach((function(e){return i.delete(e)})),!0}}return!1},n.prototype.processBinding=function(e){var n=this,t=Zone.current.get("ProcessBinding");t instanceof Map&&t.set(e,!0);var i=e.getAtInit(),o=e.getAtLoad(),s=e.getAtTemplate(),l=e.getAtSave(),d=e.getAtConverter(),_=e.getAtValidator(),p=e.getAtCommand(),h=e.getAtGlobalCommand(),f=e.getAtShadowElements();if(null!=i){var g=i,v=c,m=g[v],b=u,w=g[b],y=a,k=g[y],E=r(g,[v+"",b+"",y+""]);if(m){var O=F(d,c),T=null!=s?F(s,c):void 0;this.processChildrenBinding(e,m[0],T,O,!0)}else w&&(O=F(d,u),T=null!=s?F(s,u):void 0,this.processModelBinding(e,w[0],T,O,!0));for(var S in E){O=F(d,S);for(var I=0,x=E[S];I<x.length;I++){var A=x[I];this.processPropertyInit(e,S,A,O)}}}if(null!=o){var C=o,P=c,L=(m=C[P],u),D=(w=C[L],a);for(var S in k=C[D],E=r(C,[P+"",L+"",D+""]),m?(O=F(d,c),T=null!=s?F(s,c):void 0,this.processChildrenBinding(e,m[0],T,O,!1)):w&&(O=F(d,u),T=null!=s?F(s,u):void 0,this.processModelBinding(e,w[0],T,O,!1)),E){O=F(d,S);for(var M=0,R=E[S];M<R.length;M++)A=R[M],this.processPropertyLoad(e,S,A,O)}}if(null!=l){var N=l,B=a;if(k=N[B],E=r(N,[B+""]),!k)for(var S in E){O=F(d,S);for(var $=F(_,S),j=0,z=E[S];j<z.length;j++)A=z[j],this.processPropertySave(e,S,A,O,$)}}if(null!=p)for(var S in p)this.processCommandBinding(e,S,p[S]);if(null!=h)for(var S in h)this.processGlobalCommandBinding(e,S,h[S]);null!=f&&f.forEach((function(e){n.processBinding(e),e.doBindingReady()})),e.markBindingReady()},n.prototype.processBindings=function(){for(var e=this,n=[],t=[],i=[],r=0,o=Array.from(this._bindings.values());r<o.length;r++){var s=o[r];s.isBindingReady()||(null!=s.getAtRef()?n.unshift(s):null!=s.getAtId()&&t.unshift(s),i.unshift(s))}for(var l=0,c=t;l<c.length;l++){var u=(p=c[l]).getAtId();this.processFormBinding(p,u[a])}for(var d=0,_=n;d<_.length;d++){var p,h=(p=_[d]).getAtRef();for(var f in h)this.processReferenceBinding(p,f,h[f])}var g=new Map;Zone.current.fork({name:"ProcessBinding",properties:{ProcessBinding:g}}).run((function(){for(var n=0,t=i;n<t.length;n++){var r=t[n];(r instanceof clientbind.ShadowInfo||r._getBinder(!0))&&!g.has(r)&&e.processBinding(r)}}))},n.prototype.processWidgetBinding=function(e,n){void 0===n&&(n=!0);var t=e.getAtRef();if(null!=e.getAtRef())for(var i in t)this.processReferenceBinding(e,i,t[i]);var r=e.getAtId();r&&r[a]&&this.processFormBinding(e,r[a]),e.hasBinding&&(n&&this.addBinding(e),this.processBinding(e))},n.prototype.clearCommandBinding=function(e,n,t){var i;e.unlisten(((i={})[n]=e[Z(n)],i))},n.prototype.processCommandBinding=function(e,n,i){var o,a=this,s=i,l=d,c=(s[l],_),u=s[c],p=r(s,[l+"",c+""]),h=Z(n);e[h]=function(n){n.data&&"onCheck"==n.data.commandMethod&&(n.checked=!!n.data[""]),n.stop();var r=a.evalParsedArguments(e,p,{event:n});u||(u=a.getOrCreateEvalExpression(i,d));var o=a.doEvalExpression(u,Object.assign({},r,{event:n}),e);o&&a.doCommandValidation(o).then((function(i){if(!i.includes(!1))return a.doBeforeSaves(o).then((function(i){if(i){a.doBeforeLoads(o);var s=jq.isEmptyObject(p)?{}:a.wrapWithBeanIdIfAny(r),l=[];for(var c in s)if(s[c]instanceof zk.Event)s[c]=t.getJsonEventData(s[c]);else if(s[c]&&"string"==typeof s[c])try{a.isRemoteExpression(a.compileExpression(s[c]))&&l.push(c)}catch(e){}l.length>0&&(s[C]=l);var u=[];for(var d in s)(mobx.isObservableObject(s[d])||a._isFormBean(s[d]))&&u.push(d);u.length&&(s[K]=u),s[U]=t.getJsonEventData(n),a.doUpdateAfterSaveValues(o),a.getClientBinder().thenCommand(o,s).then((function(t){u.length&&t&&mobx.runInAction((function(){var e=a._prepareVmData(t);for(var n in e){var i=s[n];if(mobx.isObservable(i))mobx.set(i,e[n]);else if(a._isFormBean(i)){var r=e[n],o=i.value;for(var l in r)l!==N&&(a._modifyFormBeanUid(r[l]),mobx.set(o,l,r[l]))}}})),a.doAfterSaves(o),a.doAfterLoads(o);var i=e[h+"globalCommand"];i&&i(n)}))}}))}))},"onCreate"===n?e[h](new zk.Event(e,n)):e.listen(((o={})[n]=e[h],o))},n.prototype.clearGlobalCommandBinding=function(e,n,t){var i;e.unlisten(((i={})[n]=e[Z(n)],i))},n.prototype.processGlobalCommandBinding=function(e,n,i){var o,a=this,s=i,l=d,c=(s[l],_),u=s[c],p=r(s,[l+"",c+""]),h=this.getClientBinder();u||(u=this.getOrCreateEvalExpression(i,d));var f=function(n){n.stop(),n.data&&"onCheck"==n.data.commandMethod&&(n.checked=!!n.data[""]);var i=a.evalParsedArguments(e,p,{event:n}),r=a.doEvalExpression(u,i,e);if(r){var o=[];for(var s in i)if(i[s]instanceof zk.Event)i[s]=t.getJsonEventData(i[s]);else if(i[s]&&"string"==typeof i[s])try{a.isRemoteExpression(a.compileExpression(i[s]))&&o.push(s)}catch(e){}o.length>0&&(i[C]=o),i[U]=t.getJsonEventData(n),h.globalCommand(r,i)}},g=e.getAtCommand(),v=Z(n);g&&g[n]?e[v+"globalCommand"]=f:e.listen(((o={})[n]=f,o))},n.prototype.getOrCreateEvalExpression=function(e,n){var t=e[l+n];return null==t&&(t=this.compileExpression(e[n]),e[l+n]=t,Object.defineProperty(e,l+n,{enumerable:!1})),t},n.prototype.evalParsedArguments=function(e,n,t,i){void 0===t&&(t={}),void 0===i&&(i=!1);var r={};if(Object.keys(n).length)for(var o in n)if(n[l+o]){var a=n[l+o];this.isRemoteExpression(a)?r[o]=this.toRemoteExpression(a,t,e):r[o]=this.doEvalExpression(a,t,e)}else{var s=n[o];if(s.length){if(i&&"string"==typeof s[0]&&s[0].startsWith("'")&&s[0].endsWith("'")){r[o]=s[0];continue}a=this.getOrCreateEvalExpression(n,o),this.isRemoteExpression(a)?r[o]=this.toRemoteExpression(a,t,e):r[o]=this.doEvalExpression(a,t,e)}else r[o]=n[o]}return r},n.prototype.wrapWithBeanIdIfAny=function(e){var n;if(G(e))for(var t in e)if("event"!=t&&e[t]){var i=e[t];if(i instanceof zk.Event)continue;i[N]?e[t]=((n={})[N]=i[N],n.value=i,n):Object.keys(i).length&&(i instanceof zk.Widget?e[t]=i.uuid:e[t]=this.wrapWithBeanIdIfAny(i))}return e},n.prototype.removeBeforeLoadBinding=function(e,n){var t=this._beforeLoad,i=t.get(e);null!=i&&(i.delete(n.uuid),0==i.size&&t.delete(e))},n.prototype.addBeforeLoadBinding=function(e,n,t){var i=this.initBeforeLoads(e),r=i.get(n.uuid);null==r?(r=[t],i.set(n.uuid,r)):r.push(t)},n.prototype.initBeforeLoads=function(e){var n=this._beforeLoad,t=n.get(e);return null==t&&(t=new Map,n.set(e,t)),t},n.prototype.getBeforeLoads=function(e){var n=this.initBeforeLoads(e);return Array.from(n.values()).reverse()},n.prototype.removeAfterLoadBinding=function(e,n){var t=this._afterLoad,i=t.get(e);null!=i&&(i.delete(n.uuid),0==i.size&&t.delete(e))},n.prototype.addAfterLoadBinding=function(e,n,t){var i=this.initAfterLoads(e),r=i.get(n.uuid);null==r?(r=[t],i.set(n.uuid,r)):r.push(t)},n.prototype.initAfterLoads=function(e){var n=this._afterLoad,t=n.get(e);return null==t&&(t=new Map,n.set(e,t)),t},n.prototype.getAfterLoads=function(e){var n=this.initAfterLoads(e);return Array.from(n.values()).reverse()},n.prototype.doCommandValidation=function(e){var n=[],t=[];return this.getBeforeSaves(e).forEach((function(e,n){for(var i=0,r=e;i<r.length;i++){var o=r[i];t.push(o.getProperty())}})),this.getAfterSaves(e).forEach((function(e,n){for(var i=0,r=e;i<r.length;i++){var o=r[i];t.push(o.getProperty())}})),this.getCommandValidations(e).forEach((function(e,i){e.forEach((function(e){n.push(e.validate(t))}))})),Promise.all(n)},n.prototype.doBeforeSaves=function(e){var n=[];return this.getBeforeSaves(e).forEach((function(e,n){e.forEach((function(e){return e.updateValue()}))})),this.getBeforeSaves(e).forEach((function(e,t){e.forEach((function(e){return n.push(e.save({}))}))})),Promise.all(n).then((function(e){for(var n=0,t=e;n<t.length;n++)if(!t[n])return!1;return!0}))},n.prototype.doBeforeLoads=function(e){this.getBeforeLoads(e).forEach((function(e,n){e.forEach((function(e){return e.load({})}))}))},n.prototype.doUpdateAfterSaveValues=function(e){this.getAfterSaves(e).forEach((function(e,n){e.forEach((function(e){return e.updateValue()}))}))},n.prototype.doAfterSaves=function(e){this.getAfterSaves(e).forEach((function(e,n){e.forEach((function(e){e.save({})}))}))},n.prototype.doAfterLoads=function(e){this.getAfterLoads(e).forEach((function(e,n){e.forEach((function(e){return e.load({})}))}))},n.prototype.removeCommandValidation=function(e,n){var t=this._commandValidations,i=t.get(e);null!=i&&(i.delete(n.uuid),0==i.size&&t.delete(e))},n.prototype.addCommandValidation=function(e,n,t){var i=this.initCommandValidations(e),r=i.get(n.uuid);null==r?(r=[t],i.set(n.uuid,r)):r.push(t)},n.prototype.initCommandValidations=function(e){var n=this._commandValidations,t=n.get(e);return null==t&&(t=new Map,n.set(e,t)),t},n.prototype.getCommandValidations=function(e){var n=this.initCommandValidations(e);return Array.from(n.values()).reverse()},n.prototype.removeBeforeSaveBinding=function(e,n){var t=this._beforeSave,i=t.get(e);null!=i&&(i.delete(n.uuid),0==i.size&&t.delete(e))},n.prototype.addBeforeSaveBinding=function(e,n,t){var i=this.initBeforeSaves(e),r=i.get(n.uuid);null==r?(r=[t],i.set(n.uuid,r)):r.unshift(t)},n.prototype.initBeforeSaves=function(e){var n=this._beforeSave,t=n.get(e);return null==t&&(t=new Map,n.set(e,t)),t},n.prototype.getBeforeSaves=function(e){var n=this.initBeforeSaves(e);return Array.from(n.values()).reverse()},n.prototype.removeAfterSaveBinding=function(e,n){var t=this._afterSave,i=t.get(e);null!=i&&(i.delete(n.uuid),0==i.size&&t.delete(e))},n.prototype.addAfterSaveBinding=function(e,n,t){var i=this.initAfterSaves(e),r=i.get(n.uuid);null==r?(r=[t],i.set(n.uuid,r)):r.unshift(t)},n.prototype.initAfterSaves=function(e){var n=this._afterSave,t=n.get(e);return null==t&&(t=new Map,n.set(e,t)),t},n.prototype.getAfterSaves=function(e){var n=this.initAfterSaves(e);return Array.from(n.values()).reverse()},n.prototype.clearChildrenBinding=function(e,n){var t=n,i=t[p],r=t[h];if(i||r){if(i)for(var o=0,a=i;o<a.length;o++){var s=a[o],l=this.resolve(s,e);this.removeBeforeLoadBinding(l,e)}if(r)for(var c=0,u=r;c<u.length;c++){var d=u[c];l=this.resolve(d,e),this.removeAfterLoadBinding(l,e)}}},n.prototype.processChildrenBinding=function(e,n,i,o,a){var s,l=this,u=n,f=d,g=u[f],v=_,m=u[v],b=p,w=u[b],y=h,k=u[y],E=r(u,[f+"",v+"",b+"",y+""]),O=c,T=this.compileExpression(g[0]),S=!m&&this.isRemoteExpression(T),I=!0,x=this.evalParsedArguments(e,E);S||m||(m=this.getOrCreateEvalExpression(n,d)),e.set("$MODEL_EL$",T);var C=function(n){var c,u;if(void 0===n&&(n=!1),!(S=S&&l.isRemoteExpression(T))&&(s=l.doEvalExpression(m,x,e),n)){var _=void 0;if(s&&Object.hasOwnProperty.call(s,N)?_=l.getClientBinder().thenCommand("$fbdc$",((c={})[N]=s[N],c)):mobx.untracked((function(){var n,t,i=m.expression,r=l.getBeanInfo(Array.isArray(i)?i[0]:i,e,x),o=r.bean[r.lastPart];if(o&&Object.hasOwnProperty.call(o,N))_=l.getClientBinder().thenCommand("$fbdc$",((n={})[N]=o[N],n));else{var a=r.bean[r.lastPart+N];a&&(_=l.getClientBinder().thenCommand("$fbdc$",((t={})[N]=a,t)))}})),null!=_)return void _.then((function(e){var n=e;n&&(n=l._prepareVmData(n)),n!=s&&(mobx.runInAction((function(){t.deepSync(s,n,!0)||l.updateVmData(".",e)})),C())}))}var p,h=mobx._isComputingDerivation(),f=function(){if(p||(p=l._prepareVmData(s)),"string"==typeof p||"function"!=typeof p[Symbol.iterator]&&"function"!=typeof p.forEach){var n=p;if(p=[],n.$map$){var r=[];for(var o in n)"$map$"!=o&&"$id$"!=o&&r.push({key:o,value:n[o]});p=r}else p.push(n)}var c,u=0,d=p.length,_=O;if("function"!=typeof p.forEach&&(p.forEach=p[$].forEach),!a||I||Object.hasOwnProperty.call(p,j)){I=!1;for(var g=e.firstChild;g;g=e.firstChild)l.removeBinding(g),e.removeChild(g);p.forEach((function(n){var r=clientbind.WidgetFactory.prepareForEachStatus(n,c,u,0,d-1,1,d);null!=i&&(h&&mobx.reaction((function(){return l.evalTemplateName(i,x,r,e)}),(function(n){t.debounceWithMicroTask(e,f)})),_=l.evalTemplateName(i,x,r,e));var o=function(n){var t=clientbind.WidgetFactory.lookupTemplate(e,n);if(null==t){if("children"!==n)return void zk.error("template not found: "+n);(t=new clientbind.TemplateInfo({name:"children",var:"each"})).setTemplateMeta([["zul.wgt.Label",{"@load":{value:[{value:["each"]}]}}]])}var i=clientbind.WidgetFactory.prepareTemplateEvalContext(e,l,r,t.getVar(),t.getStatus());clientbind.WidgetFactory.createWidgets(l,e,t.getTemplateMeta(),i,void 0)};_ instanceof Promise?_.then(o):o(_),u++,c=r}))}};if(S&&(S=l.isRemoteExpression(T)),o){var g=o,v=d,b=g[v],w=r(g,[v+""]);l.getClientBinder().thenCommand(A,(u={uuid:e.uuid},u[d]=s,u.cv=b[0],u.cvp=l._unwrapArrayValueFromObject(w),u)).then((function(n){p=n,e.$MODEL_SKIP_EL$=!0,f()}))}else S?l.fireRemoteCommand(e,{el:l.toRemoteExpression(T,x,e),uuid:e.uuid},(function(e){Zone.current.fork({name:"ProcessModel",properties:{ProcessModel:e}}).run((function(){p=e,f()}))})):t.debounceWithMicroTask(e,f)};if(w||k){if(w)for(var P=0,L=w;P<L.length;P++){var D=L[P],M=this.resolve(D,e),R=a?this.genLoadRunOnce(C,this.initBeforeLoads(M).get(e.uuid)):{load:function(){return C()}};this.addBeforeLoadBinding(M,e,R)}if(k)for(var B=0,z=k;B<z.length;B++){var U=z[B];M=this.resolve(U,e),R=a?this.genLoadRunOnce(C,this.initAfterLoads(M).get(e.uuid)):{load:function(){return C(!0)}},this.addAfterLoadBinding(M,e,R)}}else e.addDisposer(mobx.autorun((function(){C()})))},n.prototype.fireRemoteCommand=function(e,n,t){e.updateRemoteEvaluating(!0),this.getClientBinder().thenCommand(x,n).then((function(n){e.updateRemoteEvaluating(!1),t(n)}))},n.debounceWithMicroTask=function(e,n){null!=e._$dq?e._$dq++:(e._$dq=-1,n()),queueMicrotask((function(){e._$dq?e._$dq<0?delete e._$dq:e._$dq--:null!=e._$dq&&(delete e._$dq,n())}))},n.deepSync=function(e,n,t){if(void 0===t&&(t=!1),e===n)return!0;if(!mobx.isObservable(e))return!1;if(null!=e&&null!=n){var i=mobx.isObservable(e)?mobx.toJS(e):e;if(Object.hasOwnProperty.call(n,$)&&!Object.hasOwnProperty.call(n,N)){var r={},o={};if(this.getGroupsInfoIfAny(e,r),this.getGroupsInfoIfAny(n,o),Object.keys(r).length>0||Object.keys(o).length>0){for(var a in r)Object.hasOwnProperty.call(n,a)?(mobx.set(e,a,n[a]),delete o[a]):mobx.remove(e,a);if(Object.keys(o).length>0)for(var s in o)mobx.set(e,s,n[s])}Object.hasOwnProperty.call(e,z)&&Object.hasOwnProperty.call(n,z)&&(t?this.updateBeanSilently(e,z,n[z]):mobx.set(e,z,n[z])),n=n[$],Object.hasOwnProperty.call(e,$)&&(e=e[$],i=i[$])}if(Array.isArray(e)&&Array.isArray(n)||null!=n&&"string"!=typeof n&&Object.keys(n).length){Object.hasOwnProperty.call(e,$)&&!Object.hasOwnProperty.call(n,$)&&(e=e[$]);var l=!1;for(var c in n){var u=n[c];if(i[c]&&i[c][N]){if(null==u)t?this.updateBeanSilently(e,c,void 0):mobx.set(e,c,void 0),l=!0;else if(0==Object.keys(u).length)t?this.updateBeanSilently(e,c,u):mobx.set(e,c,u),l=!0;else for(var d in u)JSON.stringify(i[c][d])!=JSON.stringify(u[d])&&(t?this.updateBeanSilently(e[c],d,u[d]):mobx.set(e[c],d,u[d]),l=!0);if(Array.isArray(u))for(var _=u.length,p=e[c].length-_;p-- >0;)t?delete e[_]:mobx.remove(e,_);else if(G(u)){var h=e[c];if(Object.keys(u).length<Object.keys(h).length)for(var f in h)Object.hasOwnProperty.call(u,f)||(t?delete h[f]:mobx.remove(h,f))}}else Array.isArray(e)&&c.endsWith(N)||Object.hasOwnProperty.call(e,c)&&zUtl.isEqualObject(e[c],u)||(t?this.updateBeanSilently(e,c,u):mobx.set(e,c,u),l=!0)}if(Array.isArray(n)){var g=n.length;for(p=e.length-g;p-- >0;)t?delete e[g]:mobx.remove(e,g)}else if(G(n)&&e&&"object"==typeof e){if(Object.hasOwnProperty.call(e,N)&&!Object.hasOwnProperty.call(n,N)&&Object.hasOwnProperty.call(e,$)&&Object.hasOwnProperty.call(n,$))return l;if(Object.keys(n).length<Object.keys(e).length)for(var v in e)if(!Object.hasOwnProperty.call(n,v)){if(v==N)continue;t?delete e[v]:mobx.remove(e,v)}}return l}}return!1},n.getGroupsInfoIfAny=function(e,n){for(var t in e)t.startsWith("$")&&(t.match(/\$\d+\$/)||t.match(/\$\d+\$\$open\$/))&&(n[t]=e[t])},n.updateBeanSilently=function(e,n,t){var i=Array.isArray(e),r=i&&"number"==typeof n&&n>=e.length?void 0:e[n];if(Array.isArray(r)&&Array.isArray(t))for(var o=r.length,a=t.length,s=0;s<o||s<a;s++)if(s<a){if(s<o&&zUtl.isEqualObject(r[s],t[s]))continue;this.updateBeanSilently(r,s,t[s])}else delete r[s];else{var l=0,c=i?e[mobx.$mobx].atom_:e[mobx.$mobx].values_.get(n);try{G(c)&&(l=c.lowestObserverState_,c.lowestObserverState_=2),e[n]=t}finally{G(c)&&(c.lowestObserverState_=l)}}},n.prototype.genLoadRunOnce=function(e,n){var t={load:function(){e(),n.$remove(t)}};return t},n.prototype.clearPropertyInit=function(e,n,t){var i=t,r=i[p],o=i[h];if(r||o){if(r)for(var a=0,s=r;a<s.length;a++){var l=s[a],c=this.resolve(l,e);this.removeBeforeLoadBinding(c,e)}if(o)for(var u=0,d=o;u<d.length;u++){var _=d[u];c=this.resolve(_,e),this.removeAfterLoadBinding(c,e)}}},n.prototype.processPropertyInit=function(e,n,t,i){var o=this,a=t,s=d,l=a[s],c=_,u=a[c],g=f,b=(a[g],v),w=a[b],y=m,k=a[y],E=p,O=a[E],T=h,S=a[T],I=r(a,[s+"",c+"",g+"",b+"",y+"",E+"",T+""]),x=this.evalParsedArguments(e,I);w&&this._hasSetter(w[0],e)&&(n=w[0]);var A=this._evalLoadType(k,n),C=this.compileExpression(l[0]),P=!u&&this.isRemoteExpression(C);P||u||(u=this.getOrCreateEvalExpression(t,d));var L=!0,D=function(){var t;if((P=P&&o.isRemoteExpression(C))&&(t=o.toRemoteExpression(C,x,e)))o.fireRemoteCommand(e,{el:t,uuid:e.uuid},(function(t){!L&&t&&e instanceof clientbind.ForEachInfo&&"items"==n&&!Object.hasOwnProperty.call(t,j)||(o._updatePropToUi(e,n,t,A,i),L=!1)}));else{var r=o.doEvalExpression(null!=u?u:C,x,e);if(!L&&r&&e instanceof clientbind.ForEachInfo&&"items"==n&&!Object.hasOwnProperty.call(r,j))return;o._updatePropToUi(e,n,r,A,i),L=!1}};if(O||S){if(O)for(var M=0,R=O;M<R.length;M++){var N=R[M],B=this.resolve(N,e),$=this.genLoadRunOnce(D,this.initBeforeLoads(B).get(e.uuid));this.addBeforeLoadBinding(B,e,$)}if(S)for(var z=0,U=S;z<U.length;z++){var K=U[z];B=this.resolve(K,e),$=this.genLoadRunOnce(D,this.initAfterLoads(B).get(e.uuid)),this.addAfterLoadBinding(B,e,$)}}else e instanceof clientbind.ForEachInfo&&"items"==n?mobx.autorun((function(){return D()})):D()},n.prototype._hasSetter=function(e,n){return"function"==typeof n["set"+e.charAt(0).toUpperCase()+e.substring(1)]},n.prototype.clearFormBinding=function(e,n){var t=n,i=t[p],r=t[h];if(i||r){if(i)for(var o=0,a=i;o<a.length;o++){var s=a[o],l=this.resolve(s,e);this.removeBeforeLoadBinding(l,e)}if(r)for(var c=0,u=r;c<u.length;c++){var d=u[c];l=this.resolve(d,e),this.removeAfterLoadBinding(l,e)}}},n.prototype.processFormBinding=function(e,n){var t=e.getAtInit(),i=e.getAtLoad(),o=e.getAtSave(),s=null!=t?t[a]:void 0,l=null!=i?i[a]:void 0,c=null!=o?o[a]:void 0,u=F(e.getAtValidator(),a),_=n,p=d,h=_[p],f=r(_,[p+""]),g=this.evalParsedArguments(e,f),v=this.getOrCreateEvalExpression(n,d),m=this.doEvalExpression(v,g,e);if(null!=m&&0!=m.length||zk.error("value of @id is not found for a form binding of "+e.widgetName+", expression is "+h),s){if(s.length>1)return void zk.error("Allow only one @init for form, form id: "+m);this.processFormInit(e,m,s)}null!=l&&this.processFormLoadBinding(e,m,l),null!=c&&this.processFormSaveBinding(e,m,c,u)},n.prototype.processFormInit=function(e,n,i,o){var a=this;e[s]=n;var l=i[0],c=l,u=d,_=(c[u],r(c,[u+""])),p=this.getOrCreateEvalExpression(l,d),h=this.evalParsedArguments(e,_),f=function(i){e.markBindingReady(),mobx.runInAction((function(){var r=mobx.toJS(i),o=null==r,s=n+R,l={dirty:!1,origin:i};o||(r.resetEmptyStringValue="",r.resetNullValue=null,r.resetByteValue=0,r.resetShortValue=0,r.resetIntValue=0,r.resetLongValue=0,r.resetFloatValue=0,r.resetDoubleValue=0,r.resetBooleanValue=!1,r.resetCharValue="",a._modifyFormBeanUid(r),r=mobx.observable(r)),a._formIds.set(n,r),t.applyAdditionalAttribute(e,n,r),t.applyAdditionalAttribute(e,s,l),e[M]&&e[M](),e[D]=[],o||(e[M]=a._observeRecursively(r,e,n),e.addDisposer((function(){e[M]&&(e[M](),delete e[M])})))}))};o?e.addDisposer(mobx.autorun((function(){f(a.doEvalExpression(p,h,e))}))):f(this.doEvalExpression(p,h,e))},n.prototype._observeRecursively=function(e,n,t){var i=this,r=[],o=mobx.observe(e,(function(e){var r,o=e.name;o.startsWith("$")||o.endsWith("$")||"toString"==o||n[D].push(((r={})[N]=e.object[N],r.prop=o,r.value=e.newValue,r)),i._updateFormStatusDirty(n,t+R,!0)}));for(var a in r.push(o),e)a!==N&&G(e[a])&&mobx.isObservable(e[a])&&r.push(this._observeRecursively(e[a],n,t));return function(){for(var e=0,n=r;e<n.length;e++)(0,n[e])()}},n.prototype._isFormBean=function(e){return!(!e||!e[N])&&e[N].endsWith("$$")},n.prototype._modifyFormBeanUid=function(e){if(Array.isArray(e))for(var n=0,t=e.length;n<t;n++){var i=e[n];null!=i&&this._modifyFormBeanUid(i)}else if(G(e)){var r=e[N];if(r)for(var o in e[N]=r+"$$",e)o!=N&&null!=e[o]&&this._modifyFormBeanUid(e[o])}},n.prototype.processFormLoadBinding=function(e,n,t){for(var i=this,r=function(t){var r=t,a=r[p],s=r[h],l=function(r){i.processFormInit(e,n,[t],r)};if(a||s){if(a)for(var c=0,u=a;c<u.length;c++){var d=u[c];o.addBeforeLoadBinding(o.resolve(d,e),e,{load:function(){return l(!1)}})}if(s)for(var _=0,f=s;_<f.length;_++){var g=f[_];o.addAfterLoadBinding(o.resolve(g,e),e,{load:function(){return l(!1)}})}}else l(!0)},o=this,a=0,s=t;a<s.length;a++)r(s[a])},n.prototype.processFormSaveBinding=function(e,n,t,i){for(var r=this,o=function(t){var o=t,l=o[d],c=o[p],u=o[h],_=function(){var t,o,s,c,u,d,_=r.doEvalExpression(r.compileExpression(l[0]),{},e),p=r.doEvalExpression(r.compileExpression(n),{},e),h=((t={formId:n})[a]=Object.assign({},p,((o={})[N]=_[N]+"$$",o)),t[k]=e[D].map((function(e){var n;return e[N]==p[N]?Object.assign({},e,((n={})[N]=_[N]+"$$",n)):e})),t);if(!h[k].length){var f=[],g=Object.keys(_);for(var v in p)v!=N&&_[v]!=p[v]&&g.includes(v)&&f.push(((s={})[N]=_[N],s.prop=v,s.value=_[v],s));h[k]=f}for(var m=r.getFormAssociatedSaveBindings(e),b={},w={},y={},E=0,x=Array.from(m).reverse();E<x.length;E++){var A=x[E];if(r._isFormBean(A.bean)){var C=A.comp?Object.keys(A.comp.getAtSave())[0]:void 0,P=void 0;if(C){var M=A.comp["coerce"+C.charAt(0).toUpperCase()+C.substring(1)+"ToBean"];P=M?M.bind(A.comp)():A.comp.get(C),w[(null===(c=A.comp)||void 0===c?void 0:c.uuid)+A.lastFieldExpr]=zk.isLoaded("zul.inp")&&A.comp instanceof zul.inp.InputWidget&&A.comp._errbox?"$ERR$":C}var R=null!==(u=A.vp)&&void 0!==u?u:A.lastFieldExpr,B=p[A.lastPart];zk.isLoaded("zul.inp")&&(A.comp instanceof zul.inp.Textbox?b[R]=null!=P?P:B:A.comp instanceof zul.inp.NumberInputWidget&&(b[R]=null!=P?P:null==B?null:B)),Object.hasOwnProperty.call(b,R)||(b[R]=P||B),A.validatorInfo&&(y[R]=Object.assign({},A.validatorInfo,{uuid:null===(d=A.comp)||void 0===d?void 0:d.uuid}))}}return Object.keys(b).length&&(h[T]=b,h[S]=w),null!=i&&(h[O]=Object.assign({},i,{uuid:e.uuid})),Object.keys(y).length&&(h[I]=y),r.getClientBinder().thenCommand(L,h)};if(c||u){var f;null!=i&&(f={validate:function(){return _()}});var g={_value:s.doEvalExpression(s.compileExpression(n),{},e),save:function(t){var i;return f||(i=_()),i?i.then((function(t){return t&&(e[D]=[],r._updateFormStatusDirty(e,n+R,!1)),t})):Promise.resolve().then((function(){return e[D]=[],r._updateFormStatusDirty(e,n+R,!1),!0}))},updateValue:function(){g._value=r.doEvalExpression(r.compileExpression(n),{},e)},getProperty:function(){var e,n=g._value;return(e={})[N]=n?n[N]:void 0,e.value=n,e}};if(c)for(var v=0,m=c;v<m.length;v++){var b=m[v],w=s.resolve(b,e);f&&s.addCommandValidation(w,e,f),s.addBeforeSaveBinding(w,e,g)}if(u)for(var y=0,E=u;y<E.length;y++){var x=E[y];if(w=s.resolve(x,e),f){var A=s.initCommandValidations(w).get(e.uuid);A&&A.includes(f)||s.addCommandValidation(w,e,f)}s.addAfterSaveBinding(w,e,g)}}else zk.error("a save-form-binding have to set with a before|after command condition: @save("+l+")")},s=this,l=0,c=t;l<c.length;l++)o(c[l])},n.prototype._updateFormStatusDirty=function(e,n,t){e.getExtraAttr(n).dirty=t},n.prototype.clearModelBinding=function(e,n){var t=n,i=t[p],r=t[h];if(i||r){if(i)for(var o=0,a=i;o<a.length;o++){var s=a[o],l=this.resolve(s,e);this.removeBeforeLoadBinding(l,e)}if(r)for(var c=0,u=r;c<u.length;c++){var d=u[c];l=this.resolve(d,e),this.removeAfterLoadBinding(l,e)}}},n.prototype.processModelBinding=function(e,n,t,i,o){var a=this,s=n,l=d,c=s[l],u=_,f=s[u],g=p,v=s[g],m=h,b=s[m],w=r(s,[l+"",u+"",g+"",m+""]),y=this.compileExpression(c[0]),k=!f&&this.isRemoteExpression(y),E=this.evalParsedArguments(e,w);k||f||(f=this.getOrCreateEvalExpression(n,d));var O=!0,T=function(){k=k&&a.isRemoteExpression(y);var n,i=function(n){var i=!1;if(G(n)){var r=n[N];if(!r&&!Array.isArray(n)){var s=a.compileExpression(a._findListUidExpr(c[0],y));r=a.doEvalExpression(s,E,e)}var l=e.get("$MODEL_UID$");if(l&&l!=r&&(i=!0),e.set("$MODEL_UID$",r),o&&!O&&!Object.hasOwnProperty.call(n,j)&&!Object.hasOwnProperty.call(n,"$tm$"))return}else if(e.set("$MODEL_UID$",""),o&&!O)return;O=!1,e.set("$MODEL_EL$",y),clientbind.WidgetFactory.createWidgetsByModel(a,e,t,n),i&&e.processPagingModelIfAny&&e.processPagingModelIfAny()};if(k&&(n=a.toRemoteExpression(y,E,e)))a.fireRemoteCommand(e,{el:n,uuid:e.uuid},(function(e){Zone.current.fork({name:"ProcessModel",properties:{ProcessModel:e}}).run((function(){i(e)}))}));else{var r=a.doEvalExpression(f,E,e);i(r)}};if(v||b){if(v)for(var S=0,I=v;S<I.length;S++){var x=I[S],A=this.resolve(x,e),C=o?this.genLoadRunOnce(T,this.initBeforeLoads(A).get(e.uuid)):{load:function(){return T()}};this.addBeforeLoadBinding(A,e,C)}if(b)for(var P=0,L=b;P<L.length;P++){var D=L[P];A=this.resolve(D,e),C=o?this.genLoadRunOnce(T,this.initAfterLoads(A).get(e.uuid)):{load:function(){return T()}},this.addAfterLoadBinding(A,e,C)}}else e.addDisposer(mobx.autorun((function(){T()})))},n.prototype.clearPropertyLoad=function(e,n,t){var i=t,r=(i[f],i[p]),o=i[h];if(r||o){if(r)for(var a=0,s=r;a<s.length;a++){var l=s[a];this.removeBeforeLoadBinding(this.resolve(l,e),e)}if(o)for(var c=0,u=o;c<u.length;c++){var d=u[c];this.removeAfterLoadBinding(this.resolve(d,e),e)}}},n.prototype.processPropertyLoad=function(e,n,t,i){var o=this,a=t,s=d,l=a[s],c=_,u=a[c],g=f,b=(a[g],v),w=a[b],y=m,k=a[y],E=p,O=a[E],T=h,S=a[T],I=r(a,[s+"",c+"",g+"",b+"",y+"",E+"",T+""]),x=this.evalParsedArguments(e,I);w&&this._hasSetter(w[0],e)&&(n=w[0]);var A=this._evalLoadType(k,n),C=this.compileExpression(l[0]),P=!u&&this.isRemoteExpression(C),L=!1;if(P||u||(u=this.getOrCreateEvalExpression(t,d)),zk.isLoaded("zul.wgt")&&e.parent instanceof zul.wgt.Selectbox){var D=e.parent,M=e._index;e=Object.assign(e,{get:function(n){return"value"==n?D.items?D.items[M]:void 0:e.get(n)},addDisposer:function(e){return D.addDisposer(e)},set:function(n,t){var i;"value"==n?(D.desktop&&D.items&&D.items.length>M&&(D.$n_().options[M].label=String(t)),(null!==(i=D.items)&&void 0!==i?i:D.items=[])[M]=t):e.set(n,t)}}),Object.defineProperty(e,"parent",{get:function(){var n;return null!==(n=e._parent)&&void 0!==n?n:D},set:function(n){return e._parent=n}})}var R=function(){L&&!P||(P=o.isRemoteExpression(C),L=!0);var t,r=void 0;if(i){for(var a in r={},i)try{if(a==d)continue;var s=o.doEvalExpression(o.compileExpression(i[a][0]),x,e);r[a]="string"==typeof s?"'".concat(s,"'"):s}catch(e){}r=Object.assign({},i,r)}P&&(t=o.toRemoteExpression(C,x,e))?o.fireRemoteCommand(e,{el:t,uuid:e.uuid},(function(t){o._updatePropToUi(e,n,t,A,r,R)})):o._updatePropToUi(e,n,o.doEvalExpression(null!=u?u:C,x,e),A,r,R)};if(O||S){if(O)for(var N=0,B=O;N<B.length;N++){var $=B[N];this.addBeforeLoadBinding(this.resolve($,e),e,{load:function(){return R()}})}if(S)for(var j=0,z=S;j<z.length;j++){var U=z[j];this.addAfterLoadBinding(this.resolve(U,e),e,{load:function(){return R()}})}}else e.addDisposer(mobx.autorun((function(){R()})))},n.prototype.clearPropertySave=function(e,n,t){var i,r=t,o=r[g],a=r[p],s=r[h];if(a||s){if(a)for(var l=0,c=a;l<c.length;l++){var u=c[l];this.removeBeforeSaveBinding(this.resolve(u,e),e)}if(s)for(var d=0,_=s;d<_.length;d++){var f=_[d];this.removeAfterSaveBinding(this.resolve(f,e),e)}}else o&&o[0]&&e.unlisten(((i={})[o[0]]=e[Z(o[0])],i))},n.prototype.processPropertySave=function(e,n,i,o,a){for(var s,l=this,c=i,u=d,_=c[u][0],f=g,v=c[f],m=b,S=(c[m],p),I=c[S],x=h,A=c[x],C=w,P=c[C],L=r(c,[u+"",f+"",m+"",S+"",x+"",C+""]),D=e["coerce"+n.charAt(0).toUpperCase()+n.substring(1)+"ToBean"],M=this.getClientBinder(),R=this.compileExpression(_),B=R._compiledExpression.getChildren();"property"==R._compiledExpression.getType()&&R._compiledExpression.getRaw()!=this.vmName;){this.doEvalExpression(R,{},e);var j=R._compiledExpression;if(!j.refExpr)break;R=j.refExpr.clone(),e.getExtraAttrs()&&Object.hasOwnProperty.call(e.getExtraAttrs(),"forEachStatus")?(_=(Array.isArray(R.expression)?R.expression[0]:R.expression)+"["+e.getExtraAttrs().forEachStatus.index+"]",R=this.compileExpression(_)):_=Array.isArray(R.expression)?R.expression[0]:R.expression,B=R._compiledExpression.getChildren()}var z=function(){var t;if(D)t=D.bind(e)();else if(t=e.get(n),"function"==typeof e.getTimeZone&&zk.isLoaded("zul.inp")&&e instanceof zul.inp.InputWidget&&"number"==typeof t){var i={"_@n":t,"_@s":e.getText(),toJSON:function(){return t}};Object.defineProperty(i,"toJSON",{enumerable:!1}),t=i}return(t instanceof Date||t instanceof window.DateImpl)&&(t=t.getTime()),t},U=function(i,s){var c,u,p,h,f,g,v=l.doEvalExpression(R,l.evalParsedArguments(e,L),e),m=K.lastPart,b=K.shallSendExpr;if(0==B.length)for(var w=e.parent;w;w=w.parent)if(w.getExtraAttr(_))return w.setExtraAttr(_,s),Promise.resolve(!0);if(null==v)return Promise.resolve(!0);if(null==a&&v[m]==s)return Promise.resolve(!0);var E=l.doEvalExpression(l.compileExpression(K.firstPart),{},e),S=((c={})[k]=((u={})[N]=null!==(f=v[N])&&void 0!==f?f:v.$data$?v.$data$[N]:void 0,u.prop=K.lastFieldExpr,u[d]=s,u),c.baseId=null!==(g=E[N])&&void 0!==g?g:E.$data$?E.$data$[N]:void 0,c),I=!D&&null!=o;if(I){var x=o,A=d,C=x[A],j=r(x,[A+""]),U={};for(var W in j)try{var V=l.doEvalExpression(l.compileExpression(j[W][0]),{},e);U[W]="string"==typeof V?"'".concat(V,"'"):V}catch(e){}U=Object.assign({},j,U),S.uuid=e.uuid,S.cv=C[0],S.cvp=l._unwrapArrayValueFromObject(U)}if(null==a||i){if(!I){Object.hasOwnProperty.call(v,$)&&(v=v[$]);var q=!1;if(void 0===P?zk.isLoaded("zul.inp")&&e instanceof zul.inp.InputWidget&&"[s"==e.getConstraint()||(q=!0):!1===P?mobx.runInAction((function(){t.updateBeanSilently(v,m,s)})):i&&(q=!0),q&&mobx.runInAction((function(){l.updateAllBeanData(v,m,s)})),l._formIds.has(B[0].getName()))return Promise.resolve(!0)}}else{var F=a,Z=d,H=F[Z],Y=(j=r(F,[Z+""]),l.evalParsedArguments(e,j,{},!0)),J=((p={})[d]=H,p);for(var W in Y)if(null!=Y[W]){var X=Y[W];J[W]=[G(X)&&X[N]?X[N]:String(X)]}else J[W]=j[W];S[O]=J,S[T]={uuid:e.uuid,field:n}}if(b)if(B[0].ref){var Q;S[k]=((h={})[N]=Q=B[0].ref[N],h.prop=Q+"."+K.lastFieldExpr,h[d]=s,h)}else S.ex=_;var ee=function(){return M.thenCommand(y,S).then((function(e){return null!=e&&!1===e[k]||(I?mobx.runInAction((function(){var n=l._prepareVmData(e);l.updateAllBeanData(v,m,n)})):i||null==a?zUtl.isEqualObject(s,e)||mobx.runInAction((function(){var n=l._prepareVmData(e);l.updateAllBeanData(v,m,n)})):mobx.runInAction((function(){var n=z(),t=!(void 0===n&&null==e);l.updateAllBeanData(v,m,n,t)}))),!0}))};if(zk.isLoaded("zul.inp")&&e instanceof zul.inp.InputWidget&&"[s"==e.getConstraint()){var ne=new Promise((function(n,t){zk.afterAuResponse((function(){zk.delayFunction(e.uuid,(function(){e.desktop&&e instanceof zul.inp.InputWidget&&null==e._errmsg&&ee().then((function(e){return n(e)}))}))}))}));return ne}return ee()},K=this.getBeanInfo(R,e,L);if(this._isFormBean(K.bean)&&(K.validatorInfo=a,this.addFormAssociatedSaveBinding(e,K)),I||A){var W=void 0;null!=a&&(W={validate:function(t){var i,s,c=K.bean,u=K.lastPart,_=((i={})[O]=a,i[T]=((s={})[N]=c[N],s.prop=u,s.value=z(),s.uuid=e.uuid,s.field=n,s.properties=t,s),i);if(null!=o){var p=o,h=d,f=p[h],g=r(p,[h+""]);_.cv=f[0],_.cvp=l._unwrapArrayValueFromObject(g)}return M.thenCommand(E,_)}});var V={_value:K.bean?K.bean[K.lastPart]:void 0,save:function(e){return U(!0,V._value)},updateValue:function(){var e=z();V._value=e},getProperty:function(){var e;return(e={})[N]=K.bean?K.bean[N]:void 0,e.prop=K.lastPart,e[d]=z(),e}};if(I)for(var q=0,F=I;q<F.length;q++){var H=F[q],Y=this.resolve(H,e);W&&this.addCommandValidation(Y,e,W),this.addBeforeSaveBinding(Y,e,V)}if(A)for(var J=0,X=A;J<X.length;J++){var Q=X[J];if(Y=this.resolve(Q,e),W){var ee=this.initCommandValidations(Y).get(e.uuid);ee&&ee.includes(W)||this.addCommandValidation(Y,e,W)}this.addAfterSaveBinding(Y,e,V)}}else if(v&&v[0]){var ne=Z(v[0]);e[ne]=mobx.action((function(){K.firstPart==K.lastPart&&K.firstPart==K.lastFieldExpr?zk.error("value reference not found by expression [${"+i[d][0]+"}], check if you are trying to save to a variable only expression"):U(!1,z())})),e.listen(((s={})[v[0]]=e[ne],s))}},n.prototype.prepareReferenceBinding=function(e,n,t,i){var o=i,a=d,s=o[a],l=r(o,[a+""]),c=this.evalParsedArguments(e,l),u=this.doEvalExpression(this.compileExpression(s),c,e);n[t]=u},n.prototype.processReferenceBinding=function(e,n,i){var o=this,a=i,s=d,l=(a[s],r(a,[s+""])),c=this.evalParsedArguments(e,l),u=this.getOrCreateEvalExpression(i,d);t.applyAdditionalAttribute(e,n,new q((function(){return[u,o.doEvalExpression(u,c,e)]})))},n.prototype.getBeanInfo=function(e,n,t){for(var i,r,o,a,s="string"==typeof e?this.compileExpression(e):e,l=s._compiledExpression.getChildren(),c=Array.isArray(s.expression)?s.expression[0]:s.expression,u=this.evalParsedArguments(n,t),d=void 0,_=[],p=!1,h=l.length-1;h>=0;h--){var f=l[h],g=f.getType();if(r){a=this.doEvalExpression(this.compileExpression(c.substring(0,o-1)),u,n);break}if("indexer"==g){var v=this._getIndexerExpression(f);_.push(v),p=!0}else if("property"==f.getType()){if(0!=_.length){l.splice(h+1),a=this.doEvalExpression(s,u,n),r=this.doEvalExpression(this.compileExpression(_.join(".")),u,n),d=_.join(".");break}l.splice(h),r=f.getName(),o=f.getStartPosition()}}if(l.length){if(null!=r&&("property"==l[0].getType()&&(i=l[0].getName()),null!=i)){var m=c.substring(i.length);m.startsWith(".")&&(m=m.substring(1)),d?"number"==typeof r?d=m.replace(d,String(r)):(d=m.replace(d,"'"+r+"'")).startsWith("['")&&d.endsWith("']")&&(d=d.substring(2,d.length-2)):d=m}}else"property"===s._compiledExpression.getType()&&(i=r=d=s._compiledExpression.getRaw(),a=this.doEvalExpression(s,u,n));var b={bean:a,firstPart:i,lastPart:r,lastFieldExpr:null!=d?d:r,shallSendExpr:p};if(p){var w="string"==typeof e?e:e.expression,y=i.length;y!=w.length&&"."==w.substring(y,y+1)&&(w=w.substring(y+1),b.vp=w)}return b},n.prototype.updateVmData=function(e,n){var t=this.resolve(this.vmName,this.view),i=t[N],r=n[N],o="."!=e&&"*"!=e,a=o&&this.isRemoteExpression(this.compileExpression(e)),s=!1,l=i==r,c=t,u=".",d=[];if(n=this._prepareVmData(n),!a&&(!r&&o&&null!=n[e]&&null!=(r=n[e][N])&&(s=!0,this._updateVmData0(e,l,t,n,c,u)),r&&this._collectAllBeanInfoByUid(d,t,r,c,u),d.length>0)){n=s?n[e]:n;for(var _=0,p=d.length;_<p;_++){var h=d[_];c=h.lb,t=h.b,u=h.p,zUtl.isEqualObject(t,n)?"."===e&&this._updateVmData0(e,l,t,n,c,u):this._updateVmData0(o?".":e,l,t,n,c,u)}}else s||this._updateVmData0(e,l,t,n,c,u)},n.prototype._updateVmData0=function(e,n,i,r,o,a){var s;if("."==e)n?mobx.set(this.vm,this.vmName,r):this.updateAllBeanData(o,a,r);else if("*"==e)for(var l=0,c=Object.entries(r);l<c.length;l++){var u=c[l],d=u[0],_=u[1];N!=d&&this.updateAllBeanData(i,d,_)}else{var p=this.vm[this.vmName];i===p&&"."!==a&&p[a]&&(i=p[a]),e.startsWith("[")&&e.endsWith("]")&&(e=e.substring(1,e.length-1));var h=e.lastIndexOf("."),f=-1==h?e:e.substring(h+1);if(!mobx.isObservable(i)||Object.hasOwnProperty.call(i,f)||Object.hasOwnProperty.call(r,e))this.updateAllBeanData(i,f,r[e]);else if(t.deepSync(i,r,!0)){var g=null===(s=i[mobx.$mobx].pendingKeys_)||void 0===s?void 0:s.get(e);g&&g.observers_.forEach((function(e){e.dependenciesState_=2,e.onBecomeStale_()}))}var v=r[e+N];v&&(i[f+N]=v)}},n.prototype._updatePropToUi=function(e,n,i,o,a,s){var l=this;void 0===s&&(s=void 0),mobx.untracked((function(){var c,u,_=l._hasSetter(n,e);"value"!=n&&n.startsWith("value")&&!_&&(n="value");var p=null==i?i:mobx.toJS(i),h="object"==typeof p,f=e["coerce"+n.charAt(0).toUpperCase()+n.substring(1)+"ToUi"];if(f||null==a)if(f||_){if(h){if(null==p)p="";else if(!f){var g=p["_@t"];if(g){var v=p,m=v["_@n"];if(null!=m)if("string"==o)p=v["_@s"];else if("date"==o){var b=Object.hasOwnProperty.call(v,"_@f")&&"function"==typeof e.getTimeZone?e.getTimeZone():"UTC";p=window.Dates.newInstance(m,b),"UTC"!=b&&(p._moment=zk.mm.tz(v["_@s"],v["_@f"],b))}else p=zk.isLoaded("zul.inp")&&e instanceof zul.inp.Decimalbox?v["_@s"]:v[g.startsWith("date")?"_@s":"_@n"];else p=void 0}else if(Array.isArray(p)&&"string"==o)p="["+p.join(", ")+"]";else if(!(e instanceof clientbind.ShadowInfo)){var w=i[N];if(w)if("inputAttributes"===n)Object.defineProperty(p,"$id$",{enumerable:!1}),Object.defineProperty(p,"$map$",{enumerable:!1});else if("general"!=o)return void l.getClientBinder(e).thenCommand(A,(c={uuid:e.uuid},c[d]=w,c.cv="$tsc$",c)).then((function(t){return e.set(n,t)}))}}}else"number"==typeof i&&("date"==o?p=window.Dates.newInstance(i,"UTC"):"string"==o&&(p=i+""));if(f)f.bind(e)(p);else if(e.get(n)!==p&&(null!=p&&"string"===o&&(p=String(p)),e.set(n,p),l.$vmsgs)){var y=e.getAtValidator();y&&y[n]&&l.getClientBinder(e).thenCommand(P,{uuid:e.uuid,prop:n})}}else mobx.runInAction((function(){t.applyAdditionalAttribute(e,n,i)}));else{var k=a,E=d,O=k[E],T=r(k,[E+""]);l.getClientBinder(e).thenCommand(A,(u={uuid:e.uuid},u[d]=i,u.cv=O[0],u.cvp=l._unwrapArrayValueFromObject(T),u)).then((function(r){if(G(r)&&r.$props$&&null!=s){for(var o=r,a=function(e){null==s[e]&&(s[e]=!0,mobx.reaction((function(){return i[e]}),(function(){return s()})))},l=0,c=o.$props$;l<c.length;l++)a(c[l]);r=o.$value$}_?e.set(n,r):t.applyAdditionalAttribute(e,n,r)}))}}))},n.prototype.evalTemplateName=function(e,n,t,i){var r={each:t.each,forEachStatus:t};n=Object.assign({},n,r);var o,a=this.getOrCreateEvalExpression(e,d);if(this.isRemoteExpression(a)&&(o=this.toRemoteExpression(a,n,i))){var s={el:o,uuid:i.uuid};return this.getClientBinder().thenCommand(x,s)}return this.doEvalExpression(a,n,i)},n.prototype.updateAllBeanData=function(e,n,t,i){void 0===i&&(i=!0);var r=e[N];e[B]||null==r&&null==e||this._updateBeanData(e,n,t,i)},n.prototype._updateBeanData=function(e,n,i,r){var o=e[n];if("number"==typeof o)!r||""!==i&&void 0!==i||(i=0);else{var a=o?o["_@t"]:void 0,s=i?i["_@t"]:void 0,l=a||s;if(l&&!s){if("double"==l||"float"==l){var c=i,u="";return void 0!==i?""==(u=c+"")?u="0.0":u.includes(".")||(u=c+".0"):(c=0,u="0.0"),void(e[n]={"_@t":l,"_@n":c,"_@s":u})}if(l.startsWith("date")&&null!=i){var d=e[n];if("number"==typeof i)d["_@n"]=i;else if("string"==typeof i)d["_@s"]=i;else if(G(i)&&"function"==typeof i.toJSON)for(var _ in i)d[_]=i[_]}}}if(e[n]===i)mobx.set(e,n,null===e[n]?void 0:null),mobx.set(e,n,i);else if(Array.isArray(e)&&null!=e[n]&&null!=i&&Object.keys(i).length){var p=e[n];if(mobx.isObservable(p)){var h=i;for(var f in h)mobx.set(p,f,h[f])}else mobx.set(e,n,i)}else if(i&&null!=i[j]&&1==Object.keys(i).length)e[n][j]=i[j];else if(G(i)&&Object.hasOwnProperty.call(i,"$map$"))mobx.set(e,n,i);else if(t.deepSync(e[n],i)){var g=e[mobx.$mobx].values_.get(n);g&&g.observers_.forEach((function(e){e.dependenciesState_=2,e.onBecomeStale_()}))}else i instanceof zk.Object&&"function"==typeof i.toJSON?mobx.set(e,n,JSON.stringify(i)):i&&Object.hasOwnProperty.call(i,$)&&!Object.hasOwnProperty.call(i,N)?mobx.set(e[n],$,i[$]):mobx.set(e,n,i)},n.prototype._collectAllBeanInfoByUid=function(e,n,t,i,r){Object.hasOwnProperty.call(n,"$data$")&&(n=n.$data$);var o=n?n[N]:void 0;if(Array.isArray(n))for(var a=0,s=n.length;a<s;a++){var l=n[a];null!=l&&this._collectAllBeanInfoByUid(e,l,t,n,a)}else if(null!=o)for(var c in t==o&&e.push({lb:i,b:n,p:r}),n)c!=N&&null!=n[c]&&(n[c+N]==t&&e.push({lb:i,b:n,p:c}),i=n,r=c,this._collectAllBeanInfoByUid(e,n[c],t,i,r))},n.prototype._findListUidExpr=function(e,n){for(var t=n._compiledExpression.getChildren(),i=t.length,r=N,o=i-1;o>0;o--){var a=t[o];if("indexer"==a.getType())r+=this._getIndexerExpression(a),e=e.substring(0,e.lastIndexOf("["));else if("property"==a.getType()){e+=r;break}}return e},n.prototype._getIndexerExpression=function(e){var n=e.getChildren()[0];if("compound"==n.getType()){for(var t="",i=0,r=n.getChildren();i<r.length;i++){var o=r[i];if("property"==o.getType())t+=(t?".":"")+o.getRaw();else{if("indexer"!=o.getType())throw new Error("Unimplemented yet! ["+o.getType()+"]");t+="["+this._getIndexerExpression(o)+"]"}}return t}return"string"==n.getType()?n.getRaw():n.getValue({})},n.prototype._evalLoadType=function(e,n){var t="general";if(e&&e[0]){var i=e[0];"java.util.Date"==i||i.startsWith("java.time")?t="date":"java.lang.String"==i&&(t="string")}else if("label"==n)return"string";return t},n.prototype._isDateType=function(e){return e.startsWith("date")},n.prototype._unwrapArrayValueFromObject=function(e){for(var n=0,t=Object.entries(e);n<t.length;n++){var i=t[n],r=i[0],o=i[1];Array.isArray(o)&&(e[r]=o[0])}return e},n.prototype.destroy=function(){this.parent&&this.parent.children.$remove(this),this.view.fire("$rms$",{},{toServer:!0}),this.parent=this._bindings=this.view=this.vm=this.vmName=void 0},n.applyAdditionalAttribute=function(e,n,t,i){if(e.getExtraAttrs())e.setExtraAttr(n,t);else{var r={};r[n]=t,e.setExtraAttrs(mobx.isObservable(r)||!e.hasDynamicBinding?r:mobx.observable(r))}},n.runInReactionBatch=function(e){mobx.autorun((function(n){e(),n.dispose()}))},t=o([zk.WrapClass("clientbind.Binder")],n)}(zk.Object);function G(e){return null!=e&&"object"==typeof e}function Y(e,n){return e===n||!!(G(e)&&G(n)&&Object.hasOwnProperty.call(e,N)&&Object.hasOwnProperty.call(n,N))&&e[N]===n[N]}n.Binder=H,n.isObject=G,n.isObjectEquals=Y,clientbind.isObject=G,clientbind.isObjectEquals=Y,clientbind.Binder=H,clientbind.ReferenceBinding=q,window.clientbind||(window.clientbind={}),window.clientbind.Binder||(window.clientbind.Binder={}),window.clientbind.Binder._={_FORM_ATTR:a,_FORM_ID:s,_CACHE_PREFIX:l,_CHILDREN_ATTR:c,_MODEL_ATTR:u,_VALUE_ANNO:d,_VALUE_EXPRESSION_KEY:_,_BEFORE_ANNO:p,_AFTER_ANNO:h,_LOAD_EVENT:f,_SAVE_EVENT:g,_LOAD_REPLACEMENT:v,_LOAD_TYPE:m,_SAVE_REPLACEMENT:b,_NOTIFY_CHANGE:w,_UPDATE_BINDING_CMD:y,_UPDATE_BINDING_DATA:k,_VALIDATE_BINDING_CMD:E,_VALIDATE_BINDING_DATA:O,_VALIDATE_BINDING_PROPERTY:T,_VALIDATE_BINDING_COMPONENT_PROPERTY:S,_VALIDATE_SAVE_FORM_BINDING:I,_REMOTE_EL_CMD:x,_REMOTE_CONVERTER_CMD:A,_REMOTE_CMD_ARG:C,_REMOTE_CLEAR_VALIDATION_MESSAGE_CMD:P,_FORM_SAVE_CMD:L,_FORM_DIRTY_FIELDS:D,_FORM_DISPOSER:M,_FORM_STATUS:R,_BEAN_UID:N,_IMMUTABLE:B,_LIST_CONTENT:$,_LIST_SELECTION:j,_LIST_TOTALSIZE:z,_COMMAND_EVENT:U,_COMMAND_TRACKING_ARGUMENTS:K,_BINDER:W,_IMPORT_CLASSES:V,ReferenceBinding:q,lookup:F,getListenerHandler:Z,Binder:H,isObject:G,isObjectEquals:Y}},5363:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ClientBinder=void 0;var t=0,i=0,r=zk.override(zkbind.Binder.prototype,{},{thenCommand:function(e,n,r,o){var a=this;return e=e+"$__$"+(t++).toString(36),i++,new Promise((function(t,s){var l,c=function(n){Promise.resolve().then((function(){return i--})),a.unAfter(e,c),t(n)};a.after(e,c),(null===(l=a.$view)||void 0===l?void 0:l.desktop)?a.command(e,n,r,o):zk.afterMount((function(){a.command(e,n,r,o)}))}))}});n.ClientBinder=clientbind.newable(r),clientbind.ClientBinder=n.ClientBinder,clientbind.isRemoteEvaluating=function(){return i>0};var o={};zk.override(zUtl,o,{fireSized:function(e,n){var t=this;clientbind.isRemoteEvaluating()?setTimeout((function(){return t.fireSized(e,n)}),20):o.fireSized.call(o,e,n)}}),window.clientbind||(window.clientbind={}),window.clientbind.ClientBinder||(window.clientbind.ClientBinder={}),window.clientbind.ClientBinder._={sid:t,bindCommands:i,xBinder:r,zUtlx:o}},8655:function(e,n,t){var i=t(655).ev;Object.defineProperty(n,"__esModule",{value:!0}),n.RemoteExpression=n.RemoteEL=void 0;var r="$id$";n.RemoteEL=Symbol("RemoteEL");var o=function(){function e(){this.elements=[]}return e.prototype.push=function(e){return this.elements.push(e),e},e.prototype.pop=function(){return this.elements.pop()},e.prototype.peek=function(){return this.elements.at(-1)},e}(),a=function(){function e(e,n){this.expr=e,this.state=e.initState(n)}return e.prototype.evaluate=function(){var n=[],t=[this.expr._compiledExpression];return e.process(this.state,t,n),n.join("")},e.resetState=function(e,n){var t=e.activeContext;try{return e.activeContext=new o,e.activeContext.push(e.rootContext),n(e,t)}finally{e.activeContext=t}},e.process=function(e,t,o){for(var a=this,s=!1,l=function(){var l=t.shift(),u=l.getType(),d=!0;switch(u){case"compound":for(var _=l.getChildren(),p=_.length,h=0,f=[],g=function(){if("indexer"==_[h].getType()){var t=[];mobx.untracked((function(){e.activeContext.peek()&&e.activeContext.peek().$lc$&&e.activeContext.push(e.activeContext.pop().$lc$)})),c.process(e,[_[h]],t),mobx.untracked((function(){if(t.length){var i=e.activeContext.peek();clientbind.isObject(i)&&i[r]?o.push(String(i[r]),"[",t.join(""),"]"):i==n.RemoteEL?o.push("[",t.join(""),"]"):o=[i]}}))}else{var i=_[h];mobx.untracked((function(){"property"==i.getType()&&(f.length&&f.push("."),f.push(i.getRaw())),h>0&&o.length&&o.push(".")})),c.processSingleNode(e,_[h],o,h+1==p),mobx.untracked((function(){null!=e.activeContext.peek()||o.length||"property"==i.getType()&&o.push(_[h].getRaw())}))}};h<p;h++)g();mobx.untracked((function(){if(o.length&&f.length){for(var n=o.length,t=f.length,r=[],a=!1;o[n-1]===f[t-1]&&(a=!0,r.unshift(o[n-1]),t--,!(--n<=0)););if(a){for(;t>0;)r.unshift(f[t-1]),t--;n>0?o.splice.apply(o,i([n,r.length],r,!1)):o.splice.apply(o,i([0,r.length],r,!1))}}var s=e.activeContext.peek();for(h=0;h<p;h+=1)e.activeContext.pop();e.activeContext.push(s),d=!1}));break;case"property":s&&o.push("."),s=!0;var v=!1,m=l.getRaw();if(mobx.untracked((function(){if(clientbind.ExecutionResolver.isRemoteObject(m)){if(l.getChildren()[0]&&"property"==l.getChildren()[0].getType())return o.push(m),void(v=!0)}else if(e.activeContext.peek()===n.RemoteEL)return o.push(m),void(v=!0)})),v)break;e.activeContext.push(l.getValue(e)),mobx.untracked((function(){null!=e.activeContext.peek()&&e.activeContext.peek()!=n.RemoteEL||o.push(m)}));break;case"list":o.push("[]"),e.activeContext.push([]);break;case"method":var b=e.activeContext.peek();if(b){var w=l.getRaw(),y=w.methodName,k=w.args,E=!1;if(mobx.untracked((function(){var n;if("object"==typeof b&&b!=e.rootContext)if(Array.isArray(b)){var t=!1;switch(y){case"get":if(1==k.length&&"number"===k[0].getType()){var i=a.resetState(e,(function(e){return k[0].getValue(e)}));"number"==typeof i&&(t=!0,e.activeContext.push(b[i]))}break;case"size":case"length":t=!0,e.activeContext.push(b.length)}if(t)return void(E=!0);if(!b[r])throw Error("Unsupported List/Array method: "+y);o.push(String(b[r]),".")}else if("date"==b["_@t"]){var s=b["_@n"];if(null!=s){var l=window.Dates.newInstance(s,"UTC");if(t=!1,"getTime"===y&&(t=!0,e.activeContext.push(l.getTime())),t)return void(E=!0);throw Error("Unsupported Date method: "+y)}}else o.push(String(null!==(n=b[r])&&void 0!==n?n:b),".")})),E)break;if(null!=k&&k.length){o.push(y,"(");var O=0;k.forEach((function(n){O++&&o.push(","),a.resetState(e,(function(e){return a.processSingleNode(e,n,o)}))})),o.push(")")}else o.push(y,"()");if(b[y]||b[y+"("+k.map((function(e){return String(e)}))+")"])break;e.activeContext.push(n.RemoteEL)}break;case"boolean":e.activeContext.push(l.getValue(e)),o.push(String(e.activeContext.peek()));break;case"null":e.activeContext.push(void 0),o.push("null");break;case"number":var T=l.getValue(e);e.activeContext.push(T),Number.isInteger(T)&&T>-2147483648&&T<2147483647?o.push("Integer.valueOf(".concat(T,")")):o.push(String(T));break;case"string":o.push(l.getRaw()),e.activeContext.push(l.getValue(e));break;case"op-and":c.opFunction(e,l,o,(function(e,n){return!!e&&!!n}),"&&"),d=!1;break;case"op-dec":var S=l.getValue(e);o.push(String(S));break;case"op-divide":c.opFunction(e,l,o,(function(e,n){return e/n}),"/"),d=!1;break;case"op-eq":c.opFunction(e,l,o,(function(e,t){if(JSON.stringify(e)==JSON.stringify(t)){if(clientbind.isObject(e)&&clientbind.isObject(t)){var i=e,a=t;if(i[r]&&a[r])return o.push(i[r]," == ",a[r]),n.RemoteEL}return!0}return!1}),"=="),d=!1;break;case"op-ge":c.opFunction(e,l,o,(function(e,n){return e>=n}),">="),d=!1;break;case"op-gt":c.opFunction(e,l,o,(function(e,n){return e>n}),">"),d=!1;break;case"op-inc":S=l.getValue(e),o.push(String(S));break;case"op-empty":d=!1;var I=[],x=c.processSingleNode(e,l.getChildren()[0],I,!1);if(I.length)o.push(" empty ",I.join(""));else{var A=!1;mobx.untracked((function(){if(null!=x)if(Array.isArray(x)||"string"==typeof x)A=!x.length;else{var e=x,n=e.$map$;for(var t in e)if((!n||"$id$"!=t&&"$map$"!=t)&&e.hasOwnProperty(t)){A=!1;break}}})),e.activeContext.push(A)}break;case"op-le":c.opFunction(e,l,o,(function(e,n){return e<=n}),"<="),d=!1;break;case"op-lt":c.opFunction(e,l,o,(function(e,n){return e<n}),"<"),d=!1;break;case"op-minus":var C=l.getChildren(),P=C[0],L=C[1],D=[],M=[],R=c.processSingleNode(e,P,D);if(L){var N=c.processSingleNode(e,L,M);mobx.untracked((function(){R!==n.RemoteEL&&N!==n.RemoteEL?e.activeContext.push(R-N):R!==n.RemoteEL?(a.writeObject(R,o),o.push(" - ",M.join(""))):(o.push(D.join("")," - "),a.writeObject(N,o))}))}else R!==n.RemoteEL?e.activeContext.push(-R):o.push(" -",D.join(""));d=!1;break;case"op-modulus":c.opFunction(e,l,o,(function(e,n){return e%n}),"%"),d=!1;break;case"op-multiply":c.opFunction(e,l,o,(function(e,n){return e*n}),"*"),d=!1;break;case"op-ne":c.opFunction(e,l,o,(function(e,n){return JSON.stringify(e)!=JSON.stringify(n)}),"!="),d=!1;break;case"op-not":var B=l.getChildren()[0],$=[],j=c.processSingleNode(e,B,$);j!==n.RemoteEL?e.activeContext.push(!j):o.push(" not ",$.join("")),d=!1;break;case"op-or":c.opFunction(e,l,o,(function(e,n){return!!e||!!n}),"||"),d=!1;break;case"op-plus":var z=l.getChildren(),U=(P=z[0],L=z[1],[]),K=[],W=c.processSingleNode(e,P,U);if(L){var V=c.processSingleNode(e,L,K);mobx.untracked((function(){W!==n.RemoteEL&&V!==n.RemoteEL?e.activeContext.push(W+V):W!==n.RemoteEL?(a.writeObject(W,o),o.push(" + ",K.join(""))):(o.push(U.join("")," + "),a.writeObject(V,o))}))}else mobx.untracked((function(){W!==n.RemoteEL?e.activeContext.push(+W):o.push(" +",U.join(""))}));d=!1;break;case"op-power":c.opFunction(e,l,o,(function(e,n){return Math.pow(e,n)}),"^"),d=!1;break;case"ternary":var q=l.getChildren(),F=q[0],Z=q[1],H=q[2],G=[],Y=[],J=[],X=c.processSingleNode(e,F,G),Q=!1;if(mobx.untracked((function(){Q=X!==e.rootContext&&X!==n.RemoteEL&&0==e.activeContext.elements.filter((function(e){return e===n.RemoteEL})).length})),Q){var ee=X?c.resetState(e,(function(e){return a.processSingleNode(e,Z,Y)})):c.resetState(e,(function(e){return a.processSingleNode(e,H,J)}));mobx.untracked((function(){ee===n.RemoteEL&&(X?o.push(Y.join("")):o.push(J.join("")))}))}else{var ne=c.resetState(e,(function(e){return a.processSingleNode(e,Z,Y)})),te=c.resetState(e,(function(e){return a.processSingleNode(e,H,J)}));mobx.untracked((function(){o.push(G.join("")," ? "),ne!==n.RemoteEL&&te!==n.RemoteEL?(a.writeObject(ne,o),o.push(" : "),a.writeObject(te,o)):ne!==n.RemoteEL?(a.writeObject(ne,o),o.push(" : ",J.join(""))):(o.push(Y.join("")," : "),a.writeObject(te,o))}))}d=!1;break;case"indexer":var ie=0,re=[];l.getChildren().forEach((function(n){ie++&&re.push(" "),a.resetState(e,(function(e,t){a.processSingleNode(e,n,re),mobx.untracked((function(){"number"==typeof e.activeContext.peek()&&Array.isArray(t.peek())&&t.push(t.peek()[e.activeContext.peek()])}))}))})),o.push(re.join("")),d=!1;break;default:throw Error("unimplemented yet! [ "+u+"]")}d&&t.push.apply(t,l.getChildren())},c=this;t.length;)l()},e.opFunction=function(e,t,i,r,o){var a=this,s=t.getChildren(),l=s[0],c=s[1],u=[],d=[],_=this.processSingleNode(e,l,u);e.activeContext.pop();var p=this.processSingleNode(e,c,d);e.activeContext.pop();var h=null;mobx.untracked((function(){_===n.RemoteEL||p===n.RemoteEL||_===h&&0!=u.length||p===h&&0!=d.length?_!==n.RemoteEL&&_!==h?(a.writeObject(_,i),i.push(" ",o," ",d.join(""))):p!==n.RemoteEL&&p!==h?(i.push(u.join("")," ",o," "),a.writeObject(p,i)):i.push(u.join("")," ",o," ",d.join("")):e.activeContext.push(r(_,p))}))},e.processSingleNode=function(e,n,t,i){void 0===i&&(i=!0);var r=[];return this.process(e,[n],r),r.length?t.push(r.join("")):i&&this.writeObject(e.activeContext.peek(),t),e.activeContext.peek()},e.writeObject=function(e,n){if(null!=e)switch(typeof e){case"string":n.push("'",e,"'");break;case"object":e instanceof zk.Widget?n.push(e.id?e.id:e.uuid):Array.isArray(e)?e[r]?n.push(e[r]):e.length?n.push("[",e.join(","),"]"):n.push("[]"):n.push(e[r]);break;case"number":Number.isInteger(e)&&e>-2147483648&&e<2147483647?n.push("Integer.valueOf(".concat(e,")")):n.push(String(e));break;default:n.push(String(e))}else n.push("null")},e}();n.RemoteExpression=a,clientbind.RemoteExpression=a,clientbind.RemoteEL=n.RemoteEL,window.clientbind||(window.clientbind={}),window.clientbind.RemoteExpression||(window.clientbind.RemoteExpression={}),window.clientbind.RemoteExpression._={_BEAN_UID:r,Stack:o,RemoteExpression:a}},1781:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.TemplateInfo=void 0;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.setName=function(e){return this._name=e,this},n.prototype.getName=function(){return this._name},n.prototype.setVar=function(e){return this._var=e,this},n.prototype.getVar=function(){return this._var},n.prototype.setStatus=function(e){return this._status=e,this},n.prototype.getStatus=function(){return this._status},r([zk.WrapClass("clientbind.TemplateInfo")],n)}(clientbind.Widget);n.TemplateInfo=o,clientbind.TemplateInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.TemplateInfo||(window.clientbind.TemplateInfo={}),window.clientbind.TemplateInfo._={TemplateInfo:o}},5033:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetFactory=void 0;var t="$cvc$",i="viewModel",r=function(){function e(){}return e.create=function(e){var n=e[0],t=e[1],i=e[2],r=e[3],o=zk.$import(n);if(!o)throw"Unknown widget: "+n;var a=new o;for(var s in r&&a.setMold(r),t)"string"==typeof t[s]&&t[s].startsWith("$")||a.set(s,t[s]);return a.setTemplateMeta(i),a},e.eval=function(e,n,t,i){if(void 0===i&&(i={}),"string"==typeof e||e instanceof String){for(var r,o,a,s,l=e,c=0,u=l.length-1;;){if((r=l.indexOf("${",c))<0){s&&(l=s+l.substring(c));break}if(a=l.substring(c,r),(o=l.indexOf("}",r+2))<0){l=s?s+a:a;break}s=s?s+a:a,a=l.substring(r+2,o);var d=n.compileExpression(a);if(a=n.doEvalExpression(d,i,t),!s&&o==u)return a;null!=a&&(s+=a),c=o+1}return l}return e},e.createWidgetsInTemplate=function(e,n,t,i,r){var o=this;if(null!=i){var a=null==t?void 0:t.getAtRef();if(a)for(var s in a)e.prepareReferenceBinding(t,r,s,a[s]);this.importWidgetClasses(i,(function(){for(var a=null==t?void 0:t._previousInsertion,s=0,l=i;s<l.length;s++){var c=l[s],u=o.create(c);o.processWidgetInTemplate(e,u,n,r,t,c[1],a),a&&u instanceof clientbind.ShadowInfo?u._previousInsertion=a:a instanceof clientbind.ShadowInfo&&a!=(null==t?void 0:t._previousInsertion)&&(a._nextInsertion=u),a=u}}))}},e.importWidgetClasses=function(e,n){for(var t=[],i=0,r=e;i<r.length;i++){var o=r[i][0];o.startsWith("clientbind")||zk.isLoaded(o.substring(0,o.lastIndexOf(".")))||t.push(o)}if(0!=t.length)return new Promise((function(e,i){for(var r,o=function(i){var o=t[i];if(r){var a=r;r=function(){zk.$import(o,a)}}else{var s=Zone.current,l=clientbind.ShadowInfo.getCurrentInfo_();r=function(){zk.$import(o,(function(){e(),clientbind.ShadowInfo.setCurrentInfo_(l),s.run(n),clientbind.ShadowInfo.setCurrentInfo_(void 0)}))}}0==i&&r()},a=t.length-1;a>=0;a--)o(a)}));n()},e.prepareTemplateIfAny=function(e,n,t,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o];if("clientbind.TemplateInfo"==a[0]){var s=this.create(a);this.processWidget(e,s,n,i,r,a[1]),t.splice(o,1)}}},e.createWidgets=function(e,n,t,i,r){var o=this;null!=t&&this.importWidgetClasses(t,(function(){for(var a=0,s=t;a<s.length;a++){var l=s[a],c=o.create(l);o.processWidget(e,c,n,i,r,l[1])}}))},e.processWidgetInTemplate=function(e,n,t,r,o,a,s){if(this.applyWidgetTemplateEvalContext(n,r),n instanceof clientbind.ZkInfo){var l=n.getTemplateMeta();null!=l&&l.length&&this.createWidgetsInTemplate(e,t,o,l,r)}else{if(n instanceof clientbind.TemplateInfo)t.addTemplateInfo(n);else if(n instanceof clientbind.ShadowInfo)this.processShadowInfo(e,n,t,o);else{if(!s||s instanceof clientbind.ZkInfo||s instanceof clientbind.TemplateInfo||s instanceof clientbind.WhenInfo){if(o){var c=o.getNextInsertionWidget();c&&t.insertBefore(n,c)}}else if(s instanceof clientbind.ShadowInfo){var u=s.getNextInsertion(),d=s.getPreviousInsertion();if(u){for(;u instanceof clientbind.ShadowInfo;)u=u.getNextInsertion();if(u)t.insertBefore(n,u);else{for(;d instanceof clientbind.ShadowInfo;)d=d.getPreviousInsertion();d?t.insertBefore(n,d.nextSibling):t.appendChild(n)}}else if(d){for(;d instanceof clientbind.ShadowInfo;)d=d.getPreviousInsertion();d?t.insertBefore(n,d.nextSibling):t.appendChild(n)}}else t.insertBefore(n,s.nextSibling);n.parent||t.appendChild(n)}if(a){var _=n.parent,p=void 0;for(var h in _&&!_._binding&&(p=_._binding,_._binding=!0),a)n.set(h,this.eval(a[h],e,n));_&&_._binding&&(_._binding=p)}var f=n.getAtInit();if(f){var g=f[i];if(g&&g[0])return void this.createViewModel(e,n,g[0],o,r)}n instanceof clientbind.ShadowInfo||n instanceof clientbind.TemplateInfo||e.processWidgetBinding(n);var v=n.getTemplateMeta();null!=v&&v.length&&this.createWidgets(e,n,v,r,n instanceof clientbind.ShadowInfo?o:void 0)}},e.processWidget=function(e,n,t,r,o,a,s,l,c){if(void 0===s&&(s=!1),void 0===l&&(l=!1),void 0===c&&(c=void 0),this.applyWidgetTemplateEvalContext(n,r),n instanceof clientbind.ZkInfo)null!=(u=n.getTemplateMeta())&&u.length&&this.createWidgets(e,t,u,r,o);else if(n instanceof clientbind.TemplateInfo)t.addTemplateInfo(n);else if(n instanceof clientbind.ShadowInfo)this.processShadowInfo(e,n,t,o);else{var u;if(l&&t.disableShadowAdjustment(),null!=(u=n.getTemplateMeta())&&u.length&&(u=u.slice(),this.prepareTemplateIfAny(e,n,u,r,o)),null==o)t.appendChild(n,s);else{var d=o.getPreviousInsertionWidget(),_=o.getNextInsertionWidget();if(d||_)for(var p=t.firstChild;p;p=p.nextSibling){if(p==d){t.insertBefore(n,p.nextSibling);break}if(p==_){t.insertBefore(n,p);break}}else t.appendChild(n);n.parent||t.appendChild(n)}if(l&&t.enableShadowAdjustment(),a){var h=n.parent,f=void 0;for(var g in h&&!h._binding&&(f=h._binding,h._binding=!0),a)n.set(g,this.eval(a[g],e,n));h&&h._binding&&(h._binding=f)}var v=n.getAtInit();if(v){var m=v[i];if(m&&m[0])return void this.createViewModel(e,n,m[0],o,r)}c&&c(),n.isBindingReady()||e.processWidgetBinding(n),null!=u&&u.length&&this.createWidgets(e,n,u,r,n instanceof clientbind.ShadowInfo?o:void 0)}},e.processShadowInfo=function(e,n,t,i){var r=n;i?i.appendChild(n):r.setHost(t),r.prepareTemplate(),n.hasBinding?(r.afterCompose_(),e.processWidgetBinding(n),r.doBindingReady()):r.afterCompose_()},e.createWidgetsByModel=function(e,n,t,i){var r;n.renderByModel?(mobx.untracked((function(){var e;null!=n.syncSelectionsFromModel&&(n._$modelSelectionsDisposer&&n._$modelSelectionsDisposer(),i&&Object.hasOwnProperty.call(i,"$sel$")&&(r=null!==(e=(r=mobx.toJS(i.$sel$)).$lc$)&&void 0!==e?e:r,n._$modelSelectionsDisposer=mobx.reaction((function(){return i.$sel$}),(function(e){var t;n.syncSelectionsFromModel(null!==(t=e.$lc$)&&void 0!==t?t:e)}))))})),n.renderByModel(e,t,i,{},r),n._$model=!0):zk.error("Model rendering is not supported, "+n.className)},e.lookupTemplate=function(e,n){var t,i=e.getTemplatesInfo();if(i&&(t=i[n]),!t){var r=e.parent;if(r)e=r;else{if(!(e instanceof clientbind.ShadowInfo))return;e=e._host}if(e)return this.lookupTemplate(e,n)}return t},e.applyWidgetTemplateEvalContext=function(e,n){var t=n.$eachName$,i=n.$forEachStatusName$,r=n.$each$,o=n.$forEachStatus$;if(t&&i){e.$FromTemplate$=!0;var a=clientbind.Binder;a.applyAdditionalAttribute(e,t,r,!1),a.applyAdditionalAttribute(e,i,o,!1)}},e.prepareForEachStatus=function(e,n,t,i,r,o,a){return{previous:n?mobx.observable(n):n,each:e,current:e,index:t,first:t==i,last:t==r,step:o,count:a}},e.prepareTemplateEvalContext=function(e,n,t,i,r){r||(r=i?i+"Status":"forEachStatus"),i||(i="each");for(var o={$eachName$:i,$forEachStatus$:t,$forEachStatusName$:r},a=e,s=!1;a;){if(a.$MODEL_EL$){a.$MODEL_SKIP_EL$&&(s=!0);break}a=a.parent}if(s)o.$each$=t.each;else{var l=n.isRemoteExpression(a.$MODEL_EL$),c=void 0;(zk.isLoaded("zul.sel")&&e instanceof zul.sel.Treechildren&&e.parent instanceof zul.sel.Treeitem||zk.isLoaded("zkmax.layout")&&e instanceof zkmax.layout.Orgchildren&&e.parent instanceof zkmax.layout.Orgitem)&&(c=e.parent.getPath_());var u=Zone.current.get("ProcessModel");o.$each$=new clientbind.ReferenceBinding((function(){var i=a.$MODEL_OFFSET$,r=n.doEvalExpression(a.$MODEL_EL$,{},e);if(void 0!==i||null==r&&l)if(null!=u)r=u;else if(l)return[a.$MODEL_EL$];if(Object.hasOwnProperty.call(r,"$lc$")&&(r=r.$lc$),c)for(var o=c.slice();o.length;)r=(r=r[o.shift()]).$children$;if(Object.hasOwnProperty.call(r,"$map$"))if(Object.hasOwnProperty.call(r,"$map$$lc$"))r=r.$map$$lc$;else{var s=[];for(var d in r)"$map$"!=d&&"$id$"!=d&&s.push({key:d,value:r[d]});mobx.untracked((function(){Object.defineProperty(r,"$map$$lc$",{enumerable:!1,value:s})})),r=s}return[a.$MODEL_EL$,Array.isArray(r)?r[t.index-(null!=i?i:0)]:r]}))}return o},e.createModelRenderer=function(n,t,i,r,o,a,s,l,c,u,d,_,p){void 0===s&&(s=function(e){return e}),void 0===l&&(l=void 0),void 0===c&&(c=void 0),void 0===u&&(u="model"),void 0===d&&(d=0),void 0===_&&(_=void 0),void 0===p&&(p=!0),null!=o||(o=[]);var h,f=d,g=null!=_?_:o.length,v=[];return{render:function(d){var _=this,m=u,b=[];if("function"!=typeof o.forEach)if(o.$lc$)o.forEach=o.$lc$.forEach;else if(o.$map$||Object.hasOwnProperty.call(o,"$map$")){var w=[];for(var y in o)"$map$"!=y&&"$id$"!=y&&w.push({key:y,value:o[y]});o=w}if(r=null!=r?":"+r:"",o.forEach((function(u){if(Array.isArray(u)){var w=f+"$id$";o[w]?u.$id$=o[w]:o.$lc$&&o.$lc$[w]&&(u.$id$=o.$lc$[w])}u=s(u);var y=e.prepareForEachStatus(u,h,f,0,g-1,1,g);null!=i&&(m=t.evalTemplateName(i,n,y,n));var k,E=function(i,r){var o,s=null!==(o=e.lookupTemplate(n,i))&&void 0!==o?o:null==c?void 0:c.call(_),h=e.prepareTemplateEvalContext(n,t,y,s?s.getVar():void 0,s?s.getStatus():void 0);if(s){var f=s.getTemplateMeta();a=Object.assign(a,h);var g=e.importWidgetClasses(f,(function(){for(var i=0,o=0,s=function(s){var l;s[1]._index=r;var c=e.create(s);if(s[1]){var u=s[1],_=((l={})[h.$eachName$]=h.$each$,l[h.$forEachStatusName$]=h.$forEachStatus$,l),f=0;if(u.if&&(f=!0===e.eval(u.if,t,c,_)?1:-1),u.unless&&f<=0&&(f=!1===e.eval(u.unless,t,c,_)?1:-1),f<0)return"continue"}if(!s[0].endsWith("Info")&&++o>1)return zk.error("The model template must have exactly one item"),{value:void 0};var g=!1,m=function(){return g||(g=!0,c instanceof clientbind.ShadowInfo||c instanceof clientbind.ZkInfo?e.processWidgetInTemplate(t,c,n,a,void 0,s[1],v[0]):e.processWidget(t,c,n,a,void 0,s[1],p),clientbind.ShadowInfo.setPrevInsertion_(c,v[0]),v[0]=c),c};if(d&&d(c,i++,r,m))return{value:void 0};m()},l=0,c=f;l<c.length;l++){var u=s(c[l]);if("object"==typeof u)return u.value}}));g instanceof Promise&&b.push(g)}else if(l){var m=l(u,r);if(d&&d(m,0,r,(function(){return m})))return}};m instanceof Promise?(k=f,b.push(m.then((function(e){return E(e+r,k)})))):E(Object.hasOwnProperty.call(o,"$"+f+"$")?o["$"+f+"$"]:m+r,f),f++,h=y})),b.length)return Promise.all(b).then()}}},e.processPagingModel=function(e,n,t,i){var r=e._getBinder(),o={model:n,type:zk.isLoaded("zul.sel")&&e instanceof zul.sel.Tree?"tree":"list",paginal:t};i&&(o=Object.assign(o,i)),r.getClientBinder().thenCommand("$ppmc$",o)},e.createViewModel=function(e,n,r,o,a){var s=this,l=n.getAtId()[i];if(l){var c=e.doEvalExpression(e.compileExpression(l.value[0]),{},n);if(0!=c.length){var u=e.doEvalExpression(e.compileExpression(r.value[0]),{},n);e.getClientBinder().thenCommand(t,{compId:n.uuid,vmId:c,vm:u,execArgs:a.$execArgs$}).then((function(e){var t=e,i=zk.$(t.uuid);i instanceof clientbind.Widget&&i.detachAtClientOnly(),n["set@vm"](t.vm),t.vmsg&&n["set@vmsg"](t.vmsg);var r=t.uuid;s._replaceWithUuid(n,r);var a=function(){n.$binder_.processBindings();var e=n.getTemplateMeta();null!=e&&e.length&&s.createWidgets(n.$binder_,n,e,{},o)},l=Zone.current.view;l&&l!=n?Zone.current.fork({name:n.uuid}).run((function(){Zone.current.view=s,a()})):a()}))}else zk.error("Name of view model is empty.")}else zk.error("You have to use @id to assign the name of view model.")},e._replaceWithUuid=function(e,n){var t=e.parent,i=e.nextSibling,r=e.$binder_,o=e._$disposers;e.$binder_=void 0,e._$disposers=void 0;try{t.disableShadowAdjustment(),e.detachAtClientOnly(),e.$binder_=r,e._$disposers=o,e.uuid=n,t.insertBefore(e,i)}finally{t.enableShadowAdjustment()}},e}();n.WidgetFactory=r,clientbind.WidgetFactory=r,window.clientbind||(window.clientbind={}),window.clientbind.WidgetFactory||(window.clientbind.WidgetFactory={}),window.clientbind.WidgetFactory._={_CREATE_VIEW_MODEL_COMMAND:t,_VIEWMODEL_ATTR:i,WidgetFactory:r}},3349:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zhtml",(function(){var e={};zk.override(zhtml.Widget.prototype,e,{setSclass:function(e){return this.desktop?this.$n_().className=e:this.prolog&&(this.prolog.includes(' class="')?this.prolog=this.prolog.replace(/ class="[^"]+"/,' class="'.concat(e,'"')):this.prolog.includes(">")?this.prolog=this.prolog.replace(">",' class="'.concat(e,'">')):this.prolog+=' class="'.concat(e,'">')),this},setClass:function(e){return this.setSclass(e)},setTextContent:function(e){var n;this.desktop&&(this.$n_().textContent=e);var t=null===(n=this.prolog)||void 0===n?void 0:n.lastIndexOf(">");return t&&(this.prolog=this.prolog.substring(0,t+1)+zUtl.encodeXML(e)),this},bind_:function(n,t,i){e.bind_.call(this,n,t,i);var r=this.getExtraAttrs();if(null!=r){var o=this.$n();if(o)for(var a in r)o[a]=r[a],o.setAttribute(a,r[a])}},setExtraAttrs:function(n){if(this.$n()){var t=this.getExtraAttrs();if(null!=t){var i=this.$n_();for(var r in t)i[r]=void 0}if(null!=n)for(var r in i=this.$n_(),n)i[r]=n[r]}return e.setExtraAttrs.call(this,n),this},setExtraAttr:function(n,t){return this.$n()&&(this.$n_()[n]=t),e.setExtraAttr.call(this,n,t),this}})})),window.clientbind||(window.clientbind={}),window.clientbind.ZHtml||(window.clientbind.ZHtml={}),window.clientbind.ZHtml._={}},8187:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.ZkInfo=void 0;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),r([zk.WrapClass("clientbind.ZkInfo")],n)}(clientbind.Widget);n.ZkInfo=o,clientbind.ZkInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.ZkInfo||(window.clientbind.ZkInfo={}),window.clientbind.ZkInfo._={ZkInfo:o}},4789:function(e,n,t){!function(e){var n={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(e,n){return"Cannot apply '"+e+"' to '"+n.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(e,n){return"[mobx.array] Index out of bounds, "+e+" is larger than "+n},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(e){return"Cannot initialize from classes that inherit from Map: "+e.constructor.name},20:function(e){return"Cannot initialize map from "+e},21:function(e){return"Cannot convert to map from '"+e+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(e){return"Cannot obtain administration from "+e},25:function(e,n){return"the entry '"+e+"' does not exist in the observable map '"+n+"'"},26:"please specify a property",27:function(e,n){return"no observable property '"+e.toString()+"' found on the observable object '"+n+"'"},28:function(e){return"Cannot obtain atom from "+e},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(e,n){return"Cycle detected in computation "+e+": "+n},33:function(e){return"The setter of computed value '"+e+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(e){return"[ComputedValue '"+e+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(e){return"[mobx] `observableArray."+e+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+e+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"};function i(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];var o="string"==typeof e?e:n[e];throw"function"==typeof o&&(o=o.apply(null,i)),new Error("[MobX] "+o)}var r={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:r}var a=Object.assign,s=Object.getOwnPropertyDescriptor,l=Object.defineProperty,c=Object.prototype,u=[];Object.freeze(u);var d={};Object.freeze(d);var _="undefined"!=typeof Proxy,p=Object.toString();function h(){_||i("`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`")}function f(e){bn.verifyProxies&&i("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function g(){return++bn.mobxGuid}function v(e){var n=!1;return function(){if(!n)return n=!0,e.apply(this,arguments)}}var m=function(){};function b(e){return"function"==typeof e}function w(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function y(e){return null!==e&&"object"==typeof e}function k(e){if(!y(e))return!1;var n=Object.getPrototypeOf(e);if(null==n)return!0;var t=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t.toString()===p}function E(e){var n=null==e?void 0:e.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function O(e,n,t){l(e,n,{enumerable:!1,writable:!0,configurable:!0,value:t})}function T(e,n,t){l(e,n,{enumerable:!1,writable:!1,configurable:!0,value:t})}function S(e,n){var t="isMobX"+e;return n.prototype[t]=!0,function(e){return y(e)&&!0===e[t]}}function I(e){return e instanceof Map}function x(e){return e instanceof Set}var A=void 0!==Object.getOwnPropertySymbols;var C="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:A?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return"string"==typeof e?e:"symbol"==typeof e?e.toString():new String(e).toString()}function L(e){return null===e?null:"object"==typeof e?""+e:e}function D(e,n){return c.hasOwnProperty.call(e,n)}var M=Object.getOwnPropertyDescriptors||function(e){var n={};return C(e).forEach((function(t){n[t]=s(e,t)})),n};function R(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function N(e,n,t){return n&&R(e.prototype,n),t&&R(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(){return B=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},B.apply(this,arguments)}function $(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,j(e,n)}function j(e,n){return j=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},j(e,n)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function K(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return U(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?U(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var W=Symbol("mobx-stored-annotations");function V(e){return Object.assign((function(n,t){q(n,t,e)}),e)}function q(e,n,t){D(e,W)||O(e,W,B({},e[W])),ne(t)&&!D(e[W],n)&&i("'"+e.constructor.name+".prototype."+n.toString()+"' is decorated with 'override', but no such decorated member was found on prototype."),function(e,n,t){if(!ne(n)&&D(e[W],t)){var r=e.constructor.name+".prototype."+t.toString(),o=e[W][t].annotationType_;i("Cannot apply '@"+n.annotationType_+"' to '"+r+"':\nThe field is already decorated with '@"+o+"'.\nRe-decorating fields is not allowed.\nUse '@override' decorator for methods overriden by subclass.")}}(e,t,n),ne(t)||(e[W][n]=t)}var F=Symbol("mobx administration"),Z=function(){function e(e){void 0===e&&(e="Atom@"+g()),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Xe.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var n=e.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},n.reportObserved=function(){return Tn(this)},n.reportChanged=function(){En(),Sn(this),On()},n.toString=function(){return this.name_},e}(),H=S("Atom",Z);function G(e,n,t){void 0===n&&(n=m),void 0===t&&(t=m);var i=new Z(e);return n!==m&&rt(i,n),t!==m&&ot(i,t),i}var Y={identity:function(e,n){return e===n},structural:function(e,n){return Ci(e,n)},default:function(e,n){return Object.is?Object.is(e,n):e===n?0!==e||1/e==1/n:e!=e&&n!=n},shallow:function(e,n){return Ci(e,n,1)}};function J(e,n,t){return yt(e)?e:Array.isArray(e)?Le.array(e,{name:t}):k(e)?Le.object(e,void 0,{name:t}):I(e)?Le.map(e,{name:t}):x(e)?Le.set(e,{name:t}):"function"!=typeof e||Xn(e)||mt(e)?e:E(e)?gt(e):Yn(t,e)}function X(e){return e}var Q="override",ee=V({annotationType_:Q,make_:function(e,n){return e.isPlainObject_&&i("Cannot apply '"+this.annotationType_+"' to '"+e.name_+"."+n.toString()+"':\n'"+this.annotationType_+"' cannot be used on plain objects."),D(e.appliedAnnotations_,n)||i("'"+e.name_+"."+n.toString()+"' is annotated with '"+this.annotationType_+"', but no such annotated member was found on prototype."),0},extend_:function(e,n,t,r){i("'"+this.annotationType_+"' can only be used with 'makeObservable'")}});function ne(e){return e.annotationType_===Q}function te(e,n){return{annotationType_:e,options_:n,make_:ie,extend_:re}}function ie(e,n,t,i){var r;if(null!=(r=this.options_)&&r.bound)return null===this.extend_(e,n,t,!1)?0:1;if(i===e.target_)return null===this.extend_(e,n,t,!1)?0:2;if(Xn(t.value))return 1;var o=oe(e,this,n,t,!1);return l(i,n,o),2}function re(e,n,t,i){var r=oe(e,this,n,t);return e.defineProperty_(n,r,i)}function oe(e,n,t,r,o){var a,s,l,c,u,d,_;void 0===o&&(o=bn.safeDescriptors),function(e,n,t,r){var o=n.annotationType_;b(r.value)||i("Cannot apply '"+o+"' to '"+e.name_+"."+t.toString()+"':\n'"+o+"' can only be used on properties with a function value.")}(e,n,t,r);var p,h=r.value;return null!=(a=n.options_)&&a.bound&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_)),{value:Ke(null!=(s=null==(l=n.options_)?void 0:l.name)?s:t.toString(),h,null!=(c=null==(u=n.options_)?void 0:u.autoAction)&&c,null!=(d=n.options_)&&d.bound?null!=(_=e.proxy_)?_:e.target_:void 0),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function ae(e,n){return{annotationType_:e,options_:n,make_:se,extend_:le}}function se(e,n,t,i){var r;if(i===e.target_)return null===this.extend_(e,n,t,!1)?0:2;if(null!=(r=this.options_)&&r.bound&&(!D(e.target_,n)||!mt(e.target_[n]))&&null===this.extend_(e,n,t,!1))return 0;if(mt(t.value))return 1;var o=ce(e,this,n,t,!1,!1);return l(i,n,o),2}function le(e,n,t,i){var r,o=ce(e,this,n,t,null==(r=this.options_)?void 0:r.bound);return e.defineProperty_(n,o,i)}function ce(e,n,t,r,o,a){void 0===a&&(a=bn.safeDescriptors),function(e,n,t,r){var o=n.annotationType_;b(r.value)||i("Cannot apply '"+o+"' to '"+e.name_+"."+t.toString()+"':\n'"+o+"' can only be used on properties with a generator function value.")}(e,n,t,r);var s,l=r.value;return mt(l)||(l=gt(l)),o&&((l=l.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:l,configurable:!a||e.isPlainObject_,enumerable:!1,writable:!a}}function ue(e,n){return{annotationType_:e,options_:n,make_:de,extend_:_e}}function de(e,n,t){return null===this.extend_(e,n,t,!1)?0:1}function _e(e,n,t,r){return function(e,n,t,r){var o=n.annotationType_;r.get||i("Cannot apply '"+o+"' to '"+e.name_+"."+t.toString()+"':\n'"+o+"' can only be used on getter(+setter) properties.")}(e,this,n,t),e.defineComputedProperty_(n,B({},this.options_,{get:t.get,set:t.set}),r)}function pe(e,n){return{annotationType_:e,options_:n,make_:he,extend_:fe}}function he(e,n,t){return null===this.extend_(e,n,t,!1)?0:1}function fe(e,n,t,r){var o,a;return function(e,n,t,r){var o=n.annotationType_;"value"in r||i("Cannot apply '"+o+"' to '"+e.name_+"."+t.toString()+"':\n'"+o+"' cannot be used on getter/setter properties")}(e,this,n,t),e.defineObservableProperty_(n,t.value,null!=(o=null==(a=this.options_)?void 0:a.enhancer)?o:J,r)}var ge="true",ve=me();function me(e){return{annotationType_:ge,options_:e,make_:be,extend_:we}}function be(e,n,t,i){var r,o,a,s;if(t.get)return Ne.make_(e,n,t,i);if(t.set){var c=Ke(n.toString(),t.set);return i===e.target_?null===e.defineProperty_(n,{configurable:!bn.safeDescriptors||e.isPlainObject_,set:c})?0:2:(l(i,n,{configurable:!0,set:c}),2)}if(i!==e.target_&&"function"==typeof t.value)return E(t.value)?(null!=(s=this.options_)&&s.autoBind?gt.bound:gt).make_(e,n,t,i):(null!=(a=this.options_)&&a.autoBind?Yn.bound:Yn).make_(e,n,t,i);var u,d=!1===(null==(r=this.options_)?void 0:r.deep)?Le.ref:Le;return"function"==typeof t.value&&null!=(o=this.options_)&&o.autoBind&&(t.value=t.value.bind(null!=(u=e.proxy_)?u:e.target_)),d.make_(e,n,t,i)}function we(e,n,t,i){var r,o,a;return t.get?Ne.extend_(e,n,t,i):t.set?e.defineProperty_(n,{configurable:!bn.safeDescriptors||e.isPlainObject_,set:Ke(n.toString(),t.set)},i):("function"==typeof t.value&&null!=(r=this.options_)&&r.autoBind&&(t.value=t.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Le.ref:Le).extend_(e,n,t,i))}var ye={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ke(e){return e||ye}Object.freeze(ye);var Ee=pe("observable"),Oe=pe("observable.ref",{enhancer:X}),Te=pe("observable.shallow",{enhancer:function(e,n,t){return null==e||fi(e)||Xt(e)||oi(e)||li(e)?e:Array.isArray(e)?Le.array(e,{name:t,deep:!1}):k(e)?Le.object(e,void 0,{name:t,deep:!1}):I(e)?Le.map(e,{name:t,deep:!1}):x(e)?Le.set(e,{name:t,deep:!1}):void i("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}}),Se=pe("observable.struct",{enhancer:function(e,n){return yt(e)&&i("observable.struct should not be used with observable values"),Ci(e,n)?n:e}}),Ie=V(Ee);function xe(e){return!0===e.deep?J:!1===e.deep?X:(n=e.defaultDecorator)&&null!=(t=null==(i=n.options_)?void 0:i.enhancer)?t:J;var n,t,i}function Ae(e,n,t){if(!w(n))return yt(e)?e:k(e)?Le.object(e,n,t):Array.isArray(e)?Le.array(e,n):I(e)?Le.map(e,n):x(e)?Le.set(e,n):"object"==typeof e&&null!==e?e:Le.box(e,n);q(e,n,Ee)}Object.assign(Ae,Ie);var Ce,Pe,Le=a(Ae,{box:function(e,n){var t=ke(n);return new Ye(e,xe(t),t.name,!0,t.equals)},array:function(e,n){var t=ke(n);return(!1===bn.useProxies||!1===t.proxy?Ti:Wt)(e,xe(t),t.name)},map:function(e,n){var t=ke(n);return new ri(e,xe(t),t.name)},set:function(e,n){var t=ke(n);return new si(e,xe(t),t.name)},object:function(e,n,t){return lt(!1===bn.useProxies||!1===(null==t?void 0:t.proxy)?_i({},t):function(e,n){var t,i;return h(),null!=(i=(t=(e=_i(e,n))[F]).proxy_)?i:t.proxy_=new Proxy(e,Pt)}({},t),e,n)},ref:V(Oe),shallow:V(Te),deep:Ie,struct:V(Se)}),De="computed",Me=ue(De),Re=ue("computed.struct",{equals:Y.structural}),Ne=function(e,n){if(w(n))return q(e,n,Me);if(k(e))return V(ue(De,e));b(e)||i("First argument to `computed` should be an expression."),b(n)&&i("A setter as second argument is no longer supported, use `{ set: fn }` option instead");var t=k(n)?n:{};return t.get=e,t.name||(t.name=e.name||""),new en(t)};Object.assign(Ne,Me),Ne.struct=V(Re);var Be,$e=0,je=1,ze=null!=(Ce=null==(Pe=s((function(){}),"name"))?void 0:Pe.configurable)&&Ce,Ue={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ke(e,n,t,r){function o(){return We(e,t,n,r||this,arguments)}return void 0===t&&(t=!1),b(n)||i("`action` can only be invoked on functions"),"string"==typeof e&&e||i("actions should have valid names, got: '"+e+"'"),o.isMobxAction=!0,ze&&(Ue.value=e,Object.defineProperty(o,"name",Ue)),o}function We(e,n,t,i,r){var o=Ve(e,n,i,r);try{return t.apply(i,r)}catch(e){throw o.error_=e,e}finally{qe(o)}}function Ve(e,n,t,i){var r=Rn()&&!!e,o=0;if(r){o=Date.now();var a=i?Array.from(i):u;Bn({type:Un,name:e,object:t,arguments:a})}var s=bn.trackingDerivation,l=!n||!s;En();var c=bn.allowStateChanges;l&&(un(),c=Ze(!0));var d={runAsAction_:l,prevDerivation_:s,prevAllowStateChanges_:c,prevAllowStateReads_:_n(!0),notifySpy_:r,startTime_:o,actionId_:je++,parentActionId_:$e};return $e=d.actionId_,d}function qe(e){$e!==e.actionId_&&i(30),$e=e.parentActionId_,void 0!==e.error_&&(bn.suppressReactionErrors=!0),He(e.prevAllowStateChanges_),pn(e.prevAllowStateReads_),On(),e.runAsAction_&&dn(e.prevDerivation_),e.notifySpy_&&jn({time:Date.now()-e.startTime_}),bn.suppressReactionErrors=!1}function Fe(e,n){var t=Ze(e);try{return n()}finally{He(t)}}function Ze(e){var n=bn.allowStateChanges;return bn.allowStateChanges=e,n}function He(e){bn.allowStateChanges=e}Be=Symbol.toPrimitive;var Ge,Ye=function(e){function n(n,t,i,r,o){var a;return void 0===i&&(i="ObservableValue@"+g()),void 0===r&&(r=!0),void 0===o&&(o=Y.default),(a=e.call(this,i)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=t,a.name_=i,a.equals=o,a.value_=t(n,void 0,i),r&&Rn()&&Nn({type:"create",object:z(a),observableKind:"value",debugObjectName:a.name_,newValue:""+a.value_}),a}$(n,e);var t=n.prototype;return t.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.set=function(e){var n=this.value_;if((e=this.prepareNewValue_(e))!==bn.UNCHANGED){var t=Rn();t&&Bn({type:zt,object:this,observableKind:"value",debugObjectName:this.name_,newValue:e,oldValue:n}),this.setNewValue_(e),t&&jn()}},t.prepareNewValue_=function(e){if(an(this),Lt(this)){var n=Mt(this,{object:this,type:zt,newValue:e});if(!n)return bn.UNCHANGED;e=n.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?bn.UNCHANGED:e},t.setNewValue_=function(e){var n=this.value_;this.value_=e,this.reportChanged(),Rt(this)&&Bt(this,{type:zt,object:this,newValue:e,oldValue:n})},t.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},t.intercept_=function(e){return Dt(this,e)},t.observe_=function(e,n){return n&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:zt,newValue:this.value_,oldValue:void 0}),Nt(this,e)},t.raw=function(){return this.value_},t.toJSON=function(){return this.get()},t.toString=function(){return this.name_+"["+this.value_+"]"},t.valueOf=function(){return L(this.get())},t[Be]=function(){return this.valueOf()},n}(Z),Je=S("ObservableValue",Ye);Ge=Symbol.toPrimitive;var Xe,Qe,en=function(){function e(e){this.dependenciesState_=Xe.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Xe.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new tn(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Qe.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||i(31),this.derivation=e.get,this.name_=e.name||"ComputedValue@"+g(),e.set&&(this.setter_=Ke(this.name_+"-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?Y.structural:Y.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var n=e.prototype;return n.onBecomeStale_=function(){!function(e){e.lowestObserverState_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===Xe.UP_TO_DATE_&&(e.dependenciesState_=Xe.POSSIBLY_STALE_,e.onBecomeStale_())})))}(this)},n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},n.get=function(){if(this.isComputing_&&i(32,this.name_,this.derivation),0!==bn.inBatch||0!==this.observers_.size||this.keepAlive_){if(Tn(this),on(this)){var e=bn.trackingContext;this.keepAlive_&&!e&&(bn.trackingContext=this),this.trackAndCompute()&&function(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(n){n.dependenciesState_===Xe.POSSIBLY_STALE_?(n.dependenciesState_=Xe.STALE_,n.isTracing_!==Qe.NONE&&In(n,e)):n.dependenciesState_===Xe.UP_TO_DATE_&&(e.lowestObserverState_=Xe.UP_TO_DATE_)})))}(this),bn.trackingContext=e}}else on(this)&&(this.warnAboutUntrackedRead_(),En(),this.value_=this.computeValue_(!1),On());var n=this.value_;if(rn(n))throw n.cause;return n},n.set=function(e){if(this.setter_){this.isRunningSetter_&&i(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else i(34,this.name_)},n.trackAndCompute=function(){var e=this.value_,n=this.dependenciesState_===Xe.NOT_TRACKING_,t=this.computeValue_(!0),i=n||rn(e)||rn(t)||!this.equals_(e,t);return i&&(this.value_=t,Rn()&&Nn({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:e,newValue:t})),i},n.computeValue_=function(e){this.isComputing_=!0;var n,t=Ze(!1);if(e)n=sn(this,this.derivation,this.scope_);else if(!0===bn.disableErrorBoundaries)n=this.derivation.call(this.scope_);else try{n=this.derivation.call(this.scope_)}catch(e){n=new tn(e)}return He(t),this.isComputing_=!1,n},n.suspend_=function(){this.keepAlive_||(ln(this),this.value_=void 0,this.isTracing_!==Qe.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},n.observe_=function(e,n){var t=this,i=!0,r=void 0;return Qn((function(){var o=t.get();if(!i||n){var a=un();e({observableKind:"computed",debugObjectName:t.name_,type:zt,object:t,newValue:o,oldValue:r}),dn(a)}i=!1,r=o}))},n.warnAboutUntrackedRead_=function(){this.isTracing_!==Qe.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),("boolean"==typeof this.requiresReaction_?this.requiresReaction_:bn.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute.")},n.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},n.valueOf=function(){return L(this.get())},n[Ge]=function(){return this.valueOf()},e}(),nn=S("ComputedValue",en);(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(Xe||(Xe={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Qe||(Qe={}));var tn=function(e){this.cause=void 0,this.cause=e};function rn(e){return e instanceof tn}function on(e){switch(e.dependenciesState_){case Xe.UP_TO_DATE_:return!1;case Xe.NOT_TRACKING_:case Xe.STALE_:return!0;case Xe.POSSIBLY_STALE_:for(var n=_n(!0),t=un(),i=e.observing_,r=i.length,o=0;o<r;o++){var a=i[o];if(nn(a)){if(bn.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return dn(t),pn(n),!0}if(e.dependenciesState_===Xe.STALE_)return dn(t),pn(n),!0}}return hn(e),dn(t),pn(n),!1}}function an(e){var n=e.observers_.size>0;bn.allowStateChanges||!n&&"always"!==bn.enforceActions||console.warn("[MobX] "+(bn.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}function sn(e,n,t){var i=_n(!0);hn(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++bn.runId;var r,o=bn.trackingDerivation;if(bn.trackingDerivation=e,bn.inBatch++,!0===bn.disableErrorBoundaries)r=n.call(t);else try{r=n.call(t)}catch(e){r=new tn(e)}return bn.inBatch--,bn.trackingDerivation=o,function(e){for(var n=e.observing_,t=e.observing_=e.newObserving_,i=Xe.UP_TO_DATE_,r=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=t[a];0===s.diffValue_&&(s.diffValue_=1,r!==a&&(t[r]=s),r++),s.dependenciesState_>i&&(i=s.dependenciesState_)}for(t.length=r,e.newObserving_=null,o=n.length;o--;){var l=n[o];0===l.diffValue_&&yn(l,e),l.diffValue_=0}for(;r--;){var c=t[r];1===c.diffValue_&&(c.diffValue_=0,wn(c,e))}i!==Xe.UP_TO_DATE_&&(e.dependenciesState_=i,e.onBecomeStale_())}(e),function(e){0===e.observing_.length&&("boolean"==typeof e.requiresObservable_?e.requiresObservable_:bn.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}(e),pn(i),r}function ln(e){var n=e.observing_;e.observing_=[];for(var t=n.length;t--;)yn(n[t],e);e.dependenciesState_=Xe.NOT_TRACKING_}function cn(e){var n=un();try{return e()}finally{dn(n)}}function un(){var e=bn.trackingDerivation;return bn.trackingDerivation=null,e}function dn(e){bn.trackingDerivation=e}function _n(e){var n=bn.allowStateReads;return bn.allowStateReads=e,n}function pn(e){bn.allowStateReads=e}function hn(e){if(e.dependenciesState_!==Xe.UP_TO_DATE_){e.dependenciesState_=Xe.UP_TO_DATE_;for(var n=e.observing_,t=n.length;t--;)n[t].lowestObserverState_=Xe.UP_TO_DATE_}}var fn=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],gn=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},vn=!0,mn=!1,bn=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(vn=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new gn).version&&(vn=!1),vn?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new gn):(setTimeout((function(){mn||i(35)}),1),new gn)}();function wn(e,n){e.observers_.add(n),e.lowestObserverState_>n.dependenciesState_&&(e.lowestObserverState_=n.dependenciesState_)}function yn(e,n){e.observers_.delete(n),0===e.observers_.size&&kn(e)}function kn(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,bn.pendingUnobservations.push(e))}function En(){bn.inBatch++}function On(){if(0==--bn.inBatch){Ln();for(var e=bn.pendingUnobservations,n=0;n<e.length;n++){var t=e[n];t.isPendingUnobservation_=!1,0===t.observers_.size&&(t.isBeingObserved_&&(t.isBeingObserved_=!1,t.onBUO()),t instanceof en&&t.suspend_())}bn.pendingUnobservations=[]}}function Tn(e){!function(e){!bn.allowStateReads&&bn.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}(e);var n=bn.trackingDerivation;return null!==n?(n.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=n.runId_,n.newObserving_[n.unboundDepsCount_++]=e,!e.isBeingObserved_&&bn.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&bn.inBatch>0&&kn(e),!1)}function Sn(e){e.lowestObserverState_!==Xe.STALE_&&(e.lowestObserverState_=Xe.STALE_,e.observers_.forEach((function(n){n.dependenciesState_===Xe.UP_TO_DATE_&&(n.isTracing_!==Qe.NONE&&In(n,e),n.onBecomeStale_()),n.dependenciesState_=Xe.STALE_})))}function In(e,n){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+n.name_+"'"),e.isTracing_===Qe.BREAK){var t=[];xn(ct(e),t,1),new Function("debugger;\n/*\nTracing '"+e.name_+"'\n\nYou are entering this break point because derivation '"+e.name_+"' is being traced and '"+n.name_+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof en?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+t.join("\n")+"\n*/\n    ")()}}function xn(e,n,t){n.length>=1e3?n.push("(and many more)"):(n.push(""+"\t".repeat(t-1)+e.name),e.dependencies&&e.dependencies.forEach((function(e){return xn(e,n,t+1)})))}var An=function(){function e(e,n,t,i){void 0===e&&(e="Reaction@"+g()),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Xe.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Qe.NONE,this.name_=e,this.onInvalidate_=n,this.errorHandler_=t,this.requiresObservable_=i}var n=e.prototype;return n.onBecomeStale_=function(){this.schedule_()},n.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,bn.pendingReactions.push(this),Ln())},n.isScheduled=function(){return this.isScheduled_},n.runReaction_=function(){if(!this.isDisposed_){En(),this.isScheduled_=!1;var e=bn.trackingContext;if(bn.trackingContext=this,on(this)){this.isTrackPending_=!0;try{this.onInvalidate_(),this.isTrackPending_&&Rn()&&Nn({name:this.name_,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation_(e)}}bn.trackingContext=e,On()}},n.track=function(e){if(!this.isDisposed_){En();var n,t=Rn();t&&(n=Date.now(),Bn({name:this.name_,type:"reaction"})),this.isRunning_=!0;var i=bn.trackingContext;bn.trackingContext=this;var r=sn(this,e,void 0);bn.trackingContext=i,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ln(this),rn(r)&&this.reportExceptionInDerivation_(r.cause),t&&jn({time:Date.now()-n}),On()}},n.reportExceptionInDerivation_=function(e){var n=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(bn.disableErrorBoundaries)throw e;var t="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";bn.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(t,e),Rn()&&Nn({type:"error",name:this.name_,message:t,error:""+e}),bn.globalReactionErrorHandlers.forEach((function(t){return t(e,n)}))}},n.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(En(),ln(this),On()))},n.getDisposer_=function(){var e=this.dispose.bind(this);return e[F]=this,e},n.toString=function(){return"Reaction["+this.name_+"]"},n.trace=function(e){void 0===e&&(e=!1),It(this,e)},e}();var Cn=100,Pn=function(e){return e()};function Ln(){bn.inBatch>0||bn.isRunningReactions||Pn(Dn)}function Dn(){bn.isRunningReactions=!0;for(var e=bn.pendingReactions,n=0;e.length>0;){++n===Cn&&(console.error("Reaction doesn't converge to a stable state after "+Cn+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var t=e.splice(0),i=0,r=t.length;i<r;i++)t[i].runReaction_()}bn.isRunningReactions=!1}var Mn=S("Reaction",An);function Rn(){return!!bn.spyListeners.length}function Nn(e){if(bn.spyListeners.length)for(var n=bn.spyListeners,t=0,i=n.length;t<i;t++)n[t](e)}function Bn(e){Nn(B({},e,{spyReportStart:!0}))}var $n={type:"report-end",spyReportEnd:!0};function jn(e){Nn(e?B({},e,{type:"report-end",spyReportEnd:!0}):$n)}function zn(e){return bn.spyListeners.push(e),v((function(){bn.spyListeners=bn.spyListeners.filter((function(n){return n!==e}))}))}var Un="action",Kn="autoAction",Wn="<unnamed action>",Vn=te(Un),qn=te("action.bound",{bound:!0}),Fn=te(Kn,{autoAction:!0}),Zn=te("autoAction.bound",{autoAction:!0,bound:!0});function Hn(e){return function(n,t){return b(n)?Ke(n.name||Wn,n,e):b(t)?Ke(n,t,e):w(t)?q(n,t,e?Fn:Vn):w(n)?V(te(e?Kn:Un,{name:n,autoAction:e})):void i("Invalid arguments for `action`")}}var Gn=Hn(!1);Object.assign(Gn,Vn);var Yn=Hn(!0);function Jn(e){return We(e.name||Wn,!1,e,this,void 0)}function Xn(e){return b(e)&&!0===e.isMobxAction}function Qn(e,n){var t,r;void 0===n&&(n=d),b(e)||i("Autorun expects a function as first argument"),Xn(e)&&i("Autorun does not accept actions since actions are untrackable");var o,a=null!=(t=null==(r=n)?void 0:r.name)?t:e.name||"Autorun@"+g();if(n.scheduler||n.delay){var s=nt(n),l=!1;o=new An(a,(function(){l||(l=!0,s((function(){l=!1,o.isDisposed_||o.track(c)})))}),n.onError,n.requiresObservable)}else o=new An(a,(function(){this.track(c)}),n.onError,n.requiresObservable);function c(){e(o)}return o.schedule_(),o.getDisposer_()}Object.assign(Yn,Fn),Gn.bound=V(qn),Yn.bound=V(Zn);var et=function(e){return e()};function nt(e){return e.scheduler?e.scheduler:e.delay?function(n){return setTimeout(n,e.delay)}:et}var tt="onBO",it="onBUO";function rt(e,n,t){return at(tt,e,n,t)}function ot(e,n,t){return at(it,e,n,t)}function at(e,n,t,i){var r="function"==typeof i?Si(n,t):Si(n),o=b(i)?i:t,a=e+"L";return r[a]?r[a].add(o):r[a]=new Set([o]),function(){var e=r[a];e&&(e.delete(o),0===e.size&&delete r[a])}}var st="always";function lt(e,n,t,r){arguments.length>4&&i("'extendObservable' expected 2-4 arguments"),"object"!=typeof e&&i("'extendObservable' expects an object as first argument"),oi(e)&&i("'extendObservable' should not be used on maps, use map.merge instead"),k(n)||i("'extendObservable' only accepts plain objects as second argument"),(yt(n)||yt(t))&&i("Extending an object with another observable (object) is not supported");var o=M(n),a=_i(e,r)[F];En();try{C(o).forEach((function(e){a.extend_(e,o[e],!t||!(e in t)||t[e])}))}finally{On()}return e}function ct(e,n){return ut(Si(e,n))}function ut(e){var n,t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=(n=e.observing_,Array.from(new Set(n))).map(ut)),t}function dt(e){var n={name:e.name_};return function(e){return e.observers_&&e.observers_.size>0}(e)&&(n.observers=Array.from(function(e){return e.observers_}(e)).map(dt)),n}var _t=0;function pt(){this.message="FLOW_CANCELLED"}pt.prototype=Object.create(Error.prototype);var ht=ae("flow"),ft=ae("flow.bound",{bound:!0}),gt=Object.assign((function(e,n){if(w(n))return q(e,n,ht);1!==arguments.length&&i("Flow expects single argument with generator function");var t=e,r=t.name||"<unnamed flow>",o=function(){var e,n=arguments,i=++_t,o=Gn(r+" - runid: "+i+" - init",t).apply(this,n),a=void 0,s=new Promise((function(n,t){var s=0;function l(e){var n;a=void 0;try{n=Gn(r+" - runid: "+i+" - yield "+s++,o.next).call(o,e)}catch(e){return t(e)}u(n)}function c(e){var n;a=void 0;try{n=Gn(r+" - runid: "+i+" - yield "+s++,o.throw).call(o,e)}catch(e){return t(e)}u(n)}function u(e){if(!b(null==e?void 0:e.then))return e.done?n(e.value):(a=Promise.resolve(e.value)).then(l,c);e.then(u,t)}e=t,l(void 0)}));return s.cancel=Gn(r+" - runid: "+i+" - cancel",(function(){try{a&&vt(a);var n=o.return(void 0),t=Promise.resolve(n.value);t.then(m,m),vt(t),e(new pt)}catch(n){e(n)}})),s};return o.isMobXFlow=!0,o}),ht);function vt(e){b(e.cancel)&&e.cancel()}function mt(e){return!0===(null==e?void 0:e.isMobXFlow)}function bt(e,n){if(void 0===n)return nn(e);if(!1===fi(e))return!1;if(!e[F].values_.has(n))return!1;var t=Si(e,n);return nn(t)}function wt(e,n){return!!e&&(void 0!==n?oi(e)||Xt(e)?i("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead."):!!fi(e)&&e[F].values_.has(n):fi(e)||!!e[F]||H(e)||Mn(e)||nn(e))}function yt(e){return 1!==arguments.length&&i("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),wt(e)}function kt(e){return fi(e)?e[F].keys_():oi(e)||li(e)?Array.from(e.keys()):Xt(e)?e.map((function(e,n){return n})):void i(5)}function Et(e,n){return fi(e)?e[F].has_(n):oi(e)||li(e)?e.has(n):Xt(e)?n>=0&&n<e.length:void i(10)}function Ot(e){if(fi(e))return e[F].ownKeys_();i(38)}function Tt(e,n,t){return e.set(n,t),t}function St(e,n){if(null==e||"object"!=typeof e||e instanceof Date||!yt(e))return e;if(Je(e)||nn(e))return St(e.get(),n);if(n.has(e))return n.get(e);if(Xt(e)){var t=Tt(n,e,new Array(e.length));return e.forEach((function(e,i){t[i]=St(e,n)})),t}if(li(e)){var i=Tt(n,e,new Set);return e.forEach((function(e){i.add(St(e,n))})),i}if(oi(e)){var r=Tt(n,e,new Map);return e.forEach((function(e,t){r.set(t,St(e,n))})),r}var o=Tt(n,e,{});return Ot(e).forEach((function(t){c.propertyIsEnumerable.call(e,t)&&(o[t]=St(e[t],n))})),o}function It(){for(var e=!1,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];"boolean"==typeof t[t.length-1]&&(e=t.pop());var o=function(e){switch(e.length){case 0:return bn.trackingDerivation;case 1:return Si(e[0]);case 2:return Si(e[0],e[1])}}(t);if(!o)return i("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Qe.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?Qe.BREAK:Qe.LOG}function xt(e,n){void 0===n&&(n=void 0),En();try{return e.apply(n)}finally{On()}}function At(e,n,t){var i;if("number"==typeof t.timeout){var r=new Error("WHEN_TIMEOUT");i=setTimeout((function(){if(!a[F].isDisposed_){if(a(),!t.onError)throw r;t.onError(r)}}),t.timeout)}t.name=t.name||"When@"+g();var o=Ke(t.name+"-effect",n),a=Qn((function(n){Fe(!1,e)&&(n.dispose(),i&&clearTimeout(i),o())}),t);return a}function Ct(e){return e[F]}gt.bound=V(ft);var Pt={has:function(e,n){return bn.trackingDerivation&&f("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),Ct(e).has_(n)},get:function(e,n){return Ct(e).get_(n)},set:function(e,n,t){var i;return!!w(n)&&(Ct(e).values_.has(n)||f("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),null==(i=Ct(e).set_(n,t,!0))||i)},deleteProperty:function(e,n){var t;return f("delete properties from an observable object. Use 'remove' from 'mobx' instead."),!!w(n)&&(null==(t=Ct(e).delete_(n,!0))||t)},defineProperty:function(e,n,t){var i;return f("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),null==(i=Ct(e).defineProperty_(n,t))||i},ownKeys:function(e){return bn.trackingDerivation&&f("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),Ct(e).ownKeys_()},preventExtensions:function(e){i(13)}};function Lt(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Dt(e,n){var t=e.interceptors_||(e.interceptors_=[]);return t.push(n),v((function(){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}))}function Mt(e,n){var t=un();try{for(var r=[].concat(e.interceptors_||[]),o=0,a=r.length;o<a&&((n=r[o](n))&&!n.type&&i(14),n);o++);return n}finally{dn(t)}}function Rt(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function Nt(e,n){var t=e.changeListeners_||(e.changeListeners_=[]);return t.push(n),v((function(){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}))}function Bt(e,n){var t=un(),i=e.changeListeners_;if(i){for(var r=0,o=(i=i.slice()).length;r<o;r++)i[r](n);dn(t)}}var $t=Symbol("mobx-keys");var jt="splice",zt="update",Ut={get:function(e,n){var t=e[F];return n===F?t:"length"===n?t.getArrayLength_():"string"!=typeof n||isNaN(n)?D(Vt,n)?Vt[n]:e[n]:t.get_(parseInt(n))},set:function(e,n,t){var i=e[F];return"length"===n&&i.setArrayLength_(t),"symbol"==typeof n||isNaN(n)?e[n]=t:i.set_(parseInt(n),t),!0},preventExtensions:function(){i(15)}},Kt=function(){function e(e,n,t,i){void 0===e&&(e="ObservableArray@"+g()),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=t,this.legacyMode_=i,this.atom_=new Z(e),this.enhancer_=function(t,i){return n(t,i,e+"[..]")}}var n=e.prototype;return n.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},n.intercept_=function(e){return Dt(this,e)},n.observe_=function(e,n){return void 0===n&&(n=!1),n&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Nt(this,e)},n.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},n.setArrayLength_=function(e){("number"!=typeof e||isNaN(e)||e<0)&&i("Out of range: "+e);var n=this.values_.length;if(e!==n)if(e>n){for(var t=new Array(e-n),r=0;r<e-n;r++)t[r]=void 0;this.spliceWithArray_(n,0,t)}else this.spliceWithArray_(e,n-e)},n.updateArrayLength_=function(e,n){e!==this.lastKnownLength_&&i(16),this.lastKnownLength_+=n,this.legacyMode_&&n>0&&Oi(e+n+1)},n.spliceWithArray_=function(e,n,t){var i=this;an(this.atom_);var r=this.values_.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),n=1===arguments.length?r-e:null==n?0:Math.max(0,Math.min(n,r-e)),void 0===t&&(t=u),Lt(this)){var o=Mt(this,{object:this.proxy_,type:jt,index:e,removedCount:n,added:t});if(!o)return u;n=o.removedCount,t=o.added}var a={};for(var s in t)String(s).endsWith("$id$")&&(a[s]=t[s]);t=0===t.length?t:t.map((function(e){return i.enhancer_(e,void 0)})),this.legacyMode_;var l=t.length-n;this.updateArrayLength_(r,l);var c=this.spliceItemsIntoValues_(e,n,t,a);return 0===n&&0===t.length||this.notifyArraySplice_(e,t,c),this.dehanceValues_(c)},n.spliceItemsIntoValues_=function(e,n,t,i){if(t.length<1e4){var r,o=(r=this.values_).splice.apply(r,[e,n].concat(t));if(i)for(var a in i)r[a]=i[a];return o}var s=this.values_.slice(e,e+n),l=this.values_.slice(e+n);this.values_.length+=t.length-n;for(var c=0;c<t.length;c++)this.values_[e+c]=t[c];for(var u=0;u<l.length;u++)this.values_[e+t.length+u]=l[u];return s},n.notifyArrayChildUpdate_=function(e,n,t){var i=!this.owned_&&Rn(),r=Rt(this),o=r||i?{observableKind:"array",object:this.proxy_,type:zt,debugObjectName:this.atom_.name_,index:e,newValue:n,oldValue:t}:null;i&&Bn(o),this.atom_.reportChanged(),r&&Bt(this,o),i&&jn()},n.notifyArraySplice_=function(e,n,t){var i=!this.owned_&&Rn(),r=Rt(this),o=r||i?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:jt,index:e,removed:t,added:n,removedCount:t.length,addedCount:n.length}:null;i&&Bn(o),this.atom_.reportChanged(),r&&Bt(this,o),i&&jn()},n.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},n.set_=function(e,n){var t=this.values_;if(e<t.length){an(this.atom_);var r=t[e];if(Lt(this)){var o=Mt(this,{type:zt,object:this.proxy_,index:e,newValue:n});if(!o)return;n=o.newValue}(n=this.enhancer_(n,r))!==r&&(t[e]=n,this.notifyArrayChildUpdate_(e,n,r))}else e===t.length?this.spliceWithArray_(e,0,[n]):i(17,e,t.length)},e}();function Wt(e,n,t,i){void 0===t&&(t="ObservableArray@"+g()),void 0===i&&(i=!1),h();var r=new Kt(t,n,i,!1);T(r.values_,F,r);var o=new Proxy(r.values_,Ut);if(r.proxy_=o,e&&e.length){var a=Ze(!0);r.spliceWithArray_(0,0,e),He(a)}return o}var Vt={clear:function(){return this.splice(0)},replace:function(e){var n=this[F];return n.spliceWithArray_(0,n.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,n){for(var t=arguments.length,i=new Array(t>2?t-2:0),r=2;r<t;r++)i[r-2]=arguments[r];var o=this[F];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,n)}return o.spliceWithArray_(e,n,i)},spliceWithArray:function(e,n,t){return this[F].spliceWithArray_(e,n,t)},push:function(){for(var e=this[F],n=arguments.length,t=new Array(n),i=0;i<n;i++)t[i]=arguments[i];return e.spliceWithArray_(e.values_.length,0,t),e.values_.length},pop:function(){return this.splice(Math.max(this[F].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[F],n=arguments.length,t=new Array(n),i=0;i<n;i++)t[i]=arguments[i];return e.spliceWithArray_(0,0,t),e.values_.length},reverse:function(){return bn.trackingDerivation&&i(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){bn.trackingDerivation&&i(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var n=this[F],t=n.dehanceValues_(n.values_).indexOf(e);return t>-1&&(this.splice(t,1),!0)}};function qt(e,n){"function"==typeof Array.prototype[e]&&(Vt[e]=n(e))}function Ft(e){return function(){var n=this[F];n.atom_.reportObserved();var t=n.dehanceValues_(n.values_);return t[e].apply(t,arguments)}}function Zt(e){return function(n,t){var i=this,r=this[F];return r.atom_.reportObserved(),r.dehanceValues_(r.values_)[e]((function(e,r){return n.call(t,e,r,i)}))}}function Ht(e){return function(){var n=this,t=this[F];t.atom_.reportObserved();var i=t.dehanceValues_(t.values_),r=arguments[0];return arguments[0]=function(e,t,i){return r(e,t,i,n)},i[e].apply(i,arguments)}}qt("concat",Ft),qt("flat",Ft),qt("includes",Ft),qt("indexOf",Ft),qt("join",Ft),qt("lastIndexOf",Ft),qt("slice",Ft),qt("toString",Ft),qt("toLocaleString",Ft),qt("every",Zt),qt("filter",Zt),qt("find",Zt),qt("findIndex",Zt),qt("flatMap",Zt),qt("forEach",Zt),qt("map",Zt),qt("some",Zt),qt("reduce",Ht),qt("reduceRight",Ht);var Gt,Yt,Jt=S("ObservableArrayAdministration",Kt);function Xt(e){return y(e)&&Jt(e[F])}var Qt={},ei="add",ni="delete";Gt=Symbol.iterator,Yt=Symbol.toStringTag;var ti,ii,ri=function(){function e(e,n,t){var r=this;void 0===n&&(n=J),void 0===t&&(t="ObservableMap@"+g()),this.enhancer_=void 0,this.name_=void 0,this[F]=Qt,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=t,b(Map)||i(18),this.keysAtom_=G(this.name_+".keys()"),this.data_=new Map,this.hasMap_=new Map,Fe(!0,(function(){r.merge(e)}))}var n=e.prototype;return n.has_=function(e){return this.data_.has(e)},n.has=function(e){var n=this;if(!bn.trackingDerivation)return this.has_(e);var t=this.hasMap_.get(e);if(!t){var i=t=new Ye(this.has_(e),X,this.name_+"."+P(e)+"?",!1);this.hasMap_.set(e,i),ot(i,(function(){return n.hasMap_.delete(e)}))}return t.get()},n.set=function(e,n){var t=this.has_(e);if(Lt(this)){var i=Mt(this,{type:t?zt:ei,object:this,newValue:n,name:e});if(!i)return this;n=i.newValue}return t?this.updateValue_(e,n):this.addValue_(e,n),this},n.delete=function(e){var n=this;if(an(this.keysAtom_),Lt(this)&&!Mt(this,{type:ni,object:this,name:e}))return!1;if(this.has_(e)){var t=Rn(),i=Rt(this),r=i||t?{observableKind:"map",debugObjectName:this.name_,type:ni,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return t&&Bn(r),xt((function(){var t;n.keysAtom_.reportChanged(),null==(t=n.hasMap_.get(e))||t.setNewValue_(!1),n.data_.get(e).setNewValue_(void 0),n.data_.delete(e)})),i&&Bt(this,r),t&&jn(),!0}return!1},n.updateValue_=function(e,n){var t=this.data_.get(e);if((n=t.prepareNewValue_(n))!==bn.UNCHANGED){var i=Rn(),r=Rt(this),o=r||i?{observableKind:"map",debugObjectName:this.name_,type:zt,object:this,oldValue:t.value_,name:e,newValue:n}:null;i&&Bn(o),t.setNewValue_(n),r&&Bt(this,o),i&&jn()}},n.addValue_=function(e,n){var t=this;an(this.keysAtom_),xt((function(){var i,r=new Ye(n,t.enhancer_,t.name_+"."+P(e),!1);t.data_.set(e,r),n=r.value_,null==(i=t.hasMap_.get(e))||i.setNewValue_(!0),t.keysAtom_.reportChanged()}));var i=Rn(),r=Rt(this),o=r||i?{observableKind:"map",debugObjectName:this.name_,type:ei,object:this,name:e,newValue:n}:null;i&&Bn(o),r&&Bt(this,o),i&&jn()},n.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},n.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},n.values=function(){var e=this,n=this.keys();return Di({next:function(){var t=n.next(),i=t.done,r=t.value;return{done:i,value:i?void 0:e.get(r)}}})},n.entries=function(){var e=this,n=this.keys();return Di({next:function(){var t=n.next(),i=t.done,r=t.value;return{done:i,value:i?void 0:[r,e.get(r)]}}})},n[Gt]=function(){return this.entries()},n.forEach=function(e,n){for(var t,i=K(this);!(t=i()).done;){var r=t.value,o=r[0],a=r[1];e.call(n,a,o,this)}},n.merge=function(e){var n=this;return oi(e)&&(e=new Map(e)),xt((function(){k(e)?function(e){var n=Object.keys(e);if(!A)return n;var t=Object.getOwnPropertySymbols(e);return t.length?[].concat(n,t.filter((function(n){return c.propertyIsEnumerable.call(e,n)}))):n}(e).forEach((function(t){return n.set(t,e[t])})):Array.isArray(e)?e.forEach((function(e){var t=e[0],i=e[1];return n.set(t,i)})):I(e)?(e.constructor!==Map&&i(19,e),e.forEach((function(e,t){return n.set(t,e)}))):null!=e&&i(20,e)})),this},n.clear=function(){var e=this;xt((function(){cn((function(){for(var n,t=K(e.keys());!(n=t()).done;){var i=n.value;e.delete(i)}}))}))},n.replace=function(e){var n=this;return xt((function(){for(var t,r=function(e){if(I(e)||oi(e))return e;if(Array.isArray(e))return new Map(e);if(k(e)){var n=new Map;for(var t in e)n.set(t,e[t]);return n}return i(21,e)}(e),o=new Map,a=!1,s=K(n.data_.keys());!(t=s()).done;){var l=t.value;if(!r.has(l))if(n.delete(l))a=!0;else{var c=n.data_.get(l);o.set(l,c)}}for(var u,d=K(r.entries());!(u=d()).done;){var _=u.value,p=_[0],h=_[1],f=n.data_.has(p);if(n.set(p,h),n.data_.has(p)){var g=n.data_.get(p);o.set(p,g),f||(a=!0)}}if(!a)if(n.data_.size!==o.size)n.keysAtom_.reportChanged();else for(var v=n.data_.keys(),m=o.keys(),b=v.next(),w=m.next();!b.done;){if(b.value!==w.value){n.keysAtom_.reportChanged();break}b=v.next(),w=m.next()}n.data_=o})),this},n.toString=function(){return"[object ObservableMap]"},n.toJSON=function(){return Array.from(this)},n.observe_=function(e,n){return!0===n&&i("`observe` doesn't support fireImmediately=true in combination with maps."),Nt(this,e)},n.intercept_=function(e){return Dt(this,e)},N(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Yt,get:function(){return"Map"}}]),e}(),oi=S("ObservableMap",ri);var ai={};ti=Symbol.iterator,ii=Symbol.toStringTag;var si=function(){function e(e,n,t){void 0===n&&(n=J),void 0===t&&(t="ObservableSet@"+g()),this.name_=void 0,this[F]=ai,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=t,b(Set)||i(22),this.atom_=G(this.name_),this.enhancer_=function(e,i){return n(e,i,t)},e&&this.replace(e)}var n=e.prototype;return n.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.clear=function(){var e=this;xt((function(){cn((function(){for(var n,t=K(e.data_.values());!(n=t()).done;){var i=n.value;e.delete(i)}}))}))},n.forEach=function(e,n){for(var t,i=K(this);!(t=i()).done;){var r=t.value;e.call(n,r,r,this)}},n.add=function(e){var n=this;if(an(this.atom_),Lt(this)&&!Mt(this,{type:ei,object:this,newValue:e}))return this;if(!this.has(e)){xt((function(){n.data_.add(n.enhancer_(e,void 0)),n.atom_.reportChanged()}));var t=Rn(),i=Rt(this),r=i||t?{observableKind:"set",debugObjectName:this.name_,type:ei,object:this,newValue:e}:null;t&&Bn(r),i&&Bt(this,r),t&&jn()}return this},n.delete=function(e){var n=this;if(Lt(this)&&!Mt(this,{type:ni,object:this,oldValue:e}))return!1;if(this.has(e)){var t=Rn(),i=Rt(this),r=i||t?{observableKind:"set",debugObjectName:this.name_,type:ni,object:this,oldValue:e}:null;return t&&Bn(r),xt((function(){n.atom_.reportChanged(),n.data_.delete(e)})),i&&Bt(this,r),t&&jn(),!0}return!1},n.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},n.entries=function(){var e=0,n=Array.from(this.keys()),t=Array.from(this.values());return Di({next:function(){var i=e;return e+=1,i<t.length?{value:[n[i],t[i]],done:!1}:{done:!0}}})},n.keys=function(){return this.values()},n.values=function(){this.atom_.reportObserved();var e=this,n=0,t=Array.from(this.data_.values());return Di({next:function(){return n<t.length?{value:e.dehanceValue_(t[n++]),done:!1}:{done:!0}}})},n.replace=function(e){var n=this;return li(e)&&(e=new Set(e)),xt((function(){Array.isArray(e)||x(e)?(n.clear(),e.forEach((function(e){return n.add(e)}))):null!=e&&i("Cannot initialize set from "+e)})),this},n.observe_=function(e,n){return!0===n&&i("`observe` doesn't support fireImmediately=true in combination with sets."),Nt(this,e)},n.intercept_=function(e){return Dt(this,e)},n.toJSON=function(){return Array.from(this)},n.toString=function(){return"[object ObservableSet]"},n[ti]=function(){return this.values()},N(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:ii,get:function(){return"Set"}}]),e}(),li=S("ObservableSet",si),ci=Object.create(null),ui="remove",di=function(){function e(e,n,t,r){void 0===n&&(n=new Map),void 0===r&&(r=ve),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=n,this.name_=t,this.defaultAnnotation_=r,this.keysAtom_=new Z(this.name_+".keys"),this.isPlainObject_=k(this.target_),Ri(this.defaultAnnotation_)||i("defaultAnnotation must be valid annotation"),this.appliedAnnotations_={}}var n=e.prototype;return n.getObservablePropValue_=function(e){return this.values_.get(e).get()},n.setObservablePropValue_=function(e,n){var t=this.values_.get(e);if(t instanceof en)return t.set(n),!0;if(Lt(this)){var i=Mt(this,{type:zt,object:this.proxy_||this.target_,name:e,newValue:n});if(!i)return null;n=i.newValue}if((n=t.prepareNewValue_(n))!==bn.UNCHANGED){var r=Rt(this),o=Rn(),a=r||o?{type:zt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:t.value_,name:e,newValue:n}:null;o&&Bn(a),t.setNewValue_(n),r&&Bt(this,a),o&&jn()}return!0},n.get_=function(e){return bn.trackingDerivation&&!D(this.target_,e)&&this.has_(e),this.target_[e]},n.set_=function(e,n,t){return void 0===t&&(t=!1),D(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,n):t?Reflect.set(this.target_,e,n):(this.target_[e]=n,!0):this.extend_(e,{value:n,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,t)},n.has_=function(e){if(!bn.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var n=this.pendingKeys_.get(e);return n||(n=new Ye(e in this.target_,X,this.name_+"."+P(e)+"?",!1),this.pendingKeys_.set(e,n)),n.get()},n.make_=function(e,n){if(!0===n&&(n=this.defaultAnnotation_),!1!==n){if(vi(this,n,e),!(e in this.target_)){var t;if(null!=(t=this.target_[W])&&t[e])return;i(1,n.annotationType_,this.name_+"."+e.toString())}for(var r=this.target_;r&&r!==c;){var o=s(r,e);if(o){var a=n.make_(this,e,o,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}gi(this,n,e)}},n.extend_=function(e,n,t,i){if(void 0===i&&(i=!1),!0===t&&(t=this.defaultAnnotation_),!1===t)return this.defineProperty_(e,n,i);vi(this,t,e);var r=t.extend_(this,e,n,i);return r&&gi(this,t,e),r},n.defineProperty_=function(e,n,t){void 0===t&&(t=!1);try{En();var i=this.delete_(e);if(!i)return i;if(Lt(this)){var r=Mt(this,{object:this.proxy_||this.target_,name:e,type:ei,newValue:n.value});if(!r)return null;var o=r.newValue;n.value!==o&&(n=B({},n,{value:o}))}if(t){if(!Reflect.defineProperty(this.target_,e,n))return!1}else l(this.target_,e,n);this.notifyPropertyAddition_(e,n.value)}finally{On()}return!0},n.defineObservableProperty_=function(e,n,t,i){void 0===i&&(i=!1);try{En();var r=this.delete_(e);if(!r)return r;if(Lt(this)){var o=Mt(this,{object:this.proxy_||this.target_,name:e,type:ei,newValue:n});if(!o)return null;n=o.newValue}var a=hi(e),s={configurable:!bn.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(i){if(!Reflect.defineProperty(this.target_,e,s))return!1}else l(this.target_,e,s);var c=new Ye(n,t,this.name_+"."+e.toString(),!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{On()}return!0},n.defineComputedProperty_=function(e,n,t){void 0===t&&(t=!1);try{En();var i=this.delete_(e);if(!i)return i;if(Lt(this)&&!Mt(this,{object:this.proxy_||this.target_,name:e,type:ei,newValue:void 0}))return null;n.name||(n.name=this.name_+"."+e.toString()),n.context=this.proxy_||this.target_;var r=hi(e),o={configurable:!bn.safeDescriptors||this.isPlainObject_,enumerable:!1,get:r.get,set:r.set};if(t){if(!Reflect.defineProperty(this.target_,e,o))return!1}else l(this.target_,e,o);this.values_.set(e,new en(n)),this.notifyPropertyAddition_(e,void 0)}finally{On()}return!0},n.delete_=function(e,n){if(void 0===n&&(n=!1),!D(this.target_,e))return!0;if(Lt(this)&&!Mt(this,{object:this.proxy_||this.target_,name:e,type:ui}))return null;try{var t,i;En();var r,o=Rt(this),a=Rn(),l=this.values_.get(e),c=void 0;if(l||!o&&!a||(c=null==(r=s(this.target_,e))?void 0:r.value),n){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(delete this.appliedAnnotations_[e],l&&(this.values_.delete(e),l instanceof Ye&&(c=l.value_),Sn(l)),this.keysAtom_.reportChanged(),null==(t=this.pendingKeys_)||null==(i=t.get(e))||i.set(e in this.target_),o||a){var u={type:ui,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:e};a&&Bn(u),o&&Bt(this,u),a&&jn()}}finally{On()}return!0},n.observe_=function(e,n){return!0===n&&i("`observe` doesn't support the fire immediately property for observable objects."),Nt(this,e)},n.intercept_=function(e){return Dt(this,e)},n.notifyPropertyAddition_=function(e,n){var t,i,r=Rt(this),o=Rn();if(r||o){var a=r||o?{type:ei,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:n}:null;o&&Bn(a),r&&Bt(this,a),o&&jn()}null==(t=this.pendingKeys_)||null==(i=t.get(e))||i.set(!0),this.keysAtom_.reportChanged()},n.ownKeys_=function(){return this.keysAtom_.reportObserved(),C(this.target_)},n.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function _i(e,n){var t;if(n&&fi(e)&&i("Options can't be provided for already observable objects."),D(e,F))return Ii(e)instanceof di||i("Cannot convert '"+xi(e)+"' into observable object:\nThe target is already observable of different type.\nExtending builtins is not supported."),e;Object.isExtensible(e)||i("Cannot make the designated object observable; it is not extensible");var r=null!=(t=null==n?void 0:n.name)?t:(k(e)?"ObservableObject":e.constructor.name)+"@"+g(),o=new di(e,new Map,String(r),function(e){var n;return e?null!=(n=e.defaultDecorator)?n:me(e):void 0}(n));return O(e,F,o),e}var pi=S("ObservableObjectAdministration",di);function hi(e){return ci[e]||(ci[e]={get:function(){return this[F].getObservablePropValue_(e)},set:function(n){return this[F].setObservablePropValue_(e,n)}})}function fi(e){return!!y(e)&&pi(e[F])}function gi(e,n,t){var i;e.appliedAnnotations_[t]=n,null==(i=e.target_[W])||delete i[t]}function vi(e,n,t){if(Ri(n)||i("Cannot annotate '"+e.name_+"."+t.toString()+"': Invalid annotation."),!ne(n)&&D(e.appliedAnnotations_,t)){var r=e.name_+"."+t.toString(),o=e.appliedAnnotations_[t].annotationType_;i("Cannot apply '"+n.annotationType_+"' to '"+r+"':\nThe field is already annotated with '"+o+"'.\nRe-annotating fields is not allowed.\nUse 'override' annotation for methods overriden by subclass.")}}var mi,bi,wi=0,yi=function(){};mi=yi,bi=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(mi.prototype,bi):void 0!==mi.prototype.__proto__?mi.prototype.__proto__=bi:mi.prototype=bi;var ki=function(e,n,t){function i(n,t,i,r){var o;void 0===i&&(i="ObservableArray@"+g()),void 0===r&&(r=!1),o=e.call(this)||this;var a=new Kt(i,t,r,!0);if(a.proxy_=z(o),T(z(o),F,a),n&&n.length){var s=Ze(!0);o.spliceWithArray(0,0,n),He(s)}return o}$(i,e);var r=i.prototype;return r.concat=function(){this[F].atom_.reportObserved();for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return Array.prototype.concat.apply(this.slice(),n.map((function(e){return Xt(e)?e.slice():e})))},r[t]=function(){var e=this,n=0;return Di({next:function(){return n<e.length?{value:e[n++],done:!1}:{done:!0,value:void 0}}})},N(i,[{key:"length",get:function(){return this[F].getArrayLength_()},set:function(e){this[F].setArrayLength_(e)}},{key:n,get:function(){return"Array"}}]),i}(yi,Symbol.toStringTag,Symbol.iterator);function Ei(e){l(ki.prototype,""+e,function(e){return{enumerable:!1,configurable:!0,get:function(){return this[F].get_(e)},set:function(n){this[F].set_(e,n)}}}(e))}function Oi(e){if(e>wi){for(var n=wi;n<e+100;n++)Ei(n);wi=e}}function Ti(e,n,t){return new ki(e,n,t)}function Si(e,n){if("object"==typeof e&&null!==e){if(Xt(e))return void 0!==n&&i(23),e[F].atom_;if(li(e))return e[F];if(oi(e)){if(void 0===n)return e.keysAtom_;var t=e.data_.get(n)||e.hasMap_.get(n);return t||i(25,n,xi(e)),t}if(fi(e)){if(!n)return i(26);var r=e[F].values_.get(n);return r||i(27,n,xi(e)),r}if(H(e)||nn(e)||Mn(e))return e}else if(b(e)&&Mn(e[F]))return e[F];i(28)}function Ii(e,n){return e||i(29),void 0!==n?Ii(Si(e,n)):H(e)||nn(e)||Mn(e)||oi(e)||li(e)?e:e[F]?e[F]:void i(24,e)}function xi(e,n){var t;if(void 0!==n)t=Si(e,n);else{if(Xn(e))return e.name;t=fi(e)||oi(e)||li(e)?Ii(e):Si(e)}return t.name_}Object.entries(Vt).forEach((function(e){var n=e[0],t=e[1];"concat"!==n&&O(ki.prototype,n,t)})),Oi(1e3);var Ai=c.toString;function Ci(e,n,t){return void 0===t&&(t=-1),Pi(e,n,t)}function Pi(e,n,t,i,r){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return!1;if(e!=e)return n!=n;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof n)return!1;var a=Ai.call(e);if(a!==Ai.call(n))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(n);case"[object Map]":case"[object Set]":t>=0&&t++}e=Li(e),n=Li(n);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof n)return!1;var l=e.constructor,c=n.constructor;if(l!==c&&!(b(l)&&l instanceof l&&b(c)&&c instanceof c)&&"constructor"in e&&"constructor"in n)return!1}if(0===t)return!1;t<0&&(t=-1),r=r||[];for(var u=(i=i||[]).length;u--;)if(i[u]===e)return r[u]===n;if(i.push(e),r.push(n),s){if((u=e.length)!==n.length)return!1;for(;u--;)if(!Pi(e[u],n[u],t-1,i,r))return!1}else{var d,_=Object.keys(e);if(u=_.length,Object.keys(n).length!==u)return!1;for(;u--;)if(!D(n,d=_[u])||!Pi(e[d],n[d],t-1,i,r))return!1}return i.pop(),r.pop(),!0}function Li(e){return Xt(e)?e.slice():I(e)||oi(e)||x(e)||li(e)?Array.from(e.entries()):e}function Di(e){return e[Symbol.iterator]=Mi,e}function Mi(){return this}function Ri(e){return e instanceof Object&&"string"==typeof e.annotationType_&&b(e.make_)&&b(e.extend_)}["Symbol","Map","Set"].forEach((function(e){void 0===o()[e]&&i("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:zn,extras:{getDebugName:xi},$mobx:F}),e.$mobx=F,e.FlowCancellationError=pt,e.ObservableMap=ri,e.ObservableSet=si,e.Reaction=An,e._allowStateChanges=Fe,e._allowStateChangesInsideComputed=Jn,e._allowStateReadsEnd=pn,e._allowStateReadsStart=_n,e._autoAction=Yn,e._endAction=qe,e._getAdministration=Ii,e._getGlobalState=function(){return bn},e._interceptReads=function(e,n,t){var r;if(oi(e)||Xt(e)||Je(e))r=Ii(e);else{if(!fi(e))return i("Expected observable map, object or array as first array");if(!w(n))return i("InterceptReads can only be used with a specific property, not with an object in general");r=Ii(e,n)}return void 0!==r.dehancer?i("An intercept reader was already established"):(r.dehancer="function"==typeof n?n:t,function(){r.dehancer=void 0})},e._isComputingDerivation=function(){return null!==bn.trackingDerivation},e._resetGlobalState=function(){var e=new gn;for(var n in e)-1===fn.indexOf(n)&&(bn[n]=e[n]);bn.allowStateChanges=!bn.enforceActions},e._startAction=Ve,e.action=Gn,e.autorun=Qn,e.comparer=Y,e.computed=Ne,e.configure=function(e){!0===e.isolateGlobalState&&function(){if((bn.pendingReactions.length||bn.inBatch||bn.isRunningReactions)&&i(36),mn=!0,vn){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),bn=new gn}}();var n,t,r=e.useProxies,a=e.enforceActions;if(void 0!==r&&(bn.useProxies=r===st||"never"!==r&&"undefined"!=typeof Proxy),"ifavailable"===r&&(bn.verifyProxies=!0),void 0!==a){var s=a===st?st:"observed"===a;bn.enforceActions=s,bn.allowStateChanges=!0!==s&&s!==st}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(n){n in e&&(bn[n]=!!e[n])})),bn.allowStateReads=!bn.observableRequiresReaction,!0===bn.disableErrorBoundaries&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&(n=e.reactionScheduler,t=Pn,Pn=function(e){return n((function(){return t(e)}))})},e.createAtom=G,e.defineProperty=function(e,n,t){if(fi(e))return e[F].defineProperty_(n,t);i(39)},e.entries=function(e){return fi(e)?kt(e).map((function(n){return[n,e[n]]})):oi(e)?kt(e).map((function(n){return[n,e.get(n)]})):li(e)?Array.from(e.entries()):Xt(e)?e.map((function(e,n){return[n,e]})):void i(7)},e.extendObservable=lt,e.flow=gt,e.flowResult=function(e){return e},e.get=function(e,n){if(Et(e,n))return fi(e)?e[F].get_(n):oi(e)?e.get(n):Xt(e)?e[n]:void i(11)},e.getAtom=Si,e.getDebugName=xi,e.getDependencyTree=ct,e.getObserverTree=function(e,n){return dt(Si(e,n))},e.has=Et,e.intercept=function(e,n,t){return b(t)?function(e,n,t){return Ii(e,n).intercept_(t)}(e,n,t):function(e,n){return Ii(e).intercept_(n)}(e,n)},e.isAction=Xn,e.isBoxedObservable=Je,e.isComputed=function(e){return arguments.length>1?i("isComputed expects only 1 argument. Use isComputedProp to inspect the observability of a property"):bt(e)},e.isComputedProp=function(e,n){return w(n)?bt(e,n):i("isComputed expected a property name as second argument")},e.isFlow=mt,e.isFlowCancellationError=function(e){return e instanceof pt},e.isObservable=yt,e.isObservableArray=Xt,e.isObservableMap=oi,e.isObservableObject=fi,e.isObservableProp=function(e,n){return w(n)?wt(e,n):i("expected a property name as second argument")},e.isObservableSet=li,e.keys=kt,e.makeAutoObservable=function(e,n,t){if(k(e)||k(Object.getPrototypeOf(e))||i("'makeAutoObservable' can only be used for classes that don't have a superclass"),fi(e)&&i("makeAutoObservable can only be used on objects not already made observable"),k(e))return lt(e,e,n,t);var r=_i(e,t)[F];if(!e[$t]){var o=Object.getPrototypeOf(e),a=new Set([].concat(C(e),C(o)));a.delete("constructor"),a.delete(F),O(o,$t,a)}En();try{e[$t].forEach((function(e){return r.make_(e,!n||!(e in n)||n[e])}))}finally{On()}return e},e.makeObservable=function(e,n,t){var r=_i(e,t)[F];En();try{n&&e[W]&&i("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),null!=n||(n=function(e){return D(e,W)||(e[W]||i("No annotations were passed to makeObservable, but no decorated members have been found either"),O(e,W,B({},e[W]))),e[W]}(e)),C(n).forEach((function(e){return r.make_(e,n[e])}))}finally{On()}return e},e.observable=Le,e.observe=function(e,n,t,i){return b(t)?function(e,n,t,i){return Ii(e,n).observe_(t,i)}(e,n,t,i):function(e,n,t){return Ii(e).observe_(n,t)}(e,n,t)},e.onBecomeObserved=rt,e.onBecomeUnobserved=ot,e.onReactionError=function(e){return bn.globalReactionErrorHandlers.push(e),function(){var n=bn.globalReactionErrorHandlers.indexOf(e);n>=0&&bn.globalReactionErrorHandlers.splice(n,1)}},e.override=ee,e.ownKeys=Ot,e.reaction=function(e,n,t){var r;void 0===t&&(t=d),b(e)&&b(n)||i("First and second argument to reaction should be functions"),k(t)||i("Third argument of reactions should be an object");var o,a,s,l,c=null!=(r=t.name)?r:"Reaction@"+g(),u=Gn(c,t.onError?(s=t.onError,l=n,function(){try{return l.apply(this,arguments)}catch(e){s.call(this,e)}}):n),_=!t.scheduler&&!t.delay,p=nt(t),h=!0,f=!1,v=t.compareStructural?Y.structural:t.equals||Y.default,m=new An(c,(function(){h||_?w():f||(f=!0,p(w))}),t.onError,t.requiresObservable);function w(){if(f=!1,!m.isDisposed_){var n=!1;m.track((function(){var t=Fe(!1,(function(){return e(m)}));n=h||!v(o,t),a=o,o=t})),(h&&t.fireImmediately||!h&&n)&&u(o,a,m),h=!1}}return m.schedule_(),m.getDisposer_()},e.remove=function(e,n){fi(e)?e[F].delete_(n):oi(e)||li(e)?e.delete(n):Xt(e)?("number"!=typeof n&&(n=parseInt(n,10)),e.splice(n,1)):i(9)},e.runInAction=Jn,e.set=function e(n,t,r){if(2!==arguments.length||li(n))fi(n)?n[F].set_(t,r):oi(n)?n.set(t,r):li(n)?n.add(t):Xt(n)?("number"!=typeof t&&(t=parseInt(t,10)),t<0&&i("Invalid index: '"+t+"'"),En(),t>=n.length&&(n.length=t+1),n[t]=r,On()):i(8);else{En();var o=t;try{for(var a in o)e(n,a,o[a])}finally{On()}}},e.spy=zn,e.toJS=function(e,n){return n&&i("toJS no longer supports options"),St(e,new Map)},e.trace=It,e.transaction=xt,e.untracked=cn,e.values=function(e){return fi(e)?kt(e).map((function(n){return e[n]})):oi(e)?kt(e).map((function(n){return e.get(n)})):li(e)?Array.from(e.values()):Xt(e)?e.slice():void i(6)},e.when=function(e,n,t){return 1===arguments.length||n&&"object"==typeof n?function(e,n){if(n&&n.onError)return i("the options 'onError' and 'promise' cannot be combined");var t,r=new Promise((function(i,r){var o=At(e,i,B({},n,{onError:r}));t=function(){o(),r(new Error("WHEN_CANCELLED"))}}));return r.cancel=t,r}(e,n):At(e,n,t||{})},Object.defineProperty(e,"__esModule",{value:!0})}(n)},9692:function(module){var factory;self,factory=function(){return function(){var __webpack_modules__={"./src/SpelExpressionEvaluator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SpelExpressionEvaluator: function() { return /* binding */ spelExpressionEvaluator; }\n/* harmony export */ });\n/* harmony import */ var _SpelExpressionParser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelExpressionParser */ "./src/SpelExpressionParser.js");\n/* harmony import */ var _lib_Stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/Stack */ "./src/lib/Stack.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Ben March\n * @since 0.2.0\n */\n\n\n\nvar spelExpressionEvaluator = {};\nfunction evalCompiled(compiledExpression, context, locals) {\n  return compiledExpression.getValue(initState(context, locals));\n}\nfunction initState(context, locals) {\n  var activeContext = new _lib_Stack__WEBPACK_IMPORTED_MODULE_1__.Stack(),\n    state;\n  if (!context) {\n    context = {};\n  }\n  activeContext.push(context);\n  return {\n    rootContext: context,\n    activeContext: activeContext,\n    locals: locals\n  };\n}\nspelExpressionEvaluator.compile = function (expression) {\n  var compiledExpression = (0,_SpelExpressionParser__WEBPACK_IMPORTED_MODULE_0__.SpelExpressionParser)().parse(expression);\n  return {\n    expression: expression,\n    eval: function (context, locals) {\n      return evalCompiled(compiledExpression, context, locals);\n    },\n    _compiledExpression: compiledExpression,\n    initState: initState,\n    clone: function () {\n      return spelExpressionEvaluator.compile(expression);\n    }\n  };\n};\nspelExpressionEvaluator.eval = function (expression, context, locals) {\n  return spelExpressionEvaluator.compile(expression).eval(context, locals);\n};\n\n\n//# sourceURL=webpack://spel2js/./src/SpelExpressionEvaluator.js?')},"./src/SpelExpressionParser.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SpelExpressionParser: function() { return /* binding */ SpelExpressionParser; }\n/* harmony export */ });\n/* harmony import */ var _TokenKind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TokenKind */ \"./src/TokenKind.js\");\n/* harmony import */ var _Tokenizer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Tokenizer */ \"./src/Tokenizer.js\");\n/* harmony import */ var _ast_BooleanLiteral__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ast/BooleanLiteral */ \"./src/ast/BooleanLiteral.js\");\n/* harmony import */ var _ast_NumberLiteral__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ast/NumberLiteral */ \"./src/ast/NumberLiteral.js\");\n/* harmony import */ var _ast_StringLiteral__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ast/StringLiteral */ \"./src/ast/StringLiteral.js\");\n/* harmony import */ var _ast_NullLiteral__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ast/NullLiteral */ \"./src/ast/NullLiteral.js\");\n/* harmony import */ var _ast_FunctionReference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ast/FunctionReference */ \"./src/ast/FunctionReference.js\");\n/* harmony import */ var _ast_MethodReference__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./ast/MethodReference */ \"./src/ast/MethodReference.js\");\n/* harmony import */ var _ast_PropertyReference__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ast/PropertyReference */ \"./src/ast/PropertyReference.js\");\n/* harmony import */ var _ast_VariableReference__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ast/VariableReference */ \"./src/ast/VariableReference.js\");\n/* harmony import */ var _ast_CompoundExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ast/CompoundExpression */ \"./src/ast/CompoundExpression.js\");\n/* harmony import */ var _ast_Indexer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ast/Indexer */ \"./src/ast/Indexer.js\");\n/* harmony import */ var _ast_Assign__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ast/Assign */ \"./src/ast/Assign.js\");\n/* harmony import */ var _ast_OpEQ__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ast/OpEQ */ \"./src/ast/OpEQ.js\");\n/* harmony import */ var _ast_OpNE__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ast/OpNE */ \"./src/ast/OpNE.js\");\n/* harmony import */ var _ast_OpGE__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ast/OpGE */ \"./src/ast/OpGE.js\");\n/* harmony import */ var _ast_OpGT__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ast/OpGT */ \"./src/ast/OpGT.js\");\n/* harmony import */ var _ast_OpLE__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ast/OpLE */ \"./src/ast/OpLE.js\");\n/* harmony import */ var _ast_OpLT__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ast/OpLT */ \"./src/ast/OpLT.js\");\n/* harmony import */ var _ast_OpPlus__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./ast/OpPlus */ \"./src/ast/OpPlus.js\");\n/* harmony import */ var _ast_OpMinus__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./ast/OpMinus */ \"./src/ast/OpMinus.js\");\n/* harmony import */ var _ast_OpMultiply__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./ast/OpMultiply */ \"./src/ast/OpMultiply.js\");\n/* harmony import */ var _ast_OpDivide__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./ast/OpDivide */ \"./src/ast/OpDivide.js\");\n/* harmony import */ var _ast_OpModulus__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ast/OpModulus */ \"./src/ast/OpModulus.js\");\n/* harmony import */ var _ast_OpPower__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./ast/OpPower */ \"./src/ast/OpPower.js\");\n/* harmony import */ var _ast_OpInc__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ast/OpInc */ \"./src/ast/OpInc.js\");\n/* harmony import */ var _ast_OpDec__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ast/OpDec */ \"./src/ast/OpDec.js\");\n/* harmony import */ var _ast_OpNot__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ast/OpNot */ \"./src/ast/OpNot.js\");\n/* harmony import */ var _ast_OpAnd__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ast/OpAnd */ \"./src/ast/OpAnd.js\");\n/* harmony import */ var _ast_OpOr__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./ast/OpOr */ \"./src/ast/OpOr.js\");\n/* harmony import */ var _ast_OpMatches__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./ast/OpMatches */ \"./src/ast/OpMatches.js\");\n/* harmony import */ var _ast_Ternary__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./ast/Ternary */ \"./src/ast/Ternary.js\");\n/* harmony import */ var _ast_Elvis__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./ast/Elvis */ \"./src/ast/Elvis.js\");\n/* harmony import */ var _ast_InlineList__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./ast/InlineList */ \"./src/ast/InlineList.js\");\n/* harmony import */ var _ast_InlineMap__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./ast/InlineMap */ \"./src/ast/InlineMap.js\");\n/* harmony import */ var _ast_Selection__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./ast/Selection */ \"./src/ast/Selection.js\");\n/* harmony import */ var _ast_Projection__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./ast/Projection */ \"./src/ast/Projection.js\");\n/* harmony import */ var _ast_OpInstanceof__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./ast/OpInstanceof */ \"./src/ast/OpInstanceof.js\");\n/* harmony import */ var _ast_OpBetween__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./ast/OpBetween */ \"./src/ast/OpBetween.js\");\n/* harmony import */ var _ast_TypeReference__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./ast/TypeReference */ \"./src/ast/TypeReference.js\");\n/* harmony import */ var _ast_BeanReference__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./ast/BeanReference */ \"./src/ast/BeanReference.js\");\n/* harmony import */ var _ast_Identifier__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./ast/Identifier */ \"./src/ast/Identifier.js\");\n/* harmony import */ var _ast_QualifiedIdentifier__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./ast/QualifiedIdentifier */ \"./src/ast/QualifiedIdentifier.js\");\n/* harmony import */ var _ast_ConstructorReference__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./ast/ConstructorReference */ \"./src/ast/ConstructorReference.js\");\n/* harmony import */ var _ast_OpEmpty__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./ast/OpEmpty */ \"./src/ast/OpEmpty.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Ben March\n * @since 0.2.0\n *\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//not yet implemented\n\n\n\n\n\n\n\n\nvar SpelExpressionParser = function () {\n  var VALID_QUALIFIED_ID_PATTERN = new RegExp('[\\\\p{L}\\\\p{N}_$]+');\n  var configuration;\n\n  // For rules that build nodes, they are stacked here for return\n  var constructedNodes = [];\n\n  // The expression being parsed\n  var expressionString;\n\n  // The token stream constructed from that expression string\n  var tokenStream;\n\n  // length of a populated token stream\n  var tokenStreamLength;\n\n  // Current location in the token stream when processing tokens\n  var tokenStreamPointer;\n\n  /**\n   * Create a parser with some configured behavior.\n   * @param config custom configuration options\n   */\n  function setConfiguration(config) {\n    configuration = config;\n  }\n  function parse(expression, context) {\n    try {\n      expressionString = expression;\n      tokenStream = _Tokenizer__WEBPACK_IMPORTED_MODULE_1__.Tokenizer.tokenize(expression);\n      tokenStreamLength = tokenStream.length;\n      tokenStreamPointer = 0;\n      constructedNodes = [];\n      var ast = eatExpression();\n      if (moreTokens()) {\n        raiseInternalException(peekToken().startPos, 'MORE_INPUT', nextToken().toString());\n      }\n      //Assert.isTrue(this.constructedNodes.isEmpty());\n      return ast;\n    } catch (e) {\n      throw e.message;\n    }\n  }\n\n  //\texpression\n  //    : logicalOrExpression\n  //      ( (ASSIGN^ logicalOrExpression)\n  //\t    | (DEFAULT^ logicalOrExpression)\n  //\t    | (QMARK^ expression COLON! expression)\n  //      | (ELVIS^ expression))?;\n  function eatExpression(prevToken) {\n    var expr = eatLogicalOrExpression();\n    if (moreTokens()) {\n      var token = peekToken();\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.ASSIGN) {\n        // a=b\n        if (expr === null) {\n          expr = _ast_NullLiteral__WEBPACK_IMPORTED_MODULE_5__.NullLiteral.create(toPosBounds(token.startPos - 1, token.endPos - 1));\n        }\n        nextToken();\n        var assignedValue = eatLogicalOrExpression();\n        return _ast_Assign__WEBPACK_IMPORTED_MODULE_12__.Assign.create(toPosToken(token), expr, assignedValue);\n      }\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.ELVIS) {\n        // a?:b (a if it isn't null, otherwise b)\n        if (expr === null) {\n          expr = _ast_NullLiteral__WEBPACK_IMPORTED_MODULE_5__.NullLiteral.create(toPosBounds(token.startPos - 1, token.endPos - 2));\n        }\n        nextToken(); // elvis has left the building\n        var valueIfNull = eatExpression();\n        if (valueIfNull === null) {\n          valueIfNull = _ast_NullLiteral__WEBPACK_IMPORTED_MODULE_5__.NullLiteral.create(toPosBounds(token.startPos + 1, token.endPos + 1));\n        }\n        return _ast_Elvis__WEBPACK_IMPORTED_MODULE_32__.Elvis.create(toPosToken(token), expr, valueIfNull);\n      }\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.QMARK) {\n        // a?b:c\n        if (expr === null) {\n          expr = _ast_NullLiteral__WEBPACK_IMPORTED_MODULE_5__.NullLiteral.create(toPosBounds(token.startPos - 1, token.endPos - 1));\n        }\n        nextToken();\n        var ifTrueExprValue = eatExpression(token);\n        eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COLON);\n        var ifFalseExprValue = eatExpression();\n        return _ast_Ternary__WEBPACK_IMPORTED_MODULE_31__.Ternary.create(toPosToken(token), expr, ifTrueExprValue, ifFalseExprValue);\n      }\n\n      /* James Chu, Potix, 20220127, support taglib */\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COLON && !(prevToken && prevToken.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.QMARK)) {\n        // taglib, ex. c:concat\n        var prev = tokenStream[tokenStreamPointer - 1];\n        nextToken();\n        var methodOrPropertyName = nextToken(),\n          args = maybeEatMethodArgs();\n        if (prev && prev.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER) {\n          methodOrPropertyName.data = prev.data + ':' + methodOrPropertyName.data;\n        }\n        return _ast_MethodReference__WEBPACK_IMPORTED_MODULE_7__.MethodReference.create(false, methodOrPropertyName.stringValue(), toPosToken(methodOrPropertyName), args);\n      }\n    }\n    return expr;\n  }\n\n  //logicalOrExpression : logicalAndExpression (OR^ logicalAndExpression)*;\n  function eatLogicalOrExpression() {\n    var expr = eatLogicalAndExpression();\n    while (peekIdentifierToken('or') || peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SYMBOLIC_OR)) {\n      var token = nextToken(); //consume OR\n      var rhExpr = eatLogicalAndExpression();\n      checkOperands(token, expr, rhExpr);\n      expr = _ast_OpOr__WEBPACK_IMPORTED_MODULE_29__.OpOr.create(toPosToken(token), expr, rhExpr);\n    }\n    return expr;\n  }\n\n  // logicalAndExpression : relationalExpression (AND^ relationalExpression)*;\n  function eatLogicalAndExpression() {\n    var expr = eatRelationalExpression();\n    while (peekIdentifierToken('and') || peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SYMBOLIC_AND)) {\n      var token = nextToken(); // consume 'AND'\n      var rhExpr = eatRelationalExpression();\n      checkOperands(token, expr, rhExpr);\n      expr = _ast_OpAnd__WEBPACK_IMPORTED_MODULE_28__.OpAnd.create(toPosToken(token), expr, rhExpr);\n    }\n    return expr;\n  }\n\n  // relationalExpression : sumExpression (relationalOperator^ sumExpression)?;\n  function eatRelationalExpression() {\n    var expr = eatSumExpression();\n    var relationalOperatorToken = maybeEatRelationalOperator();\n    if (relationalOperatorToken !== null) {\n      var token = nextToken(); // consume relational operator token\n      var rhExpr = eatSumExpression();\n      checkOperands(token, expr, rhExpr);\n      var tk = relationalOperatorToken.kind;\n      if (relationalOperatorToken.isNumericRelationalOperator()) {\n        var pos = toPosToken(token);\n        if (tk === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.GT) {\n          return _ast_OpGT__WEBPACK_IMPORTED_MODULE_16__.OpGT.create(pos, expr, rhExpr);\n        }\n        if (tk === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LT) {\n          return _ast_OpLT__WEBPACK_IMPORTED_MODULE_18__.OpLT.create(pos, expr, rhExpr);\n        }\n        if (tk === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LE) {\n          return _ast_OpLE__WEBPACK_IMPORTED_MODULE_17__.OpLE.create(pos, expr, rhExpr);\n        }\n        if (tk === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.GE) {\n          return _ast_OpGE__WEBPACK_IMPORTED_MODULE_15__.OpGE.create(pos, expr, rhExpr);\n        }\n        if (tk === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.EQ) {\n          return _ast_OpEQ__WEBPACK_IMPORTED_MODULE_13__.OpEQ.create(pos, expr, rhExpr);\n        }\n        //Assert.isTrue(tk === TokenKind.NE);\n        return _ast_OpNE__WEBPACK_IMPORTED_MODULE_14__.OpNE.create(pos, expr, rhExpr);\n      }\n      if (tk === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.INSTANCEOF) {\n        return _ast_OpInstanceof__WEBPACK_IMPORTED_MODULE_37__.OpInstanceof.create(toPosToken(token), expr, rhExpr);\n      }\n      if (tk === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.MATCHES) {\n        return _ast_OpMatches__WEBPACK_IMPORTED_MODULE_30__.OpMatches.create(toPosToken(token), expr, rhExpr);\n      }\n\n      //Assert.isTrue(tk === TokenKind.BETWEEN);\n      return _ast_OpBetween__WEBPACK_IMPORTED_MODULE_38__.OpBetween.create(toPosToken(token), expr, rhExpr);\n    }\n    return expr;\n  }\n\n  //sumExpression: productExpression ( (PLUS^ | MINUS^) productExpression)*;\n  function eatSumExpression() {\n    var expr = eatProductExpression();\n    while (peekTokenAny(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.PLUS, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.MINUS, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.INC)) {\n      var token = nextToken(); //consume PLUS or MINUS or INC\n      var rhExpr = eatProductExpression();\n      if (!rhExpr) {\n        if (peekToken().getKind() == _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.ASSIGN) {\n          // ignore '+=' case\n          nextToken();\n          rhExpr = eatProductExpression();\n        }\n      }\n      checkRightOperand(token, rhExpr);\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.PLUS) {\n        expr = _ast_OpPlus__WEBPACK_IMPORTED_MODULE_19__.OpPlus.create(toPosToken(token), expr, rhExpr);\n      } else if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.MINUS) {\n        expr = _ast_OpMinus__WEBPACK_IMPORTED_MODULE_20__.OpMinus.create(toPosToken(token), expr, rhExpr);\n      }\n    }\n    return expr;\n  }\n\n  // productExpression: powerExpr ((STAR^ | DIV^| MOD^) powerExpr)* ;\n  function eatProductExpression() {\n    var expr = eatPowerIncDecExpression();\n    while (peekTokenAny(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.STAR, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DIV, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.MOD)) {\n      var token = nextToken(); // consume STAR/DIV/MOD\n      var rhExpr = eatPowerIncDecExpression();\n      checkOperands(token, expr, rhExpr);\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.STAR) {\n        expr = _ast_OpMultiply__WEBPACK_IMPORTED_MODULE_21__.OpMultiply.create(toPosToken(token), expr, rhExpr);\n      } else if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DIV) {\n        expr = _ast_OpDivide__WEBPACK_IMPORTED_MODULE_22__.OpDivide.create(toPosToken(token), expr, rhExpr);\n      } else {\n        //Assert.isTrue(token.getKind() === TokenKind.MOD);\n        expr = _ast_OpModulus__WEBPACK_IMPORTED_MODULE_23__.OpModulus.create(toPosToken(token), expr, rhExpr);\n      }\n    }\n    return expr;\n  }\n\n  // powerExpr  : unaryExpression (POWER^ unaryExpression)? (INC || DEC) ;\n  function eatPowerIncDecExpression() {\n    var expr = eatUnaryExpression(),\n      token;\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.POWER)) {\n      token = nextToken(); //consume POWER\n      var rhExpr = eatUnaryExpression();\n      checkRightOperand(token, rhExpr);\n      return _ast_OpPower__WEBPACK_IMPORTED_MODULE_24__.OpPower.create(toPosToken(token), expr, rhExpr);\n    }\n    if (expr !== null && peekTokenAny(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.INC, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DEC)) {\n      token = nextToken(); //consume INC/DEC\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.INC) {\n        return _ast_OpInc__WEBPACK_IMPORTED_MODULE_25__.OpInc.create(toPosToken(token), true, expr);\n      }\n      return _ast_OpDec__WEBPACK_IMPORTED_MODULE_26__.OpDec.create(toPosToken(token), true, expr);\n    }\n    return expr;\n  }\n\n  // unaryExpression: (PLUS^ | MINUS^ | BANG^ | INC^ | DEC^) unaryExpression | primaryExpression ;\n  function eatUnaryExpression() {\n    var token, expr;\n    if (peekTokenAny(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.PLUS, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.MINUS, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.NOT)) {\n      token = nextToken();\n      expr = eatUnaryExpression();\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.NOT) {\n        return _ast_OpNot__WEBPACK_IMPORTED_MODULE_27__.OpNot.create(toPosToken(token), expr);\n      }\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.PLUS) {\n        return _ast_OpPlus__WEBPACK_IMPORTED_MODULE_19__.OpPlus.create(toPosToken(token), expr);\n      }\n      //Assert.isTrue(token.getKind() === TokenKind.MINUS);\n      return _ast_OpMinus__WEBPACK_IMPORTED_MODULE_20__.OpMinus.create(toPosToken(token), expr);\n    }\n    if (peekTokenAny(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.INC, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DEC)) {\n      token = nextToken();\n      expr = eatUnaryExpression();\n      if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.INC) {\n        return _ast_OpInc__WEBPACK_IMPORTED_MODULE_25__.OpInc.create(toPosToken(token), false, expr);\n      }\n      return _ast_OpDec__WEBPACK_IMPORTED_MODULE_26__.OpDec.create(toPosToken(token), false, expr);\n    }\n    return eatPrimaryExpression();\n  }\n\n  // primaryExpression : startNode (node)? -> ^(EXPRESSION startNode (node)?);\n  function eatPrimaryExpression() {\n    var nodes = [];\n    var start = eatStartNode(); // always a start node\n    nodes.push(start);\n    while (maybeEatNode()) {\n      nodes.push(pop());\n    }\n    if (nodes.length === 1) {\n      return nodes[0];\n    }\n    return _ast_CompoundExpression__WEBPACK_IMPORTED_MODULE_10__.CompoundExpression.create(toPosBounds(start.getStartPosition(), nodes[nodes.length - 1].getEndPosition()), nodes);\n  }\n\n  // node : ((DOT dottedNode) | (SAFE_NAVI dottedNode) | nonDottedNode)+;\n  function maybeEatNode() {\n    var expr = null;\n    if (peekTokenAny(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DOT, _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SAFE_NAVI)) {\n      expr = eatDottedNode();\n    } else {\n      expr = maybeEatNonDottedNode();\n    }\n    if (expr === null) {\n      return false;\n    } else {\n      push(expr);\n      return true;\n    }\n  }\n\n  // nonDottedNode: indexer;\n  function maybeEatNonDottedNode() {\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LSQUARE)) {\n      if (maybeEatIndexer()) {\n        return pop();\n      }\n    }\n    return null;\n  }\n\n  //dottedNode\n  // : ((methodOrProperty\n  //\t  | functionOrVar\n  //    | projection\n  //    | selection\n  //    | firstSelection\n  //    | lastSelection\n  //    ))\n  //\t;\n  function eatDottedNode() {\n    var token = nextToken(); // it was a '.' or a '?.'\n    var nullSafeNavigation = token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SAFE_NAVI;\n    if (maybeEatMethodOrProperty(nullSafeNavigation) || maybeEatFunctionOrVar() || maybeEatProjection(nullSafeNavigation) || maybeEatSelection(nullSafeNavigation)) {\n      return pop();\n    }\n    if (peekToken() === null) {\n      // unexpectedly ran out of data\n      raiseInternalException(token.startPos, 'OOD');\n    } else {\n      raiseInternalException(token.startPos, 'UNEXPECTED_DATA_AFTER_DOT', toString(peekToken()));\n    }\n    return null;\n  }\n\n  // functionOrVar\n  // : (POUND ID LPAREN) => function\n  // | var\n  //\n  // function : POUND id=ID methodArgs -> ^(FUNCTIONREF[$id] methodArgs);\n  // var : POUND id=ID -> ^(VARIABLEREF[$id]);\n  function maybeEatFunctionOrVar() {\n    if (!peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.HASH)) {\n      return false;\n    }\n    var token = nextToken();\n    var functionOrVariableName = eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER);\n    var args = maybeEatMethodArgs();\n    if (args === null) {\n      push(_ast_VariableReference__WEBPACK_IMPORTED_MODULE_9__.VariableReference.create(functionOrVariableName.data, toPosBounds(token.startPos, functionOrVariableName.endPos)));\n      return true;\n    }\n    push(_ast_FunctionReference__WEBPACK_IMPORTED_MODULE_6__.FunctionReference.create(functionOrVariableName.data, toPosBounds(token.startPos, functionOrVariableName.endPos), args));\n    return true;\n  }\n\n  // methodArgs : LPAREN! (argument (COMMA! argument)* (COMMA!)?)? RPAREN!;\n  function maybeEatMethodArgs() {\n    if (!peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LPAREN)) {\n      return null;\n    }\n    var args = [];\n    consumeArguments(args);\n    eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RPAREN);\n    return args;\n  }\n  function eatConstructorArgs(accumulatedArguments) {\n    if (!peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LPAREN)) {\n      raiseInternalException(toPosToken(peekToken()), 'MISSING_CONSTRUCTOR_ARGS');\n    }\n    consumeArguments(accumulatedArguments);\n    eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RPAREN);\n  }\n\n  /**\n   * Used for consuming arguments for either a method or a constructor call\n   */\n  function consumeArguments(accumulatedArguments) {\n    var pos = peekToken().startPos;\n    var next;\n    do {\n      nextToken(); // consume ( (first time through) or comma (subsequent times)\n      var token = peekToken();\n      if (token === null) {\n        raiseInternalException(pos, 'RUN_OUT_OF_ARGUMENTS');\n      }\n      if (token.getKind() !== _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RPAREN) {\n        accumulatedArguments.push(eatExpression());\n      }\n      next = peekToken();\n    } while (next !== null && next.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COMMA);\n    if (next === null) {\n      raiseInternalException(pos, 'RUN_OUT_OF_ARGUMENTS');\n    }\n  }\n  function positionOf(token) {\n    if (token === null) {\n      // if null assume the problem is because the right token was\n      // not found at the end of the expression\n      return expressionString.length;\n    }\n    return token.startPos;\n  }\n\n  //startNode\n  // : parenExpr | literal\n  //\t    | type\n  //\t    | methodOrProperty\n  //\t    | functionOrVar\n  //\t    | projection\n  //\t    | selection\n  //\t    | firstSelection\n  //\t    | lastSelection\n  //\t    | indexer\n  //\t    | constructor\n  function eatStartNode() {\n    if (maybeEatLiteral()) {\n      return pop();\n    } else if (maybeEatParenExpression()) {\n      return pop();\n    } else if (maybeEatTypeReference() || maybeEatNullReference() || maybeEatConstructorReference() || maybeEatMethodOrProperty(false) || maybeEatFunctionOrVar()) {\n      return pop();\n    } else if (maybeEatBeanReference()) {\n      return pop();\n    } else if (maybeEatProjection(false) || maybeEatSelection(false) || maybeEatIndexer()) {\n      return pop();\n    } else if (maybeEatInlineListOrMap()) {\n      return pop();\n    } else {\n      return null;\n    }\n  }\n\n  // parse: @beanname @'bean.name'\n  // quoted if dotted\n  function maybeEatBeanReference() {\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.BEAN_REF)) {\n      var beanRefToken = nextToken();\n      var beanNameToken = null;\n      var beanName = null;\n      if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER)) {\n        beanNameToken = eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER);\n        beanName = beanNameToken.data;\n      } else if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_STRING)) {\n        beanNameToken = eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_STRING);\n        beanName = beanNameToken.stringValue();\n        beanName = beanName.substring(1, beanName.length() - 1);\n      } else {\n        raiseInternalException(beanRefToken.startPos, 'INVALID_BEAN_REFERENCE');\n      }\n      var beanReference = _ast_BeanReference__WEBPACK_IMPORTED_MODULE_40__.BeanReference.create(toPosToken(beanNameToken), beanName);\n      push(beanReference);\n      return true;\n    }\n    return false;\n  }\n  function maybeEatTypeReference() {\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER)) {\n      var typeName = peekToken();\n      if (typeName.stringValue() !== 'T') {\n        return false;\n      }\n      // It looks like a type reference but is T being used as a map key?\n      var token = nextToken();\n      if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE)) {\n        // looks like 'T]' (T is map key)\n        push(_ast_PropertyReference__WEBPACK_IMPORTED_MODULE_8__.PropertyReference.create(token.stringValue(), toPosToken(token)));\n        return true;\n      }\n      eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LPAREN);\n      var node = eatPossiblyQualifiedId();\n      // dotted qualified id\n      // Are there array dimensions?\n      var dims = 0;\n      while (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LSQUARE, true)) {\n        eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE);\n        dims++;\n      }\n      eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RPAREN);\n      push(_ast_TypeReference__WEBPACK_IMPORTED_MODULE_39__.TypeReference.create(toPosToken(typeName), node, dims));\n      return true;\n    }\n    return false;\n  }\n  function maybeEatNullReference() {\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER)) {\n      var nullToken = peekToken();\n      if (nullToken.stringValue().toLowerCase() !== 'null') {\n        return false;\n      }\n      nextToken();\n      push(_ast_NullLiteral__WEBPACK_IMPORTED_MODULE_5__.NullLiteral.create(toPosToken(nullToken)));\n      return true;\n    }\n    return false;\n  }\n\n  //projection: PROJECT^ expression RCURLY!;\n  function maybeEatProjection(nullSafeNavigation) {\n    var token = peekToken();\n    if (!peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.PROJECT, true)) {\n      return false;\n    }\n    var expr = eatExpression();\n    eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE);\n    push(_ast_Projection__WEBPACK_IMPORTED_MODULE_36__.Projection.create(nullSafeNavigation, toPosToken(token), expr));\n    return true;\n  }\n\n  // list = LCURLY (element (COMMA element)*) RCURLY\n  // map  = LCURLY (key ':' value (COMMA key ':' value)*) RCURLY\n  function maybeEatInlineListOrMap() {\n    var token = peekToken(),\n      listElements = [];\n    var expr = null;\n    if (!peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LCURLY, true)) {\n      return false;\n    }\n    var closingCurly = peekToken();\n    if (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RCURLY, true)) {\n      // empty list '{}'\n      expr = _ast_InlineList__WEBPACK_IMPORTED_MODULE_33__.InlineList.create(toPosBounds(token.startPos, closingCurly.endPos));\n    } else if (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COLON, true)) {\n      closingCurly = eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RCURLY);\n      // empty map '{:}'\n      expr = _ast_InlineMap__WEBPACK_IMPORTED_MODULE_34__.InlineMap.create(toPosBounds(token.startPos, closingCurly.endPos));\n    } else {\n      var firstExpression = eatExpression();\n      // Next is either:\n      // '}' - end of list\n      // ',' - more expressions in this list\n      // ':' - this is a map!\n\n      if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RCURLY)) {\n        // list with one item in it\n        listElements.push(firstExpression);\n        closingCurly = eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RCURLY);\n        expr = _ast_InlineList__WEBPACK_IMPORTED_MODULE_33__.InlineList.create(toPosBounds(token.startPos, closingCurly.endPos), listElements);\n      } else if (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COMMA, true)) {\n        // multi item list\n        listElements.push(firstExpression);\n        do {\n          listElements.push(eatExpression());\n        } while (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COMMA, true));\n        closingCurly = eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RCURLY);\n        expr = _ast_InlineList__WEBPACK_IMPORTED_MODULE_33__.InlineList.create(toPosToken(token.startPos, closingCurly.endPos), listElements);\n      } else if (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COLON, true)) {\n        // map!\n        var mapElements = [];\n        mapElements.push(firstExpression);\n        mapElements.push(eatExpression());\n        while (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COMMA, true)) {\n          mapElements.push(eatExpression());\n          eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.COLON);\n          mapElements.push(eatExpression());\n        }\n        closingCurly = eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RCURLY);\n        expr = _ast_InlineMap__WEBPACK_IMPORTED_MODULE_34__.InlineMap.create(toPosBounds(token.startPos, closingCurly.endPos), mapElements);\n      } else {\n        raiseInternalException(token.startPos, 'OOD');\n      }\n    }\n    push(expr);\n    return true;\n  }\n  function maybeEatIndexer() {\n    var token = peekToken();\n    if (!peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LSQUARE, true)) {\n      return false;\n    }\n    var expr = eatExpression();\n    eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE);\n    if (expr) {\n      push(_ast_Indexer__WEBPACK_IMPORTED_MODULE_11__.Indexer.create(toPosToken(token), expr));\n    } else {\n      push(_ast_InlineList__WEBPACK_IMPORTED_MODULE_33__.InlineList.create(toPosToken(token)));\n    }\n    return true;\n  }\n  function maybeEatSelection(nullSafeNavigation) {\n    var token = peekToken();\n    if (!peekSelectToken()) {\n      return false;\n    }\n    nextToken();\n    var expr = eatExpression();\n    if (expr === null) {\n      raiseInternalException(toPosToken(token), 'MISSING_SELECTION_EXPRESSION');\n    }\n    eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE);\n    if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SELECT_FIRST) {\n      push(_ast_Selection__WEBPACK_IMPORTED_MODULE_35__.Selection.create(nullSafeNavigation, _ast_Selection__WEBPACK_IMPORTED_MODULE_35__.Selection.FIRST, toPosToken(token), expr));\n    } else if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SELECT_LAST) {\n      push(_ast_Selection__WEBPACK_IMPORTED_MODULE_35__.Selection.create(nullSafeNavigation, _ast_Selection__WEBPACK_IMPORTED_MODULE_35__.Selection.LAST, toPosToken(token), expr));\n    } else {\n      push(_ast_Selection__WEBPACK_IMPORTED_MODULE_35__.Selection.create(nullSafeNavigation, _ast_Selection__WEBPACK_IMPORTED_MODULE_35__.Selection.ALL, toPosToken(token), expr));\n    }\n    return true;\n  }\n\n  /**\n   * Eat an identifier, possibly qualified (meaning that it is dotted).\n   * TODO AndyC Could create complete identifiers (a.b.c) here rather than a sequence of them? (a, b, c)\n   */\n  function eatPossiblyQualifiedId() {\n    var qualifiedIdPieces = [];\n    var node = peekToken();\n    while (isValidQualifiedId(node)) {\n      nextToken();\n      if (node.kind !== _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DOT) {\n        qualifiedIdPieces.push(_ast_Identifier__WEBPACK_IMPORTED_MODULE_41__.Identifier.create(node.stringValue(), toPosToken(node)));\n      }\n      node = peekToken();\n    }\n    if (!qualifiedIdPieces.length) {\n      if (node === null) {\n        raiseInternalException(expressionString.length(), 'OOD');\n      }\n      raiseInternalException(node.startPos, 'NOT_EXPECTED_TOKEN', 'qualified ID', node.getKind().toString().toLowerCase());\n    }\n    var pos = toPosBounds(qualifiedIdPieces[0].getStartPosition(), qualifiedIdPieces[qualifiedIdPieces.length - 1].getEndPosition());\n    return _ast_QualifiedIdentifier__WEBPACK_IMPORTED_MODULE_42__.QualifiedIdentifier.create(pos, qualifiedIdPieces);\n  }\n  function isValidQualifiedId(node) {\n    if (node === null || node.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_STRING) {\n      return false;\n    }\n    if (node.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DOT || node.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER) {\n      return true;\n    }\n    var value = node.stringValue();\n    return value && value.length && VALID_QUALIFIED_ID_PATTERN.test(value);\n  }\n\n  // This is complicated due to the support for dollars in identifiers.  Dollars are normally separate tokens but\n  // there we want to combine a series of identifiers and dollars into a single identifier\n  function maybeEatMethodOrProperty(nullSafeNavigation) {\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER)) {\n      var methodOrPropertyName = nextToken();\n      var args = maybeEatMethodArgs();\n      if (args === null) {\n        // property\n        push(_ast_PropertyReference__WEBPACK_IMPORTED_MODULE_8__.PropertyReference.create(nullSafeNavigation, methodOrPropertyName.stringValue(), toPosToken(methodOrPropertyName)));\n        return true;\n      }\n      // methodreference\n      push(_ast_MethodReference__WEBPACK_IMPORTED_MODULE_7__.MethodReference.create(nullSafeNavigation, methodOrPropertyName.stringValue(), toPosToken(methodOrPropertyName), args));\n      // TODO what is the end position for a method reference? the name or the last arg?\n      return true;\n    }\n    /* James Chu, Potix, 20220211, support op empty */\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.EMPTY)) {\n      nextToken();\n      push(_ast_OpEmpty__WEBPACK_IMPORTED_MODULE_44__.OpEmpty.create(toPosToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.EMPTY), eatUnaryExpression()));\n      return true;\n    }\n    return false;\n  }\n\n  //constructor\n  //:\t('new' qualifiedId LPAREN) => 'new' qualifiedId ctorArgs -> ^(CONSTRUCTOR qualifiedId ctorArgs)\n  function maybeEatConstructorReference() {\n    if (peekIdentifierToken('new')) {\n      var newToken = nextToken();\n      // It looks like a constructor reference but is NEW being used as a map key?\n      if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE)) {\n        // looks like 'NEW]' (so NEW used as map key)\n        push(_ast_PropertyReference__WEBPACK_IMPORTED_MODULE_8__.PropertyReference.create(newToken.stringValue(), toPosToken(newToken)));\n        return true;\n      }\n      var possiblyQualifiedConstructorName = eatPossiblyQualifiedId();\n      var nodes = [];\n      nodes.push(possiblyQualifiedConstructorName);\n      if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LSQUARE)) {\n        // array initializer\n        var dimensions = [];\n        while (peekTokenConsumeIfMatched(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LSQUARE, true)) {\n          if (!peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE)) {\n            dimensions.push(eatExpression());\n          } else {\n            dimensions.push(null);\n          }\n          eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RSQUARE);\n        }\n        if (maybeEatInlineListOrMap()) {\n          nodes.push(pop());\n        }\n        push(_ast_ConstructorReference__WEBPACK_IMPORTED_MODULE_43__.ConstructorReference.create(toPosToken(newToken), dimensions, nodes));\n      } else {\n        // regular constructor invocation\n        eatConstructorArgs(nodes);\n        // TODO correct end position?\n        push(_ast_ConstructorReference__WEBPACK_IMPORTED_MODULE_43__.ConstructorReference.create(toPosToken(newToken), nodes));\n      }\n      return true;\n    }\n    return false;\n  }\n  function push(newNode) {\n    constructedNodes.push(newNode);\n  }\n  function pop() {\n    return constructedNodes.pop();\n  }\n\n  //\tliteral\n  //  : INTEGER_LITERAL\n  //\t| boolLiteral\n  //\t| STRING_LITERAL\n  //  | HEXADECIMAL_INTEGER_LITERAL\n  //  | REAL_LITERAL\n  //\t| DQ_STRING_LITERAL\n  //\t| NULL_LITERAL\n  function maybeEatLiteral() {\n    var token = peekToken();\n    if (token === null) {\n      return false;\n    }\n    if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_INT || token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_LONG) {\n      push(_ast_NumberLiteral__WEBPACK_IMPORTED_MODULE_3__.NumberLiteral.create(parseInt(token.stringValue(), 10), toPosToken(token)));\n    } else if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_REAL || token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_REAL_FLOAT) {\n      push(_ast_NumberLiteral__WEBPACK_IMPORTED_MODULE_3__.NumberLiteral.create(parseFloat(token.stringValue()), toPosToken(token)));\n    } else if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_HEXINT || token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_HEXLONG) {\n      push(_ast_NumberLiteral__WEBPACK_IMPORTED_MODULE_3__.NumberLiteral.create(parseInt(token.stringValue(), 16), toPosToken(token)));\n    } else if (peekIdentifierToken('true')) {\n      push(_ast_BooleanLiteral__WEBPACK_IMPORTED_MODULE_2__.BooleanLiteral.create(true, toPosToken(token)));\n    } else if (peekIdentifierToken('false')) {\n      push(_ast_BooleanLiteral__WEBPACK_IMPORTED_MODULE_2__.BooleanLiteral.create(false, toPosToken(token)));\n    } else if (token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LITERAL_STRING) {\n      push(_ast_StringLiteral__WEBPACK_IMPORTED_MODULE_4__.StringLiteral.create(token.stringValue(), toPosToken(token)));\n    } else {\n      return false;\n    }\n    nextToken();\n    return true;\n  }\n\n  //parenExpr : LPAREN! expression RPAREN!;\n  function maybeEatParenExpression() {\n    if (peekTokenOne(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LPAREN)) {\n      nextToken();\n      var expr = eatExpression();\n      eatToken(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.RPAREN);\n      push(expr);\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  // relationalOperator\n  // : EQUAL | NOT_EQUAL | LESS_THAN | LESS_THAN_OR_EQUAL | GREATER_THAN\n  // | GREATER_THAN_OR_EQUAL | INSTANCEOF | BETWEEN | MATCHES\n  function maybeEatRelationalOperator() {\n    var token = peekToken();\n    if (token === null) {\n      return null;\n    }\n    if (token.isNumericRelationalOperator()) {\n      return token;\n    }\n    if (token.isIdentifier()) {\n      var idString = token.stringValue();\n      if (idString.toLowerCase() === 'instanceof') {\n        return token.asInstanceOfToken();\n      }\n      if (idString.toLowerCase() === 'matches') {\n        return token.asMatchesToken();\n      }\n      if (idString.toLowerCase() === 'between') {\n        return token.asBetweenToken();\n      }\n    }\n    return null;\n  }\n  function eatToken(expectedKind) {\n    var token = nextToken();\n    if (token === null) {\n      raiseInternalException(expressionString.length, 'OOD');\n    }\n    if (token.getKind() !== expectedKind) {\n      raiseInternalException(token.startPos, 'NOT_EXPECTED_TOKEN', expectedKind.toString().toLowerCase(), token.getKind().toString().toLowerCase());\n    }\n    return token;\n  }\n  function peekTokenOne(desiredTokenKind) {\n    return peekTokenConsumeIfMatched(desiredTokenKind, false);\n  }\n  function peekTokenConsumeIfMatched(desiredTokenKind, consumeIfMatched) {\n    if (!moreTokens()) {\n      return false;\n    }\n    var token = peekToken();\n    if (token.getKind() === desiredTokenKind) {\n      if (consumeIfMatched) {\n        tokenStreamPointer++;\n      }\n      return true;\n    }\n    if (desiredTokenKind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER) {\n      // might be one of the textual forms of the operators (e.g. NE for !== ) - in which case we can treat it as an identifier\n      // The list is represented here: Tokenizer.alternativeOperatorNames and those ones are in order in the TokenKind enum\n      if (token.getKind().ordinal() >= _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.DIV.ordinal() && token.getKind().ordinal() <= _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.NOT.ordinal() && token.data !== null) {\n        // if token.data were null, we'd know it wasn'token the textual form, it was the symbol form\n        return true;\n      }\n    }\n    return false;\n  }\n  function peekTokenAny() {\n    if (!moreTokens()) {\n      return false;\n    }\n    var token = peekToken();\n    var args = Array.prototype.slice.call(arguments);\n    for (var i = 0, l = args.length; i < l; i += 1) {\n      if (token.getKind() === args[i]) {\n        return true;\n      }\n    }\n    return false;\n  }\n  function peekIdentifierToken(identifierString) {\n    if (!moreTokens()) {\n      return false;\n    }\n    var token = peekToken();\n    return token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER && token.stringValue().toLowerCase() === identifierString.toLowerCase();\n  }\n  function peekSelectToken() {\n    if (!moreTokens()) {\n      return false;\n    }\n    var token = peekToken();\n    return token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SELECT || token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SELECT_FIRST || token.getKind() === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.SELECT_LAST;\n  }\n  function moreTokens() {\n    return tokenStreamPointer < tokenStream.length;\n  }\n  function nextToken() {\n    if (tokenStreamPointer >= tokenStreamLength) {\n      return null;\n    }\n    return tokenStream[tokenStreamPointer++];\n  }\n  function peekToken() {\n    if (tokenStreamPointer >= tokenStreamLength) {\n      return null;\n    }\n    return tokenStream[tokenStreamPointer];\n  }\n  function raiseInternalException(pos, message, expected, actual) {\n    if (expected) {\n      message += '\\nExpected: ' + expected;\n    }\n    if (actual) {\n      message += '\\nActual: ' + actual;\n    }\n    throw {\n      name: 'InternalParseException',\n      message: 'Error occurred while attempting to parse expression \\'' + expressionString + '\\' at position ' + pos + '. Message: ' + message\n    };\n  }\n  function toString(token) {\n    if (token.getKind().hasPayload()) {\n      return token.stringValue();\n    }\n    return token.getKind().toString().toLowerCase();\n  }\n  function checkOperands(token, left, right) {\n    checkLeftOperand(token, left);\n    checkRightOperand(token, right);\n  }\n  function checkLeftOperand(token, operandExpression) {\n    if (operandExpression === null) {\n      raiseInternalException(token.startPos, 'LEFT_OPERAND_PROBLEM');\n    }\n  }\n  function checkRightOperand(token, operandExpression) {\n    if (operandExpression === null) {\n      raiseInternalException(token.startPos, 'RIGHT_OPERAND_PROBLEM');\n    }\n  }\n\n  /**\n   * Compress the start and end of a token into a single int.\n   */\n  function toPosToken(token) {\n    return (token.startPos << 16) + token.endPos;\n  }\n  function toPosBounds(start, end) {\n    return (start << 16) + end;\n  }\n  return {\n    setConfiguration: setConfiguration,\n    parse: parse\n  };\n};\n\n//# sourceURL=webpack://spel2js/./src/SpelExpressionParser.js?")},"./src/StandardContext.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StandardContext: function() { return /* binding */ StandardContext; }\n/* harmony export */ });\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction create(authentication, principal) {\n  var context = {};\n  context.authentication = authentication || {};\n  context.principal = principal || {};\n  context.hasRole = function (role) {\n    var hasRole = false;\n    if (!role) {\n      return false;\n    }\n    if (!context.authentication && !Array.isArray(context.authentication.authorities)) {\n      return false;\n    }\n    context.authentication.authorities.forEach(function (grantedAuthority) {\n      if (grantedAuthority.authority.toLowerCase() === role.toLowerCase()) {\n        hasRole = true;\n      }\n    });\n    return hasRole;\n  };\n  context.hasPermission = function /*variable arguments*/\n  () {\n    var args = Array.prototype.slice.call(arguments);\n    if (args.length === 1) {\n      return context.hasRole(args[0]);\n    }\n  };\n  return context;\n}\nvar StandardContext = {\n  create: create\n};\n\n//# sourceURL=webpack://spel2js/./src/StandardContext.js?')},"./src/Token.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Token: function() { return /* binding */ Token; }\n/* harmony export */ });\n/* harmony import */ var _TokenKind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TokenKind */ \"./src/TokenKind.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\n\nfunction Token(tokenKind, tokenData, startPos, endPos) {\n  this.kind = tokenKind;\n  this.startPos = startPos;\n  this.endPos = endPos;\n  if (tokenData) {\n    this.data = tokenData;\n  }\n}\nToken.prototype.getKind = function () {\n  return this.kind;\n};\nToken.prototype.toString = function () {\n  var s = '[';\n  s += this.kind.toString();\n  if (this.kind.hasPayload()) {\n    s += ':' + this.data;\n  }\n  s += ']';\n  s += '(' + this.startPos + ',' + this.endPos + ')';\n  return s;\n};\nToken.prototype.isIdentifier = function () {\n  return this.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.IDENTIFIER;\n};\nToken.prototype.isNumericRelationalOperator = function () {\n  return this.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.GT || this.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.GE || this.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LT || this.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.LE || this.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.EQ || this.kind === _TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.NE;\n};\nToken.prototype.stringValue = function () {\n  return this.data;\n};\nToken.prototype.asInstanceOfToken = function () {\n  return new Token(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.INSTANCEOF, this.startPos, this.endPos);\n};\nToken.prototype.asMatchesToken = function () {\n  return new Token(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.MATCHES, this.startPos, this.endPos);\n};\nToken.prototype.asBetweenToken = function () {\n  return new Token(_TokenKind__WEBPACK_IMPORTED_MODULE_0__.TokenKind.BETWEEN, this.startPos, this.endPos);\n};\nToken.prototype.getStartPosition = function () {\n  return this.startPos;\n};\nToken.prototype.getEndPosition = function () {\n  return this.endPos;\n};\n\n\n//# sourceURL=webpack://spel2js/./src/Token.js?")},"./src/TokenKind.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TokenKind: function() { return /* binding */ TokenKind; }\n/* harmony export */ });\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nvar types = {\n  LITERAL_INT: 1,\n  //tested\n\n  LITERAL_LONG: 2,\n  //tested\n\n  LITERAL_HEXINT: 3,\n  //tested\n\n  LITERAL_HEXLONG: 4,\n  //tested\n\n  LITERAL_STRING: 5,\n  //tested\n\n  LITERAL_REAL: 6,\n  //tested\n\n  LITERAL_REAL_FLOAT: 7,\n  //tested\n\n  LPAREN: '(',\n  //tested\n\n  RPAREN: ')',\n  //tested\n\n  COMMA: ',',\n  //tested\n\n  IDENTIFIER: 0,\n  //tested\n\n  COLON: ':',\n  //tested\n\n  HASH: '#',\n  //tested\n\n  RSQUARE: ']',\n  //tested\n\n  LSQUARE: '[',\n  //tested\n\n  LCURLY: '{',\n  //tested\n\n  RCURLY: '}',\n  //tested\n\n  DOT: '.',\n  //tested\n\n  PLUS: '+',\n  //tested\n\n  STAR: '*',\n  //tested\n\n  MINUS: '-',\n  //tested\n\n  SELECT_FIRST: '^[',\n  //tested\n\n  SELECT_LAST: '$[',\n  //tested\n\n  QMARK: '?',\n  //tested\n\n  PROJECT: '![',\n  //tested\n\n  DIV: '/',\n  //tested\n\n  GE: '>=',\n  //tested\n\n  GT: '>',\n  //tested\n\n  LE: '<=',\n  //tested\n\n  LT: '<',\n  //tested\n\n  EQ: '==',\n  //tested\n\n  NE: '!=',\n  //tested\n\n  MOD: '%',\n  //tested\n\n  NOT: '!',\n  //tested\n\n  ASSIGN: '=',\n  //tested\n\n  INSTANCEOF: 'instanceof',\n  //test fails\n\n  MATCHES: 'matches',\n  //test fails\n\n  BETWEEN: 'between',\n  //test fails\n\n  SELECT: '?[',\n  //tested\n\n  POWER: '^',\n  //tested\n\n  ELVIS: '?:',\n  //tested\n\n  SAFE_NAVI: '?.',\n  //tested\n\n  BEAN_REF: '@',\n  //tested\n\n  SYMBOLIC_OR: '||',\n  //tested\n\n  SYMBOLIC_AND: '&&',\n  //tested\n\n  INC: '++',\n  //tested\n\n  DEC: '--',\n  //tested\n\n  EMPTY: 'empty' /* James Chu, Potix, 20220127, support 'empty' */\n};\n\nfunction TokenKind(type) {\n  this.type = type;\n  this.tokenChars = types[type];\n  this._hasPayload = typeof types[type] !== 'string';\n  if (typeof types[type] === 'number') {\n    this._ordinal = types[type];\n  }\n}\n\n//create enum\nfor (var t in types) {\n  if (types.hasOwnProperty(t)) {\n    TokenKind[t] = new TokenKind(t);\n  }\n}\nTokenKind.prototype.toString = function () {\n  return this.type + (this.tokenChars.length !== 0 ? '(' + this.tokenChars + ')' : '');\n};\nTokenKind.prototype.getLength = function () {\n  return this.tokenChars.length;\n};\nTokenKind.prototype.hasPayload = function () {\n  return this._hasPayload;\n};\nTokenKind.prototype.valueOf = function (id) {\n  for (var t in types) {\n    if (types.hasOwnProperty(t) && types[t] === id) {\n      return TokenKind[t];\n    }\n  }\n};\nTokenKind.prototype.ordinal = function () {\n  return this._ordinal;\n};\n\n\n//# sourceURL=webpack://spel2js/./src/TokenKind.js?")},"./src/Tokenizer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Tokenizer: function() { return /* binding */ Tokenizer; }\n/* harmony export */ });\n/* harmony import */ var _Token__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Token */ \"./src/Token.js\");\n/* harmony import */ var _TokenKind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TokenKind */ \"./src/TokenKind.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Andy Clement\n * @author Phillip Webb\n * @author Ben March\n * @since 0.2.0\n */\n\n\n\nvar ALTERNATIVE_OPERATOR_NAMES = ['DIV', 'EQ', 'GE', 'GT', 'LE', 'LT', 'MOD', 'NE', 'NOT', 'EMPTY'],\n  /* James Chu, Potix, 20220127, support 'empty' */\n  FLAGS = [],\n  IS_DIGIT = 1,\n  IS_HEXDIGIT = 2,\n  IS_ALPHA = 4;\nfunction init() {\n  var ch;\n  for (ch = '0'.charCodeAt(0); ch <= '9'.charCodeAt(0); ch += 1) {\n    FLAGS[ch] |= IS_DIGIT | IS_HEXDIGIT;\n  }\n  for (ch = 'A'.charCodeAt(0); ch <= 'F'.charCodeAt(0); ch += 1) {\n    FLAGS[ch] |= IS_HEXDIGIT;\n  }\n  for (ch = 'a'.charCodeAt(0); ch <= 'f'.charCodeAt(0); ch += 1) {\n    FLAGS[ch] |= IS_HEXDIGIT;\n  }\n  for (ch = 'A'.charCodeAt(0); ch <= 'Z'.charCodeAt(0); ch += 1) {\n    FLAGS[ch] |= IS_ALPHA;\n  }\n  for (ch = 'a'.charCodeAt(0); ch <= 'z'.charCodeAt(0); ch += 1) {\n    FLAGS[ch] |= IS_ALPHA;\n  }\n}\ninit();\nfunction tokenize(inputData) {\n  var expressionString = inputData,\n    toProcess = inputData + '\\0',\n    max = toProcess.length,\n    pos = 0,\n    tokens = [];\n  function process() {\n    var ch;\n    while (pos < max) {\n      ch = toProcess[pos];\n      if (isAlphabetic(ch)) {\n        lexIdentifier();\n      } else {\n        switch (ch) {\n          case '+':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.INC)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.INC);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.PLUS);\n            }\n            break;\n          case '_':\n            // the other way to start an identifier\n            lexIdentifier();\n            break;\n          case '-':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.DEC)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.DEC);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.MINUS);\n            }\n            break;\n          case ':':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.COLON);\n            break;\n          case '.':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.DOT);\n            break;\n          case ',':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.COMMA);\n            break;\n          case '*':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.STAR);\n            break;\n          case '/':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.DIV);\n            break;\n          case '%':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.MOD);\n            break;\n          case '(':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LPAREN);\n            break;\n          case ')':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.RPAREN);\n            break;\n          case '[':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LSQUARE);\n            break;\n          case '#':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.HASH);\n            break;\n          case ']':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.RSQUARE);\n            break;\n          case '{':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LCURLY);\n            break;\n          case '}':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.RCURLY);\n            break;\n          case '@':\n            pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.BEAN_REF);\n            break;\n          case '^':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SELECT_FIRST)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SELECT_FIRST);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.POWER);\n            }\n            break;\n          case '!':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.NE)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.NE);\n            } else if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.PROJECT)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.PROJECT);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.NOT);\n            }\n            break;\n          case '=':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.EQ)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.EQ);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.ASSIGN);\n            }\n            break;\n          case '&':\n            if (!isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SYMBOLIC_AND)) {\n              throw {\n                name: 'SpelParseException',\n                message: 'Missing character \\'&\\' in expression (' + expressionString + ') at position ' + pos\n              };\n            }\n            pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SYMBOLIC_AND);\n            break;\n          case '|':\n            if (!isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SYMBOLIC_OR)) {\n              throw {\n                name: 'SpelParseException',\n                message: 'Missing character \\'|\\' in expression (' + expressionString + ') at position ' + pos\n              };\n            }\n            pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SYMBOLIC_OR);\n            break;\n          case '?':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SELECT)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SELECT);\n            } else if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.ELVIS)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.ELVIS);\n            } else if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SAFE_NAVI)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SAFE_NAVI);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.QMARK);\n            }\n            break;\n          case '$':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SELECT_LAST)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.SELECT_LAST);\n            } else {\n              lexIdentifier();\n            }\n            break;\n          case '>':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.GE)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.GE);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.GT);\n            }\n            break;\n          case '<':\n            if (isTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LE)) {\n              pushPairToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LE);\n            } else {\n              pushCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LT);\n            }\n            break;\n          case '0':\n          case '1':\n          case '2':\n          case '3':\n          case '4':\n          case '5':\n          case '6':\n          case '7':\n          case '8':\n          case '9':\n            lexNumericLiteral(ch === '0');\n            break;\n          case ' ':\n          case '\\t':\n          case '\\r':\n          case '\\n':\n            // drift over white space\n            pos += 1;\n            break;\n          case '\\'':\n            lexQuotedStringLiteral();\n            break;\n          case '\"':\n            lexDoubleQuotedStringLiteral();\n            break;\n          case '\\0':\n            // hit sentinel at end of value\n            pos += 1; // will take us to the end\n            break;\n          case '\\\\':\n            throw {\n              name: 'SpelParseException',\n              message: 'Unexpected escape character in expression (' + expressionString + ') at position ' + pos\n            };\n          default:\n            throw {\n              name: 'SpelParseException',\n              message: 'Cannot handle character \\'' + ch + '\\' in expression (' + expressionString + ') at position ' + pos\n            };\n        }\n      }\n    }\n  }\n  function lexQuotedStringLiteral() {\n    var start = pos,\n      terminated = false,\n      ch;\n    while (!terminated) {\n      pos += 1;\n      ch = toProcess[pos];\n      if (ch === '\\'') {\n        // may not be the end if the char after is also a '\n        if (toProcess[pos + 1] === '\\'') {\n          pos += 1; // skip over that too, and continue\n        } else {\n          terminated = true;\n        }\n      }\n      if (ch.charCodeAt(0) === 0) {\n        throw {\n          name: 'SpelParseException',\n          message: 'Non-terminating quoted string in expression (' + expressionString + ') at position ' + pos\n        };\n      }\n    }\n    pos += 1;\n    tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_STRING, subarray(start, pos), start, pos));\n  }\n  function lexDoubleQuotedStringLiteral() {\n    var start = pos,\n      terminated = false,\n      ch;\n    while (!terminated) {\n      pos += 1;\n      ch = toProcess[pos];\n      if (ch === '\"') {\n        // may not be the end if the char after is also a '\n        if (toProcess[pos + 1] === '\"') {\n          pos += 1; // skip over that too, and continue\n        } else {\n          terminated = true;\n        }\n      }\n      if (ch.charCodeAt(0) === 0) {\n        throw {\n          name: 'SpelParseException',\n          message: 'Non-terminating double-quoted string in expression (' + expressionString + ') at position ' + pos\n        };\n      }\n    }\n    pos += 1;\n    tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_STRING, subarray(start, pos), start, pos));\n  }\n\n  // REAL_LITERAL :\n  // ('.' (DECIMAL_DIGIT)+ (EXPONENT_PART)? (REAL_TYPE_SUFFIX)?) |\n  // ((DECIMAL_DIGIT)+ '.' (DECIMAL_DIGIT)+ (EXPONENT_PART)? (REAL_TYPE_SUFFIX)?) |\n  // ((DECIMAL_DIGIT)+ (EXPONENT_PART) (REAL_TYPE_SUFFIX)?) |\n  // ((DECIMAL_DIGIT)+ (REAL_TYPE_SUFFIX));\n  // fragment INTEGER_TYPE_SUFFIX : ( 'L' | 'l' );\n  // fragment HEX_DIGIT :\n  // '0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'|'A'|'B'|'C'|'D'|'E'|'F'|'a'|'b'|'c'|'d'|'e'|'f';\n  //\n  // fragment EXPONENT_PART : 'e' (SIGN)* (DECIMAL_DIGIT)+ | 'E' (SIGN)*\n  // (DECIMAL_DIGIT)+ ;\n  // fragment SIGN : '+' | '-' ;\n  // fragment REAL_TYPE_SUFFIX : 'F' | 'f' | 'D' | 'd';\n  // INTEGER_LITERAL\n  // : (DECIMAL_DIGIT)+ (INTEGER_TYPE_SUFFIX)?;\n\n  function lexNumericLiteral(firstCharIsZero) {\n    var isReal = false,\n      start = pos,\n      ch = toProcess[pos + 1],\n      isHex = ch === 'x' || ch === 'X',\n      dotpos,\n      endOfNumber,\n      possibleSign,\n      isFloat;\n\n    // deal with hexadecimal\n    if (firstCharIsZero && isHex) {\n      pos = pos + 1;\n      do {\n        pos += 1;\n      } while (isHexadecimalDigit(toProcess[pos]));\n      if (isChar('L', 'l')) {\n        pushHexIntToken(subarray(start + 2, pos), true, start, pos);\n        pos += 1;\n      } else {\n        pushHexIntToken(subarray(start + 2, pos), false, start, pos);\n      }\n      return;\n    }\n\n    // real numbers must have leading digits\n\n    // Consume first part of number\n    do {\n      pos += 1;\n    } while (isDigit(toProcess[pos]));\n\n    // a '.' indicates this number is a real\n    ch = toProcess[pos];\n    if (ch === '.') {\n      isReal = true;\n      dotpos = pos;\n      // carry on consuming digits\n      do {\n        pos += 1;\n      } while (isDigit(toProcess[pos]));\n      if (pos === dotpos + 1) {\n        // the number is something like '3.'. It is really an int but may be\n        // part of something like '3.toString()'. In this case process it as\n        // an int and leave the dot as a separate token.\n        pos = dotpos;\n        pushIntToken(subarray(start, pos), false, start, pos);\n        return;\n      }\n    }\n    endOfNumber = pos;\n\n    // Now there may or may not be an exponent\n\n    // is it a long ?\n    if (isChar('L', 'l')) {\n      if (isReal) {\n        // 3.4L - not allowed\n        throw {\n          name: 'SpelParseException',\n          message: 'Real cannot be long in expression (' + expressionString + ') at position ' + pos\n        };\n      }\n      pushIntToken(subarray(start, endOfNumber), true, start, endOfNumber);\n      pos += 1;\n    } else if (isExponentChar(toProcess[pos])) {\n      isReal = true; // if it wasn't before, it is now\n      pos += 1;\n      possibleSign = toProcess[pos];\n      if (isSign(possibleSign)) {\n        pos += 1;\n      }\n\n      // exponent digits\n      do {\n        pos += 1;\n      } while (isDigit(toProcess[pos]));\n      isFloat = false;\n      if (isFloatSuffix(toProcess[pos])) {\n        isFloat = true;\n        pos += 1;\n        endOfNumber = pos;\n      } else if (isDoubleSuffix(toProcess[pos])) {\n        pos += 1;\n        endOfNumber = pos;\n      }\n      pushRealToken(subarray(start, pos), isFloat, start, pos);\n    } else {\n      ch = toProcess[pos];\n      isFloat = false;\n      if (isFloatSuffix(ch)) {\n        isReal = true;\n        isFloat = true;\n        pos += 1;\n        endOfNumber = pos;\n      } else if (isDoubleSuffix(ch)) {\n        isReal = true;\n        pos += 1;\n        endOfNumber = pos;\n      }\n      if (isReal) {\n        pushRealToken(subarray(start, endOfNumber), isFloat, start, endOfNumber);\n      } else {\n        pushIntToken(subarray(start, endOfNumber), false, start, endOfNumber);\n      }\n    }\n  }\n  function lexIdentifier() {\n    var start = pos,\n      substring,\n      asString,\n      idx;\n    do {\n      pos += 1;\n    } while (isIdentifier(toProcess[pos]));\n    substring = subarray(start, pos);\n\n    // Check if this is the alternative (textual) representation of an operator (see\n    // alternativeOperatorNames)\n    if (pos - start === 2 || pos - start === 3 || pos - start === 5) {\n      asString = substring.toUpperCase();\n      idx = ALTERNATIVE_OPERATOR_NAMES.indexOf(asString);\n      if (idx >= 0) {\n        /* James Chu, Potix, 20220120, fix bug for alternative op name */\n        pushOneCharOrTwoCharToken(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind[asString], start, substring);\n        return;\n      }\n    }\n    tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.IDENTIFIER, substring.replace('\\0', ''), start, pos));\n  }\n  function pushIntToken(data, isLong, start, end) {\n    if (isLong) {\n      tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_LONG, data, start, end));\n    } else {\n      tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_INT, data, start, end));\n    }\n  }\n  function pushHexIntToken(data, isLong, start, end) {\n    if (data.length === 0) {\n      if (isLong) {\n        throw {\n          name: 'SpelParseException',\n          message: 'Not a long in expression (' + expressionString + ') at position ' + pos\n        };\n      } else {\n        throw {\n          name: 'SpelParseException',\n          message: 'Not an int in expression (' + expressionString + ') at position ' + pos\n        };\n      }\n    }\n    if (isLong) {\n      tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_HEXLONG, data, start, end));\n    } else {\n      tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_HEXINT, data, start, end));\n    }\n  }\n  function pushRealToken(data, isFloat, start, end) {\n    if (isFloat) {\n      tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_REAL_FLOAT, data, start, end));\n    } else {\n      tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(_TokenKind__WEBPACK_IMPORTED_MODULE_1__.TokenKind.LITERAL_REAL, data, start, end));\n    }\n  }\n  function subarray(start, end) {\n    return toProcess.substring(start, end);\n  }\n\n  /**\n   * Check if this might be a two character token.\n   */\n  function isTwoCharToken(kind) {\n    if (kind.tokenChars.length === 2 && toProcess[pos] === kind.tokenChars[0]) {\n      return toProcess[pos + 1] === kind.tokenChars[1];\n    }\n    return false;\n  }\n\n  /**\n   * Push a token of just one character in length.\n   */\n  function pushCharToken(kind) {\n    tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(kind, null, pos, pos + 1));\n    pos += 1;\n  }\n\n  /**\n   * Push a token of two characters in length.\n   */\n  function pushPairToken(kind) {\n    tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(kind, null, pos, pos + 2));\n    pos += 2;\n  }\n  function pushOneCharOrTwoCharToken(kind, pos, data) {\n    tokens.push(new _Token__WEBPACK_IMPORTED_MODULE_0__.Token(kind, data, pos, pos + kind.getLength()));\n  }\n\n  // ID: ('a'..'z'|'A'..'Z'|'_'|'$') ('a'..'z'|'A'..'Z'|'_'|'$'|'0'..'9'|DOT_ESCAPED)*;\n  function isIdentifier(ch) {\n    return isAlphabetic(ch) || isDigit(ch) || ch === '_' || ch === '$';\n  }\n  function isChar(a, b) {\n    var ch = toProcess[pos];\n    return ch === a || ch === b;\n  }\n  function isExponentChar(ch) {\n    return ch === 'e' || ch === 'E';\n  }\n  function isFloatSuffix(ch) {\n    return ch === 'f' || ch === 'F';\n  }\n  function isDoubleSuffix(ch) {\n    return ch === 'd' || ch === 'D';\n  }\n  function isSign(ch) {\n    return ch === '+' || ch === '-';\n  }\n  function isDigit(ch) {\n    if (ch.charCodeAt(0) > 255) {\n      return false;\n    }\n    return (FLAGS[ch.charCodeAt(0)] & IS_DIGIT) !== 0;\n  }\n  function isAlphabetic(ch) {\n    if (ch.charCodeAt(0) > 255) {\n      return false;\n    }\n    return (FLAGS[ch.charCodeAt(0)] & IS_ALPHA) !== 0;\n  }\n  function isHexadecimalDigit(ch) {\n    if (ch.charCodeAt(0) > 255) {\n      return false;\n    }\n    return (FLAGS[ch.charCodeAt(0)] & IS_HEXDIGIT) !== 0;\n  }\n  process();\n  return tokens;\n}\nvar Tokenizer = {\n  tokenize: tokenize\n};\n\n//# sourceURL=webpack://spel2js/./src/Tokenizer.js?")},"./src/ast/Assign.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Assign: function() { return /* binding */ Assign; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents assignment. An alternative to calling setValue() for an expression is to use\n * an assign.\n *\n * <p>Example: 'someNumberProperty=42'\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, property, assignedValue) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('assign', position, property, assignedValue);\n  node.toString = function () {\n    return property + '=' + assignedValue;\n  };\n  node.getValue = function (state) {\n    var context = state.activeContext.peek();\n    if (!context) {\n      throw {\n        name: 'ContextDoesNotExistException',\n        message: 'Attempting to assign property \\'' + property.getValue(state) + '\\' for an undefined context.'\n      };\n    }\n    return property.setValue(assignedValue.getValue(state), state);\n  };\n  return node;\n}\nvar Assign = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/Assign.js?")},"./src/ast/BeanReference.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BeanReference: function() { return /* binding */ BeanReference; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a bean reference to a type, for example <tt>@foo</tt> or <tt>@'foo.bar'</tt>.\n * For a FactoryBean the syntax <tt>&foo</tt> can be used to access the factory itself.\n *\n * @author Andy Clement\n */\nfunction createNode(position, beanName) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('beanref', position);\n  node.getValue = function (state) {\n    throw {\n      name: 'MethodNotImplementedException',\n      message: 'BeanReference: Not implemented'\n    };\n  };\n  return node;\n}\nvar BeanReference = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/BeanReference.js?")},"./src/ast/BooleanLiteral.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BooleanLiteral: function() { return /* binding */ BooleanLiteral; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents the literal values TRUE and FALSE.\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(value, position) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'boolean\', position);\n  node.toString = function () {\n    return String(value);\n  };\n  node.getValue = function () {\n    return value;\n  };\n  node.setValue = function (newValue) {\n    /*jshint -W093 */\n    return value = newValue;\n    /*jshint +W093 */\n  };\n\n  return node;\n}\nvar BooleanLiteral = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/BooleanLiteral.js?')},"./src/ast/CompoundExpression.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CompoundExpression: function() { return /* binding */ CompoundExpression; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a DOT separated expression sequence, such as 'property1.property2.methodOne()'\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, expressionComponents) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create.apply(null, ['compound', position].concat(expressionComponents));\n  node.toString = function () {\n    var children = node.getChildren(),\n      childrenCount = children.length,\n      i,\n      raw = [];\n    for (i = 0; i < childrenCount; i += 1) {\n      if (children[i].getType() === 'indexer') {\n        raw.push('[', children[i].toString(), ']');\n      } else {\n        if (i > 0) {\n          raw.push('.');\n        }\n        raw.push(children[i].toString());\n      }\n    }\n    return raw.join('');\n  };\n  function buildContextStack(state) {\n    var children = node.getChildren(),\n      childrenCount = children.length,\n      i;\n    for (i = 0; i < childrenCount; i += 1) {\n      if (children[i].getType() === 'indexer') {\n        var value = state.activeContext.peek();\n        if (value != null) {\n          /* James Chu, Potix, 20230314, check $lc$ */\n          if (value['$lc$']) {\n            state.activeContext.push(value['$lc$'][children[i].getValue(state)]);\n          } else {\n            state.activeContext.push(value[children[i].getValue(state)]);\n          }\n        } else {\n          return function () {};\n        }\n      } else {\n        state.activeContext.push(children[i].getValue(state));\n      }\n    }\n    return function unbuildContextStack() {\n      for (i = 0; i < childrenCount; i += 1) {\n        state.activeContext.pop();\n      }\n    };\n  }\n  node.getValue = function (state) {\n    var context = state.activeContext.peek(),\n      value;\n    if (!context) {\n      throw {\n        name: 'ContextDoesNotExistException',\n        message: 'Attempting to evaluate compound expression with an undefined context.'\n      };\n    }\n    var unbuildContextStack = buildContextStack(state);\n    value = state.activeContext.peek();\n    unbuildContextStack();\n    return value;\n  };\n  node.setValue = function (value, state) {\n    var unbuildContextStack = buildContextStack(state),\n      childCount = node.getChildren().length;\n    state.activeContext.pop();\n    value = node.getChildren()[childCount - 1].setValue(value, state);\n    state.activeContext.push(null);\n    unbuildContextStack();\n    return value;\n  };\n  return node;\n}\nvar CompoundExpression = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/CompoundExpression.js?")},"./src/ast/ConstructorReference.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   ConstructorReference: function() { return /* binding */ ConstructorReference; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/* harmony import */ var _lib_Stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/Stack */ \"./src/lib/Stack.js\");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n\n/**\n * Represents the invocation of a constructor. Either a constructor on a regular type or\n * construction of an array. When an array is constructed, an initializer can be specified.\n *\n * <p>Examples:<br>\n * new String('hello world')<br>\n * new int[]{1,2,3,4}<br>\n * new int[3] new int[3]{1,2,3}\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @since 3.0\n */\nfunction createNode(position, dimensions, nodes) {\n  var isArray = nodes !== undefined;\n  var dimension;\n  if (isArray) {\n    dimension = dimensions.length && dimensions[0] && dimensions[0].getType() === 'number' ? dimensions[0].getValue() : null;\n  } else {\n    nodes = dimensions;\n    dimensions = undefined;\n  }\n  const [_qualifiedIdentifier, ...args] = nodes;\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('constructorref', position, ...nodes);\n  node.getRaw = function () {\n    return dimension;\n  };\n  node.getValue = function (state) {\n    if (isArray && args.length <= 1) {\n      var compiledArgs = [];\n\n      //populate arguments\n      args.forEach(function (arg) {\n        // reset the active context to root context for evaluating argument\n        const currentActiveContext = state.activeContext;\n        state.activeContext = new _lib_Stack__WEBPACK_IMPORTED_MODULE_1__.Stack();\n        state.activeContext.push(state.rootContext);\n\n        // evaluate argument\n        compiledArgs.push(arg.getValue(state));\n\n        // reset the active context\n        state.activeContext = currentActiveContext;\n      });\n      if (args.length === 1) {\n        return compiledArgs[0];\n      } else {\n        return dimension ? new Array(dimension) : [];\n      }\n    }\n    throw {\n      name: 'MethodNotImplementedException',\n      message: 'ConstructorReference: Not implemented'\n    };\n  };\n  return node;\n}\nvar ConstructorReference = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/ConstructorReference.js?")},"./src/ast/Elvis.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Elvis: function() { return /* binding */ Elvis; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents the elvis operator ?:. For an expression "a?:b" if a is not null, the value\n * of the expression is "a", if a is null then the value of the expression is "b".\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, expression, ifFalse) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'elvis\', position, expression, ifFalse);\n  node.getValue = function (state) {\n    return expression.getValue(state) !== null ? expression.getValue(state) : ifFalse.getValue(state);\n  };\n  return node;\n}\nvar Elvis = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/Elvis.js?')},"./src/ast/FunctionReference.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   FunctionReference: function() { return /* binding */ FunctionReference; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/* harmony import */ var _lib_Stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/Stack */ "./src/lib/Stack.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n\n/**\n * A function reference is of the form "#someFunction(a,b,c)". Functions may be defined in\n * the context prior to the expression being evaluated or within the expression itself\n * using a lambda function definition. For example: Lambda function definition in an\n * expression: "(#max = {|x,y|$x>$y?$x:$y};max(2,3))" Calling context defined function:\n * "#isEven(37)". Functions may also be static java methods, registered in the context\n * prior to invocation of the expression.\n *\n * <p>Functions are very simplistic, the arguments are not part of the definition (right\n * now), so the names must be unique.\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(functionName, position, args) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'function\', position);\n  node.getRaw = function () {\n    return {\n      functionName,\n      args\n    };\n  };\n  node.getValue = function (state) {\n    var locals = state.locals || {},\n      context = state.rootContext,\n      compiledArgs = [];\n\n    //populate arguments\n    args.forEach(function (arg) {\n      // reset the active context to root context for evaluating argument\n      const currentActiveContext = state.activeContext;\n      state.activeContext = new _lib_Stack__WEBPACK_IMPORTED_MODULE_1__.Stack();\n      state.activeContext.push(state.rootContext);\n\n      // evaluate argument\n      compiledArgs.push(arg.getValue(state));\n\n      // reset the active context\n      state.activeContext = currentActiveContext;\n    });\n    if (locals[functionName]) {\n      return locals[functionName].apply(context, compiledArgs);\n    }\n    throw {\n      name: \'FunctionDoesNotExistException\',\n      message: \'Function \\\'\' + functionName + \'\\\' does not exist.\'\n    };\n  };\n  return node;\n}\nvar FunctionReference = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/FunctionReference.js?')},"./src/ast/Identifier.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Identifier: function() { return /* binding */ Identifier; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * An 'identifier' {@link SpelNode}.\n *\n * @author Andy Clement\n * @since 3.0\n */\nfunction createNode(identifierName, position) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('identifier', position);\n  node.toString = node.getRaw = function () {\n    return identifierName;\n  };\n  node.getValue = function (state) {\n    throw {\n      name: 'MethodNotImplementedException',\n      message: 'Identifier: Not implemented'\n    };\n  };\n  return node;\n}\nvar Identifier = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/Identifier.js?")},"./src/ast/Indexer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Indexer: function() { return /* binding */ Indexer; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/* harmony import */ var _lib_Stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/Stack */ \"./src/lib/Stack.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n\n/**\n * An Indexer can index into some proceeding structure to access a particular piece of it.\n * Supported structures are: strings / collections (lists/sets) / arrays.\n *\n * @author Andy Clement\n * @author Phillip Webb\n * @author Stephane Nicoll\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, expressionComponents) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create.apply(null, ['indexer', position].concat(expressionComponents));\n  node.toString = function () {\n    var children = node.getChildren(),\n      childrenCount = children.length,\n      i,\n      raw = [];\n    for (i = 0; i < childrenCount; i += 1) {\n      if (children[i].getType() === 'indexer') {\n        raw.push('[', children[i].toString(), ']');\n      } else {\n        if (i > 0) {\n          raw.push('.');\n        }\n        raw.push(children[i].toString());\n      }\n    }\n    return raw.join('');\n  };\n  node.getValue = function (state) {\n    var activeContext = state.activeContext,\n      context,\n      childrenCount = node.getChildren().length,\n      i,\n      value;\n    state.activeContext = new _lib_Stack__WEBPACK_IMPORTED_MODULE_1__.Stack();\n    state.activeContext.push(state.rootContext);\n    context = state.activeContext.peek();\n    if (!context) {\n      throw {\n        name: 'ContextDoesNotExistException',\n        message: 'Attempting to evaluate compound expression with an undefined context.'\n      };\n    }\n    for (i = 0; i < childrenCount; i += 1) {\n      state.activeContext.push(node.getChildren()[i].getValue(state));\n    }\n    value = state.activeContext.peek();\n    for (i = 0; i < childrenCount; i += 1) {\n      state.activeContext.pop();\n    }\n    state.activeContext = activeContext;\n    return value;\n  };\n\n  //node.setContext(node.getValue());\n\n  return node;\n}\nvar Indexer = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/Indexer.js?")},"./src/ast/InlineList.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   InlineList: function() { return /* binding */ InlineList; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represent a list in an expression, e.g. '{1,2,3}'\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, elements) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('list', position),\n    list = [].concat(elements || []);\n  node.getRaw = function () {\n    return list;\n  };\n  node.getValue = function (state) {\n    return list.map(function (element) {\n      return element.getValue(state);\n    });\n  };\n  node.toString = function () {\n    return '[]';\n  };\n  return node;\n}\nvar InlineList = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/InlineList.js?")},"./src/ast/InlineMap.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   InlineMap: function() { return /* binding */ InlineMap; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represent a map in an expression, e.g. '{name:'foo',age:12}'\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, elements) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('map', position),\n    mapPieces = [].concat(elements || []);\n  node.getValue = function (state) {\n    var key = true,\n      keyValue = null,\n      map = {};\n    mapPieces.forEach(function (piece) {\n      if (key) {\n        //unquoted property names come as type \"property\" but should be treated as strings\n        if (piece.getType() === 'property') {\n          keyValue = piece.getName();\n        } else {\n          keyValue = piece.getValue(state);\n        }\n      } else {\n        map[keyValue] = piece.getValue(state);\n      }\n      key = !key;\n    });\n    return map;\n  };\n  return node;\n}\nvar InlineMap = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/InlineMap.js?")},"./src/ast/MethodReference.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   MethodReference: function() { return /* binding */ MethodReference; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/* harmony import */ var _lib_Stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/Stack */ \"./src/lib/Stack.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n\n/**\n * Expression language AST node that represents a method reference.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(nullSafeNavigation, methodName, position, args) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('method', position);\n  node.getRaw = function () {\n    return {\n      methodName,\n      args\n    };\n  };\n  node.toString = function () {\n    return methodName + '(' + args.map(a => a.toString()) + ')';\n  };\n  node.getValue = function (state) {\n    var context = state.activeContext.peek(),\n      compiledArgs = [],\n      method;\n    if (!context) {\n      throw {\n        name: 'ContextDoesNotExistException',\n        message: 'Attempting to look up property \\'' + methodName + '\\' for an undefined context.'\n      };\n    }\n\n    //handle safe navigation\n    function maybeHandleNullSafeNavigation(member) {\n      if (member === undefined || member === null) {\n        if (nullSafeNavigation) {\n          return null;\n        }\n        throw {\n          name: 'NullPointerException',\n          message: 'Method ' + methodName + ' does not exist.'\n        };\n      }\n      return member;\n    }\n\n    //populate arguments\n    args.forEach(function (arg) {\n      // reset the active context to root context for evaluating argument\n      const currentActiveContext = state.activeContext;\n      state.activeContext = new _lib_Stack__WEBPACK_IMPORTED_MODULE_1__.Stack();\n      state.activeContext.push(state.rootContext);\n\n      // evaluate argument\n      compiledArgs.push(arg.getValue(state));\n\n      // reset the active context\n      state.activeContext = currentActiveContext;\n    });\n    if (context['$lc$']) {\n      context = context['$lc$'];\n    }\n\n    //array methods\n    if (Array.isArray(context)) {\n      //size() -> length\n      switch (methodName) {\n        case 'size':\n        case 'length':\n          return context.length;\n        case 'contains':\n          return context.includes(compiledArgs[0]);\n        case 'get':\n          return context[compiledArgs[0]];\n      }\n    }\n\n    //accessors might not be available\n    if (methodName.substr(0, 3) === 'get' && !context[methodName]) {\n      return maybeHandleNullSafeNavigation(context[methodName.charAt(3).toLowerCase() + methodName.substring(4)]);\n    }\n    if (methodName.substr(0, 3) === 'set' && !context[methodName]) {\n      /*jshint -W093 */\n      return context[methodName.charAt(3).toLowerCase() + methodName.substring(4)] = compiledArgs[0];\n      /*jshint +W093 */\n    }\n\n    method = maybeHandleNullSafeNavigation(context[methodName]);\n    if (method) {\n      return method.apply(context, compiledArgs);\n    }\n    return null;\n  };\n  return node;\n}\nvar MethodReference = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/MethodReference.js?")},"./src/ast/NullLiteral.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NullLiteral: function() { return /* binding */ NullLiteral; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Expression language AST node that represents null.\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(value, position) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'null\', position);\n  node.getValue = function () {\n    return null;\n  };\n  node.toString = function () {\n    return \'null\';\n  };\n  return node;\n}\nvar NullLiteral = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/NullLiteral.js?')},"./src/ast/NumberLiteral.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NumberLiteral: function() { return /* binding */ NumberLiteral; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Expression language AST node that represents a literal number of any kind (since JavaScript only supports doubles anyway)\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(value, position) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'number\', position);\n  node.toString = function () {\n    return String(value);\n  };\n  node.getValue = function () {\n    return value;\n  };\n  node.setValue = function (newValue) {\n    /*jshint -W093 */\n    return value = newValue;\n    /*jshint +W093 */\n  };\n\n  return node;\n}\nvar NumberLiteral = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/NumberLiteral.js?')},"./src/ast/OpAnd.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpAnd: function() { return /* binding */ OpAnd; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents the boolean AND operation.\n *\n * @author Andy Clement\n * @author Mark Fisher\n * @author Oliver Becker\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-and\', position, left, right);\n  node.getValue = function (state) {\n    //double bang for javascript\n    return !!left.getValue(state) && !!right.getValue(state);\n  };\n  return node;\n}\nvar OpAnd = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpAnd.js?')},"./src/ast/OpBetween.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpBetween: function() { return /* binding */ OpBetween; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents the between operator. The left operand to between must be a single value and\n * the right operand must be a list - this operator returns true if the left operand is\n * between (using the registered comparator) the two elements in the list. The definition\n * of between being inclusive follows the SQL BETWEEN definition.\n *\n * @author Andy Clement\n * @since 3.0\n */\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('between', position, left, right);\n\n  /**\n   * Returns a boolean based on whether a value is in the range expressed. The first\n   * operand is any value whilst the second is a list of two values - those two values\n   * being the bounds allowed for the first operand (inclusive).\n   * @param state the expression state\n   * @return true if the left operand is in the range specified, false otherwise\n   * @throws EvaluationException if there is a problem evaluating the expression\n   */\n  node.getValue = function (state) {\n    throw {\n      name: 'MethodNotImplementedException',\n      message: 'OpBetween: Not implemented'\n    };\n  };\n  return node;\n}\nvar OpBetween = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpBetween.js?")},"./src/ast/OpDec.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpDec: function() { return /* binding */ OpDec; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Decrement operator.  Can be used in a prefix or postfix form. This will throw\n * appropriate exceptions if the operand in question does not support decrement.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, postfix, int) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-dec\', position, int);\n  node.getValue = function (state) {\n    var cur = int.getValue(state);\n    int.setValue(cur - 1, state);\n    if (postfix) {\n      return cur;\n    }\n    return cur - 1;\n  };\n  return node;\n}\nvar OpDec = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpDec.js?')},"./src/ast/OpDivide.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpDivide: function() { return /* binding */ OpDivide; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements division operator.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-divide\', position, left, right);\n  node.getValue = function (state) {\n    return left.getValue(state) / right.getValue(state);\n  };\n  return node;\n}\nvar OpDivide = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpDivide.js?')},"./src/ast/OpEQ.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpEQ: function() { return /* binding */ OpEQ; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the equality operator.\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-eq\', position, left, right);\n  node.getValue = function (state) {\n    /* James Chu, Potix, 20220826, unwrap observable if any*/\n    return _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.isEqualValue(left.getValue(state), right.getValue(state));\n  };\n  return node;\n}\nvar OpEQ = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpEQ.js?')},"./src/ast/OpEmpty.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpEmpty: function() { return /* binding */ OpEmpty; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/* harmony import */ var _lib_Stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../lib/Stack */ \"./src/lib/Stack.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n\n/**\n * Expression language AST node that represents an empty method reference.\n *\n * @author James Chu\n * @since 0.2.9\n */\n\nfunction createNode(position, arg) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('op-empty', position, arg);\n  node.getValue = function (state) {\n    // only one arg\n    // reset the active context to root context for evaluating argument\n    const currentActiveContext = state.activeContext;\n    state.activeContext = new _lib_Stack__WEBPACK_IMPORTED_MODULE_1__.Stack();\n    state.activeContext.push(state.rootContext);\n\n    // evaluate argument\n    var targetValue = arg.getValue(state),\n      result = true;\n    if (targetValue != null) {\n      if (Array.isArray(targetValue) || typeof targetValue === 'string') {\n        result = !targetValue.length;\n      } else {\n        let listContent = targetValue['$lc$'];\n        if (listContent) {\n          result = !listContent.length;\n        } else {\n          let isMap = targetValue['$map$'];\n          for (var prop in targetValue) {\n            if (isMap && (prop == '$id$' || prop == '$map$')) {\n              //skip map uid\n              continue;\n            } else if (targetValue.hasOwnProperty(prop)) {\n              result = false;\n              break;\n            }\n          }\n        }\n      }\n    }\n    // reset the active context\n    state.activeContext = currentActiveContext;\n    return result;\n  };\n  return node;\n}\nvar OpEmpty = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpEmpty.js?")},"./src/ast/OpGE.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpGE: function() { return /* binding */ OpGE; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements greater-than-or-equal operator.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-ge\', position, left, right);\n  node.getValue = function (state) {\n    return left.getValue(state) >= right.getValue(state);\n  };\n  return node;\n}\nvar OpGE = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpGE.js?')},"./src/ast/OpGT.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpGT: function() { return /* binding */ OpGT; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the greater-than operator.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-gt\', position, left, right);\n  node.getValue = function (state) {\n    return left.getValue(state) > right.getValue(state);\n  };\n  return node;\n}\nvar OpGT = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpGT.js?')},"./src/ast/OpInc.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpInc: function() { return /* binding */ OpInc; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Increment operator. Can be used in a prefix or postfix form. This will throw\n * appropriate exceptions if the operand in question does not support increment.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, postfix, int) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-inc\', position, int);\n  node.getValue = function (state) {\n    var cur = int.getValue(state);\n    int.setValue(cur + 1, state);\n    if (postfix) {\n      return cur;\n    }\n    return cur + 1;\n  };\n  return node;\n}\nvar OpInc = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpInc.js?')},"./src/ast/OpInstanceof.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpInstanceof: function() { return /* binding */ OpInstanceof; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * The operator 'instanceof' checks if an object is of the class specified in the right\n * hand operand, in the same way that {@code instanceof} does in Java.\n *\n * THIS OPERATOR IS NOT IMPLEMENTED AND WILL THROW AN EXCEPTION\n *\n * @author Andy Clement\n * @since 3.0\n */\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('instanceof', position, left, right);\n\n  /**\n   * Compare the left operand to see it is an instance of the type specified as the\n   * right operand. The right operand must be a class.\n   * @param state the expression state\n   * @return {@code true} if the left operand is an instanceof of the right operand,\n   * otherwise {@code false}\n   * @throws EvaluationException if there is a problem evaluating the expression\n   */\n  node.getValue = function (state) {\n    throw {\n      name: 'MethodNotImplementedException',\n      message: 'OpInstanceOf: Not implemented'\n    };\n  };\n  return node;\n}\nvar OpInstanceof = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpInstanceof.js?")},"./src/ast/OpLE.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpLE: function() { return /* binding */ OpLE; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the less-than-or-equal operator.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-le\', position, left, right);\n  node.getValue = function (state) {\n    return left.getValue(state) <= right.getValue(state);\n  };\n  return node;\n}\nvar OpLE = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpLE.js?')},"./src/ast/OpLT.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpLT: function() { return /* binding */ OpLT; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the less-than operator.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-lt\', position, left, right);\n  node.getValue = function (state) {\n    return left.getValue(state) < right.getValue(state);\n  };\n  return node;\n}\nvar OpLT = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpLT.js?')},"./src/ast/OpMatches.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpMatches: function() { return /* binding */ OpMatches; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the matches operator. Matches takes two operands:\n * The first is a String and the second is a Java regex.\n * It will return {@code true} when {@link #getValue} is called\n * if the first operand matches the regex.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Chris Thielen\n * @since 3.0\n */\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'matches\', position, left, right);\n\n  /**\n   * Check the first operand matches the regex specified as the second operand.\n   * @param state the expression state\n   * @return {@code true} if the first operand matches the regex specified as the\n   * second operand, otherwise {@code false}\n   * @throws EvaluationException if there is a problem evaluating the expression\n   * (e.g. the regex is invalid)\n   */\n  node.getValue = function (state) {\n    var data = left.getValue(state);\n    var regexpString = right.getValue(state);\n    try {\n      var regexp = new RegExp(regexpString);\n      return !!regexp.exec(data);\n    } catch (error) {\n      throw {\n        name: \'EvaluationException\',\n        message: error.toString()\n      };\n    }\n  };\n  return node;\n}\nvar OpMatches = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpMatches.js?')},"./src/ast/OpMinus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpMinus: function() { return /* binding */ OpMinus; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * The minus operator supports:\n * <ul>\n * <li>subtraction of numbers\n * <li>subtraction of an int from a string of one character\n * (effectively decreasing that character), so 'd'-3='a'\n * </ul>\n *\n * <p>It can be used as a unary operator for numbers.\n * The standard promotions are performed when the operand types vary (double-int=double).\n * For other options it defers to the registered overloader.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('op-minus', position, left, right);\n  node.getValue = function (state) {\n    if (!right) {\n      return -left.getValue(state);\n    }\n    return left.getValue(state) - right.getValue(state);\n  };\n  return node;\n}\nvar OpMinus = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpMinus.js?")},"./src/ast/OpModulus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpModulus: function() { return /* binding */ OpModulus; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the modulus operator.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-modulus\', position, left, right);\n  node.getValue = function (state) {\n    return left.getValue(state) % right.getValue(state);\n  };\n  return node;\n}\nvar OpModulus = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpModulus.js?')},"./src/ast/OpMultiply.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpMultiply: function() { return /* binding */ OpMultiply; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the {@code multiply} operator.\n *\n * <p>Conversions and promotions are handled as defined in\n * <a href=\"http://java.sun.com/docs/books/jls/third_edition/html/conversions.html\">Section 5.6.2 of the\n * Java Language Specification</a>, with the addiction of {@code BigDecimal}/{@code BigInteger} management:\n *\n * <p>If any of the operands is of a reference type, unboxing conversion (Section 5.1.8)\n * is performed. Then:<br>\n * If either operand is of type {@code BigDecimal}, the other is converted to {@code BigDecimal}.<br>\n * If either operand is of type double, the other is converted to double.<br>\n * Otherwise, if either operand is of type float, the other is converted to float.<br>\n * If either operand is of type {@code BigInteger}, the other is converted to {@code BigInteger}.<br>\n * Otherwise, if either operand is of type long, the other is converted to long.<br>\n * Otherwise, both operands are converted to type int.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Sam Brannen\n * @author Giovanni Dall'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('op-multiply', position, left, right);\n  node.getValue = function (state) {\n    var leftValue = left.getValue(state),\n      rightValue = right.getValue(state);\n    if (typeof leftValue === 'number' && typeof rightValue === 'number') {\n      return leftValue * rightValue;\n    }\n\n    //repeats (ex. 'abc' * 2 = 'abcabc')\n    if (typeof leftValue === 'string' && typeof rightValue === 'number') {\n      var s = '',\n        i = 0;\n      for (; i < rightValue; i += 1) {\n        s += leftValue;\n      }\n      return s;\n    }\n    return null;\n  };\n  return node;\n}\nvar OpMultiply = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpMultiply.js?")},"./src/ast/OpNE.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpNE: function() { return /* binding */ OpNE; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Implements the not-equal operator.\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-ne\', position, left, right);\n  node.getValue = function (state) {\n    /* James Chu, Potix, 20220826, unwrap observable if any*/\n    return !_SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.isEqualValue(left.getValue(state), right.getValue(state));\n  };\n  return node;\n}\nvar OpNE = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpNE.js?')},"./src/ast/OpNot.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpNot: function() { return /* binding */ OpNot; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a NOT operation.\n *\n * @author Andy Clement\n * @author Mark Fisher\n * @author Oliver Becker\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, expr) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-not\', position, expr);\n  node.getValue = function (state) {\n    return !expr.getValue(state);\n  };\n  return node;\n}\nvar OpNot = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpNot.js?')},"./src/ast/OpOr.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpOr: function() { return /* binding */ OpOr; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents the boolean OR operation.\n *\n * @author Andy Clement\n * @author Mark Fisher\n * @author Oliver Becker\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-or\', position, left, right);\n  node.getValue = function (state) {\n    //double bang for javascript\n    return !!left.getValue(state) || !!right.getValue(state);\n  };\n  return node;\n}\nvar OpOr = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpOr.js?')},"./src/ast/OpPlus.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpPlus: function() { return /* binding */ OpPlus; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * The plus operator will:\n * <ul>\n * <li>add numbers\n * <li>concatenate strings\n * </ul>\n *\n * <p>It can be used as a unary operator for numbers.\n * The standard promotions are performed when the operand types vary (double+int=double).\n * For other options it defers to the registered overloader.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Ivo Smid\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, left, right) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-plus\', position, left, right);\n  node.getValue = function (state) {\n    if (!right) {\n      return +left.getValue(state);\n    }\n    //javascript will handle string concatenation or addition depending on types\n    return left.getValue(state) + right.getValue(state);\n  };\n  return node;\n}\nvar OpPlus = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpPlus.js?')},"./src/ast/OpPower.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   OpPower: function() { return /* binding */ OpPower; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * The power operator.\n *\n * @author Andy Clement\n * @author Giovanni Dall\'Oglio Risso\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, base, exp) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'op-power\', position, base, exp);\n  node.getValue = function (state) {\n    return Math.pow(base.getValue(state), exp.getValue(state));\n  };\n  return node;\n}\nvar OpPower = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/OpPower.js?')},"./src/ast/Projection.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Projection: function() { return /* binding */ Projection; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents projection, where a given operation is performed on all elements in some\n * input sequence, returning a new sequence of the same size. For example:\n * "{1,2,3,4,5,6,7,8,9,10}.!{#isEven(#this)}" returns "[n, y, n, y, n, y, n, y, n, y]"\n *\n * @author Andy Clement\n * @author Mark Fisher\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction projectCollection(collection, expr, state) {\n  return collection.map(function (element) {\n    var matches;\n    state.activeContext.push(element);\n    matches = expr.getValue(state);\n    state.activeContext.pop();\n    return matches;\n  });\n}\nfunction createNode(nullSafeNavigation, position, expr) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'projection\', position, expr);\n  node.getValue = function (state) {\n    var collection = state.activeContext.peek(),\n      entries = [],\n      key;\n    if (Array.isArray(collection)) {\n      return projectCollection(collection, expr, state);\n    } else if (typeof collection === \'object\') {\n      for (key in collection) {\n        if (collection.hasOwnProperty(key)) {\n          entries.push(collection[key]);\n        }\n      }\n      return projectCollection(entries, expr, state);\n    }\n    return null;\n  };\n  return node;\n}\nvar Projection = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/Projection.js?')},"./src/ast/PropertyReference.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   PropertyReference: function() { return /* binding */ PropertyReference; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a simple property or field reference.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Clark Duplichien\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(nullSafeNavigation, propertyName, position) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('property', position);\n  node.toString = node.getRaw = function () {\n    return propertyName;\n  };\n  node.getValue = function (state) {\n    var context = state.activeContext.peek();\n    if (!context) {\n      /* James Chu, Potix, 20211026, allow null value */\n      return null;\n    }\n    if (!Object.hasOwnProperty.call(context, propertyName)) {\n      //handle safe navigation\n      if (nullSafeNavigation || context === window.clientbind.RemoteEL) {\n        return null;\n      }\n\n      //handle conversion of Java properties to JavaScript properties\n      if (propertyName === 'size' && Array.isArray(context)) {\n        return context.length;\n      }\n      if (Object.hasOwnProperty.call(context, '$data$')) {\n        context = context['$data$'];\n        if (context == null) return null;\n      } else if (Object.hasOwnProperty.call(context, '$map$')) {\n        return context[propertyName];\n      }\n      if (Object.hasOwnProperty.call(context, '_@t') && context['_@t'] === 'date') {\n        let bean = window.Dates.newInstance(context['_@n'], 'UTC');\n        if (bean) {\n          if (bean[propertyName] == null) {\n            let methodName = 'get' + propertyName.charAt(0).toUpperCase() + propertyName.substring(1);\n            if (typeof bean[methodName] === 'function') {\n              return bean[methodName]();\n            }\n          } else {\n            return bean[propertyName];\n          }\n        }\n      }\n      if (Object.hasOwnProperty.call(context, propertyName)) {\n        return context[propertyName];\n      }\n\n      /* Jumper Chen, Potix 20221101, handle widget's getter if any */\n      if (typeof context.get === 'function') {\n        // try getExtraAttr() first.\n        if (typeof context.getExtraAttr === 'function') {\n          var extraAttr = context.getExtraAttr(propertyName);\n          if (extraAttr != null) {\n            return extraAttr;\n          }\n        }\n        return context.get(propertyName);\n      }\n\n      /* Jumper Chen, Potix 20221103, handle BindEL Resovlers */\n      if (state.rootContext === context) {\n        // resolve the property recursively\n        if (typeof context.resolve === 'function') {\n          return context.resolve(node, propertyName);\n        }\n      }\n      throw {\n        name: 'PropertyNotFoundException',\n        message: 'Property \\'' + propertyName + '\\' does not exist.'\n      };\n    }\n    return context[propertyName];\n  };\n  node.setValue = function (value, state) {\n    var context = state.activeContext.peek();\n    if (!context) {\n      throw {\n        name: 'ContextDoesNotExistException',\n        message: 'Attempting to assign property \\'' + propertyName + '\\' for an undefined context.'\n      };\n    }\n\n    /*jshint -W093 */\n    return context[propertyName] = value;\n    /*jshint +W093 */\n  };\n\n  node.getName = function () {\n    return propertyName;\n  };\n  return node;\n}\nvar PropertyReference = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/PropertyReference.js?")},"./src/ast/QualifiedIdentifier.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   QualifiedIdentifier: function() { return /* binding */ QualifiedIdentifier; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a dot separated sequence of strings that indicate a package qualified type\n * reference.\n *\n * <p>Example: "java.lang.String" as in the expression "new java.lang.String(\'hello\')"\n *\n * @author Andy Clement\n * @since 3.0\n */\nfunction createNode(position, pieces) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'qualifiedidentifier\', position, ...pieces);\n  node.getRaw = function () {\n    return pieces.map(p => p.getRaw());\n  };\n  node.getValue = function (state) {\n    throw {\n      name: \'MethodNotImplementedException\',\n      message: \'QualifiedIdentifier: Not implemented\'\n    };\n  };\n  return node;\n}\nvar QualifiedIdentifier = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/QualifiedIdentifier.js?')},"./src/ast/Selection.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Selection: function() { return /* binding */ Selection; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents selection over a map or collection.\n * For example: {1,2,3,4,5,6,7,8,9,10}.?{#isEven(#this) == 'y'} returns [2, 4, 6, 8, 10]\n *\n * <p>Basically a subset of the input data is returned based on the\n * evaluation of the expression supplied as selection criteria.\n *\n * @author Andy Clement\n * @author Mark Fisher\n * @author Sam Brannen\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction matches(element, expr, state) {\n  var doesMatch = false;\n  state.activeContext.push(element);\n  doesMatch = expr.getValue(state);\n  state.activeContext.pop();\n  return doesMatch;\n}\nfunction selectFromArray(collection, whichElement, expr, state) {\n  var newCollection = collection.filter(function (element) {\n    return matches(element, expr, state);\n  });\n  switch (whichElement) {\n    case 'ALL':\n      return newCollection;\n    case 'FIRST':\n      return newCollection[0] || null;\n    case 'LAST':\n      if (newCollection.length) {\n        return newCollection[newCollection.length - 1];\n      }\n      return null;\n  }\n}\nfunction selectFromMap(collection, whichElement, expr, state) {\n  var newCollection = {},\n    entry,\n    key,\n    entries = [],\n    returnValue = {};\n  for (key in collection) {\n    if (collection.hasOwnProperty(key)) {\n      entry = {\n        key: key,\n        value: collection[key]\n      };\n      if (matches(entry, expr, state)) {\n        entries.push(entry);\n      }\n    }\n  }\n  switch (whichElement) {\n    case 'ALL':\n      entries.forEach(function (entry) {\n        newCollection[entry.key] = entry.value;\n      });\n      return newCollection;\n    case 'FIRST':\n      if (entries.length) {\n        returnValue[entries[0].key] = entries[0].value;\n        return returnValue;\n      }\n      return null;\n    case 'LAST':\n      if (entries.length) {\n        returnValue[entries[entries.length - 1].key] = entries[entries.length - 1].value;\n        return returnValue;\n      }\n      return null;\n  }\n  entries.forEach(function (entry) {\n    newCollection[entry.key] = entry.value;\n  });\n}\nfunction createNode(nullSafeNavigation, whichElement, position, expr) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('selection', position, expr);\n  node.getValue = function (state) {\n    var collection = state.activeContext.peek();\n    if (collection) {\n      if (Array.isArray(collection)) {\n        return selectFromArray(collection, whichElement, expr, state);\n      } else if (typeof collection === 'object') {\n        return selectFromMap(collection, whichElement, expr, state);\n      }\n    }\n    return null;\n  };\n  return node;\n}\nvar Selection = {\n  create: createNode,\n  FIRST: 'FIRST',\n  LAST: 'LAST',\n  ALL: 'ALL'\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/Selection.js?")},"./src/ast/SpelNode.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SpelNode: function() { return /* binding */ SpelNode; }\n/* harmony export */ });\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The common supertype of all AST nodes in a parsed Spring Expression Language\n * format expression.\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createSpelNode(nodeType, position) {\n  var node = {},\n    type = nodeType || 'Abstract',\n    children = [],\n    parent = null,\n    activeContext;\n  node._type = type;\n  node.getType = function () {\n    return type;\n  };\n  node.setType = function (nodeType) {\n    type = nodeType;\n  };\n  node.getChildren = function () {\n    return children;\n  };\n  node.addChild = function (childNode) {\n    if (!childNode) {\n      // See OpMinus and OpPlus: right node can be null for unary mode\n      return;\n    }\n    if (!childNode.setParent) {\n      throw {\n        name: 'Error',\n        message: 'Trying to add a child which is not a node: ' + JSON.stringify(childNode)\n      };\n    }\n    childNode.setParent(node);\n    children.push(childNode);\n  };\n  node.getParent = function () {\n    return parent;\n  };\n  node.setParent = function (parentNode) {\n    parent = parentNode;\n  };\n  node.getContext = function (state) {\n    return activeContext || state.activeContext.peek();\n  };\n  node.setContext = function (nodeContext) {\n    activeContext = nodeContext;\n  };\n  node.getStartPosition = function () {\n    return position >> 16;\n  };\n  node.getEndPosition = function () {\n    return position & 0xffff;\n  };\n\n  //must override\n  node.getValue = function () {\n    throw {\n      name: 'MethodNotImplementedException',\n      message: 'SpelNode#getValue() must be overridden.'\n    };\n  };\n  node.toString = function () {\n    var s = 'Kind: ' + node.getType();\n    //s += ', Value: ' + node.getValue();\n    s += ', Children: [';\n    for (var i = 0, l = node.getChildren().length; i < l; i += 1) {\n      s += '{' + node.getChildren()[i] + '}, ';\n    }\n    s += ']';\n    return s;\n  };\n\n  //constructor\n  if (position === 0) {\n    throw {\n      name: 'Error',\n      message: 'Position cannot be 0'\n    };\n  }\n  for (var _len = arguments.length, operands = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n    operands[_key - 2] = arguments[_key];\n  }\n  if (operands) {\n    operands.forEach(function (operand) {\n      node.addChild(operand);\n    });\n  }\n  return node;\n}\n\n/* James Chu, Potix, 20220826, unwrap observable if any*/\nfunction isEqualValue(obj1, obj2) {\n  if (obj1 === null || obj1 === undefined) {\n    return obj1 === obj2;\n  } else if (obj2 === null || obj2 === undefined) {\n    return false;\n  }\n  if (Object.hasOwnProperty.call(obj1, '$lc$') && Object.hasOwnProperty.call(obj2, '$lc$')) {\n    if (Object.hasOwnProperty.call(obj1, '$set$') == Object.hasOwnProperty.call(obj2, '$set$')) {\n      obj1 = mobx.isObservable(obj1) ? mobx.toJS(obj1)['$lc$'] : obj1['$lc$'];\n      obj2 = mobx.isObservable(obj2) ? mobx.toJS(obj2)['$lc$'] : obj2['$lc$'];\n    }\n  }\n  let obj1Type = typeof obj1,\n    obj2Type = typeof obj2;\n  if (obj1Type != obj2Type) {\n    return false;\n  } else if (obj1Type == 'object') {\n    let obj1Keys = Object.keys(obj1),\n      obj2Keys = Object.keys(obj2);\n    if (obj1Keys.length != obj2Keys.length) {\n      return false;\n    } else {\n      for (let key in obj1) {\n        if (!isEqualValue(obj1[key], obj2[key])) {\n          return false;\n        }\n      }\n      return true;\n    }\n  } else {\n    return obj1 === obj2;\n  }\n}\nvar SpelNode = {\n  create: createSpelNode,\n  isEqualValue: isEqualValue\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/SpelNode.js?")},"./src/ast/StringLiteral.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   StringLiteral: function() { return /* binding */ StringLiteral; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Expression language AST node that represents a string literal.\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(value, position) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('string', position),\n    raw = value;\n\n  /* Jumper Chen, Potix 20221115 */\n  node.toString = node.getRaw = function () {\n    return raw;\n  };\n  function stripQuotes(value) {\n    if (value[0] === '\\'' && value[value.length - 1] === '\\'' || value[0] === '\"' && value[value.length - 1] === '\"') {\n      value = value.substring(1, value.length - 1);\n    }\n    return value.replace(/''/g, '\\'').replace(/\"\"/g, '\"');\n  }\n\n  //value cannot be null so no check\n  value = stripQuotes(value);\n  node.getValue = function () {\n    return value;\n  };\n  node.setValue = function (newValue) {\n    /*jshint -W093 */\n    return value = newValue;\n    /*jshint +W093 */\n  };\n\n  return node;\n}\nvar StringLiteral = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/StringLiteral.js?")},"./src/ast/Ternary.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Ternary: function() { return /* binding */ Ternary; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a ternary expression, for example: "someCheck()?true:false".\n *\n * @author Andy Clement\n * @author Juergen Hoeller\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(position, expression, ifTrue, ifFalse) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'ternary\', position, expression, ifTrue, ifFalse);\n  node.toString = function () {\n    return expression + \' ? \' + ifTrue.toString() + \' : \' + ifFalse.toString();\n  };\n  node.getValue = function (state) {\n    return expression.getValue(state) ? ifTrue.getValue(state) : ifFalse.getValue(state);\n  };\n  return node;\n}\nvar Ternary = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/Ternary.js?')},"./src/ast/TypeReference.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   TypeReference: function() { return /* binding */ TypeReference; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ "./src/ast/SpelNode.js");\n/*\n * Copyright 2002-2019 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a reference to a type, for example\n * {@code "T(String)" or "T(com.somewhere.Foo)"}.\n *\n * @author Andy Clement\n */\nfunction createNode(position, node, _dims) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create(\'typeref\', position, node);\n  node.getValue = function (state) {\n    throw {\n      name: \'MethodNotImplementedException\',\n      message: \'TypeReference: Not implemented\'\n    };\n  };\n  return node;\n}\nvar TypeReference = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/TypeReference.js?')},"./src/ast/VariableReference.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   VariableReference: function() { return /* binding */ VariableReference; }\n/* harmony export */ });\n/* harmony import */ var _SpelNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelNode */ \"./src/ast/SpelNode.js\");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n\n/**\n * Represents a variable reference, eg. #someVar. Note this is different to a *local*\n * variable like $someVar\n *\n * @author Andy Clement\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction createNode(variableName, position) {\n  var node = _SpelNode__WEBPACK_IMPORTED_MODULE_0__.SpelNode.create('variable', position);\n  node.getRaw = function () {\n    return variableName;\n  };\n  node.getValue = function (state) {\n    var context = state.activeContext.peek(),\n      locals = state.locals;\n    if (!context) {\n      throw {\n        name: 'ContextDoesNotExistException',\n        message: 'Attempting to look up variable \\'' + variableName + '\\' for an undefined context.'\n      };\n    }\n\n    //there are 2 keywords (root, this) that need to be dealt with\n    if (variableName === 'this') {\n      return context;\n    }\n    if (variableName === 'root') {\n      return state.rootContext;\n    }\n    return locals[variableName];\n  };\n  node.setValue = function (value, state) {\n    var locals = state.locals;\n\n    /*jshint -W093 */\n    return locals[variableName] = value;\n    /*jshint +W093 */\n  };\n\n  return node;\n}\nvar VariableReference = {\n  create: createNode\n};\n\n//# sourceURL=webpack://spel2js/./src/ast/VariableReference.js?")},"./src/lib/Stack.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Stack: function() { return /* binding */ Stack; }\n/* harmony export */ });\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Ben March\n * @since 0.2.0\n */\n\nfunction Stack(startingElements) {\n  this.elements = startingElements || [];\n}\nStack.prototype.push = function (el) {\n  this.elements.push(el);\n  return el;\n};\nStack.prototype.pop = function () {\n  return this.elements.pop();\n};\nStack.prototype.peek = function () {\n  return this.elements[this.elements.length - 1];\n};\nStack.prototype.empty = function () {\n  return this.elements.length > 0;\n};\nStack.prototype.search = function (el) {\n  return this.elements.length - this.elements.indexOf(el);\n};\n\n//# sourceURL=webpack://spel2js/./src/lib/Stack.js?')},"./src/main.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   SpelExpressionEvaluator: function() { return /* reexport safe */ _SpelExpressionEvaluator__WEBPACK_IMPORTED_MODULE_0__.SpelExpressionEvaluator; },\n/* harmony export */   StandardContext: function() { return /* reexport safe */ _StandardContext__WEBPACK_IMPORTED_MODULE_1__.StandardContext; }\n/* harmony export */ });\n/* harmony import */ var _SpelExpressionEvaluator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SpelExpressionEvaluator */ "./src/SpelExpressionEvaluator.js");\n/* harmony import */ var _StandardContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./StandardContext */ "./src/StandardContext.js");\n/*\n * Copyright 2002-2015 the original author or authors.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @author Ben March\n * @since 0.2.0\n */\n\n\n\n\n\n//# sourceURL=webpack://spel2js/./src/main.js?')}},__webpack_module_cache__={};function __nested_webpack_require_193176__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](t,t.exports,__nested_webpack_require_193176__),t.exports}__nested_webpack_require_193176__.d=function(e,n){for(var t in n)__nested_webpack_require_193176__.o(n,t)&&!__nested_webpack_require_193176__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},__nested_webpack_require_193176__.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},__nested_webpack_require_193176__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__=__nested_webpack_require_193176__("./src/main.js");return __nested_webpack_exports__}()},module.exports=factory()},3310:function(e,n,t){var i,r;i=function(){!function(e){var n=e.performance;function t(e){n&&n.mark&&n.mark(e)}function i(e,t){n&&n.measure&&n.measure(e,t)}t("Zone");var r=e.__Zone_symbol_prefix||"__zone_symbol__";function o(e){return r+e}var a=!0===e[o("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var s=function(){function n(e,n){this._parent=e,this._name=n?n.name||"unnamed":"<root>",this._properties=n&&n.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,n)}return n.assertZonePatched=function(){if(e.Promise!==A.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.)")},Object.defineProperty(n,"root",{get:function(){for(var e=n.current;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"current",{get:function(){return P.zone},enumerable:!1,configurable:!0}),Object.defineProperty(n,"currentTask",{get:function(){return L},enumerable:!1,configurable:!0}),n.__load_patch=function(r,o,s){if(void 0===s&&(s=!1),A.hasOwnProperty(r)){if(!s&&a)throw Error("Already loaded patch: "+r)}else if(!e["__Zone_disable_"+r]){var l="Zone:"+r;t(l),A[r]=o(e,n,C),i(l,l)}},Object.defineProperty(n.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var n=this.getZoneWith(e);if(n)return n._properties[e]},n.prototype.getZoneWith=function(e){for(var n=this;n;){if(n._properties.hasOwnProperty(e))return n;n=n._parent}return null},n.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},n.prototype.wrap=function(e,n){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var t=this._zoneDelegate.intercept(this,e,n),i=this;return function(){return i.runGuarded(t,this,arguments,n)}},n.prototype.run=function(e,n,t,i){P={parent:P,zone:this};try{return this._zoneDelegate.invoke(this,e,n,t,i)}finally{P=P.parent}},n.prototype.runGuarded=function(e,n,t,i){void 0===n&&(n=null),P={parent:P,zone:this};try{try{return this._zoneDelegate.invoke(this,e,n,t,i)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{P=P.parent}},n.prototype.runTask=function(e,n,t){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");if(e.state!==w||e.type!==x&&e.type!==I){var i=e.state!=E;i&&e._transitionTo(E,k),e.runCount++;var r=L;L=e,P={parent:P,zone:this};try{e.type==I&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,n,t)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==w&&e.state!==T&&(e.type==x||e.data&&e.data.isPeriodic?i&&e._transitionTo(k,E):(e.runCount=0,this._updateTaskCount(e,-1),i&&e._transitionTo(w,E,w))),P=P.parent,L=r}}},n.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var n=this;n;){if(n===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);n=n.parent}e._transitionTo(y,w);var t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(T,y,w),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==y&&e._transitionTo(k,y),e},n.prototype.scheduleMicroTask=function(e,n,t,i){return this.scheduleTask(new d(S,e,n,t,i,void 0))},n.prototype.scheduleMacroTask=function(e,n,t,i,r){return this.scheduleTask(new d(I,e,n,t,i,r))},n.prototype.scheduleEventTask=function(e,n,t,i,r){return this.scheduleTask(new d(x,e,n,t,i,r))},n.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");e._transitionTo(O,k,E);try{this._zoneDelegate.cancelTask(this,e)}catch(n){throw e._transitionTo(T,O),this._zoneDelegate.handleError(this,n),n}return this._updateTaskCount(e,-1),e._transitionTo(w,O),e.runCount=0,e},n.prototype._updateTaskCount=function(e,n){var t=e._zoneDelegates;-1==n&&(e._zoneDelegates=null);for(var i=0;i<t.length;i++)t[i]._updateTaskCount(e.type,n)},n}();s.__symbol__=o;var l,c={name:"",onHasTask:function(e,n,t,i){return e.hasTask(t,i)},onScheduleTask:function(e,n,t,i){return e.scheduleTask(t,i)},onInvokeTask:function(e,n,t,i,r,o){return e.invokeTask(t,i,r,o)},onCancelTask:function(e,n,t,i){return e.cancelTask(t,i)}},u=function(){function e(e,n,t){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=n,this._forkZS=t&&(t&&t.onFork?t:n._forkZS),this._forkDlgt=t&&(t.onFork?n:n._forkDlgt),this._forkCurrZone=t&&(t.onFork?this.zone:n._forkCurrZone),this._interceptZS=t&&(t.onIntercept?t:n._interceptZS),this._interceptDlgt=t&&(t.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=t&&(t.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=t&&(t.onInvoke?t:n._invokeZS),this._invokeDlgt=t&&(t.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=t&&(t.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=t&&(t.onHandleError?t:n._handleErrorZS),this._handleErrorDlgt=t&&(t.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=t&&(t.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=t&&(t.onScheduleTask?t:n._scheduleTaskZS),this._scheduleTaskDlgt=t&&(t.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=t&&(t.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=t&&(t.onInvokeTask?t:n._invokeTaskZS),this._invokeTaskDlgt=t&&(t.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=t&&(t.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=t&&(t.onCancelTask?t:n._cancelTaskZS),this._cancelTaskDlgt=t&&(t.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=t&&(t.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var i=t&&t.onHasTask,r=n&&n._hasTaskZS;(i||r)&&(this._hasTaskZS=i?t:c,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,t.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),t.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),t.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,n):new s(e,n)},e.prototype.intercept=function(e,n,t){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,n,t):n},e.prototype.invoke=function(e,n,t,i,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,n,t,i,r):n.apply(t,i)},e.prototype.handleError=function(e,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,n)},e.prototype.scheduleTask=function(e,n){var t=n;if(this._scheduleTaskZS)this._hasTaskZS&&t._zoneDelegates.push(this._hasTaskDlgtOwner),(t=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,n))||(t=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=S)throw new Error("Task is missing scheduleFn.");v(n)}return t},e.prototype.invokeTask=function(e,n,t,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,n,t,i):n.callback.apply(t,i)},e.prototype.cancelTask=function(e,n){var t;if(this._cancelTaskZS)t=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");t=n.cancelFn(n)}return t},e.prototype.hasTask=function(e,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,n)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,n){var t=this._taskCounts,i=t[e],r=t[e]=i+n;if(r<0)throw new Error("More tasks executed then were scheduled.");if(0==i||0==r){var o={microTask:t.microTask>0,macroTask:t.macroTask>0,eventTask:t.eventTask>0,change:e};this.hasTask(this.zone,o)}},e}(),d=function(){function n(t,i,r,o,a,s){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=i,this.data=o,this.scheduleFn=a,this.cancelFn=s,!r)throw new Error("callback is not defined");this.callback=r;var l=this;t===x&&o&&o.useG?this.invoke=n.invokeTask:this.invoke=function(){return n.invokeTask.call(e,l,this,arguments)}}return n.invokeTask=function(e,n,t){e||(e=this),D++;try{return e.runCount++,e.zone.runTask(e,n,t)}finally{1==D&&m(),D--}},Object.defineProperty(n.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),n.prototype.cancelScheduleRequest=function(){this._transitionTo(w,y)},n.prototype._transitionTo=function(e,n,t){if(this._state!==n&&this._state!==t)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+n+"'"+(t?" or '"+t+"'":"")+", was '"+this._state+"'.");this._state=e,e==w&&(this._zoneDelegates=null)},n.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},n.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},n}(),_=o("setTimeout"),p=o("Promise"),h=o("then"),f=[],g=!1;function v(n){if(0===D&&0===f.length)if(l||e[p]&&(l=e[p].resolve(0)),l){var t=l[h];t||(t=l.then),t.call(l,m)}else e[_](m,0);n&&f.push(n)}function m(){if(!g){for(g=!0;f.length;){var e=f;f=[];for(var n=0;n<e.length;n++){var t=e[n];try{t.zone.runTask(t,null,null)}catch(e){C.onUnhandledError(e)}}}C.microtaskDrainDone(),g=!1}}var b={name:"NO ZONE"},w="notScheduled",y="scheduling",k="scheduled",E="running",O="canceling",T="unknown",S="microTask",I="macroTask",x="eventTask",A={},C={symbol:o,currentZoneFrame:function(){return P},onUnhandledError:M,microtaskDrainDone:M,scheduleMicroTask:v,showUncaughtError:function(){return!s[o("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:M,patchMethod:function(){return M},bindArguments:function(){return[]},patchThen:function(){return M},patchMacroTask:function(){return M},patchEventPrototype:function(){return M},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return M},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return M},wrapWithCurrentZone:function(){return M},filterProperties:function(){return[]},attachOriginToPatched:function(){return M},_redefineProperty:function(){return M},patchCallbacks:function(){return M}},P={parent:null,zone:new s(null,null)},L=null,D=0;function M(){}i("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||t.g);var e=Object.getOwnPropertyDescriptor,n=Object.defineProperty,i=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,a="addEventListener",s="removeEventListener",l=Zone.__symbol__(a),c=Zone.__symbol__(s),u="true",d="false",_=Zone.__symbol__("");function p(e,n){return Zone.current.wrap(e,n)}function h(e,n,t,i,r){return Zone.current.scheduleMacroTask(e,n,t,i,r)}var f=Zone.__symbol__,g="undefined"!=typeof window,v=g?window:void 0,m=g&&v||"object"==typeof self&&self||t.g,b="removeAttribute",w=[null];function y(e,n){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=p(e[t],n+"_"+t));return e}function k(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var E="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,O=!("nw"in m)&&void 0!==m.process&&"[object process]"==={}.toString.call(m.process),T=!O&&!E&&!(!g||!v.HTMLElement),S=void 0!==m.process&&"[object process]"==={}.toString.call(m.process)&&!E&&!(!g||!v.HTMLElement),I={},x=function(e){if(e=e||m.event){var n=I[e.type];n||(n=I[e.type]=f("ON_PROPERTY"+e.type));var t,i=this||e.target||m,r=i[n];if(T&&i===v&&"error"===e.type){var o=e;!0===(t=r&&r.call(this,o.message,o.filename,o.lineno,o.colno,o.error))&&e.preventDefault()}else null==(t=r&&r.apply(this,arguments))||t||e.preventDefault();return t}};function A(t,i,r){var o=e(t,i);if(!o&&r&&e(r,i)&&(o={enumerable:!0,configurable:!0}),o&&o.configurable){var a=f("on"+i+"patched");if(!t.hasOwnProperty(a)||!t[a]){delete o.writable,delete o.value;var s=o.get,l=o.set,c=i.substr(2),u=I[c];u||(u=I[c]=f("ON_PROPERTY"+c)),o.set=function(e){var n=this;n||t!==m||(n=m),n&&(n[u]&&n.removeEventListener(c,x),l&&l.apply(n,w),"function"==typeof e?(n[u]=e,n.addEventListener(c,x,!1)):n[u]=null)},o.get=function(){var e=this;if(e||t!==m||(e=m),!e)return null;var n=e[u];if(n)return n;if(s){var r=s&&s.call(this);if(r)return o.set.call(this,r),"function"==typeof e[b]&&e.removeAttribute(i),r}return null},n(t,i,o),t[a]=!0}}}function C(e,n,t){if(n)for(var i=0;i<n.length;i++)A(e,"on"+n[i],t);else{var r=[];for(var o in e)"on"==o.substr(0,2)&&r.push(o);for(var a=0;a<r.length;a++)A(e,r[a],t)}}var P=f("originalInstance");function L(e){var t=m[e];if(t){m[f(e)]=t,m[e]=function(){var n=y(arguments,e);switch(n.length){case 0:this[P]=new t;break;case 1:this[P]=new t(n[0]);break;case 2:this[P]=new t(n[0],n[1]);break;case 3:this[P]=new t(n[0],n[1],n[2]);break;case 4:this[P]=new t(n[0],n[1],n[2],n[3]);break;default:throw new Error("Arg list too long.")}},R(m[e],t);var i,r=new t((function(){}));for(i in r)"XMLHttpRequest"===e&&"responseBlob"===i||function(t){"function"==typeof r[t]?m[e].prototype[t]=function(){return this[P][t].apply(this[P],arguments)}:n(m[e].prototype,t,{set:function(n){"function"==typeof n?(this[P][t]=p(n,e+"."+t),R(this[P][t],n)):this[P][t]=n},get:function(){return this[P][t]}})}(i);for(i in t)"prototype"!==i&&t.hasOwnProperty(i)&&(m[e][i]=t[i])}}function D(n,t,r){for(var o=n;o&&!o.hasOwnProperty(t);)o=i(o);!o&&n[t]&&(o=n);var a=f(t),s=null;if(o&&(!(s=o[a])||!o.hasOwnProperty(a))&&(s=o[a]=o[t],k(o&&e(o,t)))){var l=r(s,a,t);o[t]=function(){return l(this,arguments)},R(o[t],s)}return s}function M(e,n,t){var i=null;function r(e){var n=e.data;return n.args[n.cbIdx]=function(){e.invoke.apply(this,arguments)},i.apply(n.target,n.args),e}i=D(e,n,(function(e){return function(n,i){var o=t(n,i);return o.cbIdx>=0&&"function"==typeof i[o.cbIdx]?h(o.name,i[o.cbIdx],o,r):e.apply(n,i)}}))}function R(e,n){e[f("OriginalDelegate")]=n}var N=!1,B=!1;function $(){if(N)return B;N=!0;try{var e=v.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(B=!0)}catch(e){}return B}Zone.__load_patch("ZoneAwarePromise",(function(e,n,t){var i=Object.getOwnPropertyDescriptor,r=Object.defineProperty;var o=t.symbol,a=[],s=!0===e[o("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=o("Promise"),c=o("then"),u="__creationTrace__";t.onUnhandledError=function(e){if(t.showUncaughtError()){var n=e&&e.rejection;n?console.error("Unhandled Promise rejection:",n instanceof Error?n.message:n,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",n,n instanceof Error?n.stack:void 0):console.error(e)}},t.microtaskDrainDone=function(){for(var e=function(){var e=a.shift();try{e.zone.runGuarded((function(){if(e.throwOriginal)throw e.rejection;throw e}))}catch(e){!function(e){t.onUnhandledError(e);try{var i=n[d];"function"==typeof i&&i.call(this,e)}catch(e){}}(e)}};a.length;)e()};var d=o("unhandledPromiseRejectionHandler");function _(e){return e&&e.then}function p(e){return e}function h(e){return R.reject(e)}var f=o("state"),g=o("value"),v=o("finally"),m=o("parentPromiseValue"),b=o("parentPromiseState"),w="Promise.then",y=null,k=!0,E=!1,O=0;function T(e,n){return function(t){try{A(e,n,t)}catch(n){A(e,!1,n)}}}var S=function(){var e=!1;return function(n){return function(){e||(e=!0,n.apply(null,arguments))}}},I="Promise resolved with itself",x=o("currentTaskTrace");function A(e,i,o){var l,c=S();if(e===o)throw new TypeError(I);if(e[f]===y){var d=null;try{"object"!=typeof o&&"function"!=typeof o||(d=o&&o.then)}catch(n){return c((function(){A(e,!1,n)}))(),e}if(i!==E&&o instanceof R&&o.hasOwnProperty(f)&&o.hasOwnProperty(g)&&o[f]!==y)P(o),A(e,o[f],o[g]);else if(i!==E&&"function"==typeof d)try{d.call(o,c(T(e,i)),c(T(e,!1)))}catch(n){c((function(){A(e,!1,n)}))()}else{e[f]=i;var _=e[g];if(e[g]=o,e[v]===v&&i===k&&(e[f]=e[b],e[g]=e[m]),i===E&&o instanceof Error){var p=n.currentTask&&n.currentTask.data&&n.currentTask.data[u];p&&r(o,x,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var h=0;h<_.length;)L(e,_[h++],_[h++],_[h++],_[h++]);if(0==_.length&&i==E){e[f]=O;var w=o;try{throw new Error("Uncaught (in promise): "+((l=o)&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l))+(o&&o.stack?"\n"+o.stack:""))}catch(e){w=e}s&&(w.throwOriginal=!0),w.rejection=o,w.promise=e,w.zone=n.current,w.task=n.currentTask,a.push(w),t.scheduleMicroTask()}}}return e}var C=o("rejectionHandledHandler");function P(e){if(e[f]===O){try{var t=n[C];t&&"function"==typeof t&&t.call(this,{rejection:e[g],promise:e})}catch(e){}e[f]=E;for(var i=0;i<a.length;i++)e===a[i].promise&&a.splice(i,1)}}function L(e,n,t,i,r){P(e);var o=e[f],a=o?"function"==typeof i?i:p:"function"==typeof r?r:h;n.scheduleMicroTask(w,(function(){try{var i=e[g],r=!!t&&v===t[v];r&&(t[m]=i,t[b]=o);var s=n.run(a,void 0,r&&a!==h&&a!==p?[]:[i]);A(t,!0,s)}catch(e){A(t,!1,e)}}),t)}var M=function(){},R=function(){function e(n){var t=this;if(!(t instanceof e))throw new Error("Must be an instanceof Promise.");t[f]=y,t[g]=[];try{n&&n(T(t,k),T(t,E))}catch(e){A(t,!1,e)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return A(new this(null),k,e)},e.reject=function(e){return A(new this(null),E,e)},e.race=function(e){var n,t,i=new this((function(e,i){n=e,t=i}));function r(e){n(e)}function o(e){t(e)}for(var a=0,s=e;a<s.length;a++){var l=s[a];_(l)||(l=this.resolve(l)),l.then(r,o)}return i},e.all=function(n){return e.allWithCallback(n)},e.allSettled=function(n){return(this&&this.prototype instanceof e?this:e).allWithCallback(n,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})},e.allWithCallback=function(e,n){for(var t,i,r=new this((function(e,n){t=e,i=n})),o=2,a=0,s=[],l=function(e){_(e)||(e=c.resolve(e));var r=a;try{e.then((function(e){s[r]=n?n.thenCallback(e):e,0==--o&&t(s)}),(function(e){n?(s[r]=n.errorCallback(e),0==--o&&t(s)):i(e)}))}catch(e){i(e)}o++,a++},c=this,u=0,d=e;u<d.length;u++)l(d[u]);return 0==(o-=2)&&t(s),r},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.then=function(t,i){var r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=this.constructor||e);var o=new r(M),a=n.current;return this[f]==y?this[g].push(a,o,t,i):L(this,a,o,t,i),o},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(t){var i=this.constructor[Symbol.species];i&&"function"==typeof i||(i=e);var r=new i(M);r[v]=v;var o=n.current;return this[f]==y?this[g].push(o,r,t,t):L(this,o,r,t,t),r},e}();R.resolve=R.resolve,R.reject=R.reject,R.race=R.race,R.all=R.all;var N=e[l]=e.Promise;e.Promise=R;var B=o("thenPatched");function $(e){var n=e.prototype,t=i(n,"then");if(!t||!1!==t.writable&&t.configurable){var r=n.then;n[c]=r,e.prototype.then=function(e,n){var t=this;return new R((function(e,n){r.call(t,e,n)})).then(e,n)},e[B]=!0}}return t.patchThen=$,N&&($(N),D(e,"fetch",(function(e){return n=e,function(e,t){var i=n.apply(e,t);if(i instanceof R)return i;var r=i.constructor;return r[B]||$(r),i};var n}))),Promise[n.__symbol__("uncaughtPromiseErrors")]=a,R})),Zone.__load_patch("toString",(function(e){var n=Function.prototype.toString,t=f("OriginalDelegate"),i=f("Promise"),r=f("Error"),o=function(){if("function"==typeof this){var o=this[t];if(o)return"function"==typeof o?n.call(o):Object.prototype.toString.call(o);if(this===Promise){var a=e[i];if(a)return n.call(a)}if(this===Error){var s=e[r];if(s)return n.call(s)}}return n.call(this)};o[t]=n,Function.prototype.toString=o;var a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}}));var j=!1;if("undefined"!=typeof window)try{var z=Object.defineProperty({},"passive",{get:function(){j=!0}});window.addEventListener("test",z,z),window.removeEventListener("test",z,z)}catch(e){j=!1}var U={useG:!0},K={},W={},V=new RegExp("^"+_+"(\\w+)(true|false)$"),q=f("propagationStopped");function F(e,n){var t=(n?n(e):e)+d,i=(n?n(e):e)+u,r=_+t,o=_+i;K[e]={},K[e][d]=r,K[e][u]=o}function Z(e,n,t){var r=t&&t.add||a,o=t&&t.rm||s,l=t&&t.listeners||"eventListeners",c=t&&t.rmAll||"removeAllListeners",p=f(r),h="."+r+":",g="prependListener",v="."+g+":",m=function(e,n,t){if(!e.isRemoved){var i=e.callback;"object"==typeof i&&i.handleEvent&&(e.callback=function(e){return i.handleEvent(e)},e.originalDelegate=i),e.invoke(e,n,[t]);var r=e.options;if(r&&"object"==typeof r&&r.once){var a=e.originalDelegate?e.originalDelegate:e.callback;n[o].call(n,t.type,a,r)}}},b=function(n){if(n=n||e.event){var t=this||n.target||e,i=t[K[n.type][d]];if(i)if(1===i.length)m(i[0],t,n);else for(var r=i.slice(),o=0;o<r.length&&(!n||!0!==n[q]);o++)m(r[o],t,n)}},w=function(n){if(n=n||e.event){var t=this||n.target||e,i=t[K[n.type][u]];if(i)if(1===i.length)m(i[0],t,n);else for(var r=i.slice(),o=0;o<r.length&&(!n||!0!==n[q]);o++)m(r[o],t,n)}};function y(n,t){if(!n)return!1;var a=!0;t&&void 0!==t.useG&&(a=t.useG);var s=t&&t.vh,m=!0;t&&void 0!==t.chkDup&&(m=t.chkDup);var y=!1;t&&void 0!==t.rt&&(y=t.rt);for(var k=n;k&&!k.hasOwnProperty(r);)k=i(k);if(!k&&n[r]&&(k=n),!k)return!1;if(k[p])return!1;var E,T=t&&t.eventNameToString,S={},I=k[p]=k[r],x=k[f(o)]=k[o],A=k[f(l)]=k[l],C=k[f(c)]=k[c];t&&t.prepend&&(E=k[f(t.prepend)]=k[t.prepend]);var P=a?function(e){if(!S.isExisting)return I.call(S.target,S.eventName,S.capture?w:b,S.options)}:function(e){return I.call(S.target,S.eventName,e.invoke,S.options)},L=a?function(e){if(!e.isRemoved){var n=K[e.eventName],t=void 0;n&&(t=n[e.capture?u:d]);var i=t&&e.target[t];if(i)for(var r=0;r<i.length;r++)if(i[r]===e){i.splice(r,1),e.isRemoved=!0,0===i.length&&(e.allRemoved=!0,e.target[t]=null);break}}if(e.allRemoved)return x.call(e.target,e.eventName,e.capture?w:b,e.options)}:function(e){return x.call(e.target,e.eventName,e.invoke,e.options)},D=t&&t.diff?t.diff:function(e,n){var t=typeof n;return"function"===t&&e.callback===n||"object"===t&&e.originalDelegate===n},M=Zone[f("UNPATCHED_EVENTS")],N=e[f("PASSIVE_EVENTS")],B=function(n,i,r,o,l,c){return void 0===l&&(l=!1),void 0===c&&(c=!1),function(){var _=this||e,p=arguments[0];t&&t.transferEventName&&(p=t.transferEventName(p));var h=arguments[1];if(!h)return n.apply(this,arguments);if(O&&"uncaughtException"===p)return n.apply(this,arguments);var f=!1;if("function"!=typeof h){if(!h.handleEvent)return n.apply(this,arguments);f=!0}if(!s||s(n,h,_,arguments)){var g=j&&!!N&&-1!==N.indexOf(p),v=function(e,n){return!j&&"object"==typeof e&&e?!!e.capture:j&&n?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}(arguments[2],g);if(M)for(var b=0;b<M.length;b++)if(p===M[b])return g?n.call(_,p,h,v):n.apply(this,arguments);var w=!!v&&("boolean"==typeof v||v.capture),y=!(!v||"object"!=typeof v)&&v.once,k=Zone.current,E=K[p];E||(F(p,T),E=K[p]);var I,x=E[w?u:d],A=_[x],C=!1;if(A){if(C=!0,m)for(b=0;b<A.length;b++)if(D(A[b],h))return}else A=_[x]=[];var P=_.constructor.name,L=W[P];L&&(I=L[p]),I||(I=P+i+(T?T(p):p)),S.options=v,y&&(S.options.once=!1),S.target=_,S.capture=w,S.eventName=p,S.isExisting=C;var R=a?U:void 0;R&&(R.taskData=S);var B=k.scheduleEventTask(I,h,R,r,o);return S.target=null,R&&(R.taskData=null),y&&(v.once=!0),(j||"boolean"!=typeof B.options)&&(B.options=v),B.target=_,B.capture=w,B.eventName=p,f&&(B.originalDelegate=h),c?A.unshift(B):A.push(B),l?_:void 0}}};return k[r]=B(I,h,P,L,y),E&&(k[g]=B(E,v,(function(e){return E.call(S.target,S.eventName,e.invoke,S.options)}),L,y,!0)),k[o]=function(){var n=this||e,i=arguments[0];t&&t.transferEventName&&(i=t.transferEventName(i));var r=arguments[2],o=!!r&&("boolean"==typeof r||r.capture),a=arguments[1];if(!a)return x.apply(this,arguments);if(!s||s(x,a,n,arguments)){var l,c=K[i];c&&(l=c[o?u:d]);var p=l&&n[l];if(p)for(var h=0;h<p.length;h++){var f=p[h];if(D(f,a))return p.splice(h,1),f.isRemoved=!0,0===p.length&&(f.allRemoved=!0,n[l]=null,"string"==typeof i&&(n[_+"ON_PROPERTY"+i]=null)),f.zone.cancelTask(f),y?n:void 0}return x.apply(this,arguments)}},k[l]=function(){var n=this||e,i=arguments[0];t&&t.transferEventName&&(i=t.transferEventName(i));for(var r=[],o=H(n,T?T(i):i),a=0;a<o.length;a++){var s=o[a],l=s.originalDelegate?s.originalDelegate:s.callback;r.push(l)}return r},k[c]=function(){var n=this||e,i=arguments[0];if(i){t&&t.transferEventName&&(i=t.transferEventName(i));var r=K[i];if(r){var a=r[d],s=r[u],l=n[a],_=n[s];if(l){var p=l.slice();for(v=0;v<p.length;v++){var h=(f=p[v]).originalDelegate?f.originalDelegate:f.callback;this[o].call(this,i,h,f.options)}}if(_)for(p=_.slice(),v=0;v<p.length;v++){var f;h=(f=p[v]).originalDelegate?f.originalDelegate:f.callback,this[o].call(this,i,h,f.options)}}}else{for(var g=Object.keys(n),v=0;v<g.length;v++){var m=g[v],b=V.exec(m),w=b&&b[1];w&&"removeListener"!==w&&this[c].call(this,w)}this[c].call(this,"removeListener")}if(y)return this},R(k[r],I),R(k[o],x),C&&R(k[c],C),A&&R(k[l],A),!0}for(var k=[],E=0;E<n.length;E++)k[E]=y(n[E],t);return k}function H(e,n){if(!n){var t=[];for(var i in e){var r=V.exec(i),o=r&&r[1];if(o&&(!n||o===n)){var a=e[i];if(a)for(var s=0;s<a.length;s++)t.push(a[s])}}return t}var l=K[n];l||(F(n),l=K[n]);var c=e[l[d]],_=e[l[u]];return c?_?c.concat(_):c.slice():_?_.slice():[]}function G(e,n){var t=e.Event;t&&t.prototype&&n.patchMethod(t.prototype,"stopImmediatePropagation",(function(e){return function(n,t){n[q]=!0,e&&e.apply(n,t)}}))}function Y(e,n,t,i,r){var o=Zone.__symbol__(i);if(!n[o]){var a=n[o]=n[i];n[i]=function(o,s,l){return s&&s.prototype&&r.forEach((function(n){var r=t+"."+i+"::"+n,o=s.prototype;if(o.hasOwnProperty(n)){var a=e.ObjectGetOwnPropertyDescriptor(o,n);a&&a.value?(a.value=e.wrapWithCurrentZone(a.value,r),e._redefineProperty(s.prototype,n,a)):o[n]&&(o[n]=e.wrapWithCurrentZone(o[n],r))}else o[n]&&(o[n]=e.wrapWithCurrentZone(o[n],r))})),a.call(n,o,s,l)},e.attachOriginToPatched(n[i],a)}}var J,X,Q,ee,ne,te=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ie=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],re=["load"],oe=["blur","error","focus","load","resize","scroll","messageerror"],ae=["bounce","finish","start"],se=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],le=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ce=["close","error","open","message"],ue=["error","message"],de=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],te,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function _e(e,n,t){if(!t||0===t.length)return n;var i=t.filter((function(n){return n.target===e}));if(!i||0===i.length)return n;var r=i[0].ignoreProperties;return n.filter((function(e){return-1===r.indexOf(e)}))}function pe(e,n,t,i){e&&C(e,_e(e,n,t),i)}function he(e,n){if((!O||S)&&!Zone[e.symbol("patchEvents")]){var t="undefined"!=typeof WebSocket,r=n.__Zone_ignore_on_properties;if(T){var o=window,a=function(){try{var e=v.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}()?[{target:o,ignoreProperties:["error"]}]:[];pe(o,de.concat(["messageerror"]),r?r.concat(a):r,i(o)),pe(Document.prototype,de,r),void 0!==o.SVGElement&&pe(o.SVGElement.prototype,de,r),pe(Element.prototype,de,r),pe(HTMLElement.prototype,de,r),pe(HTMLMediaElement.prototype,ie,r),pe(HTMLFrameSetElement.prototype,te.concat(oe),r),pe(HTMLBodyElement.prototype,te.concat(oe),r),pe(HTMLFrameElement.prototype,re,r),pe(HTMLIFrameElement.prototype,re,r);var s=o.HTMLMarqueeElement;s&&pe(s.prototype,ae,r);var l=o.Worker;l&&pe(l.prototype,ue,r)}var c=n.XMLHttpRequest;c&&pe(c.prototype,se,r);var u=n.XMLHttpRequestEventTarget;u&&pe(u&&u.prototype,se,r),"undefined"!=typeof IDBIndex&&(pe(IDBIndex.prototype,le,r),pe(IDBRequest.prototype,le,r),pe(IDBOpenDBRequest.prototype,le,r),pe(IDBDatabase.prototype,le,r),pe(IDBTransaction.prototype,le,r),pe(IDBCursor.prototype,le,r)),t&&pe(WebSocket.prototype,ce,r)}}function fe(){J=Zone.__symbol__,X=Object[J("defineProperty")]=Object.defineProperty,Q=Object[J("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,ee=Object.create,ne=J("unconfigurables"),Object.defineProperty=function(e,n,t){if(ve(e,n))throw new TypeError("Cannot assign to read only property '"+n+"' of "+e);var i=t.configurable;return"prototype"!==n&&(t=me(e,n,t)),be(e,n,t,i)},Object.defineProperties=function(e,n){return Object.keys(n).forEach((function(t){Object.defineProperty(e,t,n[t])})),e},Object.create=function(e,n){return"object"!=typeof n||Object.isFrozen(n)||Object.keys(n).forEach((function(t){n[t]=me(e,t,n[t])})),ee(e,n)},Object.getOwnPropertyDescriptor=function(e,n){var t=Q(e,n);return t&&ve(e,n)&&(t.configurable=!1),t}}function ge(e,n,t){var i=t.configurable;return be(e,n,t=me(e,n,t),i)}function ve(e,n){return e&&e[ne]&&e[ne][n]}function me(e,n,t){return Object.isFrozen(t)||(t.configurable=!0),t.configurable||(e[ne]||Object.isFrozen(e)||X(e,ne,{writable:!0,value:{}}),e[ne]&&(e[ne][n]=!0)),t}function be(e,n,t,i){try{return X(e,n,t)}catch(a){if(!t.configurable)throw a;void 0===i?delete t.configurable:t.configurable=i;try{return X(e,n,t)}catch(i){var r=!1;if("createdCallback"!==n&&"attachedCallback"!==n&&"detachedCallback"!==n&&"attributeChangedCallback"!==n||(r=!0),!r)throw i;var o=null;try{o=JSON.stringify(t)}catch(e){o=t.toString()}console.log("Attempting to configure '"+n+"' with descriptor '"+o+"' on object '"+e+"' and got error, giving up: "+i)}}}function we(e,n){var t=n.getGlobalObjects(),i=t.eventNames,r=t.globalSources,o=t.zoneSymbolEventNames,a=t.TRUE_STR,s=t.FALSE_STR,l=t.ZONE_SYMBOL_PREFIX,c="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),u="EventTarget",d=[],_=e.wtf,p="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");_?d=p.map((function(e){return"HTML"+e+"Element"})).concat(c):e[u]?d.push(u):d=c;for(var h=e.__Zone_disable_IE_check||!1,f=e.__Zone_enable_cross_context_check||!1,g=n.isIEOrEdge(),v="[object FunctionWrapper]",m="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",b={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},w=0;w<i.length;w++){var y=l+((S=i[w])+s),k=l+(S+a);o[S]={},o[S][s]=y,o[S][a]=k}for(w=0;w<p.length;w++)for(var E=p[w],O=r[E]={},T=0;T<i.length;T++){var S;O[S=i[T]]=E+".addEventListener:"+S}var I=[];for(w=0;w<d.length;w++){var x=e[d[w]];I.push(x&&x.prototype)}return n.patchEventTarget(e,I,{vh:function(e,n,t,i){if(!h&&g){if(f)try{var r;if((r=n.toString())===v||r==m)return e.apply(t,i),!1}catch(n){return e.apply(t,i),!1}else if((r=n.toString())===v||r==m)return e.apply(t,i),!1}else if(f)try{n.toString()}catch(n){return e.apply(t,i),!1}return!0},transferEventName:function(e){return b[e]||e}}),Zone[n.symbol("patchEventTarget")]=!!e[u],!0}function ye(e,n){var t=e.getGlobalObjects(),i=t.isNode,r=t.isMix;if((!i||r)&&!function(e,n){var t=e.getGlobalObjects(),i=t.isBrowser,r=t.isMix;if((i||r)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var o=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(o&&!o.configurable)return!1;if(o){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var a=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",o),a}}var s=n.XMLHttpRequest;if(!s)return!1;var l="onreadystatechange",c=s.prototype,u=e.ObjectGetOwnPropertyDescriptor(c,l);if(u)return e.ObjectDefineProperty(c,l,{enumerable:!0,configurable:!0,get:function(){return!0}}),a=!!(_=new s).onreadystatechange,e.ObjectDefineProperty(c,l,u||{}),a;var d=e.symbol("fake");e.ObjectDefineProperty(c,l,{enumerable:!0,configurable:!0,get:function(){return this[d]},set:function(e){this[d]=e}});var _,p=function(){};return(_=new s).onreadystatechange=p,a=_[d]===p,_.onreadystatechange=null,a}(e,n)){var o="undefined"!=typeof WebSocket;(function(e){for(var n=e.getGlobalObjects().eventNames,t=e.symbol("unbound"),i=function(i){var r=n[i],o="on"+r;self.addEventListener(r,(function(n){var i,r,a=n.target;for(r=a?a.constructor.name+"."+o:"unknown."+o;a;)a[o]&&!a[o][t]&&((i=e.wrapWithCurrentZone(a[o],r))[t]=a[o],a[o]=i),a=a.parentElement}),!0)},r=0;r<n.length;r++)i(r)})(e),e.patchClass("XMLHttpRequest"),o&&function(e,n){var t=e.getGlobalObjects(),i=t.ADD_EVENT_LISTENER_STR,r=t.REMOVE_EVENT_LISTENER_STR,o=n.WebSocket;n.EventTarget||e.patchEventTarget(n,[o.prototype]),n.WebSocket=function(n,t){var a,s,l=arguments.length>1?new o(n,t):new o(n),c=e.ObjectGetOwnPropertyDescriptor(l,"onmessage");return c&&!1===c.configurable?(a=e.ObjectCreate(l),s=l,[i,r,"send","close"].forEach((function(n){a[n]=function(){var t=e.ArraySlice.call(arguments);if(n===i||n===r){var o=t.length>0?t[0]:void 0;if(o){var s=Zone.__symbol__("ON_PROPERTY"+o);l[s]=a[s]}}return l[n].apply(l,t)}}))):a=l,e.patchOnProperties(a,["close","error","message","open"],s),a};var a=n.WebSocket;for(var s in o)a[s]=o[s]}(e,n),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",(function(t,i,l){l.patchOnProperties=C,l.patchMethod=D,l.bindArguments=y,l.patchMacroTask=M;var c=i.__symbol__("BLACK_LISTED_EVENTS"),h=i.__symbol__("UNPATCHED_EVENTS");t[h]&&(t[c]=t[h]),t[c]&&(i[c]=i[h]=t[c]),l.patchEventPrototype=G,l.patchEventTarget=Z,l.isIEOrEdge=$,l.ObjectDefineProperty=n,l.ObjectGetOwnPropertyDescriptor=e,l.ObjectCreate=r,l.ArraySlice=o,l.patchClass=L,l.wrapWithCurrentZone=p,l.filterProperties=_e,l.attachOriginToPatched=R,l._redefineProperty=Object.defineProperty,l.patchCallbacks=Y,l.getGlobalObjects=function(){return{globalSources:W,zoneSymbolEventNames:K,eventNames:de,isBrowser:T,isMix:S,isNode:O,TRUE_STR:u,FALSE_STR:d,ZONE_SYMBOL_PREFIX:_,ADD_EVENT_LISTENER_STR:a,REMOVE_EVENT_LISTENER_STR:s}}})),function(e){var n,t=e.__Zone_symbol_prefix||"__zone_symbol__";e[(n="legacyPatch",t+n)]=function(){var n=e.Zone;n.__load_patch("defineProperty",(function(e,n,t){t._redefineProperty=ge,fe()})),n.__load_patch("registerElement",(function(e,n,t){!function(e,n){var t=n.getGlobalObjects(),i=t.isBrowser,r=t.isMix;(i||r)&&"registerElement"in e.document&&n.patchCallbacks(n,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(e,t)})),n.__load_patch("EventTargetLegacy",(function(e,n,t){we(e,t),ye(t,e)}))}}("undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{});var ke=f("zoneTask");function Ee(e,n,t,i){var r=null,o=null;t+=i;var a={};function s(n){var t=n.data;return t.args[0]=function(){return n.invoke.apply(this,arguments)},t.handleId=r.apply(e,t.args),n}function l(n){return o.call(e,n.data.handleId)}r=D(e,n+=i,(function(t){return function(r,o){if("function"==typeof o[0]){var c={isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?o[1]||0:void 0,args:o},u=o[0];o[0]=function(){try{return u.apply(this,arguments)}finally{c.isPeriodic||("number"==typeof c.handleId?delete a[c.handleId]:c.handleId&&(c.handleId[ke]=null))}};var d=h(n,o[0],c,s,l);if(!d)return d;var _=d.data.handleId;return"number"==typeof _?a[_]=d:_&&(_[ke]=d),_&&_.ref&&_.unref&&"function"==typeof _.ref&&"function"==typeof _.unref&&(d.ref=_.ref.bind(_),d.unref=_.unref.bind(_)),"number"==typeof _||_?_:d}return t.apply(e,o)}})),o=D(e,t,(function(n){return function(t,i){var r,o=i[0];"number"==typeof o?r=a[o]:(r=o&&o[ke])||(r=o),r&&"string"==typeof r.type?"notScheduled"!==r.state&&(r.cancelFn&&r.data.isPeriodic||0===r.runCount)&&("number"==typeof o?delete a[o]:o&&(o[ke]=null),r.zone.cancelTask(r)):n.apply(e,i)}}))}function Oe(e,n){if(!Zone[n.symbol("patchEventTarget")]){for(var t=n.getGlobalObjects(),i=t.eventNames,r=t.zoneSymbolEventNames,o=t.TRUE_STR,a=t.FALSE_STR,s=t.ZONE_SYMBOL_PREFIX,l=0;l<i.length;l++){var c=i[l],u=s+(c+a),d=s+(c+o);r[c]={},r[c][a]=u,r[c][o]=d}var _=e.EventTarget;if(_&&_.prototype)return n.patchEventTarget(e,[_&&_.prototype]),!0}}Zone.__load_patch("legacy",(function(e){var n=e[Zone.__symbol__("legacyPatch")];n&&n()})),Zone.__load_patch("queueMicrotask",(function(e,n,t){t.patchMethod(e,"queueMicrotask",(function(e){return function(e,t){n.current.scheduleMicroTask("queueMicrotask",t[0])}}))})),Zone.__load_patch("timers",(function(e){var n="set",t="clear";Ee(e,n,t,"Timeout"),Ee(e,n,t,"Interval"),Ee(e,n,t,"Immediate")})),Zone.__load_patch("requestAnimationFrame",(function(e){Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",(function(e,n){for(var t=["alert","prompt","confirm"],i=0;i<t.length;i++){D(e,t[i],(function(t,i,r){return function(i,o){return n.current.run(t,e,o,r)}}))}})),Zone.__load_patch("EventTarget",(function(e,n,t){(function(e,n){n.patchEventPrototype(e,n)})(e,t),Oe(e,t);var i=e.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(e,[i.prototype])})),Zone.__load_patch("MutationObserver",(function(e,n,t){L("MutationObserver"),L("WebKitMutationObserver")})),Zone.__load_patch("IntersectionObserver",(function(e,n,t){L("IntersectionObserver")})),Zone.__load_patch("FileReader",(function(e,n,t){L("FileReader")})),Zone.__load_patch("on_property",(function(e,n,t){he(t,e)})),Zone.__load_patch("customElements",(function(e,n,t){!function(e,n){var t=n.getGlobalObjects(),i=t.isBrowser,r=t.isMix;(i||r)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,t)})),Zone.__load_patch("XHR",(function(e,n){!function(e){var u=e.XMLHttpRequest;if(u){var d=u.prototype,_=d[l],p=d[c];if(!_){var g=e.XMLHttpRequestEventTarget;if(g){var v=g.prototype;_=v[l],p=v[c]}}var m="readystatechange",b="scheduled",w=D(d,"open",(function(){return function(e,n){return e[i]=0==n[2],e[a]=n[1],w.apply(e,n)}})),y=f("fetchTaskAborting"),k=f("fetchTaskScheduling"),E=D(d,"send",(function(){return function(e,t){if(!0===n.current[k])return E.apply(e,t);if(e[i])return E.apply(e,t);var r={target:e,url:e[a],isPeriodic:!1,args:t,aborted:!1},o=h("XMLHttpRequest.send",S,r,T,I);e&&!0===e[s]&&!r.aborted&&o.state===b&&o.invoke()}})),O=D(d,"abort",(function(){return function(e,i){var r=e[t];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===n.current[y])return O.apply(e,i)}}))}function T(e){var i=e.data,a=i.target;a[o]=!1,a[s]=!1;var u=a[r];_||(_=a[l],p=a[c]),u&&p.call(a,m,u);var d=a[r]=function(){if(a.readyState===a.DONE)if(!i.aborted&&a[o]&&e.state===b){var t=a[n.__symbol__("loadfalse")];if(0!==a.status&&t&&t.length>0){var r=e.invoke;e.invoke=function(){for(var t=a[n.__symbol__("loadfalse")],o=0;o<t.length;o++)t[o]===e&&t.splice(o,1);i.aborted||e.state!==b||r.call(e)},t.push(e)}else e.invoke()}else i.aborted||!1!==a[o]||(a[s]=!0)};return _.call(a,m,d),a[t]||(a[t]=e),E.apply(a,i.args),a[o]=!0,e}function S(){}function I(e){var n=e.data;return n.aborted=!0,O.apply(n.target,n.args)}}(e);var t=f("xhrTask"),i=f("xhrSync"),r=f("xhrListener"),o=f("xhrScheduled"),a=f("xhrURL"),s=f("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(function(n){n.navigator&&n.navigator.geolocation&&function(n,t){for(var i=n.constructor.name,r=function(r){var o=t[r],a=n[o];if(a){if(!k(e(n,o)))return"continue";n[o]=function(e){var n=function(){return e.apply(this,y(arguments,i+"."+o))};return R(n,e),n}(a)}},o=0;o<t.length;o++)r(o)}(n.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",(function(e,n){function t(n){return function(t){H(e,n).forEach((function(i){var r=e.PromiseRejectionEvent;if(r){var o=new r(n,{promise:t.promise,reason:t.rejection});i.invoke(o)}}))}}e.PromiseRejectionEvent&&(n[f("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),n[f("rejectionHandledHandler")]=t("rejectionhandled"))}))},void 0===(r=i.call(n,t,n,e))||(e.exports=r)},4840:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.layout",(function(){zk.override(zul.layout.Absolutelayout.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.layout.Absolutechildren||(zk.error("Unsupported child for Absolutelayout: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Absolutelayout||(window.clientbind.wgt.Absolutelayout={}),window.clientbind.wgt.Absolutelayout._={}},3233:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.layout",(function(){zk.override(zul.layout.Anchorlayout.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.layout.Anchorchildren||(zk.error("Unsupported child for Anchorlayout: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Anchorlayout||(window.clientbind.wgt.Anchorlayout={}),window.clientbind.wgt.Anchorlayout._={}},6025:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.med",(function(){zk.override(zul.med.Audio.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.med.Track||(zk.error("Unsupported child for audio: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Audio||(window.clientbind.wgt.Audio={}),window.clientbind.wgt.Audio._={}},5314:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.mesh",(function(){zk.override(zul.mesh.Auxhead.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.mesh.Auxheader||(zk.error("Unsupported child for Auxhead: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Auxhead||(window.clientbind.wgt.Auxhead={}),window.clientbind.wgt.Auxhead._={}},193:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.inp",(function(){zk.override(zul.inp.Bandbox.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.inp.Bandpopup?!this.firstChild||(zk.error("At most one bandpopup is allowed, "+this.className),!1):(zk.error("Unsupported child for Bandbox: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Bandbox||(window.clientbind.wgt.Bandbox={}),window.clientbind.wgt.Bandbox._={}},5585:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.big",(function(){var e={};zk.override(zkmax.big.Biglistbox.prototype,e,{onSelect:function(e){this._fireModelSelectionChange(e.data)},_fireModelSelectionChange:function(e){var n=this,t=this._getBinder();if(t&&this._$modelData){e.model=this.$MODEL_UID$;var i=e.rowIndex;e.itemsIndex=-1==i?[]:[i],mobx.runInAction((function(){n._$skipSyncSelection=!0,mobx.set(n._$modelData,"$sel$",-1==i?[]:[n._$modelData.$lc$[i]])})),t.getClientBinder().thenCommand("$lmsc$",e)}},syncSelectionsFromModel:function(e){var n,t,i=e.length>0?e[0]:void 0;if(this._$skipSyncSelection)this._$skipSyncSelection=!1;else if(i){for(var r=this._$modelData.$lc$,o=0,a=r.length;o<a;o++)if((null!==(n=r[o].$id$)&&void 0!==n?n:r[o])==(null!==(t=i.$id$)&&void 0!==t?t:i)){this.setSelectedIndex(o);break}}else this.clearSelection()},renderByModel:function(e,n,t,i,r){var o=this;if(null!=t){this._$modelData=t,this.unlisten({onSelect:this}),this.listen({onSelect:this});var a=t.columnSize,s=50,l=this._currentX>s?this._currentX-s:0,c=this._currentX+(this._cols-this._frozenCols)+s;c>a&&(c=a);var u=t.$lc$.length,d=this._currentY>s?this._currentY-s:0,_=this._currentY+this._rows+s;_>u&&(_=u),this._deltaX=this._currentX-l,this._deltaY=this._currentY-d,this._deltaX1=c-l,this._deltaY1=_-d;var p=[],h=[],f=[],g=[],v=[];this.$MODEL_SKIP_EL$=!0,v.push(this._syncRowData(e,n,t,p,0,l>this._frozenCols?this._cols:this._frozenCols,d,_)),v.push(this._syncColData(e,n,t,h,0,l>this._frozenCols?this._cols:this._frozenCols)),v.push(this._syncColData(e,n,t,g,l,c)),v.push(this._syncRowData(e,n,t,f,l,c,d,_,r)),Promise.all(v).then((function(){o.rowSize=t.$lc$.length,o.colSize=t.columnSize,o.setRowDataFx([0,o._currentY,p]),o.setColDataFx([0,h]),o.setColData([o._currentX,g]),o.setRowData([o._currentX,o._currentY,f]),o.rerender(o._skipper)}))}else this.rerender()},_syncColData:function(e,n,t,i,r,o){for(var a=[],s=r,l=o,c=t.headSize,u=t.heads,d=function(t){var r=u[t],o=[],c=[];i[t]=c;var d=0,p=clientbind.WidgetFactory.createModelRenderer(_,e,n,void 0,r,{},(function(e){return o.push(e),e}),(function(){}),void 0,"heads",s,l).render((function(e,n,i,r){var l=d++;if(e){clientbind.Binder.applyAdditionalAttribute(e,"matrixInfo",[s+l,t]),r(),e instanceof clientbind.ShadowInfo&&(e=e.getFirstInsertion());var u=e instanceof zul.wgt.Label,_=e instanceof zul.wgt.Html;if(!u&&!_)return void zk.error("The model template can only support Label or Html component, not  "+e.className);var p=new Promise((function(n){clientbind.Binder.runInReactionBatch((function(){c[l]=u?e.getValue():e.getContent(),n()}))}));a.push(p)}else c[l]=o.shift()}));p instanceof Promise&&a.push(p)},_=this,p=0;p<c;p++)d(p);return Promise.all(a).then()},_syncRowData:function(e,n,t,i,r,o,a,s,l){for(var c=[],u=r,d=o,_=a,p=s,h=t.$lc$,f=l?l[0]:void 0,g=function(t,r,o){var a=h[r],s=[];f&&f.$id$==a.$id$&&(v._selectedIndex=r);for(var l=0;l<d;l++)s.push(a);var _=[],p=[];i[r]=_;var g=0,m=clientbind.WidgetFactory.createModelRenderer(v,e,n,void 0,s,{},(function(e){return p.push(e),e}),(function(){}),void 0,"rows",u,d).render((function(e,n,t,i){var o=g++;if(e){clientbind.Binder.applyAdditionalAttribute(e,"matrixInfo",[u+o,r]),i(),e instanceof clientbind.ShadowInfo&&(e=e.getFirstInsertion());var a=e instanceof zul.wgt.Label,s=e instanceof zul.wgt.Html;if(!a&&!s)return void zk.error("The model template can only support Label or Html component, not  "+e.className);var l=new Promise((function(n){clientbind.Binder.runInReactionBatch((function(){_[o]=a?e.getValue():e.getContent(),n()}))}));c.push(l)}else _[o]=p.shift()}));m instanceof Promise&&c.push(m)},v=this,m=_,b=p;m<b;m++)g(0,m);return Promise.all(c).then()},fireOnSelect:function(n,t){if(this._$model){var i=new zk.Event(this,"onSelect",{columnIndex:n,rowIndex:t});i.stop({au:!0}),this.fireX(i)}else e.fireOnSelect.call(this,n,t)},coerceSelectedIndexToUi:function(e){this.setSelectedIndex(e)},coerceSelectedIndexToBean:function(){return this.getSelectedIndex()},coerceSelectedObjectToUi:function(e){this._$modelData.$sel$=e?[e]:[]},coerceSelectedObjectToBean:function(){return this._$modelData.$sel$[0]}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Biglistbox||(window.clientbind.wgt.Biglistbox={}),window.clientbind.wgt.Biglistbox._={}},6521:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.layout",(function(){zk.override(zul.layout.Borderlayout.prototype,{},{beforeChildAdded_:function(e,n){if(!(e instanceof zul.layout.LayoutRegion))return zk.error("Unsupported child for Borderlayout: "+e.className),!1;if(e instanceof zul.layout.North){if(null!=this.north&&e!=this.north)return zk.error("Only one north child is allowed: "+this.className),!1}else if(e instanceof zul.layout.South){if(null!=this.south&&e!=this.south)return zk.error("Only one north child is allowed: "+this.className),!1}else if(e instanceof zul.layout.West){if(null!=this.west&&e!=this.west)return zk.error("Only one north child is allowed: "+this.className),!1}else if(e instanceof zul.layout.East){if(null!=this.east&&e!=this.east)return zk.error("Only one north child is allowed: "+this.className),!1}else if(e instanceof zul.layout.Center&&null!=this.center&&e!=this.center)return zk.error("Only one north child is allowed: "+this.className),!1;return!0}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Borderlayout||(window.clientbind.wgt.Borderlayout={}),window.clientbind.wgt.Borderlayout._={}},3854:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.inp",(function(){var e={};zk.override(zkmax.inp.Cascader.prototype,e,{onSelect:function(e){var n=this._getBinder();if(n){var t=e.data;t.model=this.$MODEL_UID$;var i=t.selectedUuid;if(i){for(var r=[],o=this._itemsIdMap[i].item.parentId;o;){var a=this._itemsIdMap[o];r.unshift(a.childrenId.indexOf(i)),i=a.item.id,o=a.item.parentId}r.unshift(this._itemsIdMap[zkmax.inp.Cascader.ROOT_ID_KEY].childrenId.indexOf(i)),t.itemsPath=[r]}n.getClientBinder().thenCommand("$tmsc$",e.data)}},renderByModel:function(e,n,t,i){var r=this,o=[],a=[];this._$uuidItemRelations={},this._$itemUuidRelations={},this._$itemHtmlRelations={},this.$MODEL_SKIP_EL$=!0,this.unlisten({onSelect:this}),this.listen({onSelect:this});var s=this._createCascaderItems(e,n,t,i,o,a,void 0),l=function(){var e,n;if(o.length>0)for(var t=r.firstChild;t;t=r.firstChild)r.removeChild(t);r.setItems(o);var i=a.length>0?a[0]:void 0,s=[];if(null!=i){s.push(i.id);for(var l=i.parentId;l;)s.unshift(l),l=null===(n=null===(e=r._itemsIdMap[l])||void 0===e?void 0:e.item)||void 0===n?void 0:n.parentId}r.setSelectedUuids(s),r._updateLabel()};s instanceof Promise?s.then(l):l()},_createCascaderItems:function(e,n,t,i,r,o,a){var s=this,l=[],c=[],u=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return l.push(e),e}),(function(e){return new zul.wgt.Label({value:e.data})})).render((function(t,u,d,_){var p=l.shift();_();var h=new Promise((function(l){clientbind.Binder.runInReactionBatch((function(){var u,d="";if(t instanceof zul.wgt.Label)d=t.getValue();else if(t instanceof clientbind.ShadowInfo){var _=t.getFirstInsertion();if(_){if(!(_ instanceof zul.wgt.Label))return zk.error("The model template can only support Label component, not  "+t.className),!0;d=_.getValue()}}var h=null!==(u=p.$data$.$id$)&&void 0!==u?u:p,f=s._$itemUuidRelations[h];null==f&&(f=zk.Widget.nextUuid(),s._$itemUuidRelations[h]=f),s._$uuidItemRelations[f]=p,s._$itemHtmlRelations[h]=d;var g={parentId:a,id:f,content:d};if(r.push(g),p.$selected$&&o.push(g),p.$children$){var v=s._createCascaderItems(e,n,p.$children$,i,r,o,f);v instanceof Promise&&c.push(v)}l()}))}));c.push(h)}));if(u instanceof Promise&&c.push(u),c.length)return Promise.all(c).then()},fireOnSelect:function(n){if(this._$model){var t=new zk.Event(this,"onSelect",{selectedUuid:n});t.stop({au:!0}),this.fireX(t),this._updateLabel()}else e.fireOnSelect.call(this,n)},coerceSelectedItemToUi:function(e){var n=this;zk.afterMount((function(){var t=n.getItems(),i=n._itemsIdMap,r=e.$id$,o=[];if(t&&t.length>0&&null!=r){var a=n._$itemUuidRelations[r];if(!a)return;o.push(a);for(var s=i[a].item.parentId;s;)o.unshift(s),s=i[s].item.parentId}n.setSelectedUuids(o),n._updateLabel()}))},coerceSelectedItemToBean:function(){var e=this.getItems(),n=this._selectedUuids,t="";if(e&&n.length>0)for(var i=0,r=e;i<r.length;i++){var o=r[i];if(-1!=n.indexOf(o.id)){t=o.content;break}}return this._updateLabel(),t},_getSelectedItemsContent:function(){var e=this.getItems(),n=this._selectedUuids,t=[];if(e&&n.length>0)for(var i=0,r=e;i<r.length;i++){var o=r[i];-1!=n.indexOf(o.id)&&t.push(o.content)}return t},_updateLabel:function(){var e=this._getSelectedItemsContent(),n=e.length,t="";1==n?t=e[0]:n>1&&(t=e.join("/")),this.setLabel(t)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Cascader||(window.clientbind.wgt.Cascader={}),window.clientbind.wgt.Cascader._={}},180:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.inp",(function(){var e={};zk.override(zkmax.inp.Chosenbox.prototype,e,{onSelect:function(e){this._fireModelSelectionChange(e.data)},_fireModelSelectionChange:function(e){var n=this,t=this._getBinder();if(t&&this._$modelData){var i=[];if(e.model=this.$MODEL_UID$,null!=e.items){var r=this.getItems();e.itemsIndex=e.items.map((function(e){return i.push(n._$uuidItemRelations[e.id]),r.indexOf(e)})),mobx.runInAction((function(){n._$skipSyncSelection=!0,mobx.set(n._$modelData,"$sel$",i)}))}t.getClientBinder().thenCommand("$lmsc$",e)}},_updateSelectionToModelIfAny:function(e){this._$modelData&&Object.hasOwnProperty.call(this._$modelData,"$sel$")&&(this._$modelData.$sel$.$equals(e)||this._fireModelSelectionChange({items:this._selItems}))},doSubModelRendering:function(e){var n=this,t=this._getBinder();t&&t.getClientBinder().thenCommand("$lsmc$",{model:this.$MODEL_UID$,value:e,nRows:-1}).then((function(e){var i=n.getAtTemplate(),r=t._prepareVmData(e);n.$MODEL_SKIP_EL$=!0,n.renderByModel(t,i?i.model:void 0,r,{},[],!0),delete n.$MODEL_SKIP_EL$}))},syncSelectionsFromModel:function(e){this._$skipSyncSelection?this._$skipSyncSelection=!1:this.syncSelectionsFromModel0(e)},syncSelectionsFromModel0:function(e){var n,t=e.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e})),i=[],r=e.length;if(r>0)if(clientbind.isObject(this._$modelData)&&Object.hasOwnProperty.call(this._$modelData,"$sub$")){for(var o=0;o<r;o++){var a=e[o],s=null!==(n=a.$id$)&&void 0!==n?n:a,l=this._$itemUuidRelations[s];null==l&&(l=zk.Widget.nextUuid(),this._$itemUuidRelations[s]=l);var c={id:l,content:a.$id$?a.toString():a};i.push(c),this._$uuidItemRelations[c.id]=a}this._updateListContent(i,!0,!1,1,1)}else for(var u=this.getItems(),d=(o=0,u.length);o<d;o++)c=u[o],t.includes(c.content)&&i.push(c);this.setChgSel(i)},renderByModel:function(e,n,t,i,r,o){var a=this,s=[],l=null!=r,c=[];if(!o){if((null==t||l)&&(this._$modelData=t),this._$uuidItemRelations={},this._$itemUuidRelations={},this._$itemHtmlRelations={},clientbind.isObject(this._$modelData)&&Object.hasOwnProperty.call(this._$modelData,"$sub$"))return this.listen({onChanging:this.doSubModelRendering}),this._renderByServer=!0,void(l&&this.syncSelectionsFromModel0(r));this._renderByServer=!1,this.unlisten({onSelect:this}),this.listen({onSelect:this}),l&&(c=r.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e})))}var u=[],d="",_=[],p=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return u.push(e),e}),(function(e){return new zul.wgt.Label({value:e})})).render((function(e,n,t,i){if(!(e instanceof clientbind.ShadowInfo||e instanceof zul.wgt.Label))return zk.error("The model template can only support Label component, not "+e.className),!0;var r=u.shift();i(),clientbind.Binder.runInReactionBatch((function(){var n,t;if(e instanceof zul.wgt.Label)d=e.getValue();else if(e instanceof clientbind.ShadowInfo){var i=e.getFirstInsertion();if(i){if(!(i instanceof zul.wgt.Label))return void zk.error("The model template can only support Label component, not "+e.className);d=i.getValue()}}var o=r,l=null!==(n=o.$id$)&&void 0!==n?n:o,u=a._$itemUuidRelations[l];null==u&&(u=zk.Widget.nextUuid(),a._$itemUuidRelations[l]=u);var p={id:u,content:d};a._$uuidItemRelations[p.id]=r,a._$itemHtmlRelations[l]=d,s.push(p),c.includes(null!==(t=null==o?void 0:o.$id$)&&void 0!==t?t:o)&&_.push(p)}))})),h=function(){clientbind.Binder.runInReactionBatch((function(){for(var e=a.firstChild;e;e=a.firstChild)a.removeChild(e);o?a.setListContent(s):(a.setItems(s),a.setChgSel(_))}))};p instanceof Promise?p.then(h):h()},_fireOnSearching:function(n){e._fireOnSearching.call(this,n),clientbind.isObject(this._$modelData)&&Object.hasOwnProperty.call(this._$modelData,"$sub$")&&this.doSubModelRendering(n)},fireOnSelect:function(){if(this._$model){var n=new zk.Event(this,"onSelect",{items:this._selItems});n.stop({au:!0}),this.fireX(n)}else e.fireOnSelect.call(this)},doSubModelSelect:function(e,n){var t,i=this,r=this._getBinder();if(r){var o={};o.model=this.$MODEL_UID$;var a=this._$uuidItemRelations[e],s=null!==(t=a.$id$)&&void 0!==t?t:a;o.itemInfo=s,o.isSelected=n;var l=this._$modelData.$sel$,c=l.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e})),u=c.indexOf(s),d=l.length;n&&-1==u?l.push(a):n||-1==u||(l=l.splice(u,1)),d!=l.length&&mobx.runInAction((function(){i._$skipSyncSelection=!0,mobx.set(i._$modelData,"$sel$",l)})),r.getClientBinder().thenCommand("$lsmsc$",o)}},selectSubModel:function(n){this._getBinder()?this.doSubModelSelect(n,!0):e.selectSubModel.call(this,n)},deselectSubModel:function(n){this._getBinder()?this.doSubModelSelect(n,!1):e.deselectSubModel.call(this,n)},coerceSelectedIndexToUi:function(e){var n=this;zk.afterMount((function(){n.setSelectedIndex(e),n._updateSelectionToModelIfAny(-1==e?[]:[n._$uuidItemRelations[n._selItems[0].id]])}))},coerceSelectedIndexToBean:function(){var e=this.getItems(),n=e?e.length:0,t=this._selItems;if(n>0&&t.length>0)for(var i=0;i<n;i++)if(t.includes(e[i]))return this.setChgSel([e[i]]),i;return-1},coerceSelectedObjectsToUi:function(e){var n=this;zk.afterMount((function(){var t=n.getItems(),i=n.desktop;if(n._clearSelection(),t&&e)for(var r=0,o=t;r<o.length;r++){var a=o[r];e.includes(a.content)&&(i?n._selectItemDirectly(a):n._selItems.includes(a)||n._selItems.push(a))}n._updateSelectionToModelIfAny(null==e?[]:e)}))},coerceSelectedObjectsToBean:function(){var e=this._selItems,n=[];if(e.length>0)for(var t=0,i=e;t<i.length;t++){var r=i[t];n.push(this._$uuidItemRelations[r.id])}return n}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Chosenbox||(window.clientbind.wgt.Chosenbox={}),window.clientbind.wgt.Chosenbox._={}},1449:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkex.layout",(function(){zk.override(zkex.layout.Columnlayout.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkex.layout.Columnchildren||(zk.error("Unsupported child for Columnlayout: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Columnlayout||(window.clientbind.wgt.Columnlayout={}),window.clientbind.wgt.Columnlayout._={}},2694:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.inp",(function(){zk.override(zul.inp.Combobox.prototype,{},{_getDefaultTemplateMeta:function(){return[["zul.inp.Comboitem",{"@load":{label:[{value:["each"]}]}}]]},onSelect:function(e){this._fireModelSelectionChange(e.data)},_fireModelSelectionChange:function(e){var n=this,t=this._getBinder();if(t&&this._$modelData){if(e.model=this.$MODEL_UID$,null!=e.items){var i=e.items[0];e.itemsIndex=i?[i.getChildIndex()]:[],mobx.runInAction((function(){n._$skipSyncSelection=!0,mobx.set(n._$modelData,"$sel$",i?[i._value]:[])}))}t.getClientBinder().thenCommand("$lmsc$",e)}},_updateSelectionToModelIfAny:function(){if(this._$modelData&&Object.hasOwnProperty.call(this._$modelData,"$sel$")){var e=this._$modelData.$sel$,n=this.getSelectedItem(),t=null==n?[]:[n.getValue()];e.$equals(t)||this._fireModelSelectionChange({items:null==n?[]:[n]})}},doSubModelRendering:function(e){var n=this,t=this._getBinder();t&&t.getClientBinder().thenCommand("$lsmc$",{model:this.$MODEL_UID$,value:e.data.value,nRows:-1}).then((function(e){var i=n.getAtTemplate(),r=t._prepareVmData(e);n.$MODEL_SKIP_EL$=!0,n.renderByModel(t,i?i.model:void 0,r,{},r.$sel$,!0),delete n.$MODEL_SKIP_EL$}))},renderByModel:function(e,n,t,i,r,o){for(var a,s=this,l=this.firstChild;l;l=this.firstChild)this.removeChild(l);var c,u=null!=r;if(o||(u||this._$updatingSelectedItem||(c=this.coerceSelectedItemToBean()),this.setValue(""),(null==t||u)&&(this._$modelData=t),this.isListen("onChanging")&&this.unlisten({onChanging:this.doSubModelRendering})),t){o||t.$sub$&&this.listen({onChanging:this.doSubModelRendering});var d,_=-1;!o&&u&&(d=r.length>0?null!==(a=r[0].$id$)&&void 0!==a?a:r[0]:void 0),this.unlisten({onSelect:this}),this.listen({onSelect:this});var p=[],h=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return p.push(e),e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(s._getDefaultTemplateMeta()),e}),void 0,0,void 0,!o).render((function(e,n,t,i){var r;if(i(),e instanceof clientbind.ShadowInfo&&null!=e.getFirstInsertion()&&(e=e.getFirstInsertion()),e instanceof zul.inp.Comboitem){var o=p.shift();e.setValue(mobx.toJS(o)),d&&(null!==(r=o.$id$)&&void 0!==r?r:o)==d&&(_=t)}})),f=function(){s.rerender(),u?zk.afterMount((function(){s.setValue(-1!=_?s.getChildAt(_).getLabel():"")})):c&&s.coerceSelectedItemToUi(c)};o?zk.afterMount((function(){s.setRepos(!0),s._isOnChanging=!0,s.fixPopupDimension_()})):h instanceof Promise?h.then((function(){return f()})):f()}},syncSelectionsFromModel:function(e){var n,t,i=e.length>0?e[0]:void 0;if(this._$skipSyncSelection)this._$skipSyncSelection=!1;else{var r="";if(i)for(var o=this.firstChild;o;o=o.nextSibling){var a=o.getValue();if((null!==(n=a.$id$)&&void 0!==n?n:a)==(null!==(t=i.$id$)&&void 0!==t?t:i)){r=o.getLabel();break}}this.setValue(r)}},coerceSelectedIndexToUi:function(e){if(-1!=e){var n=this.getChildAt(e);n&&(this.setValue(n.getLabel()),this.setSelectedItemUuid_(n.uuid))}else this.setValue(void 0);this._updateSelectionToModelIfAny()},coerceSelectedIndexToBean:function(){return this._sel?this._sel.getChildIndex():-1},coerceSelectedItemToUi:function(e){var n=this;this._$updatingSelectedItem=!0,zk.afterMount((function(){if(n._$updatingSelectedItem=!1,e){mobx.isObservable(e)&&(e=mobx.toJS(e));for(var t=n.firstChild;t;t=t.nextSibling){var i=t.getValue();if(mobx.isObservable(i)&&(i=mobx.toJS(i)),zUtl.isEqualObject(e,i)){n.setValue(t.getLabel()),n.setSelectedItemUuid_(t.uuid);break}}}else n.setValue(e);n._updateSelectionToModelIfAny()}))},coerceSelectedItemToBean:function(){return null==this._sel?void 0:this._sel.getValue()},beforeChildAdded_:function(e,n){return e instanceof zul.inp.Comboitem||(zk.error("Unsupported child for Combobox: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Combobox||(window.clientbind.wgt.Combobox={}),window.clientbind.wgt.Combobox._={}},4768:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wgt",(function(){zk.override(zul.wgt.Combobutton.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.wgt.Popup?!this.firstChild||(zk.error("At most one popup is allowed, "+this.className),!1):(zk.error("Unsupported child for Combobutton: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Combobutton||(window.clientbind.wgt.Combobutton={}),window.clientbind.wgt.Combobutton._={}},1631:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkex.menu",(function(){zk.override(zkex.menu.Fisheyebar.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkex.menu.Fisheye||(zk.error("Unsupported child for fisheyebar: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Fisheyebar||(window.clientbind.wgt.Fisheyebar={}),window.clientbind.wgt.Fisheyebar._={}},4703:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.wgt",(function(){var e={};zk.override(zkmax.wgt.Fragment.prototype,e,{getExtraAttrs:function(){return e.getExtraAttrs.call(this)},setExtraAttrs:function(n){return e.setExtraAttrs.call(this,n),this.zk$$vue&&this._mobxToVue(n,this.zk$$vue.$data),this},"update@vm":function(e,n){var t=this.zk$$vue;if(n&&"object"==typeof n)for(var i in n){var r=n[i];t.$data[i]=r,t.$set(t.$data.zkHolder,i,r)}else t.$data[e]=n,t.$set(t.$data.zkHolder,e,n)},_mobxToVue:function(e,n){if(e)for(var t in e){var i=e[t];mobx.isObservable(i)&&(i=mobx.toJS(i),clientbind.isObject(i)&&i.$lc$&&(i=i.$lc$)),n[t]=i,n.zkHolder[t]=i}},_initVue:function(n,t){var i=this,r=this,o=r._getBinder(!0),a=this.getExtraAttrs();e._initVue.call(this,n,t),this._mobxToVue(a,n.data);var s=r.getAtCommand(),l=r.getAtGlobalCommand(),c=n.methods.sendEvent,u={};n.methods.sendEvent=function(e,t,a,d){if(a){var _=e.type;if(_="on"+_.charAt(0).toUpperCase()+_.substring(1),null!=s)for(var p in s)u[p]||p.split("$")[1]==a&&(u[p]=!0,o.processCommandBinding(r,_,s[p]));if(null!=l)for(var h in l)u[h]?i.cmdArgs=d:h.split("$")[1]==a&&(i.cmdArgs=d,u[h]=!0,o.processGlobalCommandBinding(r,_,l[h]))}c.call(n,e,t,a,d),e.stopPropagation()}}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Fragment||(window.clientbind.wgt.Fragment={}),window.clientbind.wgt.Fragment._={}},4756:function(){zk.afterLoad("zkmax.layout",(function(){zk.override(zkmax.layout.GoldenLayout.prototype,{},{coerceAreasToUi:function(e){for(var n=this,t=[],i=0,r=e.split("\n");i<r.length;i++){var o=r[i];t.push(o.split(" "))}this.setAreasMatrix(JSON.stringify(t)),zk.afterMount((function(){var e=[],t="vertical"==n._orient?"row":"column";n._parseConfig(e,"row"==t?n._areasMatrix:n._transposeMatrix(n._areasMatrix),t,!0),n._config={content:e},n.rerender()}))},_parseConfig:function(e,n,t,i){for(var r=!1,o=!1,a=0,s="row"==t?"column":"row",l={},c=1;c<=n.length;c++){var u=!0,d=n[c-1],_=void 0;if(c!=n.length&&(_=n[c]),null!=_){for(var p=0;p<_.length;p++)if(_[p]==d[p]){if(u=!1,r)break}else if(r=!0,!u)break}else u=!1;if(u||o&&c==n.length){l.content||(l.content=[]);var h=l.content;this._parseConfig(h,this._transposeMatrix(n.slice(a,c)),s,!1),l.type||(l.type=s),a=c,o=!0}}if(o||!i){if(!o&&r&&zk.error("Not a valid format for goldenlayout areas"),!r){var f=n[0][0];l.type="stack",l.content=[],l.id=f;for(var g="row"==t,v=g?n[0].length:n.length,m=g?n.length:n[0].length,b=[],w=this.firstChild;w;w=w.nextSibling)w.getArea()==f&&b.push(w);if(0==b.length)return void zk.error('Should have at least one GoldenPanel with area="'+f+'" specified.');for(var y=0,k=b;y<k.length;y++){var E=k[y];E.getHflex()||E.setHflex(v+""),E.getVflex()||E.setVflex(m+"")}}e.push(l)}else this._parseConfig(e,this._transposeMatrix(n),s,!1)},beforeChildAdded_:function(e,n){return e instanceof zkmax.layout.GoldenPanel||(zk.error("Unsupported child for goldenlayout: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.GoldenLayout||(window.clientbind.wgt.GoldenLayout={}),window.clientbind.wgt.GoldenLayout._={}},780:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.grid",(function(){var e={};zk.override(zul.grid.Grid.prototype,e,{_getDefaultTemplateMeta:function(){return[["zul.grid.Row",{},[["zul.wgt.Label",{"@load":{value:[{value:["each"]}]}}]]]]},onOpen:function(e){var n,t=this._getBinder();t&&(e.data.model=this.$MODEL_UID$,e.data.referenceIndex=null!==(n=e.target._index)&&void 0!==n?n:e.target._getIndex(),t.getClientBinder().thenCommand("$gpoc$",e.data))},renderByModel:function(e,n,t,i){var r,o=this;this._model=!0;var a=this.rows;a||this.appendChild(a=new zul.grid.Rows);var s=a,l=s.getShadowRoots();l&&Array.from(l).forEach((function(e){e.detachAtClientOnly(),s.removeShadowRoot(e)}));for(var c=a.firstChild;c;){var u=c.nextSibling;a.removeChild(c,!!c.desktop),c=u}var d=null!=t?null!==(r=t.totalSize)&&void 0!==r?r:-1:0;-1!=d&&this._totalSize!=d&&this.setTotalSize(d);var _=[],p=clientbind.WidgetFactory.createModelRenderer(this.rows,e,n,void 0,t,i,(function(e){return e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(o._getDefaultTemplateMeta()),e}),void 0,this._offset,this._totalSize).render((function(e,n,i,r){e._loaded=!0,r(),e instanceof clientbind.ShadowInfo?e.getFirstInsertion()&&_.push(e.getFirstInsertion()):e instanceof clientbind.ZkInfo||_.push(e);var a=_[_.length-1];a._index=i,zk.isLoaded("zkex.grid")&&a instanceof zkex.grid.Group&&(a.listen({onOpen:o}),a.setOpen("true"==t["$"+i+"$$open$"]))})),h=function(){s.disableShadowAdjustment();try{s.replaceCavedChildren_("",_)}finally{s.enableShadowAdjustment()}Promise.resolve().then((function(){o.paging||o.setScrollPads_(o._lastoffset),zUtl.fireSized(o)}))};p instanceof Promise?p.then(h):h()},fireOnDataLoading_:function(n,t){var i=this,r=this._getBinder();r?r.getClientBinder().thenCommand("$odl$",{model:this.$MODEL_UID$,offset:n,limit:this._limit}).then((function(e){i.$MODEL_OFFSET$=i._offset=n;var t=i.getAtTemplate(),o=r._prepareVmData(e);Zone.current.fork({name:"ProcessModel",properties:{ProcessModel:o}}).run((function(){clientbind.WidgetFactory.createWidgetsByModel(r,i,t?t.model:void 0,o)}))})):e.fireOnDataLoading_.call(this,n,t)},coercePageSizeToUi:function(e){this.getPageSize()!=e&&(this.setPageSize(e),this.processPagingModelIfAny())},coerceActivePageToUi:function(e){this.getActivePage()!=e&&(this.setActivePage(e),this.processPagingModelIfAny())},setPaginal:function(n){return this._paginal!=n&&(e.setPaginal.call(this,n),this.processPagingModelIfAny()),this},processPagingModelIfAny:function(){var e=this.$MODEL_UID$,n=this.getPaginal();n&&e&&"paging"==this.getMold()&&clientbind.WidgetFactory.processPagingModel(this,e,n.uuid,{pageSize:this.getPageSize(),activePage:this.getActivePage()})},beforeChildAdded_:function(e,n){if(e instanceof zul.grid.Rows){if(this.rows&&this.rows!=e)return zk.error("Only one rows child is allowed: "+this.className+"\nNote: rows is created automatically if live data"),!1}else if(e instanceof zul.grid.Columns){if(this.columns&&this.columns!=e)return zk.error("Only one columns child is allowed: "+this.className),!1}else if(e instanceof zul.mesh.Frozen){if(this.frozen&&this.frozen!=e)return zk.error("Only one frozen child is allowed: "+this.className),!1}else if(e instanceof zul.mesh.Paging){if(this.getPaginal())return zk.error("External paging cannot coexist with child paging, "+this.className),!1;if(this.paging&&this.paging!=e)return zk.error("Only one paging is allowed: "+this.className),!1;if("paging"!=this.getMold())return zk.error("The child paging is allowed only in the paging mold, "+this.className),!1}else if(e instanceof zul.grid.Foot){if(this.foot&&this.foot!=e)return zk.error("Only one foot child is allowed: "+this.className),!1}else if(!(e instanceof zul.mesh.Auxhead))return zk.error("Unsupported child for grid: "+e.className),!1;return!0}}),zk.override(zul.grid.Columns.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.grid.Column||(zk.error("Unsupported child for columns: "+e.className),!1)}}),zk.override(zul.grid.Rows.prototype,{},{beforeChildAdded_:function(e,n){if(!(e instanceof zul.grid.Row))return zk.error("Unsupported child for rows: "+e.className),!1;if(zk.isLoaded("zkex.grid")&&e instanceof zkex.grid.Groupfoot){if(!this.hasGroup())return zk.error("Groupfoot cannot exist alone, you have to add a Group first, "+this.className),!1;if(!n&&this.lastChild&&this.lastChild instanceof zkex.grid.Groupfoot)return zk.error("Only one Groupfoot is allowed per Group, "+this.className),!1}return!0}}),zk.override(zul.grid.Row.prototype,{},{beforeChildAdded_:function(e,n){return!(zk.isLoaded("zkex.grid")&&e instanceof zkex.grid.Detail&&this.detail&&this.detail!=e&&(zk.error("Only one detail is allowed: "+this.className),1))}}),zk.override(zul.grid.Foot.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.grid.Footer||(zk.error("Unsupported child for foot: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Grid||(window.clientbind.wgt.Grid={}),window.clientbind.wgt.Grid._={}},1021:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wgt",(function(){zk.override(zul.wgt.Groupbox.prototype,{},{beforeChildAdded_:function(e,n){if(e instanceof zul.wgt.Caption){if(this.caption&&this.caption!=e)return zk.error("Only one caption is allowed: "+this.className),!1}else if(n instanceof zul.wgt.Caption)return zk.error("caption must be the first child, "+this.className),!1;return!0}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Groupbox||(window.clientbind.wgt.Groupbox={}),window.clientbind.wgt.Groupbox._={}},3844:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wgt",(function(){zk.override(zul.wgt.Imagemap.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.wgt.Area||(zk.error("Unsupported child for imagemap: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Imagemap||(window.clientbind.wgt.Imagemap={}),window.clientbind.wgt.Imagemap._={}},1190:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wgt",(function(){var e={};zk.override(zul.wgt.Include.prototype,e,{bind_:function(n,t,i){e.bind_.call(this,n,t,i);var r=this;if(r.hasBinding){var o=r.getAtInit(),a=r.getAtLoad();(o&&null!=o.src||a&&null!=a.src)&&this._recreateWidgets()}},setSrc:function(e){this._src!=e&&(this._src=e,this.desktop&&this.hasBinding&&this._recreateWidgets())},_recreateWidgets:function(){for(var e,n=this,t=this._src,i=this.firstChild;i;i=this.firstChild)this.removeChild(i);if(t){var r=this;r._getBinder().getClientBinder().thenCommand("$itc$",{uri:t,vargs:this._evalArguments(r,null!==(e=r.getExtraAttrs())&&void 0!==e?e:{})}).then((function(e){n.desktop&&(null==Zone.current.view?Zone.current.fork({name:n.uuid}).run((function(){Zone.current.view=n.$binder().$view,n._applyWidgets(e)})):n._applyWidgets(e))}))}},_evalArguments:function(e,n){var t={};if(Object.keys(n).length)for(var i in n)n[i]instanceof clientbind.ReferenceBinding?t[i]=n[i].resolve()[1]:t[i]=n[i];return t},_applyWidgets:function(e){var n=this;zAu.createWidgets([e],(function(e){var t=n._getBinder(),i={$execArgs$:mobx.toJS(n.$aa$)};e.forEach((function(e){clientbind.WidgetFactory.processWidget(t,e,n,i,void 0,{})}))}))}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Include||(window.clientbind.wgt.Include={}),window.clientbind.wgt.Include._={}},9193:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wgt",(function(){zk.override(zul.wgt.Inputgroup.prototype,{},{beforeChildAdded_:function(e,n){return!!(e instanceof zul.wgt.Label||zul.inp&&e instanceof zul.inp.InputWidget||e instanceof zul.LabelImageWidget)||(zk.error("Unsupported child for Inputgroup: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Inputgroup||(window.clientbind.wgt.Inputgroup={}),window.clientbind.wgt.Inputgroup._={}},6366:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.layout",(function(){zk.override(zul.layout.LayoutRegion.prototype,{},{beforeChildAdded_:function(e,n){var t=this.firstChild;if(t)if(e instanceof zul.wgt.Caption){if(t instanceof zul.wgt.Caption&&t!=e)return zk.error("Only one caption is allowed: "+this.className),!1}else if(!(t instanceof zul.wgt.Caption)||this.nChildren>1)return zk.error("Only one child and one caption is allowed: "+this.className),!1;return!0}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.LayoutRegion||(window.clientbind.wgt.LayoutRegion={}),window.clientbind.wgt.LayoutRegion._={}},5917:function(){zk.afterLoad("zkmax.layout",(function(){zk.override(zkmax.layout.Linelayout.prototype,{},{_getDefaultTemplateMeta:function(){return[["zkmax.layout.Lineitem",{},[["zul.wgt.Label",{"@load":{value:[{value:["each"]}]}}]]]]},renderByModel:function(e,n,t,i){for(var r=this,o=this.firstChild;o;o=this.firstChild)this.removeChild(o);var a=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(r._getDefaultTemplateMeta()),e})).render();a instanceof Promise?a.then((function(){return r.rerender()})):this.rerender()},beforeChildAdded_:function(e,n){return e instanceof zkmax.layout.Lineitem||(zk.error("Unsupported child for Linelayout: "+e.className),!1)}}),zk.override(zkmax.layout.Lineitem.prototype,{},{beforeChildAdded_:function(e,n){return 2!=this.nChildren||(zk.error("Only support two children in Lineitem"),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Linelayout||(window.clientbind.wgt.Linelayout={}),window.clientbind.wgt.Linelayout._={}},2208:function(e,n,t){var i=t(655).ev;Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.sel",(function(){var e={};zk.override(zul.sel.Listbox.prototype,e,{_getDefaultTemplateMeta:function(){return[["zul.sel.Listitem",{"@load":{label:[{value:["each"]}]}}]]},onSelect:function(e){this._fireModelSelectionChange(e.data)},onOpen:function(e){var n=this._getBinder();n&&(e.data.model=this.$MODEL_UID$,e.data.referenceIndex=e.target._index,n.getClientBinder().thenCommand("$gpoc$",e.data))},_fireModelSelectionChange:function(e){var n=this,t=this._getBinder();if(t&&this._$modelData){delete this.$MODEL_SELECT_ALL$;var i=[];if(e.model=this.$MODEL_UID$,null!=e.items)e.itemsIndex=e.items.map((function(e){var n;return i.push(e._value),null!==(n=e._index)&&void 0!==n?n:e.getChildIndex()}));else if(e.range){for(var r=e.range,o=[],a=r.start,s=r.end;a<=s;a++)o.push(a);e.itemsIndex=o}Object.hasOwnProperty.call(this,"$MODEL_OFFSET$")&&(e.offset=this._offset,e.limit=this._limit),this[""]&&mobx.runInAction((function(){mobx.isObservable(n._$modelData)&&(n._$skipSyncSelection=!0,mobx.set(n._$modelData,"$sel$",i))})),this.getPaginal()&&"paging"==this.getMold()&&(e.activePage=this.getActivePage(),e.pageSize=this.getPageSize()),t.getClientBinder().thenCommand("$lmsc$",e)}},_updateSelectionToModelIfAny:function(e){this._$modelData&&Object.hasOwnProperty.call(this._$modelData,"$sel$")&&(this._$modelData.$sel$.$equals(e)||this._fireModelSelectionChange({items:this._selItems}))},syncSelectionsFromModel:function(e){var n;if(this._$skipSyncSelection)this._$skipSyncSelection=!1;else if(this.clearSelection(),void 0!==e&&e.length>0)for(var t=this.checkAndUpdateModelSelectAll(e),i=t?void 0:e.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e})),r=0,o=this.firstChild;o;o=o.nextSibling,r++)if(o instanceof zul.sel.Listitem){var a=o._value;(t||i.includes(null!==(n=a.$id$)&&void 0!==n?n:a))&&this.setSelectedItem(o)}},renderByModel:function(e,n,t,i,r){var o,a=this;null!=t&&null==r||(this._$modelData=t);var s=null!=t?null!==(o=t.totalSize)&&void 0!==o?o:-1:0;-1!=s&&this._totalSize!=s&&this.setTotalSize(s),this._model=!0,this._listbox$noSelectAll=!1,this.unlisten({onSelect:this}),this.listen({onSelect:this});var l,c=null!=this.$n("rows");null==r&&(l=this.coerceSelectedItemsToBean(),this._$updatingSelectedItem=!0);var u=function(){if(c){var o=a,s=o.getShadowRoots();s&&Array.from(s).forEach((function(e){e.detachAtClientOnly(),o.removeShadowRoot(e)}));for(var u=a.firstItem,d=a.lastItem;u;){var _=u.nextSibling;if(a.removeChild(u,!!u.desktop),u==d)break;u=_}var p=a._createListitems(e,n,t,i,r,!0),h=function(e){o.disableShadowAdjustment();try{a.replaceCavedChildren_("rows",e)}finally{o.enableShadowAdjustment()}var n=e.length&&e[0]?e[0]._index:a._lastoffset;n||a._lastScrollOffset===n?Promise.resolve().then((function(){a.setScrollPads_({offset:n})})):a._justScrollPads=!1};p instanceof Promise?p.then(h):h(p)}else a._createListitems(e,n,t,i,r,!1);Promise.resolve().then((function(){l&&a._$updatingSelectedItem&&a.coerceSelectedItemsToUi(l),a._syncSelectionInView(),zUtl.fireSized(a)}))},d={};clientbind.Binder.getGroupsInfoIfAny(t,d),Object.keys(d).length>0?zk.load("zkex.sel",u):u()},_syncSelectionInView:function(){for(var e=this._selItems,n=-1,t=-1,i=0;i<e.length;i++){var r=e[i]._index;(n<0||r<t)&&(n=i,t=r)}var o=e[n];if(o){var a=this._scrollbar,s=o.$n_().offsetTop;a?(a.syncSize(),a.scrollTo(zul.mesh.Scrollbar.getScrollPosH(this),s)):(this.ebody.scrollTop=s,this._tmpScrollTop=this.ebody.scrollTop)}this._shallScrollIntoView=!1},_createListitems:function(e,n,t,r,o,a){var s=this,l=[],c=[],u=[],d=!1;null!=o&&(this.checkAndUpdateModelSelectAll(o)?d=!0:u=o.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e})));var _=t&&t.$is$?i([],t.$is$,!0):void 0,p=this.desktop;p&&(this.desktop=void 0);var h=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,r,(function(e){return l.push(e),e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(s._getDefaultTemplateMeta()),e}),void 0,this._offset,this._totalSize,a).render((function(e,n,i,r){var o,a=l.shift(),p=!0;null!=_&&(p=_.shift()),r(),e instanceof clientbind.ShadowInfo?e.getFirstInsertion()&&(e=e.getFirstInsertion(),c.push(e)):e instanceof clientbind.ZkInfo||c.push(e),e._loaded=!0,e._index=i,e._value=mobx.toJS(a),e._selectable=p;var h=c[c.length-1];h&&(d||u.includes(null!==(o=null==a?void 0:a.$id$)&&void 0!==o?o:a))&&h.setSelected(!0),zk.isLoaded("zkex.sel")&&e instanceof zkex.sel.Listgroup&&(e.listen({onOpen:s}),e.setOpen("true"==t["$"+i+"$$open$"]))})),f=function(){p&&(s.desktop=p)};return h instanceof Promise?h.then((function(){return f()})).then((function(){return c})):(f(),c)},coerceSelectedIndexToUi:function(e){var n=this;"number"==typeof e&&zk.afterMount((function(){n.setSelectedIndex(e),n._updateSelectionToModelIfAny(-1==e?[]:[n._selItems[0]._value])}))},coerceSelectedIndexToBean:function(){var e=-1;return this._selItems[0]&&(e=this._selItems[0]._index),e},coerceSelectedItemToUi:function(e){var n=this;if(this._$updatingSelectedItem=!1,!e)return this.clearSelection(),void this._updateSelectionToModelIfAny([]);var t=mobx.isObservable(e);t&&(e=mobx.toJS(e));var i=this.getSelectedItem();if(i){var r=i.getValue();if(t&&(r=mobx.toJS(r)),zUtl.isEqualObject(e,r))return}zk.afterMount((function(){for(var i=0,r=n.firstChild;r;r=r.nextSibling,i++)if(r instanceof zul.sel.Listitem){var o=r.getValue();if(t&&(o=mobx.toJS(o)),zUtl.isEqualObject(e,o))return n.setSelectedItem(r),void n._updateSelectionToModelIfAny([r._value])}}))},coerceSelectedItemToBean:function(){var e;return this._selItems[0]&&(e=this._selItems[0].getValue()),e},coerceSelectedItemsToUi:function(e){var n=this;this._$updatingSelectedItem=!1;var t=[],i=[];zk.afterMount((function(){var r;if(e)for(var o=e.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e})),a=0,s=n.firstChild;s;s=s.nextSibling,a++)if(s instanceof zul.sel.Listitem){var l=s.getValue();o.includes(l&&null!==(r=l.$id$)&&void 0!==r?r:l)&&(t.push(s.uuid),i.push(s._value))}n.setChgSel(t.join(",")),n._updateSelectionToModelIfAny(i)}))},coerceSelectedItemsToBean:function(){for(var e=[],n=this._selItems,t=n.length,i=0;i<t;i++)e.push(n[i].getValue());return e},_isAllSelected:function(){var n=this.$MODEL_SELECT_ALL$;return void 0!==n?n:e._isAllSelected.call(this)},checkAndUpdateModelSelectAll:function(e){return this.$MODEL_SELECT_ALL$=!!e&&1==e.length&&"$SELECT_ALL$"==e[0]},fireOnDataLoading_:function(n,t){var i=this,r=this._getBinder();if(r){this._lastScrollOffset=n;var o={model:this.$MODEL_UID$,offset:n,limit:this._limit};this._headercm&&this._multiple&&(o=Object.assign(o,{checkSelectAll:!0})),r.getClientBinder().thenCommand("$odl$",o).then((function(e){var t=e.$sel$;i.checkAndUpdateModelSelectAll(t);var o=r._prepareVmData(e);i.$MODEL_OFFSET$=i._offset=n;var a=i.getAtTemplate();mobx.runInAction((function(){Zone.current.fork({name:"ProcessModel",properties:{ProcessModel:o}}).run((function(){clientbind.WidgetFactory.createWidgetsByModel(r,i,a?a.model:void 0,o)}))}))}))}else e.fireOnDataLoading_.call(this,n,t)},coercePageSizeToUi:function(e){this.getPageSize()!=e&&(this.setPageSize(e),this.processPagingModelIfAny())},coerceActivePageToUi:function(e){this.getActivePage()!=e&&(this.setActivePage(e),this.processPagingModelIfAny())},setPaginal:function(n){return this._paginal!=n&&(e.setPaginal.call(this,n),this.processPagingModelIfAny()),this},processPagingModelIfAny:function(){var e=this.$MODEL_UID$,n=this.getPaginal();n&&e&&"paging"==this.getMold()&&clientbind.WidgetFactory.processPagingModel(this,e,n.uuid,{pageSize:this.getPageSize(),activePage:this.getActivePage()})},beforeChildAdded_:function(e,n){if(e instanceof zul.sel.Listitem){if(zk.isLoaded("zkex.sel")&&e instanceof zkex.sel.Listgroupfoot){if(!Object.hasOwnProperty.call(this,"$MODEL_OFFSET$")&&!this.hasGroup())return zk.error("Listgroupfoot cannot exist alone, you have to add a Listgroup first"),!1;if(!n&&zk.isLoaded("zkex.sel")&&this.lastChild instanceof zkex.sel.Listgroupfoot)return zk.error("Only one Listgroupfoot is allowed per Listgroup"),!1}}else if(e instanceof zul.sel.Listhead){if(this.listhead&&this.listhead!=e)return zk.error("Only one listhead is allowed: "+this.className),!1}else if(e instanceof zul.mesh.Frozen){if(this.frozen&&this.frozen!=e)return zk.error("Only one frozen child is allowed: "+this.className),!1;this.inSelectMold()&&zk.error("Mold select ignores frozen")}else if(e instanceof zul.sel.Listfoot){if(this.listfoot&&this.listfoot!=e)return zk.error("Only one listfoot is allowed: "+this.className),!1;this.inSelectMold()&&zk.error("Mold select ignores listfoot")}else if(e instanceof zul.mesh.Paging){if(this.paging&&this.paging!=e)return zk.error("Only one paging is allowed: "+this.className),!1;if(this.getPaginal())return zk.error("External paging cannot coexist with child paging, "+this.className),!1;if("paging"!=this.getMold())return zk.error("The child paging is allowed only in the paging mold, "+this.className),!1}else if(!(e instanceof zul.mesh.Auxhead))return zk.error("Unsupported child for Listbox: "+e.className),!1;return!0}}),zk.override(zul.sel.Listhead.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.sel.Listheader||(zk.error("Unsupported child for listhead: "+e.className),!1)}}),zk.override(zul.sel.Listitem.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.sel.Listcell||(zk.error("Unsupported child for listitem: "+e.className),!1)}}),zk.override(zul.sel.Listfoot.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.sel.Listfooter||(zk.error("Unsupported child for listfoot: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Listbox||(window.clientbind.wgt.Listbox={}),window.clientbind.wgt.Listbox._={}},8938:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.menu",(function(){zk.override(zul.menu.Menubar.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.menu.Menu||e instanceof zul.menu.Menuitem||e instanceof zul.menu.Menuseparator||(zk.error("Unsupported child for menubar: "+e.className),!1)}}),zk.override(zul.menu.Menu.prototype,{},{beforeChildAdded_:function(e,n){if(e instanceof zul.menu.Menupopup){if(this.menupopup&&this.menupopup!=e)return zk.error("Only one menupopup is allowed: "+this.className),!1}else if(!zk.load("zkex.inp")||!(e instanceof zkex.inp.Colorpicker||e instanceof zkex.inp.Colorpalette))return zk.error("Unsupported child for menu: "+e.className),!1;return!0}}),zk.override(zul.menu.Menupopup.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.menu.Menuitem||e instanceof zul.menu.Menuseparator||e instanceof zul.menu.Menu||(zk.error("Unsupported child for menupopup: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Menubar||(window.clientbind.wgt.Menubar={}),window.clientbind.wgt.Menubar._={}},4209:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.slider",(function(){zk.override(zkmax.slider.Multislider.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkex.slider.Sliderbuttons||(zk.error("Unsupported child for Multislider: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Multislider||(window.clientbind.wgt.Multislider={}),window.clientbind.wgt.Multislider._={}},6127:function(){zk.afterLoad("zkmax.nav",(function(){var e=zk.augment(zkmax.nav.Navbar.prototype,{_select:function(n,t){this._getBinder()?n.$FromTemplate$&&(t=!0,e._select.call(this,n,t)):e._select.call(this,n,t)},beforeChildAdded_:function(e,n){return e instanceof zkmax.nav.Nav||e instanceof zkmax.nav.Navitem||e instanceof zkmax.nav.Navseparator||(zk.error("Unsupported child for navbar: "+e.className),!1)}});zk.override(zkmax.nav.Nav.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkmax.nav.Nav||e instanceof zkmax.nav.Navitem||e instanceof zkmax.nav.Navseparator||(zk.error("Unsupported child for nav: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Navbar||(window.clientbind.wgt.Navbar={}),window.clientbind.wgt.Navbar._={}},7742:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.layout",(function(){var e={};zk.override(zkmax.layout.Organigram.prototype,e,{_getDefaultTemplateMeta:function(){return[["zkmax.layout.Orgitem",{"@load":{label:[{value:["each"]}],value:[{value:["each"]}]}}]]},onSelect:function(e){var n=this,t=this._getBinder();if(t){var i=e.data;i.model=this.$MODEL_UID$,null!=i.items&&(i.itemsPath=i.items.map((function(e){return n._getChildPath(e)}))),t.getClientBinder().thenCommand("$tmsc$",e.data)}},onOpen:function(e){var n=this._getBinder();n&&(e.data.model=this.$MODEL_UID$,e.data.referencePath=this._getChildPath(e.target),n.getClientBinder().thenCommand("$tioc$",e.data))},_getChildPath:function(e){for(var n=[],t=e;!(t instanceof zkmax.layout.Organigram);)t instanceof zkmax.layout.Orgitem&&null!=t._index&&n.unshift(t._index),t=t.parent;return n},renderByModel:function(e,n,t,i){this._model=!0,this.unlisten({onSelect:this}),this.listen({onSelect:this});for(var r=this.firstChild;r;){var o=r.nextSibling;(r instanceof zkmax.layout.Orgitem||r instanceof zkmax.layout.Orgchildren)&&(r.unlisten({open:this}),this.removeChild(r)),r=o}this._createOrgitems(e,this,n,t,i,!0)},_createOrgitems:function(e,n,t,i,r,o){var a=this,s=[];o&&n.appendChild(new zkmax.layout.Orgchildren),clientbind.WidgetFactory.createModelRenderer(n.firstChild,e,t,void 0,i,r,(function(e){return s.push(e),e.$data$}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(a._getDefaultTemplateMeta()),e}),void 0,0,void 0,!1).render((function(n,i,o,l){var c,u=s.shift();n instanceof zkmax.layout.Orgitem&&n.listen({onOpen:a}),l();var d,_=mobx.toJS(u.$data$);if(n instanceof clientbind.ShadowInfo?n.getFirstInsertion()&&(n.getFirstInsertion()._value=_,d=n.getFirstInsertion()):n instanceof clientbind.ZkInfo||(n._value=_,d=n),d instanceof zkmax.layout.Orgitem){if(null==_){null===(c=d.firstChild)||void 0===c||c.detach();var p=d;p.hasBinding=!1,p.clearDisposer()}n._index=o,d.setOpen(!!u.$opened$),null!=u.$selected$&&d.setSelected(!!u.$selected$)}u.$children$&&a._createOrgitems(e,n,t,u.$children$,r,!0)}))},_select:function(n,t){if(this._$model){this.setSelectedItem(n);var i=new zk.Event(this,"onSelect",{selectedItem:this.getSelectedItem(),reference:n,which:t});i.stop({au:!0}),this.fireX(i)}else e._select.call(this,n,t)},beforeChildAdded_:function(e,n){return!(e instanceof zkmax.layout.Orgchildren&&this.firstChild&&this.firstChild!=e&&(zk.error("Only one orgchildren is allowed: "+this.className),1))}}),zk.override(zkmax.layout.Orgchildren.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkmax.layout.Orgitem||(zk.error("Unsupported child for orgchildren: "+e.className),!1)}});var n={};zk.override(zkmax.layout.Orgitem.prototype,n,{setLabel:function(e){var n=this.getOrgnode();n||(n=new zkmax.layout.Orgnode,this.insertBefore(n,this.firstChild)),n.setLabel(e)},_toggleOpen:function(e){var t=this.getOrganigram();t._$model?(this.fire("onOpen",{open:e},{toServer:!1}),t.isModel()&&!this.isLoaded()||this.setOpen(e)):n._toggleOpen.call(this,e)},beforeChildAdded_:function(e,n){if(e instanceof zkmax.layout.Orgnode){var t=this.getOrgnode();if(t&&t!=e)return zk.error("Only one orgnode is allowed: "+this.className),!1}else{if(!(e instanceof zkmax.layout.Orgchildren))return zk.error("Unsupported child for Orgitem: "+e.className),!1;var i=this.getOrgchildren();if(i&&i!=e)return zk.error("Only one orgchildren is allowed: "+this.className),!1}return!0}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Organigram||(window.clientbind.wgt.Organigram={}),window.clientbind.wgt.Organigram._={}},5297:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wnd",(function(){zk.override(zul.wnd.Panel.prototype,{},{beforeChildAdded_:function(e,n){if(e instanceof zul.wgt.Caption){if(this.caption&&this.caption!=e)return zk.error("Only one caption is allowed: "+this.className),!1}else{if(n instanceof zul.wgt.Caption)return zk.error("caption must be the first child, "+this.className),!1;if(e instanceof zul.wnd.Panelchildren){if(this.panelchildren&&this.panelchildren!=e)return zk.error("Only one panelchildren child is allowed: "+this.className),!1}else{if(!(e instanceof zul.wgt.Toolbar))return zk.error("Unsupported child for Panel: "+e.className),!1;if(n instanceof zul.wnd.Panelchildren||!n&&0==this.nChildren){if(this.tbar&&this.tbar!=e)return zk.error("Only one top toolbar child is allowed: "+this.className),!1}else{if(n&&n!=this.fbar)return zk.error("Only three toolbars child is allowed: "+this.className),!1;if(null!=this.bbar&&this.bbar!=e){if(null!=n&&n==this.fbar)return zk.error("Only one bottom toolbar child is allowed: "+this.className),!1;if(null!=this.fbar&&this.fbar!=e)return zk.error("Only one foot toolbar child is allowed: "+this.className),!1}}}}return!0}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Panel||(window.clientbind.wgt.Panel={}),window.clientbind.wgt.Panel._={}},6621:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkex.pdfviewer",(function(){zk.override(zkex.pdfviewer.Pdfviewer.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.wgt.Toolbar?!this.$n("toolbar")||(zk.error("Only one toolbar is allowed: "+this.className),!1):(zk.error("Unsupported child: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Pdfviewer||(window.clientbind.wgt.Pdfviewer={}),window.clientbind.wgt.Pdfviewer._={}},5251:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.layout",(function(){zk.override(zkmax.layout.Portallayout.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkmax.layout.Portalchildren||(zk.error("Unsupported child for Portallayout: "+e.className),!1)}}),zk.override(zkmax.layout.Portalchildren.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.wnd.Panel||(zk.error("Unsupported child for Portalchildren: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Portallayout||(window.clientbind.wgt.Portallayout={}),window.clientbind.wgt.Portallayout._={}},6029:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wgt",(function(){var e={};zk.override(zul.wgt.Radiogroup.prototype,e,{onCheck:function(n){this._getBinder()&&this._fireModelSelectionChange(),e.onCheck.call(this,n)},_fireModelSelectionChange:function(){var e=this,n=this._getBinder();if(n&&this._$modelData){var t={},i=this.getSelectedItem();t.model=this.$MODEL_UID$,t.itemsIndex=[this.getItems().indexOf(i)],mobx.runInAction((function(){e._$skipSyncSelection=!0,mobx.set(e._$modelData,"$sel$",[i.$eachData$])})),n.getClientBinder().thenCommand("$lmsc$",t)}},_updateSelectionToModelIfAny:function(){if(this._$modelData&&Object.hasOwnProperty.call(this._$modelData,"$sel$")){var e=this._$modelData.$sel$,n=this.getSelectedItem(),t=null==n?[]:[n.$eachData$];e.$equals(t)||this._fireModelSelectionChange()}},syncSelectionsFromModel:function(e){var n,t;if(this._$skipSyncSelection)this._$skipSyncSelection=!1;else{var i=e.length>0?null!==(n=e[0].$id$)&&void 0!==n?n:e[0]:void 0;if(i)for(var r=this.getItems(),o=0,a=r.length;o<a;o++){var s=r[o].$eachData$;if(i==(null!==(t=s.$id$)&&void 0!==t?t:s))return void this.setSelectedIndex(o)}else this.setSelectedIndex(-1)}},_getDefaultTemplateMeta:function(){return[["zul.wgt.Radio",{"@load":{label:[{value:["each"]}],value:[{value:["each"]}]}}]]},renderByModel:function(e,n,t,i,r){for(var o,a=this,s=this.firstChild;s;s=this.firstChild)this.removeChild(s);var l,c=null!=r;(null==t||c)&&(this._$modelData=t),c&&(l=r.length>0?null!==(o=r[0].$id$)&&void 0!==o?o:r[0]:void 0,this.unlisten({onCheck:this}),this.listen({onCheck:this}));var u=[],d=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return u.push(e),e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(a._getDefaultTemplateMeta()),e})).render((function(e,n,t,i){var r;if(i(),e instanceof clientbind.ShadowInfo&&null!=e.getFirstInsertion()&&(e=e.getFirstInsertion()),e instanceof zul.wgt.Radio){var o=u.shift();e.$eachData$=mobx.toJS(o),l&&(null!==(r=o.$id$)&&void 0!==r?r:o)==l&&e.setSelected(!0)}}));d instanceof Promise?d.then((function(){return a.rerender()})):this.rerender()},coerceSelectedIndexToUi:function(e){var n=this;zk.afterMount((function(){n.setSelectedIndex(e),n._updateSelectionToModelIfAny()}))},coerceSelectedIndexToBean:function(){return this.getSelectedIndex()},coerceSelectedItemToUi:function(e){var n=this;zk.afterMount((function(){for(var t,i,r,o=n.getItems(),a=0,s=o.length;a<s;a++){var l=o[a],c=null!==(t=l.$eachData$)&&void 0!==t?t:l.getValue();(null!==(i=c.$id$)&&void 0!==i?i:c)==(null!==(r=e.$id$)&&void 0!==r?r:e)&&n.setSelectedItem(l)}n._updateSelectionToModelIfAny()}))},coerceSelectedItemToBean:function(){var e,n=this.getSelectedItem();return n?null!==(e=n.$eachData$)&&void 0!==e?e:n.getValue():void 0}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Radiogroup||(window.clientbind.wgt.Radiogroup={}),window.clientbind.wgt.Radiogroup._={}},6960:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkex.slider",(function(){zk.override(zkex.slider.Rangeslider.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkex.slider.Sliderbuttons?!(this.nChildren>=1&&(zk.error("Unsupported child for more than one SliderButtons: "+e.className),1)):(zk.error("Unsupported child for Rangeslider: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Rangeslider||(window.clientbind.wgt.Rangeslider={}),window.clientbind.wgt.Rangeslider._={}},3825:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.layout",(function(){zk.override(zkmax.layout.Rowlayout.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkmax.layout.Rowchildren||(zk.error("Unsupported child for Rowlayout: "+e.className),!1)}}),zk.override(zkmax.layout.Rowchildren.prototype,{},{beforeChildAdded_:function(e,n){return!(this.nChildren>0&&(zk.error("Only one child is allowed: "+this.className),1))}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Rowlayout||(window.clientbind.wgt.Rowlayout={}),window.clientbind.wgt.Rowlayout._={}},5934:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.inp",(function(){var e={};zk.override(zkmax.inp.Searchbox.prototype,e,{onSelect:function(e){var n,t=this,i=this._getBinder();if(i&&this._$modelData){var r=e.data;r.model=this.$MODEL_UID$;var o=r.selectedUuids,a=Object.keys(o);if(Object.hasOwnProperty.call(this._$modelData,"$sub$")&&0!=a.length){var s=Object.keys(o)[0],l=o[s],c=this._$uuidItemRelations[s],u=null!==(n=c.$id$)&&void 0!==n?n:c;r.itemInfo=u,r.isSelected=l;var d=this._$modelData.$sel$,_=d.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e})),p=_.indexOf(u),h=d.length;l&&-1==p?d.push(c):l||-1==p||(d=d.splice(p,1)),h!=d.length&&mobx.runInAction((function(){t._$skipSyncSelection=!0,mobx.set(t._$modelData,"$sel$",d)})),i.getClientBinder().thenCommand("$lsmsc$",r)}else this._fireModelSelectionChange(i,r);this._updateLabelAndPlaceHolder()}},_fireModelSelectionChange:function(e,n){var t=this;if(null==e&&(e=this._getBinder()),e&&this._$modelData){var i=[],r=n.selectedUuids,o=Object.keys(r);if(0!=o.length){var a=this.getItems();n.itemsIndex=o.map((function(e){return i.push(t._$uuidItemRelations[e]),a.map((function(e){return e.id})).indexOf(e)}))}else n.itemsIndex=[];mobx.runInAction((function(){t._$skipSyncSelection=!0,mobx.set(t._$modelData,"$sel$",i)})),e.getClientBinder().thenCommand("$lmsc$",n)}},_updateSelectionToModelIfAny:function(e){this._$modelData&&Object.hasOwnProperty.call(this._$modelData,"$sel$")&&(this._$modelData.$sel$.$equals(e)||this._fireModelSelectionChange(void 0,{selectedUuids:this.getSelectedUuids()}))},_doSubModelRendering:function(e){var n=this,t=this._getBinder();t&&t.getClientBinder().thenCommand("$lsmc$",{model:this.$MODEL_UID$,value:e.data.value,nRows:-1}).then((function(e){var i=t._prepareVmData(e);n.$MODEL_SKIP_EL$=!0,n.renderByModel(t,n._$modelTemplateAnno,i,{},i.$sel$,!0),delete n.$MODEL_SKIP_EL$}))},syncSelectionsFromModel:function(e){var n=this;if(this._$skipSyncSelection)this._$skipSyncSelection=!1;else{var t=[],i={},r=[];null!=e&&e.forEach((function(e){var i,o=e,a=null!==(i=o.$id$)&&void 0!==i?i:o,s=n._$itemUuidRelations[a];s?t.push(s):r.push(o)}));var o=[],a=function(){clientbind.Binder.runInReactionBatch((function(){o.length>0&&(t=t.concat(o.map((function(e){return e.id})))),n.setSelectedUuids(t),n._updateLabelAndPlaceHolder()}))};if(r.length>0&&Object.hasOwnProperty.call(this._$modelData,"$sub$")){i.$lc$=r,this.$MODEL_SKIP_EL$=!0;var s=this._getBinder(),l=this._generateModelRender(s,s._prepareVmData(i),{},[],o);if(l instanceof Promise)return void l.then((function(){a(),delete n.$MODEL_SKIP_EL$}))}a()}},renderByModel:function(e,n,t,i,r,o){var a=this,s=null!=r,l=[];if(s&&(l=r.map((function(e){var n;return null!==(n=e.$id$)&&void 0!==n?n:e}))),!o){if(this._$uuidItemRelations={},this._$itemUuidRelations={},this._$itemHtmlRelations={},this._$modelTemplateAnno=n,(null==t||s)&&(this._$modelData=t),s&&(this.unlisten({onSelect:this}),this.listen({onSelect:this})),t.$mul$&&(this._multiple=!0),Object.hasOwnProperty.call(t,"$sub$"))return this.listen({onSearching:this._doSubModelRendering}),this._renderByServer=!0,void(s&&this.syncSelectionsFromModel(l));this._renderByServer=!1}var c=[],u=this._generateModelRender(e,t,i,l,c),d=function(){clientbind.Binder.runInReactionBatch((function(){if(c.length>0)for(var e=a.firstChild;e;e=a.firstChild)a.removeChild(e);a.setItems(c),o||a.syncSelectionsFromModel(l)}))};u instanceof Promise?u.then(d):d()},_generateModelRender:function(e,n,t,i,r){var o=this,a=[],s=this._$modelTemplateAnno,l="";return clientbind.WidgetFactory.createModelRenderer(this,e,s,void 0,n,t,(function(e){return a.push(e),e}),(function(e){return new zul.wgt.Label({value:e})})).render((function(e,n,t,i){if(!(e instanceof clientbind.ShadowInfo||e instanceof zul.wgt.Label))return zk.error("The model template can only support Label component, not  "+e.className),!0;var s=a.shift();i(),clientbind.Binder.runInReactionBatch((function(){var n;if(e instanceof zul.wgt.Label)l=e.getValue();else if(e instanceof clientbind.ShadowInfo){var t=e.getFirstInsertion();if(t){if(!(t instanceof zul.wgt.Label))return zk.error("The model template can only support Label component, not "+e.className),!0;l=t.getValue()}}var i=s,a=null!==(n=i.$id$)&&void 0!==n?n:i,c=o._$itemUuidRelations[a];null==c&&(c=zk.Widget.nextUuid(),o._$itemUuidRelations[a]=c);var u={id:c,content:l};o._$uuidItemRelations[u.id]=s,o._$itemHtmlRelations[a]=l,r.push(u)}))}))},fireOnSelect:function(n,t){if(this._$model){var i=new zk.Event(this,"onSelect",{selectedUuids:n});i.stop({au:!0}),this.fireX(i),this.setPlaceholderVisible(0==Object.keys(n).length)}else e.fireOnSelect.call(this,n,t)},coerceSelectedItemToUi:function(e){var n=this;zk.afterMount((function(){var t,i=null==e||0==e.length;if(i)n.clearSelection();else{var r=null!==(t=e.$id$)&&void 0!==t?t:e,o=n.getSelectedUuids(),a=n._$itemUuidRelations[r];if(a&&o[0]==a)return;n.syncSelectionsFromModel([e])}n._updateSelectionToModelIfAny(i?[]:[e])}))},coerceSelectedItemToBean:function(){var e,n=this._selectedUuids;return n.length>0&&(e=this._$uuidItemRelations[n[0]]),this._updateLabelAndPlaceHolder(),e},coerceSelectedItemsToUi:function(e){var n=this;zk.afterMount((function(){var t=null==e||0==e.length;t?n.clearSelection():n.syncSelectionsFromModel(e),n._updateSelectionToModelIfAny(t?[]:e)}))},coerceSelectedItemsToBean:function(){return this._updateLabelAndPlaceHolder(),this._getSelectedItemsObject()},_getSelectedItemsObject:function(){var e=this.getSelectedUuids(),n=[];if(e.length>0)for(var t=0,i=e;t<i.length;t++){var r=i[t],o=this._$uuidItemRelations[r];null!=o&&n.push(o)}return n},_updateLabelAndPlaceHolder:function(e){var n=this;e||(e=this._getSelectedItemsObject());var t=e.map((function(e){var t;return n._$itemHtmlRelations[null!==(t=e.$id$)&&void 0!==t?t:e]})).join(", ");this.setLabel(t),this.setPlaceholderVisible(0==t.length)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Searchbox||(window.clientbind.wgt.Searchbox={}),window.clientbind.wgt.Searchbox._={}},9693:function(){zk.afterLoad("zul.sel",(function(){zk.override(zul.sel.Select.prototype,{},{_getDefaultTemplateMeta:function(){return[["zul.sel.Option",{mold:"select","@load":{label:[{value:["each"],LOAD_TYPE:["java.lang.String"]}]}},[["zul.sel.Listcell",{"@load":{label:[{value:["each"]}]}}]]]]},renderByModel:function(e,n,t,i){for(var r=this;this.firstChild;)this.removeChild(this.firstChild);var o=[],a=void 0,s=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return o.push(e),e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(r._getDefaultTemplateMeta()),e})).render((function(e,n,t){e instanceof zul.sel.Optgroup?a=e:a&&e.setVisible(a.isOpen()),e._index=t,e._value=mobx.toJS(o.shift())}));s instanceof Promise?s.then((function(){return r.rerender()})):this.rerender()},coerceSelectedIndexToUi:function(e){this.setSelectedIndex(e)},coerceSelectedIndexToBean:function(){var e=-1;return this._selItems[0]&&(e=this._selItems[0]._index),e},coerceSelectedItemToUi:function(e){var n=this;zk.afterMount((function(){for(var t=0,i=n.firstChild;i;i=i.nextSibling,t++)if(i instanceof zul.sel.Option&&zUtl.isEqualObject(i.getValue(),e))return void i.setSelected(!0);n.selectItem(void 0)}))},coerceSelectedItemToBean:function(){var e="";return this._selItems[0]&&(e=this._selItems[0].getValue()),e},coerceSelectedItemsToUi:function(e){for(var n=!1,t=0,i=this.firstChild;i;i=i.nextSibling,t++)if(i instanceof zul.sel.Option){var r=i.getLabel();r&&-1!=e.indexOf(r)&&(this.setSelectedIndex(i._index),n=!0)}n||this.selectItem(void 0)},coerceSelectedItemsToBean:function(){for(var e=[],n=this._selItems,t=n.length,i=0;i<t;i++)e.push(n[i].getLabel());return e}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Select||(window.clientbind.wgt.Select={}),window.clientbind.wgt.Select._={}},1511:function(){zk.afterLoad("zul.wgt",(function(){zk.override(zul.wgt.Selectbox.prototype,{},{renderByModel:function(e,n,t,i){var r=this,o=[],a=[],s=[],l=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return s.push(e),e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(r._getDefaultTemplateMeta()),e})).render((function(e,n,t,i){if(!(e instanceof clientbind.ShadowInfo||e instanceof zul.wgt.Label))return zk.error("The model template can only support Label component, not  "+e.className),!0;if(i(),e instanceof clientbind.ShadowInfo&&null!=e.getFirstInsertion()&&(e=e.getFirstInsertion()),e instanceof zul.wgt.Label){var l=s.shift();o.push(e.getValue()),a.push(l),r.removeChild(e,!0)}})),c=function(){r.items&&r.items.length==o.length&&!o.join("")||(r.items=o,r.$beans$=mobx.toJS(a)),r.rerender()};l instanceof Promise?l.then(c):c()},_getDefaultTemplateMeta:function(){return[["zul.wgt.Label",{"@load":{value:[{value:["each"]}]}}]]},coerceSelectedIndexToUi:function(e){this.setSelectedIndex(e)},coerceSelectedIndexToBean:function(){return this.getSelectedIndex()},coerceSelectedItemToUi:function(e){var n;if(e)for(var t=this.$beans$,i=t.length,r=i>0?e.$id$:e,o=0;o<i;o++){var a=t[o];if((null!==(n=a.$id$)&&void 0!==n?n:a)==r)return void this.setSelectedIndex(o)}else this.setSelectedIndex(-1)},coerceSelectedItemToBean:function(){var e=this.getSelectedIndex();return-1!=e?this.$beans$[e]:""}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Selectbox||(window.clientbind.wgt.Selectbox={}),window.clientbind.wgt.Selectbox._={}},8219:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.layout",(function(){zk.override(zkmax.layout.Splitlayout.prototype,{},{beforeChildAdded_:function(e,n){return 2!=this.nChildren||(zk.error("Only support two children in Splitlayout"),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Splitlayout||(window.clientbind.wgt.Splitlayout={}),window.clientbind.wgt.Splitlayout._={}},3014:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.wgt",(function(){zk.override(zkmax.wgt.Stepbar.prototype,{},{syncSelectionsFromModel:function(e){this._updateActiveIndex(e[0])},renderByModel:function(e,n,t,i,r){for(var o=this,a=this.firstChild;a;a=this.firstChild)this.removeChild(a);var s=r.length>0?r[0]:0,l=clientbind.WidgetFactory.createModelRenderer(this,e,n,void 0,t,i,(function(e){return e}),(function(e){var n=new zkmax.wgt.Step;return n.appendChild(new zul.wgt.Label({value:e})),n})).render(),c=function(){o.rerender(),zk.afterMount((function(){o._updateActiveIndex(s)}))};l instanceof Promise?l.then((function(){return c()})):c()},_updateActiveIndex:function(e){if(this.setActiveIndex(e,!0),this._linear)for(var n=0,t=this.firstChild;t;t=t.nextSibling,n++)t._setCompleteDirectly(n<e)},coerceActiveIndexToUi:function(e){this.setActiveIndex(e,!0)},coerceActiveIndexToBean:function(){return this.getActiveIndex()},beforeChildAdded_:function(e,n){return e instanceof zkmax.wgt.Step||(zk.error("Unsupported child for Stepbar: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Stepbar||(window.clientbind.wgt.Stepbar={}),window.clientbind.wgt.Stepbar._={}},1482:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.tab",(function(){var e={};zk.override(zul.tab.Tabbox.prototype,e,{_getDefaultTabTemplateMeta:function(){return[["zul.tab.Tab",{"@load":{label:[{value:["each"]}]}}]]},_getDefaultTabpanelTemplateMeta:function(){return[["zul.tab.Tabpanel",{},[["zul.wgt.Label",{"@load":{value:[{value:["each"]}]}}]]]]},onSelect:function(e){this._fireModelSelectionChange(e.data)},_fireModelSelectionChange:function(e){var n=this,t=this._getBinder();if(t&&(e.model=this.$MODEL_UID$,null!=e.items)){var i=e.items[0];e.itemsIndex=i?[i.getChildIndex()]:[],null!=this._$modelData&&(mobx.runInAction((function(){n._$skipSyncSelection=!0,mobx.set(n._$modelData,"$sel$",i?[i._value]:[])})),t.getClientBinder().thenCommand("$lmsc$",e))}},_updateSelectionToModelIfAny:function(){if(this._$modelData&&Object.hasOwnProperty.call(this._$modelData,"$sel$")){var e=this._$modelData.$sel$,n=this.getSelectedTab(),t=null==n?[]:[n._value];e.$equals(t)||this._fireModelSelectionChange({items:null==n?[]:[n]})}},syncSelectionsFromModel:function(e){var n,t,i=e.length>0?e[0]:void 0;if(this._$skipSyncSelection)this._$skipSyncSelection=!1;else{var r;if(i&&this.tabs)for(var o=this.tabs.firstChild;o;o=o.nextSibling){var a=o._value;if((null!==(n=a.$id$)&&void 0!==n?n:a)==(null!==(t=i.$id$)&&void 0!==t?t:i)){r=o;break}}this.setSelectedTab(r,!0)}},renderByModel:function(e,n,t,i,r){var o,a=this,s=null!=r;(null==t||s)&&(this._$modelData=t);var l=this.tabs,c=this.tabpanels;if(l)for(var u=l.firstChild;u;u=l.firstChild)l.removeChild(u);else this.appendChild(new zul.tab.Tabs);if(c)for(u=c.firstChild;u;u=c.firstChild)c.removeChild(u);else this.appendChild(new zul.tab.Tabpanels);if(null!=t){this.unlisten({onSelect:this}),this.listen({onSelect:this});var d,_=0;s&&(d=r.length>0?null!==(o=r[0].$id$)&&void 0!==o?o:r[0]:void 0);var p=[],h=clientbind.WidgetFactory.createModelRenderer(this.tabs,e,n,"tab",t,i,(function(e){return p.push(e),e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(a._getDefaultTabTemplateMeta()),e}),void 0,0,void 0,!1).render((function(e,n,t,r){var o;r(),e instanceof clientbind.ShadowInfo&&null!=e.getFirstInsertion()&&(e=e.getFirstInsertion());var a=p.shift();e._value=mobx.toJS(a),d&&(null!==(o=a.$id$)&&void 0!==o?o:a)==d&&(_=i.$forEachStatus$.index)})),f=[],g=clientbind.WidgetFactory.createModelRenderer(this.tabpanels,e,n,"tabpanel",t,i,(function(e){return f.push(e),e}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(a._getDefaultTabpanelTemplateMeta()),e}),void 0,0,void 0,!1).render((function(e,n,t,i){i()})),v=[];h instanceof Promise&&v.push(h),g instanceof Promise&&v.push(g);var m=function(){var e;-1!=_&&a.tabs&&(e=a.tabs.getChildAt(_))?a.setSelectedTab(e,!0):a._selectFirstTabIfAny(),zUtl.fireSized(a)};v.length>0?Promise.all(v).then((function(){return m()})):m()}},onChildAdded_:function(n){e.onChildAdded_.call(this,n),this._selectFirstTabIfAny()},_selectFirstTabIfAny:function(){var e=-1==this.getSelectedIndex()&&null!=this.tabs?this.tabs.getChildAt(0):void 0;null!=e&&this.setSelectedTab(e,!0)},setSelectedIndex:function(n){if(e.setSelectedIndex.call(this,n),this._getBinder()){var t=this.tabs.getChildAt(n);this.fire("onSelect",{items:[t],reference:t},{toServer:!1})}return this},setSelectedTab:function(n,t){return e.setSelectedTab.call(this,n,t),this._getBinder()&&(t||this.fire("onSelect",{items:[n],reference:n},{toServer:!1})),this},coerceSelectedIndexToUi:function(e){var n=this;zk.afterMount((function(){var t=n.tabs.getChildAt(e);n.setSelectedTab(t,!0),n._updateSelectionToModelIfAny()}))},coerceSelectedIndexToBean:function(){return this.getSelectedIndex()},coerceSelectedTabToUi:function(n){var t=this;zk.afterMount((function(){var i,r=t.tabs;if(r)for(var o=r.firstChild;o;o=o.nextSibling){var a=null!==(i=o._value)&&void 0!==i?i:o.getLabel();clientbind.isObjectEquals(a,n)&&e.setSelectedTab.call(t,o)}t._updateSelectionToModelIfAny()}))},coerceSelectedTabToBean:function(){var e,n=this.getSelectedTab();return null!=n?null!==(e=n._value)&&void 0!==e?e:n.getLabel():void 0},beforeChildAdded_:function(e,n){if(e instanceof zul.wgt.Toolbar){if(this.toolbar&&this.toolbar!=e)return zk.error("Only one Toolbar is allowed: "+this.className),!1;if(this.isVertical())return zk.error("Toolbar is allowed only when the tabbox is horizontal. "+this.className),!1}else if(e instanceof zul.tab.Tabs){if(this.tabs&&this.tabs!=e)return zk.error("Only one tabs is allowed: "+this.className),!1}else{if(!(e instanceof zul.tab.Tabpanels))return zk.error("Unsupported child for tabbox: "+e.className),!1;if(this.tabpanels&&this.tabpanels!=e)return zk.error("Only one tabpanels is allowed: "+this.className),!1}return!0}}),zk.override(zul.tab.Tabs.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.tab.Tab||(zk.error("Unsupported child for tabs: "+e.className),!1)}}),zk.override(zul.tab.Tab.prototype,{},{beforeChildAdded_:function(e,n){var t=this.firstChild;if(e instanceof zul.wgt.Caption){if(t&&t instanceof zul.wgt.Caption&&t!=e)return zk.error("Only one caption is allowed: "+this.className),!1}else if(!(e instanceof zul.wgt.Label))return zk.error("Only caption is allowed: "+this.className),!1;return!0}}),zk.override(zul.tab.Tab.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.tab.Tabpanel||(zk.error("Unsupported child for tabpanels: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Tabbox||(window.clientbind.wgt.Tabbox={}),window.clientbind.wgt.Tabbox._={}},5576:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.layout",(function(){zk.override(zkmax.layout.Tablelayout.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zkmax.layout.Tablechildren||(zk.error("Unsupported child for Tablelayout: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Tablelayout||(window.clientbind.wgt.Tablelayout={}),window.clientbind.wgt.Tablelayout._={}},3855:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.sel",(function(){var e={};zk.override(zul.sel.Tree.prototype,e,{_getDefaultTemplateMeta:function(){return[["zul.sel.Treeitem",{"@load":{label:[{value:["each"]}],value:[{value:["each"]}]}}]]},onSelect:function(e){this._fireModelSelectionChange(e.data)},_fireModelSelectionChange:function(e){var n=this,t=this._getBinder();t&&(e.model=this.$MODEL_UID$,null!=e.items&&(e.itemsPath=e.items.map((function(e){return n._getChildPath(e)}))),t.getClientBinder().thenCommand("$tmsc$",e))},onOpen:function(e){var n=this._getBinder();if(n){e.data.model=this.$MODEL_UID$,e.data.referencePath=this._getChildPath(e.target);var t=function(){n.getClientBinder().thenCommand("$tioc$",e.data)},i=e.target?e.target._$AtSave:void 0;i&&i.open?setTimeout(t,0):t()}},_getChildPath:function(e){for(var n=[],t=e;!(t instanceof zul.sel.Tree);)t instanceof zul.sel.Treeitem&&null!=t._index&&n.unshift(t._index),t=t.parent;return n},renderByModel:function(e,n,t,i){this._model=!0,this._tree$noSelectAll=!1,this.unlisten({onSelect:this}),this.listen({onSelect:this});for(var r=this.firstChild;r;){var o=r.nextSibling;(r instanceof zul.sel.Treeitem||r instanceof zul.sel.Treechildren)&&(r.unlisten({open:this}),this.removeChild(r)),r=o}this._createTreeitems(e,this,n,t,i,!0)},_createTreeitems:function(e,n,t,i,r,o){var a=this,s=[];o&&n.appendChild(new zul.sel.Treechildren),clientbind.WidgetFactory.createModelRenderer(n.treechildren,e,t,void 0,i,r,(function(e){return s.push(e),e.$data$}),void 0,(function(){var e=new clientbind.TemplateInfo;return e.setTemplateMeta(a._getDefaultTemplateMeta()),e})).render((function(n,i,o,l){var c,u=s.shift();n._loaded=!0,n instanceof zul.sel.Treeitem&&n.listen({onOpen:a}),l();var d,_=mobx.toJS(u.$data$);if(n instanceof clientbind.ShadowInfo?n.getFirstInsertion()&&(n.getFirstInsertion()._value=_,d=n.getFirstInsertion()):n instanceof clientbind.ZkInfo||(n._value=_,d=n),d instanceof zul.sel.Treeitem){if(null==_){null===(c=d.firstChild)||void 0===c||c.detach();var p=d;p.hasBinding=!1,p.clearDisposer()}null!=u.$selected$&&d.setSelected(!!u.$selected$)}u.$children$&&a._createTreeitems(e,n,t,u.$children$,r,!0),d instanceof zul.sel.Treeitem&&d.setOpen(!!u.$opened$)}))},coerceSelectedItemToUi:function(e){var n=this;if(this.clearSelection(),e){var t=mobx.isObservable(e);t&&(e=mobx.toJS(e)),zk.afterMount((function(){for(var i=n.getItems(),r=0,o=i.length;r<o;r++){var a=i[r],s=a.getValue();if(t&&(s=mobx.toJS(s)),zUtl.isEqualObject(e,s)){a.setSelected(!0),n._fixSelected();break}}n._fireModelSelectionChange({items:n._selItems})}))}else this._fireModelSelectionChange({})},coerceSelectedItemToBean:function(){var e;return this._selItems[0]&&(e=this._selItems[0].getValue()),e},coerceSelectedItemsToUi:function(e){if(this.clearSelection(),e&&0!=e.length){for(var n=[],t=0,i=e.length;t<i;t++){var r=e[t];mobx.isObservable(r)&&(r=mobx.toJS(r)),n.push(r)}var o=this.getItems();for(t=0,i=o.length;t<i;t++){var a=o[t],s=a.getValue();mobx.isObservable(s)&&(s=mobx.toJS(s));for(var l=0,c=n.length;l<c;l++)if(zUtl.isEqualObject(n[l],s)){a.setSelected(!0);break}}this._fixSelected(),this._fireModelSelectionChange({items:this._selItems})}else this._fireModelSelectionChange({})},coerceSelectedItemsToBean:function(){for(var e=[],n=this._selItems,t=n.length,i=0;i<t;i++)e.push(n[i].getValue());return e},coercePageSizeToUi:function(e){this.getPageSize()!=e&&(this.setPageSize(e),this.processPagingModelIfAny())},coerceActivePageToUi:function(e){this.getActivePage()!=e&&(this.setActivePage(e),this.processPagingModelIfAny())},setPaginal:function(n){return this._paginal!=n&&(e.setPaginal.call(this,n),this.processPagingModelIfAny()),this},processPagingModelIfAny:function(){var e=this.$MODEL_UID$,n=this.getPaginal();n&&e&&"paging"==this.getMold()&&clientbind.WidgetFactory.processPagingModel(this,e,n.uuid,{pageSize:this.getPageSize(),activePage:this.getActivePage()})},beforeChildAdded_:function(e,n){if(e instanceof zul.sel.Treecols){if(this.treecols&&this.treecols!=e)return zk.error("Only one treecols is allowed: "+this.className),!1}else if(e instanceof zul.sel.Treefoot){if(this.treefoot&&this.treefoot!=e)return zk.error("Only one treefoot is allowed: "+this.className),!1}else if(e instanceof zul.mesh.Frozen){if(this.frozen&&this.frozen!=e)return zk.error("Only one frozen child is allowed: "+this.className),!1}else if(e instanceof zul.sel.Treechildren){if(this.treechildren&&this.treechildren!=e)return zk.error("Only one treechildren is allowed: "+this.className),!1}else if(e instanceof zul.mesh.Paging){if(this.getPaginal())return zk.error("External paging cannot coexist with child paging, "+this.className),!1;if(this.paging&&this.paging!=e)return zk.error("Only one paging is allowed: "+this.className),!1;if("paging"!=this.getMold())return zk.error("The child paging is allowed only in the paging mold, "+this.className),!1}else if(zul.grid&&e instanceof zul.grid.Foot){if(this.foot&&this.foot!=e)return zk.error("Only one foot child is allowed: "+this.className),!1}else if(!(e instanceof zul.mesh.Auxhead))return zk.error("Unsupported newChild: "+e.className),!1;return!0}}),zk.override(zul.sel.Treecols.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.sel.Treecol||(zk.error("Unsupported child for treecols: "+e.className),!1)}}),zk.override(zul.sel.Treerow.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.sel.Treecell||(zk.error("Unsupported child for tree row: "+e.className),!1)}});var n={};zk.override(zul.sel.Treeitem.prototype,n,{setOpen:function(e,t,i){if(this.__setOpen__)return this;this.__setOpen__=!0;try{return n.setOpen.call(this,e,t,i)}finally{delete this.__setOpen__}},beforeChildAdded_:function(e,n){if(e instanceof zul.sel.Treerow){if(this.treerow&&this.treerow!=e)return zk.error("Only one treerow is allowed: "+this.className),!1}else{if(!(e instanceof zul.sel.Treechildren))return zk.error("Unsupported child for tree item: "+e.className),!1;if(this.treechildren&&this.treechildren!=e)return zk.error("Only one treechildren is allowed: "+this.className),!1}return!0}});var t={};zk.override(zul.sel.Treechildren.prototype,t,{_rerenderRod:function(){if(this._isClientRodEnabled()){t._rerenderRod.call(this);var e=this.getTree();e&&Promise.resolve().then((function(){e._shallRedrawTree&&zUtl.fireSized(e)}))}},beforeChildAdded_:function(e,n){return e instanceof zul.sel.Treeitem||(zk.error("Unsupported child for treechildren: "+e.className),!1)}}),zk.override(zul.sel.Treefoot.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.sel.Treefooter||(zk.error("Unsupported child for treefoot: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Tree||(window.clientbind.wgt.Tree={}),window.clientbind.wgt.Tree._={}},5397:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zkmax.med",(function(){zk.override(zkmax.med.Video.prototype,{},{beforeChildAdded_:function(e,n){return e instanceof zul.med.Track||(zk.error("Unsupported child for video: "+e.className),!1)}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Video||(window.clientbind.wgt.Video={}),window.clientbind.wgt.Video._={}},8246:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={},zk.afterLoad("zul.wnd",(function(){zk.override(zul.wnd.Window.prototype,{},{beforeChildAdded_:function(e,n){if(e instanceof zul.wgt.Caption){if(this.caption&&this.caption!=e)return zk.error("Only one caption is allowed: "+this.className),!1}else if(n instanceof zul.wgt.Caption)return zk.error("caption must be the first child: "+this.className),!1;return!0}})})),window.clientbind||(window.clientbind={}),window.clientbind.wgt||(window.clientbind.wgt={}),window.clientbind.wgt.Window||(window.clientbind.wgt.Window={}),window.clientbind.wgt.Window._={}},1588:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.Widget=n.newable=void 0,t(8721);var i={},r=zk.override(zk.Widget.prototype,i,{_templateMeta:void 0,$binder_:void 0,hasBinding:!1,hasDynamicBinding:!1,_bindingReady:!1,_$AtId:void 0,_$AtInit:void 0,_$AtLoad:void 0,_$AtSave:void 0,_$AtRef:void 0,_$AtTemplate:void 0,_$AtValidator:void 0,_$AtConverter:void 0,_$AtShadowElements:void 0,_$AtCommand:void 0,_$AtGlobalCommand:void 0,_templatesInfo:void 0,_$disposers:void 0,_$model:!1,_extraAttrs:void 0,_$AtForwards:void 0,_$AtImportClass:void 0,_remoteEvaluating:!1,isRemoteEvaluating:function(){return this._remoteEvaluating},updateRemoteEvaluating:function(e){this._remoteEvaluating=e},isBindingReady:function(){return!this.hasBinding||this._bindingReady},markBindingReady:function(){this._bindingReady=!0},setTemplateMeta:function(e){return this._templateMeta=e,this},getTemplateMeta:function(){return this._templateMeta},"set@vm":function(e){return this["_@vm"]=e,this.$binder_=new clientbind.Binder(this,e),this},"update@vm":function(e,n){var t=this;this.desktop&&(this.$binder_?this.$binder_.updateVmData(e,n):queueMicrotask((function(){mobx.runInAction((function(){var i=zk.$(t.uuid);i.desktop&&i.$binder_.updateVmData(e,n)}))})))},"set@id":function(e){return this.hasBinding=!0,this._$AtId=e,this},getAtId:function(){return this._$AtId},"set@init":function(e){return this.hasBinding=!0,this._$AtInit=e,this},getAtInit:function(){return this._$AtInit},"set@load":function(e){return this._$AtLoad=e,this.hasDynamicBinding=this.hasBinding=!0,this},getAtLoad:function(){return this._$AtLoad},"set@template":function(e){return this._$AtTemplate=e,this},getAtTemplate:function(){return this._$AtTemplate},"set@converter":function(e){return this._$AtConverter=e,this.hasBinding=!0,this},getAtConverter:function(){return this._$AtConverter},"set@imclz":function(e){return this._$AtImportClass=e,this},getAtImportClass:function(){return this._$AtImportClass},beforeAfterCompose_:function(e){this._beforeAfterComposeCallbacks||(this._beforeAfterComposeCallbacks=[]),this._beforeAfterComposeCallbacks.push(e)},"set@shadowElements":function(e){var n=this;return this.beforeAfterCompose_((function(){if(!n.desktop)for(var t=[n.firstChild],i=void 0;i=t.shift();){i.firstChild&&t.unshift(i.firstChild);var r=i.id;i.id=void 0,zk.Widget._bind0(i),i.id=r,i.nextSibling&&t.unshift(i.nextSibling)}n._$AtShadowElements=e.map((function(e){var t=clientbind.WidgetFactory.create(e);return t.setHost(n),t.prepareTemplate(),t.hasBinding&&n._getBinder(!0).addBinding(t),t}))})),this.desktop&&(this.afterCompose_(),this.rerender()),this.hasBinding=!0,this},addShadowElement:function(e){if(null==e.getHost())e.setHost(this);else if(e.getHost()!=this)throw new Error("The shadow element is not belonged to this host: ["+this+"]");this._$AtShadowElements||(this._$AtShadowElements=[]),this._$AtShadowElements.$contains(e)||this._$AtShadowElements.push(e)},getAtShadowElements:function(){return this._$AtShadowElements},removeShadowRoot:function(e){this._$AtShadowElements&&this._$AtShadowElements.$remove(e)},setTemplatesInfo:function(e){return this._templatesInfo=e.map((function(e){return clientbind.WidgetFactory.create(e)})).reduce((function(e,n){return e[n.getName()]=n,e}),{}),this},"set@dependPkgs":function(e){return zk.load(e.join(",")),this},addTemplateInfo:function(e){this._templatesInfo||(this._templatesInfo={}),this._templatesInfo[e.getName()]=e},getTemplatesInfo:function(){return this._templatesInfo},"set@save":function(e){return this._$AtSave=e,this.hasDynamicBinding=this.hasBinding=!0,this},getAtSave:function(){return this._$AtSave},"set@validator":function(e){return this._$AtValidator=e,this.hasBinding=!0,this},getAtValidator:function(){return this._$AtValidator},"set@command":function(e){return this._$AtCommand=e,this.hasBinding=!0,this},getAtCommand:function(){return this._$AtCommand},"set@global-command":function(e){return this._$AtGlobalCommand=e,this.hasBinding=!0,this},getAtGlobalCommand:function(){return this._$AtGlobalCommand},"set@vmsg":function(e){return this.$binder_.setValidationMessage(e),this},"set@ref":function(e){return this._$AtRef=e,this.hasBinding=!0,this},getAtRef:function(){return this._$AtRef},"set@forwards":function(e){return this._$AtForwards=e,this},getAtForwards:function(){return this._$AtForwards},bind_:function(e,n,t){var r=this;this.inRerendering_()||void 0===this.$binder_&&Object.hasOwnProperty.call(this,"_@vm")&&(this.$binder_=new clientbind.Binder(this,this["_@vm"]));var o=function(){if(i.bind_.call(r,e,n,t),!r.inRerendering_()&&r.hasBinding){var o=r._getBinder();o&&!r.isBindingReady()&&(o.addBinding(r),t?t.unshift((function(){o.processWidgetBinding(r,!1)})):o.processWidgetBinding(r,!1))}if(r._$AtForwards){var a=r._$AtForwards;zk.afterMount((function(){var e=function(e){var n;r.listen(((n={})[e]=r["__$"+e+"$__"]=function(n){for(var t,i=0,o=a[e];i<o.length;i++){var s=o[i];for(var l in s)null===(t=r.$f(l))||void 0===t||t.fire(s[l],n)}},n))};for(var n in a)e(n)}))}},a=Zone.current.view;this.$binder_&&a&&a!=this?Zone.current.fork({name:this.uuid}).run((function(){Zone.current.view=r,o()})):o()},unbindRod_:function(){var e;if(!this.inRerendering_()){if(this.hasBinding){var n=this._getBinder();n&&n.removeBinding(this)}this._bindingReady=!1,this.$binder_&&(this.$binder_.destroy(),this.$binder_=void 0),this.clearDisposer();var t=this.getShadowRoots();if(t)for(var r=0,o=t;r<o.length;r++)o[r].unbind()}if(this._$AtForwards){var a=this._$AtForwards;for(var s in a)this.unlisten(((e={})[s]=this["__$"+s+"$__"],e)),delete this["__$"+s+"$__"]}i.unbindRod_.call(this)},removeChild:function(e,n){var t=e;if(!0!==n&&!t.z_rod&&!t.desktop)for(var r=function(e){if(e.hasBinding){var n=e._getBinder();n&&n.removeBinding(e)}e.$binder_&&(e.$binder_.destroy(),e.$binder_=void 0),e.clearDisposer();var t=e.getShadowRoots();if(t)for(var i=0,r=t;i<r.length;i++)r[i].unbind()},o=[t];o.length;){var a=o.shift();r(a);for(var s=a.firstChild;s;s=s.nextSibling)o.push(s)}return i.removeChild.call(this,e,n)},addDisposer:function(e){this._$disposers||(this._$disposers=[]),this._$disposers.push(e)},clearDisposer:function(){this._$disposers&&(this._$disposers.forEach((function(e){e()})),this._$disposers=void 0)},_getBinder:function(e){var n;void 0===e&&(e=!1);var t=e?void 0:Zone.current.view;if(null==t){var i=this.$binder();if(!i)return e?null===(n=Zone.current.view)||void 0===n?void 0:n.$binder_:void 0;t=i.$view}return t.$binder_},afterCompose_:function(){if(this._beforeAfterComposeCallbacks)for(var e=void 0;e=this._beforeAfterComposeCallbacks.shift();)e();if(this._afterComposed=!0,i.afterCompose_.call(this),this.hasBinding){this._$disposers=[];var n=this._getBinder(!0);n&&(n.addBinding(this),this.desktop&&n.processBinding(this))}var t=this.getShadowRoots();if(t&&t.forEach((function(e){return e.afterCompose_()})),this.$binder_&&(!this.$binder_.parent||this.$binder_.parent.view._afterComposed)){var r=function(e){Zone.current.fork({name:e.uuid}).run((function(){Zone.current.view=e,e.$binder_.processBindings()})),e.$binder_.children.forEach((function(e){return r(e.view)}))};r(this)}},getShadowRoots:function(){return this.getAtShadowElements()},getExtraAttrs:function(){return this._extraAttrs},setExtraAttrs:function(e){return this._extraAttrs=e,this},setExtraAttr:function(e,n){return mobx.isObservable(this._extraAttrs)?mobx.set(this._extraAttrs,e,n):this._extraAttrs[e]=n,this},getExtraAttr:function(e){return this._extraAttrs?this._extraAttrs[e]:void 0},disableShadowAdjustment:function(){this._disabledShadowAdjustment=!0},enableShadowAdjustment:function(){this._disabledShadowAdjustment=!1},triggerBeforeHostParentChanged_:function(e){var n;if(!this._disabledShadowAdjustment){var t=this.getShadowRoots();t&&t.length&&Zone.current.fork({name:"shadow",properties:{DistributedIndexInfo:null!==(n=this.getIndexCacheMap())&&void 0!==n?n:new Map}}).run((function(){for(var n=0,i=t;n<i.length;n++)i[n].beforeHostParentChanged_(e)}))}},triggerBeforeHostChildAdded_:function(e,n){var t;if(!this._disabledShadowAdjustment){var i=this.getShadowRoots();i&&i.length&&Zone.current.fork({name:"shadow",properties:{DistributedIndexInfo:null!==(t=this.getIndexCacheMap())&&void 0!==t?t:new Map}}).run((function(){for(var t=null==n?-1:n.getChildIndex(),r=0,o=i;r<o.length;r++)o[r].beforeHostChildAdded_(e,n,t)}))}},triggerBeforeHostChildRemoved_:function(e){var n;if(!this._disabledShadowAdjustment){var t=this.getShadowRoots();t&&t.length&&Zone.current.fork({name:"shadow",properties:{DistributedIndexInfo:null!==(n=this.getIndexCacheMap())&&void 0!==n?n:new Map}}).run((function(){for(var n=e.getChildIndex(),i=0,r=t;i<r.length;i++)r[i].beforeHostChildRemoved_(e,n)}))}},triggerAfterHostChildAdded_:function(e){var n;if(!this._disabledShadowAdjustment){var t=this.getShadowRoots();t&&t.length&&Zone.current.fork({name:"shadow",properties:{DistributedIndexInfo:null!==(n=this.getIndexCacheMap())&&void 0!==n?n:new Map}}).run((function(){for(var n=e.getChildIndex(),i=0,r=t;i<r.length;i++)r[i].afterHostChildAdded_(e,n)}))}},triggerAfterHostChildRemoved_:function(e){var n;if(!this._disabledShadowAdjustment){var t=this.getShadowRoots();t&&t.length&&Zone.current.fork({name:"shadow",properties:{DistributedIndexInfo:null!==(n=this.getIndexCacheMap())&&void 0!==n?n:new Map}}).run((function(){for(var n=0,i=t;n<i.length;n++)i[n].afterHostChildRemoved_(e)}))}},getIndexCacheMap:function(){return Zone.current.get("DistributedIndexInfo")},detachAtClientOnly:function(){var e,n=null===(e=window.stateless)||void 0===e?void 0:e.cloudMode;window.stateless?window.stateless.cloudMode=this.uuid.startsWith("_z_"):this.uuid.startsWith("_z_")||this._sendRMS();try{this.detach(),this.clearDisposer()}finally{window.stateless&&(window.stateless.cloudMode=n)}},_sendRMS:function(){if(!stateless){var e=[];this._lookupAllWidgetUuids(this,e),this.fire("$rms$",e,{toServer:!0})}},_lookupAllWidgetUuids:function(e,n){if(null!=e){e.uuid&&!e.uuid.startsWith("_z_")&&n.push(e.uuid);for(var t=e.firstChild;t;t=t.nextSibling)this._lookupAllWidgetUuids(t,n)}},toString:function(){var e=this.widgetName,n=e.charAt(0).toUpperCase()+e.slice(1);if("zhtml"==e){var t=this.prolog;return(t?t.length>10?t.substring(0,10)+"...>":t:"<Text "+(this._value?this._value.substring(0,10):this._value)+">")+" ["+this.uuid+(this.id?"#"+this.id:"")+"]"}return"<"+n+" "+this.uuid+(this.id?"#"+this.id:"")+">"}});function o(e){return e.constructor}n.newable=o,n.Widget=o(r),clientbind.Widget=n.Widget,clientbind.newable=o,zk.afterLoad("stateless",(function(){var e={};zk.override(r,e,{_sendRMS:function(){this.$binder_||e._sendRMS.call(this)}})}));var a=zAu._doCmds;zAu._doCmds=function(e){mobx.runInAction((function(){return a(e)}))},window.clientbind||(window.clientbind={}),window.clientbind.widget||(window.clientbind.widget={}),window.clientbind.widget._={xWidget:i,newWidget:r,newable:o,_doCmds:a}},8982:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.ApplyInfo=void 0;var o=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._loadings=0,n}return i(n,e),n.prototype.setTemplate=function(e){return this._template!=e&&(this._template=e,this._dirtyBinding=!0),this},n.prototype.getTemplate=function(){return this._template},n.prototype.setTemplateURI=function(e){return this._templateURI!=e&&(this._templateURI=e,this._dirtyBinding=!0),this},n.prototype.getTemplateURI=function(){return this._templateURI},n.prototype.setExtraAttrs=function(n){var t=this.getExtraAttrs();return t!=n&&JSON.stringify(t)!=JSON.stringify(n)&&(e.prototype.setExtraAttrs.call(this,n),this._dirtyBinding=!0),this},n.prototype.setExtraAttr=function(n,t){var i=this.getExtraAttrs();if(null!=i){var r=i[n];if(r!==t&&JSON.stringify(r)!=JSON.stringify(t))e.prototype.setExtraAttr.call(this,n,t),this._dirtyBinding=!0;else{var o=mobx.getAtom(i,n);o&&o.observers_.forEach((function(e){return e.onInvalidate_()}))}}return this},n.prototype.isEffective_=function(){return!(this.hasBinding&&!this._bindingReady||!this.getTemplatesInfo()&&""==this._template&&null==this._templateURI)},n.prototype.compose_=function(e){var n=this,t=this._template,i=this._templateURI;t&&i&&zk.error("Can not set template and template uri in the same time. \nSet template uri as null or empty string first."),i?(this._loadings++,e._getBinder().getClientBinder().thenCommand("$ctc$",{uri:i}).then((function(t){0==--n._loadings&&(null==Zone.current.view?Zone.current.fork({name:e.uuid}).run((function(){Zone.current.view=e.$binder().$view,n._applyTemplateURI(e,t)})):n._applyTemplateURI(e,t))}))):this._renderTemplate(t||"")},n.prototype._applyTemplateURI=function(e,n){var t=this;zAu.createWidgets([n],(function(e){var n=e[0].getTemplatesInfo();t.addTemplateInfo(n[""]);var i=clientbind.ShadowInfo.getCurrentInfo_();try{clientbind.ShadowInfo.setCurrentInfo_(t),t._renderTemplate("")}finally{clientbind.ShadowInfo.setCurrentInfo_(i)}}))},n.prototype._renderTemplate=function(e){var n=clientbind.WidgetFactory.lookupTemplate(this,e);if(n){var t=this.getShadowHostIfAny(),i=t._getBinder();clientbind.WidgetFactory.createWidgetsInTemplate(i,t,this,n.getTemplateMeta(),{}),t.z_rod||t.shallFireSizedLaterWhenAddChd_()||zk(t).isRealVisible()&&zUtl.fireSized(t)}},r([zk.WrapClass("clientbind.ApplyInfo")],n)}(clientbind.ShadowInfo);n.ApplyInfo=o,clientbind.ApplyInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.zuti||(window.clientbind.zuti={}),window.clientbind.zuti.ApplyInfo||(window.clientbind.zuti.ApplyInfo={}),window.clientbind.zuti.ApplyInfo._={ApplyInfo:o}},2436:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.ChooseInfo=void 0;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.isEffective_=function(){return!0},n.prototype._clearChildrenWidgets=function(){if(null!=this._firstInsertion){for(var e=this._firstInsertion,n=this._lastInsertion;e;){var t=e==n,i=e.nextSibling;if(e.detachAtClientOnly(),e=i,t)break}this._firstInsertion=void 0,this._lastInsertion=void 0}},n.prototype.compose_=function(e){if(!this.firstChild){var n=this.getTemplatesInfo();if(null==n)return;var t=n[""];if(t){var i=t.getTemplateMeta();if(null!=i)for(var r=this.getShadowHostIfAny()._getBinder(),o=0,a=i;o<a.length;o++){var s=a[o],l=clientbind.WidgetFactory.create(s);l.prepareTemplate(),this.appendChild(l),r.processBinding(l)}}}this.evaluateShadows()},n.prototype.evaluateShadows=function(){if(this._checkAllChildrenAfterRemoteUpdatedIfAny())for(var e=this.firstChild;e;e=e.nextSibling)if(e instanceof clientbind.WhenInfo){if(e.isEffective_()){e.afterCompose_();break}}else e.afterCompose_()},n.prototype._checkAllChildrenAfterRemoteUpdatedIfAny=function(){for(var e=this.firstChild;e;e=e.nextSibling)if(e.isRemoteEvaluating())return!1;return!0},n.prototype.beforeChildAdded_=function(n,t){if(!(n instanceof clientbind.WhenInfo||n instanceof clientbind.OtherwiseInfo))return zk.error("Unsupported child for <choose>: "+n.className),!1;if(n instanceof clientbind.OtherwiseInfo){for(var i=this.firstChild;i;i=n.nextSibling)if(i instanceof clientbind.OtherwiseInfo)return zk.error("Only one <otherwise> child for <choose>: "+n.className),!1;if(null!=t)return zk.error("Last child of <choose> should be <otherwise>: "+n.className),!1}else if(!t&&this.lastChild&&this.lastChild instanceof clientbind.OtherwiseInfo)return zk.error("Last child of <choose> should be <otherwise>: "+n.className),!1;return e.prototype.beforeChildAdded_.call(this,n,t)},r([zk.WrapClass("clientbind.ChooseInfo")],n)}(clientbind.ShadowInfo);n.ChooseInfo=o,clientbind.ChooseInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.zuti||(window.clientbind.zuti={}),window.clientbind.zuti.ChooseInfo||(window.clientbind.zuti.ChooseInfo={}),window.clientbind.zuti.ChooseInfo._={ChooseInfo:o}},1013:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.ForEachInfo=void 0;var o=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._begin=0,n._end=-1,n._step=1,n._var="each",n._varStatus="forEachStatus",n}return i(n,e),n.prototype.setItems=function(e){return this._items!=e&&JSON.stringify(this._items)!==JSON.stringify(e)&&(this._items=e,this._dirtyBinding=!0),this},n.prototype.getItems=function(){return this._items},n.prototype.setBegin=function(e){return this._begin!=e&&(this._begin=e,this._dirtyBinding=!0),this},n.prototype.getBegin=function(){return this._begin},n.prototype.setRawEnd=function(e){return this._end!=e&&(this._end=e,this._dirtyBinding=!0),this},n.prototype.getRawEnd=function(){return this._end},n.prototype.setEnd=function(e){return this.setRawEnd(e)},n.prototype.getEnd=function(){return this.getRawEnd()},n.prototype.setStep=function(e){return this._step!=e&&(this._step=e,this._dirtyBinding=!0),this},n.prototype.getStep=function(){return this._step},n.prototype.setVar=function(e){return this._var!=e&&(this._var=e,this._dirtyBinding=!0),this},n.prototype.getVar=function(){return this._var},n.prototype.setVarStatus=function(e){return this._varStatus!=e&&(this._varStatus=e,this.rerender()),this},n.prototype.getVarStatus=function(){return this._varStatus},n.prototype.isEffective_=function(){return this._items&&this.coerceToUi(this._items).length>0||this._begin<=this._end},n.prototype.coerceToUi=function(e){if(null==e||Array.isArray(e))return e;if(e.$lc$)return e.$lc$;var n=[];for(var t in e)"$map$"!=t&&"$id$"!=t&&n.push({key:t,value:e[t]});return n},n.prototype.compose_=function(e){var n=this._begin,t=this._end,i=this._step,r=this.coerceToUi(this._items),o=this._var,a=this._varStatus;if(!(null!=r&&r.length<=n)){-1==t&&(t=null==r?0:r.length-1);var s=this.getTemplatesInfo();if(null!=s){var l=s[""];if(l){l._var=o,l._status=a;var c=void 0,u=clientbind.ShadowInfo.getCurrentInfo_();try{clientbind.ShadowInfo.setCurrentInfo_(this);for(var d=n;d<=t;d+=i){var _=null==r?d:r[d],p={previous:c,each:_,current:_,index:d,begin:n,end:t,first:d==n,last:-1==d||d+i>t,step:i,count:d+1},h={$each$:_,$eachName$:o,$forEachStatus$:p,$forEachStatusName$:a},f=e._getBinder();clientbind.WidgetFactory.createWidgetsInTemplate(f,e,this,l.getTemplateMeta(),h),c=p}}finally{clientbind.ShadowInfo.setCurrentInfo_(u)}}}}},r([zk.WrapClass("clientbind.ForEachInfo")],n)}(clientbind.ShadowInfo);n.ForEachInfo=o,clientbind.ForEachInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.zuti||(window.clientbind.zuti={}),window.clientbind.zuti.ForEachInfo||(window.clientbind.zuti.ForEachInfo={}),window.clientbind.zuti.ForEachInfo._={ForEachInfo:o}},9744:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.IfInfo=void 0;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.setTest=function(e){return this._test!=e&&(this._test=e,this._dirtyBinding=!0),this},n.prototype.isTest=function(){return this._test},n.prototype.isEffective_=function(){return!!this.isTest()},n.prototype.compose_=function(e){var n=this.getTemplatesInfo();if(null!=n){var t=n[""];if(t){var i=e._getBinder();clientbind.WidgetFactory.createWidgetsInTemplate(i,e,this,t.getTemplateMeta(),{})}}},r([zk.WrapClass("clientbind.IfInfo")],n)}(clientbind.ShadowInfo);n.IfInfo=o,clientbind.IfInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.zuti||(window.clientbind.zuti={}),window.clientbind.zuti.IfInfo||(window.clientbind.zuti.IfInfo={}),window.clientbind.zuti.IfInfo._={IfInfo:o}},4572:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.OtherwiseInfo=void 0;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.isEffective_=function(){return!0},n.prototype.compose_=function(e){var n=this.getTemplatesInfo();if(null!=n){var t=n[""];if(t){var i=e._getBinder();clientbind.WidgetFactory.createWidgetsInTemplate(i,e,this,t.getTemplateMeta(),{})}}},n.prototype.beforeParentChanged_=function(n){if(n&&!(n instanceof clientbind.ChooseInfo)){var t="Unsupported parent for <otherwise>: "+n.className;throw zk.error(t),t}e.prototype.beforeParentChanged_.call(this,n)},r([zk.WrapClass("clientbind.OtherwiseInfo")],n)}(clientbind.ShadowInfo);n.OtherwiseInfo=o,clientbind.OtherwiseInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.zuti||(window.clientbind.zuti={}),window.clientbind.zuti.OtherwiseInfo||(window.clientbind.zuti.OtherwiseInfo={}),window.clientbind.zuti.OtherwiseInfo._={OtherwiseInfo:o}},7539:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.BinarySearchIterator=n.ShadowInfo=void 0;var o=function(e){function n(){var n=e.call(this)||this;return n._dirtyBinding=!0,n._debouncedOnRenderer=zUtl.debounce(n.rerenderOnDebounce,50,!1),Object.defineProperty(n,"_dirtyBinding",{get:function(){return n._dirtyBinding0},set:function(e){n._dirtyBinding0=e,e&&n._bindingReady&&n._debouncedOnRenderer()}}),n}var t;return i(n,e),t=n,n.prototype.setHost=function(e,n){if(null!=this.parent)throw new Error("As a shadow child cannot be a shadow root. ["+this+"]");if(null!=this._host)throw new Error("The shadow element cannot change its host, if existed. ["+this+"]");return this._host=e,this.onHostAttached_(e),n&&(this._nextInsertion=n,this._previousInsertion=n.previousSibling),e.addShadowElement(this),this.bind(e.desktop),this},n.prototype.getNextInsertionWidget=function(){if(null==this._nextInsertion){var e=null==this._lastInsertion?void 0:this._lastInsertion.nextSibling;return null==e&&null!=this.parent?this.asShadow_(this.parent).getNextInsertionWidget():e}if(this._nextInsertion instanceof t){var n=this.asShadow_(this._nextInsertion);return null!=n._firstInsertion?n._firstInsertion:n.getNextInsertionWidget()}return this._nextInsertion},n.prototype.getPreviousInsertionWidget=function(){if(null==this._previousInsertion){var e=null==this._firstInsertion?void 0:this._firstInsertion.previousSibling;return null==e&&null!=this.parent?this.asShadow_(this.parent).getPreviousInsertionWidget():e}if(this._previousInsertion instanceof t){var n=this.asShadow_(this._previousInsertion);return null!=n._lastInsertion?n._lastInsertion:n.getPreviousInsertionWidget()}return this._previousInsertion},n.prototype.getHost=function(){return this._host},n.prototype.getShadowHostIfAny=function(){for(var e=this;null!=e.parent;)e=e.parent;return e.getHost()},n.prototype.getIndexMap=function(){var e=t.getDistributedIndexInfo_();if(null==e)throw new Error("Distributed index map cannot be null! ["+this+"]");return e},n.prototype.fillUpIndexMap=function(e,n){if(null==e)return this.getIndexMap();var t=e.parent;if(null==t)throw new Error("The insertion point cannot be null: "+String(e));var i=this.getIndexMap();if(null!=i.get(e)&&n&&i.has(n))return i;for(var r=0,o=t.firstChild;o;r++,o=o.nextSibling)if(0==i.size)e==o&&i.set(o,r);else if(i.set(o,r),o==n)break;return i},n.prototype.queryIntersectedShadowIfAny=function(e,n){var i=this.binarySearchSubTree(this,e,n);if(i instanceof t)return i},n.prototype.binarySearchSubTree=function(e,n,t){var i,r;if(null==e._firstInsertion)return-1;if((i=t.get(e._firstInsertion))>n)return i;if((r=t.get(e._lastInsertion))<n)return r;var o=e.nChildren;if(0==o)return e;for(var s=new a(e,o,n);s.hasNext();){var l=this.binarySearchSubTree(s.next(),n,t);if("number"!=typeof l)return l;s.adjustCursor(l)}return e},n.prototype.beforeHostChildAdded_=function(e,n,i){var r=t.getCurrentInfo_();if(i<0)if(null!=r){var o=this.asShadow_(r);if(t.isAncestor_(this,o)){var a=o.lastChild;null!=a&&null==this.asShadow_(a)._nextInsertion&&(this.asShadow_(a)._nextInsertion=e)}else o.getShadowHostIfAny()!=this.getShadowHostIfAny()&&null==this._nextInsertion&&(this._nextInsertion=e)}else null==this._nextInsertion&&(this._nextInsertion=e);else{var s=this.fillUpIndexMap(this._firstInsertion,this._lastInsertion),l=this.queryIntersectedShadowIfAny(i,s);if(r instanceof clientbind.ShadowInfo){if(t.isAncestor_(this.asShadow_(r),l))this.adjustInsertionForInsertBefore(l,e,n);else if(r.nChildren>0){var c=this.asShadow_(r);this.asShadow_(c.lastChild)._nextInsertion=e}}else null!=l?null!=this.parent||n!=this._firstInsertion?this.adjustInsertionForInsertBefore(l,e,n):this._previousInsertion=e:this._nextInsertion==n&&(this._nextInsertion=e)}},n.prototype.getInsertionIndex=function(e,n,t){if(null==t)return[(t=this.fillUpIndexMap(e,n)).get(e),t.get(n)];var i=t.get(e),r=t.get(n);return null!=i&&null!=r||(t=this.fillUpIndexMap(e,n)),[i=t.get(e),r=t.get(n)]},n.prototype.stretchRange=function(e,n){if(null!=e){var t=!1;if(null==this._firstInsertion)this._firstInsertion=e,this._lastInsertion=n,t=!0;else{var i=this.fillUpIndexMap(e,n),r=this.getInsertionIndex(e,n,i),o=this.getInsertionIndex(this._firstInsertion,this._lastInsertion,i);r[0]<o[0]&&(t=!0,this._firstInsertion=e),o[1]<r[1]&&(t=!0,this._lastInsertion=n)}t&&null!=this.parent&&this.asShadow_(this.parent).stretchRange(e,n)}},n.prototype.shrinkRange=function(e,n){if(null!=e){var t=!1;e==this._firstInsertion?(n==this._lastInsertion?this._firstInsertion=this._lastInsertion=void 0:this._firstInsertion=null==n?void 0:n.nextSibling,t=!0):n==this._lastInsertion&&(t=!0,this._lastInsertion=this._lastInsertion.previousSibling),t&&null!=this.parent&&this.asShadow_(this.parent).shrinkRange(e,n)}},n.prototype.afterHostChildAdded_=function(e,n){var i=t.getCurrentInfo_();if(i instanceof t){if(i==this){var r=!1;if(null==this._firstInsertion)this._firstInsertion=this._lastInsertion=e,r=!0;else if(this._firstInsertion!=e&&this._lastInsertion!=e){var o=this._firstInsertion,a=this._lastInsertion;n<(l=this.getInsertionIndex(o,a,this.fillUpIndexMap(o,a)))[0]?(this._firstInsertion=e,r=!0):n>l[1]&&(this._lastInsertion=e,r=!0)}return null!=this.parent&&r&&this.asShadow_(this.parent).stretchRange(this._firstInsertion,this._lastInsertion),void this.onHostChildAdded_(e)}if(t.isAncestor_(this,this.asShadow_(i)))return void this.asShadow_(i).afterHostChildAdded_(e,n)}else{if(null==this._firstInsertion)return;var s=e.getChildIndex();if(s<this._firstInsertion.getChildIndex())return;var l,c=this.fillUpIndexMap(this._firstInsertion,this._lastInsertion);if((l=this.getInsertionIndex(this._firstInsertion,this._lastInsertion,c))[1]<s)return;var u=this.queryIntersectedShadowIfAny(s,c);if(null!=u)try{t.setCurrentInfo_(u),this.asShadow_(u).afterHostChildAdded_(e,n)}finally{t.setCurrentInfo_(i)}}},n.prototype.adjustInsertionForRemove_=function(e,n){var t=void 0,i=this.inRange(e,n);switch(i){case"PREVIOUS":if(null!=(t=e._previousInsertion)){var r=this.asShadow_(e.getPreviousSibling());return null!=r?r._nextInsertion==t?(r._nextInsertion=e,e._previousInsertion=r):e._previousInsertion=t.previousSibling:null==(o=this.asShadow_(e.parent))||o._firstInsertion!=t?e._previousInsertion=t.previousSibling:e._previousInsertion=void 0,!0}return!1;case"NEXT":if(null!=(t=e._nextInsertion)){var o,a=this.asShadow_(e.nextSibling);return null!=a?a._previousInsertion==t?(a._previousInsertion=e,e._nextInsertion=a):e._nextInsertion=t.nextSibling:null==(o=this.asShadow_(e.parent))||o._lastInsertion!=t?e._nextInsertion=t.previousSibling:e._nextInsertion=void 0,!0}return!1;case"IN_RANGE":case"FIRST":case"LAST":if(null!=e.nChildren){for(var s=e.firstChild;s;s=s.nextSibling)if(this.adjustInsertionForRemove_(s,n))return!0}else{if("FIRST"==i)return e.shrinkRange(e._firstInsertion,e._firstInsertion),!0;if("LAST"==i)return e.shrinkRange(e._lastInsertion,e._lastInsertion),!0}return!1;default:return!1}},n.prototype.onHostChildAdded_=function(e){},n.prototype.onHostChildRemoved_=function(e){},n.prototype.beforeHostChildRemoved_=function(e,n){var i=t.getCurrentInfo_();if(i instanceof t){if(i==this){this.adjustInsertionForRemove_(this,e);var r=!1,o=this._firstInsertion,a=this._lastInsertion;return e==this._firstInsertion?(this._firstInsertion==this._lastInsertion?this._firstInsertion=this._lastInsertion=void 0:(this._firstInsertion=e.nextSibling,a=o),r=!0):e==this._lastInsertion&&(r=!0,this._lastInsertion=e.previousSibling,o=a),r&&null!=this.parent&&this.asShadow_(this.parent).shrinkRange(o,a),void this.onHostChildRemoved_(e)}if(t.isAncestor_(this,this.asShadow_(i)))return void this.asShadow_(i).beforeHostChildRemoved_(e,n)}else{if(this._previousInsertion==e?t.setPrevInsertion_(this,e.previousSibling):this._nextInsertion==e&&t.setPrevInsertion_(e.nextSibling,this),null==this._firstInsertion)return;if(n<this._firstInsertion.getChildIndex())return;var s=this.fillUpIndexMap(this._firstInsertion,this._lastInsertion);if(this.getInsertionIndex(this._firstInsertion,this._lastInsertion,s)[1]<n)return;var l=this.queryIntersectedShadowIfAny(n,s);if(null!=l)try{t.setCurrentInfo_(l),this.asShadow_(l).beforeHostChildRemoved_(e,n)}finally{t.setCurrentInfo_(i)}}},n.prototype.afterHostChildRemoved_=function(e){},n.prototype.onHostAttached_=function(e){},n.prototype.beforeHostParentChanged_=function(e){null==e?this._host.removeShadowRoot(this):null==this._host.parent&&this.onHostAttached_(this._host)},n.prototype.adjustInsertionForInsertBefore=function(e,n,i,r){void 0===r&&(r=!1);var o=void 0,a=this.inRange(e,i);switch(a){case"PREVIOUS":return o=e._previousInsertion,e._previousInsertion=n,o instanceof t&&(o._nextInsertion=n),!0;case"NEXT":return o=e._nextInsertion,e._nextInsertion=n,o instanceof t&&(o._previousInsertion=n),!0;case"IN_RANGE":case"FIRST":case"LAST":if(0==e.nChildren){if("FIRST"==a&&r)return o=e._previousInsertion,e._previousInsertion=n,o instanceof t&&(o._nextInsertion=n),!0}else for(var s=e.firstChild;s;s=s.nextSibling)if(this.adjustInsertionForInsertBefore(s,n,i,!0))return!0;return!1;default:return!1}},n.prototype.inRange=function(e,n){var i,r=null!==(i=t.getDistributedIndexInfo_())&&void 0!==i?i:new Map,o=t.getIndex(void 0,n,r),a=t.getIndex(e,e._previousInsertion,r),s=t.getIndex(e,e._firstInsertion,r),l=t.getIndex(e,e._lastInsertion,r),c=t.getIndex(e,e._nextInsertion,r);return o==a?"PREVIOUS":o==s?"FIRST":o==l?"LAST":o==c?"NEXT":o>s&&o<l?"IN_RANGE":a>-1?o-a>0?"AFTER_NEXT":"BEFORE_PREVIOUS":s>-1?o-s>0?"AFTER_NEXT":"BEFORE_PREVIOUS":c>-1?o-c>0?"AFTER_NEXT":"BEFORE_PREVIOUS":l>-1?o-l>0?"AFTER_NEXT":"BEFORE_PREVIOUS":"UNKNOWN"},n.prototype.setPreviousInsertion=function(e){var n=this;return this._previousInsertion!=e&&this.beforeAfterCompose_((function(){if("string"==typeof e&&null==(e=zk.$(e)))throw new Error("Widget not found: ["+e+"]");n._previousInsertion=e})),this},n.prototype.getPreviousInsertion=function(){return this._previousInsertion},n.prototype.setNextInsertion=function(e){var n=this;return this._nextInsertion!=e&&this.beforeAfterCompose_((function(){if("string"==typeof e&&null==(e=zk.$(e)))throw new Error("Widget not found: ["+e+"]");n._nextInsertion=e})),this},n.prototype.getNextInsertion=function(){return this._nextInsertion},n.prototype.setFirstInsertion=function(e){var n=this;return this._firstInsertion!=e&&this.beforeAfterCompose_((function(){if("string"==typeof e&&null==(e=zk.$(e)))throw new Error("Widget not found: ["+e+"]");n._firstInsertion=e})),this},n.prototype.getFirstInsertion=function(){return this._firstInsertion},n.prototype.setLastInsertion=function(e){var n=this;return this._lastInsertion!=e&&this.beforeAfterCompose_((function(){if("string"==typeof e&&null==(e=zk.$(e)))throw new Error("Widget not found: ["+e+"]");n._lastInsertion=e})),this},n.prototype.getLastInsertion=function(){return this._lastInsertion},n.prototype.getPreviousSibling=function(){var e=this,n=this.parent;null==n&&(n=this._host);var t,i=null==n?void 0:n.getAtShadowElements();i&&i.length>0&&i.forEach((function(n){if(n.$oid==e.$oid)return!!t;t=n}))},n.prototype.getNextSibling=function(){var e=this,n=this.parent;null==n&&(n=this._host);var t,i=null==n?void 0:n.getAtShadowElements();i&&i.length>0&&i.forEach((function(n){if(t)return n;n.$oid==e.$oid&&(t=!0)}))},n.prototype.prepareTemplate=function(){var e=this.getTemplateMeta();e&&this.setTemplatesInfo(e),this._$disposers=[]},n.prototype.isEffective_=function(){return!1},n.prototype.clearChildren=function(){if(null!=this._firstInsertion){for(var e=this._firstInsertion,n=this._lastInsertion;e;){var t=e==n,i=e.nextSibling;if(e.detachAtClientOnly(),e=i,t)break}this._firstInsertion=void 0,this._lastInsertion=void 0}for(var r;r=this.firstChild;)r.detachAtClientOnly()},n.prototype.bind=function(e,n){zk.Widget._bind0(this);for(var t=this.firstChild;t;t=t.nextSibling)t.bind(e,n);return this},n.prototype.unbind=function(e,n){zk.Widget._unbind0(this);for(var t=this.firstChild;t;t=t.nextSibling)t.unbind(e,n);return this},n.prototype.detach=function(){e.prototype.detach.call(this),this.unbind()},n.prototype.rerenderOnDebounce=function(){var e;this._dirtyBinding&&(null===(e=this.getShadowHostIfAny())||void 0===e?void 0:e.desktop)&&this.doBindingReady()},n.prototype.rerender=function(e){return this.getShadowHostIfAny()&&(this.clearChildren(),this._afterComposed&&(this._afterComposed=!1,this.afterCompose_())),this},n.prototype.afterCompose_=function(){if(!this._afterComposed){if(this._beforeAfterComposeCallbacks)for(var e=void 0;e=this._beforeAfterComposeCallbacks.shift();)e();this._afterComposed=!0;var n=this.getShadowHostIfAny();if(null==n)throw new Error("Host cannot be null ["+this+"]");if(null==this._firstInsertion&&this.isEffective_()){var i=t.getCurrentInfo_();try{t.setCurrentInfo_(this),this.compose_(n)}finally{t.setCurrentInfo_(i)}}}},n.prototype.doBindingReady=function(){this._bindingReady=!0,this._dirtyBinding&&(this._dirtyBinding=!1,this.getShadowHostIfAny()&&this.rerender())},n.prototype.compose_=function(e){},n.prototype.asShadow_=function(e){return e},n.prototype.beforeChildAdded_=function(n,i){if(!(n instanceof t))throw new Error("Unsupported child for shadow element: "+String(n));if(null!=i&&!(i instanceof t))throw new Error("Unsupported insertBefore for shadow element: "+String(i));var r=this.asShadow_(n),o=this.asShadow_(i),a=this.asShadow_(this.lastChild);if(null!=a)if(null==i)null!=a._nextInsertion?(r._previousInsertion=a._nextInsertion,r._nextInsertion==a._nextInsertion&&(r._nextInsertion=void 0)):(a._nextInsertion=n,r._previousInsertion=a);else{var s=r.getPreviousInsertion(),l=r.getNextInsertion();t.setPrevInsertion_(l,s),s=o.getPreviousInsertion(),t.setPrevInsertion_(o,r),t.setPrevInsertion_(r,s)}else if(null!=this._lastInsertion){if(null!=i)throw new Error("Some logic wrong here.");this._lastInsertion instanceof t?(t.setPrevInsertion_(r,this._lastInsertion),r._nextInsertion==this.asShadow_(this._lastInsertion)._nextInsertion&&(r._nextInsertion=void 0)):r._previousInsertion=this._lastInsertion}return e.prototype.beforeChildAdded_.call(this,n,i)},n.prototype.toString=function(){var e=this.className.split(".")[1];if(null==this._host)return null!=this.parent?String(this.parent)+" -> <"+e+"@"+this.getChildIndex()+">":"<"+e+">";var n=this._host;return"<"+e+"@"+n.getShadowRoots().indexOf(this)+" ("+String(n)+")>"},n.getCurrentInfo_=function(){for(var e=Zone.current;e;){if(e.ShadowCurrentInfo)return e.ShadowCurrentInfo;e=e.parent}},n.setCurrentInfo_=function(e){if(e)Zone.current.ShadowCurrentInfo=e;else for(var n=Zone.current;n;){if(n.ShadowCurrentInfo){delete n.ShadowCurrentInfo;break}n=n.parent}},n.getDistributedIndexInfo_=function(){return Zone.current.get("DistributedIndexInfo")},n.getIndex=function(e,n,i){if(null==n||null==n.parent)return-1;if(n instanceof t)return-1;var r=i.get(n);if(null!=r)return r;for(var o=0,a=-1,s=n.parent.firstChild;s;o++,s=s.nextSibling)i.set(s,o),s==n&&(a=o);return a},n.isAncestor_=function(e,n){return null!=n&&(e==n||this.isAncestor_(e,n.parent))},n.setPrevInsertion_=function(e,n){e!=n&&(e instanceof t&&(e.asShadow_(e)._previousInsertion=n),n instanceof t&&(n.asShadow_(n)._nextInsertion=e))},t=r([zk.WrapClass("clientbind.ShadowInfo")],n)}(clientbind.Widget);n.ShadowInfo=o;var a=function(){function e(e,n,t){this._low=0,this._high=0,this._mid=0,this._midChild=0,this._queryIndex=0,this._subTree=e,this._low=0,this._high=n-1,this._midChild=this.getMiddleIndex(this._low,this._high),this._mid=this._midChild,this._queryIndex=t}return e.prototype.getMiddleIndex=function(e,n){return e>n?-1:e+n>>>1},e.prototype.hasNext=function(){return this._low<=this._high&&this._mid>=0},e.prototype.next=function(){return this._subTree.asShadow_(this._subTree.getChildAt(this._mid))},e.prototype.checkIndex=function(){var e=this.getMiddleIndex(this._low,this._high);this._mid==e?this._mid=-1:this._midChild=this._mid=e},e.prototype.adjustCursor=function(e){var n=e;n<0?this._mid<=this._low?(this._low=this._midChild+1,this.checkIndex()):this._mid--:n>-1&&(this._low==this._mid&&this._mid==this._high?this._mid=-1:(n<this._queryIndex?this._low=this._mid+1:this._high=this._mid-1,this.checkIndex()))},e}();n.BinarySearchIterator=a,clientbind.ShadowInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.zuti||(window.clientbind.zuti={}),window.clientbind.zuti.ShadowInfo||(window.clientbind.zuti.ShadowInfo={}),window.clientbind.zuti.ShadowInfo._={ShadowInfo:o,BinarySearchIterator:a}},2935:function(e,n,t){var i=t(1319).Z,r=t(655).gn;Object.defineProperty(n,"__esModule",{value:!0}),n.WhenInfo=void 0;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.beforeParentChanged_=function(n){if(n&&!(n instanceof clientbind.ChooseInfo)){var t="Unsupported parent for <when>: "+n.className;throw zk.error(t),t}e.prototype.beforeParentChanged_.call(this,n)},n.prototype.rerender=function(e){return this.parent.evaluateShadows(),this},r([zk.WrapClass("clientbind.WhenInfo")],n)}(clientbind.IfInfo);n.WhenInfo=o,clientbind.WhenInfo=o,window.clientbind||(window.clientbind={}),window.clientbind.zuti||(window.clientbind.zuti={}),window.clientbind.zuti.WhenInfo||(window.clientbind.zuti.WhenInfo={}),window.clientbind.zuti.WhenInfo._={WhenInfo:o}},655:function(e,n,t){function i(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(t[i[r]]=e[i[r]])}return t}function r(e,n,t,i){var r,o=arguments.length,a=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(n,t,a):r(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a}function o(e,n,t){if(t||2===arguments.length)for(var i,r=0,o=n.length;r<o;r++)!i&&r in n||(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}t.d(n,{_T:function(){return i},ev:function(){return o},gn:function(){return r}}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},8721:function(e,n,t){!function(e){const n=e.performance;function t(e){n&&n.mark&&n.mark(e)}function i(e,t){n&&n.measure&&n.measure(e,t)}t("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function o(e){return r+e}const a=!0===e[o("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class s{constructor(e,n){this._parent=e,this._name=n?n.name||"unnamed":"<root>",this._properties=n&&n.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,n)}static assertZonePatched(){if(e.Promise!==C.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=s.current;for(;e.parent;)e=e.parent;return e}static get current(){return L.zone}static get currentTask(){return D}static __load_patch(n,r,o=!1){if(C.hasOwnProperty(n)){if(!o&&a)throw Error("Already loaded patch: "+n)}else if(!e["__Zone_disable_"+n]){const o="Zone:"+n;t(o),C[n]=r(e,s,P),i(o,o)}}get parent(){return this._parent}get name(){return this._name}get(e){const n=this.getZoneWith(e);if(n)return n._properties[e]}getZoneWith(e){let n=this;for(;n;){if(n._properties.hasOwnProperty(e))return n;n=n._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,n){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const t=this._zoneDelegate.intercept(this,e,n),i=this;return function(){return i.runGuarded(t,this,arguments,n)}}run(e,n,t,i){L={parent:L,zone:this};try{return this._zoneDelegate.invoke(this,e,n,t,i)}finally{L=L.parent}}runGuarded(e,n=null,t,i){L={parent:L,zone:this};try{try{return this._zoneDelegate.invoke(this,e,n,t,i)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{L=L.parent}}runTask(e,n,t){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||w).name+"; Execution: "+this.name+")");if(e.state===y&&(e.type===A||e.type===x))return;const i=e.state!=O;i&&e._transitionTo(O,E),e.runCount++;const r=D;D=e,L={parent:L,zone:this};try{e.type==x&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,n,t)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==y&&e.state!==S&&(e.type==A||e.data&&e.data.isPeriodic?i&&e._transitionTo(E,O):(e.runCount=0,this._updateTaskCount(e,-1),i&&e._transitionTo(y,O,y))),L=L.parent,D=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let n=this;for(;n;){if(n===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);n=n.parent}}e._transitionTo(k,y);const n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(S,k,y),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(E,k),e}scheduleMicroTask(e,n,t,i){return this.scheduleTask(new u(I,e,n,t,i,void 0))}scheduleMacroTask(e,n,t,i,r){return this.scheduleTask(new u(x,e,n,t,i,r))}scheduleEventTask(e,n,t,i,r){return this.scheduleTask(new u(A,e,n,t,i,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||w).name+"; Execution: "+this.name+")");e._transitionTo(T,E,O);try{this._zoneDelegate.cancelTask(this,e)}catch(n){throw e._transitionTo(S,T),this._zoneDelegate.handleError(this,n),n}return this._updateTaskCount(e,-1),e._transitionTo(y,T),e.runCount=0,e}_updateTaskCount(e,n){const t=e._zoneDelegates;-1==n&&(e._zoneDelegates=null);for(let i=0;i<t.length;i++)t[i]._updateTaskCount(e.type,n)}}s.__symbol__=o;const l={name:"",onHasTask:(e,n,t,i)=>e.hasTask(t,i),onScheduleTask:(e,n,t,i)=>e.scheduleTask(t,i),onInvokeTask:(e,n,t,i,r,o)=>e.invokeTask(t,i,r,o),onCancelTask:(e,n,t,i)=>e.cancelTask(t,i)};class c{constructor(e,n,t){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=n,this._forkZS=t&&(t&&t.onFork?t:n._forkZS),this._forkDlgt=t&&(t.onFork?n:n._forkDlgt),this._forkCurrZone=t&&(t.onFork?this.zone:n._forkCurrZone),this._interceptZS=t&&(t.onIntercept?t:n._interceptZS),this._interceptDlgt=t&&(t.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=t&&(t.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=t&&(t.onInvoke?t:n._invokeZS),this._invokeDlgt=t&&(t.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=t&&(t.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=t&&(t.onHandleError?t:n._handleErrorZS),this._handleErrorDlgt=t&&(t.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=t&&(t.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=t&&(t.onScheduleTask?t:n._scheduleTaskZS),this._scheduleTaskDlgt=t&&(t.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=t&&(t.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=t&&(t.onInvokeTask?t:n._invokeTaskZS),this._invokeTaskDlgt=t&&(t.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=t&&(t.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=t&&(t.onCancelTask?t:n._cancelTaskZS),this._cancelTaskDlgt=t&&(t.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=t&&(t.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const i=t&&t.onHasTask,r=n&&n._hasTaskZS;(i||r)&&(this._hasTaskZS=i?t:l,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,t.onScheduleTask||(this._scheduleTaskZS=l,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),t.onInvokeTask||(this._invokeTaskZS=l,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),t.onCancelTask||(this._cancelTaskZS=l,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}fork(e,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,n):new s(e,n)}intercept(e,n,t){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,n,t):n}invoke(e,n,t,i,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,n,t,i,r):n.apply(t,i)}handleError(e,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,n)}scheduleTask(e,n){let t=n;if(this._scheduleTaskZS)this._hasTaskZS&&t._zoneDelegates.push(this._hasTaskDlgtOwner),t=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,n),t||(t=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=I)throw new Error("Task is missing scheduleFn.");m(n)}return t}invokeTask(e,n,t,i){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,n,t,i):n.callback.apply(t,i)}cancelTask(e,n){let t;if(this._cancelTaskZS)t=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");t=n.cancelFn(n)}return t}hasTask(e,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,n)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,n){const t=this._taskCounts,i=t[e],r=t[e]=i+n;if(r<0)throw new Error("More tasks executed then were scheduled.");if(0==i||0==r){const n={microTask:t.microTask>0,macroTask:t.macroTask>0,eventTask:t.eventTask>0,change:e};this.hasTask(this.zone,n)}}}class u{constructor(n,t,i,r,o,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=t,this.data=r,this.scheduleFn=o,this.cancelFn=a,!i)throw new Error("callback is not defined");this.callback=i;const s=this;n===A&&r&&r.useG?this.invoke=u.invokeTask:this.invoke=function(){return u.invokeTask.call(e,s,this,arguments)}}static invokeTask(e,n,t){e||(e=this),M++;try{return e.runCount++,e.zone.runTask(e,n,t)}finally{1==M&&b(),M--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(y,k)}_transitionTo(e,n,t){if(this._state!==n&&this._state!==t)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${n}'${t?" or '"+t+"'":""}, was '${this._state}'.`);this._state=e,e==y&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const d=o("setTimeout"),_=o("Promise"),p=o("then");let h,f=[],g=!1;function v(n){if(h||e[_]&&(h=e[_].resolve(0)),h){let e=h[p];e||(e=h.then),e.call(h,n)}else e[d](n,0)}function m(e){0===M&&0===f.length&&v(b),e&&f.push(e)}function b(){if(!g){for(g=!0;f.length;){const e=f;f=[];for(let n=0;n<e.length;n++){const t=e[n];try{t.zone.runTask(t,null,null)}catch(e){P.onUnhandledError(e)}}}P.microtaskDrainDone(),g=!1}}const w={name:"NO ZONE"},y="notScheduled",k="scheduling",E="scheduled",O="running",T="canceling",S="unknown",I="microTask",x="macroTask",A="eventTask",C={},P={symbol:o,currentZoneFrame:()=>L,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:m,showUncaughtError:()=>!s[o("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R,nativeScheduleMicroTask:v};let L={parent:null,zone:new s(null,null)},D=null,M=0;function R(){}i("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||t.g);const i=Object.getOwnPropertyDescriptor,r=Object.defineProperty,o=Object.getPrototypeOf,a=Object.create,s=Array.prototype.slice,l="addEventListener",c="removeEventListener",u=Zone.__symbol__(l),d=Zone.__symbol__(c),_="true",p="false",h=Zone.__symbol__("");function f(e,n){return Zone.current.wrap(e,n)}function g(e,n,t,i,r){return Zone.current.scheduleMacroTask(e,n,t,i,r)}const v=Zone.__symbol__,m="undefined"!=typeof window,b=m?window:void 0,w=m&&b||"object"==typeof self&&self||t.g,y="removeAttribute";function k(e,n){for(let t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=f(e[t],n+"_"+t));return e}function E(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const O="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,T=!("nw"in w)&&void 0!==w.process&&"[object process]"==={}.toString.call(w.process),S=!T&&!O&&!(!m||!b.HTMLElement),I=void 0!==w.process&&"[object process]"==={}.toString.call(w.process)&&!O&&!(!m||!b.HTMLElement),x={},A=function(e){if(!(e=e||w.event))return;let n=x[e.type];n||(n=x[e.type]=v("ON_PROPERTY"+e.type));const t=this||e.target||w,i=t[n];let r;if(S&&t===b&&"error"===e.type){const n=e;r=i&&i.call(this,n.message,n.filename,n.lineno,n.colno,n.error),!0===r&&e.preventDefault()}else r=i&&i.apply(this,arguments),null==r||r||e.preventDefault();return r};function C(e,n,t){let o=i(e,n);if(!o&&t&&i(t,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const a=v("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete o.writable,delete o.value;const s=o.get,l=o.set,c=n.slice(2);let u=x[c];u||(u=x[c]=v("ON_PROPERTY"+c)),o.set=function(n){let t=this;t||e!==w||(t=w),t&&("function"==typeof t[u]&&t.removeEventListener(c,A),l&&l.call(t,null),t[u]=n,"function"==typeof n&&t.addEventListener(c,A,!1))},o.get=function(){let t=this;if(t||e!==w||(t=w),!t)return null;const i=t[u];if(i)return i;if(s){let e=s.call(this);if(e)return o.set.call(this,e),"function"==typeof t[y]&&t.removeAttribute(n),e}return null},r(e,n,o),e[a]=!0}function P(e,n,t){if(n)for(let i=0;i<n.length;i++)C(e,"on"+n[i],t);else{const n=[];for(const t in e)"on"==t.slice(0,2)&&n.push(t);for(let i=0;i<n.length;i++)C(e,n[i],t)}}const L=v("originalInstance");function D(e){const n=w[e];if(!n)return;w[v(e)]=n,w[e]=function(){const t=k(arguments,e);switch(t.length){case 0:this[L]=new n;break;case 1:this[L]=new n(t[0]);break;case 2:this[L]=new n(t[0],t[1]);break;case 3:this[L]=new n(t[0],t[1],t[2]);break;case 4:this[L]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},N(w[e],n);const t=new n((function(){}));let i;for(i in t)"XMLHttpRequest"===e&&"responseBlob"===i||function(n){"function"==typeof t[n]?w[e].prototype[n]=function(){return this[L][n].apply(this[L],arguments)}:r(w[e].prototype,n,{set:function(t){"function"==typeof t?(this[L][n]=f(t,e+"."+n),N(this[L][n],t)):this[L][n]=t},get:function(){return this[L][n]}})}(i);for(i in n)"prototype"!==i&&n.hasOwnProperty(i)&&(w[e][i]=n[i])}function M(e,n,t){let r=e;for(;r&&!r.hasOwnProperty(n);)r=o(r);!r&&e[n]&&(r=e);const a=v(n);let s=null;if(r&&(!(s=r[a])||!r.hasOwnProperty(a))&&(s=r[a]=r[n],E(r&&i(r,n)))){const e=t(s,a,n);r[n]=function(){return e(this,arguments)},N(r[n],s)}return s}function R(e,n,t){let i=null;function r(e){const n=e.data;return n.args[n.cbIdx]=function(){e.invoke.apply(this,arguments)},i.apply(n.target,n.args),e}i=M(e,n,(e=>function(n,i){const o=t(n,i);return o.cbIdx>=0&&"function"==typeof i[o.cbIdx]?g(o.name,i[o.cbIdx],o,r):e.apply(n,i)}))}function N(e,n){e[v("OriginalDelegate")]=n}let B=!1,$=!1;function j(){try{const e=b.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function z(){if(B)return $;B=!0;try{const e=b.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||($=!0)}catch(e){}return $}Zone.__load_patch("ZoneAwarePromise",((e,n,t)=>{const i=Object.getOwnPropertyDescriptor,r=Object.defineProperty,o=t.symbol,a=[],s=!0===e[o("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],l=o("Promise"),c=o("then"),u="__creationTrace__";t.onUnhandledError=e=>{if(t.showUncaughtError()){const n=e&&e.rejection;n?console.error("Unhandled Promise rejection:",n instanceof Error?n.message:n,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",n,n instanceof Error?n.stack:void 0):console.error(e)}},t.microtaskDrainDone=()=>{for(;a.length;){const e=a.shift();try{e.zone.runGuarded((()=>{if(e.throwOriginal)throw e.rejection;throw e}))}catch(e){_(e)}}};const d=o("unhandledPromiseRejectionHandler");function _(e){t.onUnhandledError(e);try{const t=n[d];"function"==typeof t&&t.call(this,e)}catch(e){}}function p(e){return e&&e.then}function h(e){return e}function f(e){return B.reject(e)}const g=o("state"),v=o("value"),m=o("finally"),b=o("parentPromiseValue"),w=o("parentPromiseState"),y="Promise.then",k=null,E=!0,O=!1,T=0;function S(e,n){return t=>{try{C(e,n,t)}catch(n){C(e,!1,n)}}}const I=function(){let e=!1;return function(n){return function(){e||(e=!0,n.apply(null,arguments))}}},x="Promise resolved with itself",A=o("currentTaskTrace");function C(e,i,o){const l=I();if(e===o)throw new TypeError(x);if(e[g]===k){let d=null;try{"object"!=typeof o&&"function"!=typeof o||(d=o&&o.then)}catch(n){return l((()=>{C(e,!1,n)}))(),e}if(i!==O&&o instanceof B&&o.hasOwnProperty(g)&&o.hasOwnProperty(v)&&o[g]!==k)L(o),C(e,o[g],o[v]);else if(i!==O&&"function"==typeof d)try{d.call(o,l(S(e,i)),l(S(e,!1)))}catch(n){l((()=>{C(e,!1,n)}))()}else{e[g]=i;const l=e[v];if(e[v]=o,e[m]===m&&i===E&&(e[g]=e[w],e[v]=e[b]),i===O&&o instanceof Error){const e=n.currentTask&&n.currentTask.data&&n.currentTask.data[u];e&&r(o,A,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let n=0;n<l.length;)D(e,l[n++],l[n++],l[n++],l[n++]);if(0==l.length&&i==O){e[g]=T;let i=o;try{throw new Error("Uncaught (in promise): "+((c=o)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(o&&o.stack?"\n"+o.stack:""))}catch(e){i=e}s&&(i.throwOriginal=!0),i.rejection=o,i.promise=e,i.zone=n.current,i.task=n.currentTask,a.push(i),t.scheduleMicroTask()}}}var c;return e}const P=o("rejectionHandledHandler");function L(e){if(e[g]===T){try{const t=n[P];t&&"function"==typeof t&&t.call(this,{rejection:e[v],promise:e})}catch(e){}e[g]=O;for(let n=0;n<a.length;n++)e===a[n].promise&&a.splice(n,1)}}function D(e,n,t,i,r){L(e);const o=e[g],a=o?"function"==typeof i?i:h:"function"==typeof r?r:f;n.scheduleMicroTask(y,(()=>{try{const i=e[v],r=!!t&&m===t[m];r&&(t[b]=i,t[w]=o);const s=n.run(a,void 0,r&&a!==f&&a!==h?[]:[i]);C(t,!0,s)}catch(e){C(t,!1,e)}}),t)}const R=function(){},N=e.AggregateError;class B{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return C(new this(null),E,e)}static reject(e){return C(new this(null),O,e)}static any(e){if(!e||"function"!=typeof e[Symbol.iterator])return Promise.reject(new N([],"All promises were rejected"));const n=[];let t=0;try{for(let i of e)t++,n.push(B.resolve(i))}catch(e){return Promise.reject(new N([],"All promises were rejected"))}if(0===t)return Promise.reject(new N([],"All promises were rejected"));let i=!1;const r=[];return new B(((e,o)=>{for(let a=0;a<n.length;a++)n[a].then((n=>{i||(i=!0,e(n))}),(e=>{r.push(e),t--,0===t&&(i=!0,o(new N(r,"All promises were rejected")))}))}))}static race(e){let n,t,i=new this(((e,i)=>{n=e,t=i}));function r(e){n(e)}function o(e){t(e)}for(let n of e)p(n)||(n=this.resolve(n)),n.then(r,o);return i}static all(e){return B.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof B?this:B).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,n){let t,i,r=new this(((e,n)=>{t=e,i=n})),o=2,a=0;const s=[];for(let r of e){p(r)||(r=this.resolve(r));const e=a;try{r.then((i=>{s[e]=n?n.thenCallback(i):i,o--,0===o&&t(s)}),(r=>{n?(s[e]=n.errorCallback(r),o--,0===o&&t(s)):i(r)}))}catch(e){i(e)}o++,a++}return o-=2,0===o&&t(s),r}constructor(e){const n=this;if(!(n instanceof B))throw new Error("Must be an instanceof Promise.");n[g]=k,n[v]=[];try{const t=I();e&&e(t(S(n,E)),t(S(n,O)))}catch(e){C(n,!1,e)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return B}then(e,t){var i;let r=null===(i=this.constructor)||void 0===i?void 0:i[Symbol.species];r&&"function"==typeof r||(r=this.constructor||B);const o=new r(R),a=n.current;return this[g]==k?this[v].push(a,o,e,t):D(this,a,o,e,t),o}catch(e){return this.then(null,e)}finally(e){var t;let i=null===(t=this.constructor)||void 0===t?void 0:t[Symbol.species];i&&"function"==typeof i||(i=B);const r=new i(R);r[m]=m;const o=n.current;return this[g]==k?this[v].push(o,r,e,e):D(this,o,r,e,e),r}}B.resolve=B.resolve,B.reject=B.reject,B.race=B.race,B.all=B.all;const $=e[l]=e.Promise;e.Promise=B;const j=o("thenPatched");function z(e){const n=e.prototype,t=i(n,"then");if(t&&(!1===t.writable||!t.configurable))return;const r=n.then;n[c]=r,e.prototype.then=function(e,n){return new B(((e,n)=>{r.call(this,e,n)})).then(e,n)},e[j]=!0}return t.patchThen=z,$&&(z($),M(e,"fetch",(e=>{return n=e,function(e,t){let i=n.apply(e,t);if(i instanceof B)return i;let r=i.constructor;return r[j]||z(r),i};var n}))),Promise[n.__symbol__("uncaughtPromiseErrors")]=a,B})),Zone.__load_patch("toString",(e=>{const n=Function.prototype.toString,t=v("OriginalDelegate"),i=v("Promise"),r=v("Error"),o=function(){if("function"==typeof this){const o=this[t];if(o)return"function"==typeof o?n.call(o):Object.prototype.toString.call(o);if(this===Promise){const t=e[i];if(t)return n.call(t)}if(this===Error){const t=e[r];if(t)return n.call(t)}}return n.call(this)};o[t]=n,Function.prototype.toString=o;const a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}}));let U=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){U=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){U=!1}const K={useG:!0},W={},V={},q=new RegExp("^"+h+"(\\w+)(true|false)$"),F=v("propagationStopped");function Z(e,n){const t=(n?n(e):e)+p,i=(n?n(e):e)+_,r=h+t,o=h+i;W[e]={},W[e][p]=r,W[e][_]=o}function H(e,n,t,i){const r=i&&i.add||l,a=i&&i.rm||c,s=i&&i.listeners||"eventListeners",u=i&&i.rmAll||"removeAllListeners",d=v(r),f="."+r+":",g="prependListener",m="."+g+":",b=function(e,n,t){if(e.isRemoved)return;const i=e.callback;let r;"object"==typeof i&&i.handleEvent&&(e.callback=e=>i.handleEvent(e),e.originalDelegate=i);try{e.invoke(e,n,[t])}catch(e){r=e}const o=e.options;if(o&&"object"==typeof o&&o.once){const i=e.originalDelegate?e.originalDelegate:e.callback;n[a].call(n,t.type,i,o)}return r};function w(t,i,r){if(!(i=i||e.event))return;const o=t||i.target||e,a=o[W[i.type][r?_:p]];if(a){const e=[];if(1===a.length){const n=b(a[0],o,i);n&&e.push(n)}else{const n=a.slice();for(let t=0;t<n.length&&(!i||!0!==i[F]);t++){const r=b(n[t],o,i);r&&e.push(r)}}if(1===e.length)throw e[0];for(let t=0;t<e.length;t++){const i=e[t];n.nativeScheduleMicroTask((()=>{throw i}))}}}const y=function(e){return w(this,e,!1)},k=function(e){return w(this,e,!0)};function E(n,t){if(!n)return!1;let i=!0;t&&void 0!==t.useG&&(i=t.useG);const l=t&&t.vh;let c=!0;t&&void 0!==t.chkDup&&(c=t.chkDup);let b=!1;t&&void 0!==t.rt&&(b=t.rt);let w=n;for(;w&&!w.hasOwnProperty(r);)w=o(w);if(!w&&n[r]&&(w=n),!w)return!1;if(w[d])return!1;const E=t&&t.eventNameToString,O={},S=w[d]=w[r],I=w[v(a)]=w[a],x=w[v(s)]=w[s],A=w[v(u)]=w[u];let C;t&&t.prepend&&(C=w[v(t.prepend)]=w[t.prepend]);const P=i?function(e){if(!O.isExisting)return S.call(O.target,O.eventName,O.capture?k:y,O.options)}:function(e){return S.call(O.target,O.eventName,e.invoke,O.options)},L=i?function(e){if(!e.isRemoved){const n=W[e.eventName];let t;n&&(t=n[e.capture?_:p]);const i=t&&e.target[t];if(i)for(let n=0;n<i.length;n++)if(i[n]===e){i.splice(n,1),e.isRemoved=!0,0===i.length&&(e.allRemoved=!0,e.target[t]=null);break}}if(e.allRemoved)return I.call(e.target,e.eventName,e.capture?k:y,e.options)}:function(e){return I.call(e.target,e.eventName,e.invoke,e.options)},D=t&&t.diff?t.diff:function(e,n){const t=typeof n;return"function"===t&&e.callback===n||"object"===t&&e.originalDelegate===n},M=Zone[v("UNPATCHED_EVENTS")],R=e[v("PASSIVE_EVENTS")],B=function(n,r,o,a,s=!1,u=!1){return function(){const d=this||e;let h=arguments[0];t&&t.transferEventName&&(h=t.transferEventName(h));let f=arguments[1];if(!f)return n.apply(this,arguments);if(T&&"uncaughtException"===h)return n.apply(this,arguments);let g=!1;if("function"!=typeof f){if(!f.handleEvent)return n.apply(this,arguments);g=!0}if(l&&!l(n,f,d,arguments))return;const v=U&&!!R&&-1!==R.indexOf(h),m=function(e,n){return!U&&"object"==typeof e&&e?!!e.capture:U&&n?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}(arguments[2],v);if(M)for(let e=0;e<M.length;e++)if(h===M[e])return v?n.call(d,h,f,m):n.apply(this,arguments);const b=!!m&&("boolean"==typeof m||m.capture),w=!(!m||"object"!=typeof m)&&m.once,y=Zone.current;let k=W[h];k||(Z(h,E),k=W[h]);const S=k[b?_:p];let I,x=d[S],A=!1;if(x){if(A=!0,c)for(let e=0;e<x.length;e++)if(D(x[e],f))return}else x=d[S]=[];const C=d.constructor.name,P=V[C];P&&(I=P[h]),I||(I=C+r+(E?E(h):h)),O.options=m,w&&(O.options.once=!1),O.target=d,O.capture=b,O.eventName=h,O.isExisting=A;const L=i?K:void 0;L&&(L.taskData=O);const N=y.scheduleEventTask(I,f,L,o,a);return O.target=null,L&&(L.taskData=null),w&&(m.once=!0),(U||"boolean"!=typeof N.options)&&(N.options=m),N.target=d,N.capture=b,N.eventName=h,g&&(N.originalDelegate=f),u?x.unshift(N):x.push(N),s?d:void 0}};return w[r]=B(S,f,P,L,b),C&&(w[g]=B(C,m,(function(e){return C.call(O.target,O.eventName,e.invoke,O.options)}),L,b,!0)),w[a]=function(){const n=this||e;let i=arguments[0];t&&t.transferEventName&&(i=t.transferEventName(i));const r=arguments[2],o=!!r&&("boolean"==typeof r||r.capture),a=arguments[1];if(!a)return I.apply(this,arguments);if(l&&!l(I,a,n,arguments))return;const s=W[i];let c;s&&(c=s[o?_:p]);const u=c&&n[c];if(u)for(let e=0;e<u.length;e++){const t=u[e];if(D(t,a))return u.splice(e,1),t.isRemoved=!0,0===u.length&&(t.allRemoved=!0,n[c]=null,"string"==typeof i)&&(n[h+"ON_PROPERTY"+i]=null),t.zone.cancelTask(t),b?n:void 0}return I.apply(this,arguments)},w[s]=function(){const n=this||e;let i=arguments[0];t&&t.transferEventName&&(i=t.transferEventName(i));const r=[],o=G(n,E?E(i):i);for(let e=0;e<o.length;e++){const n=o[e];let t=n.originalDelegate?n.originalDelegate:n.callback;r.push(t)}return r},w[u]=function(){const n=this||e;let i=arguments[0];if(i){t&&t.transferEventName&&(i=t.transferEventName(i));const e=W[i];if(e){const t=e[p],r=e[_],o=n[t],s=n[r];if(o){const e=o.slice();for(let n=0;n<e.length;n++){const t=e[n];let r=t.originalDelegate?t.originalDelegate:t.callback;this[a].call(this,i,r,t.options)}}if(s){const e=s.slice();for(let n=0;n<e.length;n++){const t=e[n];let r=t.originalDelegate?t.originalDelegate:t.callback;this[a].call(this,i,r,t.options)}}}}else{const e=Object.keys(n);for(let n=0;n<e.length;n++){const t=e[n],i=q.exec(t);let r=i&&i[1];r&&"removeListener"!==r&&this[u].call(this,r)}this[u].call(this,"removeListener")}if(b)return this},N(w[r],S),N(w[a],I),A&&N(w[u],A),x&&N(w[s],x),!0}let O=[];for(let e=0;e<t.length;e++)O[e]=E(t[e],i);return O}function G(e,n){if(!n){const t=[];for(let i in e){const r=q.exec(i);let o=r&&r[1];if(o&&(!n||o===n)){const n=e[i];if(n)for(let e=0;e<n.length;e++)t.push(n[e])}}return t}let t=W[n];t||(Z(n),t=W[n]);const i=e[t[p]],r=e[t[_]];return i?r?i.concat(r):i.slice():r?r.slice():[]}function Y(e,n){const t=e.Event;t&&t.prototype&&n.patchMethod(t.prototype,"stopImmediatePropagation",(e=>function(n,t){n[F]=!0,e&&e.apply(n,t)}))}function J(e,n,t,i,r){const o=Zone.__symbol__(i);if(n[o])return;const a=n[o]=n[i];n[i]=function(o,s,l){return s&&s.prototype&&r.forEach((function(n){const r=`${t}.${i}::`+n,o=s.prototype;try{if(o.hasOwnProperty(n)){const t=e.ObjectGetOwnPropertyDescriptor(o,n);t&&t.value?(t.value=e.wrapWithCurrentZone(t.value,r),e._redefineProperty(s.prototype,n,t)):o[n]&&(o[n]=e.wrapWithCurrentZone(o[n],r))}else o[n]&&(o[n]=e.wrapWithCurrentZone(o[n],r))}catch(e){}})),a.call(n,o,s,l)},e.attachOriginToPatched(n[i],a)}function X(e,n,t){if(!t||0===t.length)return n;const i=t.filter((n=>n.target===e));if(!i||0===i.length)return n;const r=i[0].ignoreProperties;return n.filter((e=>-1===r.indexOf(e)))}function Q(e,n,t,i){e&&P(e,X(e,n,t),i)}function ee(e){return Object.getOwnPropertyNames(e).filter((e=>e.startsWith("on")&&e.length>2)).map((e=>e.substring(2)))}function ne(e,n){if(T&&!I)return;if(Zone[e.symbol("patchEvents")])return;const t=n.__Zone_ignore_on_properties;let i=[];if(S){const e=window;i=i.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const n=j()?[{target:e,ignoreProperties:["error"]}]:[];Q(e,ee(e),t?t.concat(n):t,o(e))}i=i.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let e=0;e<i.length;e++){const r=n[i[e]];r&&r.prototype&&Q(r.prototype,ee(r.prototype),t)}}Zone.__load_patch("util",((e,n,t)=>{const o=ee(e);t.patchOnProperties=P,t.patchMethod=M,t.bindArguments=k,t.patchMacroTask=R;const u=n.__symbol__("BLACK_LISTED_EVENTS"),d=n.__symbol__("UNPATCHED_EVENTS");e[d]&&(e[u]=e[d]),e[u]&&(n[u]=n[d]=e[u]),t.patchEventPrototype=Y,t.patchEventTarget=H,t.isIEOrEdge=z,t.ObjectDefineProperty=r,t.ObjectGetOwnPropertyDescriptor=i,t.ObjectCreate=a,t.ArraySlice=s,t.patchClass=D,t.wrapWithCurrentZone=f,t.filterProperties=X,t.attachOriginToPatched=N,t._redefineProperty=Object.defineProperty,t.patchCallbacks=J,t.getGlobalObjects=()=>({globalSources:V,zoneSymbolEventNames:W,eventNames:o,isBrowser:S,isMix:I,isNode:T,TRUE_STR:_,FALSE_STR:p,ZONE_SYMBOL_PREFIX:h,ADD_EVENT_LISTENER_STR:l,REMOVE_EVENT_LISTENER_STR:c})}));const te=v("zoneTask");function ie(e,n,t,i){let r=null,o=null;t+=i;const a={};function s(n){const t=n.data;return t.args[0]=function(){return n.invoke.apply(this,arguments)},t.handleId=r.apply(e,t.args),n}function l(n){return o.call(e,n.data.handleId)}r=M(e,n+=i,(t=>function(r,o){if("function"==typeof o[0]){const e={isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?o[1]||0:void 0,args:o},t=o[0];o[0]=function(){try{return t.apply(this,arguments)}finally{e.isPeriodic||("number"==typeof e.handleId?delete a[e.handleId]:e.handleId&&(e.handleId[te]=null))}};const r=g(n,o[0],e,s,l);if(!r)return r;const c=r.data.handleId;return"number"==typeof c?a[c]=r:c&&(c[te]=r),c&&c.ref&&c.unref&&"function"==typeof c.ref&&"function"==typeof c.unref&&(r.ref=c.ref.bind(c),r.unref=c.unref.bind(c)),"number"==typeof c||c?c:r}return t.apply(e,o)})),o=M(e,t,(n=>function(t,i){const r=i[0];let o;"number"==typeof r?o=a[r]:(o=r&&r[te],o||(o=r)),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof r?delete a[r]:r&&(r[te]=null),o.zone.cancelTask(o)):n.apply(e,i)}))}function re(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:t,zoneSymbolEventNames:i,TRUE_STR:r,FALSE_STR:o,ZONE_SYMBOL_PREFIX:a}=n.getGlobalObjects();for(let e=0;e<t.length;e++){const n=t[e],s=a+(n+o),l=a+(n+r);i[n]={},i[n][o]=s,i[n][r]=l}const s=e.EventTarget;return s&&s.prototype?(n.patchEventTarget(e,n,[s&&s.prototype]),!0):void 0}Zone.__load_patch("legacy",(e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()})),Zone.__load_patch("queueMicrotask",((e,n,t)=>{t.patchMethod(e,"queueMicrotask",(e=>function(e,t){n.current.scheduleMicroTask("queueMicrotask",t[0])}))})),Zone.__load_patch("timers",(e=>{const n="set",t="clear";ie(e,n,t,"Timeout"),ie(e,n,t,"Interval"),ie(e,n,t,"Immediate")})),Zone.__load_patch("requestAnimationFrame",(e=>{ie(e,"request","cancel","AnimationFrame"),ie(e,"mozRequest","mozCancel","AnimationFrame"),ie(e,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",((e,n)=>{const t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++)M(e,t[i],((t,i,r)=>function(i,o){return n.current.run(t,e,o,r)}))})),Zone.__load_patch("EventTarget",((e,n,t)=>{!function(e,n){n.patchEventPrototype(e,n)}(e,t),re(e,t);const i=e.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(e,t,[i.prototype])})),Zone.__load_patch("MutationObserver",((e,n,t)=>{D("MutationObserver"),D("WebKitMutationObserver")})),Zone.__load_patch("IntersectionObserver",((e,n,t)=>{D("IntersectionObserver")})),Zone.__load_patch("FileReader",((e,n,t)=>{D("FileReader")})),Zone.__load_patch("on_property",((e,n,t)=>{ne(t,e)})),Zone.__load_patch("customElements",((e,n,t)=>{!function(e,n){const{isBrowser:t,isMix:i}=n.getGlobalObjects();(t||i)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,t)})),Zone.__load_patch("XHR",((e,n)=>{!function(e){const l=e.XMLHttpRequest;if(!l)return;const c=l.prototype;let _=c[u],p=c[d];if(!_){const n=e.XMLHttpRequestEventTarget;if(n){const e=n.prototype;_=e[u],p=e[d]}}const h="readystatechange",f="scheduled";function m(e){const i=e.data,a=i.target;a[o]=!1,a[s]=!1;const l=a[r];_||(_=a[u],p=a[d]),l&&p.call(a,h,l);const c=a[r]=()=>{if(a.readyState===a.DONE)if(!i.aborted&&a[o]&&e.state===f){const t=a[n.__symbol__("loadfalse")];if(0!==a.status&&t&&t.length>0){const r=e.invoke;e.invoke=function(){const t=a[n.__symbol__("loadfalse")];for(let n=0;n<t.length;n++)t[n]===e&&t.splice(n,1);i.aborted||e.state!==f||r.call(e)},t.push(e)}else e.invoke()}else i.aborted||!1!==a[o]||(a[s]=!0)};return _.call(a,h,c),a[t]||(a[t]=e),O.apply(a,i.args),a[o]=!0,e}function b(){}function w(e){const n=e.data;return n.aborted=!0,T.apply(n.target,n.args)}const y=M(c,"open",(()=>function(e,n){return e[i]=0==n[2],e[a]=n[1],y.apply(e,n)})),k=v("fetchTaskAborting"),E=v("fetchTaskScheduling"),O=M(c,"send",(()=>function(e,t){if(!0===n.current[E])return O.apply(e,t);if(e[i])return O.apply(e,t);{const n={target:e,url:e[a],isPeriodic:!1,args:t,aborted:!1},i=g("XMLHttpRequest.send",b,n,m,w);e&&!0===e[s]&&!n.aborted&&i.state===f&&i.invoke()}})),T=M(c,"abort",(()=>function(e,i){const r=e[t];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===n.current[k])return T.apply(e,i)}))}(e);const t=v("xhrTask"),i=v("xhrSync"),r=v("xhrListener"),o=v("xhrScheduled"),a=v("xhrURL"),s=v("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(e=>{e.navigator&&e.navigator.geolocation&&function(e,n){const t=e.constructor.name;for(let r=0;r<n.length;r++){const o=n[r],a=e[o];if(a){if(!E(i(e,o)))continue;e[o]=(e=>{const n=function(){return e.apply(this,k(arguments,t+"."+o))};return N(n,e),n})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",((e,n)=>{function t(n){return function(t){G(e,n).forEach((i=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(n,{promise:t.promise,reason:t.rejection});i.invoke(e)}}))}}e.PromiseRejectionEvent&&(n[v("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),n[v("rejectionHandledHandler")]=t("rejectionhandled"))}))}},__webpack_module_cache__={};function __webpack_require__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;var t=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__),t.exports}__webpack_require__.d=function(e,n){for(var t in n)__webpack_require__.o(n,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)};var __webpack_exports__={};!function(){__webpack_exports__.default={},window.SpelExpressionEvaluator=__webpack_require__(9692).SpelExpressionEvaluator;var e=__webpack_require__(4789);window.mobx=e,__webpack_require__(3310),__webpack_require__(1588),__webpack_require__(5033),__webpack_require__(1617),__webpack_require__(5363),__webpack_require__(1842),__webpack_require__(8655),__webpack_require__(1781),__webpack_require__(8187),__webpack_require__(3349),__webpack_require__(7539),__webpack_require__(9744),__webpack_require__(8982),__webpack_require__(1013),__webpack_require__(2436),__webpack_require__(2935),__webpack_require__(4572),__webpack_require__(5585),__webpack_require__(180),__webpack_require__(3854),__webpack_require__(2694),__webpack_require__(780),__webpack_require__(5917),__webpack_require__(2208),__webpack_require__(6127),__webpack_require__(7742),__webpack_require__(6029),__webpack_require__(9693),__webpack_require__(1511),__webpack_require__(5934),__webpack_require__(3014),__webpack_require__(1482),__webpack_require__(3855),__webpack_require__(3233),__webpack_require__(4840),__webpack_require__(6025),__webpack_require__(5314),__webpack_require__(193),__webpack_require__(6521),__webpack_require__(1449),__webpack_require__(4768),__webpack_require__(1631),__webpack_require__(4703),__webpack_require__(4756),__webpack_require__(1021),__webpack_require__(3844),__webpack_require__(1190),__webpack_require__(9193),__webpack_require__(6366),__webpack_require__(8938),__webpack_require__(4209),__webpack_require__(5297),__webpack_require__(6621),__webpack_require__(5251),__webpack_require__(6960),__webpack_require__(3825),__webpack_require__(8219),__webpack_require__(5576),__webpack_require__(5397),__webpack_require__(8246)}();var __webpack_export_target__=window,__webpack_exports_export__=__webpack_exports__.default;for(var i in __webpack_exports_export__)__webpack_export_target__[i]=__webpack_exports_export__[i];__webpack_exports_export__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})();
//# sourceMappingURL=index.js.map

}catch(error){console.error(error);}finally{zk.setLoaded(zk._p.n);}});zk.setLoaded('clientbind',1);