@vinay.kumar.ha/videosdk-ui-toolkit 2.3.5-1.5 → 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.
- package/dist/lib/annoter.min.js +3 -0
- package/dist/lib/audio.encode.wasm +0 -0
- package/dist/lib/audio.light.simd.wasm +0 -0
- package/dist/lib/audio.simd.wasm +0 -0
- package/dist/lib/audio_light_simd.min.js +2 -0
- package/dist/lib/audio_simd.min.js +2 -0
- package/dist/lib/graphics.min.js +2 -0
- package/dist/lib/js_audio_level_worklet_process.min.js +2 -0
- package/dist/lib/js_audio_level_worklet_process_light.min.js +2 -0
- package/dist/lib/js_audio_process.min.js +2 -0
- package/dist/lib/js_audio_processor_worklet.min.js +2 -0
- package/dist/lib/js_audio_worklet.min.js +2 -0
- package/dist/lib/js_audio_worklet_light_simd.min.js +2 -0
- package/dist/lib/js_audio_worklet_process.min.js +2 -0
- package/dist/lib/js_audio_worklet_simd.min.js +2 -0
- package/dist/lib/js_media.min.js +3 -0
- package/dist/lib/js_sharing_audio_worklet.min.js +2 -0
- package/dist/lib/manifest.json +338 -0
- package/dist/lib/mesh_thread.min.js +2 -0
- package/dist/lib/net.wasm +0 -0
- package/dist/lib/net_thread.min.js +2 -0
- package/dist/lib/pako.min.js +2 -0
- package/dist/lib/qrscanner.min.js +2 -0
- package/dist/lib/share_processor.min.js +2 -0
- package/dist/lib/sharing_m.min.js +3 -0
- package/dist/lib/sharing_mtsimd.min.js +3 -0
- package/dist/lib/sharing_s.min.js +2 -0
- package/dist/lib/sharing_simd.min.js +2 -0
- package/dist/lib/tp.min.js +2 -0
- package/dist/lib/tp.wasm +0 -0
- package/dist/lib/vb-resource/dualModel.bin +0 -0
- package/dist/lib/vb-resource/tf.min.js +18 -0
- package/dist/lib/vb.min.js +2 -0
- package/dist/lib/vb_worker.min.js +2 -0
- package/dist/lib/video.decode.js +1 -0
- package/dist/lib/video.decode.wasm +0 -0
- package/dist/lib/video.mt.js +1 -0
- package/dist/lib/video.mt.wasm +0 -0
- package/dist/lib/video.mtsimd.js +1 -0
- package/dist/lib/video.mtsimd.wasm +0 -0
- package/dist/lib/video.simd.js +1 -0
- package/dist/lib/video.simd.wasm +0 -0
- package/dist/lib/video_m.min.js +3 -0
- package/dist/lib/video_mtsimd.min.js +3 -0
- package/dist/lib/video_processor.min.js +2 -0
- package/dist/lib/video_s.min.js +2 -0
- package/dist/lib/video_share_mtsimd.min.js +3 -0
- package/dist/lib/video_simd.min.js +2 -0
- package/dist/lib/wasm_ssrc_stream_service_dynmod.min.js +2 -0
- package/dist/lib/webgpu_renderer_dynmod.min.js +2 -0
- package/dist/lib/wmsc.min.js +2 -0
- package/dist/videosdk-ui-toolkit.min.esm.js +1832 -1832
- package/dist/videosdk-ui-toolkit.min.umd.js +82 -82
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{var t={1265:(t,e,r)=>{t.exports=r(4598)},6040:(t,e,r)=>{"use strict";var i=r(8251);t.exports=i},7264:(t,e,r)=>{"use strict";var i=r(4139);r(768),r(8549),r(7152),r(1372),t.exports=i},9692:(t,e,r)=>{"use strict";var i=r(7045);t.exports=i},5663:(t,e,r)=>{"use strict";var i=r(70);t.exports=i},1042:(t,e,r)=>{"use strict";var i=r(8280),s=r(7511),n=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===n||i(n,t)&&e===n.trim?s:e}},1926:(t,e,r)=>{"use strict";r(6750);var i=r(2046).Object,s=t.exports=function(t,e,r){return i.defineProperty(t,e,r)};i.defineProperty.sham&&(s.sham=!0)},7511:(t,e,r)=>{"use strict";r(727);var i=r(1747);t.exports=i("String","trim")},3842:(t,e,r)=>{"use strict";r(8545),r(3643),r(4452),r(3997),r(5084),r(2596),r(5721),r(4954),r(4123),r(3377),r(2230),r(5344),r(1660),r(4610),r(3669),r(4810),r(3325),r(7024),r(8172),r(5205);var i=r(2046);t.exports=i.Symbol},1730:(t,e,r)=>{"use strict";r(9363),r(3643),r(7057),r(4954);var i=r(560);t.exports=i.f("iterator")},1661:(t,e,r)=>{"use strict";r(8537),r(3669);var i=r(560);t.exports=i.f("toPrimitive")},4997:(t,e,r)=>{"use strict";var i=r(6040);t.exports=i},2321:(t,e,r)=>{"use strict";var i=r(7264);r(3939),r(1785),r(1697),r(4664),r(3422),r(36),r(8703),r(6878),r(9671),r(359),t.exports=i},2231:(t,e,r)=>{"use strict";var i=r(9692);t.exports=i},9280:(t,e,r)=>{"use strict";var i=r(5663);t.exports=i},2159:(t,e,r)=>{"use strict";var i=r(2250),s=r(4640),n=TypeError;t.exports=function(t){if(i(t))return t;throw new n(s(t)+" is not a function")}},43:(t,e,r)=>{"use strict";var i=r(4018),s=String,n=TypeError;t.exports=function(t){if(i(t))return t;throw new n("Can't set "+s(t)+" as a prototype")}},2156:t=>{"use strict";t.exports=function(){}},6624:(t,e,r)=>{"use strict";var i=r(6285),s=String,n=TypeError;t.exports=function(t){if(i(t))return t;throw new n(s(t)+" is not an object")}},4436:(t,e,r)=>{"use strict";var i=r(7374),s=r(4849),n=r(575),o=function(t){return function(e,r,o){var a=i(e),c=n(a);if(0===c)return!t&&-1;var h,u=s(o,c);if(t&&r!=r){for(;c>u;)if((h=a[u++])!=h)return!0}else for(;c>u;u++)if((t||u in a)&&a[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},726:(t,e,r)=>{"use strict";var i=r(8311),s=r(1907),n=r(6946),o=r(9298),a=r(575),c=r(6968),h=s([].push),u=function(t){var e=1===t,r=2===t,s=3===t,u=4===t,l=6===t,d=7===t,f=5===t||l;return function(p,g,m,v){for(var _,y,w=o(p),S=n(w),x=a(S),b=i(g,m),O=0,P=v||c,M=e?P(p,x):r||d?P(p,0):void 0;x>O;O++)if((f||O in S)&&(y=b(_=S[O],O,w),t))if(e)M[O]=y;else if(y)switch(t){case 3:return!0;case 5:return _;case 6:return O;case 2:h(M,_)}else switch(t){case 4:return!1;case 7:h(M,_)}return l?-1:s||u?u:M}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},7171:(t,e,r)=>{"use strict";var i=r(8828),s=r(6264),n=r(798),o=s("species");t.exports=function(t){return n>=51||!i((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},3427:(t,e,r)=>{"use strict";var i=r(1907);t.exports=i([].slice)},4010:(t,e,r)=>{"use strict";var i=r(1793),s=r(5468),n=r(6285),o=r(6264)("species"),a=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(s(e)&&(e===a||i(e.prototype))||n(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?a:e}},6968:(t,e,r)=>{"use strict";var i=r(4010);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},5807:(t,e,r)=>{"use strict";var i=r(1907),s=i({}.toString),n=i("".slice);t.exports=function(t){return n(s(t),8,-1)}},3948:(t,e,r)=>{"use strict";var i=r(2623),s=r(2250),n=r(5807),o=r(6264)("toStringTag"),a=Object,c="Arguments"===n(function(){return arguments}());t.exports=i?n:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:c?n(e):"Object"===(i=n(e))&&s(e.callee)?"Arguments":i}},7382:(t,e,r)=>{"use strict";var i=r(8828);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9550:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},1626:(t,e,r)=>{"use strict";var i=r(9447),s=r(4284),n=r(5817);t.exports=i?function(t,e,r){return s.f(t,e,n(1,r))}:function(t,e,r){return t[e]=r,t}},5817:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5543:(t,e,r)=>{"use strict";var i=r(9447),s=r(4284),n=r(5817);t.exports=function(t,e,r){i?s.f(t,e,n(0,r)):t[e]=r}},9251:(t,e,r)=>{"use strict";var i=r(4284);t.exports=function(t,e,r){return i.f(t,e,r)}},8055:(t,e,r)=>{"use strict";var i=r(1626);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:i(t,e,r),t}},2532:(t,e,r)=>{"use strict";var i=r(5951),s=Object.defineProperty;t.exports=function(t,e){try{s(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e}},9447:(t,e,r)=>{"use strict";var i=r(8828);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9552:(t,e,r)=>{"use strict";var i=r(5951),s=r(6285),n=i.document,o=s(n)&&s(n.createElement);t.exports=function(t){return o?n.createElement(t):{}}},8024:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},9287:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},376:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6794:(t,e,r)=>{"use strict";var i=r(5951).navigator,s=i&&i.userAgent;t.exports=s?String(s):""},798:(t,e,r)=>{"use strict";var i,s,n=r(5951),o=r(6794),a=n.process,c=n.Deno,h=a&&a.versions||c&&c.version,u=h&&h.v8;u&&(s=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(s=+i[1]),t.exports=s},1091:(t,e,r)=>{"use strict";var i=r(5951),s=r(6024),n=r(2361),o=r(2250),a=r(3846).f,c=r(7463),h=r(2046),u=r(8311),l=r(1626),d=r(9724);r(6128);var f=function(t){var e=function(r,i,n){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,n)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,p,g,m,v,_,y,w,S=t.target,x=t.global,b=t.stat,O=t.proto,P=x?i:b?i[S]:i[S]&&i[S].prototype,M=x?h:h[S]||l(h,S,{})[S],R=M.prototype;for(g in e)s=!(r=c(x?g:S+(b?".":"#")+g,t.forced))&&P&&d(P,g),v=M[g],s&&(_=t.dontCallGetSet?(w=a(P,g))&&w.value:P[g]),m=s&&_?_:e[g],(r||O||typeof v!=typeof m)&&(y=t.bind&&s?u(m,i):t.wrap&&s?f(m):O&&o(m)?n(m):m,(t.sham||m&&m.sham||v&&v.sham)&&l(y,"sham",!0),l(M,g,y),O&&(d(h,p=S+"Prototype")||l(h,p,{}),l(h[p],g,m),t.real&&R&&(r||!R[g])&&l(R,g,m)))}},8828:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6024:(t,e,r)=>{"use strict";var i=r(1505),s=Function.prototype,n=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(n):function(){return o.apply(n,arguments)})},8311:(t,e,r)=>{"use strict";var i=r(2361),s=r(2159),n=r(1505),o=i(i.bind);t.exports=function(t,e){return s(t),void 0===e?t:n?o(t,e):function(){return t.apply(e,arguments)}}},1505:(t,e,r)=>{"use strict";var i=r(8828);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3930:(t,e,r)=>{"use strict";var i=r(1505),s=Function.prototype.call;t.exports=i?s.bind(s):function(){return s.apply(s,arguments)}},6833:(t,e,r)=>{"use strict";var i=r(9447),s=r(9724),n=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,a=s(n,"name"),c=a&&"something"===function(){}.name,h=a&&(!i||i&&o(n,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:h}},1871:(t,e,r)=>{"use strict";var i=r(1907),s=r(2159);t.exports=function(t,e,r){try{return i(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},2361:(t,e,r)=>{"use strict";var i=r(5807),s=r(1907);t.exports=function(t){if("Function"===i(t))return s(t)}},1907:(t,e,r)=>{"use strict";var i=r(1505),s=Function.prototype,n=s.call,o=i&&s.bind.bind(n,n);t.exports=i?o:function(t){return function(){return n.apply(t,arguments)}}},1747:(t,e,r)=>{"use strict";var i=r(5951),s=r(2046);t.exports=function(t,e){var r=s[t+"Prototype"],n=r&&r[e];if(n)return n;var o=i[t],a=o&&o.prototype;return a&&a[e]}},5582:(t,e,r)=>{"use strict";var i=r(2046),s=r(5951),n=r(2250),o=function(t){return n(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t])||o(s[t]):i[t]&&i[t][e]||s[t]&&s[t][e]}},6656:(t,e,r)=>{"use strict";var i=r(1907),s=r(1793),n=r(2250),o=r(5807),a=r(160),c=i([].push);t.exports=function(t){if(n(t))return t;if(s(t)){for(var e=t.length,r=[],i=0;i<e;i++){var h=t[i];"string"==typeof h?c(r,h):"number"!=typeof h&&"Number"!==o(h)&&"String"!==o(h)||c(r,a(h))}var u=r.length,l=!0;return function(t,e){if(l)return l=!1,e;if(s(this))return e;for(var i=0;i<u;i++)if(r[i]===t)return e}}}},9367:(t,e,r)=>{"use strict";var i=r(2159),s=r(7136);t.exports=function(t,e){var r=t[e];return s(r)?void 0:i(r)}},5951:function(t,e,r){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r.g&&r.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9724:(t,e,r)=>{"use strict";var i=r(1907),s=r(9298),n=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return n(s(t),e)}},8530:t=>{"use strict";t.exports={}},2416:(t,e,r)=>{"use strict";var i=r(5582);t.exports=i("document","documentElement")},3648:(t,e,r)=>{"use strict";var i=r(9447),s=r(8828),n=r(9552);t.exports=!i&&!s((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))},6946:(t,e,r)=>{"use strict";var i=r(1907),s=r(8828),n=r(5807),o=Object,a=i("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?a(t,""):o(t)}:o},2647:(t,e,r)=>{"use strict";var i=r(1907),s=r(2250),n=r(6128),o=i(Function.toString);s(n.inspectSource)||(n.inspectSource=function(t){return o(t)}),t.exports=n.inspectSource},4932:(t,e,r)=>{"use strict";var i,s,n,o=r(551),a=r(5951),c=r(6285),h=r(1626),u=r(9724),l=r(6128),d=r(2522),f=r(8530),p="Object already initialized",g=a.TypeError,m=a.WeakMap;if(o||l.state){var v=l.state||(l.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw new g(p);return e.facade=t,v.set(t,e),e},s=function(t){return v.get(t)||{}},n=function(t){return v.has(t)}}else{var _=d("state");f[_]=!0,i=function(t,e){if(u(t,_))throw new g(p);return e.facade=t,h(t,_,e),e},s=function(t){return u(t,_)?t[_]:{}},n=function(t){return u(t,_)}}t.exports={set:i,get:s,has:n,enforce:function(t){return n(t)?s(t):i(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=s(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return r}}}},1793:(t,e,r)=>{"use strict";var i=r(5807);t.exports=Array.isArray||function(t){return"Array"===i(t)}},2250:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},5468:(t,e,r)=>{"use strict";var i=r(1907),s=r(8828),n=r(2250),o=r(3948),a=r(5582),c=r(2647),h=function(){},u=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,d=i(l.exec),f=!l.test(h),p=function(t){if(!n(t))return!1;try{return u(h,[],t),!0}catch(t){return!1}},g=function(t){if(!n(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(l,c(t))}catch(t){return!0}};g.sham=!0,t.exports=!u||s((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?g:p},7463:(t,e,r)=>{"use strict";var i=r(8828),s=r(2250),n=/#|\.prototype\./,o=function(t,e){var r=c[a(t)];return r===u||r!==h&&(s(e)?i(e):!!e)},a=o.normalize=function(t){return String(t).replace(n,".").toLowerCase()},c=o.data={},h=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},7136:t=>{"use strict";t.exports=function(t){return null==t}},6285:(t,e,r)=>{"use strict";var i=r(2250);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},4018:(t,e,r)=>{"use strict";var i=r(6285);t.exports=function(t){return i(t)||null===t}},7376:t=>{"use strict";t.exports=!0},5594:(t,e,r)=>{"use strict";var i=r(5582),s=r(2250),n=r(8280),o=r(1175),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return s(e)&&n(e.prototype,a(t))}},7181:(t,e,r)=>{"use strict";var i=r(5116).IteratorPrototype,s=r(8075),n=r(5817),o=r(4840),a=r(3742),c=function(){return this};t.exports=function(t,e,r,h){var u=e+" Iterator";return t.prototype=s(i,{next:n(+!h,r)}),o(t,u,!1,!0),a[u]=c,t}},183:(t,e,r)=>{"use strict";var i=r(1091),s=r(3930),n=r(7376),o=r(6833),a=r(2250),c=r(7181),h=r(5972),u=r(9192),l=r(4840),d=r(1626),f=r(8055),p=r(6264),g=r(3742),m=r(5116),v=o.PROPER,_=o.CONFIGURABLE,y=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,S=p("iterator"),x="keys",b="values",O="entries",P=function(){return this};t.exports=function(t,e,r,o,p,m,M){c(r,e,o);var R,k,C,I=function(t){if(t===p&&L)return L;if(!w&&t&&t in W)return W[t];switch(t){case x:case b:case O:return function(){return new r(this,t)}}return function(){return new r(this)}},T=e+" Iterator",E=!1,W=t.prototype,F=W[S]||W["@@iterator"]||p&&W[p],L=!w&&F||I(p),D="Array"===e&&W.entries||F;if(D&&(R=h(D.call(new t)))!==Object.prototype&&R.next&&(n||h(R)===y||(u?u(R,y):a(R[S])||f(R,S,P)),l(R,T,!0,!0),n&&(g[T]=P)),v&&p===b&&F&&F.name!==b&&(!n&&_?d(W,"name",b):(E=!0,L=function(){return s(F,this)})),p)if(k={values:I(b),keys:m?L:I(x),entries:I(O)},M)for(C in k)(w||E||!(C in W))&&f(W,C,k[C]);else i({target:e,proto:!0,forced:w||E},k);return n&&!M||W[S]===L||f(W,S,L,{name:p}),g[e]=L,k}},5116:(t,e,r)=>{"use strict";var i,s,n,o=r(8828),a=r(2250),c=r(6285),h=r(8075),u=r(5972),l=r(8055),d=r(6264),f=r(7376),p=d("iterator"),g=!1;[].keys&&("next"in(n=[].keys())?(s=u(u(n)))!==Object.prototype&&(i=s):g=!0),!c(i)||o((function(){var t={};return i[p].call(t)!==t}))?i={}:f&&(i=h(i)),a(i[p])||l(i,p,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},3742:t=>{"use strict";t.exports={}},575:(t,e,r)=>{"use strict";var i=r(3121);t.exports=function(t){return i(t.length)}},1176:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?r:e)(i)}},8075:(t,e,r)=>{"use strict";var i,s=r(6624),n=r(2220),o=r(376),a=r(8530),c=r(2416),h=r(9552),u=r(2522),l="prototype",d="script",f=u("IE_PROTO"),p=function(){},g=function(t){return"<"+d+">"+t+"</"+d+">"},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;v="undefined"!=typeof document?document.domain&&i?m(i):(e=h("iframe"),r="java"+d+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):m(i);for(var s=o.length;s--;)delete v[l][o[s]];return v()};a[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p[l]=s(t),r=new p,p[l]=null,r[f]=t):r=v(),void 0===e?r:n.f(r,e)}},2220:(t,e,r)=>{"use strict";var i=r(9447),s=r(8661),n=r(4284),o=r(6624),a=r(7374),c=r(2875);e.f=i&&!s?Object.defineProperties:function(t,e){o(t);for(var r,i=a(e),s=c(e),h=s.length,u=0;h>u;)n.f(t,r=s[u++],i[r]);return t}},4284:(t,e,r)=>{"use strict";var i=r(9447),s=r(3648),n=r(8661),o=r(6624),a=r(470),c=TypeError,h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",f="writable";e.f=i?n?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&f in r&&!r[f]){var i=u(t,e);i&&i[f]&&(t[e]=r.value,r={configurable:d in r?r[d]:i[d],enumerable:l in r?r[l]:i[l],writable:!1})}return h(t,e,r)}:h:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return h(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},3846:(t,e,r)=>{"use strict";var i=r(9447),s=r(3930),n=r(2574),o=r(5817),a=r(7374),c=r(470),h=r(9724),u=r(3648),l=Object.getOwnPropertyDescriptor;e.f=i?l:function(t,e){if(t=a(t),e=c(e),u)try{return l(t,e)}catch(t){}if(h(t,e))return o(!s(n.f,t,e),t[e])}},5407:(t,e,r)=>{"use strict";var i=r(5807),s=r(7374),n=r(4443).f,o=r(3427),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===i(t)?function(t){try{return n(t)}catch(t){return o(a)}}(t):n(s(t))}},4443:(t,e,r)=>{"use strict";var i=r(3045),s=r(376).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},7170:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},5972:(t,e,r)=>{"use strict";var i=r(9724),s=r(2250),n=r(9298),o=r(2522),a=r(7382),c=o("IE_PROTO"),h=Object,u=h.prototype;t.exports=a?h.getPrototypeOf:function(t){var e=n(t);if(i(e,c))return e[c];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof h?u:null}},8280:(t,e,r)=>{"use strict";var i=r(1907);t.exports=i({}.isPrototypeOf)},3045:(t,e,r)=>{"use strict";var i=r(1907),s=r(9724),n=r(7374),o=r(4436).indexOf,a=r(8530),c=i([].push);t.exports=function(t,e){var r,i=n(t),h=0,u=[];for(r in i)!s(a,r)&&s(i,r)&&c(u,r);for(;e.length>h;)s(i,r=e[h++])&&(~o(u,r)||c(u,r));return u}},2875:(t,e,r)=>{"use strict";var i=r(3045),s=r(376);t.exports=Object.keys||function(t){return i(t,s)}},2574:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);e.f=s?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},9192:(t,e,r)=>{"use strict";var i=r(1871),s=r(6285),n=r(4239),o=r(43);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=i(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),s(r)?(e?t(r,i):r.__proto__=i,r):r}}():void 0)},4878:(t,e,r)=>{"use strict";var i=r(2623),s=r(3948);t.exports=i?{}.toString:function(){return"[object "+s(this)+"]"}},581:(t,e,r)=>{"use strict";var i=r(3930),s=r(2250),n=r(6285),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!n(a=i(r,t)))return a;if(s(r=t.valueOf)&&!n(a=i(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!n(a=i(r,t)))return a;throw new o("Can't convert object to primitive value")}},2046:t=>{"use strict";t.exports={}},4239:(t,e,r)=>{"use strict";var i=r(7136),s=TypeError;t.exports=function(t){if(i(t))throw new s("Can't call method on "+t);return t}},4840:(t,e,r)=>{"use strict";var i=r(2623),s=r(4284).f,n=r(1626),o=r(9724),a=r(4878),c=r(6264)("toStringTag");t.exports=function(t,e,r,h){var u=r?t:t&&t.prototype;u&&(o(u,c)||s(u,c,{configurable:!0,value:e}),h&&!i&&n(u,"toString",a))}},2522:(t,e,r)=>{"use strict";var i=r(5816),s=r(6499),n=i("keys");t.exports=function(t){return n[t]||(n[t]=s(t))}},6128:(t,e,r)=>{"use strict";var i=r(7376),s=r(5951),n=r(2532),o="__core-js_shared__",a=t.exports=s[o]||n(o,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:i?"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:(t,e,r)=>{"use strict";var i=r(6128);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},1470:(t,e,r)=>{"use strict";var i=r(1907),s=r(5482),n=r(160),o=r(4239),a=i("".charAt),c=i("".charCodeAt),h=i("".slice),u=function(t){return function(e,r){var i,u,l=n(o(e)),d=s(r),f=l.length;return d<0||d>=f?t?"":void 0:(i=c(l,d))<55296||i>56319||d+1===f||(u=c(l,d+1))<56320||u>57343?t?a(l,d):i:t?h(l,d,d+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},5819:(t,e,r)=>{"use strict";var i=r(6833).PROPER,s=r(8828),n=r(6395);t.exports=function(t){return s((function(){return!!n[t]()||"
"!=="
"[t]()||i&&n[t].name!==t}))}},5993:(t,e,r)=>{"use strict";var i=r(1907),s=r(4239),n=r(160),o=r(6395),a=i("".replace),c=RegExp("^["+o+"]+"),h=RegExp("(^|[^"+o+"])["+o+"]+$"),u=function(t){return function(e){var r=n(s(e));return 1&t&&(r=a(r,c,"")),2&t&&(r=a(r,h,"$1")),r}};t.exports={start:u(1),end:u(2),trim:u(3)}},9846:(t,e,r)=>{"use strict";var i=r(798),s=r(8828),n=r(5951).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},3467:(t,e,r)=>{"use strict";var i=r(3930),s=r(5582),n=r(6264),o=r(8055);t.exports=function(){var t=s("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,a=n("toPrimitive");e&&!e[a]&&o(e,a,(function(t){return i(r,this)}),{arity:1})}},2595:(t,e,r)=>{"use strict";var i=r(5582),s=r(1907),n=i("Symbol"),o=n.keyFor,a=s(n.prototype.valueOf);t.exports=n.isRegisteredSymbol||function(t){try{return void 0!==o(a(t))}catch(t){return!1}}},9197:(t,e,r)=>{"use strict";for(var i=r(5816),s=r(5582),n=r(1907),o=r(5594),a=r(6264),c=s("Symbol"),h=c.isWellKnownSymbol,u=s("Object","getOwnPropertyNames"),l=n(c.prototype.valueOf),d=i("wks"),f=0,p=u(c),g=p.length;f<g;f++)try{var m=p[f];o(c[m])&&a(m)}catch(t){}t.exports=function(t){if(h&&h(t))return!0;try{for(var e=l(t),r=0,i=u(d),s=i.length;r<s;r++)if(d[i[r]]==e)return!0}catch(t){}return!1}},4411:(t,e,r)=>{"use strict";var i=r(9846);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},4849:(t,e,r)=>{"use strict";var i=r(5482),s=Math.max,n=Math.min;t.exports=function(t,e){var r=i(t);return r<0?s(r+e,0):n(r,e)}},7374:(t,e,r)=>{"use strict";var i=r(6946),s=r(4239);t.exports=function(t){return i(s(t))}},5482:(t,e,r)=>{"use strict";var i=r(1176);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},3121:(t,e,r)=>{"use strict";var i=r(5482),s=Math.min;t.exports=function(t){var e=i(t);return e>0?s(e,9007199254740991):0}},9298:(t,e,r)=>{"use strict";var i=r(4239),s=Object;t.exports=function(t){return s(i(t))}},6028:(t,e,r)=>{"use strict";var i=r(3930),s=r(6285),n=r(5594),o=r(9367),a=r(581),c=r(6264),h=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!s(t)||n(t))return t;var r,c=o(t,u);if(c){if(void 0===e&&(e="default"),r=i(c,t,e),!s(r)||n(r))return r;throw new h("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},470:(t,e,r)=>{"use strict";var i=r(6028),s=r(5594);t.exports=function(t){var e=i(t,"string");return s(e)?e:e+""}},2623:(t,e,r)=>{"use strict";var i={};i[r(6264)("toStringTag")]="z",t.exports="[object z]"===String(i)},160:(t,e,r)=>{"use strict";var i=r(3948),s=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},4640:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6499:(t,e,r)=>{"use strict";var i=r(1907),s=0,n=Math.random(),o=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+n,36)}},1175:(t,e,r)=>{"use strict";var i=r(9846);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8661:(t,e,r)=>{"use strict";var i=r(9447),s=r(8828);t.exports=i&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},551:(t,e,r)=>{"use strict";var i=r(5951),s=r(2250),n=i.WeakMap;t.exports=s(n)&&/native code/.test(String(n))},366:(t,e,r)=>{"use strict";var i=r(2046),s=r(9724),n=r(560),o=r(4284).f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});s(e,t)||o(e,t,{value:n.f(t)})}},560:(t,e,r)=>{"use strict";var i=r(6264);e.f=i},6264:(t,e,r)=>{"use strict";var i=r(5951),s=r(5816),n=r(9724),o=r(6499),a=r(9846),c=r(1175),h=i.Symbol,u=s("wks"),l=c?h.for||h:h&&h.withoutSetter||o;t.exports=function(t){return n(u,t)||(u[t]=a&&n(h,t)?h[t]:l("Symbol."+t)),u[t]}},6395:t=>{"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},8545:(t,e,r)=>{"use strict";var i=r(1091),s=r(8828),n=r(1793),o=r(6285),a=r(9298),c=r(575),h=r(8024),u=r(5543),l=r(6968),d=r(7171),f=r(6264),p=r(798),g=f("isConcatSpreadable"),m=p>=51||!s((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),v=function(t){if(!o(t))return!1;var e=t[g];return void 0!==e?!!e:n(t)};i({target:"Array",proto:!0,arity:1,forced:!m||!d("concat")},{concat:function(t){var e,r,i,s,n,o=a(this),d=l(o,0),f=0;for(e=-1,i=arguments.length;e<i;e++)if(v(n=-1===e?o:arguments[e]))for(s=c(n),h(f+s),r=0;r<s;r++,f++)r in n&&u(d,f,n[r]);else h(f+1),u(d,f++,n);return d.length=f,d}})},9363:(t,e,r)=>{"use strict";var i=r(7374),s=r(2156),n=r(3742),o=r(4932),a=r(4284).f,c=r(183),h=r(9550),u=r(7376),l=r(9447),d="Array Iterator",f=o.set,p=o.getterFor(d);t.exports=c(Array,"Array",(function(t,e){f(this,{type:d,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,h(void 0,!0);switch(t.kind){case"keys":return h(r,!1);case"values":return h(e[r],!1)}return h([r,e[r]],!1)}),"values");var g=n.Arguments=n.Array;if(s("keys"),s("values"),s("entries"),!u&&l&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(t){}},8537:()=>{},9721:(t,e,r)=>{"use strict";var i=r(1091),s=r(5582),n=r(6024),o=r(3930),a=r(1907),c=r(8828),h=r(2250),u=r(5594),l=r(3427),d=r(6656),f=r(9846),p=String,g=s("JSON","stringify"),m=a(/./.exec),v=a("".charAt),_=a("".charCodeAt),y=a("".replace),w=a(1..toString),S=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,b=/^[\uDC00-\uDFFF]$/,O=!f||c((function(){var t=s("Symbol")("stringify detection");return"[null]"!==g([t])||"{}"!==g({a:t})||"{}"!==g(Object(t))})),P=c((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),M=function(t,e){var r=l(arguments),i=d(e);if(h(i)||void 0!==t&&!u(t))return r[1]=function(t,e){if(h(i)&&(e=o(i,this,p(t),e)),!u(e))return e},n(g,null,r)},R=function(t,e,r){var i=v(r,e-1),s=v(r,e+1);return m(x,t)&&!m(b,s)||m(b,t)&&!m(x,i)?"\\u"+w(_(t,0),16):t};g&&i({target:"JSON",stat:!0,arity:3,forced:O||P},{stringify:function(t,e,r){var i=l(arguments),s=n(O?M:g,null,i);return P&&"string"==typeof s?y(s,S,R):s}})},7024:(t,e,r)=>{"use strict";var i=r(5951);r(4840)(i.JSON,"JSON",!0)},8172:()=>{},6750:(t,e,r)=>{"use strict";var i=r(1091),s=r(9447),n=r(4284).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!s},{defineProperty:n})},5264:(t,e,r)=>{"use strict";var i=r(1091),s=r(9846),n=r(8828),o=r(7170),a=r(9298);i({target:"Object",stat:!0,forced:!s||n((function(){o.f(1)}))},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(a(t)):[]}})},3643:()=>{},5205:()=>{},7057:(t,e,r)=>{"use strict";var i=r(1470).charAt,s=r(160),n=r(4932),o=r(183),a=r(9550),c="String Iterator",h=n.set,u=n.getterFor(c);o(String,"String",(function(t){h(this,{type:c,string:s(t),index:0})}),(function(){var t,e=u(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=i(r,s),e.index+=t.length,a(t,!1))}))},727:(t,e,r)=>{"use strict";var i=r(1091),s=r(5993).trim;i({target:"String",proto:!0,forced:r(5819)("trim")},{trim:function(){return s(this)}})},3997:(t,e,r)=>{"use strict";r(366)("asyncIterator")},3674:(t,e,r)=>{"use strict";var i=r(1091),s=r(5951),n=r(3930),o=r(1907),a=r(7376),c=r(9447),h=r(9846),u=r(8828),l=r(9724),d=r(8280),f=r(6624),p=r(7374),g=r(470),m=r(160),v=r(5817),_=r(8075),y=r(2875),w=r(4443),S=r(5407),x=r(7170),b=r(3846),O=r(4284),P=r(2220),M=r(2574),R=r(8055),k=r(9251),C=r(5816),I=r(2522),T=r(8530),E=r(6499),W=r(6264),F=r(560),L=r(366),D=r(3467),A=r(4840),j=r(4932),z=r(726).forEach,N=I("hidden"),V="Symbol",G="prototype",U=j.set,H=j.getterFor(V),B=Object[G],q=s.Symbol,$=q&&q[G],Y=s.RangeError,K=s.TypeError,J=s.QObject,X=b.f,Q=O.f,Z=S.f,tt=M.f,et=o([].push),rt=C("symbols"),it=C("op-symbols"),st=C("wks"),nt=!J||!J[G]||!J[G].findChild,ot=function(t,e,r){var i=X(B,e);i&&delete B[e],Q(t,e,r),i&&t!==B&&Q(B,e,i)},at=c&&u((function(){return 7!==_(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ot:Q,ct=function(t,e){var r=rt[t]=_($);return U(r,{type:V,tag:t,description:e}),c||(r.description=e),r},ht=function(t,e,r){t===B&&ht(it,e,r),f(t);var i=g(e);return f(r),l(rt,i)?(r.enumerable?(l(t,N)&&t[N][i]&&(t[N][i]=!1),r=_(r,{enumerable:v(0,!1)})):(l(t,N)||Q(t,N,v(1,_(null))),t[N][i]=!0),at(t,i,r)):Q(t,i,r)},ut=function(t,e){f(t);var r=p(e),i=y(r).concat(pt(r));return z(i,(function(e){c&&!n(lt,r,e)||ht(t,e,r[e])})),t},lt=function(t){var e=g(t),r=n(tt,this,e);return!(this===B&&l(rt,e)&&!l(it,e))&&(!(r||!l(this,e)||!l(rt,e)||l(this,N)&&this[N][e])||r)},dt=function(t,e){var r=p(t),i=g(e);if(r!==B||!l(rt,i)||l(it,i)){var s=X(r,i);return!s||!l(rt,i)||l(r,N)&&r[N][i]||(s.enumerable=!0),s}},ft=function(t){var e=Z(p(t)),r=[];return z(e,(function(t){l(rt,t)||l(T,t)||et(r,t)})),r},pt=function(t){var e=t===B,r=Z(e?it:p(t)),i=[];return z(r,(function(t){!l(rt,t)||e&&!l(B,t)||et(i,rt[t])})),i};h||(R($=(q=function(){if(d($,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=E(t),r=function(t){var i=void 0===this?s:this;i===B&&n(r,it,t),l(i,N)&&l(i[N],e)&&(i[N][e]=!1);var o=v(1,t);try{at(i,e,o)}catch(t){if(!(t instanceof Y))throw t;ot(i,e,o)}};return c&&nt&&at(B,e,{configurable:!0,set:r}),ct(e,t)})[G],"toString",(function(){return H(this).tag})),R(q,"withoutSetter",(function(t){return ct(E(t),t)})),M.f=lt,O.f=ht,P.f=ut,b.f=dt,w.f=S.f=ft,x.f=pt,F.f=function(t){return ct(W(t),t)},c&&(k($,"description",{configurable:!0,get:function(){return H(this).description}}),a||R(B,"propertyIsEnumerable",lt,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!h,sham:!h},{Symbol:q}),z(y(st),(function(t){L(t)})),i({target:V,stat:!0,forced:!h},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),i({target:"Object",stat:!0,forced:!h,sham:!c},{create:function(t,e){return void 0===e?_(t):ut(_(t),e)},defineProperty:ht,defineProperties:ut,getOwnPropertyDescriptor:dt}),i({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:ft}),D(),A(q,V),T[N]=!0},5084:()=>{},3313:(t,e,r)=>{"use strict";var i=r(1091),s=r(5582),n=r(9724),o=r(160),a=r(5816),c=r(4411),h=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=o(t);if(n(h,e))return h[e];var r=s("Symbol")(e);return h[e]=r,u[r]=e,r}})},2596:(t,e,r)=>{"use strict";r(366)("hasInstance")},5721:(t,e,r)=>{"use strict";r(366)("isConcatSpreadable")},4954:(t,e,r)=>{"use strict";r(366)("iterator")},4452:(t,e,r)=>{"use strict";r(3674),r(3313),r(751),r(9721),r(5264)},751:(t,e,r)=>{"use strict";var i=r(1091),s=r(9724),n=r(5594),o=r(4640),a=r(5816),c=r(4411),h=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!n(t))throw new TypeError(o(t)+" is not a symbol");if(s(h,t))return h[t]}})},3377:(t,e,r)=>{"use strict";r(366)("matchAll")},4123:(t,e,r)=>{"use strict";r(366)("match")},2230:(t,e,r)=>{"use strict";r(366)("replace")},5344:(t,e,r)=>{"use strict";r(366)("search")},1660:(t,e,r)=>{"use strict";r(366)("species")},4610:(t,e,r)=>{"use strict";r(366)("split")},3669:(t,e,r)=>{"use strict";var i=r(366),s=r(3467);i("toPrimitive"),s()},4810:(t,e,r)=>{"use strict";var i=r(5582),s=r(366),n=r(4840);s("toStringTag"),n(i("Symbol"),"Symbol")},3325:(t,e,r)=>{"use strict";r(366)("unscopables")},768:(t,e,r)=>{"use strict";var i=r(6264),s=r(4284).f,n=i("metadata"),o=Function.prototype;void 0===o[n]&&s(o,n,{value:null})},8549:(t,e,r)=>{"use strict";r(366)("asyncDispose")},1697:(t,e,r)=>{"use strict";r(366)("customMatcher")},7152:(t,e,r)=>{"use strict";r(366)("dispose")},3939:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0},{isRegisteredSymbol:r(2595)})},3422:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r(2595)})},1785:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(9197)})},36:(t,e,r)=>{"use strict";r(1091)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(9197)})},8703:(t,e,r)=>{"use strict";r(366)("matcher")},6878:(t,e,r)=>{"use strict";r(366)("metadataKey")},1372:(t,e,r)=>{"use strict";r(366)("metadata")},4664:(t,e,r)=>{"use strict";r(366)("observable")},9671:(t,e,r)=>{"use strict";r(366)("patternMatch")},359:(t,e,r)=>{"use strict";r(366)("replaceAll")},2560:(t,e,r)=>{"use strict";r(9363);var i=r(9287),s=r(5951),n=r(4840),o=r(3742);for(var a in i)n(s[a],a),o[a]=o.Array},4598:(t,e,r)=>{"use strict";var i=r(1042);t.exports=i},8251:(t,e,r)=>{"use strict";var i=r(1926);t.exports=i},4139:(t,e,r)=>{"use strict";var i=r(3842);r(2560),t.exports=i},7045:(t,e,r)=>{"use strict";var i=r(1730);r(2560),t.exports=i},70:(t,e,r)=>{"use strict";var i=r(1661);t.exports=i}},e={};function r(i){var s=e[i];if(void 0!==s)return s.exports;var n=e[i]={exports:{}};return t[i].call(n.exports,n,n.exports,r),n.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";let t;const e=()=>t,i=function(t,r=""){if(t)return;const i=new Error(r);e().tracing.Log_Error(`Assert: ${r}`,i)},s=function(t){const r=new Error(t);e().tracing.Log_Error(`AssertWithFailed: ${t}`,r)};class n{constructor(t=0){this._unusedIds=[],this._nextId=t}generateNextId(){let t;return this._unusedIds.length>0?t=this._unusedIds.shift():(t=this._nextId,this._nextId+=1),t}release(t){this._unusedIds.push(t)}}class o{constructor(t){this._onmessage=null,this._messager=t}set onmessage(t){var e,r;null!==this._onmessage&&this._messager.removeEventListener("message",this._onmessage),this._messager.addEventListener("message",t),null===this._onmessage&&(null===(r=(e=this._messager).start)||void 0===r||r.call(e)),this._onmessage=t}postMessage(t,e){this._messager.postMessage(t,e)}close(){var t,e;null!==this._onmessage&&(this._messager.removeEventListener("message",this._onmessage),this._onmessage=null),null===(e=(t=this._messager).close)||void 0===e||e.call(t)}}class a{constructor(){this._connection=null}set connection(t){this._connection=t}get connection(){return i(null!==this._connection),this._connection}}class c{constructor(t,e,r,i){this._idGenerator=new n(2),this._invokeHandlers={},this._invokeResults=new Set,this._resolveInvokeResultsSended=null,this._responseHandlers=new Map,this._notifyHandlers={},this._transferObjs=[],this._closed=!1,this._onClose=null,this._messager=new o(t),this._messager.onmessage=this._handleMessage.bind(this),this._logErrorFn=i,e&&(this.localPeerObject=e),r&&(this._proxyFuncs=r);const s=new Promise((t=>{this._resolveCloseSent=t})),a=new Promise((t=>{this._resolveCloseReceived=t}));Promise.all([s,a]).then((()=>{this._messager.close(),this._messager=null}))}set localPeerObject(t){let e;if(this._invokeHandlers={},t instanceof a){const r=Object.getPrototypeOf(t);e=Object.getOwnPropertyNames(r)}else e=Object.getOwnPropertyNames(t);const r=e.filter((e=>"function"==typeof t[e]&&"constructor"!==e&&!e.startsWith("_")));for(const e of r)this.expose(e,((...r)=>t[e](...r)));this._localPeerObject=t,t instanceof a&&(t.connection=this)}get localPeerObject(){return this._localPeerObject}get remotePeerProxy(){if(this._remotePeerProxy)return this._remotePeerProxy;const t=new Map;return this._remotePeerProxy=new Proxy({},{get:(e,r,i)=>{var s;let n=null===(s=this._proxyFuncs)||void 0===s?void 0:s[r];return n||(n=t.get(r),n||(n=(...t)=>this.invoke(r,...t),t.set(r,n),n))}}),this._remotePeerProxy}_logError(t,r){this._logErrorFn?this._logErrorFn(t,r):e().tracing.Log_Error(t,r)}transfer(t){return this._transferObjs.push(t),t}expose(t,e){this._invokeHandlers[t]=e}on(t,e){this._notifyHandlers[t]=e}notify(t,...e){this._postRequest(1,t,e)}invoke(t,...e){const r=this._idGenerator.generateNextId(),i=new Promise(((t,e)=>{this._responseHandlers.set(r,{resolve:t,reject:e})}));return this._postRequest(r,t,e),i}_postRequest(t,r,i){if(this._closed)throw new Error("Can not postRequest after closed!!");try{this._messager.postMessage({id:t,name:r,args:i},this._transferObjs)}catch(t){e().tracing.Log_Error("[rpc] Error in postRequest",t)}this._transferObjs=[]}_postReponse(t,e){if(this._closed)throw new Error("Can not postReponse after closed!!");this._messager.postMessage({id:0,resId:t,response:e},this._transferObjs),this._transferObjs=[]}_serializeError(t){return t instanceof Error?{message:t.message,name:t.name,stack:t.stack}:t}_handleMessage(t){const e=t.data;if("id"in e)try{if(e.id<0)-1===e.id?(this._closePeerIfNeeded(e.reason),this._resolveCloseReceived()):s();else{if(0===e.id){const t=this._responseHandlers.get(e.resId);if(!t)return void this._logError(`DualRPC.handleMessage: ${e.resId} not found!`);const r=e.response;return"ret"in r?t.resolve(r.ret):"err"in r?(t.reject(r.err),this._logError(`DualRPC.handleMessage err: ${r.err}`)):s("Invalid Response"),this._responseHandlers.delete(e.resId),void this._idGenerator.release(e.resId)}if(1===e.id){try{const t=this._notifyHandlers[e.name];t&&t(...e.args)}catch(t){}return}{if(i(e.id>1),!(e.name in this._invokeHandlers))return void this._logError(`DualRPC.handleMessage: ${e.name} not registered!`);let t,r;try{const r=this._invokeHandlers[e.name];t=r(...e.args)}catch(t){r=t}if(r)return void this._postReponse(e.id,{err:this._serializeError(r)});if(!(t instanceof Promise)){try{this._postReponse(e.id,{ret:t})}catch(t){this._postReponse(e.id,{err:this._serializeError(t)})}return}this._invokeResults.add(t),t.then((t=>{this._postReponse(e.id,{ret:t})})).catch((t=>{this._postReponse(e.id,{err:this._serializeError(t)})})).finally((()=>{this._invokeResults.delete(t),this._resolveInvokeResultsSended&&0===this._invokeResults.size&&this._resolveInvokeResultsSended()}))}}}catch(t){this._logError("DualRPC.handleMessage err!!",t)}}_closePeerIfNeeded(t){this._closed||(this._closed=!0,this._onClose&&this._onClose(t),0===this._invokeResults.size?(this._messager.postMessage({id:-1,reason:t},[]),setTimeout((()=>{this._resolveCloseSent()}),10)):new Promise((t=>{this._resolveInvokeResultsSended=t})).then((()=>{this._messager.postMessage({id:-1,reason:t},[])})).then((()=>{setTimeout((()=>{this._resolveCloseSent()}),10)})))}close(t){this._closePeerIfNeeded(t)}set onClose(t){this._onClose=t}}class h extends a{}const u=new class{constructor(){this._connection=null}setRegistryServicePort(t){this._connection=new c(t)}transfer(t){return this._connection.transfer(t)}registerService(t,e,r){return this._connection.invoke("registerService",t,e,r)}unregisterService(t,e){this._connection.invoke("unregisterService",t,e)}findService(t){return this._connection.invoke("findService",t)}requestService(t,e,r){return this._connection.invoke("requestService",t,e,r)}acquireService(t,e){return r=this,i=void 0,o=function*(){const r=yield u.findService(t);let i;e&&e.selectService?i=e.selectService(r):1===r.length?i=r[0].serviceId:s("AcquireService Error: select service failed!");const n=yield u.requestService(t,i,e?e.serviceParams:void 0);return new c(n)},new((n=void 0)||(n=Promise))((function(t,e){function s(t){try{c(o.next(t))}catch(t){e(t)}}function a(t){try{c(o.throw(t))}catch(t){e(t)}}function c(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(s,a)}c((o=o.apply(r,i||[])).next())}));var r,i,n,o}};class l{constructor(t,e){this._connection=null,this._services=[],this._registerPromise=null,this._serviceName=t,this._serviceCtor=e}register(t){if(null!==this._registerPromise)return;const e=new MessageChannel;this._connection=new c(e.port1,{requestPort:t=>{const e=this.accquirePort(t);return this._connection.transfer(e)}}),this._registerPromise=u.registerService(this._serviceName,u.transfer(e.port2),t)}unregister(){if(null===this._registerPromise)return;const t=this._connection;this._registerPromise.then((e=>{u.unregisterService(this._serviceName,e),t.close()})),this._connection=null,this._registerPromise=null}registerPromise(){return t=this,e=void 0,i=function*(){return this._registerPromise.then((t=>t>=0))},new((r=void 0)||(r=Promise))((function(s,n){function o(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}));var t,e,r,i}accquirePort(t){const e=new MessageChannel,r=new this._serviceCtor(t);return new c(e.port1,r).onClose=()=>{this._services.splice(this._services.indexOf(r),1),r.closeService()},this._services.push(r),e.port2}close(){this.unregister();for(const t of this._services)t.closeService(),t.connection.close();this._services=[]}}const d=class{_drawWatermarkWithShadow(t){let{ctx:e,textPos:r,opacity:i,name:s}=t;e.fillStyle="rgba(0, 0, 0, ".concat(i,")"),e.fillText(s,r.x,r.y),e.fillStyle="rgba(255, 255, 255, ".concat(i,")"),e.fillText(s,r.x+1,r.y+1)}_getTransformInfo(t){let e,{canvas:r,position:i}=t;if(1===i)e={x:r.width/2,y:0,rateRadio:0,maxWidth:r.width};else if(2===i)e={x:r.width/2,y:r.height,rateRadio:0,maxWidth:r.width};else if(4===i)e={x:0,y:r.height/2,rateRadio:Math.PI/2,maxWidth:r.height};else if(8===i)e={x:r.width,y:r.height/2,rateRadio:-Math.PI/2,maxWidth:r.height};else{const t=-21*Math.PI/180;e={x:r.width/2,y:r.height/2,rateRadio:t,maxWidth:Math.min(r.width/Math.cos(t),-r.height/Math.sin(t))}}return e.maxWidth>100&&(e.maxWidth-=50),e}_calcTextPos(t){let{position:e,ctx:r,name:i,textWidth:s}=t;const n=this._getPaddingWidth({ctx:r,position:e,name:i});return 1===e?{x:-s.width/2,y:n}:2===e||4===e||8===e?{x:-s.width/2,y:-n}:{x:-s.width/2,y:r.measureText(i[0]).width/2}}_getPaddingWidth(t){let{ctx:e,position:r,name:i}=t;return[1,2,4,8].includes(r)?32:e.measureText(i[0]).width}_setBaseLine(t){let{ctx:e,position:r}=t;e.textBaseline=1===r?"top":2===r||4===r||8===r?"bottom":"middle"}Get_WaterMarkRGBA(t){let{canvas:e,name:r,width:i,height:s,opacity:n=.15,position:o,convertToDataUrl:a=!1,transferToImage:c=!1}=t;if(!r||!i||!s)return;n=n||.15,i*=1,s*=1,e.width=i,e.height=s;let h=this._getTransformInfo({canvas:e,position:o});var u=e.getContext("2d");let l;if(u.clearRect(0,0,e.width,e.height),u.translate(h.x,h.y),u.rotate(h.rateRadio),this._setBaseLine({ctx:u,position:o}),u.lineWidth=1,u.imageSmoothingEnabled=!0,1==r.length){const t=h.maxWidth/r.length;u.font=t+"px 'Segoe UI'",l=u.measureText(r)}else{let t=16;for(u.font=t+"px 'Segoe UI'",l=u.measureText(r);l.width<h.maxWidth-2*this._getPaddingWidth({ctx:u,position:o,name:r});)t+=1,u.font=t+"px 'Segoe UI'",l=u.measureText(r);if(l.width>h.maxWidth-2*this._getPaddingWidth({ctx:u,position:o,name:r}))if(t>16)t-=1,u.font=t+"px 'Segoe UI'",l=u.measureText(r);else{const t=r;for(;r.length>5&&l.width>h.maxWidth-2*this._getPaddingWidth({ctx:u,position:o,name:r+"..."});)r=r.slice(0,r.length-1),l=u.measureText(r+"...");t!==r&&(r+="...")}}const d=this._calcTextPos({position:o,ctx:u,name:r,textWidth:l});var f;if(this._drawWatermarkWithShadow({ctx:u,name:r,opacity:n,textPos:d}),a)f=e.toDataURL();else if(c)f=e.transferToImageBitmap();else{var p=u.getImageData(0,0,u.canvas.width,u.canvas.height);f=new Uint8Array(p.data.buffer)}return u.rotate(-h.rateRadio),u.translate(-h.x,-h.y),f}Get_Repeated_WaterMarkRGBA(t){let{canvas:e,name:r,width:i,height:s,opacity:n=.15,position:o,convertToDataUrl:a=!1,transferToImage:c=!1}=t;if(!r||!i||!s)return;n=n||.15,i*=1,s*=1,e.width=i,e.height=s;const h=e.getContext("2d");h.clearRect(0,0,e.width,e.height),h.translate(i/2,s/2),h.rotate(-21*Math.PI/180),h.imageSmoothingEnabled=!0,h.font="".concat(32,"px 'Segoe UI'"),h.textBaseline="top";const u=h.measureText(r),l=.37*u.width;let d,f=0,p=-s;do{let t=f%2==0?l-i:-i;do{h.fillStyle="rgba(0, 0, 0, ".concat(n,")"),h.fillText(r,t,p),h.fillStyle="rgba(255, 255, 255, ".concat(n,")"),h.fillText(r,t+1,p+1),t+=u.width+l}while(t<i);p+=32+l,f++}while(p<s);if(a)d=e.toDataURL();else if(c)d=e.transferToImageBitmap();else{const t=h.getImageData(0,0,h.canvas.width,h.canvas.height);d=new Uint8Array(t.data.buffer)}return h.rotate(21*Math.PI/180),h.translate(-i/2,-s/2),d}};var f=r(4997),p=r(2321),g=r(2231);function m(t){return m="function"==typeof p&&"symbol"==typeof g?function(t){return typeof t}:function(t){return t&&"function"==typeof p&&t.constructor===p&&t!==p.prototype?"symbol":typeof t},m(t)}var v=r(9280);function _(t,e,r){return(e=function(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[v];if(void 0!==e){var r=e.call(t,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}(e))in t?f(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const y=new class{constructor(){_(this,"_platformDesc",{supportGraphicsAcceleration:!1,supportVideoFrame:!1,supportMediaStreamTrackGenerator:!1,supportTransferableStream:!1,supportDrawWatermark:!1,supportVideoFrameInWorker:!1,supportVideoTrackGeneratorInWorker:!1,supportOffscreenCanvasInWorker:!1,supportImageBitmapRenderingInWorker:!1,supportTransferableTrackAcrossWork:!1,supportsRequestAnimationFrameInWork:!1}),_(this,"_inferedDesc",{supportVideoTagRenderer:!1}),_(this,"_analyzing_promise",null),_(this,"_main_analyzed",!1),_(this,"_remote_analyzed",!1),_(this,"_analyzedPromise",void 0),_(this,"_resolveAnalyzedPromise",void 0),this._analyzedPromise=new Promise(((t,e)=>{this._resolveAnalyzedPromise=t}))}init(t){this._platformDesc=t.platform,this._inferedDesc=t.infered,this._main_analyzed=!0,this._remote_analyzed=!0,this._resolveAnalyzedPromise(this._remote_analyzed)}desc(){return{platform:this._platformDesc,infered:this._inferedDesc}}analyzed(){return this._remote_analyzed}analyzedPromise(){return this._analyzedPromise}_analyzeInferredCapabilites(){this._inferedDesc.supportVideoTagRenderer=this._platformDesc.supportVideoFrame&&this._platformDesc.supportVideoFrameInWorker&&(!0===this._platformDesc.supportMediaStreamTrackGenerator&&!0===this._platformDesc.supportTransferableStream||!0===this._platformDesc.supportVideoTrackGeneratorInWorker)}analyze(t){if(this._analyzing_promise)return this._analyzing_promise;const e=t.analyzeMainCapabilites();return Object.assign(this._platformDesc,e),this._main_analyzed=!0,this._analyzing_promise=new Promise(((e,r)=>{t.analyzeRemoteCapabilities().then((t=>{Object.assign(this._platformDesc,t),this._analyzeInferredCapabilites(),this._remote_analyzed=!0,this._resolveAnalyzedPromise(this._remote_analyzed),e(!0)})).catch((t=>{this._resolveAnalyzedPromise(this._remote_analyzed),e(!1)}))})),this._analyzing_promise}supportGraphicsAcceleration(){return i(this._main_analyzed),this._platformDesc.supportGraphicsAcceleration}supportTransferableStream(){return i(this._main_analyzed),this._platformDesc.supportTransferableStream}supportDrawWatermark(){return i(this._main_analyzed),this._platformDesc.supportDrawWatermark}supportVideoTagRenderer(){return!!this._remote_analyzed&&this._inferedDesc.supportVideoTagRenderer}supportMediaStreamTrackGenerator(){return i(this._main_analyzed),this._platformDesc.supportMediaStreamTrackGenerator}supportVideoTrackGeneratorInWorker(){return!!this._remote_analyzed&&this._platformDesc.supportVideoTrackGeneratorInWorker}supportTransferableTrackAcrossWork(){return!!this._remote_analyzed&&this._platformDesc.supportTransferableTrackAcrossWork}supportsRequestAnimationFrameInWork(){return!!this._remote_analyzed&&this._platformDesc.supportsRequestAnimationFrameInWork}supportMediaStreamTrackProcessor(){return!!this._remote_analyzed&&this._platformDesc.supportMediaStreamTrackProcessor}};var w=r(1265),S=r.n(w);const x=new class{constructor(){_(this,"_info",void 0),this._info={browser:{brand:"",version:"",isBlink:!1,isWebkit:!1},sysinfo:{osType:"",os:"",osVersion:""},gpuinfo:{vendor:"",renderInfo:"",isAstcSupported:!1,isWebGLContextInvalid:!1},browserVersionInfo:{ie:"",edge:"",firefox:"",opera:"",chrome:"",safari:""},isLowerPerformanceDevice:!1,isSwiftShader:!1,isMacIntelSafari:!1},this._derived={gpuArchitecture:"unknown",normalizedOS:"",normalizedBrowser:""},this._updateDerivedInfo()}init(t){this._info=t,this._updateDerivedInfo()}info(){return this._info}browserInfo(){return this._info.browser}browserVersionInfo(){return this._info.browserVersionInfo}browserName(){var t;return null===(t=this._info.browser.brand)||void 0===t?void 0:t.toLocaleLowerCase()}isChrome(){var t;return"chrome"===(null===(t=this._info.browser.brand)||void 0===t?void 0:t.toLocaleLowerCase())}isSafari(){var t;return"safari"===(null===(t=this._info.browser.brand)||void 0===t?void 0:t.toLocaleLowerCase())}isFirefox(){var t;return"firefox"===(null===(t=this._info.browser.brand)||void 0===t?void 0:t.toLocaleLowerCase())}isEdge(){var t;return"edge"===(null===(t=this._info.browser.brand)||void 0===t?void 0:t.toLocaleLowerCase())}isBlink(){return this._info.browser.isBlink}isWebkit(){return this._info.browser.isWebkit}isLowerPerformanceDevice(){return!!this._info.isLowerPerformanceDevice}_updateDerivedInfo(){this._derived.normalizedOS=this._computeNormalizedOS(),this._derived.normalizedBrowser=this._computeNormalizedBrowser(),this._derived.gpuArchitecture=this._computeGPUArchitecture()}_computeGPUArchitecture(){var t,e;const r=(null===(t=this._info.gpuinfo)||void 0===t?void 0:t.vendor)||"",i=(null===(e=this._info.gpuinfo)||void 0===e?void 0:e.renderInfo)||"",s=r.toLowerCase(),n=i.toLowerCase(),o=t=>s.includes(t)||n.includes(t);if(this.isSafari())return this._info.isMacIntelSafari?"intel":"apple";if(o("intel"))return"intel";if(o("nvidia")||o("geforce"))return"nvidia";if(o("amd")||o("radeon")||o("ati"))return"amd";if(o("apple")||o("m1")||o("m2")||o("m3"))return"apple";if(o("qualcomm")||o("adreno"))return"qualcomm";if(o("mediatek")||o("mtk"))return"mediatek";if(o("mali"))return"mali";if(o("arm"))return"arm";if(s){var a;const t=S()(a=s.replace(/[^a-z0-9]+/g," ")).call(a).split(" ")[0];if(t)return t.toLowerCase()}return"unknown"}_computeNormalizedOS(){var t;const e=(null===(t=this._info.sysinfo)||void 0===t||null===(t=t.os)||void 0===t?void 0:t.toLowerCase())||"";return"ios"===e?"ios":e.includes("android")?"android":e.includes("chrome os")||e.includes("chromium os")?"chromeos":e.includes("mac")?"mac":e.includes("win")?"win":e.includes("linux")?"linux":e}_computeNormalizedBrowser(){var t,e;return(null===(t=this._info.browser)||void 0===t||null===(t=t.brand)||void 0===t||null===(e=t.toLocaleLowerCase)||void 0===e?void 0:e.call(t))||""}isOnWhitelist(t){if(!Array.isArray(t)||0===t.length)return!1;const e=this._derived.gpuArchitecture,r=this._derived.normalizedOS,i=this._derived.normalizedBrowser,s=!!this._info.isLowerPerformanceDevice,n=!!this._info.isSwiftShader;return t.some((t=>{var o;if("string"!=typeof t)return!1;const a=S()(t).call(t).toLowerCase();if("low-device"===a)return s;if("swift-shader"===a)return n;const[c,h,u]=a.split("/");if(!c||!h)return!1;const l=S()(c).call(c),d=S()(h).call(h),f=S()(o=u||"").call(o);return!(l&&l!==e||d&&!r.includes(d)&&!d.includes(r)||f&&f!==i)}))}},b={NO_CONFIG:0,FALLBACK_TO_TAG_RENDERER_ON_CHROME:1,FALLBACK_TO_TAG_RENDERER_ON_SAFARI:2,FALLBACK_TO_TAG_RENDERER_ON_FIREFOX:4,LOWER_PERFORMANCE_DEVICE:8},O={NO_CONFIG:0,TAG_RENDERER_ON_CHROME:1,TAG_RENDERER_ON_SAFARI:2,TAG_RENDERER_ON_FIREFOX:4},P=new class{constructor(){_(this,"_desc",{blockConfig:void 0,defaultRendererType:1,isEnableCanvasCtxOptionsOpt:!1,isEnableFallbackToTagRender:!1,isEnableWasmTagRenderer:!1,safariYuvPaddingFixVer:void 0,chromeYuvLeftTopPaddingFixVer:void 0,disableVideoTagOnEdge:void 0,preferredUseSsrcStream:void 0,canUseSsrcStream:void 0,isUseSsrcStream:!1,shouldCropWasmFrameOnPosMismatch:void 0,shouldCropWasmFrameOnSizeMismatchOnly:void 0,avStreamMode:void 0,baseScriptUrl:"",cssPixelScale:1,isVideoHasWaterMark:!1,isSharingHasWaterMark:!1,videoWatermarkInfo:void 0,sharingWatermarkInfo:void 0}),_(this,"_configDone",!1),_(this,"_configDonePromise",void 0),_(this,"_resolveConfigDonePromise",void 0),this._configDonePromise=new Promise(((t,e)=>{this._resolveConfigDonePromise=t}))}_tryResetDerivedConfigIfNeeded(){this._configDone&&(this._desc.canUseSsrcStream=void 0,this._desc.shouldCropWasmFrameOnPosMismatch=void 0,this._desc.shouldCropWasmFrameOnSizeMismatchOnly=void 0)}init(t){this._desc=t,this._configDone=!0}setBlockConfig(t){if(!t)return;this._desc.blockConfig=t;const e=t.safariYuvPaddingFixVer;e&&this.setSafariYuvPaddingFixVer(e);const r=t.chromeYuvLeftTopPaddingFixVer;r&&this.setChromeYuvLeftTopPaddingFixVer(r);const i=t.disableVideoTagOnEdge;"true"===i&&this.setDisableVideoTagOnEdge(i)}configDone(){return this._configDone}configDonePromise(){return this._configDonePromise}markConfigDone(){this._configDone=!0,this._resolveConfigDonePromise(!0)}desc(){return this._desc}preferredUseSsrcStream(){var t;return void 0!==this._desc.preferredUseSsrcStream?!!this._desc.preferredUseSsrcStream:this.canUseSsrcStream()?(this._desc.preferredUseSsrcStream=x.isOnWhitelist((null===(t=this._desc.blockConfig)||void 0===t?void 0:t.SsrcStreamPreferredWhitelist)||[]),this._desc.preferredUseSsrcStream):(this._desc.preferredUseSsrcStream=!1,!1)}defaultRendererType(){return this._desc.defaultRendererType}setDefaultRendererType(t){this._desc.defaultRendererType=t,this._tryResetDerivedConfigIfNeeded()}isEnableCanvasCtxOptionsOpt(){return this._desc.isEnableCanvasCtxOptionsOpt}setIsEnableCanvasCtxOptionsOpt(t){this._desc.isEnableCanvasCtxOptionsOpt=t,this._tryResetDerivedConfigIfNeeded()}isEnableWasmTagRenderer(){return this._desc.isEnableWasmTagRenderer}setWasmTagRendererFlags(t){let e=!1;x.isBlink()?(e=!!(t&O.TAG_RENDERER_ON_CHROME),x.isEdge()&&this._desc.disableVideoTagOnEdge&&(e=!1)):x.isWebkit()?e=!!(t&O.TAG_RENDERER_ON_SAFARI):x.isFirefox()&&(e=!!(t&O.TAG_RENDERER_ON_FIREFOX)),this._desc.isEnableWasmTagRenderer=e,this._tryResetDerivedConfigIfNeeded()}isEnableFallbackToTagRender(){return this._desc.isEnableFallbackToTagRender}setFallbackToTagRenderFlags(t){let e=!1;x.isBlink()?e=!!(t&b.FALLBACK_TO_TAG_RENDERER_ON_CHROME):x.isWebkit()?e=!!(t&b.FALLBACK_TO_TAG_RENDERER_ON_SAFARI):x.isFirefox()&&(e=!!(t&b.FALLBACK_TO_TAG_RENDERER_ON_FIREFOX)),e||x.isLowerPerformanceDevice()&&(e=!!(t&b.LOWER_PERFORMANCE_DEVICE)),this._desc.isEnableFallbackToTagRender=e,this._tryResetDerivedConfigIfNeeded()}canUseSsrcStream(){return!!this._configDone&&(void 0!==this._desc.canUseSsrcStream?this._desc.canUseSsrcStream:y.supportVideoTagRenderer()?y.supportGraphicsAcceleration()&&!x.isLowerPerformanceDevice()||!this.isEnableFallbackToTagRender()?this.isEnableWasmTagRenderer()?(this._desc.canUseSsrcStream=!0,this._desc.canUseSsrcStream):(this._desc.canUseSsrcStream=!1,!1):(this._desc.canUseSsrcStream=!0,this._desc.canUseSsrcStream):(this._desc.canUseSsrcStream=!1,!1))}isUseSsrcStream(){return this._desc.isUseSsrcStream}setIsUseSsrcStream(t){this._desc.isUseSsrcStream=t}setSafariYuvPaddingFixVer(t){"[object String]"===Object.prototype.toString.call(t)&&(this._desc.safariYuvPaddingFixVer=t)}setChromeYuvLeftTopPaddingFixVer(t){"[object String]"===Object.prototype.toString.call(t)&&(this._desc.chromeYuvLeftTopPaddingFixVer=t)}setDisableVideoTagOnEdge(t){this._desc.disableVideoTagOnEdge=t}_versionGreaterThan(t,e){const r=e.toString().split("."),i=t.toString().split("."),s=r.length,n=i.length,o=Math.min(s,n);for(let t=0;t<o;t++){const e=parseInt(r[t],10),s=parseInt(i[t],10);if(e!==s)return s>e}return n>=s}_logWasmFrameOnPosMismatch(t){e().tracing.Log_DT("[vtagq] WasmFrameOnPosMismatch: ".concat(t?"Crop":"No Crop"))}shouldCropWasmFrameOnPosMismatch(){return!!this._configDone&&(void 0!==this._desc.shouldCropWasmFrameOnPosMismatch?this._desc.shouldCropWasmFrameOnPosMismatch:this.isUseSsrcStream()?(this._desc.shouldCropWasmFrameOnPosMismatch=!0,x.isChrome()?this._desc.chromeYuvLeftTopPaddingFixVer&&this._versionGreaterThan(x.browserVersionInfo().chrome,this._desc.chromeYuvLeftTopPaddingFixVer)&&(this._desc.shouldCropWasmFrameOnPosMismatch=!1):x.isSafari()&&this._desc.safariYuvPaddingFixVer&&this._versionGreaterThan(x.browserVersionInfo().safari,this._desc.safariYuvPaddingFixVer)&&(this._desc.shouldCropWasmFrameOnPosMismatch=!1),this._logWasmFrameOnPosMismatch(this._desc.shouldCropWasmFrameOnPosMismatch),this._desc.shouldCropWasmFrameOnPosMismatch):(this._desc.shouldCropWasmFrameOnPosMismatch=!1,this._logWasmFrameOnPosMismatch(!1),!1))}_logWasmFrameOnSizeMismatch(t){e().tracing.Log_DT("[vtagq] WasmFrameOnSizeMismatch: ".concat(t?"Crop":"No Crop"))}shouldCropWasmFrameOnSizeMismatchOnly(){return!!this._configDone&&(void 0!==this._desc.shouldCropWasmFrameOnSizeMismatchOnly?this._desc.shouldCropWasmFrameOnSizeMismatchOnly:this.isUseSsrcStream()&&x.isWebkit()?(x.isSafari()&&this._desc.safariYuvPaddingFixVer&&this._versionGreaterThan(x.browserVersionInfo().safari,this._desc.safariYuvPaddingFixVer)?this._desc.shouldCropWasmFrameOnSizeMismatchOnly=!1:this._desc.shouldCropWasmFrameOnSizeMismatchOnly=!0,this._logWasmFrameOnSizeMismatch(this._desc.shouldCropWasmFrameOnSizeMismatchOnly),this._desc.shouldCropWasmFrameOnSizeMismatchOnly):(this._desc.shouldCropWasmFrameOnSizeMismatchOnly=!1,this._logWasmFrameOnSizeMismatch(!1),!1))}shouldCropWasmFrame(t,e,r){return!!this._configDone&&(t!=r.width||e!=r.height)&&(P.shouldCropWasmFrameOnSizeMismatchOnly()||P.shouldCropWasmFrameOnPosMismatch()&&(0!=r.x||0!=r.y))}getAVStreamMode(){return this._configDone?(void 0!==this._desc.avStreamMode||(y.supportTransferableStream()?this._desc.avStreamMode="writable-stream":y.supportTransferableTrackAcrossWork()?this._desc.avStreamMode="track":this._desc.avStreamMode="none"),this._desc.avStreamMode):"none"}getBaseScriptUrl(){return this._desc.baseScriptUrl}setBaseScriptUrl(t){this._desc.baseScriptUrl=t}getCssPixelScale(){return this._desc.cssPixelScale}setCssPixelScale(t){this._desc.cssPixelScale=t}isVideoHasWaterMark(){return this._desc.isVideoHasWaterMark}setIsVideoHasWaterMark(t){this._desc.isVideoHasWaterMark=t,this._tryResetDerivedConfigIfNeeded()}isSharingHasWaterMark(){return this._desc.isSharingHasWaterMark}setIsSharingHasWaterMark(t){this._desc.isSharingHasWaterMark=t,this._tryResetDerivedConfigIfNeeded()}getVideoWatermarkInfo(){return this._desc.videoWatermarkInfo}setVideoWatermarkInfo(t){this._desc.videoWatermarkInfo=t}getSharingWatermarkInfo(){return this._desc.sharingWatermarkInfo}setSharingWatermarkInfo(t){this._desc.sharingWatermarkInfo=t}},M="MEDIASDK_CACHE_INFO",R=new class{constructor(){this._highFrequencyLogs={},this.fixVersion="",this.cacheLogStack=[],this.isFlushing=!1}setInstance(t,e){this._instance=t,this.fixVersion=e}getMessageFromErrorOrEvent(t,e){let r=t;return e instanceof ErrorEvent?(e.filename&&(r+=` File: ${e.filename}`),(e.lineno||e.colno)&&(r+=` Line: ${e.lineno}:${e.colno}`),e.message&&(r+=` Message: ${e.message}`),e.error&&(r+=`\nStack: ${e.error.stack}`)):e instanceof Error?(e.message&&(r+=` Message: ${e.message}`),e.stack&&(r+=` Stack: ${e.stack}`),e.name&&(r+=` Name: ${e.name}`),e.constraint&&(r+=` Constraint: ${e.constraint}`)):e instanceof CloseEvent?(e.code&&(r+=` Code: ${e.code}`),e.reason&&(r+=` Reason: ${e.reason}`),r+=` wasClean: ${e.wasClean}`):e instanceof DOMException?(e.message&&(r+=` Message: ${e.message}`),e.name&&(r+=` Name: ${e.name}`)):r+=e?e.toString():"",r}_addCacheLog(t,e){this.cacheLogStack.length<100&&this.cacheLogStack.push({type:t,message:e})}flushCacheLog(){if(this._instance&&this.cacheLogStack.length>0&&!this.isFlushing){this.isFlushing=!0;let t="";this.cacheLogStack.forEach((e=>{let{type:r,message:{message:i="",tags:s=[]}}=e;const n=i?`${s.join("|")}:${i}|----|`:"";switch(r){case"log":this._log(i,[...s,M]);break;case"warn":case"error":case"severityerror":case"directReport":t+=n}})),t&&this._directReport(t,[M]),this.cacheLogStack=[],this.isFlushing=!1}}log(t,e=[]){this._instance?(this.flushCacheLog(),this._log(t,e)):this._addCacheLog("log",{message:t,tags:e})}warn(t,e=null,r=[]){t=this.getMessageFromErrorOrEvent(t,e),this._instance?(this.flushCacheLog(),this._warn(t,r)):this._addCacheLog("warn",{message:t,tags:r})}error(t,e=null,r=[]){var i;t=this.getMessageFromErrorOrEvent(t,e),this._highFrequencyLogs[t]?this._highFrequencyLogs[t]+=1:this._highFrequencyLogs[t]=1,!((i=this._highFrequencyLogs[t])&i-1)&&(this._instance?(this.flushCacheLog(),this._error(t,r)):this._addCacheLog("error",{message:t,tags:r}))}severityerror(t,e=[]){this._instance?(this.flushCacheLog(),this._severityerror(JSON.stringify(t),e)):this._addCacheLog("severityerror",{message:JSON.stringify(t),tags:e})}directReport(t,e=["MEDIASDK_INFO"]){var r;this._instance?(this.flushCacheLog(),null===(r=this._directReport)||void 0===r||r.call(this,t,e)):this._addCacheLog("directReport",{message:t,tags:e})}_log(t,e=[]){this._instance&&this._instance.log(t,e)}_warn(t,e=[]){this._instance&&this._instance.warn(t,e)}_error(t,e=[]){this._instance&&this._instance.error(t,[this.fixVersion,...e])}_severityerror(t,e=[]){this._instance&&this._instance.error(t,e)}_directReport(t,e=[]){var r,i;this._instance&&(null===(i=(r=this._instance).directReport)||void 0===i||i.call(r,{msg:t},e))}clearHighFrequencyLogs(){this._highFrequencyLogs={}}};new Error;const k=new Map;function C(t,e="|"){return t?t.toString().replaceAll(/[,,]/g,e):""}const I="function"!=typeof importScripts;function T(t,e=null){I?R.error(t,e):E(t,e)}function E(t,e=null){var r,i;if(e instanceof Error||e instanceof ErrorEvent){const s=e;t+=" Code: "+(null==s?void 0:s.code)+" Message: "+(null==e?void 0:e.message)+" Stack: "+(null!==(i=null===(r=null==s?void 0:s.error)||void 0===r?void 0:r.stack)&&void 0!==i?i:null==s?void 0:s.stack),e=null}postMessage({status:61,errorMessage:t,errorEvent:e})}var W=function(t,e,r,i){return new(r||(r=Promise))((function(s,n){function o(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))};const F=(t,r)=>{var i;const s=null!==(i=null==r?void 0:r.skipFrame)&&void 0!==i&&i;let n=!1,o=null;const a=[],c=e().capabilities.supportsRequestAnimationFrameInWork(),h=t.getWriter();return new WritableStream({start(){W(void 0,void 0,void 0,(function*(){const t=()=>W(void 0,void 0,void 0,(function*(){if(!n){if(s){if(o){const t=o;o=null;try{yield h.ready,yield h.write(t)}finally{t.close()}}}else for(;a.length>0;){const t=a.shift();try{yield h.ready,yield h.write(t)}finally{t.close()}}c?requestAnimationFrame(t):setTimeout(t,20)}}));c?requestAnimationFrame(t):setTimeout(t,0)}))},write(t){return W(this,void 0,void 0,(function*(){s?(o&&o.close(),o=t):a.push(t)}))},close(){n=!0,null==o||o.close(),a.forEach((t=>t.close())),a.length=0,h.close()},abort(t){n=!0,null==o||o.close(),a.forEach((t=>t.close())),a.length=0,h.abort(t)}})};const L={mgr:null,config:P,capabilities:y,userAgent:x,tracing:{add_monitor(t){!function(t){postMessage({status:35,data:t})}(t)},globaltracing_error(t,e=null){E(t,e)},Log_Error(t,e=null){T(t,e)},Log_DT(t){var e;e=t,I?R.directReport(e):function(t){postMessage({status:61,errorMessage:t,level:"low"})}(e)}},graphics:{create_webgl_context_failed_monitor(t){!function(t){I?function(t,e){if(!function(t){const e=performance.now();return(!k.has(t)||e-k.get(t)>5e3)&&(k.set(t,e),!0)}(t))return;let r;try{r=C("object"==typeof e?JSON.stringify(e):e)}catch(t){r=C(e)}R.error(`NotifyUIError,event=${t},data=${r}`)}(-51,t):postMessage({status:-27,where:t})}(t)},calculateUVCoord:(t,e,r,i)=>function(t,e,r,i){if(!t||!e||!r)return null;const s=e.width/e.height;let n=e.width,o=e.height;if(e.width>t.width||e.height>t.height){const r=t.width/e.width,i=t.height/e.height,s=Math.min(r,i);n*=s,o*=s}let a=0,c=0;t.width/t.height>s?(c=Math.floor(t.height/o)*o,a=Math.floor(c*s/n)*n,a>t.width&&(a=Math.floor(t.width/n)*n,c=Math.floor(a/s/o)*o)):(a=Math.floor(t.width/n)*n,c=Math.floor(a/s/o)*o,c>t.height&&(c=Math.floor(t.height/o)*o,a=Math.floor(c*s/n)*n));let h=0,u=0,l=0,d=0,f={x:u,y:h,w:l,h:d};0==i?(h=1-(h+(o-1)/t.height),u=e.left/t.width,d=1-e.top/t.height,l=u+n/t.width,f.x=u,f.y=1-d,f.w=l,f.h=1-h):1==i?(u=1-(h+(o-1)/t.height),l=1-e.top/t.height,h=e.left/t.width,d=u+n/t.width):2==i?(h=e.top/t.height,u=e.left/t.width,d=h+(o-1)/t.height,l=u+n/t.width):3==i&&(u=e.top/t.height,l=h+(o-1)/t.height,h=e.left/t.width,d=u+n/t.width);let p=[],g=[{x:l,y:d},{x:l,y:h},{x:u,y:h},{x:l,y:d},{x:u,y:d},{x:u,y:h}];for(let t=0;t<g.length;++t){let e={u:g[t].x,v:g[t].y};p.push(e)}let m=[];for(let t=0;t<p.length;++t){let e=p[t];m.push(e.u),m.push(e.v)}return{uvCoords:m,uvRect:f}}(t,e,r,i),calculateUVCoordsForMultiView:(t,e,r,i,s,n)=>function(t,e,r,i,s,n){let o=0,a=0,c=0,h=0,u={x:a,y:o,w:c,h};if(t){const t=1==s||3==s?e.height/e.width:e.width/e.height,n=i.left||0,u=i.top||0;if(i.width/i.height>t){const e=i.height*t;o=u/r.height,a=(Math.round((i.width-e)/2)+n)/r.width,h=o+(i.height-1)/r.height,c=a+e/r.width}else{const e=i.width/t;o=(Math.round((i.height-e)/2)+u)/r.height,a=n/r.width,h=o+(e-1)/r.height,c=a+i.width/r.width}0==s?(o=1-(o+(i.height-1)/r.height),a=i.left/r.width,h=1-i.top/r.height,c=a+i.width/r.width):1==s?(a=1-(o+(i.height-1)/r.height),c=1-i.top/r.height,o=i.left/r.width,h=a+i.width/r.width):2==s?(o=i.top/r.height,a=i.left/r.width,h=o+(i.height-1)/r.height,c=a+i.width/r.width):3==s&&(a=i.top/r.height,c=o+(i.height-1)/r.height,o=i.left/r.width,h=a+i.width/r.width)}else{const t=i.width/i.height;let e=i.width,n=i.height;if(i.width>r.width||i.height>r.height){const t=r.width/i.width,s=r.height/i.height,o=Math.min(t,s);e*=o,n*=o}let l=0,d=0;r.width/r.height>t?(d=Math.floor(r.height/n)*n,l=Math.floor(d*t/e)*e,l>r.width&&(l=Math.floor(r.width/e)*e,d=Math.floor(l/t/n)*n)):(l=Math.floor(r.width/e)*e,d=Math.floor(l/t/n)*n,d>r.height&&(d=Math.floor(r.height/n)*n,l=Math.floor(d*t/e)*e)),0==s?(o=1-(o+(n-1)/r.height),a=i.left/r.width,h=1-i.top/r.height,c=a+e/r.width,u.x=a,u.y=1-h,u.w=c,u.h=1-o,i.height>i.width&&(a=function(t){const e=Math.pow(10,2);return Math.ceil(t*e)/e}(a),c=function(t){const e=Math.pow(10,2);return Math.floor(t*e)/e}(c))):1==s?(a=1-(o+(n-1)/r.height),c=1-i.top/r.height,o=i.left/r.width,h=a+e/r.width):2==s?(o=i.top/r.height,a=i.left/r.width,h=o+(n-1)/r.height,c=a+e/r.width):3==s&&(a=i.top/r.height,c=o+(n-1)/r.height,o=i.left/r.width,h=a+e/r.width)}let l=[],d=[{x:c,y:h},{x:c,y:o},{x:a,y:o},{x:c,y:h},{x:a,y:h},{x:a,y:o}];for(let t=0;t<d.length;++t){let e=null;if(n){let r=-1*Math.abs(d[t].x);d[t].x=r,e={u:d[t].x+1,v:d[t].y}}else e={u:d[t].x,v:d[t].y};l.push(e)}let f=[];for(let t=0;t<l.length;++t){let e=l[t];f.push(e.u),f.push(e.v)}return{uvCoords:f,uvRect:u}}(t,e,r,i,s,n),calculateRenderRect:(t,e)=>function(t,e){let r=0,i=0,s=0,n=0;const o=e.width/e.height;return t.width/t.height>o?(i=t.height,r=i*o,s=(t.width-r)/2,n=0):(r=t.width,i=r/o,s=0,n=(t.height-i)/2),r<=t.canvas.width&&(s=(t.canvas.width-r)/2),i<=t.canvas.height&&(n=(t.canvas.height-i)/2),{x:s,y:n,width:r,height:i}}(t,e),evalCroppingRect:(t,e)=>function(t,e){if(!t||null==e)throw new Error("evalCroppingRect() invalid parameters!");return 1===e||3===e?{top:t.top,left:t.left,width:t.height,height:t.width}:t}(t,e)},assertion:{assert(t,e=""){i(t,e)},assertWithFailed(t){s(t)},abstractMethod(){!function(){const t=new Error("call abstract method!");e().tracing.Log_Error("AbstractMethod!",t)}()},unreachable(){!function(){const t=new Error("Unreachable code reached!");e().tracing.Log_Error("Unreachable!",t)}()}}};let D=new OffscreenCanvas(1,1);const A=new class{constructor(t,e){this._provider=null,this._serviceName=t,this._serviceCtor=e}exposed(){return null!==this._provider}exposeService(t,e=!0){return this._provider||(this._provider=new l(this._serviceName,this._serviceCtor)),e&&this._provider.register(t),this._provider}unexposeService(){this._provider&&this._provider.unregister()}}("graphics/VideoRasterService",class extends h{constructor(t){super(),this._lastVideoWidth=-1,this._lastVideoHeight=-1,this._videoPaintWidth=-1,this._videoPaintHeight=-1,this._isRotated=!1,this._waterMarkInfo=null,this._videoMirrorState=!1,this._videoRotationState="rot0",this._inputStream=null,this._outputTrack=null,this._waterMarkImage=null,this._waterMarkGen=null,this._rasterCtx=null,this._closed=!1,this.updateCssDisplaySize(t.cssDisplaySize),t.options&&t.options.waterMarkInfo&&(this._waterMarkInfo=t.options.waterMarkInfo),this._outputWriterPromise=function(t){let e,r=!1,i=!1;const s=new Promise(((s,n)=>{t.then((t=>{i||(r=!0,e=t,s(t))}),(t=>{i||n(t)}))}));return{then:(t,e)=>s.then(i?void 0:t,i?void 0:e),catch:t=>s.catch(i?void 0:t),finally:t=>s.finally(i?void 0:t),isResolved:()=>r,isCanceled:()=>i,getValue:()=>e,cancel:()=>{i=!0}}}(new Promise((t=>{this._resolveOutputWriterPromise=t})));const e=new WritableStream({write:t=>{if(this._closed)return void t.close();const e=this._process(t);this._outputWriterPromise.isResolved()?this._writeVideoFrame(this._outputWriterPromise.getValue(),e):this._outputWriterPromise.then((t=>{this._writeVideoFrame(t,e)}))},close:()=>{this._outputWriterPromise.then((t=>{t.close()}))},abort:()=>{this._outputWriterPromise.then((t=>{t.abort()}))}});this._inputStream=F(e,{skipFrame:!0})}closeService(){var t;const e=null===(t=this._rasterCtx)||void 0===t?void 0:t.canvas;e&&(e.width=1,e.height=1),this._closed=!0}_writeVideoFrame(t,e){t.ready.then((()=>t.write(e))).catch((t=>{T("[ssrcstream] Err in VideoRasterTask",t)})).finally((()=>{e.close()}))}provideInputStream(t){t.pipeTo(this._inputStream)}provideOutputStream(t){const e=t.getWriter();this._resolveOutputWriterPromise(e)}accquireOutputTrack(){if(L.assertion.assert("track"===L.config.getAVStreamMode()),L.assertion.assert(null===this._outputTrack),!this._outputTrack){const t=new VideoTrackGenerator;this._outputTrack=t.track,this._resolveOutputWriterPromise(t.writable.getWriter())}return this.connection.transfer(this._outputTrack)}provideInputTrack(t){new MediaStreamTrackProcessor({track:t}).readable.pipeTo(this._inputStream)}updateVideoMirrorState(t){this._videoMirrorState=t}_isRotatedState(t){return"rot90"===t||"rot270"===t}updateVideoRotation(t){const e=t.rotationState;this._videoRotationState!==e&&(this._isRotatedState(this._videoRotationState)!==this._isRotatedState(e)&&(this._rasterCtx=null),this._videoRotationState=e)}updateCssDisplaySize(t){if(this._cssSize&&t.width===this._cssSize.width&&t.height===this._cssSize.height)return;this._cssSize=t;const e=this._cssSize.width,r=this._cssSize.height;this._displayRatio=e/r;const i=P.getCssPixelScale();this._pixelsSize={width:e*i,height:r*i},this._rasterCtx=null}updateWatermarkInfo(t){this._waterMarkInfo=t,this._waterMarkImage=null}get waterMarkGen(){return this._waterMarkGen||(this._waterMarkGen=new d),this._waterMarkGen}shouldWatermarkRepeated(t,e){return this._waterMarkInfo&&this._waterMarkInfo.repeated&&t>512&&e>512}updateWatermarkImage(t,e){if(!this._waterMarkInfo||!this._waterMarkInfo.enable||!this._waterMarkInfo.name)return void(this._waterMarkImage=null);const r=this.shouldWatermarkRepeated(t,e),i=t<512||e<288?16:this._waterMarkInfo.position;this._waterMarkImage=r?this.waterMarkGen.Get_Repeated_WaterMarkRGBA({canvas:D,name:this._waterMarkInfo.name,width:t,height:e,opacity:this._waterMarkInfo.opacity,position:i,transferToImage:!0}):this.waterMarkGen.Get_WaterMarkRGBA({canvas:D,name:this._waterMarkInfo.name,width:t,height:e,opacity:this._waterMarkInfo.opacity,position:i,transferToImage:!0}),D.width=1,D.height=1}_process(t){const e=this._cssSize;if(0===e.width||0===e.height)return t;if(!this._rasterCtx||t.displayWidth!==this._lastVideoWidth||t.displayHeight!==this._lastVideoHeight){const r=this._pixelsSize;let i,s,n;this._lastVideoWidth=t.displayWidth,this._lastVideoHeight=t.displayHeight,"rot90"===this._videoRotationState||"rot270"===this._videoRotationState?(i=t.displayHeight/t.displayWidth,this._isRotated=!0):(i=t.displayWidth/t.displayHeight,this._isRotated=!1),i>=this._displayRatio?(s=t.displayWidth,n=Math.round(s/this._displayRatio)):(n=t.displayHeight,s=Math.round(n*this._displayRatio));const o=Math.min(306,r.width),a=Math.min(306/this._displayRatio,r.height),c=Math.max(Math.max(e.width,o),Math.min(r.width,s)),h=Math.max(Math.max(e.height,a),Math.min(r.height,n));let u;i>=this._displayRatio?(this._videoPaintWidth=c,this._videoPaintHeight=Math.round(this._videoPaintWidth/i)):(this._videoPaintHeight=h,this._videoPaintWidth=Math.round(this._videoPaintHeight*i)),this._rasterCtx?(u=this._rasterCtx.canvas,c===u.width&&h===u.height||(u.width=c,u.height=h,this.connection.notify("videoSizeChange",c,h))):(u=new OffscreenCanvas(c,h),this._rasterCtx=u.getContext("2d",{alpha:!1}),this.connection.notify("videoSizeChange",c,h)),this._waterMarkImage=null}const r=this._rasterCtx,i=r.canvas;switch(this._waterMarkImage||this.updateWatermarkImage(i.width,i.height),r.setTransform(1,0,0,1,0,0),this._rasterCtx.fillStyle="rgba(0,0,0,1)",this._rasterCtx.fillRect(0,0,i.width,i.height),r.setTransform(1,0,0,1,0,0),r.translate(i.width/2,i.height/2),this._videoRotationState){case"rot0":break;case"rot90":r.rotate(Math.PI/2);break;case"rot180":r.rotate(Math.PI);break;case"rot270":r.rotate(-Math.PI/2);break;default:s()}this._videoMirrorState&&r.scale(-1,1),this._isRotated?r.drawImage(t,-this._videoPaintHeight/2,-this._videoPaintWidth/2,this._videoPaintHeight,this._videoPaintWidth):r.drawImage(t,-this._videoPaintWidth/2,-this._videoPaintHeight/2,this._videoPaintWidth,this._videoPaintHeight),this._waterMarkImage&&(r.setTransform(1,0,0,1,0,0),r.drawImage(this._waterMarkImage,0,0,i.width,i.height));const n=i.transferToImageBitmap(),o=new VideoFrame(n,{timestamp:t.timestamp,duration:t.duration});return t.close(),n.close(),o}});let j;new c(globalThis,{load(e,r){return i=this,s=void 0,o=function*(){if(j)return j;t=L,x.init(r.renderUserAgentInfo),y.init(r.renderCapabilitiesDesc),P.init(r.renderConfigDesc),u.setRegistryServicePort(e);const i=A.exposeService();return j=i.registerPromise(),j},new((n=void 0)||(n=Promise))((function(t,e){function r(t){try{c(o.next(t))}catch(t){e(t)}}function a(t){try{c(o.throw(t))}catch(t){e(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(r,a)}c((o=o.apply(i,s||[])).next())}));var i,s,n,o}})})()})();
|
|
2
|
+
//# sourceMappingURL=https://d1cdksi819e9z7.cloudfront.net/sourcemap/graphics.min.js-f5b864f3301c5442fba9.map
|
|
@@ -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.simd.wasm")||(L=j,j=a.locateFile?a.locateFile(L,_):_+L);var X={2127632:e=>{console.log("Audio Version: ",e)},2127669:(e,t)=>{send_data(e,t)},2127692:(e,t)=>{SAVE_IV(e,t)},2127710:(e,t,r,n)=>{audio_encode_frame_callback(e,t,r,n)},2127759:(e,t,r)=>{Get_ExternalRecord(e,t,r)},2127795:()=>Date.now(),2127818:(e,t)=>{update_play_time(e,t)},2127848:()=>{AudioWasmAdapter.onMuteSpeechWarningWASM()},2127895:(e,t)=>{AudioWasmAdapter.onMonitorLogWASM(e,t)},2127938:(e,t,r,n)=>{AudioWasmAdapter.onGlobalTracingLogWASM(e,t,r,n)},2127993:(e,t,r,n,o,i)=>{AudioWasmAdapter.onSenderStatsLogWASM(e,t,r,n,o,i)},2128057:(e,t,r,n,o,i)=>{AudioWasmAdapter.onReceiverStatsLogWASM(e,t,r,n,o,i)},2128123:(e,t)=>{AudioWasmAdapter.onAudioLevelWASM(e,t)},2128166:(e,t,r,n,o)=>{mesh_recv_audio_data(e,t,r,n,o)},2128212:(e,t,r)=>{network_quality_callback(e,t,r)},2128252:(e,t,r,n)=>{AudioWasmAdapter.onAPMProcessedPCMWASM(e,t,r,n)},2128312:(e,t,r,n)=>{pump_rtp_data(e,t,r,n)},2128347:(e,t,r,n)=>{pump_rtp_data(e,t,r,n)},2128382:(e,t,r,n,o,i,a,s)=>{responseAudioQosData(e,t,r,n,o,i,a,s)},2128437:(e,t,r,n,o)=>{sampleRateLog(e,t,r,n,o)},2128474:(e,t,r,n,o)=>{sampleRateLog(e,t,r,n,o)},2128511:(e,t,r,n,o,i,a,s)=>{frame_callback(e,t,r,n,o,i,a,s)},2128563:(e,t)=>{get_edition(e,t)},2128588:(e,t)=>{SAVE_IV(e,t)},2128606:()=>getNTPBaseTime(),2128635:()=>r(),2128665:(e,t)=>{reportSenderNTPTime(e,t)},2128698:(e,t)=>{COMMIT_PRINT(e,t)},2128720:()=>a.getRandomValue(),2128756:()=>{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"}}},2129478:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},2129514:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},2129550:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},2129586:(e,t,r,n)=>{LOG_OUT_WEBRTC(e,t,r,n)},2129622:(e,t)=>{LOG_OUT(e,t)},2129643:(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.min.js-d8d9058b78e92015b1bb.map
|