text: /*!
   * dasta.js
   * (c) 2020- YogurtCat
   * git: https://github.com/YogurtCat2020/dasta
   * Released under the MIT License.
   */
  self.dasta=(()=>{"use strict";var e={668:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const r=n(174);class o extends r.Code{constructor(e){const{template:t,T:n,codes:o,name:s,N:a,attrs:u,A:i,children:c,C:l,...d}=r.sugar(e,{template:"T",name:"N",attrs:"A",children:"C"}),p=["@"],h=[s];r.is.un(u)||(p.push("@"),h.push(u)),r.is.un(c)||(p.push("@"),h.push(c)),super(r.Code.new({template:`h(${p.join(", ")})`,codes:h,...d}).$)}}t.default=o,r.Code.extension.set("H",(e=>new o(e)))},918:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const r=n(174);class o extends r.Container{constructor(e){super(),this.container=r.Mass.new(e),this.allow=!0}relocate(e){return[this.container,e]}merge(e){return this.container.merge(e),this}get $(){if(!this.allow)return null;this.allow=!1;const e=this.$context,t=this.$contextName,n=this.$props,o=this.$data(e,t),s=this.$render(e,t),a={};r.is.un(n)||(a.props=n),r.is.un(o)||(a.data=o);for(let[e,t]of this.container)r.to.bool(t)&&(a[e]=r.to.obj(t));return r.is.un(s)||(a.render=s),a}get $context(){const e=this.container.take("context");return r.to.obj(e)}get $contextName(){const e=this.container.take("contextName");return r.to.obj(e)}get $props(){const e=this.container.take("props");if(!r.to.bool(e))return null;const t={};for(let[n,o]of e){if(o=r.to.obj(o),r.is.arr(o)||(o=[o]),o.length<=0)o={type:null,required:!0};else if(1==o.length){const[e]=o;o=r.is.type(e)?{type:e,required:!0}:{type:r.to.type(e),default:e}}else if(2==o.length){const[e,t]=o;o={type:e,default:t}}else{const[e,t,n]=o;o=n?{validator:e,required:!0}:{validator:e,default:t}}t[n]=o}return t}$data(e,t){const n=this.container.take("data");return o.funcData(n,e,t)}$render(e,t){const n=this.container.take("render");return o.funcRender(n,e,t)}decor(...e){return super.decor(...e)}static regData(e){return e=r.to.obj(e),r.to.bool(e)&&["init","I","opr","O"].map((t=>r.to.bool(e[t]))).reduce(((e,t)=>e||t),!1)?e:null}static funcData(e,t,n){return e=this.regData(e),r.is.un(e)?null:r.evaluate({template:"(function(){return @})",codes:[e]},t,n)}static codeData(e){return e=this.regData(e),r.is.un(e)?null:r.Code.new({template:"(function(){return @})",codes:[e]}).$}static regRender(e){return e=r.to.obj(e),r.to.bool(e)&&["name","N"].map((t=>r.to.bool(e[t]))).reduce(((e,t)=>e||t),!1)?e:null}static funcRender(e,t,n){return e=this.regRender(e),r.is.un(e)?null:r.evaluate({template:"(function(h){return @})",codes:[e]},t,n)}static codeRender(e){return e=this.regRender(e),r.is.un(e)?null:r.Code.new({template:"(function(h){return @})",codes:[e]}).$}}t.default=o},607:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Component=t.CodeH=void 0;const r=n(668);t.CodeH=r.default;const o=n(918);t.Component=o.default},174:e=>{e.exports=self.$yogurtcat$lib}},t={};return function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(607)})();