@unotest/viewer 0.35.2 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/server/main.js +1 -1
- package/dist/server/session.js +1 -1
- package/dist/server/snapshot.js +1 -1
- package/dist/server/wire.js +1 -1
- package/dist/web/assets/{DslEditor-BeB1_ndu.js → DslEditor-DaxcTIeO.js} +2 -2
- package/dist/web/assets/index-BVJFZDMP.js +55 -0
- package/dist/web/index.html +1 -1
- package/package.json +6 -6
- package/dist/web/assets/index-D9C8KC0B.js +0 -55
package/dist/server/session.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16041c=_0x2bd7;(function(_0x3032e3,_0x3d1c80){const _0x2ed316={_0x4eb6d2:0xba,_0x4c5f5b:0xd3,_0x528f0b:0xd0,_0x51e5c9:0xc3,_0x2578c8:0xbb,_0x3a8a6c:0xca},_0x4df8dc=_0x2bd7,_0x32199c=_0x3032e3();while(!![]){try{const _0x650b3a=parseInt(_0x4df8dc(_0x2ed316._0x4eb6d2))/0x1*(-parseInt(_0x4df8dc(_0x2ed316._0x4c5f5b))/0x2)+parseInt(_0x4df8dc(0xc1))/0x3*(-parseInt(_0x4df8dc(0xc4))/0x4)+-parseInt(_0x4df8dc(0xc0))/0x5+-parseInt(_0x4df8dc(_0x2ed316._0x528f0b))/0x6+parseInt(_0x4df8dc(0xbe))/0x7*(parseInt(_0x4df8dc(0xc8))/0x8)+parseInt(_0x4df8dc(_0x2ed316._0x51e5c9))/0x9*(parseInt(_0x4df8dc(_0x2ed316._0x2578c8))/0xa)+parseInt(_0x4df8dc(_0x2ed316._0x3a8a6c))/0xb;if(_0x650b3a===_0x3d1c80)break;else _0x32199c['push'](_0x32199c['shift']());}catch(_0x4bc1e1){_0x32199c['push'](_0x32199c['shift']());}}}(_0x22e8,0x4f0bf));var __defProp=Object[_0x16041c(0xc6)],__name=(_0xc7bc81,_0x3d4e92)=>__defProp(_0xc7bc81,_0x16041c(0xd1),{'value':_0x3d4e92,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER=_0x16041c(0xcc);function _0x2bd7(_0x2e2027,_0x13452a){_0x2e2027=_0x2e2027-0xb9;const _0x22e85a=_0x22e8();let _0x2bd7cc=_0x22e85a[_0x2e2027];if(_0x2bd7['KLOlwY']===undefined){var _0x238578=function(_0x38af4a){const _0x71b04f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc7bc81='',_0x3d4e92='';for(let _0x285d6c=0x0,_0x510fec,_0x228ef4,_0x14f19f=0x0;_0x228ef4=_0x38af4a['charAt'](_0x14f19f++);~_0x228ef4&&(_0x510fec=_0x285d6c%0x4?_0x510fec*0x40+_0x228ef4:_0x228ef4,_0x285d6c++%0x4)?_0xc7bc81+=String['fromCharCode'](0xff&_0x510fec>>(-0x2*_0x285d6c&0x6)):0x0){_0x228ef4=_0x71b04f['indexOf'](_0x228ef4);}for(let _0x3bf9a5=0x0,_0x25d890=_0xc7bc81['length'];_0x3bf9a5<_0x25d890;_0x3bf9a5++){_0x3d4e92+='%'+('00'+_0xc7bc81['charCodeAt'](_0x3bf9a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3d4e92);};_0x2bd7['ucSqbI']=_0x238578,_0x2bd7['tOeIhX']={},_0x2bd7['KLOlwY']=!![];}const _0x52a8e0=_0x22e85a[0x0],_0x9c9c3c=_0x2e2027+_0x52a8e0,_0x4255b7=_0x2bd7['tOeIhX'][_0x9c9c3c];return!_0x4255b7?(_0x2bd7cc=_0x2bd7['ucSqbI'](_0x2bd7cc),_0x2bd7['tOeIhX'][_0x9c9c3c]=_0x2bd7cc):_0x2bd7cc=_0x4255b7,_0x2bd7cc;}function encodeViewerSession(_0x285d6c){const _0x359eea=_0x16041c;return Buffer[_0x359eea(0xd2)](JSON['stringify'](_0x285d6c),_0x359eea(0xc5))['toString']('base64url');}__name(encodeViewerSession,'encodeViewerSession');function decodeViewerSession(_0x510fec){const _0x306729={_0x3571cb:0xd4,_0x1b391d:0xbc,_0x4841d4:0xbf},_0x4e3973=_0x16041c;if(_0x510fec===void 0x0||_0x510fec==='')return null;let _0x228ef4;try{_0x228ef4=JSON[_0x4e3973(_0x306729._0x3571cb)](Buffer['from'](_0x510fec,_0x4e3973(_0x306729._0x1b391d))[_0x4e3973(0xcb)]('utf8'));}catch{return null;}if(typeof _0x228ef4!==_0x4e3973(_0x306729._0x4841d4)||_0x228ef4===null)return null;const {capabilities:_0x14f19f,identity:_0x3bf9a5}=_0x228ef4,_0x25d890=readCapabilities(_0x14f19f);if(_0x25d890===null)return null;return{'capabilities':_0x25d890,'identity':readIdentity(_0x3bf9a5)};}__name(decodeViewerSession,'decodeViewerSession');function readCapabilities(_0x16cdcf){const _0x28b3ae={_0x38a219:0xbd},_0x3c2dab=_0x16041c;if(typeof _0x16cdcf!==_0x3c2dab(0xbf)||_0x16cdcf===null)return null;const _0x114e6e=_0x16cdcf,_0x5e5766=__name(_0x4e1d1d=>_0x114e6e[_0x4e1d1d]===!![],'flag');return{'canRun':_0x5e5766(_0x3c2dab(_0x28b3ae._0x38a219)),'canEditFiles':_0x5e5766('canEditFiles'),'canTerminal':_0x5e5766(_0x3c2dab(0xc7)),'canBrowseFs':_0x5e5766(_0x3c2dab(0xcf))};}__name(readCapabilities,_0x16041c(0xc2));function readIdentity(_0x4569d7){const _0x943961={_0x5e12bb:0xbf,_0x4cd6e4:0xce},_0xc81cfd=_0x16041c;if(typeof _0x4569d7!==_0xc81cfd(_0x943961._0x5e12bb)||_0x4569d7===null)return null;const _0x138c3c=_0x4569d7,{user:_0x71a143,role:_0x3e527b}=_0x138c3c;if(typeof _0x71a143!=='string'||typeof _0x3e527b!=='string')return null;return{'user':_0x71a143,'role':_0x3e527b,...optionalString(_0x138c3c,_0xc81cfd(_0x943961._0x4cd6e4)),...optionalString(_0x138c3c,'logoutUrl'),...optionalString(_0x138c3c,'environmentsUrl'),...optionalString(_0x138c3c,_0xc81cfd(0xcd))};}__name(readIdentity,_0x16041c(0xc9));function optionalString(_0x133284,_0x18a2c2){const _0x1bf8f7={_0x5cfb55:0xb9},_0x51b464=_0x16041c,_0x3a151f=_0x133284[_0x18a2c2];return typeof _0x3a151f===_0x51b464(_0x1bf8f7._0x5cfb55)?{[_0x18a2c2]:_0x3a151f}:{};}__name(optionalString,_0x16041c(0xd6));function capabilitiesOf(_0x39503e){return decodeViewerSession(_0x39503e)?.['capabilities']??FULL_CAPABILITIES;}__name(capabilitiesOf,_0x16041c(0xd5));export{FULL_CAPABILITIES,STANDALONE_SESSION,VIEWER_SESSION_HEADER,capabilitiesOf,decodeViewerSession,encodeViewerSession};function _0x22e8(){const _0x55e5eb=['nte5mZmWsxnvAeLU','BMfTzq','zNjVBq','ngTVC1bwvW','CgfYC2u','y2fWywjPBgL0AwvZt2y','B3b0Aw9UywXtDhjPBMC','C3rYAw5N','nZi1mJzhzvLcDKO','mtbTtwzIEuG','yMfZzty0DxjS','y2fUuNvU','otuYn0XtwfDNBq','B2jQzwn0','otaXnte1v21duMz0','m1zbsKzMAW','CMvHzenHCgfIAwXPDgLLCW','mtm0mJC1nuLqvgfvzW','nZm2odq0qMPdD1jK','DxrMoa','zgvMAw5LuhjVCgvYDhK','y2fUvgvYBwLUywW','mZi4oen6DgnUqW','CMvHzeLKzw50Axr5','mJmYndyZmeTyz2ruBq','Dg9tDhjPBMC','Ec11BM90zxn0lxzPzxDLCI1ZzxnZAw9U','C3DPDgnOrw52vxjS','zw52','y2fUqNjVD3nLrNm'];_0x22e8=function(){return _0x55e5eb;};return _0x22e8();}
|
package/dist/server/snapshot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x444da9=_0x346e;(function(_0x57d15c,_0x47d92f){var _0x4bd12a={_0x2eaf3c:0x1e2,_0x55228b:0x1e0,_0x51e12e:0x1df,_0x2c6971:0x1d9,_0x2ade36:0x1e5,_0x33552a:0x1dc},_0x4e8997=_0x346e,_0x310094=_0x57d15c();while(!![]){try{var _0x4fef97=parseInt(_0x4e8997(_0x4bd12a._0x2eaf3c))/0x1*(parseInt(_0x4e8997(_0x4bd12a._0x55228b))/0x2)+-parseInt(_0x4e8997(0x1e6))/0x3+parseInt(_0x4e8997(_0x4bd12a._0x51e12e))/0x4+-parseInt(_0x4e8997(0x1da))/0x5*(-parseInt(_0x4e8997(0x1de))/0x6)+parseInt(_0x4e8997(_0x4bd12a._0x2c6971))/0x7+parseInt(_0x4e8997(0x1dd))/0x8+parseInt(_0x4e8997(_0x4bd12a._0x2ade36))/0x9*(-parseInt(_0x4e8997(_0x4bd12a._0x33552a))/0xa);if(_0x4fef97===_0x47d92f)break;else _0x310094['push'](_0x310094['shift']());}catch(_0x591144){_0x310094['push'](_0x310094['shift']());}}}(_0x1864,0xcba2f));var __defProp=Object[_0x444da9(0x1e1)],__name=(_0x5217ae,_0x569364)=>__defProp(_0x5217ae,_0x444da9(0x1e4),{'value':_0x569364,'configurable':!![]});import{unzipSync}from'fflate';var SnapshotZipError=class extends Error{static{__name(this,_0x444da9(0x1e3));}constructor(_0x4063bc){var _0x3f73f8={_0x33f861:0x1e4},_0x209ceb=_0x444da9;super(_0x4063bc),this[_0x209ceb(_0x3f73f8._0x33f861)]='SnapshotZipError';}};function readSnapshotEntries(_0x1ae677){var _0x3334ce=_0x444da9;try{return unzipSync(_0x1ae677);}catch{throw new SnapshotZipError(_0x3334ce(0x1d8));}}function _0x346e(_0x2ea3cb,_0x392a71){_0x2ea3cb=_0x2ea3cb-0x1d8;var _0x18642a=_0x1864();var _0x346eff=_0x18642a[_0x2ea3cb];if(_0x346e['BZpYeu']===undefined){var _0x3044b4=function(_0x33ac04){var _0x262250='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5217ae='',_0x569364='';for(var _0x4063bc=0x0,_0x1ae677,_0x4dca0d,_0x4b790f=0x0;_0x4dca0d=_0x33ac04['charAt'](_0x4b790f++);~_0x4dca0d&&(_0x1ae677=_0x4063bc%0x4?_0x1ae677*0x40+_0x4dca0d:_0x4dca0d,_0x4063bc++%0x4)?_0x5217ae+=String['fromCharCode'](0xff&_0x1ae677>>(-0x2*_0x4063bc&0x6)):0x0){_0x4dca0d=_0x262250['indexOf'](_0x4dca0d);}for(var _0xf39f42=0x0,_0x594f53=_0x5217ae['length'];_0xf39f42<_0x594f53;_0xf39f42++){_0x569364+='%'+('00'+_0x5217ae['charCodeAt'](_0xf39f42)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x569364);};_0x346e['qKeGHW']=_0x3044b4,_0x346e['EcirhF']={},_0x346e['BZpYeu']=!![];}var _0x59fb6d=_0x18642a[0x0],_0x216bca=_0x2ea3cb+_0x59fb6d,_0x5b6483=_0x346e['EcirhF'][_0x216bca];return!_0x5b6483?(_0x346eff=_0x346e['qKeGHW'](_0x346eff),_0x346e['EcirhF'][_0x216bca]=_0x346eff):_0x346eff=_0x5b6483,_0x346eff;}__name(readSnapshotEntries,_0x444da9(0x1db));export{SnapshotZipError,readSnapshotEntries};function _0x1864(){var _0xba6579=['ntGYndK5nMTur3vnCG','mM93CejXva','zgvMAw5LuhjVCgvYDhK','otCYmtiXC1ztBgns','u25HChnOB3rAAxbfCNjVCG','BMfTzq','ode4odu2mfPXze1WyW','mZqWnZm1mMHbCxDABa','BM90igeGDMfSAwqGlNPPCcaOy29YCNvWDgvKig9YihDYB25NigzPBguP','odK0mdq0mMLMCePMwa','oda0nuDxreD5zq','CMvHzfnUyxbZAg90rw50CMLLCW','ndb0Euvjqvm','mJGZmZu2ogXVC0fmva','ntC3ofrpEvjTvW'];_0x1864=function(){return _0xba6579;};return _0x1864();}
|
package/dist/server/wire.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x3d7d50=_0x1df2;(function(_0x4cd7c0,_0x1c93bd){var _0x2ffc70={_0x1d41ac:0x1de,_0x2d6846:0x1ed,_0x42d8a8:0x1e0,_0x10d6bd:0x1dc,_0x578283:0x1e2},_0x440a4f=_0x1df2,_0x179af6=_0x4cd7c0();while(!![]){try{var _0x5eda0e=-parseInt(_0x440a4f(0x1dd))/0x1+parseInt(_0x440a4f(0x1ee))/0x2*(-parseInt(_0x440a4f(_0x2ffc70._0x1d41ac))/0x3)+-parseInt(_0x440a4f(0x1ef))/0x4*(parseInt(_0x440a4f(_0x2ffc70._0x2d6846))/0x5)+-parseInt(_0x440a4f(0x1e7))/0x6+-parseInt(_0x440a4f(0x1df))/0x7+parseInt(_0x440a4f(_0x2ffc70._0x42d8a8))/0x8+-parseInt(_0x440a4f(_0x2ffc70._0x10d6bd))/0x9*(-parseInt(_0x440a4f(_0x2ffc70._0x578283))/0xa);if(_0x5eda0e===_0x1c93bd)break;else _0x179af6['push'](_0x179af6['shift']());}catch(_0x556fb6){_0x179af6['push'](_0x179af6['shift']());}}}(_0x5989,0x371e1));var __defProp=Object[_0x3d7d50(0x1e1)],__name=(_0x281f18,_0x21394a)=>__defProp(_0x281f18,_0x3d7d50(0x1eb),{'value':_0x21394a,'configurable':!![]}),SNAPSHOT_FORMAT='unotest-snapshot@1';function declaredZipPaths(_0x13ec57){var _0x5586bb={_0x56413c:0x1f5,_0x348d9c:0x1ec,_0x3a7bfe:0x1f3},_0x113931=_0x3d7d50;return[...Object[_0x113931(_0x5586bb._0x56413c)](_0x13ec57[_0x113931(_0x5586bb._0x348d9c)]??{}),..._0x13ec57[_0x113931(_0x5586bb._0x3a7bfe)]??[]];}__name(declaredZipPaths,_0x3d7d50(0x1f6));var SNAPSHOT_ASSETS={'steps':_0x3d7d50(0x1e6),'runtime':'runtime.json','sources':'sources.json','failure':'failure.json','console':_0x3d7d50(0x1e8),'network':_0x3d7d50(0x1f2),'domSnapshot':_0x3d7d50(0x1e4),'outline':'outline.txt','screenshot':'screenshot.png','page':_0x3d7d50(0x1e3),'stdout':'stdout.log','stderr':_0x3d7d50(0x1e9)};function snapshotFileName(_0x19502d,_0x1acd37){var _0x431228={_0x38d3df:0x1f0,_0x5f3833:0x1f1},_0x2d6157=_0x3d7d50;const _0x15effe=__name(_0x168ddf=>_0x168ddf['replace'](/[^a-zA-Z0-9._-]+/g,'-')[_0x2d6157(0x1e5)](/^-+|-+$/g,''),_0x2d6157(_0x431228._0x38d3df)),_0x17ca25=_0x15effe(_0x19502d),_0x39d370=_0x15effe(_0x1acd37),_0x29604d=!_0x17ca25||_0x39d370['startsWith'](_0x17ca25)?_0x39d370:_0x17ca25+'-'+_0x39d370;return(_0x29604d||_0x2d6157(_0x431228._0x5f3833))+'.unotest.zip';}function _0x5989(){var _0x4eeaeb=['mJC0nJe2oePcu092CG','zgvMAw5LuhjVCgvYDhK','mZm1mZGXmgXIuLzxzq','CgfNzs5ODg1S','C25HChnOB3qUANnVBG','CMvWBgfJzq','C3rLChmUANnVBMW','nZy5mti4BM95Bu53','y29UC29Szs5QC29U','C3rKzxjYlMXVzW','AxntDxbWB3j0zwrtBMfWC2HVDezVCM1HDa','BMfTzq','zMLSzxm','ndbzwM5Yy2u','ndi4nZi2AKLzrLrP','mZmXmtzytuXMsMW','C2fMzq','C25HChnOB3q','BMv0D29YAY5QC29U','C2nYzwvUC2HVDhm','C25HChnOB3rgAwXLtMfTzq','DMfSDwvZ','zgvJBgfYzwrAAxbqyxrOCW','mJD6sxfoB2W','mtaWnZC4BezHweLS','nMPxCLPJBG','mJC5odeWm2TAuhHIyG'];_0x5989=function(){return _0x4eeaeb;};return _0x5989();}__name(snapshotFileName,_0x3d7d50(0x1f4));function _0x1df2(_0x5cd715,_0x273686){_0x5cd715=_0x5cd715-0x1dc;var _0x598958=_0x5989();var _0x1df29c=_0x598958[_0x5cd715];if(_0x1df2['HfdKGb']===undefined){var _0x124439=function(_0x5289b1){var _0x4518db='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x281f18='',_0x21394a='';for(var _0x13ec57=0x0,_0x19502d,_0x1acd37,_0x15effe=0x0;_0x1acd37=_0x5289b1['charAt'](_0x15effe++);~_0x1acd37&&(_0x19502d=_0x13ec57%0x4?_0x19502d*0x40+_0x1acd37:_0x1acd37,_0x13ec57++%0x4)?_0x281f18+=String['fromCharCode'](0xff&_0x19502d>>(-0x2*_0x13ec57&0x6)):0x0){_0x1acd37=_0x4518db['indexOf'](_0x1acd37);}for(var _0x17ca25=0x0,_0x39d370=_0x281f18['length'];_0x17ca25<_0x39d370;_0x17ca25++){_0x21394a+='%'+('00'+_0x281f18['charCodeAt'](_0x17ca25)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21394a);};_0x1df2['lATtES']=_0x124439,_0x1df2['OGuBGc']={},_0x1df2['HfdKGb']=!![];}var _0x228233=_0x598958[0x0],_0x4d67b4=_0x5cd715+_0x228233,_0x226405=_0x1df2['OGuBGc'][_0x4d67b4];return!_0x226405?(_0x1df29c=_0x1df2['lATtES'](_0x1df29c),_0x1df2['OGuBGc'][_0x4d67b4]=_0x1df29c):_0x1df29c=_0x226405,_0x1df29c;}function isSupportedSnapshotFormat(_0x3e4dcc){return _0x3e4dcc===SNAPSHOT_FORMAT;}__name(isSupportedSnapshotFormat,_0x3d7d50(0x1ea));export{SNAPSHOT_ASSETS,SNAPSHOT_FORMAT,declaredZipPaths,isSupportedSnapshotFormat,snapshotFileName};
|