!function(){functiont(e){returnt="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},t(e)}functione(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){returnr};varr={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeofSymbol?Symbol:{},a=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";functionl(t,e,r){returnObject.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(N){l=function(t,e,r){returnt[e]=r}}functions(t,e,r,n){varo=e&&e.prototypeinstanceofy?e:y,c=Object.create(o.prototype),a=new_(n||[]);returni(c,"_invoke",{value:j(t,r,a)}),c}functionh(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}r.wrap=s;varp={};functiony(){}functionv(){}functiond(){}varm={};l(m,a,(function(){returnthis}));varg=Object.getPrototypeOf,b=g&&g(g(k([])));b&&b!==n&&o.call(b,a)&&(m=b);varw=d.prototype=y.prototype=Object.create(m);functionx(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){returnthis._invoke(e,t)}))}))}functionO(e,r){functionn(i,c,a,u){varf=h(e[i],e,c);if("throw"!==f.type){varl=f.arg,s=l.value;returns&&"object"==t(s)&&o.call(s,"__await")?r.resolve(s.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){returnn("throw",t,a,u)}))}u(f.arg)}varc;i(this,"_invoke",{value:function(t,e){functiono(){returnnewr((function(r,o){n(t,e,r,o)}))}returnc=c?c.then(o,o):o()}})}functionj(t,e,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnS()}for(r.method=o,r.arg=i;;){varc=r.delegate;if(c){vara=L(c,r);if(a){if(a===p)continue;returna}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";varu=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}functionL(t,e){varr=e.method,n=t.iterator[r];if(void0===n)returne.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=newTypeError("The iterator does not provide a '"+r+"' method")),p;varo=h(n,t.iterator,e.arg);if("throw"===o.type)returne.method="throw",e.arg=o.arg,e.delegate=null,p;vari=o.arg;returni?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void0),e.delegate=null,p):i:(e.method="throw",e.arg=newTypeError("iterator result is not an object"),e.delegate=null,p)}functionE(t){vare={tryLoc:t[0]};1int&&(e.catchLoc=t[1]),2int&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}functionP(t){vare=t.completion||{};e.type="normal",deletee.arg,t.completion=e}function_(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}functionk(t){if(t){vare=t[a];if(e)returne.call(t);if("function"==typeoft.next)returnt;if(!isNaN(t.length)){varr=-1,n=functione(){for(;++r<t.length;)if(o.call(t,r))returne.value=t[r],e.done=!1,e;returne.value=void0,e.done=!0,e};returnn.next=n}}return{next:S}}functionS(){return{value:void0,done:!0}}returnv.prototype=d,i(w,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:v,configurable:!0}),v.displayName=l(d,f,"GeneratorFunction"),r.isGeneratorFunction=function(t){vare="function"==typeoft&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,f,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(O.prototype),l(O.prototype,u,(function(){returnthis})),r.AsyncIterator=O,r.async=function(t,e,n,o,i){void0===i&&(i=Promise);varc=newO(s(t,e,n,o),i);returnr.isGeneratorFunction(e)?c:c.next().then((function(t){returnt.done?t.value:c.next()}))},x(w),l(w,f,"Generator"),l(w,a,(function(){returnthis})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){vare=Object(t),r=[];for(varnine)r.push(n);returnr.reverse(),functiont(){for(;r.length;){varn=r.pop();if(nine)returnt.value=n,t.done=!1,t}returnt.done=!0,t}},r.values=k,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void0,this.done=!1,this.delegate=null,this.method="next",this.arg=void0,this.tryEntries.forEach(P),!t)for(vareinthis)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void0)},stop:function(){this.done=!0;vart=this.tryEntries[0].completion;if("throw"===t.type)throwt.arg;returnthis.rval},dispatchException:function(t){if(this.done)throwt;vare=this;functionr(r,n){returnc.type="throw",c.arg=t,e.next=r,n&&(e.method="next",e.arg=void0),!!n}for(varn=this.tryEntries.length-1;n>=0;--n){vari=this.tryEntries[n],c=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){vara=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(a){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!u)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(t,e){for(varr=this.tryEntries.length-1;r>=0;--r){varn=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){vari=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);varc=i?i.completion:{};returnc.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(c)},complete:function(t,e){if("throw"===t.type)throwt.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.finallyLoc===t)returnthis.complete(r.completion,r.afterLoc),P(r),p}},catch:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.tryLoc===t){varn=r.completion;if("throw"===n.type){varo=n.arg;P(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(t,e,r){returnthis.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void0),p}},r}functionr(t,e,r,n,o,i,c){try{vara=t[i](c),u=a.value}catch(f){returnvoidr(f)}a.done?e(u):Promise.resolve(u).then(n,o)}functionn(t){returnfunction(){vare=this,n=arguments;returnnewPromise((function(o,i){varc=t.apply(e,n);functiona(t){r(c,o,i,a,u,"next",t)}functionu(t){r(c,o,i,a,u,"throw",t)}a(void0)}))}}functiono(){returno="undefined"!=typeofReflect&&Reflect.get?Reflect.get.bind():function(t,e,r){varn=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););returnt}(t,e);if(n){varo=Object.getOwnPropertyDescriptor(n,e);returno.get?o.get.call(arguments.length<3?t:r):o.value}},o.apply(this,arguments)}functioni(t,e){for(varr=0;r<e.length;r++){varn=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}functionc(t,e,r){returne&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}functiona(e){varr=function(e,r){if("object"!==t(e)||null===e)returne;varn=e[Symbol.toPrimitive];if(void0!==n){varo=n.call(e,r||"default");if("object"!==t(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}functionu(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionf(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}functionl(t,e){returnl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){returnt.__proto__=e,t},l(t,e)}functions(e){varr=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();returnfunction(){varn,o=p(e);if(r){vari=p(this).constructor;n=Reflect.construct(o,arguments,i)}elsen=o.apply(this,arguments);returnfunction(e,r){if(r&&("object"===t(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnh(e)}(this,n)}}functionh(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}functionp(t){returnp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){returnt.__proto__||Object.getPrototypeOf(t)},p(t)}System.register(["vue","@ibiz-template/vue-util","@ibiz-template/controller"],(function(t,r){"use strict";vari,l,y,v,d,m;return{setters:[function(t){i=t.defineComponent,l=t.getCurrentInstance},function(t){y=t.useViewController},function(t){v=t.Neuron,d=t.ViewNerve,m=t.ViewController}],execute:function(){varr=function(t){f(r,t);vare=s(r);functionr(){returnu(this,r),e.apply(this,arguments)}returnc(r)}(v),g=function(t){f(n,t);vare=s(n);functionn(){vart,r,o,i;u(this,n);for(varc=arguments.length,f=newArray(c),l=0;l<c;l++)f[l]=arguments[l];returnt=e.call.apply(e,[this].concat(f)),r=h(t),i=void0,(o=a(o="chart"))inr?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,t}returnc(n,[{key:"createNeuron",value:function(){returnnewr(this.bindAbility())}},{key:"inclusive",value:function(t){return"chart"===t||o(p(n.prototype),"inclusive",this).call(this,t)}},{key:"connect",value:function(t,e){varr=this;o(p(n.prototype),"connect",this).call(this,t,e),"chart"===t&&(this.chart=e,this.chart.evt.on("destroyed",(function(){r.chart=void0})))}},{key:"destroy",value:function(){o(p(n.prototype),"destroy",this).call(this),this.chart=void0}}]),n}(d),b=function(t){f(h,t);varr,i,a,l=s(h);functionh(){returnu(this,h),l.apply(this,arguments)}returnc(h,[{key:"createNerve",value:function(){returnnewg(this)}},{key:"onInit",value:(a=n(e().mark((functiont(){varr,n=this;returne().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,o(p(h.prototype),"onInit",this).call(this);case2:if(!(r=this.model.chart)){t.next=7;break}returnt.next=6,ibiz.register.control.get(r);case6:this.providers[r.name]=t.sent;case7:this.nerve.self.evt.on("mounted",(function(){n.model.source.loadDefault&&n.load()}));case8:case"end":returnt.stop()}}),t,this)}))),function(){returna.apply(this,arguments)})},{key:"load",value:(i=n(e().mark((functiont(){varr;returne().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnr=this.nerve.chart,t.abrupt("return",r.call.load());case2:case"end":returnt.stop()}}),t,this)}))),function(){returni.apply(this,arguments)})},{key:"refresh",value:(r=n(e().mark((functiont(){returne().wrap((function(t){for(;;)switch(t.prev=t.next){case0:this.load();case1:case"end":returnt.stop()}}),t,this)}))),function(){returnr.apply(this,arguments)})}]),h}(m);t("default",i({props:{context:Object,params:{type:Object,default:function(){return{}}},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(t){vare,r,n=l().proxy;return{c:(e=n,r=t.modelPath,y(e,(function(t,e){returnnewb(r,t,e)})))}},render:function(t){vare=null;if(this.c.complete){varr=this.c.model.chart;this.c.providers[r.name]&&(e=t(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},on:{neuronInit:this.c.nerve.onNeuronInit(r.name)}}))}returnt("view-base",{attrs:{controller:this.c}},[e])}}))}}}))}();