/*
 * Copyright CADMAI Software GmbH.
 * All rights reserved.
 *
 * The redistributor / user does not have the right to change, translate,
 * back-develop, decompile or disassemble the software.
 * 
 * Redistributions must retain the above copyright notice, 
 * this list of conditions and the following disclaimer.
 *   
 * Neither the name of CADMAI Software GmbH nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 var Poi3dBasicAttachment=function(){this.FwmVY=new Date("\x32\x30\x30\x30\x2d\x30\x31\x2d\x30\x31\x54\x31\x32\x3a\x30\x30\x3a\x30\x30");this.Vrcjl=null;this.NEzKJ=10000;this.Wg9XI=null;this.Tpi9y=null;this.e48py=null;this.KMKTD=null;this.fazSR=null;this.lW11a="";this.context="";this.YYYmk="";this.h9hGg=false;this.fWp13=false;this.getContext=function(){return this.context;};this.qnz19=function(uszH4){this.txOL4();this.context=uszH4;};this.getFileName=function(){return this.lW11a;};this.setFileName=function(ZOgWU){this.txOL4();this.lW11a=ZOgWU;};this.lVH50=function(){return this.e48py;};this.Yoeil=function(C7rTb){this.txOL4();this.e48py=C7rTb;};this.getCurrentDoc=function(){return this.KMKTD;};this.sAtDq=function(RFAzb){this.txOL4();this.KMKTD=RFAzb;};this.fBzym=function(){return this.fazSR;};this.ur679=function(LUIzy){this.txOL4();this.fazSR=LUIzy;};this.uV0Xt=function(r398j){this.NEzKJ=r398j;};this.tY3G5=function(){return this.FwmVY;};this.setFileDate=function(z0JqP){this.FwmVY=z0JqP;};this.miqMr=function(hR9Z0){this.Tpi9y=hR9Z0;};this.zYA0x=function(){return this.Tpi9y;};this.getErrorMesssage=function(){return this.YYYmk;};this.getLocalChangeFlag=function(){return this.h9hGg;};this.setLocalChangeFlag=function(AwznY){this.h9hGg=AwznY;};this.dA1gQ=function(){if(this.Wg9XI==null)this.Wg9XI=setInterval(this.update,this.NEzKJ,this);};this.txOL4=function(){if(this.Wg9XI!=null){clearInterval(this.Wg9XI);this.Wg9XI=null;}};this.reload=function(){let mn8nn=this.lVH50();let h60De=this.getCurrentDoc();let Y0KTn=this.fBzym();let _vlA1=this.getFileName();this.FwmVY=new Date("\x32\x30\x30\x30\x2d\x30\x31\x2d\x30\x31\x54\x31\x32\x3a\x30\x30\x3a\x30\x30");if((mn8nn==null)||(_vlA1.length==0))return;if((this.context!="\x55\x73\x65\x72\x43\x68\x61\x74")&&(this.context!="\x47\x72\x6f\x75\x70\x43\x68\x61\x74")&&(h60De==null))return;let KNYa5="";if(this.context=="\x55\x73\x65\x72\x43\x68\x61\x74")KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+"\x2c\x22\x66\x69\x6c\x65\x4e\x61\x6d\x65\x22\x3a\x22"+mn8nn.VKJPU()+"\x2f\x75\x73\x72\x43\x68\x61\x74\x2e\x6a\x73\x6f\x6e\x22\x2c\x22\x63\x68\x65\x63\x6b\x44\x61\x74\x65\x22\x3a\x22"+this.FwmVY.toUTCString()+"\x22\x7d";else if(this.context=="\x47\x72\x6f\x75\x70\x43\x68\x61\x74")KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+Y0KTn.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x63\x68\x65\x63\x6b\x44\x61\x74\x65\x22\x3a\x22"+this.FwmVY.toUTCString()+"\x22\x7d";else KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+h60De.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x63\x68\x65\x63\x6b\x44\x61\x74\x65\x22\x3a\x22"+this.FwmVY.toUTCString()+"\x22\x7d";Poi3dHelpers.callPhpFunction("\x52\x65\x61\x64\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74",KNYa5,this.e32KR,this.EEKof,this);};this.update=function(jGkXO){let mn8nn=jGkXO.lVH50();let h60De=jGkXO.getCurrentDoc();let Y0KTn=jGkXO.fBzym();let _vlA1=jGkXO.getFileName();if((mn8nn==null)||(_vlA1.length==0)){jGkXO.txOL4();return;}if((jGkXO.context!="\x55\x73\x65\x72\x43\x68\x61\x74")&&(jGkXO.context!="\x47\x72\x6f\x75\x70\x43\x68\x61\x74")&&(h60De==null)){jGkXO.txOL4();return;}let KNYa5="";if(jGkXO.context=="\x55\x73\x65\x72\x43\x68\x61\x74")KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+"\x2c\x22\x66\x69\x6c\x65\x4e\x61\x6d\x65\x22\x3a\x22"+mn8nn.VKJPU()+"\x2f\x75\x73\x72\x43\x68\x61\x74\x2e\x6a\x73\x6f\x6e\x22\x2c\x22\x63\x68\x65\x63\x6b\x44\x61\x74\x65\x22\x3a\x22"+jGkXO.tY3G5().toUTCString()+"\x22\x7d";else if(jGkXO.context=="\x47\x72\x6f\x75\x70\x43\x68\x61\x74")KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+Y0KTn.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x63\x68\x65\x63\x6b\x44\x61\x74\x65\x22\x3a\x22"+jGkXO.tY3G5().toUTCString()+"\x22\x7d";else KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+h60De.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x63\x68\x65\x63\x6b\x44\x61\x74\x65\x22\x3a\x22"+jGkXO.tY3G5().toUTCString()+"\x22\x7d";Poi3dHelpers.callPhpFunction("\x52\x65\x61\x64\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74",KNYa5,jGkXO.rJATa,jGkXO.EEKof,jGkXO);};this.e32KR=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.EEKof(L2Wt0);return;}var Yk_cn=tZ1J1.response;var farf6=null;if(Yk_cn.srvInfo.modDate!=undefined){let modDate=new Date(Yk_cn.srvInfo.modDate);if(modDate>this.FwmVY){farf6=Yk_cn.dt;if(farf6.enc1!=undefined){this.fWp13=true;let ti1Ov=this.e48py.kcEqV();farf6=Poi3dHelpers.fR3im(farf6,ti1Ov);if(farf6==null){this.EEKof(L2Wt0);return;}}else this.fWp13=false;this.FwmVY=modDate;let Tpi9y=this.zYA0x();if(Tpi9y!=null)Tpi9y(farf6,this);}}this.h9hGg=false;}};this.rJATa=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.EEKof(L2Wt0);return;}var Yk_cn=tZ1J1.response;var farf6=null;if(Yk_cn.erC!=0){this.EEKof(L2Wt0);return;}if(Yk_cn.srvInfo.modDate!=undefined){farf6=Yk_cn.dt;let modDate=new Date(Yk_cn.srvInfo.modDate);if(modDate>this.FwmVY){farf6=Yk_cn.dt;if(farf6.enc1!=undefined){this.fWp13=true;let ti1Ov=this.e48py.kcEqV();farf6=Poi3dHelpers.fR3im(farf6,ti1Ov);if(farf6==null){this.EEKof(L2Wt0);return;}}else this.fWp13=false;this.FwmVY=modDate;let Tpi9y=this.zYA0x();if(Tpi9y!=null)Tpi9y(farf6,this);}}this.h9hGg=false;}};this.EEKof=function(L2Wt0){var tZ1J1=L2Wt0.target;var Yk_cn=tZ1J1.response;switch(Yk_cn.erC){case 3:break;case 1:case 5:var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:Yk_cn.erT+"\x20\x28"+this.lW11a+"\x29",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);break;}};this.readFromBrowserStorage=function(A9Vob){this.h9hGg=false;return(localStorage.getItem(A9Vob));};this.WxeUn=function(zEslg){let WFJ1m="\x5b\x5d";if((zEslg!=null)&&(zEslg.length>0)){let BvQBu=null;let oinSi="";WFJ1m="\x5b";for(let tbn6H=0;tbn6H<zEslg.length;tbn6H++){BvQBu=zEslg[tbn6H];oinSi="\x7b\x22\x75\x49\x64\x22\x3a\x22"+BvQBu.userId+"\x22\x2c\x22\x61\x4c\x22\x3a\x22"+BvQBu.aliasName+"\x22\x7d";if(tbn6H<zEslg.length-1)WFJ1m=WFJ1m+oinSi+"\x2c";else WFJ1m=WFJ1m+oinSi;}WFJ1m=WFJ1m+"\x5d";}return WFJ1m;};this.JIM0d=function(JKAul){var A7Zij="\x5b";for(var tbn6H=0;tbn6H<JKAul.length;tbn6H++){if(tbn6H>0)A7Zij=A7Zij+"\x2c";if(JKAul[tbn6H].getJsonString!=undefined)A7Zij=A7Zij+JKAul[tbn6H].getJsonString();else if(JKAul[tbn6H].getObjectAsJsonString!=undefined)A7Zij=A7Zij+JKAul[tbn6H].getObjectAsJsonString();else A7Zij=A7Zij+JSON.stringify(JKAul[tbn6H]);}A7Zij=A7Zij+"\x5d";return A7Zij;};this.T_SEJ=function(JKAul,A9Vob){var A7Zij=this.JIM0d(JKAul);var lLDLn=A7Zij.replace(/(\.\d{4})(\d+)/g,"\x24\x31");if((A9Vob!=undefined)&&(A9Vob!=null))this.saveToBrowserStorage(lLDLn,A9Vob);else this.TZ9Qi(lLDLn);};this.saveToBrowserStorage=function(RtA8F,A9Vob){this.h9hGg=false;return(localStorage.setItem(A9Vob,RtA8F));};this.TZ9Qi=function(RtA8F){if((this.e48py==null)||(this.lW11a.length==0))return;let dRms0=RtA8F;let mn8nn=this.lVH50();let h60De=this.getCurrentDoc();let Y0KTn=this.fBzym();let _vlA1=this.getFileName();if((this.context!="\x55\x73\x65\x72\x43\x68\x61\x74")&&(this.context!="\x47\x72\x6f\x75\x70\x43\x68\x61\x74")&&(h60De==null))return;if(mn8nn.nWvA6()==1){let ti1Ov=mn8nn.kcEqV();dRms0="\x7b\x22\x65\x6e\x63\x31\x22\x3a\x22"+Poi3dHelpers.dXxDR(RtA8F,ti1Ov)+"\x22\x7d";}var KNYa5="";if(this.context=="\x55\x73\x65\x72\x43\x68\x61\x74"){KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+"\x2c\x22\x66\x69\x6c\x65\x4e\x61\x6d\x65\x22\x3a\x22"+mn8nn.VKJPU()+"\x2f\x75\x73\x72\x43\x68\x61\x74\x2e\x6a\x73\x6f\x6e\x22"+"\x2c\x22\x64\x61\x74\x61\x22\x3a"+JSON.stringify(dRms0)+"\x7d";}else if(this.context=="\x47\x72\x6f\x75\x70\x43\x68\x61\x74"){let kaQXN=this.WxeUn(Y0KTn.getGroupUsers());KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+Y0KTn.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+kaQXN+"\x2c\x22\x67\x72\x70\x49\x64\x22\x3a\x22"+Y0KTn.getGroupId()+"\x22"+"\x2c\x22\x64\x61\x74\x61\x22\x3a"+JSON.stringify(dRms0)+"\x7d";}else{let jzORL=this.WxeUn(h60De.getDocUsers());KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+h60De.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+jzORL+"\x2c\x22\x64\x6f\x63\x49\x64\x22\x3a\x22"+h60De.getDocId()+"\x22"+"\x2c\x22\x64\x61\x74\x61\x22\x3a"+JSON.stringify(dRms0)+"\x7d";}Poi3dHelpers.callPhpFunction("\x57\x72\x69\x74\x65\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74",KNYa5,this._nKNk,this.mItn3,this);};this._nKNk=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.mItn3(L2Wt0);return;}var Yk_cn=tZ1J1.response;if(Yk_cn.erC!=0){this.YYYmk=Yk_cn.erT;var OFgA6=null;var h4spD="";if(Yk_cn.srvInfo.lockUser)h4spD=Yk_cn.srvInfo.lockUser;if(Yk_cn.erC==9)OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x6c\x6f\x63\x6b\x42\x79\x44\x69\x66\x66\x65\x72\x65\x6e\x74\x55\x73\x65\x72",lockUser:h4spD,calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};else OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}this.h9hGg=false;var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x73\x61\x76\x65"+this.context+"\x53\x75\x63\x63\x65\x73\x73",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);}};this.mItn3=function(L2Wt0){var tZ1J1=L2Wt0.target;this.YYYmk="\x43\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x73\x61\x76\x65\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x20\x61\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x20\x28"+this.context+"\x29";var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.appendData=function(RtA8F){if((this.e48py==null)||(this.lW11a.length==0))return;let dRms0=RtA8F;let KNYa5="";let mn8nn=this.lVH50();let h60De=this.getCurrentDoc();let Y0KTn=this.fBzym();let _vlA1=this.getFileName();if((this.context!="\x55\x73\x65\x72\x43\x68\x61\x74")&&(this.context!="\x47\x72\x6f\x75\x70\x43\x68\x61\x74")&&(h60De==null))return;if(this.context=="\x55\x73\x65\x72\x43\x68\x61\x74"){KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+"\x2c\x22\x66\x69\x6c\x65\x4e\x61\x6d\x65\x22\x3a\x22"+mn8nn.VKJPU()+"\x2f\x75\x73\x72\x43\x68\x61\x74\x2e\x6a\x73\x6f\x6e\x22"+"\x2c\x22\x64\x61\x74\x61\x22\x3a"+JSON.stringify(RtA8F)+"\x7d";}else if(this.context=="\x47\x72\x6f\x75\x70\x43\x68\x61\x74"){let kaQXN=this.WxeUn(Y0KTn.getGroupUsers());KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+Y0KTn.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+kaQXN+"\x2c\x22\x67\x72\x70\x49\x64\x22\x3a\x22"+Y0KTn.getGroupId()+"\x22"+"\x2c\x22\x64\x61\x74\x61\x22\x3a"+JSON.stringify(RtA8F)+"\x7d";}else{let jzORL=this.WxeUn(h60De.getDocUsers());KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+h60De.Mb0PC(mn8nn,_vlA1)+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+jzORL+"\x2c\x22\x64\x6f\x63\x49\x64\x22\x3a\x22"+h60De.getDocId()+"\x22"+"\x2c\x22\x64\x61\x74\x61\x22\x3a"+JSON.stringify(RtA8F)+"\x7d";}Poi3dHelpers.callPhpFunction("\x41\x70\x70\x65\x6e\x64\x54\x6f\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74",KNYa5,this.Lbh2a,this.KzU1W,this);};this.Lbh2a=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.KzU1W(L2Wt0);return;}var Yk_cn=tZ1J1.response;if(Yk_cn.erC!=0){this.YYYmk=Yk_cn.erT;var OFgA6=null;var h4spD="";if(Yk_cn.srvInfo.lockUser)h4spD=Yk_cn.srvInfo.lockUser;if(Yk_cn.erC==9)OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x6c\x6f\x63\x6b\x42\x79\x44\x69\x66\x66\x65\x72\x65\x6e\x74\x55\x73\x65\x72",lockUser:h4spD,calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};else OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}this.h9hGg=false;var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x73\x61\x76\x65"+this.context+"\x53\x75\x63\x63\x65\x73\x73",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);}};this.KzU1W=function(L2Wt0){var tZ1J1=L2Wt0.target;this.YYYmk="\x43\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x61\x70\x70\x65\x6e\x64\x20\x64\x61\x74\x61\x20\x74\x6f\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x20\x61\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x20\x28"+this.context+"\x29";var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.g2V83=function(){if((this.e48py==null)||(this.KMKTD==null)||(this.lW11a.length==0))return;let jzORL=this.WxeUn(this.KMKTD.getDocUsers());var KNYa5="\x7b\x22\x69\x44\x22\x3a"+this.e48py.cI9vB()+this.KMKTD.Mb0PC(this.e48py,this.lW11a)+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+jzORL+"\x2c\x22\x64\x6f\x63\x49\x64\x22\x3a\x22"+this.KMKTD.getDocId()+"\x22\x7d";Poi3dHelpers.callPhpFunction("\x4c\x6f\x63\x6b\x46\x69\x6c\x65",KNYa5,this.ObZTw,this.NUjKe,this);};this.ObZTw=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.NUjKe(L2Wt0);return;}var Yk_cn=tZ1J1.response;if(Yk_cn.erC!=0){this.YYYmk=Yk_cn.erT;var OFgA6=null;var h4spD="";if(Yk_cn.srvInfo.lockUser)h4spD=Yk_cn.srvInfo.lockUser;if(Yk_cn.erC==4)OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x6c\x6f\x63\x6b\x42\x79\x44\x69\x66\x66\x65\x72\x65\x6e\x74\x55\x73\x65\x72",lockUser:h4spD,calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};else OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x6c\x6f\x63\x6b"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x63\x6b"+this.context+"\x53\x75\x63\x63\x65\x73\x73",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);}};this.NUjKe=function(L2Wt0){var tZ1J1=L2Wt0.target;this.YYYmk="\x43\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x6c\x6f\x63\x6b\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x20\x61\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x20\x66\x6f\x72\x20\x65\x78\x63\x6c\x75\x73\x69\x76\x65\x20\x61\x63\x63\x65\x73\x73\x20\x28"+this.context+"\x29";var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x6c\x6f\x63\x6b"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.pkqCT=function(){if((this.e48py==null)||(this.KMKTD==null)||(this.lW11a.length==0))return;let jzORL=this.WxeUn(this.KMKTD.getDocUsers());let KNYa5="\x7b\x22\x69\x44\x22\x3a"+this.e48py.cI9vB()+this.KMKTD.Mb0PC(this.e48py,this.lW11a)+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+jzORL+"\x2c\x22\x64\x6f\x63\x49\x64\x22\x3a\x22"+this.KMKTD.getDocId()+"\x22\x7d";Poi3dHelpers.callPhpFunction("\x55\x6e\x6c\x6f\x63\x6b\x46\x69\x6c\x65",KNYa5,this.ObZTw,this.NUjKe,this);};this.uRo0e=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.N_CxQ(L2Wt0);return;}var Yk_cn=tZ1J1.response;if(Yk_cn.erC!=0){this.YYYmk=Yk_cn.erT;var OFgA6=null;var h4spD="";if(Yk_cn.srvInfo.lockUser)h4spD=Yk_cn.srvInfo.lockUser;if(Yk_cn.erC==3)OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x6c\x6f\x63\x6b\x42\x79\x44\x69\x66\x66\x65\x72\x65\x6e\x74\x55\x73\x65\x72",lockUser:h4spD,calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};else OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x6c\x6f\x63\x6b"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x75\x6e\x6c\x6f\x63\x6b"+this.context+"\x53\x75\x63\x63\x65\x73\x73",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);}};this.N_CxQ=function(L2Wt0){var tZ1J1=L2Wt0.target;this.YYYmk="\x43\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x6c\x6f\x63\x6b\x20\x64\x6f\x63\x75\x6d\x65\x6e\x74\x20\x61\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x20\x66\x6f\x72\x20\x65\x78\x63\x6c\x75\x73\x69\x76\x65\x20\x61\x63\x63\x65\x73\x73\x20\x28"+this.context+"\x29";var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x75\x6e\x6c\x6f\x63\x6b"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};};var ylYLN=function(){var XOOl1=new Array();this.mo6qj=function(){return XOOl1};this.zNyDY=function(mgZby){this.setLocalChangeFlag(true);XOOl1=mgZby;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let OYpep=null;let ZuMmp=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){OYpep=JKAul[tbn6H];ZuMmp.push(OYpep);}L38Np.zNyDY(ZuMmp);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x41\x6e\x6e\x6f\x74\x61\x74\x69\x6f\x6e\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(XOOl1,A9Vob);else this.T_SEJ(XOOl1);};this.readFromStorage=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null)){let ZHuBl=this.readFromBrowserStorage(A9Vob);if(ZHuBl!=null){let HcINC=JSON.parse(ZHuBl);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(XOOl1);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.miqMr(this.loadFromJSON);this.setFileName("\x61\x6e\x6e\x6f\x74\x61\x74\x69\x6f\x6e\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x41\x6e\x6e\x6f\x74\x61\x74\x69\x6f\x6e\x73");this.uV0Xt(20000);};ylYLN.prototype=new Poi3dBasicAttachment();var Poi3dViewLocators=function(){var Dp_nM=new Array();this.iw3gO=function(){return Dp_nM};this.m2qvt=function(sABfb){this.setLocalChangeFlag(true);Dp_nM=sABfb;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let MEYz2=null;let CFnu3=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){MEYz2=JKAul[tbn6H];CFnu3.push(MEYz2);}L38Np.m2qvt(CFnu3);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(Dp_nM,A9Vob);else this.T_SEJ(Dp_nM);};this.readFromStorage=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null)){let nX5LM=this.readFromBrowserStorage(A9Vob);if(nX5LM!=null){let HcINC=JSON.parse(nX5LM);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(Dp_nM);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.miqMr(this.loadFromJSON);this.setFileName("\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x56\x69\x65\x77\x4c\x6f\x63\x61\x74\x6f\x72\x73");this.uV0Xt(20000);};Poi3dViewLocators.prototype=new Poi3dBasicAttachment();var Poi3dMaterialCategory=function(){this.titleDe="";this.titleEn="";this.baseDir="";this.entries=null;};var Poi3dMaterialSets=function(){var nNN9F=new Array();this.SI5SG=function(){return nNN9F};this.mBPFf=function(_DZiP){this.setLocalChangeFlag(true);nNN9F=_DZiP;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let VF7RG=null;let pvHgW=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){VF7RG=new Poi3dMaterialSet();VF7RG.loadFromJSON(JKAul[tbn6H]);pvHgW.push(VF7RG);}L38Np.mBPFf(pvHgW);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x4d\x61\x74\x65\x72\x69\x61\x6c\x53\x65\x74\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(nNN9F,A9Vob);else this.T_SEJ(nNN9F);};this.readFromStorage=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null)){let fvLgK=this.readFromBrowserStorage(A9Vob);if(fvLgK!=null){let HcINC=JSON.parse(fvLgK);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(nNN9F);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.miqMr(this.loadFromJSON);this.setFileName("\x6d\x61\x74\x65\x72\x69\x61\x6c\x53\x65\x74\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x4d\x61\x74\x65\x72\x69\x61\x6c\x53\x65\x74\x73");this.uV0Xt(20000);};Poi3dMaterialSets.prototype=new Poi3dBasicAttachment();var Poi3dMaterialSet=function(){var DBe5K=Poi3dHelpers.generateGuid();var LknkT="";var Hp9O_=new Array();this.getMaterialSetTitle=function(){return LknkT};this.setMaterialSetTitle=function(h1i1i){LknkT=h1i1i;};this.getMaterialSetId=function(){return DBe5K};this.t61l2=function(_qg4S){DBe5K=_qg4S;};this.HfmHV=function(YF4Xx){Hp9O_=YF4Xx;};this.applyToEntities=function(svvMZ){for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){Hp9O_[tbn6H].applyToEntities(svvMZ);}};this.deleteFromEntities=function(svvMZ){for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){Hp9O_[tbn6H].deleteFromEntities(svvMZ);}};this.applyToEntities=function(svvMZ){for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){Hp9O_[tbn6H].applyToEntities(svvMZ);}};this.updateEntities=function(DbrJE,FCVX4,svvMZ){svvMZ.restoreEntityMaterial(FCVX4);for(let tbn6H=0;tbn6H<FCVX4.length;tbn6H++)FCVX4[tbn6H].poi3dMaterialId=undefined;for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){Hp9O_[tbn6H].removeEntities(FCVX4);}if(DbrJE==null)return;var jHyeg=this.WD2a0(DbrJE);if(jHyeg==null){jHyeg=DbrJE.createCopy();Hp9O_.push(jHyeg);jHyeg.setEntities(FCVX4);}else jHyeg.addEntities(FCVX4);jHyeg.applyToEntities(svvMZ);};this.createCopy=function(clone){var Gsl8p=new Poi3dMaterialSet();if(clone==true)Gsl8p.t61l2(DBe5K);Gsl8p.setMaterialSetTitle(LknkT+"\x5f\x63\x6f\x70\x79");var mats=new Array();for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){mats.push(Hp9O_[tbn6H].createCopy(clone))}Gsl8p.HfmHV(mats);return Gsl8p;};this.getMaterialById=function(ocsWY){for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){if(Hp9O_[tbn6H].O8i1a()==ocsWY)return Hp9O_[tbn6H];}return null;};this.WD2a0=function(r0f0v){for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){tLBHF:{if(Hp9O_[tbn6H].imageDirectory!=r0f0v.imageDirectory)break tLBHF;if(Hp9O_[tbn6H].previewFile!=r0f0v.previewFile)break tLBHF;if(Hp9O_[tbn6H].textureFile!=r0f0v.textureFile)break tLBHF;if(Hp9O_[tbn6H].structureFile!=r0f0v.structureFile)break tLBHF;if(Hp9O_[tbn6H].baseColor[0]!=r0f0v.baseColor[0])break tLBHF;if(Hp9O_[tbn6H].baseColor[1]!=r0f0v.baseColor[1])break tLBHF;if(Hp9O_[tbn6H].baseColor[2]!=r0f0v.baseColor[2])break tLBHF;if(Hp9O_[tbn6H].directFactor!=r0f0v.directFactor)break tLBHF;if(Hp9O_[tbn6H].specularFactor!=r0f0v.specularFactor)break tLBHF;if(Hp9O_[tbn6H].ambientFactor!=r0f0v.ambientFactor)break tLBHF;if(Hp9O_[tbn6H].specularDistrib!=r0f0v.specularDistrib)break tLBHF;if(Hp9O_[tbn6H].transparency!=r0f0v.transparency)break tLBHF;if(Hp9O_[tbn6H].bumpFactor!=r0f0v.bumpFactor)break tLBHF;if(Hp9O_[tbn6H].reflectionFactor!=r0f0v.reflectionFactor)break tLBHF;if(Hp9O_[tbn6H].textureScale!=r0f0v.textureScale)break tLBHF;if(Hp9O_[tbn6H].rotated!=r0f0v.rotated)break tLBHF;if(Hp9O_[tbn6H].grayed!=r0f0v.grayed)break tLBHF;return Hp9O_[tbn6H];}}return null;};this.getObjectAsJsonString=function(){var nFh3D=false;var A7Zij="\x5b";for(var tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){if(Hp9O_[tbn6H].SjwO1()==true){if(nFh3D==true){A7Zij=A7Zij+"\x2c";}else nFh3D=true;A7Zij=A7Zij+Hp9O_[tbn6H].getObjectAsJsonString();}}A7Zij=A7Zij+"\x5d";let RtA8F="\x7b"+"\x22\x6d\x73\x49\x64\x22\x3a\x22"+DBe5K+"\x22\x2c"+"\x22\x6d\x73\x54\x74\x6c\x22\x3a\x22"+LknkT+"\x22\x2c"+"\x22\x6d\x61\x74\x73\x22\x3a"+A7Zij+"\x7d";return RtA8F;};this.loadFromJSON=function(Yk_cn){let jHyeg=null;if(Yk_cn.msId!=undefined)DBe5K=Yk_cn.msId;if(Yk_cn.msTtl!=undefined)LknkT=Yk_cn.msTtl;if(Yk_cn.mats!=undefined){for(let tbn6H=0;tbn6H<Yk_cn.mats.length;tbn6H++){jHyeg=new Poi3dMaterial();jHyeg.loadFromJSON(Yk_cn.mats[tbn6H]);Hp9O_.push(jHyeg);}}};this.assignEntities=function(svvMZ){if(svvMZ){for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){Hp9O_[tbn6H].Ngc_t(svvMZ);}}};this.loadTextures=function(wFKvU){var mXuB5="";var C2t1K="";for(let tbn6H=0;tbn6H<Hp9O_.length;tbn6H++){if(Hp9O_[tbn6H].textureFile.length>0){mXuB5=Hp9O_[tbn6H].getTextureName();wFKvU.preloadTextureFileFromUrl(mXuB5,Hp9O_[tbn6H].imageDirectory+"\x2f"+Hp9O_[tbn6H].textureFile,Hp9O_[tbn6H].rotated,Hp9O_[tbn6H].grayed);}if(Hp9O_[tbn6H].structureFile.length>0){C2t1K=Hp9O_[tbn6H].getStructureName();wFKvU.preloadTextureFileFromUrl(C2t1K,Hp9O_[tbn6H].imageDirectory+"\x2f"+Hp9O_[tbn6H].structureFile,Hp9O_[tbn6H].rotated,false);}}};};var Poi3dMaterial=function(){var Pnjha=Poi3dHelpers.generateGuid();var B0P6t=null;var vcrQi=new Array();var MLeqA=new Array();this.title=Poi3dHelpers.generateGuid();this.imageDirectory="";this.previewFile="";this.textureFile="";this.structureFile="";this.baseColor=[1.0,1.0,1.0];this.directFactor=0.5;this.specularFactor=0.0;this.ambientFactor=0.5;this.specularDistrib=500.0;this.transparency=0.0;this.bumpFactor=0.0;this.reflectionFactor=0.0;this.textureScale=1.0;this.rotated=false;this.grayed=false;this.getTextureName=function(){var mXuB5=this.textureFile;if(this.rotated==true)mXuB5=mXuB5+"\x2d\x72";if(this.grayed==true)mXuB5=mXuB5+"\x2d\x67";return mXuB5;};this.getStructureName=function(){var C2t1K=this.structureFile;if((this.rotated==true)&&(C2t1K.length>0))C2t1K=C2t1K+"\x2d\x72";return C2t1K;};this.O8i1a=function(){return Pnjha};this.setMaterialId=function(YRGyK){Pnjha=YRGyK;};this.Cp0lP=function(){Pnjha=Poi3dHelpers.generateGuid();};this.k0UcY=function(){return vcrQi};this.setEntities=function(xowZq){MLeqA=xowZq;};this.SjwO1=function(){if(MLeqA.length>0)return true;return false;};this.addEntities=function(xowZq){if(xowZq.length>0){xowZq.forEach(value=>{if(!MLeqA.includes(value)){MLeqA.push(value);}});}};this.removeEntities=function(xowZq){var result=new Array();if(xowZq.length>0){MLeqA.forEach(value=>{if(!xowZq.includes(value)){result.push(value);}});MLeqA=result;}};this.Ngc_t=function(svvMZ){if(svvMZ)MLeqA=svvMZ.getEntitiesByNames(vcrQi);};this.applyToEntities=function(svvMZ){if(MLeqA.length==0)return;LxPlg=new Array(this.baseColor[0]*this.directFactor,this.baseColor[1]*this.directFactor,this.baseColor[2]*this.directFactor);qRdCY=new Array(this.baseColor[0]*this.specularFactor,this.baseColor[1]*this.specularFactor,this.baseColor[2]*this.specularFactor);Pyd2Z=new Array(this.baseColor[0]*this.ambientFactor,this.baseColor[1]*this.ambientFactor,this.baseColor[2]*this.ambientFactor);svvMZ.setEntityMaterial(MLeqA,this.getTextureName(),this.getStructureName(),LxPlg,qRdCY,Pyd2Z,this.specularDistrib,this.transparency,this.bumpFactor,this.textureScale,this.reflectionFactor,true);for(let tbn6H=0;tbn6H<MLeqA.length;tbn6H++)MLeqA[tbn6H].poi3dMaterialId=Pnjha;};this.deleteFromEntities=function(svvMZ){if(MLeqA.length==0)return;svvMZ.restoreEntityMaterial(MLeqA);for(let tbn6H=0;tbn6H<MLeqA.length;tbn6H++)MLeqA[tbn6H].poi3dMaterialId=undefined;};this.createCopy=function(clone){var CjkHX=new Poi3dMaterial();if(clone==true)CjkHX.setMaterialId(Pnjha);CjkHX.title=this.title;CjkHX.imageDirectory=this.imageDirectory;CjkHX.previewFile=this.previewFile;CjkHX.textureFile=this.textureFile;CjkHX.structureFile=this.structureFile;CjkHX.baseColor[0]=this.baseColor[0];CjkHX.baseColor[1]=this.baseColor[1];CjkHX.baseColor[2]=this.baseColor[2];CjkHX.directFactor=this.directFactor;CjkHX.specularFactor=this.specularFactor;CjkHX.ambientFactor=this.ambientFactor;CjkHX.specularDistrib=this.specularDistrib;CjkHX.transparency=this.transparency;CjkHX.bumpFactor=this.bumpFactor;CjkHX.reflectionFactor=this.reflectionFactor;CjkHX.textureScale=this.textureScale;CjkHX.rotated=this.rotated;CjkHX.grayed=this.grayed;var X0vCV=new Array();for(let tbn6H=0;tbn6H<MLeqA.length;tbn6H++)X0vCV.push(MLeqA[tbn6H]);CjkHX.setEntities(X0vCV);return CjkHX;};this.copyTo=function(jHyeg){jHyeg.title=this.title;jHyeg.imageDirectory=this.imageDirectory;jHyeg.previewFile=this.previewFile;jHyeg.textureFile=this.textureFile;jHyeg.structureFile=this.structureFile;jHyeg.baseColor[0]=this.baseColor[0];jHyeg.baseColor[1]=this.baseColor[1];jHyeg.baseColor[2]=this.baseColor[2];jHyeg.directFactor=this.directFactor;jHyeg.specularFactor=this.specularFactor;jHyeg.ambientFactor=this.ambientFactor;jHyeg.specularDistrib=this.specularDistrib;jHyeg.transparency=this.transparency;jHyeg.bumpFactor=this.bumpFactor;jHyeg.reflectionFactor=this.reflectionFactor;jHyeg.textureScale=this.textureScale;jHyeg.rotated=this.rotated;jHyeg.grayed=this.grayed;};this.loadFromJSON=function(Yk_cn){if(Yk_cn.mId!=undefined)Pnjha=Yk_cn.mId;if(Yk_cn.ttl!=undefined)this.title=Yk_cn.ttl;if(Yk_cn.imDir!=undefined)this.imageDirectory=Yk_cn.imDir;if(Yk_cn.pvFl!=undefined)this.previewFile=Yk_cn.pvFl;if(Yk_cn.txFl!=undefined)this.textureFile=Yk_cn.txFl;if(Yk_cn.strFl!=undefined)this.structureFile=Yk_cn.strFl;if(Yk_cn.col!=undefined)this.baseColor=Yk_cn.col;if(Yk_cn.kd!=undefined)this.directFactor=parseFloat(Yk_cn.kd);if(Yk_cn.ks!=undefined)this.specularFactor=parseFloat(Yk_cn.ks);if(Yk_cn.ka!=undefined)this.ambientFactor=parseFloat(Yk_cn.ka);if(Yk_cn.ns!=undefined)this.specularDistrib=parseFloat(Yk_cn.ns);if(Yk_cn.tr!=undefined)this.transparency=parseFloat(Yk_cn.tr);if(Yk_cn.bt!=undefined)this.bumpFactor=parseFloat(Yk_cn.bt);if(Yk_cn.rf!=undefined)this.reflectionFactor=parseFloat(Yk_cn.rf);if(Yk_cn.txSc!=undefined)this.textureScale=parseFloat(Yk_cn.txSc);if(Yk_cn.rot!=undefined)this.rotated=Yk_cn.rot;if(Yk_cn.gr!=undefined)this.grayed=Yk_cn.gr;if(Yk_cn.entNames!=undefined)vcrQi=Yk_cn.entNames;};this.getObjectAsJsonString=function(){var A7Zij="\x5b";for(var tbn6H=0;tbn6H<MLeqA.length;tbn6H++){if(tbn6H>0)A7Zij=A7Zij+"\x2c";A7Zij=A7Zij+"\x22"+MLeqA[tbn6H].entityFullName+"\x22";}A7Zij=A7Zij+"\x5d";let RtA8F="\x7b"+"\x22\x6d\x49\x64\x22\x3a\x22"+Pnjha+"\x22\x2c"+"\x22\x74\x74\x6c\x22\x3a\x22"+this.title+"\x22\x2c"+"\x22\x69\x6d\x44\x69\x72\x22\x3a\x22"+this.imageDirectory+"\x22\x2c"+"\x22\x70\x76\x46\x6c\x22\x3a\x22"+this.previewFile+"\x22\x2c"+"\x22\x74\x78\x46\x6c\x22\x3a\x22"+this.textureFile+"\x22\x2c"+"\x22\x73\x74\x72\x46\x6c\x22\x3a\x22"+this.structureFile+"\x22\x2c"+"\x22\x63\x6f\x6c\x22\x3a\x5b"+this.baseColor[0]+"\x2c"+this.baseColor[1]+"\x2c"+this.baseColor[2]+"\x5d\x2c"+"\x22\x6b\x64\x22\x3a"+this.directFactor+"\x2c"+"\x22\x6b\x73\x22\x3a"+this.specularFactor+"\x2c"+"\x22\x6b\x61\x22\x3a"+this.ambientFactor+"\x2c"+"\x22\x6e\x73\x22\x3a"+this.specularDistrib+"\x2c"+"\x22\x74\x72\x22\x3a"+this.transparency+"\x2c"+"\x22\x62\x74\x22\x3a"+this.bumpFactor+"\x2c"+"\x22\x72\x66\x22\x3a"+this.reflectionFactor+"\x2c"+"\x22\x74\x78\x53\x63\x22\x3a"+this.textureScale+"\x2c"+"\x22\x72\x6f\x74\x22\x3a"+this.rotated+"\x2c"+"\x22\x67\x72\x22\x3a"+this.grayed+"\x2c"+"\x22\x65\x6e\x74\x4e\x61\x6d\x65\x73\x22\x3a"+A7Zij+"\x7d";return RtA8F;};};var Poi3dInstructions=function(){var AJFta=new Array();this.L3o2V=function(){return AJFta};this.SLvvw=function(U4X9S){this.setLocalChangeFlag(true);AJFta=U4X9S;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let ZlXhg=null;let hfeAE=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){ZlXhg=new Poi3dInstruction();ZlXhg.loadFromJSON(JKAul[tbn6H]);hfeAE.push(ZlXhg);}L38Np.SLvvw(hfeAE);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x49\x6e\x73\x74\x72\x75\x63\x74\x69\x6f\x6e\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(AJFta,A9Vob);else this.T_SEJ(AJFta);};this.readFromStorage=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null)){let hnZX8=this.readFromBrowserStorage(A9Vob);if(hnZX8!=null){let HcINC=JSON.parse(hnZX8);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(AJFta);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.miqMr(this.loadFromJSON);this.setFileName("\x69\x6e\x73\x74\x72\x75\x63\x74\x69\x6f\x6e\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x49\x6e\x73\x74\x72\x75\x63\x74\x69\x6f\x6e\x73");this.uV0Xt(20000);};Poi3dInstructions.prototype=new Poi3dBasicAttachment();var Poi3dInstruction=function(){var vcrQi=new Array();var MLeqA=new Array();this.title=Poi3dHelpers.generateGuid();this.advice="";this.blinkColor=[1.0,1.0,0.0,1.0];this.blinkCount=5;this.blinkPause=0.2;this.viewPosition=new Array();this.viewAngles=new Array();this.setEntities=function(xowZq){MLeqA=xowZq;};this.getEntities=function(){return MLeqA;};this.SjwO1=function(){if(MLeqA.length>0)return true;return false;};this.assignEntities=function(svvMZ){if(svvMZ)MLeqA=svvMZ.getEntitiesByNames(vcrQi);};this.loadFromJSON=function(Yk_cn){if(Yk_cn.iName!=undefined)this.title=Yk_cn.iName;if(Yk_cn.iText!=undefined)this.advice=Yk_cn.iText;if(Yk_cn.blinkCol!=undefined)this.blinkColor=Yk_cn.blinkCol;if(Yk_cn.blinkCnt!=undefined)this.blinkCount=Yk_cn.blinkCnt;if(Yk_cn.blinkPause!=undefined)this.blinkPause=Yk_cn.blinkPause;if(Yk_cn.posOrg!=undefined)this.viewPosition=Yk_cn.posOrg;if(Yk_cn.posAng!=undefined)this.viewAngles=Yk_cn.posAng;if(Yk_cn.entNames!=undefined)vcrQi=Yk_cn.entNames;};this.getObjectAsJsonString=function(){var I350T="";var s4mtJ="";var A7Zij="\x5b";for(var tbn6H=0;tbn6H<MLeqA.length;tbn6H++){if(tbn6H>0)A7Zij=A7Zij+"\x2c";A7Zij=A7Zij+"\x22"+MLeqA[tbn6H].entityFullName+"\x22";}A7Zij=A7Zij+"\x5d";if(this.viewPosition.length>0)I350T="\x22\x70\x6f\x73\x4f\x72\x67\x22\x3a\x5b"+this.viewPosition[0]+"\x2c"+this.viewPosition[1]+"\x2c"+this.viewPosition[2]+"\x5d\x2c";if(this.viewAngles.length>0)s4mtJ="\x22\x70\x6f\x73\x41\x6e\x67\x22\x3a\x5b"+this.viewAngles[0]+"\x2c"+this.viewAngles[1]+"\x2c"+this.viewAngles[2]+"\x5d\x2c";let RtA8F="\x7b"+"\x22\x69\x4e\x61\x6d\x65\x22\x3a\x22"+this.title+"\x22\x2c"+"\x22\x69\x54\x65\x78\x74\x22\x3a\x22"+this.advice+"\x22\x2c"+"\x22\x62\x6c\x69\x6e\x6b\x43\x6f\x6c\x22\x3a\x5b"+this.blinkColor[0]+"\x2c"+this.blinkColor[1]+"\x2c"+this.blinkColor[2]+"\x2c"+this.blinkColor[3]+"\x5d\x2c"+"\x22\x62\x6c\x69\x6e\x6b\x43\x6e\x74\x22\x3a\x22"+this.blinkCount+"\x22\x2c"+"\x22\x62\x6c\x69\x6e\x6b\x50\x61\x75\x73\x65\x22\x3a\x22"+this.blinkPause+"\x22\x2c"+I350T+s4mtJ+"\x22\x65\x6e\x74\x4e\x61\x6d\x65\x73\x22\x3a"+A7Zij+"\x7d";return RtA8F;};};var Poi3dFileAttachments=function(){var cAhwl=new Array();this.M8BaQ=function(){return cAhwl};this.M3TyU=function(XO3Ax){this.setLocalChangeFlag(true);cAhwl=XO3Ax;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let ZBq4c=null;let AJpeF=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){ZBq4c=new Poi3dFileAttachment(L38Np.getCurrentDoc());ZBq4c.loadFromJSON(JKAul[tbn6H]);AJpeF.push(ZBq4c);}L38Np.M3TyU(AJpeF);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x46\x69\x6c\x65\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(cAhwl,A9Vob);else this.T_SEJ(cAhwl);};this.readFromStorage=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null)){let pFDZO=this.readFromBrowserStorage(A9Vob);if(pFDZO!=null){let HcINC=JSON.parse(pFDZO);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(cAhwl);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.miqMr(this.loadFromJSON);this.setFileName("\x66\x69\x6c\x65\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x46\x69\x6c\x65\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x73");this.uV0Xt(20000);};Poi3dFileAttachments.prototype=new Poi3dBasicAttachment();var Poi3dFileAttachment=function(ldeCA){var SeGzl=Poi3dHelpers.generateGuid();var vM1ju="";var eWaLB="";var HFMbL="";var cvXLG=ldeCA;var D0ol4="";var UIid3="";var yVrBg="";var vcrQi=new Array();var MLeqA=new Array();this.getTitle=function(){return vM1ju};this.setTitle=function(Eeswa){vM1ju=Eeswa;};this.getId=function(){return SeGzl};this.setId=function(w4N6v){SeGzl=w4N6v;};this.getDesc=function(){return eWaLB};this.setDesc=function(QYeIv){eWaLB=QYeIv;};this.getFileName=function(){return HFMbL};this.setFileName=function(Ej992){HFMbL=Ej992;};this.getErrorMesssage=function(){return D0ol4;};this.setOwner=function(XUCDE){if(XUCDE==null)return;yVrBg=XUCDE.getUserId();UIid3=XUCDE.getAliasName();};this.checkOwner=function(XUCDE){if(XUCDE==null)false;if(yVrBg==XUCDE.getUserId())return true;else return false;};this.k0UcY=function(){return vcrQi};this.setEntities=function(xowZq){MLeqA=xowZq;};this.SjwO1=function(){if(MLeqA.length>0)return true;return false;};this.assignEntities=function(svvMZ){if(svvMZ)MLeqA=svvMZ.getEntitiesByNames(vcrQi);};this.hasEntity=function(entity){if(MLeqA.includes(entity))return true;else return false;};this.addEntities=function(xowZq){if(xowZq.length>0){xowZq.forEach(value=>{if(!MLeqA.includes(value)){MLeqA.push(value);}});}};this.removeEntities=function(xowZq){var result=new Array();if(xowZq.length>0){MLeqA.forEach(value=>{if(!xowZq.includes(value)){result.push(value);}});MLeqA=result;}};this.loadFromJSON=function(Yk_cn){if(Yk_cn.faId!=undefined)SeGzl=Yk_cn.faId;if(Yk_cn.faTtl!=undefined)vM1ju=Yk_cn.faTtl;if(Yk_cn.faDesc!=undefined)eWaLB=Yk_cn.faDesc;if(Yk_cn.faFnm!=undefined)HFMbL=Yk_cn.faFnm;if(Yk_cn.ownerName!=undefined)UIid3=Yk_cn.ownerName;if(Yk_cn.ownerId!=undefined)yVrBg=Yk_cn.ownerId;if(Yk_cn.entNames!=undefined)vcrQi=Yk_cn.entNames;};this.getObjectAsJsonString=function(){var A7Zij="\x5b";for(var tbn6H=0;tbn6H<MLeqA.length;tbn6H++){if(tbn6H>0)A7Zij=A7Zij+"\x2c";A7Zij=A7Zij+"\x22"+MLeqA[tbn6H].entityFullName+"\x22";}A7Zij=A7Zij+"\x5d";let RtA8F="\x7b"+"\x22\x6f\x77\x6e\x65\x72\x49\x64\x22\x3a\x22"+yVrBg+"\x22\x2c"+"\x22\x6f\x77\x6e\x65\x72\x4e\x61\x6d\x65\x22\x3a\x22"+UIid3+"\x22\x2c"+"\x22\x66\x61\x49\x64\x22\x3a\x22"+SeGzl+"\x22\x2c"+"\x22\x66\x61\x54\x74\x6c\x22\x3a\x22"+vM1ju+"\x22\x2c"+"\x22\x66\x61\x44\x65\x73\x63\x22\x3a\x22"+eWaLB+"\x22\x2c"+"\x22\x66\x61\x46\x6e\x6d\x22\x3a\x22"+HFMbL+"\x22\x2c"+"\x22\x65\x6e\x74\x4e\x61\x6d\x65\x73\x22\x3a"+A7Zij+"\x7d";return RtA8F;};this.downloadFile=function(XUCDE){let zJiAX=cvXLG.ZDCpB(XUCDE)+"\x2f\x46\x69\x6c\x65\x73\x2f"+SeGzl;let FTupJ=encodeURI(HFMbL);let kSWx0="\x67\x65\x74\x46\x69\x6c\x65\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x2e\x70\x68\x70\x3f"+"\x74\x6f\x6b\x65\x6e\x3d"+XUCDE.cI9vB()+"\x26\x70\x61\x74\x68\x3d"+zJiAX+"\x26\x66\x4e\x61\x6d\x65\x3d"+FTupJ;window.open(kSWx0,"\x5f\x62\x6c\x61\x6e\x6b");};this.uploadFile=function(XUCDE,lpJy4){let zJiAX=cvXLG.ZDCpB(XUCDE)+"\x2f\x46\x69\x6c\x65\x73\x2f"+SeGzl;var KNYa5="";if((cvXLG.jB_b9()!=XUCDE.getUserId())&&(cvXLG.tBOzA()==true))KNYa5="\x7b\x22\x69\x44\x22\x3a"+XUCDE.cI9vB()+"\x2c\x22\x66\x69\x6c\x65\x4e\x61\x6d\x65\x22\x3a\x22"+zJiAX+"\x22\x2c\x22\x61\x63\x63\x65\x73\x73\x22\x3a\x5b\x22"+cvXLG.jB_b9()+"\x22\x5d\x7d";else KNYa5="\x7b\x22\x69\x44\x22\x3a"+XUCDE.cI9vB()+"\x2c\x22\x66\x69\x6c\x65\x4e\x61\x6d\x65\x22\x3a\x22"+zJiAX+"\x22\x7d";Poi3dHelpers.JbPsi("\x55\x70\x6c\x6f\x61\x64\x46\x69\x6c\x65",lpJy4,KNYa5,this.gS8__,this._PkFv,this.JsxvK,this);};this.gS8__=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this._PkFv(L2Wt0);return;}var Yk_cn=tZ1J1.response;if(Yk_cn.erC!=0){D0ol4=Yk_cn.erT;var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x75\x70\x6c\x6f\x61\x64\x46\x69\x6c\x65\x41\x74\x63\x68\x50\x72\x6f\x67\x72\x65\x73\x73\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x75\x70\x6c\x6f\x61\x64\x46\x69\x6c\x65\x41\x74\x63\x68\x50\x72\x6f\x67\x72\x65\x73\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}};this._PkFv=function(L2Wt0){var tZ1J1=L2Wt0.target;D0ol4="\x43\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x73\x61\x76\x65\x20\x74\x68\x65\x20\x66\x69\x6c\x65\x20\x61\x74\x74\x63\x68\x65\x6d\x65\x6e\x74";var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x75\x70\x6c\x6f\x61\x64\x46\x69\x6c\x65\x41\x74\x63\x68\x50\x72\x6f\x67\x72\x65\x73\x73\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.JsxvK=function(L2Wt0){{var Gf_NH=((L2Wt0.loaded/L2Wt0.total)*100).toFixed(0);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x75\x70\x6c\x6f\x61\x64\x46\x69\x6c\x65\x41\x74\x63\x68\x50\x72\x6f\x67\x72\x65\x73\x73",progress:Gf_NH,calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);}};};var njKKy=function(){var nHmKj=new Array();this.TLtzq=function(){return nHmKj};this.OMpOT=function(L3Ehr){this.setLocalChangeFlag(true);nHmKj=XO3Ax;};this.loadFromJSON=function(JKAul,FvoS1){};this.PF_my=function(A9Vob){};this.readFromStorage=function(A9Vob){};this.miqMr(this.loadFromJSON);this.setFileName("\x6e\x65\x77\x73\x46\x65\x65\x64\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x4e\x65\x77\x73\x46\x65\x65\x64\x73");this.uV0Xt(20000);};njKKy.prototype=new Poi3dBasicAttachment();var yT0Zp=function(ldeCA){var ehmat=Poi3dHelpers.generateGuid();var qFZUZ="";var rWND5="";var sZiXA="";var cvXLG=ldeCA;this.getId=function(){return ehmat};this.setId=function(XVcPj){ehmat=XVcPj;};this.j_rE2=function(){return qFZUZ};this.P7HSs=function(ZEsQM){qFZUZ=ZEsQM;};this.getDesc=function(){return rWND5};this.setDesc=function(kgwCF){rWND5=kgwCF;};this.l9lqQ=function(){return sZiXA};this.WULds=function(pcq_S){sZiXA=pcq_S;};this.loadFromJSON=function(Yk_cn){if(Yk_cn.j8hHe!=undefined)ehmat=Yk_cn.j8hHe;if(Yk_cn.bPIxK!=undefined)qFZUZ=Yk_cn.bPIxK;if(Yk_cn.C4NZT!=undefined)rWND5=Yk_cn.C4NZT;if(Yk_cn.EQCc0!=undefined)sZiXA=Yk_cn.EQCc0;};this.getObjectAsJsonString=function(){let RtA8F="\x7b"+"\x22\x6e\x66\x49\x64\x22\x3a\x22"+ehmat+"\x22\x2c"+"\x22\x6e\x66\x55\x72\x6c\x22\x3a\x22"+qFZUZ+"\x22\x2c"+"\x22\x6e\x66\x44\x65\x73\x63\x22\x3a\x22"+rWND5+"\x22\x2c"+"\x22\x6e\x66\x49\x6e\x6d\x22\x3a\x22"+sZiXA+"\x7d";return RtA8F;};};var Poi3dBomStructures=function(){var DVJEf=new Array();this.IcGRw=function(){return DVJEf};this.GtysP=function(Bt17m){this.setLocalChangeFlag(true);DVJEf=Bt17m;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let rYB6c=null;let C0GwG=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){rYB6c=new CmiProductStructure();rYB6c.loadFromJSON(JKAul[tbn6H]);C0GwG.push(rYB6c);}L38Np.GtysP(C0GwG);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x42\x6f\x6d\x53\x74\x72\x75\x63\x74\x75\x72\x65\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(DVJEf,A9Vob);else this.T_SEJ(DVJEf);};this.readFromStorage=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null)){let hZUmw=this.readFromBrowserStorage(A9Vob);if(hZUmw!=null){let HcINC=JSON.parse(hZUmw);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(DVJEf);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.miqMr(this.loadFromJSON);this.setFileName("\x62\x6f\x6d\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x42\x6f\x6d\x53\x74\x72\x75\x63\x74\x75\x72\x65\x73");this.uV0Xt(20000);};Poi3dBomStructures.prototype=new Poi3dBasicAttachment();var Poi3dFileAccessLog=function(){var yv15q=new Array();this.PVBMf=function(){return yv15q};this.tzKRX=function(i19qv){yv15q=i19qv;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let nskye=null;let OfR4g=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){nskye=new Poi3dFileAccessLogEntry();nskye.loadFromJSON(JKAul[tbn6H]);OfR4g.push(nskye);}L38Np.tzKRX(OfR4g);var OFgA6=null;switch(L38Np.getContext()){case "\x44\x6f\x63\x75\x6d\x65\x6e\x74\x4c\x6f\x67":OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x44\x6f\x63\x75\x6d\x65\x6e\x74\x4c\x6f\x67\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);break;case "\x46\x69\x6c\x65\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x4c\x6f\x67":OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x46\x69\x6c\x65\x41\x74\x74\x61\x63\x68\x6d\x65\x6e\x74\x4c\x6f\x67\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);break;}};this.miqMr(this.loadFromJSON);this.uV0Xt(3000);};Poi3dFileAccessLog.prototype=new Poi3dBasicAttachment();var Poi3dFileAccessLogEntry=function(){var SNrBo="";var z4ln3="";var A04l_="";this.getFileName=function(){return SNrBo};this.getFileAccessDate=function(){return z4ln3};this.getFileAccessUserName=function(){return A04l_};this.loadFromJSON=function(Yk_cn){if(Yk_cn.fnm!=undefined)SNrBo=Yk_cn.fnm;if(Yk_cn.dT!=undefined)z4ln3=Yk_cn.dT;if(Yk_cn.aL!=undefined)A04l_=Yk_cn.aL;};};var Poi3dChat=function(){var uRgou=new Array();var jEoRW=new Array();var bFMPR=null;var c7IBe="\x64\x6f\x63";this.getChatEntries=function(){return jEoRW};this.G_CFs=function(IJDps){jEoRW=IJDps;};this.setAiBots=function(RDoeO){uRgou=RDoeO;};this.N6E6U=function(){return bFMPR};this.setOnChangedCallback=function(KICsn){bFMPR=KICsn;};this.getChatType=function(){return c7IBe};this.vsOYx=function(f1Qrq){c7IBe=f1Qrq;if(c7IBe=="\x75\x73\x72"){this.setFileName("\x75\x73\x72\x43\x68\x61\x74\x2e\x6a\x73\x6f\x6e");this.qnz19("\x55\x73\x65\x72\x43\x68\x61\x74");}else if(c7IBe=="\x67\x72\x70"){this.setFileName("\x67\x72\x70\x43\x68\x61\x74\x2e\x6a\x73\x6f\x6e");this.qnz19("\x47\x72\x6f\x75\x70\x43\x68\x61\x74");}};this.clearEntries=function(){jEoRW=new Array();};this.loadFromJSON=function(JKAul,FvoS1){let NpVpV=null;let oZvpA=new Array();let L38Np=this;UbufW=null;if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;let ti1Ov=L38Np.e48py.kcEqV();for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){NpVpV=new Poi3dChatEntry();if(JKAul[tbn6H].enc1!=undefined)UbufW=Poi3dHelpers.fR3im(JKAul[tbn6H],ti1Ov);else UbufW=JKAul[tbn6H];if(UbufW!=null)NpVpV.loadFromJSON(UbufW);oZvpA.push(NpVpV);}L38Np.G_CFs(oZvpA);var OFgA6=null;if(c7IBe=="\x75\x73\x72")OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x55\x73\x65\x72\x43\x68\x61\x74\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};else if(c7IBe=="\x67\x72\x70")OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x47\x72\x6f\x75\x70\x43\x68\x61\x74\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};else OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x44\x6f\x63\x75\x6d\x65\x6e\x74\x43\x68\x61\x74\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.miqMr(this.loadFromJSON);this.setFileName("\x64\x6f\x63\x43\x68\x61\x74\x2e\x6a\x73\x6f\x6e");this.qnz19("\x44\x6f\x63\x75\x6d\x65\x6e\x74\x43\x68\x61\x74");this.uV0Xt(3000);this.getObjectAsJsonString=function(){var A7Zij="\x5b";for(var tbn6H=0;tbn6H<jEoRW.length;tbn6H++){if(tbn6H>0)A7Zij=A7Zij+"\x2c";A7Zij=A7Zij+jEoRW[tbn6H].getObjectAsJsonString();}A7Zij=A7Zij+"\x5d";return A7Zij;};this.PF_my=function(){this.T_SEJ(jEoRW);};this.CXGIa=function(pwiqE,otpfT,xD2Gu,yLfES,SH7PK,w8UzJ){let aaprD=null;let vJTUc="";let ASKNP=yLfES.replace(/"/g,"\x5c\x22");if(ASKNP.includes("\x40")&&ASKNP.includes("\x3a")){let startIndex=ASKNP.indexOf("\x40")+1;let tXZZr=ASKNP.indexOf("\x3a",startIndex);if(startIndex>0&&tXZZr>startIndex){let wLaWf=ASKNP.slice(startIndex,tXZZr);vJTUc=ASKNP.substring(tXZZr+1);aaprD=uRgou.find((kfyzJ)=>kfyzJ.getBotName()===wLaWf);}if(aaprD==null){this.YYYmk="\x4e\x6f\x20\x62\x6f\x74\x20\x77\x69\x74\x68\x20\x6e\x61\x6d\x65\x20"+wLaWf+"\x20\x66\x6f\x75\x6e\x64";let OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}}let VIMLZ=new Poi3dChatEntry();let n2MqE=128;let h60De=this.getCurrentDoc();let Y0KTn=this.fBzym();VIMLZ.AkYML(otpfT);VIMLZ.setImageFlag(true);if(xD2Gu.length>0)VIMLZ.I0O0O(xD2Gu);VIMLZ.dmY7G(pwiqE);VIMLZ.q25pJ(ASKNP);VIMLZ.grKub(SH7PK);let ZXlfz="";if(c7IBe=="\x67\x72\x70")ZXlfz=Y0KTn.oyCnN(this.e48py)+"\x2f\x43\x68\x61\x74\x46\x69\x6c\x65\x73\x2f"+VIMLZ.getId()+"\x2e\x70\x6e\x67";else ZXlfz=h60De.oyCnN(this.e48py)+"\x2f\x43\x68\x61\x74\x46\x69\x6c\x65\x73\x2f"+VIMLZ.getId()+"\x2e\x70\x6e\x67";let HjBMT="";if(c7IBe=="\x67\x72\x70")HjBMT=Y0KTn.Mb0PC(this.e48py,"\x43\x68\x61\x74\x46\x69\x6c\x65\x73\x2f"+VIMLZ.getId()+"\x2e\x70\x6e\x67");else HjBMT=h60De.Mb0PC(this.e48py,"\x43\x68\x61\x74\x46\x69\x6c\x65\x73\x2f"+VIMLZ.getId()+"\x2e\x70\x6e\x67");let XQuco="\x3c\x69\x6d\x67\x20\x73\x74\x79\x6c\x65\x3d\x27\x66\x69\x6c\x74\x65\x72\x3a\x69\x6e\x76\x65\x72\x74\x28\x30\x25\x29\x3b\x27\x20\x73\x72\x63\x3d\x27\x67\x65\x74\x44\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x70\x68\x70\x3f\x66\x69\x6c\x65\x3d"+ZXlfz+"\x27\x3e\x3c\x62\x72\x3e";VIMLZ.q25pJ(XQuco+ASKNP);this.U_Zir=VIMLZ;this.vJTUc=vJTUc;this.aaprD=aaprD;var KNYa5="\x7b\x22\x69\x44\x22\x3a"+this.e48py.cI9vB()+"\x2c\x22\x68\x65\x69\x67\x68\x74\x22\x3a\x22"+n2MqE+"\x22"+HjBMT+"\x7d";Poi3dHelpers.cYo14("\x55\x70\x6c\x6f\x61\x64\x49\x6d\x61\x67\x65",w8UzJ,n2MqE,KNYa5,this.L4Ckn,this.ktZB5,this.X_NOu,this);};this.L4Ckn=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.ktZB5(L2Wt0);return;}if(this.U_Zir==undefined){this.ktZB5(L2Wt0);return;}var Yk_cn=tZ1J1.response;if(Yk_cn.erC!=0){this.U_Zir=null;delete this.U_Zir;this.aaprD=null;delete this.aaprD;delete this.vJTUc;this.YYYmk=Yk_cn.erT;var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65\x43\x68\x61\x74\x49\x6d\x61\x67\x65\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}let aaprD=this.aaprD;let vJTUc=this.vJTUc;let VIMLZ=this.U_Zir;let yLfES=VIMLZ.getText();let dRms0=VIMLZ.getObjectAsJsonString();if(this.e48py.nWvA6()==1){let ti1Ov=this.e48py.kcEqV();dRms0="\x7b\x22\x65\x6e\x63\x31\x22\x3a\x22"+Poi3dHelpers.dXxDR(dRms0,ti1Ov)+"\x22\x7d";}this.appendData(dRms0);this.U_Zir=null;delete this.U_Zir;if((aaprD!=null)&&(vJTUc.length>0)){let krVTs=new Poi3dChatEntry();krVTs.setId("\x62\x6f\x74\x2d"+krVTs.getId());krVTs.AkYML(VIMLZ.getId());krVTs.I0O0O(VIMLZ.getThreadId());krVTs.dmY7G(aaprD.getBotName());this.J6QBR(aaprD.getId(),krVTs,vJTUc,"");}this.aaprD=null;delete this.aaprD;delete this.vJTUc;}};this.ktZB5=function(L2Wt0){var tZ1J1=L2Wt0.target;if(this.U_Zir!=undefined){this.U_Zir=null;delete this.U_Zir;}this.YYYmk="\x43\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x73\x61\x76\x65\x20\x74\x68\x65\x20\x63\x68\x61\x74\x20\x69\x6d\x61\x67\x65";var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65\x43\x68\x61\x74\x49\x6d\x61\x67\x65\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.X_NOu=function(L2Wt0){};this.MF3eK=function(pwiqE,otpfT,xD2Gu,yLfES,SH7PK,RVjBE){let aaprD=null;let vJTUc="";let ASKNP=yLfES.replace(/"/g,"\x5c\x22");if(ASKNP.includes("\x40")&&ASKNP.includes("\x3a")){let startIndex=ASKNP.indexOf("\x40")+1;let tXZZr=ASKNP.indexOf("\x3a",startIndex);let wLaWf="\x3f";if(startIndex>0&&tXZZr>startIndex){wLaWf=ASKNP.slice(startIndex,tXZZr);vJTUc=ASKNP.substring(tXZZr+1);aaprD=uRgou.find((kfyzJ)=>kfyzJ.getBotName()===wLaWf);}if(aaprD==null){this.YYYmk="\x4e\x6f\x20\x62\x6f\x74\x20\x77\x69\x74\x68\x20\x6e\x61\x6d\x65\x20"+wLaWf+"\x20\x66\x6f\x75\x6e\x64";let OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return null;}}let VIMLZ=new Poi3dChatEntry();VIMLZ.AkYML(otpfT);if(xD2Gu.length>0)VIMLZ.I0O0O(xD2Gu);VIMLZ.dmY7G(pwiqE);VIMLZ.grKub(SH7PK);VIMLZ.q25pJ(ASKNP);jEoRW.push(VIMLZ);if(RVjBE){}else{let dRms0=VIMLZ.getObjectAsJsonString();if(this.e48py.nWvA6()==1){let ti1Ov=this.e48py.kcEqV();dRms0="\x7b\x22\x65\x6e\x63\x31\x22\x3a\x22"+Poi3dHelpers.dXxDR(dRms0,ti1Ov)+"\x22\x7d";}this.appendData(dRms0);}if((aaprD!=null)&&(vJTUc.length>0)){let KDFzZ="";if(otpfT.length>0){let dU_ng=jEoRW.find((DcF05)=>DcF05.getId()===otpfT);KDFzZ=dU_ng.getText().replace(/[\x00-\x1F\x7F]/g,'').replace(/[\n\r]+/g,"\x20").replace(/\s{2,}/g,"\x20").trim();}let krVTs=new Poi3dChatEntry();krVTs.setId("\x62\x6f\x74\x2d"+krVTs.getId());krVTs.AkYML(VIMLZ.getId());krVTs.I0O0O(VIMLZ.getThreadId());krVTs.dmY7G(aaprD.getBotName());this.J6QBR(aaprD.getId(),krVTs,vJTUc,KDFzZ);}return VIMLZ;};this.J6QBR=function(nmETm,NpVpV,ntWHX,KDFzZ){this.h9hGg=true;let KNYa5="";let AtVtF=NpVpV.getObjectAsJsonString();let ti1Ov=this.e48py.ZEkd1();let mn8nn=this.lVH50();let h60De=this.getCurrentDoc();let Y0KTn=this.fBzym();if((this.context!="\x55\x73\x65\x72\x43\x68\x61\x74")&&(this.context!="\x47\x72\x6f\x75\x70\x43\x68\x61\x74")&&(h60De==null))return;if(this.context=="\x55\x73\x65\x72\x43\x68\x61\x74"){KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+"\x2c\x22\x61\x69\x49\x64\x22\x3a\x22"+nmETm+"\x22"+"\x2c\x22\x73\x6c\x74\x22\x3a\x22"+ti1Ov+"\x22"+"\x2c\x22\x71\x75\x65\x73\x74\x69\x6f\x6e\x22\x3a\x22"+ntWHX+"\x22"+"\x2c\x22\x72\x65\x70\x6c\x79\x46\x72\x6f\x6d\x22\x3a\x22"+KDFzZ+"\x22"+"\x2c\x22\x6d\x73\x67\x44\x61\x74\x61\x22\x3a"+JSON.stringify(AtVtF)+"\x7d";}else if(this.context=="\x47\x72\x6f\x75\x70\x43\x68\x61\x74"){let kaQXN=this.WxeUn(Y0KTn.getGroupUsers());KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+Y0KTn.Mb0PC(mn8nn,this.lW11a)+"\x2c\x22\x61\x69\x49\x64\x22\x3a\x22"+nmETm+"\x22"+"\x2c\x22\x73\x6c\x74\x22\x3a\x22"+ti1Ov+"\x22"+"\x2c\x22\x71\x75\x65\x73\x74\x69\x6f\x6e\x22\x3a\x22"+ntWHX+"\x22"+"\x2c\x22\x72\x65\x70\x6c\x79\x46\x72\x6f\x6d\x22\x3a\x22"+KDFzZ+"\x22"+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+kaQXN+"\x2c\x22\x67\x72\x70\x49\x64\x22\x3a\x22"+Y0KTn.getGroupId()+"\x22"+"\x2c\x22\x6d\x73\x67\x44\x61\x74\x61\x22\x3a"+JSON.stringify(AtVtF)+"\x7d";}else{let jzORL=this.WxeUn(h60De.getDocUsers());KNYa5="\x7b\x22\x69\x44\x22\x3a"+mn8nn.cI9vB()+h60De.Mb0PC(mn8nn,this.lW11a)+"\x2c\x22\x61\x69\x49\x64\x22\x3a\x22"+nmETm+"\x22"+"\x2c\x22\x73\x6c\x74\x22\x3a\x22"+ti1Ov+"\x22"+"\x2c\x22\x71\x75\x65\x73\x74\x69\x6f\x6e\x22\x3a\x22"+ntWHX+"\x22"+"\x2c\x22\x72\x65\x70\x6c\x79\x46\x72\x6f\x6d\x22\x3a\x22"+KDFzZ+"\x22"+"\x2c\x22\x72\x65\x63\x69\x70\x69\x65\x6e\x74\x73\x22\x3a"+jzORL+"\x2c\x22\x64\x6f\x63\x49\x64\x22\x3a\x22"+h60De.getDocId()+"\x22"+"\x2c\x22\x6d\x73\x67\x44\x61\x74\x61\x22\x3a"+JSON.stringify(AtVtF)+"\x7d";}Poi3dHelpers.callPhpFunction("\x2e\x2f\x70\x6f\x69\x33\x64\x41\x69\x43\x6f\x6e\x6e\x65\x63\x74\x6f\x72\x2e\x70\x68\x70\x3f\x66\x75\x6e\x63\x3d\x41\x73\x6b\x41\x69\x42\x6f\x74",KNYa5,this.P18Pl,this.nWCeP,this);};this.P18Pl=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this.nWCeP(L2Wt0);return;}var Yk_cn=tZ1J1.response;if(Yk_cn.erC!=0){this.YYYmk=Yk_cn.erT;var OFgA6=null;OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);return;}if(this.context=="\x55\x73\x65\x72\x43\x68\x61\x74"){let VIMLZ=new Poi3dChatEntry();let Vvroj=Yk_cn.dt.tXt.replace(/[\x00-\x1F\x7F]/g,'').replace(/[\n\r]+/g,"\x20").replace(/\s{2,}/g,"\x20").trim();VIMLZ.setId(Yk_cn.dt.ceId);VIMLZ.I0O0O(Yk_cn.dt.trd);VIMLZ.AkYML(Yk_cn.dt.rep);VIMLZ.dmY7G(Yk_cn.dt.aL);VIMLZ.grKub(new Date(Yk_cn.dt.cDt));VIMLZ.q25pJ(Vvroj);jEoRW.push(VIMLZ);if(bFMPR!=null)bFMPR("");}else{this.h9hGg=false;var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x73\x61\x76\x65"+this.context+"\x53\x75\x63\x63\x65\x73\x73",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);}}};this.nWCeP=function(L2Wt0){var tZ1J1=L2Wt0.target;this.YYYmk="\x43\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x67\x65\x74\x20\x61\x6e\x73\x77\x65\x72\x20\x66\x72\x6f\x6d\x20\x62\x6f\x74";var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x45\x52\x52\x4f\x52",info:"\x73\x61\x76\x65"+this.context+"\x45\x72\x72\x6f\x72",calledFrom:this,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};};Poi3dChat.prototype=new Poi3dBasicAttachment();var Poi3dChatEntry=function(){var scKZX=Poi3dHelpers.generateGuid();var oHcbt="";var QTUXQ="";var yweqQ=scKZX;var AIXFK="";var qHV_R=new Date();var EAnHw=false;this.getId=function(){return scKZX;};this.setId=function(krNgI){scKZX=krNgI;};this.getRepToId=function(){return QTUXQ};this.AkYML=function(EY6k_){QTUXQ=EY6k_;};this.getThreadId=function(){return yweqQ};this.I0O0O=function(LTf0D){yweqQ=LTf0D;};this.getUserAliasName=function(){return oHcbt;};this.dmY7G=function(ssKdZ){oHcbt=ssKdZ;};this.getText=function(){return AIXFK;};this.q25pJ=function(V7stn){AIXFK=V7stn;};this.getImageFlag=function(){return EAnHw;};this.setImageFlag=function(rY6Ae){EAnHw=rY6Ae;};this.getDateString=function(){if(qHV_R==null)qHV_R=new Date();return qHV_R.toLocaleString("\x64\x65\x2d\x44\x45",{month:"\x73\x68\x6f\x72\x74",year:"\x6e\x75\x6d\x65\x72\x69\x63",day:"\x6e\x75\x6d\x65\x72\x69\x63"})+"\x20"+qHV_R.toLocaleTimeString();};this.grKub=function(ypIkN){qHV_R=ypIkN;};this.loadFromJSON=function(Yk_cn){if(Yk_cn.ceId!=undefined){scKZX=Yk_cn.ceId;yweqQ=scKZX;}if(Yk_cn.aL!=undefined)oHcbt=Yk_cn.aL;if(Yk_cn.rep!=undefined)QTUXQ=Yk_cn.rep;if(Yk_cn.tXt!=undefined)AIXFK=Yk_cn.tXt;if(Yk_cn.cDt!=undefined)qHV_R=new Date(Yk_cn.cDt);if(Yk_cn.cI!=undefined)EAnHw=Yk_cn.cI;if(Yk_cn.trd!=undefined)yweqQ=Yk_cn.trd;};this.getObjectAsJsonString=function(){let RtA8F="\x7b"+"\x22\x63\x65\x49\x64\x22\x3a\x22"+scKZX+"\x22\x2c"+"\x22\x61\x4c\x22\x3a\x22"+oHcbt+"\x22\x2c"+"\x22\x72\x65\x70\x22\x3a\x22"+QTUXQ+"\x22\x2c"+"\x22\x74\x72\x64\x22\x3a\x22"+yweqQ+"\x22\x2c"+"\x22\x63\x44\x74\x22\x3a\x22"+qHV_R.toUTCString()+"\x22\x2c"+"\x22\x63\x49\x22\x3a"+JSON.stringify(EAnHw)+"\x2c"+"\x22\x74\x58\x74\x22\x3a\x22"+AIXFK+"\x22\x7d";return RtA8F;};};var Poi3dSensors=function(){var OPci_=new Array();var NmUCo="\x73\x65\x6e\x73\x6f\x72\x41\x72\x65\x61";var Tyw30=null;var ltlvj=null;var Id1LJ=null;let CU8sA=document.getElementById(NmUCo);if(CU8sA==null){let mpslw=document.getElementById("\x62\x6f\x64\x79\x43\x6f\x6e\x74\x61\x69\x6e\x65\x72");if(mpslw!=null){Tyw30=document.createElement("\x64\x69\x76");Tyw30.className="\x73\x65\x6e\x73\x6f\x72\x73";Tyw30.id=NmUCo;mpslw.appendChild(Tyw30);}}else{Tyw30=CU8sA;}this.Zwlz3=function(){return Id1LJ};this.setDialogUpdateFunction=function(sPncL){Id1LJ=sPncL;};this.SOh1z=function(){return OPci_};this.vAyl2=function(WT93J){let GD6ir=OPci_.filter(x=>!WT93J.includes(x));for(let tbn6H=0;tbn6H<GD6ir.length;tbn6H++){GD6ir[tbn6H].N1WuZ().remove();}this.setLocalChangeFlag(true);OPci_=WT93J;};this.setCmiWindowReference=function(IIxKL){ltlvj=IIxKL;};this.tuM_v=function(){return ltlvj};this.N1WuZ=function(){return Tyw30};this.showSingle=function(W2AiB){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++){if(OPci_[tbn6H]==W2AiB)OPci_[tbn6H].setUiVisible(true,false);else OPci_[tbn6H].setUiVisible(false,false);}};this.showCritical=function(EkgON){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++){if(OPci_[tbn6H].getPageRef()==EkgON){if(OPci_[tbn6H].e5lKX()==true)OPci_[tbn6H].setUiVisible(true,false);else OPci_[tbn6H].setUiVisible(false,false);}else OPci_[tbn6H].setUiVisible(false,false);}};this.showAll=function(EkgON){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++){if(OPci_[tbn6H].getPageRef()==EkgON)OPci_[tbn6H].setUiVisible(true,false);else OPci_[tbn6H].setUiVisible(false,false);}};this.hideAll=function(){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++){OPci_[tbn6H].setUiVisible(false,false);}};this.updatePageVisibility=function(EkgON){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++){if(OPci_[tbn6H].getPageRef()==EkgON)OPci_[tbn6H].setUiVisible(true,false);else OPci_[tbn6H].setUiVisible(false,false);}};this.restoreVisibility=function(EkgON){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++){OPci_[tbn6H].restoreVisibility();if(OPci_[tbn6H].getPageRef()==EkgON)OPci_[tbn6H].setUiVisible(true,false);else OPci_[tbn6H].setUiVisible(false,false);}};this.updatePositions=function(wFKvU){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++){if(OPci_[tbn6H].getUiVisible()==true)OPci_[tbn6H].updatePosition(wFKvU);}};this.removeHtmlObjects=function(){let CU8sA=document.getElementById(NmUCo);if(CU8sA!=null){CU8sA.style.display="\x6e\x6f\x6e\x65";while(CU8sA.hasChildNodes()){CU8sA.removeChild(CU8sA.firstChild);}CU8sA.style.display="\x62\x6c\x6f\x63\x6b";}};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let XKGVL=null;let KbW6_=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){XKGVL=new Poi3dSensor(L38Np);XKGVL.loadFromJSON(JKAul[tbn6H]);KbW6_.push(XKGVL);}L38Np.vAyl2(KbW6_);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x53\x65\x6e\x73\x6f\x72\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(OPci_,A9Vob);else this.T_SEJ(OPci_);};this.readFromStorage=function(A9Vob){for(let tbn6H=0;tbn6H<OPci_.length;tbn6H++)OPci_[tbn6H].stopValueUpdate();if((A9Vob!=undefined)&&(A9Vob!=null)){let X2Pz3=this.readFromBrowserStorage(A9Vob);if(X2Pz3!=null){let HcINC=JSON.parse(X2Pz3);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(OPci_);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.miqMr(this.loadFromJSON);this.setFileName("\x73\x65\x6e\x73\x6f\x72\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x53\x65\x6e\x73\x6f\x72\x73");this.uV0Xt(20000);};Poi3dSensors.prototype=new Poi3dBasicAttachment();var Poi3dSensor=function(DfybS){var vcrQi=new Array();var MLeqA=new Array();var wjjRw=Poi3dHelpers.generateGuid();var NZEuU="";var s15qH=[1.0,1.0,0.0,1.0];var ZZaHJ=5;var yCybu=0.2;var BWRf2=new Array();var O_Jby=new Array();var GLBrq="";var rn9dO="";var ZdP2u="";var JEUPt="\x41\x6a\x61\x78\x51\x75\x65\x72\x79";var tKDEJ="\x47\x65\x74\x4d\x65\x74\x68\x6f\x64";var Mia1r="\x4a\x73\x6f\x6e\x54\x79\x70\x65";var Y_MQr="\x46\x6f\x72\x6d\x54\x79\x70\x65";var ugQt7=true;var NKKVz="";var aXBv2="";var TbDQJ="";var C6J4L="";var Ff9ly="\x41\x6a\x61\x78\x51\x75\x65\x72\x79";var OuC3N="\x47\x65\x74\x4d\x65\x74\x68\x6f\x64";var tG0Hu="\x4a\x73\x6f\x6e\x54\x79\x70\x65";var CAU8A="\x46\x6f\x72\x6d\x54\x79\x70\x65";var eZcwa=false;var n6gL7="";var Mx3CJ="";var e4f4f=10;var ITGM2=false;var _BNYq="";var LKNPI=[0.0,0.0,0.0];var pKdZZ="";var qNBFJ=1;var r0Lux=0.0;var Bz5Ev=0.0;var ymriL=0.0;var c26D0=new Date("\x32\x30\x30\x30\x2d\x30\x31\x2d\x30\x31\x54\x31\x32\x3a\x30\x30\x3a\x30\x30");var abfSO=false;var rZrxo=-1;var E6H8F=DfybS;var SNW6m=[0,0];var Tyw30=null;var _jsonResponseObject=null;var ibdO5=false;var MkBDi=false;var FypFy=false;var LONDd=null;var _HBf3="\x63\x72\x65\x61\x74\x65\x64";var DL9PA=null;var Mq20H=0;this.getId=function(){return wjjRw};this.getState=function(){return _HBf3};this.getTitle=function(){return NZEuU};this.setTitle=function(VRCOa){NZEuU=VRCOa;};this.getBlinkColor=function(){return s15qH};this.setBlinkColor=function(axGwb){s15qH=axGwb;};this.getBlinkCount=function(){return ZZaHJ};this.setBlinkCount=function(YgfEn){ZZaHJ=YgfEn;};this.getBlinkPause=function(){return yCybu};this.setBlinkPause=function(SrD4K){yCybu=SrD4K;};this.getViewPosition=function(){return BWRf2};this.setViewPosition=function(ux21x){BWRf2=ux21x;};this.getViewAngles=function(){return O_Jby};this.setViewAngles=function(Nlq5q){O_Jby=Nlq5q;};this.getUpdateInterval=function(){return e4f4f};this.setUpdateInterval=function(ZE4Yv){e4f4f=ZE4Yv;};this.getStoredUiVisible=function(){return FypFy};this.getUiVisible=function(){return ITGM2};this.setUiVisible=function(TCofM,AEHCJ){if(AEHCJ)FypFy=TCofM;ITGM2=TCofM;if(ITGM2==true)Tyw30.style.display="\x62\x6c\x6f\x63\x6b";else Tyw30.style.display="\x6e\x6f\x6e\x65";};this.CJSOx=function(){FypFy=ITGM2;};this.restoreVisibility=function(){this.setUiVisible(FypFy,false);};this.getUiString=function(){return _BNYq};this.setUiString=function(fJch9){_BNYq=fJch9;Tyw30.innerText=this.getValueOutput();};this.getUiPosition=function(){return LKNPI};this.setUiPosition=function(vBg9s){LKNPI=vBg9s;};this.getPageRef=function(){return qNBFJ};this.setPageRef=function(HntYD){qNBFJ=HntYD;};this.getMaxValue=function(){return r0Lux};this.setMaxValue=function(d3Oto){r0Lux=d3Oto;this.Hksa7();};this.getMinValue=function(){return Bz5Ev};this.setMinValue=function(dDqWC){Bz5Ev=dDqWC;this.Hksa7();};this.getMaxFailedQueries=function(){return rZrxo};this.setMaxFailedQueries=function(xf3Nv){rZrxo=xf3Nv;this.Hksa7();};this.getLoginName=function(){return GLBrq};this.setLoginName=function(lg8Ko){GLBrq=lg8Ko;};this.getLoginPwd=function(){return rn9dO};this.setLoginPwd=function(tAQwE){rn9dO=tAQwE;};this.getLoginUrl=function(){return ZdP2u};this.setLoginUrl=function(SMAca){ZdP2u=SMAca;};this.getLoginMethod=function(){return JEUPt};this.setLoginMethod=function(L7MIH){JEUPt=L7MIH;};this.getLoginRequestMethod=function(){return tKDEJ};this.setLoginRequestMethod=function(ta29x){tKDEJ=ta29x;};this.getLoginDataType=function(){return Mia1r};this.setLoginDataType=function(sOp9O){Mia1r=sOp9O;};this.getLoginDataFormat=function(){return Y_MQr};this.setLoginDataFormat=function(V4i52){Y_MQr=V4i52;};this.getLoginUseCredentials=function(){return ugQt7};this.setLoginUseCredentials=function(atqta){ugQt7=atqta;};this.getLoginHeaders=function(){return NKKVz};this.setLoginHeaders=function(ffhuN){NKKVz=ffhuN;};this.getLoginPayload=function(){return aXBv2};this.setLoginPayload=function(GHBDV){aXBv2=GHBDV;};this.getLogoffUrl=function(){return TbDQJ};this.setLogoffUrl=function(pzjda){TbDQJ=pzjda;};this.getQueryUrl=function(){return C6J4L};this.setQueryUrl=function(N3m6P){C6J4L=N3m6P;};this.getQueryMethod=function(){return Ff9ly};this.setQueryMethod=function(Ellvr){Ff9ly=Ellvr;};this.getQueryRequestMethod=function(){return OuC3N};this.setQueryRequestMethod=function(Dzi_S){OuC3N=Dzi_S;};this.getQueryDataType=function(){return tG0Hu};this.setQueryDataType=function(uQaJN){tG0Hu=uQaJN;};this.getQueryDataFormat=function(){return CAU8A};this.setQueryDataFormat=function(J6Aml){CAU8A=J6Aml;};this.getQueryUseCredentials=function(){return eZcwa};this.setQueryUseCredentials=function(UigAu){eZcwa=UigAu;};this.getQueryHeaders=function(){return n6gL7};this.setQueryHeaders=function(_zlox){n6gL7=_zlox;};this.getQueryPayload=function(){return Mx3CJ};this.setQueryPayload=function(bWZnh){Mx3CJ=bWZnh;};this.getResponseObject=function(){return _jsonResponseObject};this.getUpdateActivated=function(){return abfSO};this.setUpdateActivated=function(VRv9s){abfSO=VRv9s;};this.getJsonRef=function(){return pKdZZ};this.setJsonRef=function(JA8hr){pKdZZ=JA8hr;};this.getCurrentValue=function(){return ymriL};this.getQueryDate=function(){return c26D0;};this.N1WuZ=function(){return Tyw30};this.setEntities=function(xowZq){MLeqA=xowZq;};this.getEntities=function(){return MLeqA;};this.SjwO1=function(){if(MLeqA.length>0)return true;return false;};this.getNrOfFailedQueries=function(){return Mq20H};this.assignEntities=function(svvMZ){if(svvMZ)MLeqA=svvMZ.getEntitiesByNames(vcrQi);};this.updatePosition=function(wFKvU){wFKvU.model2screen(LKNPI[0],LKNPI[1],LKNPI[2],SNW6m);Tyw30.style.left=SNW6m[0]+"\x70\x78";Tyw30.style.top=SNW6m[1]+"\x70\x78";};this.Hksa7=function(){if(this.e5lKX()==true)Tyw30.className="\x73\x65\x6e\x73\x6f\x72\x43\x72\x69\x74";else Tyw30.className="\x73\x65\x6e\x73\x6f\x72\x53\x74\x64";};this.e5lKX=function(){if(ymriL<Bz5Ev)return true;if(ymriL>r0Lux)return true;if((rZrxo>-1)&&(Mq20H>rZrxo))return true;return false;};this.I8F20=function(){let yTfgT=E6H8F.Zwlz3();if(yTfgT!=null)yTfgT("\x75\x70\x64\x61\x74\x65\x55\x69");};this.startValueUpdate=function(){if((LONDd==null)&&(C6J4L.length>0))LONDd=setInterval(this.querySensorValue,e4f4f*1000,this);};this.stopValueUpdate=function(){if(LONDd!=null){clearInterval(LONDd);LONDd=null;}};this.login=function(){if(MkBDi==false){k4LqF=new Object();k4LqF.Op13C=GLBrq;k4LqF.M1cIx=rn9dO;k4LqF.WzWIN=ZdP2u;k4LqF.qLa3S=JEUPt;k4LqF.Hwzfl=tKDEJ;k4LqF.JkUMX=Mia1r;k4LqF.Xw_DT=Y_MQr;k4LqF.iOt9C=ugQt7;k4LqF.Ge9mw=NKKVz;k4LqF.GJp61=aXBv2;switch(Ff9ly){case "\x41\x6a\x61\x78\x51\x75\x65\x72\x79":Poi3dHelpers.iKe4E("\x6c\x6f\x67\x69\x6e",this.n3_I5,this.VR7hc,this);break;case "\x46\x65\x74\x63\x68\x51\x75\x65\x72\x79":Poi3dHelpers.nLlAM("\x6c\x6f\x67\x69\x6e",this.Cl0xj,this.UjtUT,this);break;}}};this.n3_I5=function(L2Wt0){MkBDi=true;_HBf3="\x4c\x6f\x67\x69\x6e\x20\x73\x75\x63\x63\x65\x73\x73";this.I8F20();};this.VR7hc=function(L2Wt0){var tZ1J1=L2Wt0.target;var Yk_cn=tZ1J1.response;MkBDi=false;_HBf3="\x4c\x6f\x67\x69\x6e\x20\x66\x61\x69\x6c\x65\x64";this.I8F20();};this.Cl0xj=function(q5SWM,OIGcX){MkBDi=true;_HBf3="\x4c\x6f\x67\x69\x6e\x20\x73\x75\x63\x63\x65\x73\x73";OIGcX.I8F20();};this.UjtUT=function(q5SWM,OIGcX){MkBDi=false;_HBf3="\x4c\x6f\x67\x69\x6e\x20\x66\x61\x69\x6c\x65\x64";OIGcX.I8F20();};this.logoff=function(){MkBDi=false;_HBf3="\x63\x72\x65\x61\x74\x65\x64";this.I8F20();};this.detach=function(){this.stopValueUpdate();this.logoff();};this.getJsonQueryValue=function(){if((_jsonResponseObject!=null)&&(_jsonResponseObject.context!=undefined)&&(_jsonResponseObject.context!=null)&&(_jsonResponseObject.context=="\x70\x6f\x69\x33\x64\x53\x65\x6e\x73\x6f\x72\x51\x75\x65\x72\x79")){if(pKdZZ.length==0){try{let Vd97e=parseFloat(_jsonResponseObject.value);if(!isNaN(Vd97e)){_HBf3="\x51\x75\x65\x72\x79\x20\x73\x75\x63\x63\x65\x73\x73";Mq20H=0;this.Hksa7();ymriL=Vd97e;c26D0=new Date();Tyw30.innerText=this.getValueOutput();}else{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();}this.I8F20();}catch{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();this.I8F20();};}else{try{let ZHmZA="\x5f\x6a\x73\x6f\x6e\x52\x65\x73\x70\x6f\x6e\x73\x65\x4f\x62\x6a\x65\x63\x74\x2e\x76\x61\x6c\x75\x65\x2e"+pKdZZ;let Vd97e=eval(ZHmZA);if(!isNaN(Vd97e)){_HBf3="\x51\x75\x65\x72\x79\x20\x73\x75\x63\x63\x65\x73\x73";Mq20H=0;this.Hksa7();ymriL=Vd97e;c26D0=new Date();Tyw30.innerText=this.getValueOutput();}else{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();}this.I8F20();}catch{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();this.I8F20();};}}else if(pKdZZ.length==0){try{let Vd97e=parseFloat(_jsonResponseObject);if(!isNaN(Vd97e)){_HBf3="\x51\x75\x65\x72\x79\x20\x73\x75\x63\x63\x65\x73\x73";Mq20H=0;this.Hksa7();ymriL=Vd97e;c26D0=new Date();Tyw30.innerText=this.getValueOutput();}else{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();}this.I8F20();}catch{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();this.I8F20();};}else{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();this.I8F20();}return;};this.getValueOutput=function(Ct09j){let unubW=_BNYq;if((Ct09j!=undefined)&&(Ct09j!=null))unubW=Ct09j;let Y9kH3=unubW.indexOf("\x63\x61\x6c\x63\x28");if(Y9kH3==-1)return unubW;Y9kH3=Y9kH3+5;let c4amE=1;let LCqju=Y9kH3;for(let tbn6H=Y9kH3;tbn6H<unubW.length;tbn6H++){if(unubW.charAt(tbn6H)=="\x28")c4amE++;else if(unubW.charAt(tbn6H)=="\x29")c4amE--;if(c4amE==0){LCqju=tbn6H;tbn6H=unubW.length;}}if(Y9kH3==LCqju)return unubW;Uinec=unubW.substring(Y9kH3,LCqju);let aK8vC=ymriL;try{aK8vC=eval(Uinec.replace("\x24\x76\x61\x6c",ymriL));}catch{return unubW;}return unubW.substring(0,Y9kH3-5)+aK8vC.toFixed(2)+unubW.substring(LCqju+1);};this.querySensorValue=function(OIGcX,MHmeQ){if((MHmeQ!=undefined)&&(MHmeQ==true)){ibdO5=true;}else{ibdO5=false;}switch(Ff9ly){case "\x41\x6a\x61\x78\x51\x75\x65\x72\x79":Poi3dHelpers.iKe4E("\x71\x75\x65\x72\x79",OIGcX.nyMWD,OIGcX._2LHS,OIGcX);break;case "\x46\x65\x74\x63\x68\x51\x75\x65\x72\x79":Poi3dHelpers.nLlAM("\x71\x75\x65\x72\x79",OIGcX.ia_vE,OIGcX.jEpPZ,OIGcX);break;case "\x50\x68\x70\x51\x75\x65\x72\x79\x53\x65\x6e\x73\x6f\x72":if(C6J4L.includes("\x3d"))C6J4L=C6J4L.replace("\x3d",'');if(GLBrq.includes("\x3d"))GLBrq=GLBrq.replace("\x3d",'');if(rn9dO.includes("\x3d"))rn9dO=rn9dO.replace("\x3d",'');let VcWQN="\x73\x65\x6e\x73\x6f\x72\x55\x72\x6c\x3d"+C6J4L+"\x3b"+"\x75\x4e\x61\x6d\x65\x3d"+GLBrq+"\x3b"+"\x75\x50\x77\x64\x3d"+rn9dO+"\x3b"+Mx3CJ;Poi3dHelpers.QG43b(ZdP2u,VcWQN,OIGcX.nyMWD,OIGcX._2LHS,OIGcX);break;case "\x57\x65\x62\x53\x6f\x63\x6b\x65\x74\x73\x51\x75\x65\x72\x79":if(DL9PA==null){DL9PA=new WebSocket(ZdP2u);Poi3dHelpers.addEventListener(DL9PA,"\x6f\x70\x65\x6e",this.olamp,this);Poi3dHelpers.addEventListener(DL9PA,"\x6d\x65\x73\x73\x61\x67\x65",this.dFZ9d,this);Poi3dHelpers.addEventListener(DL9PA,"\x65\x72\x72\x6f\x72",this.dJusL,this);Poi3dHelpers.addEventListener(DL9PA,"\x63\x6c\x6f\x73\x65",this.jyBxm,this);}else{let VcWQN="\x73\x65\x6e\x73\x6f\x72\x55\x72\x6c\x3d"+C6J4L+"\x3b"+"\x75\x4e\x61\x6d\x65\x3d"+GLBrq+"\x3b"+"\x75\x50\x77\x64\x3d"+rn9dO+"\x3b"+Mx3CJ;let L_EtW="\x22\x71\x75\x65\x72\x79\x44\x61\x74\x61\x22\x3a\x7b";let MVqnZ=VcWQN.split("\x3b");for(let tbn6H=0;tbn6H<MVqnZ.length;tbn6H++){let SYIfr=MVqnZ[tbn6H].split("\x3d");if(SYIfr.length==2){if(tbn6H>0)L_EtW=L_EtW+"\x2c";L_EtW=L_EtW+"\x22"+SYIfr[0]+"\x22\x3a\x22"+SYIfr[1]+"\x22";}}L_EtW=L_EtW+"\x7d";DL9PA.send(JSON.stringify(L_EtW));}break;}};this.olamp=function(L2Wt0){MkBDi=true;_HBf3="\x4c\x6f\x67\x69\x6e\x20\x73\x75\x63\x63\x65\x73\x73";this.I8F20();if(ibdO5==true){let VcWQN="\x73\x65\x6e\x73\x6f\x72\x55\x72\x6c\x3d"+C6J4L+"\x3b"+"\x75\x4e\x61\x6d\x65\x3d"+GLBrq+"\x3b"+"\x75\x50\x77\x64\x3d"+rn9dO+"\x3b"+Mx3CJ;let L_EtW="\x22\x71\x75\x65\x72\x79\x44\x61\x74\x61\x22\x3a\x7b";let MVqnZ=VcWQN.split("\x3b");for(let tbn6H=0;tbn6H<MVqnZ.length;tbn6H++){let SYIfr=MVqnZ[tbn6H].split("\x3d");if(SYIfr.length==2){if(tbn6H>0)L_EtW=L_EtW+"\x2c";L_EtW=L_EtW+"\x22"+SYIfr[0]+"\x22\x3a\x22"+SYIfr[1]+"\x22";}}L_EtW=L_EtW+"\x7d";DL9PA.send(JSON.stringify(L_EtW));}};this.dFZ9d=function(L2Wt0){if(event.data){_jsonResponseObject=JSON.parse(event.data);_HBf3="\x51\x75\x65\x72\x79\x20\x73\x75\x63\x63\x65\x73\x73";this.getJsonQueryValue();}else{_HBf3="\x57\x65\x62\x73\x6f\x63\x6b\x65\x74\x20\x71\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64\x20\x28\x6e\x6f\x20\x64\x61\x74\x61\x20\x61\x76\x61\x69\x6c\x61\x62\x6c\x65\x29";this.I8F20();}if(ibdO5==true){let yTfgT=E6H8F.Zwlz3();if(yTfgT!=null)yTfgT("\x73\x68\x6f\x77\x52\x65\x73\x70\x6f\x6e\x73\x65");}ibdO5=false;};this.dJusL=function(L2Wt0){MkBDi=false;_HBf3="\x4c\x6f\x67\x69\x6e\x20\x66\x61\x69\x6c\x65\x64";DL9PA=null;this.I8F20();};this.jyBxm=function(L2Wt0){MkBDi=false;_HBf3="\x63\x72\x65\x61\x74\x65\x64";DL9PA=null;this.I8F20();};this.nyMWD=function(L2Wt0){var tZ1J1=L2Wt0.target;if(tZ1J1.readyState==4){if(!tZ1J1.response){this._2LHS(L2Wt0);return;}_jsonResponseObject=tZ1J1.response;if((_jsonResponseObject.context)&&(_jsonResponseObject.context=="\x70\x6f\x69\x33\x64\x53\x65\x6e\x73\x6f\x72\x51\x75\x65\x72\x79")){if(_jsonResponseObject.success==true){_HBf3="\x51\x75\x65\x72\x79\x20\x73\x75\x63\x63\x65\x73\x73";Mq20H=0;this.getJsonQueryValue();}else{_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64\x20\x28"+_jsonResponseObject.infoText+"\x29";if(abfSO==true)Mq20H++;this.Hksa7();this.I8F20();}}else{_HBf3="\x51\x75\x65\x72\x79\x20\x73\x75\x63\x63\x65\x73\x73";this.getJsonQueryValue();}if(ibdO5==true){let yTfgT=E6H8F.Zwlz3();if(yTfgT!=null)yTfgT("\x73\x68\x6f\x77\x52\x65\x73\x70\x6f\x6e\x73\x65");}ibdO5=false;}};this.ia_vE=function(q5SWM,OIGcX){_jsonResponseObject=q5SWM;if(ibdO5==true){let yTfgT=E6H8F.Zwlz3();if(yTfgT!=null)yTfgT("\x73\x68\x6f\x77\x52\x65\x73\x70\x6f\x6e\x73\x65");}_HBf3="\x51\x75\x65\x72\x79\x20\x73\x75\x63\x63\x65\x73\x73";Mq20H=0;OIGcX.getJsonQueryValue();ibdO5=false;};this._2LHS=function(L2Wt0){ibdO5=false;_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();this.I8F20();};this.jEpPZ=function(q5SWM,OIGcX){ibdO5=false;_HBf3="\x51\x75\x65\x72\x79\x20\x66\x61\x69\x6c\x65\x64";if(abfSO==true)Mq20H++;this.Hksa7();OIGcX.I8F20();};this.loadFromJSON=function(Yk_cn){if(Yk_cn.snsId!=undefined){wjjRw=Yk_cn.snsId;Tyw30.id=wjjRw;};if(Yk_cn.snsTtl!=undefined)NZEuU=Yk_cn.snsTtl;if(Yk_cn.snsBlinkCol!=undefined)s15qH=Yk_cn.snsBlinkCol;if(Yk_cn.snsBlinkCnt!=undefined)ZZaHJ=Yk_cn.snsBlinkCnt;if(Yk_cn.snsBlinkPause!=undefined)yCybu=Yk_cn.snsBlinkPause;if(Yk_cn.snsPosOrg!=undefined)BWRf2=Yk_cn.snsPosOrg;if(Yk_cn.snsPosAng!=undefined)O_Jby=Yk_cn.snsPosAng;if(Yk_cn.snsLiNm!=undefined)GLBrq=Yk_cn.snsLiNm;if(Yk_cn.snsLiPwd!=undefined)rn9dO=Yk_cn.snsLiPwd;if(Yk_cn.snsLiUrl!=undefined)ZdP2u=Yk_cn.snsLiUrl;if(Yk_cn.snsLiMtd!=undefined)JEUPt=Yk_cn.snsLiMtd;if(Yk_cn.snsLiRM!=undefined)tKDEJ=Yk_cn.snsLiRM;if(Yk_cn.snsLiDT!=undefined)Mia1r=Yk_cn.snsLiDT;if(Yk_cn.snsLiDF!=undefined)Y_MQr=Yk_cn.snsLiDF;if(Yk_cn.snsLiUsCr!=undefined)ugQt7=Yk_cn.snsLiUsCr;if(Yk_cn.snsLiHdrs!=undefined)NKKVz=Yk_cn.snsLiHdrs;if(Yk_cn.snsLiPl!=undefined)aXBv2=Yk_cn.snsLiPl;if(Yk_cn.snsLoUrl!=undefined)TbDQJ=Yk_cn.snsLoUrl;if(Yk_cn.snsQryUrl!=undefined)C6J4L=Yk_cn.snsQryUrl;if(Yk_cn.snsQryMtd!=undefined)Ff9ly=Yk_cn.snsQryMtd;if(Yk_cn.snsQryRM!=undefined)OuC3N=Yk_cn.snsQryRM;if(Yk_cn.snsQryDT!=undefined)tG0Hu=Yk_cn.snsQryDT;if(Yk_cn.snsQryDF!=undefined)CAU8A=Yk_cn.snsQryDF;if(Yk_cn.snsQryUsCr!=undefined)eZcwa=Yk_cn.snsQryUsCr;if(Yk_cn.snsQryHdrs!=undefined)n6gL7=Yk_cn.snsQryHdrs;if(Yk_cn.snsQryPl!=undefined)Mx3CJ=Yk_cn.snsQryPl;if(Yk_cn.snsUpdInt!=undefined)e4f4f=Yk_cn.snsUpdInt;if(Yk_cn.snsUiVis!=undefined)this.setUiVisible(Yk_cn.snsUiVis,true);if(Yk_cn.snsUiString!=undefined){_BNYq=Yk_cn.snsUiString;Tyw30.innerText=this.getValueOutput()};if(Yk_cn.snsUiPos!=undefined)LKNPI=Yk_cn.snsUiPos;if(Yk_cn.snsJsnRef!=undefined)pKdZZ=Yk_cn.snsJsnRef;if(Yk_cn.snsPageRef!=undefined)qNBFJ=Yk_cn.snsPageRef;if(Yk_cn.snsMaxVal!=undefined)r0Lux=Yk_cn.snsMaxVal;if(Yk_cn.snsMinVal!=undefined)Bz5Ev=Yk_cn.snsMinVal;if(Yk_cn.snsCurrVal!=undefined)ymriL=Yk_cn.snsCurrVal;if(Yk_cn.snsQueryDate!=undefined)c26D0=new Date(Yk_cn.snsQueryDate);if(Yk_cn.snsActive!=undefined)abfSO=Yk_cn.snsActive;if(Yk_cn.snsMaxFQ!=undefined)rZrxo=Yk_cn.snsMaxFQ;if(Yk_cn.entNames!=undefined)vcrQi=Yk_cn.entNames;this.Hksa7();Tyw30.innerText=this.getValueOutput();if(abfSO==true)this.startValueUpdate();};this.getObjectAsJsonString=function(){var I350T="";var s4mtJ="";var A7Zij="\x5b";for(var tbn6H=0;tbn6H<MLeqA.length;tbn6H++){if(tbn6H>0)A7Zij=A7Zij+"\x2c";A7Zij=A7Zij+"\x22"+MLeqA[tbn6H].entityFullName+"\x22";}A7Zij=A7Zij+"\x5d";if(BWRf2.length>0)I350T="\x22\x73\x6e\x73\x50\x6f\x73\x4f\x72\x67\x22\x3a\x5b"+BWRf2[0]+"\x2c"+BWRf2[1]+"\x2c"+BWRf2[2]+"\x5d\x2c";if(O_Jby.length>0)s4mtJ="\x22\x73\x6e\x73\x50\x6f\x73\x41\x6e\x67\x22\x3a\x5b"+O_Jby[0]+"\x2c"+O_Jby[1]+"\x2c"+O_Jby[2]+"\x5d\x2c";let RtA8F="\x7b"+"\x22\x73\x6e\x73\x49\x64\x22\x3a\x22"+wjjRw+"\x22\x2c"+"\x22\x73\x6e\x73\x54\x74\x6c\x22\x3a\x22"+NZEuU+"\x22\x2c"+"\x22\x73\x6e\x73\x42\x6c\x69\x6e\x6b\x43\x6f\x6c\x22\x3a\x5b"+s15qH[0]+"\x2c"+s15qH[1]+"\x2c"+s15qH[2]+"\x2c"+s15qH[3]+"\x5d\x2c"+"\x22\x73\x6e\x73\x42\x6c\x69\x6e\x6b\x43\x6e\x74\x22\x3a"+ZZaHJ+"\x2c"+"\x22\x73\x6e\x73\x42\x6c\x69\x6e\x6b\x50\x61\x75\x73\x65\x22\x3a"+yCybu+"\x2c"+I350T+s4mtJ+"\x22\x73\x6e\x73\x4c\x69\x4e\x6d\x22\x3a\x22"+GLBrq+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x50\x77\x64\x22\x3a\x22"+rn9dO+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x55\x72\x6c\x22\x3a\x22"+ZdP2u+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x4d\x74\x64\x22\x3a\x22"+JEUPt+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x52\x4d\x22\x3a\x22"+tKDEJ+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x44\x54\x22\x3a\x22"+Mia1r+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x44\x46\x22\x3a\x22"+Y_MQr+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x55\x73\x43\x72\x22\x3a"+JSON.stringify(ugQt7)+"\x2c"+"\x22\x73\x6e\x73\x4c\x69\x48\x64\x72\x73\x22\x3a\x22"+NKKVz+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x50\x6c\x22\x3a\x22"+aXBv2+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x6f\x55\x72\x6c\x22\x3a\x22"+TbDQJ+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x55\x72\x6c\x22\x3a\x22"+C6J4L+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x4d\x74\x64\x22\x3a\x22"+Ff9ly+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x52\x4d\x22\x3a\x22"+OuC3N+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x44\x54\x22\x3a\x22"+tG0Hu+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x44\x46\x22\x3a\x22"+CAU8A+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x55\x73\x43\x72\x22\x3a"+JSON.stringify(eZcwa)+"\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x48\x64\x72\x73\x22\x3a\x22"+n6gL7+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x50\x6c\x22\x3a\x22"+Mx3CJ+"\x22\x2c"+"\x22\x73\x6e\x73\x55\x70\x64\x49\x6e\x74\x22\x3a"+JSON.stringify(e4f4f)+"\x2c"+"\x22\x73\x6e\x73\x55\x69\x56\x69\x73\x22\x3a"+JSON.stringify(FypFy)+"\x2c"+"\x22\x73\x6e\x73\x55\x69\x53\x74\x72\x69\x6e\x67\x22\x3a\x22"+_BNYq+"\x22\x2c"+"\x22\x73\x6e\x73\x55\x69\x50\x6f\x73\x22\x3a"+JSON.stringify(LKNPI)+"\x2c"+"\x22\x73\x6e\x73\x4a\x73\x6e\x52\x65\x66\x22\x3a\x22"+pKdZZ+"\x22\x2c"+"\x22\x73\x6e\x73\x4c\x69\x50\x6c\x22\x3a\x22"+aXBv2+"\x22\x2c"+"\x22\x73\x6e\x73\x51\x72\x79\x50\x6c\x22\x3a\x22"+Mx3CJ+"\x22\x2c"+"\x22\x73\x6e\x73\x50\x61\x67\x65\x52\x65\x66\x22\x3a"+JSON.stringify(qNBFJ)+"\x2c"+"\x22\x73\x6e\x73\x4d\x61\x78\x56\x61\x6c\x22\x3a"+JSON.stringify(r0Lux)+"\x2c"+"\x22\x73\x6e\x73\x4d\x69\x6e\x56\x61\x6c\x22\x3a"+JSON.stringify(Bz5Ev)+"\x2c"+"\x22\x73\x6e\x73\x43\x75\x72\x72\x56\x61\x6c\x22\x3a"+JSON.stringify(ymriL)+"\x2c"+"\x22\x73\x6e\x73\x51\x75\x65\x72\x79\x44\x61\x74\x65\x22\x3a"+JSON.stringify(c26D0)+"\x2c"+"\x22\x73\x6e\x73\x41\x63\x74\x69\x76\x65\x22\x3a"+JSON.stringify(abfSO)+"\x2c"+"\x22\x73\x6e\x73\x4d\x61\x78\x46\x51\x22\x3a"+JSON.stringify(rZrxo)+"\x2c"+"\x22\x65\x6e\x74\x4e\x61\x6d\x65\x73\x22\x3a"+A7Zij+"\x7d";return RtA8F;};let CU8sA=document.getElementById(wjjRw);if(CU8sA==null){Tyw30=document.createElement("\x64\x69\x76");Tyw30.id=wjjRw;Tyw30.innerText="";Tyw30.style.display="\x6e\x6f\x6e\x65";Tyw30.setAttribute("\x6f\x6e\x63\x6c\x69\x63\x6b","\x68\x61\x6e\x64\x6c\x65\x53\x65\x6e\x73\x6f\x72\x43\x6c\x69\x63\x6b\x28\x74\x68\x69\x73\x29");Tyw30.setAttribute("\x6f\x6e\x6d\x6f\x75\x73\x65\x6f\x76\x65\x72","\x68\x61\x6e\x64\x6c\x65\x53\x65\x6e\x73\x6f\x72\x48\x6f\x76\x65\x72\x28\x74\x68\x69\x73\x29");}else{Tyw30=CU8sA;}E6H8F.N1WuZ().appendChild(Tyw30);};var Poi3dDocAttributes=function(){this.tpjD5=new Array();this.f2qD5=function(){return this.tpjD5};this.qcUxO=function(QM__w){this.setLocalChangeFlag(true);this.tpjD5=QM__w;};this.loadFromJSON=function(JKAul,FvoS1){let L38Np=this;let OnQJe=null;let OSBXM=new Array();if((FvoS1!=undefined)&&(FvoS1!=null))L38Np=FvoS1;for(let tbn6H=0;tbn6H<JKAul.length;tbn6H++){OnQJe=new Poi3dDocAttributeSet();OnQJe.loadFromJSON(JKAul[tbn6H]);OSBXM.push(OnQJe);}L38Np.qcUxO(OSBXM);var OFgA6={context:"\x50\x4f\x49\x33\x44\x5f\x49\x4e\x46\x4f",info:"\x6c\x6f\x61\x64\x44\x6f\x63\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73\x53\x75\x63\x63\x65\x73\x73",calledFrom:L38Np,senderId:"\x50\x6f\x69\x33\x44\x2e\x69\x6e\x74\x65\x72\x6e"};Poi3dHelpers.sendPoi3dNotification(OFgA6);};this.PF_my=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null))this.T_SEJ(this.tpjD5,A9Vob);else this.T_SEJ(this.tpjD5);};this.readFromStorage=function(A9Vob){if((A9Vob!=undefined)&&(A9Vob!=null)){let tu9RM=this.readFromBrowserStorage(A9Vob);if(tu9RM!=null){let HcINC=JSON.parse(tu9RM);this.loadFromJSON(HcINC);}}else this.reload();};this.getAsJsonString=function(){return this.JIM0d(this.tpjD5);};this.setFromJsonString=function(RtA8F){let HcINC=JSON.parse(RtA8F);this.loadFromJSON(HcINC);};this.getTemplateAttributes=function(pIpvS,UqnRc){for(let tbn6H=0;tbn6H<this.tpjD5.length;tbn6H++){if(this.tpjD5[tbn6H].caDK2()==pIpvS){return this.tpjD5[tbn6H].getAttrArray();}}if(UqnRc){for(let tbn6H=0;tbn6H<this.tpjD5.length;tbn6H++){if(this.tpjD5[tbn6H].caDK2()==""){this.tpjD5[tbn6H].SzDHL(pIpvS);return this.tpjD5[tbn6H].getAttrArray();}}}return new Array();};this.getTopModelAttributes=function(){for(let tbn6H=0;tbn6H<this.tpjD5.length;tbn6H++){if(this.tpjD5[tbn6H].getIsTopFlag()==true){return this.tpjD5[tbn6H].getAttrArray();}}return new Array();};this.ZF20r=function(pIpvS){var MNWe_=new Array();for(let tbn6H=0;tbn6H<this.tpjD5.length;tbn6H++){this.tpjD5[tbn6H].getAttrArray().forEach(T4l_b=>{if(!MNWe_.some(aksOd=>aksOd===T4l_b.getKey())){MNWe_.push(T4l_b.getKey());};});}return MNWe_;};this.miqMr(this.loadFromJSON);this.setFileName("\x64\x6f\x63\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73\x2e\x6a\x73\x6f\x6e");this.qnz19("\x44\x6f\x63\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73");this.uV0Xt(20000);};Poi3dDocAttributes.prototype=new Poi3dBasicAttachment();var Poi3dDocAttributeSet=function(){this.bC_iO="";this.xqzJ0=false;this.xzi7u=new Array();this.getIsTopFlag=function(){return this.xqzJ0};this.setIsTopFlag=function(kTElr){this.xqzJ0=kTElr;};this.caDK2=function(){return this.bC_iO};this.SzDHL=function(d0F36){this.bC_iO=d0F36;};this.getAttrArray=function(){return this.xzi7u};this.rH9gk=function(rSijC){this.xzi7u=rSijC;};this.loadFromJSON=function(Yk_cn){let CkiKT=null;if(Yk_cn.daTplNm!=undefined)this.bC_iO=Yk_cn.daTplNm;if(Yk_cn.daIsTop!=undefined)this.xqzJ0=Yk_cn.daIsTop;if(Yk_cn.daProps!=undefined){for(let tbn6H=0;tbn6H<Yk_cn.daProps.length;tbn6H++){CkiKT=new Poi3dDocAttribute();CkiKT.loadFromJSON(Yk_cn.daProps[tbn6H]);this.xzi7u.push(CkiKT);}}};this.getObjectAsJsonString=function(){var nFh3D=false;var A7Zij="\x5b";for(var tbn6H=0;tbn6H<this.xzi7u.length;tbn6H++){if(nFh3D==true){A7Zij=A7Zij+"\x2c";}else nFh3D=true;A7Zij=A7Zij+this.xzi7u[tbn6H].getObjectAsJsonString();}A7Zij=A7Zij+"\x5d";let RtA8F="";if(this.xqzJ0==true){RtA8F="\x7b"+"\x22\x64\x61\x54\x70\x6c\x4e\x6d\x22\x3a\x22"+this.bC_iO+"\x22\x2c"+"\x22\x64\x61\x49\x73\x54\x6f\x70\x22\x3a"+this.xqzJ0+"\x2c"+"\x22\x64\x61\x50\x72\x6f\x70\x73\x22\x3a"+A7Zij+"\x7d";}else{RtA8F="\x7b"+"\x22\x64\x61\x54\x70\x6c\x4e\x6d\x22\x3a\x22"+this.bC_iO+"\x22\x2c"+"\x22\x64\x61\x50\x72\x6f\x70\x73\x22\x3a"+A7Zij+"\x7d";}return RtA8F;};};var Poi3dDocAttribute=function(){this.key="";this.value="";this.title="";this.getKey=function(){return this.key};this.setKey=function(Q4ww5){this.key=Q4ww5;};this.getValue=function(){return this.value};this.setValue=function(newValue){this.value=newValue;};this.getTitle=function(){return this.title};this.setTitle=function(yARm4){this.title=yARm4;};this.loadFromJSON=function(Yk_cn){if(Yk_cn.daKey!=undefined)this.key=Yk_cn.daKey;if(Yk_cn.daVal!=undefined)this.value=Yk_cn.daVal;if(Yk_cn.daTtl!=undefined)this.title=Yk_cn.daTtl;};this.getObjectAsJsonString=function(){let RtA8F="\x7b"+"\x22\x64\x61\x4b\x65\x79\x22\x3a\x22"+this.key+"\x22\x2c"+"\x22\x64\x61\x56\x61\x6c\x22\x3a\x22"+this.value+"\x22\x7d";return RtA8F;};};// var Poi3dDocAttribute
