@vinay.kumar.ha/videosdk-ui-toolkit 2.3.5-1.4 → 2.3.5-1.6

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.
Files changed (72) hide show
  1. package/dist/favicon.ico +0 -0
  2. package/dist/image/SanFrancisco.jpg +0 -0
  3. package/dist/image/Zoom_Logo_Bloom_RGB.png +0 -0
  4. package/dist/image/av/android/android-permission-1.png +0 -0
  5. package/dist/image/av/android/android-permission-2.png +0 -0
  6. package/dist/image/av/android/android-permission-3.jpg +0 -0
  7. package/dist/image/av/android/android-permission-3.png +0 -0
  8. package/dist/image/av/android/android-permission-ask.png +0 -0
  9. package/dist/image/av/chrome-operation.jpg +0 -0
  10. package/dist/image/av/ios/ios-permission-ask.png +0 -0
  11. package/dist/image/av/safari-operation1.png +0 -0
  12. package/dist/image/av/safari-operation2.png +0 -0
  13. package/dist/image/av/share_disallow_image_1.png +0 -0
  14. package/dist/image/av/share_disallow_image_2.png +0 -0
  15. package/dist/image/blur.png +0 -0
  16. package/dist/image/earth.jpg +0 -0
  17. package/dist/image/grass.jpg +0 -0
  18. package/dist/lib/annoter.min.js +3 -0
  19. package/dist/lib/audio.encode.wasm +0 -0
  20. package/dist/lib/audio.light.simd.wasm +0 -0
  21. package/dist/lib/audio.simd.wasm +0 -0
  22. package/dist/lib/audio_light_simd.min.js +2 -0
  23. package/dist/lib/audio_simd.min.js +2 -0
  24. package/dist/lib/graphics.min.js +2 -0
  25. package/dist/lib/js_audio_level_worklet_process.min.js +2 -0
  26. package/dist/lib/js_audio_level_worklet_process_light.min.js +2 -0
  27. package/dist/lib/js_audio_process.min.js +2 -0
  28. package/dist/lib/js_audio_processor_worklet.min.js +2 -0
  29. package/dist/lib/js_audio_worklet.min.js +2 -0
  30. package/dist/lib/js_audio_worklet_light_simd.min.js +2 -0
  31. package/dist/lib/js_audio_worklet_process.min.js +2 -0
  32. package/dist/lib/js_audio_worklet_simd.min.js +2 -0
  33. package/dist/lib/js_media.min.js +3 -0
  34. package/dist/lib/js_sharing_audio_worklet.min.js +2 -0
  35. package/dist/lib/manifest.json +338 -0
  36. package/dist/lib/mesh_thread.min.js +2 -0
  37. package/dist/lib/net.wasm +0 -0
  38. package/dist/lib/net_thread.min.js +2 -0
  39. package/dist/lib/pako.min.js +2 -0
  40. package/dist/lib/qrscanner.min.js +2 -0
  41. package/dist/lib/share_processor.min.js +2 -0
  42. package/dist/lib/sharing_m.min.js +3 -0
  43. package/dist/lib/sharing_mtsimd.min.js +3 -0
  44. package/dist/lib/sharing_s.min.js +2 -0
  45. package/dist/lib/sharing_simd.min.js +2 -0
  46. package/dist/lib/tp.min.js +2 -0
  47. package/dist/lib/tp.wasm +0 -0
  48. package/dist/lib/vb-resource/dualModel.bin +0 -0
  49. package/dist/lib/vb-resource/tf.min.js +18 -0
  50. package/dist/lib/vb.min.js +2 -0
  51. package/dist/lib/vb_worker.min.js +2 -0
  52. package/dist/lib/video.decode.js +1 -0
  53. package/dist/lib/video.decode.wasm +0 -0
  54. package/dist/lib/video.mt.js +1 -0
  55. package/dist/lib/video.mt.wasm +0 -0
  56. package/dist/lib/video.mtsimd.js +1 -0
  57. package/dist/lib/video.mtsimd.wasm +0 -0
  58. package/dist/lib/video.simd.js +1 -0
  59. package/dist/lib/video.simd.wasm +0 -0
  60. package/dist/lib/video_m.min.js +3 -0
  61. package/dist/lib/video_mtsimd.min.js +3 -0
  62. package/dist/lib/video_processor.min.js +2 -0
  63. package/dist/lib/video_s.min.js +2 -0
  64. package/dist/lib/video_share_mtsimd.min.js +3 -0
  65. package/dist/lib/video_simd.min.js +2 -0
  66. package/dist/lib/wasm_ssrc_stream_service_dynmod.min.js +2 -0
  67. package/dist/lib/webgpu_renderer_dynmod.min.js +2 -0
  68. package/dist/lib/wmsc.min.js +2 -0
  69. package/dist/videosdk-ui-toolkit.css +1 -0
  70. package/dist/videosdk-ui-toolkit.min.esm.js +141319 -0
  71. package/dist/videosdk-ui-toolkit.min.umd.js +629 -0
  72. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ (()=>{var e={2601:(e,t,r)=>{e.exports=r(4444)},3565:(e,t,r)=>{"use strict";var n=r(1960);e.exports=n},2671:(e,t,r)=>{"use strict";r(2344),e.exports=r(5951)},4444:(e,t,r)=>{"use strict";e.exports=r(214)},214:(e,t,r)=>{"use strict";r(397);var n=r(3565);e.exports=n},2159:(e,t,r)=>{"use strict";var n=r(2250),o=r(4640),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},6624:(e,t,r)=>{"use strict";var n=r(6285),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},5807:(e,t,r)=>{"use strict";var n=r(1907),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},1626:(e,t,r)=>{"use strict";var n=r(9447),o=r(4284),i=r(5817);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},5817:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2532:(e,t,r)=>{"use strict";var n=r(5951),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},9447:(e,t,r)=>{"use strict";var n=r(8828);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(e,t,r)=>{"use strict";var n=r(5951),o=r(6285),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6794:(e,t,r)=>{"use strict";var n=r(5951).navigator,o=n&&n.userAgent;e.exports=o?String(o):""},798:(e,t,r)=>{"use strict";var n,o,i=r(5951),a=r(6794),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},1091:(e,t,r)=>{"use strict";var n=r(5951),o=r(6024),i=r(2361),a=r(2250),s=r(3846).f,u=r(7463),l=r(2046),c=r(8311),f=r(1626),_=r(9724);r(6128);var d=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return o(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,o,h,p,m,g,y,v,w,E=e.target,b=e.global,S=e.stat,k=e.proto,M=b?n:S?n[E]:n[E]&&n[E].prototype,A=b?l:l[E]||f(l,E,{})[E],D=A.prototype;for(p in t)o=!(r=u(b?p:E+(S?".":"#")+p,e.forced))&&M&&_(M,p),g=A[p],o&&(y=e.dontCallGetSet?(w=s(M,p))&&w.value:M[p]),m=o&&y?y:t[p],(r||k||typeof g!=typeof m)&&(v=e.bind&&o?c(m,n):e.wrap&&o?d(m):k&&a(m)?i(m):m,(e.sham||m&&m.sham||g&&g.sham)&&f(v,"sham",!0),f(A,p,v),k&&(_(l,h=E+"Prototype")||f(l,h,{}),f(l[h],p,m),e.real&&D&&(r||!D[p])&&f(D,p,m)))}},8828:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},6024:(e,t,r)=>{"use strict";var n=r(1505),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},8311:(e,t,r)=>{"use strict";var n=r(2361),o=r(2159),i=r(1505),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},1505:(e,t,r)=>{"use strict";var n=r(8828);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3930:(e,t,r)=>{"use strict";var n=r(1505),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},2361:(e,t,r)=>{"use strict";var n=r(5807),o=r(1907);e.exports=function(e){if("Function"===n(e))return o(e)}},1907:(e,t,r)=>{"use strict";var n=r(1505),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},5582:(e,t,r)=>{"use strict";var n=r(2046),o=r(5951),i=r(2250),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},9367:(e,t,r)=>{"use strict";var n=r(2159),o=r(7136);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},5951:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724:(e,t,r)=>{"use strict";var n=r(1907),o=r(9298),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3648:(e,t,r)=>{"use strict";var n=r(9447),o=r(8828),i=r(9552);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6946:(e,t,r)=>{"use strict";var n=r(1907),o=r(8828),i=r(5807),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},2250:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},7463:(e,t,r)=>{"use strict";var n=r(8828),o=r(2250),i=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r===c||r!==l&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},7136:e=>{"use strict";e.exports=function(e){return null==e}},6285:(e,t,r)=>{"use strict";var n=r(2250);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},7376:e=>{"use strict";e.exports=!0},5594:(e,t,r)=>{"use strict";var n=r(5582),o=r(2250),i=r(8280),a=r(1175),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},4284:(e,t,r)=>{"use strict";var n=r(9447),o=r(3648),i=r(8661),a=r(6624),s=r(470),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",_="configurable",d="writable";t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var n=c(e,t);n&&n[d]&&(e[t]=r.value,r={configurable:_ in r?r[_]:n[_],enumerable:f in r?r[f]:n[f],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3846:(e,t,r)=>{"use strict";var n=r(9447),o=r(3930),i=r(2574),a=r(5817),s=r(7374),u=r(470),l=r(9724),c=r(3648),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=s(e),t=u(t),c)try{return f(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},8280:(e,t,r)=>{"use strict";var n=r(1907);e.exports=n({}.isPrototypeOf)},2574:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},581:(e,t,r)=>{"use strict";var n=r(3930),o=r(2250),i=r(6285),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},2046:e=>{"use strict";e.exports={}},4239:(e,t,r)=>{"use strict";var n=r(7136),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},6128:(e,t,r)=>{"use strict";var n=r(7376),o=r(5951),i=r(2532),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.39.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5816:(e,t,r)=>{"use strict";var n=r(6128);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},9846:(e,t,r)=>{"use strict";var n=r(798),o=r(8828),i=r(5951).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7374:(e,t,r)=>{"use strict";var n=r(6946),o=r(4239);e.exports=function(e){return n(o(e))}},9298:(e,t,r)=>{"use strict";var n=r(4239),o=Object;e.exports=function(e){return o(n(e))}},6028:(e,t,r)=>{"use strict";var n=r(3930),o=r(6285),i=r(5594),a=r(9367),s=r(581),u=r(6264),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,u=a(e,c);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!o(r)||i(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},470:(e,t,r)=>{"use strict";var n=r(6028),o=r(5594);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},4640:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6499:(e,t,r)=>{"use strict";var n=r(1907),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},1175:(e,t,r)=>{"use strict";var n=r(9846);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661:(e,t,r)=>{"use strict";var n=r(9447),o=r(8828);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6264:(e,t,r)=>{"use strict";var n=r(5951),o=r(5816),i=r(9724),a=r(6499),s=r(9846),u=r(1175),l=n.Symbol,c=o("wks"),f=u?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(l,e)?l[e]:f("Symbol."+e)),c[e]}},2344:(e,t,r)=>{"use strict";var n=r(1091),o=r(5951);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},397:(e,t,r)=>{"use strict";r(2344)},1960:(e,t,r)=>{"use strict";var n=r(2671);e.exports=n}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(2601),t=r.n(e);const n="MEDIASDK_CACHE_INFO";new class{constructor(){this._highFrequencyLogs={},this.fixVersion="",this.cacheLogStack=[],this.isFlushing=!1}setInstance(e,t){this._instance=e,this.fixVersion=t}getMessageFromErrorOrEvent(e,t){let r=e;return t instanceof ErrorEvent?(t.filename&&(r+=` File: ${t.filename}`),(t.lineno||t.colno)&&(r+=` Line: ${t.lineno}:${t.colno}`),t.message&&(r+=` Message: ${t.message}`),t.error&&(r+=`\nStack: ${t.error.stack}`)):t instanceof Error?(t.message&&(r+=` Message: ${t.message}`),t.stack&&(r+=` Stack: ${t.stack}`),t.name&&(r+=` Name: ${t.name}`),t.constraint&&(r+=` Constraint: ${t.constraint}`)):t instanceof CloseEvent?(t.code&&(r+=` Code: ${t.code}`),t.reason&&(r+=` Reason: ${t.reason}`),r+=` wasClean: ${t.wasClean}`):t instanceof DOMException?(t.message&&(r+=` Message: ${t.message}`),t.name&&(r+=` Name: ${t.name}`)):r+=t?t.toString():"",r}_addCacheLog(e,t){this.cacheLogStack.length<100&&this.cacheLogStack.push({type:e,message:t})}flushCacheLog(){if(this._instance&&this.cacheLogStack.length>0&&!this.isFlushing){this.isFlushing=!0;let e="";this.cacheLogStack.forEach((t=>{let{type:r,message:{message:o="",tags:i=[]}}=t;const a=o?`${i.join("|")}:${o}|----|`:"";switch(r){case"log":this._log(o,[...i,n]);break;case"warn":case"error":case"severityerror":case"directReport":e+=a}})),e&&this._directReport(e,[n]),this.cacheLogStack=[],this.isFlushing=!1}}log(e,t=[]){this._instance?(this.flushCacheLog(),this._log(e,t)):this._addCacheLog("log",{message:e,tags:t})}warn(e,t=null,r=[]){e=this.getMessageFromErrorOrEvent(e,t),this._instance?(this.flushCacheLog(),this._warn(e,r)):this._addCacheLog("warn",{message:e,tags:r})}error(e,t=null,r=[]){var n;e=this.getMessageFromErrorOrEvent(e,t),this._highFrequencyLogs[e]?this._highFrequencyLogs[e]+=1:this._highFrequencyLogs[e]=1,!((n=this._highFrequencyLogs[e])&n-1)&&(this._instance?(this.flushCacheLog(),this._error(e,r)):this._addCacheLog("error",{message:e,tags:r}))}severityerror(e,t=[]){this._instance?(this.flushCacheLog(),this._severityerror(JSON.stringify(e),t)):this._addCacheLog("severityerror",{message:JSON.stringify(e),tags:t})}directReport(e,t=["MEDIASDK_INFO"]){var r;this._instance?(this.flushCacheLog(),null===(r=this._directReport)||void 0===r||r.call(this,e,t)):this._addCacheLog("directReport",{message:e,tags:t})}_log(e,t=[]){this._instance&&this._instance.log(e,t)}_warn(e,t=[]){this._instance&&this._instance.warn(e,t)}_error(e,t=[]){this._instance&&this._instance.error(e,[this.fixVersion,...t])}_severityerror(e,t=[]){this._instance&&this._instance.error(e,t)}_directReport(e,t=[]){var r,n;this._instance&&(null===(n=(r=this._instance).directReport)||void 0===n||n.call(r,{msg:e},t))}clearHighFrequencyLogs(){this._highFrequencyLogs={}}};const o=[0,1,2,3,4,4,5,5,5,5,6,6,6,6,6,7,7,7,7,8,8,8,9,9,9,9,9,9,9,9,9,9,9];function i(e,t){let r=0,n=0;for(let o=0;o<e.length;o+=t){n+=e[o]*e[o];let t=Math.abs(e[o]);t>r&&(r=t)}return r=r>1?1:r,{sumRms:n/e.length/t,absMax:r}}function a(e){let t=0;return t=e>.1995?15:e>.0794?14:e>.0316?13:e>.0126?12:e>.005?11:e>.002?10:e>79433e-8?9:e>31623e-8?8:e>12589e-8?7:e>50119e-9?6:e>19953e-9?5:e>79433e-10?4:e>31623e-10?3:e>12589e-10?2:e>5.0119e-7?1:0,t}function s(e){postMessage({status:35,data:e})}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return t.postMessage({status:48,data:e});postMessage({status:48,data:e})}new Error,new Map,new Map,new class{constructor(){this.ssrcInfoMap=new Map,this.timer=null}updateSSRCInfo(e,t){this.ssrcInfoMap.has(e)||this.ssrcInfoMap.set(e,{firstTime:0,lastTime:0,frames:0,fps:0}),this._calculateFPS(e,t),this._removeZeroFPS()}_calculateFPS(e,t){const r=this.ssrcInfoMap.get(e);if(0===r.frames?r.firstTime=t:r.lastTime=t,r.frames+=1,r.frames>2&&r.frames%5==0&&r.lastTime-r.firstTime>=1e3){const t=Math.floor(1e3/((r.lastTime-r.firstTime)/(r.frames-1)));r.fps!==t&&(this._notifyFPS(e,t),r.fps=t),r.firstTime=r.lastTime,r.frames=1}}_removeZeroFPS(){let e=Date.now();this.ssrcInfoMap.forEach(((t,r)=>{const n=this.ssrcInfoMap.get(r);n&&n.lastTime&&e-n.lastTime>2e3&&(this.ssrcInfoMap.delete(r),this._notifyFPS(r,0))}))}_notifyFPS(e,t){postMessage({status:66.6,data:{ssrc:e,fps:t}})}_checkIfNewFrameComing(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((()=>{this._removeZeroFPS(),this.timer=null}),2500)}},new class{constructor(){this.ssrcInfoMap=new Map,this.timer=null}updateSSRCInfo(e,t){this.ssrcInfoMap.has(e)||this.ssrcInfoMap.set(e,{timeList:[],lastTime:0,fps:0}),this._calculateFPS(e,t),this._removeZeroFPS(),this._checkIfNewFrameComing()}_calculateFPS(e,t){const r=this.ssrcInfoMap.get(e);if(r.timeList.push(t),r.lastTime=t,r.timeList.length>2){const t=r.timeList[0],n=r.timeList[r.timeList.length-1];if(n-t>=1e3){const o=Math.floor(1e3/((n-t)/(r.timeList.length-1)));r.fps!==o&&(this._notifyFPS(e,o),r.fps=o),r.timeList=[]}}r.timeList.length>30&&(r.timeList=r.timeList.slice(r.timeList.length-30))}_removeZeroFPS(){this.ssrcInfoMap.forEach(((e,t)=>{const r=this.ssrcInfoMap.get(t);r&&Date.now()-r.lastTime>2e3&&(this.ssrcInfoMap.delete(t),this._notifyFPS(t,0))}))}_notifyFPS(e,t){postMessage({status:66.6,data:{ssrc:e,fps:t}})}_checkIfNewFrameComing(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((()=>{this._removeZeroFPS(),this.timer=null}),2500)}};const l={ENCODE:1,DECODE:2,DECRPT:3,DECRPT_DECODE:4,WORKLET_APM_ONLY:5},c={MUTE:0,UNMUTE:1,LEAVED:2,MUTE_APM_ONLY:3,UNMUTE_APM_ONLY:4};let f,_,d=0;const h=new Map,p=[1,2,4,8,16,32,64,128,256];let m,g,y,v,w,E,b,S,k=!0;var M=0,A=!1,D=null,C=!1;const P={WASMTYPE:l,AUDIO_STATE:c,onWasmModuleReady:function(e){if(!e)return console.warn("[AudioWASMAdapter] Module undefined");m=e.cwrap("_Heartbeat","number",["number"]),g=e.cwrap("_MuteUnmuteState","number",["number","number"]),y=e.cwrap("_Switch_Original_Sound","number",["number","boolean","boolean","boolean","boolean"]),v=e.cwrap("_Deliver_Recorded_Data","number",["number","number","number","number","number","number"]),w=e.cwrap("_Switch_Denoise","number",["number","boolean","number","boolean"]),E=e.cwrap("_Audio_Init","number",["number","string","string","number","number","boolean","boolean","boolean","number","boolean"]),b=e.cwrap("_Switch_High_Bitrate","number",["number","number"]),S=e.cwrap("_Set_All_Speech_Volume_Level","number",["number"])},setAudioInstanceAndType:function(e,t,r){f=e,t&&(d=t),r&&(_=r)},muteUnmuteState:function(e){if(null!=Object.values(c).find((t=>t==e)))return f?void(d!=l.WORKLET_APM_ONLY&&(g(f,e),s("muteUnmuteState: "+e))):s("muteUnmuteState: -1")},switchOriginalSound:function(e,t,r,n){f&&y(f,e,t,r,n)},deliverRecordedData:function(e,t,r,n){f&&v(f,e,t,0,r,n)},switchDenoise:function(e,t,r=3){f&&(A=e,w(f,!!e,r,!!t))},audioInit:function(e,t,r,n,o,i,a,s,u,l){return E(e,t,r,n,o,i,a,s,u,l)},setDecoder:function(e){D=e},needCalculateDenoiseOutput:function(){C=!0},switchHighBitrate:function(e){f&&b(f,e)},disableJitterLog:function(){k=!1},setAllSpeechVolume:function(e){f&&S(f,e)},onMonitorLogWASM:function(e,t){if(t<=0)return;const r=Module.HEAPU8.subarray(e,e+t),n=String.fromCharCode.apply(null,r);n&&(!k&&n.includes("JITTER")||n.includes("WCL_MCM_AUDIO_RECEIVE")&&d!=l.DECRPT&&d!=l.DECRPT_DECODE||n.includes("WCL_MCM_AUDIO,")&&d==l.DECRPT||(d==l.ENCODE||d==l.DECRPT||d==l.DECRPT_DECODE?u(n):d==l.DECODE?_&&_.port&&u(n,_.port):d==l.WORKLET_APM_ONLY&&_.port&&_.port.postMessage({status:"SPEECH_LOG",data:{log:n}})))},onGlobalTracingLogWASM:function(e,t,r,n){if(t<=0)return;const o=Module.HEAPU8.subarray(e,e+t);let i=String.fromCharCode.apply(null,o);if(i){if(1==n){const e=`${n}_${r}_${i.substring(0,100)}`,t=(h.get(e)||0)+1;if(h.set(e,t),!p.includes(t)&&(t<256||t%256!=0))return;i=`${i} [Count: ${t}] `}switch(r){case 0:case 2:break;case 1:postMessage({status:61,errorMessage:"[WASM audio] "+i,level:"low"});break;case 3:!function(e,t=null){var r,n;if(t instanceof Error||t instanceof ErrorEvent){const o=t;e+=" Code: "+(null==o?void 0:o.code)+" Message: "+(null==t?void 0:t.message)+" Stack: "+(null!==(n=null===(r=null==o?void 0:o.error)||void 0===r?void 0:r.stack)&&void 0!==n?n:null==o?void 0:o.stack),t=null}postMessage({status:61,errorMessage:e,errorEvent:t})}("[WASM audio] "+i)}}},onMuteSpeechWarningWASM:function(){postMessage({status:121})},onAudioLevelWASM:function(e,t,r){d!=l.ENCODE&&d!=l.WORKLET_APM_ONLY||1==e&&(0===t&&0===M||(M=t,d===l.ENCODE?postMessage({status:38,value:t}):(null==_?void 0:_.port)&&_.port.postMessage({status:38,data:t})))},onAPMProcessedPCMWASM:function(e,t,r,n){if(!A)return;let o=Module.HEAPF32.subarray(e/4,e/4+t);if(D){if(C){C=!1;let{sumRms:e}=i(o,2),t=a(e);_.port&&_.port.postMessage({status:"AUDIO_LEVEL_R16_DENOISE",level:t})}D.push([o])}},onSenderStatsLogWASM:function(e,t,r,n,o,i){t=Date.now(),d===l.ENCODE&&postMessage({status:206,data:{ssrc:e,timestamp:t,roundTripTime:r,jitter:n,packetsLost:o,packetsSent:i,kind:"audio"}})},onReceiverStatsLogWASM:function(e,t,r,n,o,i){}};class T{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;this.rframes=e,this.wframes=t,this.writeChannelNumb=r,this.cap=this.lcm(e,t),this.buffer=new Float32Array(this.cap),this.remain=0,this.woffset=0,this.roffset=0}gcd(e,t){return 0===t?e:this.gcd(t,e%t)}lcm(e,t){return e/this.gcd(e,t)*t}push(e){if(null==e[0]||e[0].length*this.writeChannelNumb==this.wframes){for(let t=0;t<this.writeChannelNumb;t++)for(let r=0;r<e[0].length;r++)this.buffer[(this.woffset+r*this.writeChannelNumb+t)%this.cap]=e[t]?e[t][r]:e[0][r];this.woffset+=this.wframes,this.remain+=this.wframes,this.woffset>=this.cap&&(this.woffset=this.woffset%this.cap)}else{var t;console.error("[Audio] critical error in AudioWorklet: data.length:",e.length,"this.woffset:",this.woffset,"this.cap:",this.cap),_workletPrinter&&_workletPrinter.error("critical error in AudioWorklet: ".concat(null===(t=e[0])||void 0===t?void 0:t.length," ").concat(his.writeChannelNumb," ").concat(this.wframes))}}read(){if(!this.hasData())return null;let e=this.buffer.subarray(this.roffset,this.roffset+this.rframes);return this.remain-=this.rframes,this.roffset+=this.rframes,this.roffset>=this.cap&&(this.roffset=this.roffset%this.cap),e}hasData(){return this.remain>=this.rframes}clear(){this.buffer.fill(0),this.remain=0,this.woffset=0,this.roffset=0}}const F=(new Map([["useinbandfec",1],["maxaveragebitrate",48e3],["maxplaybackrate",24e3],["sprop-maxcapturerate",24e3],["sprop-stereo",null],["stereo",null]]),new Map([["useinbandfec",null],["maxaveragebitrate",96e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",96e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",128e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",128e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3],["sprop-stereo",1],["stereo",1]]),new Map([["useinbandfec",null],["maxaveragebitrate",96e3],["maxplaybackrate",48e3],["sprop-maxcapturerate",48e3]]),new Map([["useinbandfec",1],["maxaveragebitrate",64e3],["maxplaybackrate",24e3],["sprop-maxcapturerate",24e3],["sprop-stereo",null],["stereo",null]]),new Map([["stereo",1]]),3);var R=!1,x=null,O=null,j=!1,L=!1,I=null,N=!1,U=0,B=0,W=0,z=!1,H=0;t()._workletPrinter=new class{constructor(e){this.messageQueue=[],this.auidoNodePort,this.userAgent="",this.isSafari=!1,this.debug=this.debug.bind(this),this.log=this.log.bind(this),this.warn=this.warn.bind(this),this.error=this.error.bind(this),this.print_=this.print_.bind(this),this.messageHeader=e}setUserAgent(e){this.userAgent=e,this.userAgent.match(/AppleWebKit\/(\d+)\./)&&(this.isSafari=!0)}setAuidoNodePort(e){this.auidoNodePort=e}debug(e){e=this.messageHeader+e;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.print_({level:"debug",message:e,data:r})}log(e){e=this.messageHeader+e;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.print_({level:"log",message:e,data:r})}warn(e){e=this.messageHeader+e;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.print_({level:"warn",message:e,data:r})}error(e){e=this.messageHeader+e;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.print_({level:"error",message:e,data:r})}print_(e){if(this.messageQueue.push(e),this.auidoNodePort)for(;this.messageQueue.length;){let e=this.messageQueue.shift();this._postToWorkerPrint(e)}}_postToWorkerPrint(e){this.auidoNodePort&&this.auidoNodePort.postMessage({status:"workletMessage",data:{level:e.level,message:e.message,data:e.data}})}}("[Audio][Worklet][WebRTC]"),t().AudioWasmAdapter=P,t().onWasmModuleReady=function(){_workletPrinter.log("worklet init wasm success");try{P.onWasmModuleReady(Module)}catch(e){_workletPrinter.error("error when cwarp"+JSON.stringify(e))}try{x=P.audioInit(0,"","",0,0,!0,!0,!0,1,!0)}catch(e){_workletPrinter.error("error when audio init"+JSON.stringify(e))}x?P.setAudioInstanceAndType(x,P.WASMTYPE.WORKLET_APM_ONLY,I):_workletPrinter.error("audio handle not initialized"),I.port.postMessage({status:"WASM_INIT_SUCCESS",data:{audio_handle:0!==x}})};class V extends AudioWorkletProcessor{constructor(e){var t,r,n;super(),I=this,this.port.onmessage=this.handleMessage.bind(this),this.encodeCount=0,this.underrunCount=0,this.denoiseModel=F,this.lastRecordTime=0,this.wasmModule=null==e||null===(t=e.processorOptions)||void 0===t?void 0:t.wasmModule,this.inputAudioChannel=(null==e||null===(r=e.processorOptions)||void 0===r?void 0:r.inputAudioChannel)||1,this.initRingBuffer(),null!=e&&null!==(n=e.processorOptions)&&void 0!==n&&n.userAgent&&_workletPrinter.setUserAgent(e.processorOptions.userAgent),_workletPrinter.setAuidoNodePort(this.port),_workletPrinter.log("webrtc worklet init successfully")}initRingBuffer(){this.encoder=new T(sampleRate/100*this.inputAudioChannel,128*this.inputAudioChannel,this.inputAudioChannel),this.decoder=new T(128*this.inputAudioChannel,sampleRate/100*this.inputAudioChannel),P.setDecoder(this.decoder)}handleMessage(e){const{status:r,data:n}=e.data;switch(r){case"stopWorklet":R=!0;break;case"audiowasm":try{this.wasmModule&&initWasm(Module,this.wasmModule)}catch(e){_workletPrinter.error("init WASM failed, error message:"+e.message+e.stack)}break;case"audio_denoise_switch":_workletPrinter.log("change denoise"+n.enable+n.isHeadSet),j=n.enable,this.denoiseModel=n.model,this.encoder.clear(),this.decoder.clear(),P.switchDenoise(n.enable,n.isHeadSet,n.model);break;case"clearBuffer":this.encoder&&this.encoder.clear(),this.decoder&&this.decoder.clear();break;case"checkProcess":U===B?N&&(z=!0,this.checkAudioProcess(!1),_workletPrinter.error("denoise stopped because the worklet is unhealthy"),t().monitorLOG("DENOISE_STOPPED_BY_UNHEALTHY_WORKLET")):z&&N&&(z=!1,_workletPrinter.error("denoise resumed because the worklet is healthy"),t().monitorLOG("DENOISE_RESUMED_BY_HEALTHY_WORKLET")),++W%5==0&&(t().monitorLOG("PCC"+U),U=0),B=U;break;case"clearProcess":U=0}}process(e,t){if(U++,R)return!1;if(!(e[0]&&e[0][0]&&this.encoder))return!0;let r=null,n=null;try{r=e[0],n=t[0],this.encoder.push(r)}catch(e){return _workletPrinter.error("error when set input and output",e),!0}if(j&&!L&&x)try{this.inputData(),this.outputData(n),this.checkAudioProcess(!0)}catch(e){return _workletPrinter.error("Error occurred when do denoise in WebRTC worklet",e),L=!0,!0}else{let e=this.encoder.read();if(null!=e){this.encodeCount++;let{sumRms:t,absMax:r}=i(e,this.inputAudioChannel);if(this.encodeCount%10==0){let e=function(e){if("number"!=typeof e||e<0||e>1)return-1;let t=Math.floor(32768*e/1e3);return 0==t&&e>250&&(t=1),o[t]}(r);0===e&&0===H||(H=e,this.port.postMessage({status:38,data:e}))}if(this.encodeCount%100==0){let e=a(t);this.port.postMessage({status:"AUDIO_LEVEL_R16",level:e})}this.encodeCount%1200==0&&this.port.postMessage({status:"SPEECH_LOG",data:{log:"WCL_MCM_AUDIO,,,,{[SPEECHINPUT_R16]},,,,,{[SEND]},,,{[DENOISE]},0,0,0,0,{[CAPTURE]},,{[AEC]},,,{[END]}"}})}this.checkAudioProcess(!1)}return!0}inputData(){let e=this.encoder.read();if(null!==e){const t=Date.now();if(this.encodeCount++,this.encodeCount%100==0){let{sumRms:t}=i(e,this.inputAudioChannel),r=a(t);this.port.postMessage({status:"AUDIO_LEVEL_R16",level:r}),P.needCalculateDenoiseOutput()}O||(O=Module._malloc(this.inputAudioChannel*(4*sampleRate)/100)),Module.HEAPF32.subarray(O/4,O/4+sampleRate/100*this.inputAudioChannel).set(e),P.deliverRecordedData(O,sampleRate/100,sampleRate,this.inputAudioChannel);const r=Date.now()-t;this.checkInputAudioProcessUnderrun(r)}}outputData(e){let t=this.decoder.read();if(null===t)return _workletPrinter.log("output is null"),!0;if(1===this.inputAudioChannel)for(let r=0;r<e.length;r++)e[r].set(t);else for(let r=0;r<e.length;r++)for(let n=0;e[r]&&n<e[r].length;n++)e[r][n]=t[n*e.length+r]}checkAudioProcess(e){N!=e&&(this.port.postMessage({status:"audio_process_changed",data:!N}),N=e)}checkInputAudioProcessUnderrun(e){e>10&&this.underrunCount++,this.underrunCount>50&&this.denoiseModel==F?(this.port.postMessage({status:"audio_process_underrun",data:{level:1}}),this.underrunCount=0):this.underrunCount>100&&(this.port.postMessage({status:"audio_process_underrun",data:{level:2}}),this.underrunCount=0),this.encodeCount%500==0&&(this.underrunCount=0)}}t().monitorLOG=function(e){e&&I.port.postMessage({status:"MONITOR_LOG",data:e})},t().wcl_trace_log=function(e,t){},t().getLogData=function(e,t,r){},t().audio_encode_frame_callback=function(){},registerProcessor("webRTCWorklet",V)})()})();var wasmModule,Module=Module||{};function initWasm(e,t){let r=()=>Date.now();wasmModule=t;var n,o,i,a=void 0!==(a=e)?a:{},s=Object.assign({},a),u=[],l="./this.program",c="object"==typeof window,f="function"==typeof importScripts,_=("object"==typeof process&&"object"==typeof process.versions&&process.versions.node,"");(c||f)&&(f?_=self.location.href:"undefined"!=typeof document&&document.currentScript&&(_=document.currentScript.src),_=0!==_.indexOf("blob:")?_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1):"",n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},f&&(i=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),o=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var d,h,p=a.print||console.log.bind(console),m=a.printErr||console.warn.bind(console);Object.assign(a,s),s=null,a.arguments&&(u=a.arguments),a.thisProgram&&(l=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(d=a.wasmBinary),a.noExitRuntime,"object"!=typeof WebAssembly&&q("no native wasm support detected");var g=!1;function y(e,t){e||q(t)}var v,w,E,b,S,k,M,A="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function D(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.buffer&&A)return A.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var l=a-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function C(e,t){return e?D(E,e,t):""}function P(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=i)break;t[r++]=s}else if(s<=2047){if(r+1>=i)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=i)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-o}function T(e,t,r){return P(e,E,t,r)}function F(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t}function R(e){v=e,a.HEAP8=w=new Int8Array(e),a.HEAP16=b=new Int16Array(e),a.HEAP32=S=new Int32Array(e),a.HEAPU8=E=new Uint8Array(e),a.HEAPU16=new Uint16Array(e),a.HEAPU32=k=new Uint32Array(e),a.HEAPF32=new Float32Array(e),a.HEAPF64=M=new Float64Array(e)}var x,O=a.INITIAL_MEMORY||20971520;(h=a.wasmMemory?a.wasmMemory:new WebAssembly.Memory({initial:O/65536,maximum:2048}))&&(v=h.buffer),O=v.byteLength,R(v);var j,L,I,N,U=[],B=[],W=[],z=0,H=null,V=null;function Y(e){z++,a.monitorRunDependencies&&a.monitorRunDependencies(z)}function G(e){if(z--,a.monitorRunDependencies&&a.monitorRunDependencies(z),0==z&&(null!==H&&(clearInterval(H),H=null),V)){var t=V;V=null,t()}}function q(e){throw a.onAbort&&a.onAbort(e),m(e="Aborted("+e+")"),g=!0,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}function K(e){return e.startsWith("data:application/octet-stream;base64,")}function $(e){return e.startsWith("file://")}function Z(e){try{if(e==j&&d)return new Uint8Array(d);if(i)return i(e);throw"both async and sync fetching of the wasm failed"}catch(e){q(e)}}K(j="audio.light.simd.wasm")||(L=j,j=a.locateFile?a.locateFile(L,_):_+L);var X={691520:e=>{console.log("Audio Version: ",e)},691557:(e,t)=>{send_data(e,t)},691580:(e,t)=>{SAVE_IV(e,t)},691598:(e,t,r,n)=>{audio_encode_frame_callback(e,t,r,n)},691647:(e,t,r)=>{Get_ExternalRecord(e,t,r)},691683:()=>Date.now(),691706:(e,t)=>{update_play_time(e,t)},691736:()=>{AudioWasmAdapter.onMuteSpeechWarningWASM()},691783:(e,t)=>{AudioWasmAdapter.onMonitorLogWASM(e,t)},691826:(e,t,r,n)=>{AudioWasmAdapter.onGlobalTracingLogWASM(e,t,r,n)},691881:(e,t,r,n,o,i)=>{AudioWasmAdapter.onSenderStatsLogWASM(e,t,r,n,o,i)},691945:(e,t,r,n,o,i)=>{AudioWasmAdapter.onReceiverStatsLogWASM(e,t,r,n,o,i)},692011:(e,t)=>{AudioWasmAdapter.onAudioLevelWASM(e,t)},692054:(e,t,r,n,o)=>{mesh_recv_audio_data(e,t,r,n,o)},692100:(e,t,r)=>{network_quality_callback(e,t,r)},692140:(e,t,r,n)=>{AudioWasmAdapter.onAPMProcessedPCMWASM(e,t,r,n)},692200:(e,t,r,n)=>{pump_rtp_data(e,t,r,n)},692235:(e,t,r,n)=>{pump_rtp_data(e,t,r,n)},692270:(e,t,r,n,o,i,a,s)=>{responseAudioQosData(e,t,r,n,o,i,a,s)},692325:(e,t,r,n,o)=>{sampleRateLog(e,t,r,n,o)},692362:(e,t,r,n,o)=>{sampleRateLog(e,t,r,n,o)},692399:(e,t,r,n,o,i,a,s)=>{frame_callback(e,t,r,n,o,i,a,s)},692451:(e,t)=>{get_edition(e,t)},692476:(e,t)=>{SAVE_IV(e,t)},692494:()=>getNTPBaseTime(),692523:()=>r(),692553:(e,t)=>{reportSenderNTPTime(e,t)},692586:(e,t)=>{COMMIT_PRINT(e,t)},692608:()=>a.getRandomValue(),692644:()=>{if(void 0===a.getRandomValue)try{var e="object"==typeof window?window:self,t=void 0!==e.crypto?e.crypto:e.msCrypto,r=function(){var e=new Uint32Array(1);return t.getRandomValues(e),e[0]>>>0};r(),a.getRandomValue=r}catch(e){try{var n=require("crypto"),o=function(){var e=n.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};o(),a.getRandomValue=o}catch(e){throw"No secure random number generator found"}}},693366:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},693402:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},693438:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},693474:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},693510:(e,t)=>{LOG_OUT(e,t)},693531:(e,t)=>{wcl_trace_log(e,t)}};function Q(e){for(;e.length>0;)e.shift()(a)}var J=[],ee=0,te=0;function re(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){k[this.ptr+4>>2]=e},this.get_type=function(){return k[this.ptr+4>>2]},this.set_destructor=function(e){k[this.ptr+8>>2]=e},this.get_destructor=function(){return k[this.ptr+8>>2]},this.set_refcount=function(e){S[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,w[this.ptr+12|0]=e},this.get_caught=function(){return 0!=w[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,w[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=w[this.ptr+13|0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=S[this.ptr>>2];S[this.ptr>>2]=e+1},this.release_ref=function(){var e=S[this.ptr>>2];return S[this.ptr>>2]=e-1,1===e},this.set_adjusted_ptr=function(e){k[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return k[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ve(this.get_type()))return k[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}function ne(e){return Le(new re(e).ptr)}var oe=[];function ie(e){var t=oe[e];return t||(e>=oe.length&&(oe.length=e+1),oe[e]=t=x.get(e)),t}var ae={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=ae.isAbs(e),r="/"===e.substr(-1);return(e=ae.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=ae.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=ae.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:function(){var e=Array.prototype.slice.call(arguments);return ae.normalize(e.join("/"))},join2:(e,t)=>ae.normalize(e+"/"+t)},se={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:_e.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=ae.isAbs(n)}return(t?"/":"")+(e=ae.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=se.resolve(e).substr(1),t=se.resolve(t).substr(1);for(var n=r(e.split("/")),o=r(t.split("/")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(a))).join("/")}};function ue(e,t,r){var n=r>0?r:F(e)+1,o=new Array(n),i=P(e,o,0,o.length);return t&&(o.length=i),o}var le={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){le.ttys[e]={input:[],output:[],ops:t},_e.registerDevice(e,le.stream_ops)},stream_ops:{open:function(e){var t=le.ttys[e.node.rdev];if(!t)throw new _e.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.fsync(e.tty)},fsync:function(e){e.tty.ops.fsync(e.tty)},read:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new _e.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new _e.ErrnoError(29)}if(void 0===s&&0===i)throw new _e.ErrnoError(6);if(null==s)break;i++,t[r+a]=s}return i&&(e.node.timestamp=Date.now()),i},write:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new _e.ErrnoError(60);try{for(var i=0;i<n;i++)e.tty.ops.put_char(e.tty,t[r+i])}catch(e){throw new _e.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(e){if(!e.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;e.input=ue(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(p(D(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync:function(e){e.output&&e.output.length>0&&(p(D(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(m(D(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync:function(e){e.output&&e.output.length>0&&(m(D(e.output,0)),e.output=[])}}};function ce(e){e=function(e){return 65536*Math.ceil(e/65536)}(e);var t=Ie(65536,e);return t?function(e,t){return E.fill(0,e,e+t),e}(t,e):0}var fe={ops_table:null,mount:function(e){return fe.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(_e.isBlkdev(r)||_e.isFIFO(r))throw new _e.ErrnoError(63);fe.ops_table||(fe.ops_table={dir:{node:{getattr:fe.node_ops.getattr,setattr:fe.node_ops.setattr,lookup:fe.node_ops.lookup,mknod:fe.node_ops.mknod,rename:fe.node_ops.rename,unlink:fe.node_ops.unlink,rmdir:fe.node_ops.rmdir,readdir:fe.node_ops.readdir,symlink:fe.node_ops.symlink},stream:{llseek:fe.stream_ops.llseek}},file:{node:{getattr:fe.node_ops.getattr,setattr:fe.node_ops.setattr},stream:{llseek:fe.stream_ops.llseek,read:fe.stream_ops.read,write:fe.stream_ops.write,allocate:fe.stream_ops.allocate,mmap:fe.stream_ops.mmap,msync:fe.stream_ops.msync}},link:{node:{getattr:fe.node_ops.getattr,setattr:fe.node_ops.setattr,readlink:fe.node_ops.readlink},stream:{}},chrdev:{node:{getattr:fe.node_ops.getattr,setattr:fe.node_ops.setattr},stream:_e.chrdev_stream_ops}});var o=_e.createNode(e,t,r,n);return _e.isDir(o.mode)?(o.node_ops=fe.ops_table.dir.node,o.stream_ops=fe.ops_table.dir.stream,o.contents={}):_e.isFile(o.mode)?(o.node_ops=fe.ops_table.file.node,o.stream_ops=fe.ops_table.file.stream,o.usedBytes=0,o.contents=null):_e.isLink(o.mode)?(o.node_ops=fe.ops_table.link.node,o.stream_ops=fe.ops_table.link.stream):_e.isChrdev(o.mode)&&(o.node_ops=fe.ops_table.chrdev.node,o.stream_ops=fe.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=_e.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,_e.isDir(e.mode)?t.size=4096:_e.isFile(e.mode)?t.size=e.usedBytes:_e.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&fe.resizeFileStorage(e,t.size)},lookup:function(e,t){throw _e.genericErrors[44]},mknod:function(e,t,r,n){return fe.createNode(e,t,r,n)},rename:function(e,t,r){if(_e.isDir(e.mode)){var n;try{n=_e.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new _e.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){var r=_e.lookupNode(e,t);for(var n in r.contents)throw new _e.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink:function(e,t,r){var n=fe.createNode(e,t,41471,0);return n.link=r,n},readlink:function(e){if(!_e.isLink(e.mode))throw new _e.ErrnoError(28);return e.link}},stream_ops:{read:function(e,t,r,n,o){var i=e.node.contents;if(o>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(a>8&&i.subarray)t.set(i.subarray(o,o+a),r);else for(var s=0;s<a;s++)t[r+s]=i[o+s];return a},write:function(e,t,r,n,o,i){if(t.buffer===w.buffer&&(i=!1),!n)return 0;var a=e.node;if(a.timestamp=Date.now(),t.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=t.subarray(r,r+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=t.slice(r,r+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(t.subarray(r,r+n),o),n}if(fe.expandFileStorage(a,o+n),a.contents.subarray&&t.subarray)a.contents.set(t.subarray(r,r+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=t[r+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&_e.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new _e.ErrnoError(28);return n},allocate:function(e,t,r){fe.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap:function(e,t,r,n,o){if(!_e.isFile(e.node.mode))throw new _e.ErrnoError(43);var i,a,s=e.node.contents;if(2&o||s.buffer!==v){if((r>0||r+t<s.length)&&(s=s.subarray?s.subarray(r,r+t):Array.prototype.slice.call(s,r,r+t)),a=!0,!(i=ce(t)))throw new _e.ErrnoError(48);w.set(s,i)}else a=!1,i=s.byteOffset;return{ptr:i,allocated:a}},msync:function(e,t,r,n,o){return fe.stream_ops.write(e,t,0,n,r,!1),0}}},_e={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(e,t={})=>{if(!(e=se.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new _e.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=_e.root,o="/",i=0;i<r.length;i++){var a=i===r.length-1;if(a&&t.parent)break;if(n=_e.lookupNode(n,r[i]),o=ae.join2(o,r[i]),_e.isMountpoint(n)&&(!a||a&&t.follow_mount)&&(n=n.mounted.root),!a||t.follow)for(var s=0;_e.isLink(n.mode);){var u=_e.readlink(o);if(o=se.resolve(ae.dirname(o),u),n=_e.lookupPath(o,{recurse_count:t.recurse_count+1}).node,s++>40)throw new _e.ErrnoError(32)}}return{path:o,node:n}},getPath:e=>{for(var t;;){if(_e.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?r+"/"+t:r+t:r}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:(e,t)=>{for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%_e.nameTable.length},hashAddNode:e=>{var t=_e.hashName(e.parent.id,e.name);e.name_next=_e.nameTable[t],_e.nameTable[t]=e},hashRemoveNode:e=>{var t=_e.hashName(e.parent.id,e.name);if(_e.nameTable[t]===e)_e.nameTable[t]=e.name_next;else for(var r=_e.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:(e,t)=>{var r=_e.mayLookup(e);if(r)throw new _e.ErrnoError(r,e);for(var n=_e.hashName(e.id,t),o=_e.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===e.id&&i===t)return o}return _e.lookup(e,t)},createNode:(e,t,r,n)=>{var o=new _e.FSNode(e,t,r,n);return _e.hashAddNode(o),o},destroyNode:e=>{_e.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:e=>{var t=_e.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:e=>{var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>_e.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup:e=>_e.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate:(e,t)=>{try{return _e.lookupNode(e,t),20}catch(e){}return _e.nodePermissions(e,"wx")},mayDelete:(e,t,r)=>{var n;try{n=_e.lookupNode(e,t)}catch(e){return e.errno}var o=_e.nodePermissions(e,"wx");if(o)return o;if(r){if(!_e.isDir(n.mode))return 54;if(_e.isRoot(n)||_e.getPath(n)===_e.cwd())return 10}else if(_e.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?_e.isLink(e.mode)?32:_e.isDir(e.mode)&&("r"!==_e.flagsToPermissionString(t)||512&t)?31:_e.nodePermissions(e,_e.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd:(e=0,t=_e.MAX_OPEN_FDS)=>{for(var r=e;r<=t;r++)if(!_e.streams[r])return r;throw new _e.ErrnoError(33)},getStream:e=>_e.streams[e],createStream:(e,t,r)=>{_e.FSStream||(_e.FSStream=function(){this.shared={}},_e.FSStream.prototype={},Object.defineProperties(_e.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return!!(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(e){this.shared.flags=e}},position:{get:function(){return this.shared.position},set:function(e){this.shared.position=e}}})),e=Object.assign(new _e.FSStream,e);var n=_e.nextfd(t,r);return e.fd=n,_e.streams[n]=e,e},closeStream:e=>{_e.streams[e]=null},chrdev_stream_ops:{open:e=>{var t=_e.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:()=>{throw new _e.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice:(e,t)=>{_e.devices[e]={stream_ops:t}},getDevice:e=>_e.devices[e],getMounts:e=>{for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:(e,t)=>{"function"==typeof e&&(t=e,e=!1),_e.syncFSRequests++,_e.syncFSRequests>1&&m("warning: "+_e.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var r=_e.getMounts(_e.root.mount),n=0;function o(e){return _e.syncFSRequests--,t(e)}function i(e){if(e)return i.errored?void 0:(i.errored=!0,o(e));++n>=r.length&&o(null)}r.forEach((t=>{if(!t.type.syncfs)return i(null);t.type.syncfs(t,e,i)}))},mount:(e,t,r)=>{var n,o="/"===r,i=!r;if(o&&_e.root)throw new _e.ErrnoError(10);if(!o&&!i){var a=_e.lookupPath(r,{follow_mount:!1});if(r=a.path,n=a.node,_e.isMountpoint(n))throw new _e.ErrnoError(10);if(!_e.isDir(n.mode))throw new _e.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?_e.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:e=>{var t=_e.lookupPath(e,{follow_mount:!1});if(!_e.isMountpoint(t.node))throw new _e.ErrnoError(28);var r=t.node,n=r.mounted,o=_e.getMounts(n);Object.keys(_e.nameTable).forEach((e=>{for(var t=_e.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&_e.destroyNode(t),t=r}})),r.mounted=null;var i=r.mount.mounts.indexOf(n);r.mount.mounts.splice(i,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod:(e,t,r)=>{var n=_e.lookupPath(e,{parent:!0}).node,o=ae.basename(e);if(!o||"."===o||".."===o)throw new _e.ErrnoError(28);var i=_e.mayCreate(n,o);if(i)throw new _e.ErrnoError(i);if(!n.node_ops.mknod)throw new _e.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,_e.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,_e.mknod(e,t,0)),mkdirTree:(e,t)=>{for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{_e.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,_e.mknod(e,t,r)),symlink:(e,t)=>{if(!se.resolve(e))throw new _e.ErrnoError(44);var r=_e.lookupPath(t,{parent:!0}).node;if(!r)throw new _e.ErrnoError(44);var n=ae.basename(t),o=_e.mayCreate(r,n);if(o)throw new _e.ErrnoError(o);if(!r.node_ops.symlink)throw new _e.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename:(e,t)=>{var r,n,o=ae.dirname(e),i=ae.dirname(t),a=ae.basename(e),s=ae.basename(t);if(r=_e.lookupPath(e,{parent:!0}).node,n=_e.lookupPath(t,{parent:!0}).node,!r||!n)throw new _e.ErrnoError(44);if(r.mount!==n.mount)throw new _e.ErrnoError(75);var u,l=_e.lookupNode(r,a),c=se.relative(e,i);if("."!==c.charAt(0))throw new _e.ErrnoError(28);if("."!==(c=se.relative(t,o)).charAt(0))throw new _e.ErrnoError(55);try{u=_e.lookupNode(n,s)}catch(e){}if(l!==u){var f=_e.isDir(l.mode),_=_e.mayDelete(r,a,f);if(_)throw new _e.ErrnoError(_);if(_=u?_e.mayDelete(n,s,f):_e.mayCreate(n,s))throw new _e.ErrnoError(_);if(!r.node_ops.rename)throw new _e.ErrnoError(63);if(_e.isMountpoint(l)||u&&_e.isMountpoint(u))throw new _e.ErrnoError(10);if(n!==r&&(_=_e.nodePermissions(r,"w")))throw new _e.ErrnoError(_);_e.hashRemoveNode(l);try{r.node_ops.rename(l,n,s)}catch(e){throw e}finally{_e.hashAddNode(l)}}},rmdir:e=>{var t=_e.lookupPath(e,{parent:!0}).node,r=ae.basename(e),n=_e.lookupNode(t,r),o=_e.mayDelete(t,r,!0);if(o)throw new _e.ErrnoError(o);if(!t.node_ops.rmdir)throw new _e.ErrnoError(63);if(_e.isMountpoint(n))throw new _e.ErrnoError(10);t.node_ops.rmdir(t,r),_e.destroyNode(n)},readdir:e=>{var t=_e.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new _e.ErrnoError(54);return t.node_ops.readdir(t)},unlink:e=>{var t=_e.lookupPath(e,{parent:!0}).node;if(!t)throw new _e.ErrnoError(44);var r=ae.basename(e),n=_e.lookupNode(t,r),o=_e.mayDelete(t,r,!1);if(o)throw new _e.ErrnoError(o);if(!t.node_ops.unlink)throw new _e.ErrnoError(63);if(_e.isMountpoint(n))throw new _e.ErrnoError(10);t.node_ops.unlink(t,r),_e.destroyNode(n)},readlink:e=>{var t=_e.lookupPath(e).node;if(!t)throw new _e.ErrnoError(44);if(!t.node_ops.readlink)throw new _e.ErrnoError(28);return se.resolve(_e.getPath(t.parent),t.node_ops.readlink(t))},stat:(e,t)=>{var r=_e.lookupPath(e,{follow:!t}).node;if(!r)throw new _e.ErrnoError(44);if(!r.node_ops.getattr)throw new _e.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>_e.stat(e,!0),chmod:(e,t,r)=>{var n;if(!(n="string"==typeof e?_e.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new _e.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod:(e,t)=>{_e.chmod(e,t,!0)},fchmod:(e,t)=>{var r=_e.getStream(e);if(!r)throw new _e.ErrnoError(8);_e.chmod(r.node,t)},chown:(e,t,r,n)=>{var o;if(!(o="string"==typeof e?_e.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new _e.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:(e,t,r)=>{_e.chown(e,t,r,!0)},fchown:(e,t,r)=>{var n=_e.getStream(e);if(!n)throw new _e.ErrnoError(8);_e.chown(n.node,t,r)},truncate:(e,t)=>{if(t<0)throw new _e.ErrnoError(28);var r;if(!(r="string"==typeof e?_e.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new _e.ErrnoError(63);if(_e.isDir(r.mode))throw new _e.ErrnoError(31);if(!_e.isFile(r.mode))throw new _e.ErrnoError(28);var n=_e.nodePermissions(r,"w");if(n)throw new _e.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate:(e,t)=>{var r=_e.getStream(e);if(!r)throw new _e.ErrnoError(8);if(!(2097155&r.flags))throw new _e.ErrnoError(28);_e.truncate(r.node,t)},utime:(e,t,r)=>{var n=_e.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open:(e,t,r)=>{if(""===e)throw new _e.ErrnoError(44);var n;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?_e.modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=ae.normalize(e);try{n=_e.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var o=!1;if(64&t)if(n){if(128&t)throw new _e.ErrnoError(20)}else n=_e.mknod(e,r,0),o=!0;if(!n)throw new _e.ErrnoError(44);if(_e.isChrdev(n.mode)&&(t&=-513),65536&t&&!_e.isDir(n.mode))throw new _e.ErrnoError(54);if(!o){var i=_e.mayOpen(n,t);if(i)throw new _e.ErrnoError(i)}512&t&&!o&&_e.truncate(n,0),t&=-131713;var s=_e.createStream({node:n,path:_e.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!a.logReadFiles||1&t||(_e.readFiles||(_e.readFiles={}),e in _e.readFiles||(_e.readFiles[e]=1)),s},close:e=>{if(_e.isClosed(e))throw new _e.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{_e.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek:(e,t,r)=>{if(_e.isClosed(e))throw new _e.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new _e.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new _e.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read:(e,t,r,n,o)=>{if(n<0||o<0)throw new _e.ErrnoError(28);if(_e.isClosed(e))throw new _e.ErrnoError(8);if(1==(2097155&e.flags))throw new _e.ErrnoError(8);if(_e.isDir(e.node.mode))throw new _e.ErrnoError(31);if(!e.stream_ops.read)throw new _e.ErrnoError(28);var i=void 0!==o;if(i){if(!e.seekable)throw new _e.ErrnoError(70)}else o=e.position;var a=e.stream_ops.read(e,t,r,n,o);return i||(e.position+=a),a},write:(e,t,r,n,o,i)=>{if(n<0||o<0)throw new _e.ErrnoError(28);if(_e.isClosed(e))throw new _e.ErrnoError(8);if(!(2097155&e.flags))throw new _e.ErrnoError(8);if(_e.isDir(e.node.mode))throw new _e.ErrnoError(31);if(!e.stream_ops.write)throw new _e.ErrnoError(28);e.seekable&&1024&e.flags&&_e.llseek(e,0,2);var a=void 0!==o;if(a){if(!e.seekable)throw new _e.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,r,n,o,i);return a||(e.position+=s),s},allocate:(e,t,r)=>{if(_e.isClosed(e))throw new _e.ErrnoError(8);if(t<0||r<=0)throw new _e.ErrnoError(28);if(!(2097155&e.flags))throw new _e.ErrnoError(8);if(!_e.isFile(e.node.mode)&&!_e.isDir(e.node.mode))throw new _e.ErrnoError(43);if(!e.stream_ops.allocate)throw new _e.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap:(e,t,r,n,o)=>{if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new _e.ErrnoError(2);if(1==(2097155&e.flags))throw new _e.ErrnoError(2);if(!e.stream_ops.mmap)throw new _e.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,o)},msync:(e,t,r,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,munmap:e=>0,ioctl:(e,t,r)=>{if(!e.stream_ops.ioctl)throw new _e.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile:(e,t={})=>{if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'+t.encoding+'"');var r,n=_e.open(e,t.flags),o=_e.stat(e).size,i=new Uint8Array(o);return _e.read(n,i,0,o,0),"utf8"===t.encoding?r=D(i,0):"binary"===t.encoding&&(r=i),_e.close(n),r},writeFile:(e,t,r={})=>{r.flags=r.flags||577;var n=_e.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(F(t)+1),i=P(t,o,0,o.length);_e.write(n,o,0,i,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");_e.write(n,t,0,t.byteLength,void 0,r.canOwn)}_e.close(n)},cwd:()=>_e.currentPath,chdir:e=>{var t=_e.lookupPath(e,{follow:!0});if(null===t.node)throw new _e.ErrnoError(44);if(!_e.isDir(t.node.mode))throw new _e.ErrnoError(54);var r=_e.nodePermissions(t.node,"x");if(r)throw new _e.ErrnoError(r);_e.currentPath=t.path},createDefaultDirectories:()=>{_e.mkdir("/tmp"),_e.mkdir("/home"),_e.mkdir("/home/web_user")},createDefaultDevices:()=>{_e.mkdir("/dev"),_e.registerDevice(_e.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),_e.mkdev("/dev/null",_e.makedev(1,3)),le.register(_e.makedev(5,0),le.default_tty_ops),le.register(_e.makedev(6,0),le.default_tty1_ops),_e.mkdev("/dev/tty",_e.makedev(5,0)),_e.mkdev("/dev/tty1",_e.makedev(6,0));var e=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return()=>(crypto.getRandomValues(e),e[0])}return()=>q("randomDevice")}();_e.createDevice("/dev","random",e),_e.createDevice("/dev","urandom",e),_e.mkdir("/dev/shm"),_e.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{_e.mkdir("/proc");var e=_e.mkdir("/proc/self");_e.mkdir("/proc/self/fd"),_e.mount({mount:()=>{var t=_e.createNode(e,"fd",16895,73);return t.node_ops={lookup:(e,t)=>{var r=+t,n=_e.getStream(r);if(!n)throw new _e.ErrnoError(8);var o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams:()=>{a.stdin?_e.createDevice("/dev","stdin",a.stdin):_e.symlink("/dev/tty","/dev/stdin"),a.stdout?_e.createDevice("/dev","stdout",null,a.stdout):_e.symlink("/dev/tty","/dev/stdout"),a.stderr?_e.createDevice("/dev","stderr",null,a.stderr):_e.symlink("/dev/tty1","/dev/stderr"),_e.open("/dev/stdin",0),_e.open("/dev/stdout",1),_e.open("/dev/stderr",1)},ensureErrnoError:()=>{_e.ErrnoError||(_e.ErrnoError=function(e,t){this.node=t,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},_e.ErrnoError.prototype=new Error,_e.ErrnoError.prototype.constructor=_e.ErrnoError,[44].forEach((e=>{_e.genericErrors[e]=new _e.ErrnoError(e),_e.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:()=>{_e.ensureErrnoError(),_e.nameTable=new Array(4096),_e.mount(fe,{},"/"),_e.createDefaultDirectories(),_e.createDefaultDevices(),_e.createSpecialDirectories(),_e.filesystems={MEMFS:fe}},init:(e,t,r)=>{_e.init.initialized=!0,_e.ensureErrnoError(),a.stdin=e||a.stdin,a.stdout=t||a.stdout,a.stderr=r||a.stderr,_e.createStandardStreams()},quit:()=>{_e.init.initialized=!1;for(var e=0;e<_e.streams.length;e++){var t=_e.streams[e];t&&_e.close(t)}},getMode:(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},findObject:(e,t)=>{var r=_e.analyzePath(e,t);return r.exists?r.object:null},analyzePath:(e,t)=>{try{e=(n=_e.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=_e.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=ae.basename(e),n=_e.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath:(e,t,r,n)=>{e="string"==typeof e?e:_e.getPath(e);for(var o=t.split("/").reverse();o.length;){var i=o.pop();if(i){var a=ae.join2(e,i);try{_e.mkdir(a)}catch(e){}e=a}}return a},createFile:(e,t,r,n,o)=>{var i=ae.join2("string"==typeof e?e:_e.getPath(e),t),a=_e.getMode(n,o);return _e.create(i,a)},createDataFile:(e,t,r,n,o,i)=>{var a=t;e&&(e="string"==typeof e?e:_e.getPath(e),a=t?ae.join2(e,t):e);var s=_e.getMode(n,o),u=_e.create(a,s);if(r){if("string"==typeof r){for(var l=new Array(r.length),c=0,f=r.length;c<f;++c)l[c]=r.charCodeAt(c);r=l}_e.chmod(u,146|s);var _=_e.open(u,577);_e.write(_,r,0,r.length,0,i),_e.close(_),_e.chmod(u,s)}return u},createDevice:(e,t,r,n)=>{var o=ae.join2("string"==typeof e?e:_e.getPath(e),t),i=_e.getMode(!!r,!!n);_e.createDevice.major||(_e.createDevice.major=64);var a=_e.makedev(_e.createDevice.major++,0);return _e.registerDevice(a,{open:e=>{e.seekable=!1},close:e=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(e,t,n,o,i)=>{for(var a=0,s=0;s<o;s++){var u;try{u=r()}catch(e){throw new _e.ErrnoError(29)}if(void 0===u&&0===a)throw new _e.ErrnoError(6);if(null==u)break;a++,t[n+s]=u}return a&&(e.node.timestamp=Date.now()),a},write:(e,t,r,o,i)=>{for(var a=0;a<o;a++)try{n(t[r+a])}catch(e){throw new _e.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),a}}),_e.mkdev(o,i,a)},forceLoadFile:e=>{if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!n)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=ue(n(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new _e.ErrnoError(29)}},createLazyFile:(e,t,r,n,o)=>{function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}},i.prototype.setDataGetter=function(e){this.getter=e},i.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,i=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;o||(a=n);var s=this;s.setDataGetter((e=>{var t=e*a,o=(e+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[e]&&(s.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",r,!1),n!==a&&o.setRequestHeader("Range","bytes="+e+"-"+t),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):ue(o.responseText||"",!0)})(t,o)),void 0===s.chunks[e])throw new Error("doXHR failed!");return s.chunks[e]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,p("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!f)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a=new i;Object.defineProperties(a,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:a}}else s={isDevice:!1,url:r};var u=_e.createFile(e,t,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};function c(e,t,r,n,o){var i=e.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var s=0;s<a;s++)t[r+s]=i[o+s];else for(s=0;s<a;s++)t[r+s]=i.get(o+s);return a}return Object.keys(u.stream_ops).forEach((e=>{var t=u.stream_ops[e];l[e]=function(){return _e.forceLoadFile(u),t.apply(null,arguments)}})),l.read=(e,t,r,n,o)=>(_e.forceLoadFile(u),c(e,t,r,n,o)),l.mmap=(e,t,r,n,o)=>{_e.forceLoadFile(u);var i=ce(t);if(!i)throw new _e.ErrnoError(48);return c(e,w,i,t,r),{ptr:i,allocated:!0}},u.stream_ops=l,u},createPreloadedFile:(e,t,r,n,i,a,s,u,l,c)=>{var f=t?se.resolve(ae.join2(e,t)):e;function _(r){function o(r){c&&c(),u||_e.createDataFile(e,t,r,n,i,l),a&&a(),G()}Browser.handledByPreloadPlugin(r,f,o,(()=>{s&&s(),G()}))||o(r)}Y(),"string"==typeof r?function(e,t,r){var n="al "+e;o(e,(t=>{y(t,'Loading data file "'+e+'" failed (no arrayBuffer).'),_(new Uint8Array(t)),n&&G()}),(t=>{if(!r)throw'Loading data file "'+e+'" failed.';r()})),n&&Y()}(r,0,s):_(r)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>"EM_FS_"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=_e.indexedDB();try{var o=n.open(_e.DB_NAME(),_e.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=()=>{p("creating db"),o.result.createObjectStore(_e.DB_STORE_NAME)},o.onsuccess=()=>{var n=o.result.transaction([_e.DB_STORE_NAME],"readwrite"),i=n.objectStore(_e.DB_STORE_NAME),a=0,s=0,u=e.length;function l(){0==s?t():r()}e.forEach((e=>{var t=i.put(_e.analyzePath(e).object.contents,e);t.onsuccess=()=>{++a+s==u&&l()},t.onerror=()=>{s++,a+s==u&&l()}})),n.onerror=r},o.onerror=r},loadFilesFromDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=_e.indexedDB();try{var o=n.open(_e.DB_NAME(),_e.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=r,o.onsuccess=()=>{var n=o.result;try{var i=n.transaction([_e.DB_STORE_NAME],"readonly")}catch(e){return void r(e)}var a=i.objectStore(_e.DB_STORE_NAME),s=0,u=0,l=e.length;function c(){0==u?t():r()}e.forEach((e=>{var t=a.get(e);t.onsuccess=()=>{_e.analyzePath(e).exists&&_e.unlink(e),_e.createDataFile(ae.dirname(e),ae.basename(e),t.result,!0,!0,!0),++s+u==l&&c()},t.onerror=()=>{u++,s+u==l&&c()}})),i.onerror=r},o.onerror=r}},de={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(ae.isAbs(t))return t;var n;if(n=-100===e?_e.cwd():de.getStreamFromFD(e).path,0==t.length){if(!r)throw new _e.ErrnoError(44);return n}return ae.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&ae.normalize(t)!==ae.normalize(_e.getPath(e.node)))return-54;throw e}return S[r>>2]=n.dev,S[r+8>>2]=n.ino,S[r+12>>2]=n.mode,k[r+16>>2]=n.nlink,S[r+20>>2]=n.uid,S[r+24>>2]=n.gid,S[r+28>>2]=n.rdev,N=[n.size>>>0,(I=n.size,+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[r+40>>2]=N[0],S[r+44>>2]=N[1],S[r+48>>2]=4096,S[r+52>>2]=n.blocks,N=[Math.floor(n.atime.getTime()/1e3)>>>0,(I=Math.floor(n.atime.getTime()/1e3),+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[r+56>>2]=N[0],S[r+60>>2]=N[1],k[r+64>>2]=0,N=[Math.floor(n.mtime.getTime()/1e3)>>>0,(I=Math.floor(n.mtime.getTime()/1e3),+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[r+72>>2]=N[0],S[r+76>>2]=N[1],k[r+80>>2]=0,N=[Math.floor(n.ctime.getTime()/1e3)>>>0,(I=Math.floor(n.ctime.getTime()/1e3),+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[r+88>>2]=N[0],S[r+92>>2]=N[1],k[r+96>>2]=0,N=[n.ino>>>0,(I=n.ino,+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[r+104>>2]=N[0],S[r+108>>2]=N[1],0},doMsync:function(e,t,r,n,o){if(!_e.isFile(t.node.mode))throw new _e.ErrnoError(43);if(2&n)return 0;var i=E.slice(e,e+r);_e.msync(t,i,o,r,n)},varargs:void 0,get:function(){return de.varargs+=4,S[de.varargs-4>>2]},getStr:function(e){return C(e)},getStreamFromFD:function(e){var t=_e.getStream(e);if(!t)throw new _e.ErrnoError(8);return t}},he={BUCKET_BUFFER_SIZE:8192,mount:function(e){return _e.createNode(null,"/",16895,0)},createPipe:function(){var e={buckets:[],refcnt:2};e.buckets.push({buffer:new Uint8Array(he.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var t=he.nextname(),r=he.nextname(),n=_e.createNode(he.root,t,4096,0),o=_e.createNode(he.root,r,4096,0);n.pipe=e,o.pipe=e;var i=_e.createStream({path:t,node:n,flags:0,seekable:!1,stream_ops:he.stream_ops});n.stream=i;var a=_e.createStream({path:r,node:o,flags:1,seekable:!1,stream_ops:he.stream_ops});return o.stream=a,{readable_fd:i.fd,writable_fd:a.fd}},stream_ops:{poll:function(e){var t=e.node.pipe;if(1==(2097155&e.flags))return 260;if(t.buckets.length>0)for(var r=0;r<t.buckets.length;r++){var n=t.buckets[r];if(n.offset-n.roffset>0)return 65}return 0},ioctl:function(e,t,r){return 28},fsync:function(e){return 28},read:function(e,t,r,n,o){for(var i=e.node.pipe,a=0,s=0;s<i.buckets.length;s++){var u=i.buckets[s];a+=u.offset-u.roffset}y(t instanceof ArrayBuffer||ArrayBuffer.isView(t));var l=t.subarray(r,r+n);if(n<=0)return 0;if(0==a)throw new _e.ErrnoError(6);var c=Math.min(a,n),f=c,_=0;for(s=0;s<i.buckets.length;s++){var d=i.buckets[s],h=d.offset-d.roffset;if(c<=h){var p=d.buffer.subarray(d.roffset,d.offset);c<h?(p=p.subarray(0,c),d.roffset+=c):_++,l.set(p);break}p=d.buffer.subarray(d.roffset,d.offset),l.set(p),l=l.subarray(p.byteLength),c-=p.byteLength,_++}return _&&_==i.buckets.length&&(_--,i.buckets[_].offset=0,i.buckets[_].roffset=0),i.buckets.splice(0,_),f},write:function(e,t,r,n,o){var i=e.node.pipe;y(t instanceof ArrayBuffer||ArrayBuffer.isView(t));var a=t.subarray(r,r+n),s=a.byteLength;if(s<=0)return 0;var u=null;0==i.buckets.length?(u={buffer:new Uint8Array(he.BUCKET_BUFFER_SIZE),offset:0,roffset:0},i.buckets.push(u)):u=i.buckets[i.buckets.length-1],y(u.offset<=he.BUCKET_BUFFER_SIZE);var l=he.BUCKET_BUFFER_SIZE-u.offset;if(l>=s)return u.buffer.set(a,u.offset),u.offset+=s,s;l>0&&(u.buffer.set(a.subarray(0,l),u.offset),u.offset+=l,a=a.subarray(l,a.byteLength));for(var c=a.byteLength/he.BUCKET_BUFFER_SIZE|0,f=a.byteLength%he.BUCKET_BUFFER_SIZE,_=0;_<c;_++){var d={buffer:new Uint8Array(he.BUCKET_BUFFER_SIZE),offset:he.BUCKET_BUFFER_SIZE,roffset:0};i.buckets.push(d),d.buffer.set(a.subarray(0,he.BUCKET_BUFFER_SIZE)),a=a.subarray(he.BUCKET_BUFFER_SIZE,a.byteLength)}return f>0&&(d={buffer:new Uint8Array(he.BUCKET_BUFFER_SIZE),offset:a.byteLength,roffset:0},i.buckets.push(d),d.buffer.set(a)),s},close:function(e){var t=e.node.pipe;t.refcnt--,0===t.refcnt&&(t.buckets=null)}},nextname:function(){return he.nextname.current||(he.nextname.current=0),"pipe["+he.nextname.current+++"]"}};function pe(e){return k[e>>2]+4294967296*S[e+4>>2]}function me(e){return e%4==0&&(e%100!=0||e%400==0)}var ge=[0,31,60,91,121,152,182,213,244,274,305,335],ye=[0,31,59,90,120,151,181,212,243,273,304,334];function ve(e){var t=F(e)+1,r=Oe(t);return r&&P(e,w,r,t),r}var we,Ee=[];function be(e,t,r){var n=function(e,t){var r;for(Ee.length=0,t>>=2;r=E[e++];)t+=105!=r&t,Ee.push(105==r?S[t]:M[t++>>1]),++t;return Ee}(t,r);return X[e].apply(null,n)}function Se(e){try{return h.grow(e-v.byteLength+65535>>>16),R(h.buffer),1}catch(e){}}we=()=>r();var ke={};function Me(){if(!Me.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:l||"./this.program"};for(var t in ke)void 0===ke[t]?delete e[t]:e[t]=ke[t];var r=[];for(var t in e)r.push(t+"="+e[t]);Me.strings=r}return Me.strings}var Ae=[31,29,31,30,31,30,31,31,30,31,30,31],De=[31,28,31,30,31,30,31,31,30,31,30,31];function Ce(e,t){w.set(e,t)}function Pe(e,t,r,n){var o=S[n+40>>2],i={tm_sec:S[n>>2],tm_min:S[n+4>>2],tm_hour:S[n+8>>2],tm_mday:S[n+12>>2],tm_mon:S[n+16>>2],tm_year:S[n+20>>2],tm_wday:S[n+24>>2],tm_yday:S[n+28>>2],tm_isdst:S[n+32>>2],tm_gmtoff:S[n+36>>2],tm_zone:o?C(o):""},a=C(r),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)a=a.replace(new RegExp(u,"g"),s[u]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function _(e,t){return f(e,t,"0")}function d(e,t){function r(e){return e<0?-1:e>0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function h(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var t=function(e,t){for(var r=new Date(e.getTime());t>0;){var n=me(r.getFullYear()),o=r.getMonth(),i=(n?Ae:De)[o];if(!(t>i-r.getDate()))return r.setDate(r.getDate()+t),r;t-=i-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),o=h(r),i=h(n);return d(o,t)<=0?d(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var m={"%a":function(e){return l[e.tm_wday].substring(0,3)},"%A":function(e){return l[e.tm_wday]},"%b":function(e){return c[e.tm_mon].substring(0,3)},"%B":function(e){return c[e.tm_mon]},"%C":function(e){return _((e.tm_year+1900)/100|0,2)},"%d":function(e){return _(e.tm_mday,2)},"%e":function(e){return f(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return _(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),_(t,2)},"%j":function(e){return _(e.tm_mday+function(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}(me(e.tm_year+1900)?Ae:De,e.tm_mon-1),3)},"%m":function(e){return _(e.tm_mon+1,2)},"%M":function(e){return _(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return _(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=e.tm_yday+7-e.tm_wday;return _(Math.floor(t/7),2)},"%V":function(e){var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4==r||3==r&&me(e.tm_year)||(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&me(e.tm_year%400-1))&&t++}return _(t,2)},"%w":function(e){return e.tm_wday},"%W":function(e){var t=e.tm_yday+7-(e.tm_wday+6)%7;return _(Math.floor(t/7),2)},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var u in a=a.replace(/%%/g,"\0\0"),m)a.includes(u)&&(a=a.replace(new RegExp(u,"g"),m[u](i)));var g=ue(a=a.replace(/\0\0/g,"%"),!1);return g.length>t?0:(Ce(g,e),g.length-1)}function Te(e){return a["_"+e]}var Fe=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=_e.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n};Object.defineProperties(Fe.prototype,{read:{get:function(){return!(365&~this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return!(146&~this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return _e.isDir(this.mode)}},isDevice:{get:function(){return _e.isChrdev(this.mode)}}}),_e.FSNode=Fe,_e.staticInit();var Re,xe={__assert_fail:function(e,t,r,n){q("Assertion failed: "+C(e)+", at: "+[t?C(t):"unknown filename",r,n?C(n):"unknown function"])},__cxa_allocate_exception:function(e){return Oe(e+24)+24},__cxa_begin_catch:function(e){var t=new re(e);return t.get_caught()||(t.set_caught(!0),ee--),t.set_rethrown(!1),J.push(t),function(e){e.add_ref()}(t),t.get_exception_ptr()},__cxa_end_catch:function(){Ne(0),function(e){if(e.release_ref()&&!e.get_rethrown()){var t=e.get_destructor();t&&ie(t)(e.excPtr),ne(e.excPtr)}}(J.pop()),te=0},__cxa_find_matching_catch_2:function(){var e=te;if(!e)return Ue(0),0;var t=new re(e);t.set_adjusted_ptr(e);var r=t.get_type();if(!r)return Ue(0),e;for(var n=0;n<arguments.length;n++){var o=arguments[n];if(0===o||o===r)break;var i=t.ptr+16;if(He(o,r,i))return Ue(o),e}return Ue(r),e},__cxa_find_matching_catch_3:function(){var e=te;if(!e)return Ue(0),0;var t=new re(e);t.set_adjusted_ptr(e);var r=t.get_type();if(!r)return Ue(0),e;for(var n=0;n<arguments.length;n++){var o=arguments[n];if(0===o||o===r)break;var i=t.ptr+16;if(He(o,r,i))return Ue(o),e}return Ue(r),e},__cxa_find_matching_catch_4:function(){var e=te;if(!e)return Ue(0),0;var t=new re(e);t.set_adjusted_ptr(e);var r=t.get_type();if(!r)return Ue(0),e;for(var n=0;n<arguments.length;n++){var o=arguments[n];if(0===o||o===r)break;var i=t.ptr+16;if(He(o,r,i))return Ue(o),e}return Ue(r),e},__cxa_free_exception:ne,__cxa_rethrow:function(){var e=J.pop();e||q("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(J.push(e),e.set_rethrown(!0),e.set_caught(!1),ee++),te=t,t},__cxa_throw:function(e,t,r){throw new re(e).init(t,r),te=e,ee++,e},__cxa_uncaught_exceptions:function(){return ee},__resumeException:function(e){throw te||(te=e),e},__stack_chk_fail:function(){m("missing function: __stack_chk_fail"),q(-1)},__syscall_fcntl64:function(e,t,r){de.varargs=r;try{var n=de.getStreamFromFD(e);switch(t){case 0:return(o=de.get())<0?-28:_e.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=de.get();return n.flags|=o,0;case 5:return o=de.get(),b[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return S[je()>>2]=28,-1}}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_fstat64:function(e,t){try{var r=de.getStreamFromFD(e);return de.doStat(_e.stat,r.path,t)}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_getcwd:function(e,t){try{if(0===t)return-28;var r=_e.cwd(),n=F(r)+1;return t<n?-68:(T(r,e,t),n)}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_getdents64:function(e,t,r){try{var n=de.getStreamFromFD(e);n.getdents||(n.getdents=_e.readdir(n.path));for(var o=280,i=0,a=_e.llseek(n,0,1),s=Math.floor(a/o);s<n.getdents.length&&i+o<=r;){var u,l,c=n.getdents[s];if("."===c)u=n.node.id,l=4;else if(".."===c)u=_e.lookupPath(n.path,{parent:!0}).node.id,l=4;else{var f=_e.lookupNode(n.node,c);u=f.id,l=_e.isChrdev(f.mode)?2:_e.isDir(f.mode)?4:_e.isLink(f.mode)?10:8}N=[u>>>0,(I=u,+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[t+i>>2]=N[0],S[t+i+4>>2]=N[1],N=[(s+1)*o>>>0,(I=(s+1)*o,+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[t+i+8>>2]=N[0],S[t+i+12>>2]=N[1],b[t+i+16>>1]=280,w[t+i+18|0]=l,T(c,t+i+19,256),i+=o,s+=1}return _e.llseek(n,s*o,0),i}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_ioctl:function(e,t,r){de.varargs=r;try{var n=de.getStreamFromFD(e);switch(t){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=de.get();return S[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return o=de.get(),_e.ioctl(n,t,o);default:return-28}}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_lstat64:function(e,t){try{return e=de.getStr(e),de.doStat(_e.lstat,e,t)}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_mkdirat:function(e,t,r){try{return t=de.getStr(t),t=de.calculateAt(e,t),"/"===(t=ae.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),_e.mkdir(t,r,0),0}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_newfstatat:function(e,t,r,n){try{t=de.getStr(t);var o=256&n,i=4096&n;return n&=-6401,t=de.calculateAt(e,t,i),de.doStat(o?_e.lstat:_e.stat,t,r)}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_openat:function(e,t,r,n){de.varargs=n;try{t=de.getStr(t),t=de.calculateAt(e,t);var o=n?de.get():0;return _e.open(t,r,o).fd}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_pipe:function(e){try{if(0==e)throw new _e.ErrnoError(21);var t=he.createPipe();return S[e>>2]=t.readable_fd,S[e+4>>2]=t.writable_fd,0}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_poll:function(e,t,r){try{for(var n=0,o=0;o<t;o++){var i=e+8*o,a=S[i>>2],s=b[i+4>>1],u=32,l=_e.getStream(a);l&&(u=de.DEFAULT_POLLMASK,l.stream_ops.poll&&(u=l.stream_ops.poll(l))),(u&=24|s)&&n++,b[i+6>>1]=u}return n}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},__syscall_stat64:function(e,t){try{return e=de.getStr(e),de.doStat(_e.stat,e,t)}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},_emscripten_get_now_is_monotonic:function(){return!0},_gmtime_js:function(e,t){var r=new Date(1e3*pe(e));S[t>>2]=r.getUTCSeconds(),S[t+4>>2]=r.getUTCMinutes(),S[t+8>>2]=r.getUTCHours(),S[t+12>>2]=r.getUTCDate(),S[t+16>>2]=r.getUTCMonth(),S[t+20>>2]=r.getUTCFullYear()-1900,S[t+24>>2]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),o=(r.getTime()-n)/864e5|0;S[t+28>>2]=o},_localtime_js:function(e,t){var r=new Date(1e3*pe(e));S[t>>2]=r.getSeconds(),S[t+4>>2]=r.getMinutes(),S[t+8>>2]=r.getHours(),S[t+12>>2]=r.getDate(),S[t+16>>2]=r.getMonth(),S[t+20>>2]=r.getFullYear()-1900,S[t+24>>2]=r.getDay();var n=0|function(e){return(me(e.getFullYear())?ge:ye)[e.getMonth()]+e.getDate()-1}(r);S[t+28>>2]=n,S[t+36>>2]=-60*r.getTimezoneOffset();var o=new Date(r.getFullYear(),0,1),i=new Date(r.getFullYear(),6,1).getTimezoneOffset(),a=o.getTimezoneOffset(),s=0|(i!=a&&r.getTimezoneOffset()==Math.min(a,i));S[t+32>>2]=s},_munmap_js:function(e,t,r,n,o,i){try{var a=de.getStreamFromFD(o);2&r&&de.doMsync(e,a,t,n,i),_e.munmap(a)}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return-e.errno}},_tzset_js:function(e,t,r){var n=(new Date).getFullYear(),o=new Date(n,0,1),i=new Date(n,6,1),a=o.getTimezoneOffset(),s=i.getTimezoneOffset(),u=Math.max(a,s);function l(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}k[e>>2]=60*u,S[t>>2]=Number(a!=s);var c=l(o),f=l(i),_=ve(c),d=ve(f);s<a?(k[r>>2]=_,k[r+4>>2]=d):(k[r>>2]=d,k[r+4>>2]=_)},abort:function(){q("")},emscripten_asm_const_double:function(e,t,r){return be(e,t,r)},emscripten_asm_const_int:function(e,t,r){return be(e,t,r)},emscripten_date_now:function(){return Date.now()},emscripten_get_heap_max:function(){return 134217728},emscripten_get_now:we,emscripten_memcpy_big:function(e,t,r){E.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=E.length,n=134217728;if((e>>>=0)>n)return!1;for(var o=1;o<=4;o*=2){var i=r*(1+.2/o);if(i=Math.min(i,e+100663296),Se(Math.min(n,(t=Math.max(e,i))+(65536-t%65536)%65536)))return!0}return!1},environ_get:function(e,t){var r=0;return Me().forEach((function(n,o){var i=t+r;k[e+4*o>>2]=i,function(e,t){for(var r=0;r<e.length;++r)w[0|t++]=e.charCodeAt(r);w[0|t]=0}(n,i),r+=n.length+1})),0},environ_sizes_get:function(e,t){var r=Me();k[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),k[t>>2]=n,0},fd_close:function(e){try{var t=de.getStreamFromFD(e);return _e.close(t),0}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return e.errno}},fd_read:function(e,t,r,n){try{var o=function(e,t,r){for(var n=0,o=0;o<r;o++){var i=k[t>>2],a=k[t+4>>2];t+=8;var s=_e.read(e,w,i,a,undefined);if(s<0)return-1;if(n+=s,s<a)break}return n}(de.getStreamFromFD(e),t,r);return k[n>>2]=o,0}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return e.errno}},fd_seek:function(e,t,r,n,o){try{var i=(u=r)+2097152>>>0<4194305-!!(s=t)?(s>>>0)+4294967296*u:NaN;if(isNaN(i))return 61;var a=de.getStreamFromFD(e);return _e.llseek(a,i,n),N=[a.position>>>0,(I=a.position,+Math.abs(I)>=1?I>0?(0|Math.min(+Math.floor(I/4294967296),4294967295))>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)],S[o>>2]=N[0],S[o+4>>2]=N[1],a.getdents&&0===i&&0===n&&(a.getdents=null),0}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return e.errno}var s,u},fd_write:function(e,t,r,n){try{var o=function(e,t,r){for(var n=0,o=0;o<r;o++){var i=k[t>>2],a=k[t+4>>2];t+=8;var s=_e.write(e,w,i,a,undefined);if(s<0)return-1;n+=s}return n}(de.getStreamFromFD(e),t,r);return k[n>>2]=o,0}catch(e){if(void 0===_e||!(e instanceof _e.ErrnoError))throw e;return e.errno}},invoke_diii:function(e,t,r,n){var o=Be();try{return ie(e)(t,r,n)}catch(e){if(We(o),e!==e+0)throw e;Ne(1,0)}},invoke_fiii:function(e,t,r,n){var o=Be();try{return ie(e)(t,r,n)}catch(e){if(We(o),e!==e+0)throw e;Ne(1,0)}},invoke_i:function(e){var t=Be();try{return ie(e)()}catch(e){if(We(t),e!==e+0)throw e;Ne(1,0)}},invoke_ii:function(e,t){var r=Be();try{return ie(e)(t)}catch(e){if(We(r),e!==e+0)throw e;Ne(1,0)}},invoke_iii:function(e,t,r){var n=Be();try{return ie(e)(t,r)}catch(e){if(We(n),e!==e+0)throw e;Ne(1,0)}},invoke_iiii:function(e,t,r,n){var o=Be();try{return ie(e)(t,r,n)}catch(e){if(We(o),e!==e+0)throw e;Ne(1,0)}},invoke_iiiii:function(e,t,r,n,o){var i=Be();try{return ie(e)(t,r,n,o)}catch(e){if(We(i),e!==e+0)throw e;Ne(1,0)}},invoke_iiiiii:function(e,t,r,n,o,i){var a=Be();try{return ie(e)(t,r,n,o,i)}catch(e){if(We(a),e!==e+0)throw e;Ne(1,0)}},invoke_iiiiiii:function(e,t,r,n,o,i,a){var s=Be();try{return ie(e)(t,r,n,o,i,a)}catch(e){if(We(s),e!==e+0)throw e;Ne(1,0)}},invoke_iiiiiiii:function(e,t,r,n,o,i,a,s){var u=Be();try{return ie(e)(t,r,n,o,i,a,s)}catch(e){if(We(u),e!==e+0)throw e;Ne(1,0)}},invoke_iiiiiiiiiii:function(e,t,r,n,o,i,a,s,u,l,c){var f=Be();try{return ie(e)(t,r,n,o,i,a,s,u,l,c)}catch(e){if(We(f),e!==e+0)throw e;Ne(1,0)}},invoke_iiiiiiiiiiii:function(e,t,r,n,o,i,a,s,u,l,c,f){var _=Be();try{return ie(e)(t,r,n,o,i,a,s,u,l,c,f)}catch(e){if(We(_),e!==e+0)throw e;Ne(1,0)}},invoke_iiiiiiiiiiiii:function(e,t,r,n,o,i,a,s,u,l,c,f,_){var d=Be();try{return ie(e)(t,r,n,o,i,a,s,u,l,c,f,_)}catch(e){if(We(d),e!==e+0)throw e;Ne(1,0)}},invoke_jiiii:function(e,t,r,n,o){var i=Be();try{return qe(e,t,r,n,o)}catch(e){if(We(i),e!==e+0)throw e;Ne(1,0)}},invoke_v:function(e){var t=Be();try{ie(e)()}catch(e){if(We(t),e!==e+0)throw e;Ne(1,0)}},invoke_vi:function(e,t){var r=Be();try{ie(e)(t)}catch(e){if(We(r),e!==e+0)throw e;Ne(1,0)}},invoke_vii:function(e,t,r){var n=Be();try{ie(e)(t,r)}catch(e){if(We(n),e!==e+0)throw e;Ne(1,0)}},invoke_viii:function(e,t,r,n){var o=Be();try{ie(e)(t,r,n)}catch(e){if(We(o),e!==e+0)throw e;Ne(1,0)}},invoke_viiii:function(e,t,r,n,o){var i=Be();try{ie(e)(t,r,n,o)}catch(e){if(We(i),e!==e+0)throw e;Ne(1,0)}},invoke_viiiiiii:function(e,t,r,n,o,i,a,s){var u=Be();try{ie(e)(t,r,n,o,i,a,s)}catch(e){if(We(u),e!==e+0)throw e;Ne(1,0)}},invoke_viiiiiiiiii:function(e,t,r,n,o,i,a,s,u,l,c){var f=Be();try{ie(e)(t,r,n,o,i,a,s,u,l,c)}catch(e){if(We(f),e!==e+0)throw e;Ne(1,0)}},invoke_viiiiiiiiiiiiiii:function(e,t,r,n,o,i,a,s,u,l,c,f,_,d,h,p){var m=Be();try{ie(e)(t,r,n,o,i,a,s,u,l,c,f,_,d,h,p)}catch(e){if(We(m),e!==e+0)throw e;Ne(1,0)}},invoke_viiiij:function(e,t,r,n,o,i,a){var s=Be();try{Ge(e,t,r,n,o,i,a)}catch(e){if(We(s),e!==e+0)throw e;Ne(1,0)}},invoke_vij:function(e,t,r,n){var o=Be();try{Ye(e,t,r,n)}catch(e){if(We(o),e!==e+0)throw e;Ne(1,0)}},llvm_eh_typeid_for:function(e){return e},memory:h,shmat:function(){m("missing function: shmat"),q(-1)},shmctl:function(){m("missing function: shmctl"),q(-1)},shmdt:function(){m("missing function: shmdt"),q(-1)},shmget:function(){m("missing function: shmget"),q(-1)},strftime:Pe,strftime_l:function(e,t,r,n,o){return Pe(e,t,r,n)}},Oe=(function(){var e={env:xe,wasi_snapshot_preview1:xe};function t(e,t){var r,n=e.exports;a.asm=n,x=a.asm.__indirect_function_table,r=a.asm.__wasm_call_ctors,B.unshift(r),G()}function r(e){t(e.instance)}function n(t){return function(){if(!d&&(c||f)){if("function"==typeof fetch&&!$(j))return fetch(j,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+j+"'";return e.arrayBuffer()})).catch((function(){return Z(j)}));if(o)return new Promise((function(e,t){o(j,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return Z(j)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){m("failed to asynchronously prepare wasm: "+e),q(e)}))}if(Y(),a.instantiateWasm)try{return a.instantiateWasm(e,t)}catch(e){return m("Module.instantiateWasm callback failed with error: "+e),!1}d||"function"!=typeof WebAssembly.instantiateStreaming||K(j)||$(j)||"function"!=typeof fetch?n(r):fetch(j,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return m("wasm streaming compile failed: "+e),m("falling back to ArrayBuffer instantiation"),n(r)}))}))}(),a.___wasm_call_ctors=function(){return(a.___wasm_call_ctors=a.asm.__wasm_call_ctors).apply(null,arguments)},a._malloc=function(){return(Oe=a._malloc=a.asm.malloc).apply(null,arguments)}),je=(a.__Audio_Init=function(){return(a.__Audio_Init=a.asm._Audio_Init).apply(null,arguments)},a.__Audio_UnInit=function(){return(a.__Audio_UnInit=a.asm._Audio_UnInit).apply(null,arguments)},a.__Deliver_Recorded_Data=function(){return(a.__Deliver_Recorded_Data=a.asm._Deliver_Recorded_Data).apply(null,arguments)},a.__Audio_Try_Analysis=function(){return(a.__Audio_Try_Analysis=a.asm._Audio_Try_Analysis).apply(null,arguments)},a.__Put_Pre_Aec_Data=function(){return(a.__Put_Pre_Aec_Data=a.asm._Put_Pre_Aec_Data).apply(null,arguments)},a.__Set_Aec_Delay=function(){return(a.__Set_Aec_Delay=a.asm._Set_Aec_Delay).apply(null,arguments)},a.__ReSet_Aec=function(){return(a.__ReSet_Aec=a.asm._ReSet_Aec).apply(null,arguments)},a.__Get_Aec_Delay=function(){return(a.__Get_Aec_Delay=a.asm._Get_Aec_Delay).apply(null,arguments)},a.__Request_Audio_Qos_Data=function(){return(a.__Request_Audio_Qos_Data=a.asm._Request_Audio_Qos_Data).apply(null,arguments)},a.__Get_Mixed_Audio=function(){return(a.__Get_Mixed_Audio=a.asm._Get_Mixed_Audio).apply(null,arguments)},a.__Get_Audio_Edition=function(){return(a.__Get_Audio_Edition=a.asm._Get_Audio_Edition).apply(null,arguments)},a.__Audio_Set_Data_Encryption=function(){return(a.__Audio_Set_Data_Encryption=a.asm._Audio_Set_Data_Encryption).apply(null,arguments)},a.__Add_Cooker_info=function(){return(a.__Add_Cooker_info=a.asm._Add_Cooker_info).apply(null,arguments)},a.__Remove_Cooker_Info=function(){return(a.__Remove_Cooker_Info=a.asm._Remove_Cooker_Info).apply(null,arguments)},a.__Get_Audio_Meat_Weight=function(){return(a.__Get_Audio_Meat_Weight=a.asm._Get_Audio_Meat_Weight).apply(null,arguments)},a.__Change_Aec_Flag=function(){return(a.__Change_Aec_Flag=a.asm._Change_Aec_Flag).apply(null,arguments)},a.__Change_Connect_Type=function(){return(a.__Change_Connect_Type=a.asm._Change_Connect_Type).apply(null,arguments)},a.__Cc_Set_Lang=function(){return(a.__Cc_Set_Lang=a.asm._Cc_Set_Lang).apply(null,arguments)},a.__Interpretation_Configure=function(){return(a.__Interpretation_Configure=a.asm._Interpretation_Configure).apply(null,arguments)},a.__Start_Audio_Share=function(){return(a.__Start_Audio_Share=a.asm._Start_Audio_Share).apply(null,arguments)},a.__InsertShareData=function(){return(a.__InsertShareData=a.asm._InsertShareData).apply(null,arguments)},a.__Set_Share_Volume_Level=function(){return(a.__Set_Share_Volume_Level=a.asm._Set_Share_Volume_Level).apply(null,arguments)},a.__Set_Speech_Volume_Level=function(){return(a.__Set_Speech_Volume_Level=a.asm._Set_Speech_Volume_Level).apply(null,arguments)},a.__Set_All_Speech_Volume_Level=function(){return(a.__Set_All_Speech_Volume_Level=a.asm._Set_All_Speech_Volume_Level).apply(null,arguments)},a.__Update_Monitor_Send_Audio_Info=function(){return(a.__Update_Monitor_Send_Audio_Info=a.asm._Update_Monitor_Send_Audio_Info).apply(null,arguments)},a.__Update_Monitor_Receive_Audio_Info=function(){return(a.__Update_Monitor_Receive_Audio_Info=a.asm._Update_Monitor_Receive_Audio_Info).apply(null,arguments)},a.__Set_Audio_Encryption_Key_Directly=function(){return(a.__Set_Audio_Encryption_Key_Directly=a.asm._Set_Audio_Encryption_Key_Directly).apply(null,arguments)},a.__Add_Roster_Info_Directly=function(){return(a.__Add_Roster_Info_Directly=a.asm._Add_Roster_Info_Directly).apply(null,arguments)},a.__Enable_Share_To_Bo=function(){return(a.__Enable_Share_To_Bo=a.asm._Enable_Share_To_Bo).apply(null,arguments)},a.__Enable_Broadcast_To_Bo=function(){return(a.__Enable_Broadcast_To_Bo=a.asm._Enable_Broadcast_To_Bo).apply(null,arguments)},a.__Set_Audio_Pipe_To_Bo=function(){return(a.__Set_Audio_Pipe_To_Bo=a.asm._Set_Audio_Pipe_To_Bo).apply(null,arguments)},a.__Enable_Pipe_OUT_RTP=function(){return(a.__Enable_Pipe_OUT_RTP=a.asm._Enable_Pipe_OUT_RTP).apply(null,arguments)},a.__Smooth_Send_For_Qos=function(){return(a.__Smooth_Send_For_Qos=a.asm._Smooth_Send_For_Qos).apply(null,arguments)},a.__request_nack_t_periodically_for_qos=function(){return(a.__request_nack_t_periodically_for_qos=a.asm._request_nack_t_periodically_for_qos).apply(null,arguments)},a.__setMultiViewFlag=function(){return(a.__setMultiViewFlag=a.asm._setMultiViewFlag).apply(null,arguments)},a.__Switch_Denoise=function(){return(a.__Switch_Denoise=a.asm._Switch_Denoise).apply(null,arguments)},a.__Switch_Original_Sound=function(){return(a.__Switch_Original_Sound=a.asm._Switch_Original_Sound).apply(null,arguments)},a.__Switch_High_Bitrate=function(){return(a.__Switch_High_Bitrate=a.asm._Switch_High_Bitrate).apply(null,arguments)},a.__Heartbeat=function(){return(a.__Heartbeat=a.asm._Heartbeat).apply(null,arguments)},a.__MuteUnmuteState=function(){return(a.__MuteUnmuteState=a.asm._MuteUnmuteState).apply(null,arguments)},a.__Enable_Outfilter=function(){return(a.__Enable_Outfilter=a.asm._Enable_Outfilter).apply(null,arguments)},a.__set_mmr_signature_info=function(){return(a.__set_mmr_signature_info=a.asm._set_mmr_signature_info).apply(null,arguments)},a.__set_singature_info=function(){return(a.__set_singature_info=a.asm._set_singature_info).apply(null,arguments)},a.__set_meeting_uuid_for_signature=function(){return(a.__set_meeting_uuid_for_signature=a.asm._set_meeting_uuid_for_signature).apply(null,arguments)},a.__update_signagure_verify_action=function(){return(a.__update_signagure_verify_action=a.asm._update_signagure_verify_action).apply(null,arguments)},a.__Set_Audio_Statistics_Flag=function(){return(a.__Set_Audio_Statistics_Flag=a.asm._Set_Audio_Statistics_Flag).apply(null,arguments)},a._GIT_COMMIT_VERSION=function(){return(a._GIT_COMMIT_VERSION=a.asm.GIT_COMMIT_VERSION).apply(null,arguments)},a.getTempRet0=function(){return(a.getTempRet0=a.asm.getTempRet0).apply(null,arguments)},a.___errno_location=function(){return(je=a.___errno_location=a.asm.__errno_location).apply(null,arguments)}),Le=a._free=function(){return(Le=a._free=a.asm.free).apply(null,arguments)},Ie=(a._ntohs=function(){return(a._ntohs=a.asm.ntohs).apply(null,arguments)},a._htons=function(){return(a._htons=a.asm.htons).apply(null,arguments)},a._htonl=function(){return(a._htonl=a.asm.htonl).apply(null,arguments)},a._emscripten_builtin_memalign=function(){return(Ie=a._emscripten_builtin_memalign=a.asm.emscripten_builtin_memalign).apply(null,arguments)}),Ne=a._setThrew=function(){return(Ne=a._setThrew=a.asm.setThrew).apply(null,arguments)},Ue=a.setTempRet0=function(){return(Ue=a.setTempRet0=a.asm.setTempRet0).apply(null,arguments)},Be=a.stackSave=function(){return(Be=a.stackSave=a.asm.stackSave).apply(null,arguments)},We=a.stackRestore=function(){return(We=a.stackRestore=a.asm.stackRestore).apply(null,arguments)},ze=a.stackAlloc=function(){return(ze=a.stackAlloc=a.asm.stackAlloc).apply(null,arguments)},He=(a.___cxa_demangle=function(){return(a.___cxa_demangle=a.asm.__cxa_demangle).apply(null,arguments)},a.___cxa_can_catch=function(){return(He=a.___cxa_can_catch=a.asm.__cxa_can_catch).apply(null,arguments)}),Ve=a.___cxa_is_pointer_type=function(){return(Ve=a.___cxa_is_pointer_type=a.asm.__cxa_is_pointer_type).apply(null,arguments)},Ye=(a.dynCall_iiij=function(){return(a.dynCall_iiij=a.asm.dynCall_iiij).apply(null,arguments)},a.dynCall_iij=function(){return(a.dynCall_iij=a.asm.dynCall_iij).apply(null,arguments)},a.dynCall_iijii=function(){return(a.dynCall_iijii=a.asm.dynCall_iijii).apply(null,arguments)},a.dynCall_iiijiji=function(){return(a.dynCall_iiijiji=a.asm.dynCall_iiijiji).apply(null,arguments)},a.dynCall_iiijiii=function(){return(a.dynCall_iiijiii=a.asm.dynCall_iiijiii).apply(null,arguments)},a.dynCall_iiiji=function(){return(a.dynCall_iiiji=a.asm.dynCall_iiiji).apply(null,arguments)},a.dynCall_vij=function(){return(Ye=a.dynCall_vij=a.asm.dynCall_vij).apply(null,arguments)}),Ge=a.dynCall_viiiij=function(){return(Ge=a.dynCall_viiiij=a.asm.dynCall_viiiij).apply(null,arguments)},qe=(a.dynCall_viiijii=function(){return(a.dynCall_viiijii=a.asm.dynCall_viiijii).apply(null,arguments)},a.dynCall_iiiiiijiii=function(){return(a.dynCall_iiiiiijiii=a.asm.dynCall_iiiiiijiii).apply(null,arguments)},a.dynCall_ji=function(){return(a.dynCall_ji=a.asm.dynCall_ji).apply(null,arguments)},a.dynCall_viij=function(){return(a.dynCall_viij=a.asm.dynCall_viij).apply(null,arguments)},a.dynCall_jiii=function(){return(a.dynCall_jiii=a.asm.dynCall_jiii).apply(null,arguments)},a.dynCall_jiji=function(){return(a.dynCall_jiji=a.asm.dynCall_jiji).apply(null,arguments)},a.dynCall_viijii=function(){return(a.dynCall_viijii=a.asm.dynCall_viijii).apply(null,arguments)},a.dynCall_jiiii=function(){return(qe=a.dynCall_jiiii=a.asm.dynCall_jiiii).apply(null,arguments)});function Ke(e){function t(){Re||(Re=!0,a.calledRun=!0,g||(a.noFSInit||_e.init.initialized||_e.init(),_e.ignorePermissions=!1,le.init(),he.root=_e.mount(he,{},null),Q(B),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)e=a.postRun.shift(),W.unshift(e);var e;Q(W)}()))}e=e||u,z>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)e=a.preRun.shift(),U.unshift(e);var e;Q(U)}(),z>0||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),t()}),1)):t()))}if(a.dynCall_iiiiij=function(){return(a.dynCall_iiiiij=a.asm.dynCall_iiiiij).apply(null,arguments)},a.dynCall_iiiiijj=function(){return(a.dynCall_iiiiijj=a.asm.dynCall_iiiiijj).apply(null,arguments)},a.dynCall_iiiiiijj=function(){return(a.dynCall_iiiiiijj=a.asm.dynCall_iiiiiijj).apply(null,arguments)},a.cwrap=function(e,t,r,n){var o=(r=r||[]).every((e=>"number"===e||"boolean"===e));return"string"!==t&&o&&!n?Te(e):function(){return function(e,t,r,n){var o={string:e=>{var t=0;if(null!=e&&0!==e){var r=1+(e.length<<2);T(e,t=ze(r),r)}return t},array:e=>{var t=ze(e.length);return Ce(e,t),t}},i=Te(e),a=[],s=0;if(n)for(var u=0;u<n.length;u++){var l=o[r[u]];l?(0===s&&(s=Be()),a[u]=l(n[u])):a[u]=n[u]}return function(e){return 0!==s&&We(s),function(e){return"string"===t?C(e):"boolean"===t?Boolean(e):e}(e)}(i.apply(null,a))}(e,t,r,arguments)}},V=function e(){Re||Ke(),Re||(V=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();Ke()}Module.onRuntimeInitialized=function(){globalThis.onWasmModuleReady()},Module.onAbort=function(){globalThis.onAbort()},Module.instantiateWasm=function(e,t){return WebAssembly.instantiate(wasmModule,e).then((function(e){e.instance?t(e.instance):t(e)})),{}};
2
+ //# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/sourcemap/js_audio_level_worklet_process_light.min.js-535759b5338393ab6e8e.map