class FindObjectMap{constructor(t,r,e){return this.root=t,"object"!=typeof this.root&&PrivateFind.error("Неизвестный root!"),this._app=r,this._num=e,this}select(t){const r=this.root.querySelector(t);if(void 0!==r)return new FindObjectMap(r,this._app,this._num+1);PrivateFind.error("Нет обьектов для селектора!")}read(){return this.root.innerHTML}text(t){return 0==arguments.length?this.root.textContent:(this.root.textContent=t,this)}html(t){return 0==arguments.length?this.root.innerHTML:(this.root.innerHTML=t,this)}add(t){const r=this.html();return this.html(r+String(t))}value(t){return 0==arguments.length?this.root.value:(this.root.value=t,this)}id(t){const r=this.root.querySelector("#"+t);if(void 0!==r)return new FindObjectMap(r,this._app,this._num+1);PrivateFind.error("No objects of selector")}tag(t){const r=this.root.getElementsByTagName(t);if(void 0!==r)return new FindObjectMap(r,this._app,this._num+1);PrivateFind.error("No objects of selector")}attach(t,r){return this.root.addEventListener(t,()=>{r(this._app)}),this}merge(){if(0!=this._num)return PrivateFind.error("Вы можете создавать merge-обьект только из корневого map(), но уровень вложенности данного map() равен "+String(this._num)+"!"),this;const t=this._app.getNumberOfGroupFromId(this._app.__id);return this._app.groups[t].html=new Array(this.read()),this}app(){return this._app}main(){return new FindObjectMap(this._app.root,this._app,0)}attribute(t,r){return this.root.setAttribute(t,r),this}}class Find{constructor(t){return this._lll="",this.root=t,this.iter=0,this.groups=new Array,this.groups_count=0,this._map=new FindObjectMap(this.root,this,0),this}static createApp(){return Find}static attach(t,r){return`${t}="${r.replace('"',""")}"`}static css(t){return``}static js(t){return`