1 line
51 KiB
JavaScript
1 line
51 KiB
JavaScript
module.exports=function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,r){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var o=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(o,'a',o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=51)}([function(e){var t=e.exports={version:'2.6.12'};'number'==typeof __e&&(__e=t)},function(e){var t=e.exports='undefined'!=typeof window&&window.Math==Math?window:'undefined'!=typeof self&&self.Math==Math?self:Function('return this')();'number'==typeof __g&&(__g=t)},function(e,t,o){var r=o(41)('wks'),n=o(29),s=o(1).Symbol,a='function'==typeof s,i=e.exports=function(e){return r[e]||(r[e]=a&&s[e]||(a?s:n)('Symbol.'+e))};i.store=r},function(e,t,o){var r=o(1),n=o(0),s=o(10),a=o(11),i=o(12),l='prototype',p=function(e,t,o){var d,c,u,f=e&p.F,_=e&p.G,g=e&p.S,h=e&p.P,y=e&p.B,m=e&p.W,x=_?n:n[t]||(n[t]={}),b=x[l],v=_?r:g?r[t]:(r[t]||{})[l];for(d in _&&(o=t),o)c=!f&&v&&void 0!==v[d],c&&i(x,d)||(u=c?v[d]:o[d],x[d]=_&&'function'!=typeof v[d]?o[d]:y&&c?s(u,r):m&&v[d]==u?function(e){var t=function(t,o,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o);}return new e(t,o,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(u):h&&'function'==typeof u?s(Function.call,u):u,h&&((x.virtual||(x.virtual={}))[d]=u,e&p.R&&b&&!b[d]&&a(b,d,u)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},function(e){e.exports=function(e){return'object'==typeof e?null!==e:'function'==typeof e}},function(e,t,o){var r=o(6),n=o(56),s=o(37),a=Object.defineProperty;t.f=o(7)?Object.defineProperty:function(e,t,o){if(r(e),t=s(t,!0),r(o),n)try{return a(e,t,o)}catch(t){}if('get'in o||'set'in o)throw TypeError('Accessors not supported!');return'value'in o&&(e[t]=o.value),e}},function(e,t,o){var r=o(4);e.exports=function(e){if(!r(e))throw TypeError(e+' is not an object!');return e}},function(e,t,o){e.exports=!o(15)(function(){return 7!=Object.defineProperty({},'a',{get:function(){return 7}}).a})},function(e){e.exports=require('os')},function(e){e.exports=require('path')},function(e,t,o){var r=o(20);e.exports=function(e,t,o){return(r(e),void 0===t)?e:1===o?function(o){return e.call(t,o)}:2===o?function(o,r){return e.call(t,o,r)}:3===o?function(o,r,n){return e.call(t,o,r,n)}:function(){return e.apply(t,arguments)}}},function(e,t,o){var r=o(5),n=o(27);e.exports=o(7)?function(e,t,o){return r.f(e,t,n(1,o))}:function(e,t,o){return e[t]=o,e}},function(e){var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},function(e){e.exports=require('child_process')},function(e){e.exports=require('fs')},function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e){e.exports={}},function(e,t,o){var r=o(59),n=o(34);e.exports=function(e){return r(n(e))}},function(e,t,o){'use strict';var r=o(85)(!0);o(35)(String,'String',function(e){this._t=e+'',this._i=0},function(){var e,t=this._t,o=this._i;return o>=t.length?{value:void 0,done:!0}:(e=r(t,o),this._i+=e.length,{value:e,done:!1})})},function(e){e.exports=!0},function(e){e.exports=function(e){if('function'!=typeof e)throw TypeError(e+' is not a function!');return e}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t,o){var r=o(5).f,n=o(12),s=o(2)('toStringTag');e.exports=function(e,t,o){e&&!n(e=o?e:e.prototype,s)&&r(e,s,{configurable:!0,value:t})}},function(e,t,o){o(90);for(var r=o(1),n=o(11),s=o(16),a=o(2)('toStringTag'),l='CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split(','),p=0;p<l.length;p++){var i=l[p],d=r[i],c=d&&d.prototype;c&&!c[a]&&n(c,a,i),s[i]=s.Array}},function(e,t,o){var r=o(10),n=o(103),s=o(104),a=o(6),i=o(39),l=o(67),p={},d={},t=e.exports=function(e,t,o,c,u){var _,g,h,y,m=u?function(){return e}:l(e),x=r(o,c,t?2:1),f=0;if('function'!=typeof m)throw TypeError(e+' is not iterable!');if(s(m)){for(_=i(e.length);_>f;f++)if(y=t?x(a(g=e[f])[0],g[1]):x(e[f]),y===p||y===d)return y;}else for(h=m.call(e);!(g=h.next()).done;)if(y=n(h,x,g.value,t),y===p||y===d)return y};t.BREAK=p,t.RETURN=d},function(e){e.exports=require('electron')},function(e,t,o){'use strict';function r(){var e=process.cwd();console.log('process.env.NODE_ENV','production');var t=process.execPath.replaceAll('\\','/').split('/');return t.pop(),e=t.join('/'),e}o.d(t,'a',function(){return r})},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,o){var r=o(6),n=o(87),s=o(42),a=o(40)('IE_PROTO'),i=function(){},l='prototype',p=function(){var e,t=o(36)('iframe'),r=s.length,n='<',a='>';for(t.style.display='none',o(60).appendChild(t),t.src='javascript:',e=t.contentWindow.document,e.open(),e.write(n+'script'+a+'document.F=Object'+n+'/script'+a),e.close(),p=e.F;r--;)delete p[l][s[r]];return p()};e.exports=Object.create||function(e,t){var o;return null===e?o=p():(i[l]=r(e),o=new i,i[l]=null,o[a]=e),void 0===t?o:n(o,t)}},function(e){var t=0,o=Math.random();e.exports=function(e){return'Symbol('.concat(e===void 0?'':e,')_',(++t+o).toString(36))}},function(e,t,o){var r=o(34);e.exports=function(e){return Object(r(e))}},function(e,t,o){var r=o(21),n=o(2)('toStringTag'),s='Arguments'==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(t){}};e.exports=function(e){var t,o,i;return e===void 0?'Undefined':null===e?'Null':'string'==typeof(o=a(t=Object(e),n))?o:s?r(t):'Object'==(i=r(t))&&'function'==typeof t.callee?'Arguments':i}},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=o(83),s=r(n),a=o(92),i=r(a),l='function'==typeof i.default&&'symbol'==typeof s.default?function(e){return typeof e}:function(e){return e&&'function'==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?'symbol':typeof e};t.default='function'==typeof i.default&&'symbol'===l(s.default)?function(e){return'undefined'==typeof e?'undefined':l(e)}:function(e){return e&&'function'==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?'symbol':'undefined'==typeof e?'undefined':l(e)}},function(e){var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?o:t)(e)}},function(e){e.exports=function(e){if(e==void 0)throw TypeError('Can\'t call method on '+e);return e}},function(e,t,o){'use strict';var r=o(19),n=o(3),s=o(57),a=o(11),i=o(16),l=o(86),p=o(22),d=o(61),c=o(2)('iterator'),u=!([].keys&&'next'in[].keys()),f='keys',_='values',g=function(){return this};e.exports=function(e,t,o,h,y,m,x){l(o,t,h);var b,v,S,O=function(e){return!u&&e in w?w[e]:e===f?function(){return new o(this,e)}:e===_?function(){return new o(this,e)}:function(){return new o(this,e)}},E=t+' Iterator',P=y==_,T=!1,w=e.prototype,j=w[c]||w['@@iterator']||y&&w[y],k=j||O(y),M=y?P?O('entries'):k:void 0,R='Array'==t?w.entries||j:j;if(R&&(S=d(R.call(new e)),S!==Object.prototype&&S.next&&(p(S,E,!0),!r&&'function'!=typeof S[c]&&a(S,c,g))),P&&j&&j.name!==_&&(T=!0,k=function(){return j.call(this)}),(!r||x)&&(u||T||!w[c])&&a(w,c,k),i[t]=k,i[E]=g,y)if(b={values:P?k:O(_),keys:m?k:O(f),entries:M},x)for(v in b)v in w||s(w,v,b[v]);else n(n.P+n.F*(u||T),t,b);return b}},function(e,t,o){var r=o(4),n=o(1).document,s=r(n)&&r(n.createElement);e.exports=function(e){return s?n.createElement(e):{}}},function(e,t,o){var r=o(4);e.exports=function(e,t){if(!r(e))return e;var o,n;if(t&&'function'==typeof(o=e.toString)&&!r(n=o.call(e)))return n;if('function'==typeof(o=e.valueOf)&&!r(n=o.call(e)))return n;if(!t&&'function'==typeof(o=e.toString)&&!r(n=o.call(e)))return n;throw TypeError('Can\'t convert object to primitive value')}},function(e,t,o){var r=o(58),n=o(42);e.exports=Object.keys||function(e){return r(e,n)}},function(e,t,o){var r=o(33),n=Math.min;e.exports=function(e){return 0<e?n(r(e),9007199254740991):0}},function(e,t,o){var r=o(41)('keys'),n=o(29);e.exports=function(e){return r[e]||(r[e]=n(e))}},function(e,t,o){var r=o(0),n=o(1),s='__core-js_shared__',a=n[s]||(n[s]={});(e.exports=function(e,t){return a[e]||(a[e]=t===void 0?{}:t)})('versions',[]).push({version:r.version,mode:o(19)?'pure':'global',copyright:'\xA9 2020 Denis Pushkarev (zloirock.ru)'})},function(e){e.exports=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf']},function(e,t,o){t.f=o(2)},function(e,t,o){var r=o(29)('meta'),n=o(4),s=o(12),a=o(5).f,i=0,l=Object.isExtensible||function(){return!0},p=!o(15)(function(){return l(Object.preventExtensions({}))}),d=function(e){a(e,r,{value:{i:'O'+ ++i,w:{}}})},c=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!n(e))return'symbol'==typeof e?e:('string'==typeof e?'S':'P')+e;if(!s(e,r)){if(!l(e))return'F';if(!t)return'E';d(e)}return e[r].i},getWeak:function(e,t){if(!s(e,r)){if(!l(e))return!0;if(!t)return!1;d(e)}return e[r].w},onFreeze:function(e){return p&&c.NEED&&l(e)&&!s(e,r)&&d(e),e}}},function(e,t,o){var r=o(1),n=o(0),s=o(19),a=o(43),i=o(5).f;e.exports=function(e){var t=n.Symbol||(n.Symbol=s?{}:r.Symbol||{});'_'==e.charAt(0)||e in t||i(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(){},function(e,t,o){var r=o(11);e.exports=function(e,t,o){for(var n in t)o&&e[n]?e[n]=t[n]:r(e,n,t[n]);return e}},function(e){e.exports=function(e,t,o,r){if(!(e instanceof t)||r!==void 0&&r in e)throw TypeError(o+': incorrect invocation!');return e}},function(e,t,o){'use strict';function r(e){var t,o;this.promise=new e(function(e,r){if(t!=void 0||o!=void 0)throw TypeError('Bad Promise constructor');t=e,o=r}),this.resolve=n(t),this.reject=n(o)}var n=o(20);e.exports.f=function(e){return new r(e)}},function(e,t,o){'use strict';function r(){var e=O.platform(),t=o(14),r='';'win32'===e&&(r='yjearth4.exe'),'linux'===e&&(r='yjearth4');var n='';'win32'===e&&(n='yjearth4'+f.execPath+'.exe'),'linux'===e&&(n='yjearth4'+f.execPath);var s=m.join(Object(S.a)()+'/yjearth4_0/',r),a=m.join(Object(S.a)()+'/yjearth4_0/',n);console.log('oldPath',a),t.access(s,t.constants.F_OK,function(e){return e?void console.error(s+' does not exist.'):void t.rename(s,a,function(e){return e?void console.error('Error renaming '+s+' to '+a+': '+e):void console.log('File renamed from '+s+' to '+a)})})}function n(){Object(u.b)(),Object(b.a)();var e=f.execPath;console.log('process.env.NODE_ENV +++','production'),r(),Object(v.a)(e),setTimeout(function(){Object(d.runProcess)(e,f.db_path),E=new a.BrowserWindow({minWidth:1500,minHeight:860,useContentSize:!0,simpleFullscreen:!0,resizable:!0,frame:p.a.IsUseSysTitle,icon:j,show:!0,webPreferences:{nodeIntegration:!0,contextIsolation:!1,enableRemoteModule:!0,webSecurity:!1,devTools:!0,scrollBounce:'darwin'===process.platform}}),E.loadURL(T),E.center(),E.maximize(),g.a.Mainfunc(E),E.webContents.on('did-finish-load',function(){E.show(),E.focus(),E.webContents.executeJavaScript('\n const { ipcRenderer } = require(\'electron\'); \n window.addEventListener(\'dragover\', (event) => {\n event.preventDefault();\n event.dataTransfer.dropEffect = \'copy\'; // \u663E\u793A\u590D\u5236\u6548\u679C\n });\n window.addEventListener(\'drop\', (event) => {\n event.preventDefault();\n const files = event.dataTransfer.files;\n if (files.length > 0) {\n ipcRenderer.send(\'files-dropped\', Array.from(files).map(file => file.path));\n }\n });\n ')}),E.webContents.on('did-fail-load',function(){}),E.on('closed',function(){E=null}),E.on('close',function(t){t.preventDefault(),a.dialog.showMessageBox(E,{type:'warning',title:'\u63D0\u793A',message:'\u662F\u5426\u786E\u8BA4\u9000\u51FA\u7CFB\u7EDF?',buttons:['cancel','ok']}).then(function(e){e.response&&(E=null,Object(d.closeChild)(),a.app.exit())})}),a.Menu.setApplicationMenu(null),!1,a.globalShortcut.register('CommandOrControl+f5',function(){E.reload(),E.webContents.once('did-finish-load',function(){setTimeout(function(){E&&!E.isDestroyed()&&(console.log('\u53D1\u9001\u64AD\u653E\u89C6\u9891\u6D88\u606F'),E.webContents.send('start-login-video'))},500)})}),console.log(E.WebPreferences);var t=!0;a.globalShortcut.register('CommandOrControl+f12',function(){E.openDevTools(t),t=!t})},1e3)}function s(){return E}Object.defineProperty(t,'__esModule',{value:!0}),o.d(t,'getmainWindow',function(){return s});var a=o(25),i=o.n(a),l=o(76),p=o.n(l),d=o(52),c=o.n(d),u=o(53),f=o(81),_=o.n(f),g=o(82),h=o(164),y=o.n(h),m=o(9),x=o.n(m),b=o(74),v=o(165),S=o(26),O=o(8);process.env.ELECTRON_DISABLE_SECURITY_WARNINGS=!0,global.__static=o(9).join(__dirname,'/static').replace(/\\/g,'\\\\');var E=void 0,P=void 0,T='file://'+__dirname+'/index.html',w=!a.app.isPackaged,j=m.join(Object(S.a)(),'resources/app.asar/dist/electron/static/logo_ico/81.png'),k=a.app.requestSingleInstanceLock();k?(a.app.on('ready',n),a.app.isReady(),a.app.on('window-all-closed',function(){'darwin'!==process.platform&&a.app.quit()}),a.app.on('activate',function(){null===E&&n()}),a.app.on('second-instance',function(){E&&(E.isMinimized()&&E.restore(),E.focus())}),a.app.on('before-quit',function(){Object(d.closeChild)()}),global.sharedObject={hasService:!1}):a.app.quit()},function(e,t,o){function r(){var e=process.cwd(),t=process.execPath.replaceAll('\\','/').split('/');return t.pop(),e=t.join('/'),e}var n=o(13),s=n.exec,a=n.spawn,i=o(8),l=o(9),p=o(14),d=null;e.exports={runProcess:function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:'C:\\Users\\Administrator\\Desktop\\go',o=i.platform(),n='';'win32'===o&&(n='yjearth4'+e+'.exe'),'linux'===o&&(n='yjearth4'+e),p.existsSync(t)||p.mkdirSync(t);var s=l.join(r(),'/yjearth4_0/');console.log(s);var c=l.join(s,n);console.log('cmd_path0',c),d=a(c,[t],{cwd:s,stdio:'ignore'}).on('exit',function(e){console.log('out'),console.log('err',e),global.sharedObject.hasService=!1}).on('stdio',function(e,t){console.log(e),console.log(t)}),global.sharedObject.hasService=!0},closeChild:function(){d&&(d.kill(),d=null)}}},function(e,t,o){'use strict';function r(e,t){e=+e;var o=p.createServer().listen(e);o.on('listening',function(){o.close(),console.log('\u7AEF\u53E3\u3010'+e+'\u3011 \u53EF\u7528'),u=e,t(e)}),o.on('error',function(o){'EADDRINUSE'===o.code&&(console.log('\u7AEF\u53E3\u3010'+e+'\u3011 \u88AB\u5360\u7528'),r(++e,t))})}function n(){f=d(),f.all('*',function(e,t,o){t.header('Access-Control-Allow-Origin','*'),t.header('Access-Control-Allow-Headers','content-type'),t.header('Access-Control-Allow-Methods','POST,GET'),'/api/v1/file/upload'===e.url&&(e.setTimeout(1200000),t.setTimeout(1200000)),'options'===e.method.toLowerCase()?t.sendStatus(200):o()});var e='resources/app.asar/dist/electron/',t=Object(l.a)();['./','static'].forEach(function(o){f.use(d.static(c.join(c.join(t,e),o)))})}function s(){n(),r(u,function(e){f.listen(e),global.sharedObject.avilablePort=e})}o.d(t,'a',function(){return f}),o.d(t,'b',function(){return s});var a=o(25),i=o.n(a),l=o(26),p=o(80),d=o(54),c=o(9),u=55110,f=void 0},function(e){e.exports=require('express')},function(e){e.exports=require('electron-store')},function(e,t,o){e.exports=!o(7)&&!o(15)(function(){return 7!=Object.defineProperty(o(36)('div'),'a',{get:function(){return 7}}).a})},function(e,t,o){e.exports=o(11)},function(e,t,o){var r=o(12),n=o(17),s=o(88)(!1),a=o(40)('IE_PROTO');e.exports=function(e,t){var o,l=n(e),p=0,i=[];for(o in l)o!=a&&r(l,o)&&i.push(o);for(;t.length>p;)r(l,o=t[p++])&&(~s(i,o)||i.push(o));return i}},function(e,t,o){var r=o(21);e.exports=Object('z').propertyIsEnumerable(0)?Object:function(e){return'String'==r(e)?e.split(''):Object(e)}},function(e,t,o){var r=o(1).document;e.exports=r&&r.documentElement},function(e,t,o){var r=o(12),n=o(30),s=o(40)('IE_PROTO'),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=n(e),r(e,s)?e[s]:'function'==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,o){var r=o(21);e.exports=Array.isArray||function(e){return'Array'==r(e)}},function(e,t,o){var r=o(58),n=o(42).concat('length','prototype');t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},function(e,t,o){var r=o(46),n=o(27),s=o(17),a=o(37),i=o(12),l=o(56),p=Object.getOwnPropertyDescriptor;t.f=o(7)?p:function(e,t){if(e=s(e),t=a(t,!0),l)try{return p(e,t)}catch(t){}return i(e,t)?n(!r.f.call(e,t),e[t]):void 0}},function(e,t,o){var r=o(31),n=o(2)('iterator'),s=o(16);e.exports=o(0).getIteratorMethod=function(e){if(e!=void 0)return e[n]||e['@@iterator']||s[r(e)]}},function(e,t,o){'use strict';var r=o(1),n=o(0),s=o(5),a=o(7),i=o(2)('species');e.exports=function(e){var t='function'==typeof n[e]?n[e]:r[e];a&&t&&!t[i]&&s.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,o){var r=o(4);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError('Incompatible receiver, '+t+' required!');return e}},function(e,t,o){var r=o(6),n=o(20),s=o(2)('species');e.exports=function(e,t){var o,a=r(e).constructor;return a===void 0||(o=r(a)[s])==void 0?t:n(o)}},function(e,t,o){var r,n,s,a=o(10),i=o(126),l=o(60),p=o(36),d=o(1),c=d.process,u=d.setImmediate,f=d.clearImmediate,_=d.MessageChannel,g=d.Dispatch,h=0,y={},m='onreadystatechange',x=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},b=function(e){x.call(e.data)};u&&f||(u=function(e){for(var t=[],o=1;arguments.length>o;)t.push(arguments[o++]);return y[++h]=function(){i('function'==typeof e?e:Function(e),t)},r(h),h},f=function(e){delete y[e]},'process'==o(21)(c)?r=function(e){c.nextTick(a(x,e,1))}:g&&g.now?r=function(e){g.now(a(x,e,1))}:_?(n=new _,s=n.port2,n.port1.onmessage=b,r=a(s.postMessage,s,1)):d.addEventListener&&'function'==typeof postMessage&&!d.importScripts?(r=function(e){d.postMessage(e+'','*')},d.addEventListener('message',b,!1)):m in p('script')?r=function(e){l.appendChild(p('script'))[m]=function(){l.removeChild(this),x.call(e)}}:r=function(e){setTimeout(a(x,e,1),0)}),e.exports={set:u,clear:f}},function(e){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,o){var r=o(6),n=o(4),s=o(50);e.exports=function(e,t){if(r(e),n(t)&&t.constructor===e)return t;var o=s.f(e),a=o.resolve;return a(t),o.promise}},function(e,t,o){'use strict';function r(){u&&(u.close(),u=null);var e=a().port;u=c.createSocket('udp4'),u.on('listening',function(){var e=u.address();console.log('server running '+e.address+':'+e.port)}),u.on('message',function(e,t){console.log('udp server got '+e+' from '+t.address+':'+t.port);try{var o=e.toString();var r=o.slice(0,-1),n=o.split(r)[1];Object(d.getmainWindow)().webContents.send(g+'_str',r,n)}catch(e){console.log(e)}}),u.on('error',function(e){console.log('server error',e)}),console.log('port',e),u.bind(e),n('AFFG')}function n(e){var t=void 0,o=_.get('sandTable_udp_client_port')||6e4,r=_.get('sandTable_udp_client_host');return void u.send(e,o,r);var n=e.toString().split(''),s=+n.pop()}function s(e){_.set(g,e),r()}function a(){var e=6e3,t=_.get(g);t?e=t:_.set(g,e);var o=i();return console.log('GetUdpServerPort',e),{port:e,host:o}}function i(){var e=o(8),t=e.networkInterfaces(),r='';for(var n in console.log(t),t)if(-1<n.indexOf('\u4EE5\u592A\u7F51')){for(var s=t[n],a=0;a<s.length;a++){var i=s[a],l=i.address,p=i.family,d=i.internal;if('IPv4'===p&&!d){r=l;break}}if(r)break}return r}o.d(t,'b',function(){return s}),o.d(t,'a',function(){return r}),o.d(t,'c',function(){return n});var l=o(155),p=o.n(l),d=o(51),c=o(161),u=void 0,f=o(55),_=new f,g='sandTable_udp_server_port'},function(e,t,o){e.exports={default:o(159),__esModule:!0}},function(e,t,o){e.exports={build:{env:o(77)},dev:{removeElectronJunk:!0,env:o(78)},IsUseSysTitle:!0,AppConfig:o(79)}},function(e){e.exports={NODE_ENV:'"production"',BASE_API:'"http://127.0.0.1:8890/yjearth4.0"',HOST:'"http://127.0.0.1:8890"',DOCKAIR:'"http://192.168.110.24:9136"',DOCKSOCKETURL:'"ws://192.168.110.24:9136/websocket"',REMOTEAIR:'"http://121.37.119.107:6789"',REMOTESOCKETURL:'"ws://121.37.119.107:6789/api/v1/ws"',AI_URL:'"http://121.37.119.107:8000"'}},function(e){e.exports={NODE_ENV:'"development"',BASE_API:'"http://127.0.0.1:8890/yjearth4.0"',HOST:'"http://127.0.0.1:8890"',DOCKAIR:'"http://192.168.110.24:9136"',DOCKSOCKETURL:'"ws://192.168.110.24:9136/websocket"',REMOTEAIR:'"http://192.168.110.26:6789"',REMOTEAIR2:'"http://192.168.110.47:8000"',REMOTESOCKETURL:'"ws://192.168.110.26:6789/api/v1/ws"',AI_URL:'"http://121.37.119.107:8000"'}},function(e){var t='dzsp_yingjizhihuijunyong_offline_Y_save',o='\u5B9E\u666F\u4E09\u7EF4\u7535\u5B50\u6C99\u76D8\u7CFB\u7EDF';e.exports={baseApi:'',PORT:8099,head:'henan_head',name:t,version:'v4.0.0',productName:o,productName_tw:'\u5B9E\u666F\u4E09\u7EF4\u7535\u5B50\u6C99\u76D8\u7CFB\u7EDF',productName_en:'Realistic 3D electronic sand table system',build_productName:o,build_win_icon:'build/icons/81.ico',build_extraFiles:[{from:'./collada2gltf/',to:'./collada2gltf'},{from:'./convert/',to:'./convert'},{from:'./yjearth4_0/',to:'./yjearth4_0'},{from:'./ffplay/',to:'./ffplay'},{from:'./build/icons/',to:'./icons'}],installUrl:'D:\\ProgramFiles\\'+t,build_appId:'org.'+t,APPSECRET:'',appVersion:'earth',build_linux_desktop_Icon:'/opt/'+o+'/icons/81.png'}},function(e){e.exports=require('net')},function(e,t,o){var r=o(8),n=o(55),s=new n().path,a=[];'win32'==r.platform()&&(a=s.split('\\')),'linux'==r.platform()&&(a=s.split('/')),a[a.length-1]='';var i=a.join('/'),l=process.execPath.replaceAll('\\','/'),p=l.split('/');p[p.length-2],e.exports={db_path:i,execPath:p[p.length-2]}},function(e,t,o){'use strict';var r=o(32),n=o.n(r),s=o(99),a=o.n(s),i=o(25),l=o.n(i),p=o(116),d=o(117),c=o(122),u=o(53),f=o(133),_=o(8),g=o.n(_),h=o(13),y=o.n(h),m=o(154),x=o.n(m),b=o(74),v=o(52),S=o.n(v),O=o(26),E=o(14),P=o(162),T=o(9),w=o(54),j=T.join(Object(O.a)(),'/ffplay/'),k=o(163),M='',R=new a.a;t.a={Mainfunc:function(t){i.ipcMain.on('setStaticFile',function(e,t){if(E.existsSync(t)){var o=t.replaceAll('\\','/').split('/');o.pop(),u.a.use(w.static(o.join('/')))}}),i.ipcMain.on('restart',function(){Object(v.closeChild)(),i.app.relaunch(),i.app.exit()}),i.ipcMain.on('getHead',function(e){e.sender.send('headRes',process.env.Head)}),i.ipcMain.on('open-directory-dialog',function(e,t){i.dialog.showOpenDialog(i.BrowserWindow.getFocusedWindow(),{properties:t.properties,filters:t.filters}).then(function(t){var o=[];t.canceled||t.filePaths.forEach(function(e){o.push(e.replace(/\\/g,'/'))}),e.sender.send('selectedItem',o)})}),i.ipcMain.on('openFFPlay',function(t,e){var o='',r=g.a.platform();o='win32'===r?'ffplay.exe':'ffplay';var n=e.name;console.log('obj',e),console.log(T.join(Object(O.a)(),'/ffplay/'+o));var s=Object(h.spawn)(T.join(Object(O.a)(),'/ffplay/'+o),['-window_title',n,'-x','1300','-y','730',e.url],{cwd:j,stdio:'ignore'}).on('exit',function(o){console.log('out'),console.log(o),t.sender.send('openFFPlayOut',o),e.id&&t.sender.send('openFFPlayOut_'+e.id,o,e.id)});console.log('child',s.pid),s.unref()}),i.ipcMain.on('saveFile',function(e,t){var o=t.title,r=t.filename,n=t.filters;i.dialog.showSaveDialog({title:o,defaultPath:r,filters:n}).then(function(t){var o='';t.canceled||(o=t.filePath.replace(/\\/g,'/')),e.sender.send('selectedFileItem',o)})}),i.ipcMain.on('startRecoder',function(){M=new f.a,M.start()}),i.ipcMain.on('endRecoder',function(){return M?void M.end(function(){console.log('xxxxx');var e=i.dialog.showSaveDialogSync({title:'\u4FDD\u5B58\u89C6\u9891\u6587\u4EF6',defaultPath:x()().format('YYYYMMDDHHmmss')+'\u89C6\u9891\u5F55\u5236.mp4',filters:[{name:'\u6587\u4EF6\u7C7B\u578B',extensions:['mp4']}]});console.log('path',e),e==void 0?M=null:M.move(e,function(){M=null})}):void console.log('recorder\u4E0D\u5B58\u5728')}),i.ipcMain.on('saveNetFile',function(e,t){var o=t.title,r=t.filename,n=t.filters,s=t.url;i.dialog.showSaveDialog({title:o,defaultPath:r,filters:n}).then(function(t){var o='';if(!t.canceled){var r=function(t){console.log('\u4E0B\u8F7D\u5B8C\u6210'),e.sender.send('saveNetFileRes',t)},n=function(e,t){k.get(e,function(e){var o=parseInt(e.headers['content-length']);e.pipe(E.createWriteStream(t)),e.on('end',function(){r('success')})}).on('error',function(){console.log('\u5B8C\u6210'),r('error')})};o=t.filePath.replace(/\\/g,'/'),n(s,o)}})}),i.ipcMain.on('requireGEMarkerName',function(e,t){var o={};for(var r in t){var n=E.readdirSync(T.join(global.__static?global.__static:Object(O.a)()+'/static',t[r]));console.log(n);for(var s=0;s<n.length;s++)n[s]=t[r]+'/'+n[s];o[t[r]]=n}e.sender.send('dirFiles',o)}),i.ipcMain.on('transformModel',function(e,t){var o=function(t){e.sender.send('transformModelRes','\u6A21\u578B\u8F6C\u6362\u7ED3\u675F',t)},r=t.fun,n=t.input,s=t.output;'osgbToglb'===r?Object(p.c)(n,s,o):'shapeToglb'===r?Object(p.d)(n,s,o):'b3dmToglb'===r?Object(p.a)(n,s,o):'objToglb'===r?new d.a().obj2glb(n,s,o):'daeTogltf'===r?Object(p.b)(n,s,o):'Fbx2glb'===r?new c.a().fbx2glb(n,s,o):void 0}),i.ipcMain.on('newDir',function(e,t){var o='';t.paths.forEach(function(e){o=T.join(o,e)}),E.existsSync(o)||E.mkdirSync(o);var r=T.join(o,t.name+'.png');E.writeFile(r,t.buffer,function(t){var o=r;t&&(o='\u5931\u8D25'),e.sender.send('newDirRes',o)})}),i.ipcMain.on('getIniConfig',function(e,t){console.log('1111111111111111111111111111111111111111111111111111111111111');var o=T.join(Object(O.a)(),'/yjearth4_0/static/config/config.ini');console.log('iniPath',o);var r=P.parse(E.readFileSync(o,'utf-8'));for(var s in t){var a=t[s];if('object'==('undefined'==typeof a?'undefined':n()(a)))for(var i in a)r[s][i]=a[i]}E.writeFileSync(o,P.stringify(r)),e.sender.send('IniConfig',r)}),i.ipcMain.on('submitPort',function(e,t){Object(b.b)(t),e.sender.send('submitPortRes',t)}),i.ipcMain.on('setNodes',function(e,t){console.log('\u63A5\u53D7\u5230\u6570\u636E',t);var o=Object(b.c)(t);e.sender.send('replayRenderer',o)}),i.ipcMain.on('files-dropped',function(e,t){e.sender.send('DroppedFiles',t)}),i.ipcMain.handle('get-shared-object',function(){return global.sharedObject}),i.ipcMain.handle('set-shared-object',function(e,t,o){return global.sharedObject[t]=o,{success:!0}}),i.ipcMain.on('changeField',function(o,e){t.webContents.send('changeFields',e)})}}},function(e,t,o){e.exports={default:o(84),__esModule:!0}},function(e,t,o){o(18),o(23),e.exports=o(43).f('iterator')},function(e,t,o){var r=o(33),n=o(34);e.exports=function(e){return function(t,o){var p,a,d=n(t)+'',s=r(o),i=d.length;return 0>s||s>=i?e?'':void 0:(p=d.charCodeAt(s),55296>p||56319<p||s+1===i||56320>(a=d.charCodeAt(s+1))||57343<a?e?d.charAt(s):p:e?d.slice(s,s+2):(p-55296<<10)+(a-56320)+65536)}}},function(e,t,o){'use strict';var r=o(28),n=o(27),s=o(22),a={};o(11)(a,o(2)('iterator'),function(){return this}),e.exports=function(e,t,o){e.prototype=r(a,{next:n(1,o)}),s(e,t+' Iterator')}},function(e,t,o){var r=o(5),n=o(6),s=o(38);e.exports=o(7)?Object.defineProperties:function(e,t){n(e);for(var o,a=s(t),l=a.length,p=0;l>p;)r.f(e,o=a[p++],t[o]);return e}},function(e,t,o){var r=o(17),n=o(39),s=o(89);e.exports=function(e){return function(t,o,a){var i,l=r(t),p=n(l.length),d=s(a,p);if(e&&o!=o){for(;p>d;)if(i=l[d++],i!=i)return!0;}else for(;p>d;d++)if((e||d in l)&&l[d]===o)return e||d||0;return!e&&-1}}},function(e,t,o){var r=o(33),n=Math.max,s=Math.min;e.exports=function(e,t){return e=r(e),0>e?n(e+t,0):s(e,t)}},function(e,t,o){'use strict';var r=o(91),n=o(62),s=o(16),a=o(17);e.exports=o(35)(Array,'Array',function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,n(1)):'keys'==t?n(0,o):'values'==t?n(0,e[o]):n(0,[o,e[o]])},'values'),s.Arguments=s.Array,r('keys'),r('values'),r('entries')},function(e){e.exports=function(){}},function(e,t,o){e.exports={default:o(93),__esModule:!0}},function(e,t,o){o(94),o(47),o(97),o(98),e.exports=o(0).Symbol},function(e,t,o){'use strict';var r=o(1),n=o(12),s=o(7),a=o(3),i=o(57),l=o(44).KEY,p=o(15),d=o(41),c=o(22),u=o(29),f=o(2),_=o(43),g=o(45),h=o(95),y=o(64),m=o(6),x=o(4),b=o(30),v=o(17),S=o(37),O=o(27),E=o(28),P=o(96),T=o(66),w=o(63),M=o(5),R=o(38),I=T.f,A=M.f,D=P.f,C=r.Symbol,F=r.JSON,N=F&&F.stringify,L='prototype',Y=f('_hidden'),H=f('toPrimitive'),K={}.propertyIsEnumerable,W=d('symbol-registry'),G=d('symbols'),U=d('op-symbols'),z=Object[L],B='function'==typeof C&&!!w.f,V=r.QObject,J=!V||!V[L]||!V[L].findChild,q=s&&p(function(){return 7!=E(A({},'a',{get:function(){return A(this,'a',{value:7}).a}})).a})?function(e,t,o){var r=I(z,t);r&&delete z[t],A(e,t,o),r&&e!==z&&A(z,t,r)}:A,Z=function(e){var t=G[e]=E(C[L]);return t._k=e,t},X=B&&'symbol'==typeof C.iterator?function(e){return'symbol'==typeof e}:function(e){return e instanceof C},Q=function(e,t,o){return e===z&&Q(U,t,o),m(e),t=S(t,!0),m(o),n(G,t)?(o.enumerable?(n(e,Y)&&e[Y][t]&&(e[Y][t]=!1),o=E(o,{enumerable:O(0,!1)})):(!n(e,Y)&&A(e,Y,O(1,{})),e[Y][t]=!0),q(e,t,o)):A(e,t,o)},$=function(e,t){m(e);for(var o,r=h(t=v(t)),n=0,s=r.length;s>n;)Q(e,o=r[n++],t[o]);return e},ee=function(e){var t=K.call(this,e=S(e,!0));return this===z&&n(G,e)&&!n(U,e)?!1:t||!n(this,e)||!n(G,e)||n(this,Y)&&this[Y][e]?t:!0},te=function(e,t){if(e=v(e),t=S(t,!0),e!==z||!n(G,t)||n(U,t)){var o=I(e,t);return o&&n(G,t)&&!(n(e,Y)&&e[Y][t])&&(o.enumerable=!0),o}},oe=function(e){for(var t,o=D(v(e)),r=[],s=0;o.length>s;)n(G,t=o[s++])||t==Y||t==l||r.push(t);return r},re=function(e){for(var t,o=e===z,r=D(o?U:v(e)),s=[],a=0;r.length>a;)n(G,t=r[a++])&&(!o||n(z,t))&&s.push(G[t]);return s};B||(C=function(){if(this instanceof C)throw TypeError('Symbol is not a constructor!');var e=u(0<arguments.length?arguments[0]:void 0),t=function(o){this===z&&t.call(U,o),n(this,Y)&&n(this[Y],e)&&(this[Y][e]=!1),q(this,e,O(1,o))};return s&&J&&q(z,e,{configurable:!0,set:t}),Z(e)},i(C[L],'toString',function(){return this._k}),T.f=te,M.f=Q,o(65).f=P.f=oe,o(46).f=ee,w.f=re,s&&!o(19)&&i(z,'propertyIsEnumerable',ee,!0),_.f=function(e){return Z(f(e))}),a(a.G+a.W+a.F*!B,{Symbol:C});for(var ne=['hasInstance','isConcatSpreadable','iterator','match','replace','search','species','split','toPrimitive','toStringTag','unscopables'],se=0;ne.length>se;)f(ne[se++]);for(var j=R(f.store),ae=0;j.length>ae;)g(j[ae++]);a(a.S+a.F*!B,'Symbol',{for:function(e){return n(W,e+='')?W[e]:W[e]=C(e)},keyFor:function(e){if(!X(e))throw TypeError(e+' is not a symbol!');for(var t in W)if(W[t]===e)return t},useSetter:function(){J=!0},useSimple:function(){J=!1}}),a(a.S+a.F*!B,'Object',{create:function(e,t){return t===void 0?E(e):$(E(e),t)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:te,getOwnPropertyNames:oe,getOwnPropertySymbols:re});var k=p(function(){w.f(1)});a(a.S+a.F*k,'Object',{getOwnPropertySymbols:function(e){return w.f(b(e))}}),F&&a(a.S+a.F*(!B||p(function(){var e=C();return'[null]'!=N([e])||'{}'!=N({a:e})||'{}'!=N(Object(e))})),'JSON',{stringify:function(e){for(var t,o,r=[e],n=1;arguments.length>n;)r.push(arguments[n++]);if(o=t=r[1],(x(t)||void 0!==e)&&!X(e))return y(t)||(t=function(e,t){if('function'==typeof o&&(t=o.call(this,e,t)),!X(t))return t}),r[1]=t,N.apply(F,r)}}),C[L][H]||o(11)(C[L],H,C[L].valueOf),c(C,'Symbol'),c(Math,'Math',!0),c(r.JSON,'JSON',!0)},function(e,t,o){var r=o(38),n=o(63),s=o(46);e.exports=function(e){var t=r(e),o=n.f;if(o)for(var a,l=o(e),p=s.f,d=0;l.length>d;)p.call(e,a=l[d++])&&t.push(a);return t}},function(e,t,o){var r=o(17),n=o(65).f,s={}.toString,a='object'==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(e){try{return n(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&'[object Window]'==s.call(e)?i(e):n(r(e))}},function(e,t,o){o(45)('asyncIterator')},function(e,t,o){o(45)('observable')},function(e,t,o){e.exports={default:o(100),__esModule:!0}},function(e,t,o){o(47),o(18),o(23),o(101),o(109),o(112),o(114),e.exports=o(0).Map},function(e,t,o){'use strict';var r=o(102),n=o(69),s='Map';e.exports=o(105)(s,function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(n(this,s),e);return t&&t.v},set:function(e,t){return r.def(n(this,s),0===e?0:e,t)}},r,!0)},function(e,t,o){'use strict';var r=o(5).f,n=o(28),s=o(48),a=o(10),i=o(49),l=o(24),p=o(35),d=o(62),c=o(68),u=o(7),f=o(44).fastKey,_=o(69),g=u?'_s':'size',h=function(e,t){var o,r=f(t);if('F'!==r)return e._i[r];for(o=e._f;o;o=o.n)if(o.k==t)return o};e.exports={getConstructor:function(e,t,o,p){var d=e(function(e,r){i(e,d,t,'_i'),e._t=t,e._i=n(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&l(r,o,e[p],e)});return s(d.prototype,{clear:function(){for(var e=_(this,t),o=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete o[r.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var o=_(this,t),r=h(o,e);if(r){var n=r.n,s=r.p;delete o._i[r.i],r.r=!0,s&&(s.n=n),n&&(n.p=s),o._f==r&&(o._f=n),o._l==r&&(o._l=s),o[g]--}return!!r},forEach:function(e){_(this,t);for(var o,r=a(e,1<arguments.length?arguments[1]:void 0,3);o=o?o.n:this._f;)for(r(o.v,o.k,this);o&&o.r;)o=o.p},has:function(e){return!!h(_(this,t),e)}}),u&&r(d.prototype,'size',{get:function(){return _(this,t)[g]}}),d},def:function(e,t,o){var r,n,s=h(e,t);return s?s.v=o:(e._l=s={i:n=f(t,!0),k:t,v:o,p:r=e._l,n:void 0,r:!1},!e._f&&(e._f=s),r&&(r.n=s),e[g]++,'F'!==n&&(e._i[n]=s)),e},getEntry:h,setStrong:function(e,t,o){p(e,t,function(e,o){this._t=_(e,t),this._k=o,this._l=void 0},function(){for(var e=this,t=e._k,o=e._l;o&&o.r;)o=o.p;return e._t&&(e._l=o=o?o.n:e._t._f)?'keys'==t?d(0,o.k):'values'==t?d(0,o.v):d(0,[o.k,o.v]):(e._t=void 0,d(1))},o?'entries':'values',!o,!0),c(t)}}},function(e,t,o){var r=o(6);e.exports=function(t,e,o,n){try{return n?e(r(o)[0],o[1]):e(o)}catch(o){var s=t['return'];throw void 0!==s&&r(s.call(t)),o}}},function(e,t,o){var r=o(16),n=o(2)('iterator'),s=Array.prototype;e.exports=function(e){return e!==void 0&&(r.Array===e||s[n]===e)}},function(e,t,o){'use strict';var r=o(1),n=o(3),s=o(44),a=o(15),i=o(11),l=o(48),p=o(24),d=o(49),c=o(4),u=o(22),f=o(5).f,_=o(106)(0),g=o(7);e.exports=function(e,t,o,h,y,m){var x=r[e],v=x,b=y?'set':'add',S=v&&v.prototype,E={};return g&&'function'==typeof v&&(m||S.forEach&&!a(function(){new v().entries().next()}))?(v=t(function(t,o){d(t,v,e,'_c'),t._c=new x,void 0!=o&&p(o,y,t[b],t)}),_(['add','clear','delete','forEach','get','has','set','keys','values','entries','toJSON'],function(e){var t='add'==e||'set'==e;e in S&&!(m&&'clear'==e)&&i(v.prototype,e,function(o,r){if(d(this,v,e),t||!m||c(o)){var n=this._c[e](0===o?0:o,r);return t?this:n}})}),m||f(v.prototype,'size',{get:function(){return this._c.size}})):(v=h.getConstructor(t,e,y,b),l(v.prototype,o),s.NEED=!0),u(v,e),E[e]=v,n(n.G+n.W+n.F,E),m||h.setStrong(v,e,y),v}},function(e,t,o){var r=o(10),n=o(59),s=o(30),a=o(39),i=o(107);e.exports=function(e,t){var o=1==e,l=4==e,p=6==e,d=t||i;return function(t,i,c){for(var u,_,g=s(t),h=n(g),y=r(i,c,3),f=a(h.length),m=0,x=o?d(t,f):2==e?d(t,0):void 0;f>m;m++)if((5==e||p||m in h)&&(u=h[m],_=y(u,m,g),e))if(o)x[m]=_;else if(_)switch(e){case 3:return!0;case 5:return u;case 6:return m;case 2:x.push(u);}else if(l)return!1;return p?-1:3==e||l?l:x}}},function(e,t,o){var r=o(108);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,o){var r=o(4),n=o(64),s=o(2)('species');e.exports=function(e){var t;return n(e)&&(t=e.constructor,'function'==typeof t&&(t===Array||n(t.prototype))&&(t=void 0),r(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,o){var r=o(3);r(r.P+r.R,'Map',{toJSON:o(110)('Map')})},function(e,t,o){var r=o(31),n=o(111);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+'#toJSON isn\'t generic');return n(this)}}},function(e,t,o){var r=o(24);e.exports=function(e,t){var o=[];return r(e,!1,o.push,o,t),o}},function(e,t,o){o(113)('Map')},function(e,t,o){'use strict';var r=o(3);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,o){o(115)('Map')},function(e,t,o){'use strict';var r=o(3),s=o(20),a=o(10),i=o(24);e.exports=function(e){r(r.S,e,{from:function(e){var t,o,r,n,l=arguments[1];return(s(this),t=void 0!==l,t&&s(l),void 0==e)?new this:(o=[],t?(r=0,n=a(l,arguments[2],2),i(e,!1,function(e){o.push(n(e,r++))})):i(e,!1,o.push,o),new this(o))}})}},function(e,t,o){'use strict';function r(e,t){console.log(e);try{var o=s.exec(e,{cwd:n.join(process.cwd(),'convert')});o.stdout.on('data',function(){}),o.stderr.on('data',function(){console.log('stderr_________________________')}),o.on('close',function(e){console.log('out code_______________________\uFF1A'+e),t()})}catch(t){console.log(t)}}t.c=function(e,t,o){r('start '+a+' -f osgb -i '+e+' -o '+t,o)},t.d=function(e,t,o){r('start '+a+' -f shape -i '+e+' -o '+t+' --height height',o)},t.a=function(e,t,o){r('start '+a+' -f b3dm -i '+e+' -o '+t,o)},t.b=function(e,t,o){try{var r=s.exec('start '+l+' -i '+e+' -o '+t,{cwd:n.join(process.cwd(),'collada2gltf')});r.on('close',function(){o()})}catch(t){console.log(t)}};var n=o(9),s=o(13),a=n.join(process.cwd(),'/convert/_3dtile.exe'),l=n.join(process.cwd(),'/collada2gltf/COLLADA2GLTF-bin.exe')},function(e,t,o){'use strict';t.a=function(){this.obj2gltf=function(e){s(e+'.obj').then(function(t){var o=Buffer.from(n()(t));a.writeFileSync(e+'.gltf',o)})},this.obj2glb=function(e,t,o){s(e,{binary:!0}).then(function(e){a.writeFileSync(t,e),o()})}};var r=o(118),n=o.n(r),s=o(120),a=o(14),i=o(121),l=i.processGltf},function(e,t,o){e.exports={default:o(119),__esModule:!0}},function(e,t,o){var r=o(0),n=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(){return n.stringify.apply(n,arguments)}},function(e){e.exports=require('obj2gltf')},function(e){e.exports=require('gltf-pipeline')},function(e,t,o){'use strict';t.a=function(){function e(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:[];return new n.a(function(r,n){try{var d='Windows_NT'===i.type()?'.exe':'',c=l.join(process.cwd(),'convert/FBX2glTF.exe');if(!a.existsSync(c))throw new Error('Unsupported OS: '+i.type());var u;if(t.endsWith('.glb'))u='.glb',o.includes('--binary')||o.push('--binary');else if(t.endsWith('.gltf'))u='.gltf';else throw new Error('Unsupported file extension: '+t);var f=a.realpathSync(e),_=a.realpathSync(l.dirname(t)),g=l.join(_,l.basename(t,u)),h=o.slice(0);h.push('--input',f,'--output',g);var y=s.spawn(c,h),m='';y.stdout.on('data',function(e){return m+=e}),y.stderr.on('data',function(e){return m+=e}),y.on('error',n),y.on('close',function(e){var t=f.replace(/.fbx$/i,'.fbm'),o=function(e){return e&&console.warn('Failed to delete '+t+': '+e)};try{a.existsSync(t)&&p(t,{},o)}catch(e){o(e)}0==e?r(g+u):n(new Error('Converter output:\n'+(m.length?m:'<none>')))})}catch(e){n(e)}})}this.fbx2glb=function(t,o,r){e(t,o,['--khr-materials-unlit']).then(function(e){r(e)},function(e){r(e)})}};var r=o(123),n=o.n(r),s=o(13),a=o(14),i=o(8),l=o(9),p=o(132);console.log(l.join(process.cwd(),'convert/FBX2glTF.exe'))},function(e,t,o){e.exports={default:o(124),__esModule:!0}},function(e,t,o){o(47),o(18),o(23),o(125),o(130),o(131),e.exports=o(0).Promise},function(e,t,o){'use strict';var r,n,s,a,i=o(19),l=o(1),p=o(10),d=o(31),c=o(3),u=o(4),f=o(20),_=o(49),g=o(24),h=o(70),y=o(71).set,m=o(127)(),x=o(50),b=o(72),v=o(128),S=o(73),O='Promise',E=l.TypeError,P=l.process,T=P&&P.versions,w=T&&T.v8||'',j=l[O],k='process'==d(P),M=function(){},R=n=x.f,I=!!function(){try{var e=j.resolve(1),t=(e.constructor={})[o(2)('species')]=function(e){e(M,M)};return(k||'function'==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==w.indexOf('6.6')&&-1===v.indexOf('Chrome/66')}catch(t){}}(),A=function(e){var t;return u(e)&&'function'==typeof(t=e.then)&&t},D=function(e,t){if(!e._n){e._n=!0;var o=e._c;m(function(){for(var r=e._v,n=1==e._s,s=0,a=function(t){var o,s,a,i=n?t.ok:t.fail,l=t.resolve,p=t.reject,d=t.domain;try{i?(!n&&(2==e._h&&N(e),e._h=1),!0===i?o=r:(d&&d.enter(),o=i(r),d&&(d.exit(),a=!0)),o===t.promise?p(E('Promise-chain cycle')):(s=A(o))?s.call(o,l,p):l(o)):p(r)}catch(t){d&&!a&&d.exit(),p(t)}};o.length>s;)a(o[s++]);e._c=[],e._n=!1,t&&!e._h&&C(e)})}},C=function(e){y.call(l,function(){var t,o,r,n=e._v,s=F(e);if(s&&(t=b(function(){k?P.emit('unhandledRejection',n,e):(o=l.onunhandledrejection)?o({promise:e,reason:n}):(r=l.console)&&r.error&&r.error('Unhandled promise rejection',n)}),e._h=k||F(e)?2:1),e._a=void 0,s&&t.e)throw t.v})},F=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){y.call(l,function(){var t;k?P.emit('rejectionHandled',e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},L=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,!t._a&&(t._a=t._c.slice()),D(t,!0))},Y=function(e){var t,o=this;if(!o._d){o._d=!0,o=o._w||o;try{if(o===e)throw E('Promise can\'t be resolved itself');(t=A(e))?m(function(){var r={_w:o,_d:!1};try{t.call(e,p(Y,r,1),p(L,r,1))}catch(t){L.call(r,t)}}):(o._v=e,o._s=1,D(o,!1))}catch(t){L.call({_w:o,_d:!1},t)}}};I||(j=function(e){_(this,j,O,'_h'),f(e),r.call(this);try{e(p(Y,this,1),p(L,this,1))}catch(e){L.call(this,e)}},r=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=o(48)(j.prototype,{then:function(e,t){var o=R(h(this,j));return o.ok='function'!=typeof e||e,o.fail='function'==typeof t&&t,o.domain=k?P.domain:void 0,this._c.push(o),this._a&&this._a.push(o),this._s&&D(this,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),s=function(){var e=new r;this.promise=e,this.resolve=p(Y,e,1),this.reject=p(L,e,1)},x.f=R=function(e){return e===j||e===a?new s(e):n(e)}),c(c.G+c.W+c.F*!I,{Promise:j}),o(22)(j,O),o(68)(O),a=o(0)[O],c(c.S+c.F*!I,O,{reject:function(e){var t=R(this),o=t.reject;return o(e),t.promise}}),c(c.S+c.F*(i||!I),O,{resolve:function(e){return S(i&&this===a?j:this,e)}}),c(c.S+c.F*!(I&&o(129)(function(e){j.all(e)['catch'](M)})),O,{all:function(e){var t=this,o=R(t),r=o.resolve,n=o.reject,s=b(function(){var o=[],s=0,a=1;g(e,!1,function(e){var i=s++,l=!1;o.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,o[i]=e,--a||r(o))},n)}),--a||r(o)});return s.e&&n(s.v),o.promise},race:function(e){var t=this,o=R(t),r=o.reject,n=b(function(){g(e,!1,function(e){t.resolve(e).then(o.resolve,r)})});return n.e&&r(n.v),o.promise}})},function(e){e.exports=function(e,t,o){var r=o===void 0;switch(t.length){case 0:return r?e():e.call(o);case 1:return r?e(t[0]):e.call(o,t[0]);case 2:return r?e(t[0],t[1]):e.call(o,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(o,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(o,t[0],t[1],t[2],t[3]);}return e.apply(o,t)}},function(e,t,o){var r=o(1),n=o(71).set,s=r.MutationObserver||r.WebKitMutationObserver,a=r.process,i=r.Promise,l='process'==o(21)(a);e.exports=function(){var t,o,p,e=function(){var e,r;for(l&&(e=a.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(r){throw t?p():o=void 0,r}}o=void 0,e&&e.enter()};if(l)p=function(){a.nextTick(e)};else if(s&&!(r.navigator&&r.navigator.standalone)){var d=!0,c=document.createTextNode('');new s(e).observe(c,{characterData:!0}),p=function(){c.data=d=!d}}else if(i&&i.resolve){var u=i.resolve(void 0);p=function(){u.then(e)}}else p=function(){n.call(r,e)};return function(e){var r={fn:e,next:void 0};o&&(o.next=r),t||(t=r,p()),o=r}}},function(e,t,o){var r=o(1),n=r.navigator;e.exports=n&&n.userAgent||''},function(e,t,o){var r=o(2)('iterator'),n=!1;try{var s=[7][r]();s['return']=function(){n=!0},Array.from(s,function(){throw 2})}catch(t){}e.exports=function(e,t){if(!t&&!n)return!1;var o=!1;try{var s=[7],a=s[r]();a.next=function(){return{done:o=!0}},s[r]=function(){return a},e(s)}catch(t){}return o}},function(e,t,o){'use strict';var r=o(3),n=o(0),s=o(1),a=o(70),i=o(73);r(r.P+r.R,'Promise',{finally:function(t){var o=a(this,n.Promise||s.Promise),e='function'==typeof t;return this.then(e?function(e){return i(o,t()).then(function(){return e})}:t,e?function(r){return i(o,t()).then(function(){throw r})}:t)}})},function(e,t,o){'use strict';var r=o(3),n=o(50),s=o(72);r(r.S,'Promise',{try:function(e){var t=n.f(this),o=s(e);return(o.e?t.reject:t.resolve)(o.v),t.promise}})},function(e){e.exports=require('rimraf')},function(e,t,o){'use strict';o.d(t,'a',function(){return j});var r=o(134),n=o.n(r),s=o(138),a=o.n(s),i=o(142),l=o.n(i),p=o(143),d=o.n(p),c=o(144),u=o.n(c),f=o(9),_=o.n(f),g=o(14),h=o.n(g),y=o(26),m=o(8),x=m.platform(),b=m.arch(),v=o(152),S=o(13),O=S.spawn,E=o(153),P=_.a.join(Object(y.a)(),'ffplay'),T=function(e){function t(){return l()(this,t),d()(this,(t.__proto__||a()(t)).apply(this,arguments))}return u()(t,e),t}(E),w=new T,j=function(){function e(){0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};l()(this,e),this.shell=void 0,this.filename=v(parseInt(new Date().getTime())).format('YYYYMMDDHHmmss')+'.mp4',this.exe='ffmpeg.exe','win32'===x&&(this.exe='ffmpeg.exe',this.params='-f gdigrab -r 30 -y -i desktop -pix_fmt yuv420p'),'linux'===x&&('x64'===b?this.exe='ffmpeg_x86':'arm'===b||'arm64'===b?this.exe='ffmpeg_arm':void 0,this.params='-v verbose -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 -c:v libx264 -preset ultrafast -crf 18'),this.commands=_.a.join(Object(y.a)(),'/ffplay/'+this.exe)}return n()(e,[{key:'get_path',value:function(){return _.a.join(P,this.filename)}},{key:'start',value:function(){this.exec(this.commands,this.params)}},{key:'exec',value:function(e,t){var o=t.split(' ');o.push(this.get_path()),console.log('commands, arr',e,o),this.shell=O(e,o,{ffmpegExePath:P}).on('exit',function(e){console.log('exit',e),w.emit('process-exit')}).on('data',function(){}),this.shell.stdout.on('data',function(){}),this.shell.stderr.on('data',function(){}),this.shell.unref()}},{key:'end',value:function(e){this.shell.killed?e():(console.log(this.shell),this.shell.stdin.write('q\n'),w.once('process-exit',function(){e()}))}},{key:'move',value:function(e,t){var o=this,r=h.a.createReadStream(this.get_path()),n=h.a.createWriteStream(e);r.pipe(n),r.on('end',function(){h.a.unlinkSync(o.get_path()),t()})}}]),e}()},function(e,t,o){'use strict';t.__esModule=!0;var r=o(135),n=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),(0,n.default)(e,o.key,o)}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}()},function(e,t,o){e.exports={default:o(136),__esModule:!0}},function(e,t,o){o(137);var r=o(0).Object;e.exports=function(e,t,o){return r.defineProperty(e,t,o)}},function(e,t,o){var r=o(3);r(r.S+r.F*!o(7),'Object',{defineProperty:o(5).f})},function(e,t,o){e.exports={default:o(139),__esModule:!0}},function(e,t,o){o(140),e.exports=o(0).Object.getPrototypeOf},function(e,t,o){var r=o(30),n=o(61);o(141)('getPrototypeOf',function(){return function(e){return n(r(e))}})},function(e,t,o){var r=o(3),n=o(0),s=o(15);e.exports=function(e,t){var o=(n.Object||{})[e]||Object[e],a={};a[e]=t(o),r(r.S+r.F*s(function(){o(1)}),'Object',a)}},function(e,t){'use strict';t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}},function(e,t,o){'use strict';t.__esModule=!0;var r=o(32),n=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');return t&&('object'===('undefined'==typeof t?'undefined':(0,n.default)(t))||'function'==typeof t)?t:e}},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=o(145),s=r(n),a=o(149),i=r(a),l=o(32),p=r(l);t.default=function(e,t){if('function'!=typeof t&&null!==t)throw new TypeError('Super expression must either be null or a function, not '+('undefined'==typeof t?'undefined':(0,p.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(s.default?(0,s.default)(e,t):e.__proto__=t)}},function(e,t,o){e.exports={default:o(146),__esModule:!0}},function(e,t,o){o(147),e.exports=o(0).Object.setPrototypeOf},function(e,t,o){var r=o(3);r(r.S,'Object',{setPrototypeOf:o(148).set})},function(e,t,o){var r=o(4),n=o(6),s=function(e,t){if(n(e),!r(t)&&null!==t)throw TypeError(t+': can\'t set as prototype!')};e.exports={set:Object.setPrototypeOf||('__proto__'in{}?function(e,t,r){try{r=o(10)(Function.call,o(66).f(Object.prototype,'__proto__').set,2),r(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,o){return s(e,o),t?e.__proto__=o:r(e,o),e}}({},!1):void 0),check:s}},function(e,t,o){e.exports={default:o(150),__esModule:!0}},function(e,t,o){o(151);var r=o(0).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,o){var r=o(3);r(r.S,'Object',{create:o(28)})},function(e){e.exports=require('moment')},function(e){e.exports=require('events')},function(e){e.exports=require('dayjs')},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=o(156),s=r(n),a=o(75),l=r(a);t.default=function(){function e(e,t){var o=[],r=!0,n=!1,s=void 0;try{for(var a,i=(0,l.default)(e);!(r=(a=i.next()).done)&&(o.push(a.value),!(t&&o.length===t));r=!0);}catch(e){n=!0,s=e}finally{try{!r&&i['return']&&i['return']()}finally{if(n)throw s}}return o}return function(t,o){if(Array.isArray(t))return t;if((0,s.default)(Object(t)))return e(t,o);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}()},function(e,t,o){e.exports={default:o(157),__esModule:!0}},function(e,t,o){o(23),o(18),e.exports=o(158)},function(e,t,o){var r=o(31),n=o(2)('iterator'),s=o(16);e.exports=o(0).isIterable=function(e){var t=Object(e);return t[n]!==void 0||'@@iterator'in t||s.hasOwnProperty(r(t))}},function(e,t,o){o(23),o(18),e.exports=o(160)},function(e,t,o){var r=o(6),n=o(67);e.exports=o(0).getIterator=function(e){var t=n(e);if('function'!=typeof t)throw TypeError(e+' is not iterable!');return r(t.call(e))}},function(e){e.exports=require('dgram')},function(e){e.exports=require('ini')},function(e){e.exports=require('http')},function(){},function(e,t,o){'use strict';function r(e){var t;switch(l.platform()){case'win32':e='yjearth4'+e+'.exe',t='tasklist | findstr "'+e+'"',i(t,function(t,o){if(t)return void console.error('\u6267\u884C tasklist \u547D\u4EE4\u65F6\u51FA\u9519: '+t);var r=o.split('\n'),n=!0,a=!1,l=void 0;try{for(var p,d,c=s()(r);!(n=(p=c.next()).done);n=!0)d=p.value,d.includes(e)&&function(){var t=d.split(/\s+/),o=t[1];i('taskkill /F /PID '+o,function(t){return t?void console.error('\u6740\u6B7B\u8FDB\u7A0B\u65F6\u51FA\u9519: '+t):void console.log('\u5DF2\u5728 Windows \u7CFB\u7EDF\u6740\u6B7B\u8FDB\u7A0B '+e+' (PID: '+o+')')})}()}catch(e){a=!0,l=e}finally{try{!n&&c.return&&c.return()}finally{if(a)throw l}}});break;case'linux':t='ps -ef | grep "yjearth4'+e+'"',i(t,function(t,o){if(t)return void console.error('\u6267\u884C ps \u547D\u4EE4\u65F6\u51FA\u9519: '+t);var r=o.split('\n'),n=!0,a=!1,l=void 0;try{for(var p,d,c=s()(r);!(n=(p=c.next()).done);n=!0)d=p.value,d.includes(e)&&function(){var t=d.split(/\s+/),o=t[1];i('kill -9 '+o,function(t){return t?void console.error('\u6740\u6B7B\u8FDB\u7A0B\u65F6\u51FA\u9519: '+t):void console.log('\u5DF2\u5728 Linux \u7CFB\u7EDF\u6740\u6B7B\u8FDB\u7A0B '+e+' (PID: '+o+')')})}()}catch(e){a=!0,l=e}finally{try{!n&&c.return&&c.return()}finally{if(a)throw l}}});break;default:console.error('\u4E0D\u652F\u6301\u7684\u64CD\u4F5C\u7CFB\u7EDF: '+l.platform());}}o.d(t,'a',function(){return r});var n=o(75),s=o.n(n),a=o(13),i=a.exec,l=o(8)}]); |