@doubao-dev/kit 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/277~0.js +65 -65
- package/dist/assets/web-sdk-debugger/__doubao_web_sdk_native_modules/applet-bridge-module-core.js +1 -1
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-api.template.ebf75b699f.bundle +0 -0
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-api.template.js +0 -0
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-framework.template.d266ec6564.bundle +0 -0
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-framework.template.js +0 -0
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-react-dev.template.d2d1100932.bundle +0 -0
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-react-dev.template.js +0 -0
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-react.template.5960027cd6.bundle +0 -0
- package/dist/assets/web-sdk-debugger/assets/framework/doubao-apps-react.template.js +0 -0
- package/dist/assets/web-sdk-debugger/index.html +1 -1
- package/dist/assets/web-sdk-debugger/static/css/{index.97f4984ae7.css → index.6a8ba2c71b.css} +1 -1
- package/dist/assets/web-sdk-debugger/static/js/{978.e72c602f2f.js → 601.64e6b98f45.js} +25 -14
- package/dist/assets/web-sdk-debugger/static/js/{402.f37ba7fe8f.js → 994.d076c47d8f.js} +2 -2
- package/dist/assets/web-sdk-debugger/static/js/async/{legacy-wasm-js.3d6cb8a6a0.js → legacy-wasm-js.2bfc98831e.js} +2 -2
- package/dist/assets/web-sdk-debugger/static/js/async/lynx-core-chunk.ce37dd1d3f.js +8 -0
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-main-chunk.40dd837410.js +1 -0
- package/dist/assets/web-sdk-debugger/static/js/async/{web-core-markup-encoder.9fd8702c48.js → web-core-markup-encoder.abc85b73a2.js} +4 -4
- package/dist/assets/web-sdk-debugger/static/js/async/{web-core-template-loader-thread.d22917b7bd.js → web-core-template-loader-thread.8bf0716c4e.js} +2 -2
- package/dist/assets/web-sdk-debugger/static/js/async/{web-core-worker-chunk.3b58908177.js → web-core-worker-chunk.8a2d6df519.js} +1 -1
- package/dist/assets/web-sdk-debugger/static/js/async/{web-elements.6df49df041.js → web-elements.ea42a780df.js} +2 -2
- package/dist/assets/web-sdk-debugger/static/js/async/{xmarkdown-deps.d87e1a3d37.js → xmarkdown-deps.0692358181.js} +2 -2
- package/dist/assets/web-sdk-debugger/static/js/index.687797d67a.js +51 -0
- package/dist/assets/web-sdk-debugger/static/js/{lib-polyfill.882248c34c.js → lib-polyfill.00f1700a39.js} +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.js +51 -51
- package/package.json +8 -8
- package/dist/assets/web-sdk-debugger/static/js/async/lynx-core-chunk.621f5c6dd1.js +0 -5
- package/dist/assets/web-sdk-debugger/static/js/async/web-core-main-chunk.6820f3e92f.js +0 -1
- package/dist/assets/web-sdk-debugger/static/js/index.117d5a09a1.js +0 -51
- /package/dist/assets/web-sdk-debugger/static/js/{978.e72c602f2f.js.LICENSE.txt → 601.64e6b98f45.js.LICENSE.txt} +0 -0
- /package/dist/assets/web-sdk-debugger/static/js/async/{xmarkdown-deps.d87e1a3d37.js.LICENSE.txt → xmarkdown-deps.0692358181.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(globalThis.rspackChunk_byted_doubao_apps_web_sdk_debugger_app||=[]).push([[402],{17385(e,t,_){e.exports=_.p+"static/wasm/86e0a936fd.module.wasm"},22993(e,t,_){e.exports=_.p+"static/wasm/8585c2144c.module.wasm"},46265(e,t,_){let n;_.r(t),_(44622),_(66528),_(15254),_(20303),_(99166),_(6106),_(22742),_(37553),_(62148),_(89055),_(12205),_(65850),_(65135),_(5876),_(94359),_(28016),_(38641),_(82247),_(11839),_(56109),_(63589),_(14104),_(52205),_(40768),_(76235);class r{static __wrap(e){let t=Object.create(r.prototype);return t.__wbg_ptr=e,v.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_eventinfo_free(e,0)}get event_handler(){return n.__wbg_get_eventinfo_event_handler(this.__wbg_ptr)}get event_name(){let e,t;try{let _=n.__wbg_get_eventinfo_event_name(this.__wbg_ptr);return e=_[0],t=_[1],U(_[0],_[1])}finally{n.__wbindgen_free(e,t,1)}}get event_type(){let e,t;try{let _=n.__wbg_get_eventinfo_event_type(this.__wbg_ptr);return e=_[0],t=_[1],U(_[0],_[1])}finally{n.__wbindgen_free(e,t,1)}}set event_handler(e){n.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,e)}set event_name(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V;n.__wbg_set_eventinfo_event_name(this.__wbg_ptr,t,_)}set event_type(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V;n.__wbg_set_eventinfo_event_type(this.__wbg_ptr,t,_)}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class i{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_mainthreadwasmcontext_free(e,0)}add_closure_event(e,t,_,r,i){let o=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V,l=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),a=V;n.mainthreadwasmcontext_add_closure_event(this.__wbg_ptr,e,o,s,l,a,$(r)?0:I(r),$(i)?0:I(i))}add_cross_thread_event(e,t,_,r){let i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V,s=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;var a=$(r)?0:D(r,n.__wbindgen_malloc,n.__wbindgen_realloc),c=V;n.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,e,i,o,s,l,a,c)}add_dataset(e,t,_){let r=n.mainthreadwasmcontext_add_dataset(this.__wbg_ptr,e,t,_);if(r[1])throw B(r[0])}add_run_worklet_event(e,t,_,r){let i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V,s=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;n.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,e,i,o,s,l,$(r)?0:I(r))}common_event_handler(e,t,_,r){let i=N(t,n.__wbindgen_malloc),o=V,s=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;n.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,e,i,o,s,l,r)}create_element_common(e,t,_,r,i){var o=$(i)?0:D(i,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;return n.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,e,t,_,$(r)?Number.MAX_SAFE_INTEGER:0|r,o,s)>>>0}dispatch_event_by_path(e,t,_,r){let i=N(e,n.__wbindgen_malloc),o=V,s=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;return 0!==n.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,i,o,s,l,_,r)}dispatch_global_bind_event(e,t,_){let r=N(e,n.__wbindgen_malloc),i=V,o=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;n.mainthreadwasmcontext_dispatch_global_bind_event(this.__wbg_ptr,r,i,o,s,_)}gc(){n.mainthreadwasmcontext_gc(this.__wbg_ptr)}get_component_id(e){let t,_=n.mainthreadwasmcontext_get_component_id(this.__wbg_ptr,e);if(_[3])throw B(_[2]);return 0!==_[0]&&(t=U(_[0],_[1]).slice(),n.__wbindgen_free(_[0],+_[1],1)),t}get_config(e){let t=n.mainthreadwasmcontext_get_config(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_data_by_key(e,t){let _=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V,i=n.mainthreadwasmcontext_get_data_by_key(this.__wbg_ptr,e,_,r);if(i[2])throw B(i[1]);return B(i[0])}get_dataset(e){let t=n.mainthreadwasmcontext_get_dataset(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_dom_by_unique_id(e){return n.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,e)}get_element_config(e){let t=n.mainthreadwasmcontext_get_element_config(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_event(e,t,_){let r=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V,o=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;return n.mainthreadwasmcontext_get_event(this.__wbg_ptr,e,r,i,o,s)}get_events(e){let t=n.mainthreadwasmcontext_get_events(this.__wbg_ptr,e);var _=j(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),_}get_unique_id_by_component_id(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V,r=n.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,t,_);return r===Number.MAX_SAFE_INTEGER?void 0:r}constructor(e,t,_){let r=n.mainthreadwasmcontext_new(e,t,_);return this.__wbg_ptr=r,x.register(this,this.__wbg_ptr,this),this}push_style_sheet(e,t){z(e,g);var _=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;let i=n.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,e.__wbg_ptr,_,r);if(i[1])throw B(i[0])}set_config(e,t){let _=n.mainthreadwasmcontext_set_config(this.__wbg_ptr,e,t);if(_[1])throw B(_[0])}set_css_id(e,t,_){let r=N(e,n.__wbindgen_malloc),i=V;var o=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;let l=n.mainthreadwasmcontext_set_css_id(this.__wbg_ptr,r,i,t,o,s);if(l[1])throw B(l[0])}set_dataset(e,t,_){let r=n.mainthreadwasmcontext_set_dataset(this.__wbg_ptr,e,t,_);if(r[1])throw B(r[0])}set_page_element_unique_id(e){n.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,e)}take_timing_flags(){let e=n.mainthreadwasmcontext_take_timing_flags(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}update_component_css_id(e,t){let _=n.mainthreadwasmcontext_update_component_css_id(this.__wbg_ptr,e,t);if(_[1])throw B(_[0])}update_component_id(e,t){var _=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;let i=n.mainthreadwasmcontext_update_component_id(this.__wbg_ptr,e,_,r);if(i[1])throw B(i[0])}update_css_og_style(e,t){var _=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;let i=n.mainthreadwasmcontext_update_css_og_style(this.__wbg_ptr,e,_,r);if(i[1])throw B(i[0])}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_rawstyleinfo_free(e,0)}append_import(e,t){n.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}constructor(){let e=n.rawstyleinfo_new();return this.__wbg_ptr=e,R.register(this,this.__wbg_ptr,this),this}push_rule(e,t){z(t,l);var _=t.__destroy_into_raw();n.rawstyleinfo_push_rule(this.__wbg_ptr,e,_)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class s{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_rawstyleinfomap_free(e,0)}insert(e,t){let _=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;z(t,o);var i=t.__destroy_into_raw();n.rawstyleinfomap_insert(this.__wbg_ptr,_,r,i)}constructor(){let e=n.rawstyleinfomap_new();return this.__wbg_ptr=e,A.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class l{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_rule_free(e,0)}constructor(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V,r=n.rule_new(t,_);if(r[2])throw B(r[1]);return this.__wbg_ptr=r[0],S.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let _=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V,i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V;n.rule_push_declaration(this.__wbg_ptr,_,r,i,o)}push_rule_children(e){z(e,l);var t=e.__destroy_into_raw();n.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){z(e,a);var t=e.__destroy_into_raw();n.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class a{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_ruleprelude_free(e,0)}constructor(){let e=n.ruleprelude_new();return this.__wbg_ptr=e,E.register(this,this.__wbg_ptr,this),this}push_selector(e){z(e,c);var t=e.__destroy_into_raw();n.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_selector_free(e,0)}constructor(){let e=n.selector_new();return this.__wbg_ptr=e,k.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let _=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V,i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V,s=n.selector_push_one_selector_section(this.__wbg_ptr,_,r,i,o);if(s[1])throw B(s[0])}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class g{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_stylesheetresource_free(e,0)}constructor(e,t){let _=n.stylesheetresource_new(e,t);if(_[2])throw B(_[1]);return this.__wbg_ptr=_[0],F.register(this,this.__wbg_ptr,this),this}}function b(e,t,_){let r=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V;var o=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;n.add_inline_style_raw_string_key(e,r,i,o,s)}function u(e,t,_,r,i,o){var s=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;let a=n.decode_style_info(e,s,l,_,r,i,o);if(a[2])throw B(a[1]);return B(a[0])}function w(e,t,_,r,i,s){z(e,o);var l=e.__destroy_into_raw(),a=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),c=V;let g=n.encode_legacy_json_generated_raw_style_info(l,t,a,c,r,i,s);if(g[2])throw B(g[1]);return B(g[0])}function d(e){let t,_;try{let o=n.get_font_face_content(e);var r=o[0],i=o[1];if(o[3])throw r=0,i=0,B(o[2]);return t=r,_=i,U(r,i)}finally{n.__wbindgen_free(t,_,1)}}function f(e){let t,_;try{let o=n.get_style_content(e);var r=o[0],i=o[1];if(o[3])throw r=0,i=0,B(o[2]);return t=r,_=i,U(r,i)}finally{n.__wbindgen_free(t,_,1)}}function p(e,t,_,r,i){let o=P(t,n.__wbindgen_malloc),s=V;n.set_inline_styles_in_key_value_vec(e,o,s,_,r,i)}function h(e,t,_,r,i){let o=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;return 0!==n.set_inline_styles_in_str(e,o,s,_,r,i)}function m(e,t,_){var r=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V;n.set_inline_styles_number_key(e,t,r,i)}function y(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,t){return Error(U(e,t))},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(e,t){let _=D(function e(t){let _,n=typeof t;if("number"==n||"boolean"==n||null==t)return`${t}`;if("string"==n)return`"${t}"`;if("symbol"==n){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==n){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let _=t.length,n="[";_>0&&(n+=e(t[0]));for(let r=1;r<_;r++)n+=", "+e(t[r]);return n+"]"}let r=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!r||!(r.length>1))return toString.call(t);if("Object"==(_=r[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
-
${t.stack}`:_}(t),n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;C().setInt32(e+4,r,!0),C().setInt32(e+0,_,!0)},__wbg___wbindgen_is_null_ea9085d691f535d3:function(e){return null===e},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(e){return void 0===e},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(e,t){return e===t},__wbg___wbindgen_string_get_b0ca35b86a603356:function(e,t){let _="string"==typeof t?t:void 0;var r=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V;C().setInt32(e+4,i,!0),C().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw Error(U(e,t))},__wbg_addEventListener_514c0d1b9cb98d61:function(e,t,_){e.addEventListener(U(t,_))},__wbg_appendChild_f553e8704c4f14a6:function(){return L(function(e,t){return e.appendChild(t)},arguments)},__wbg_cloneNode_5f99da4333e10617:function(){return L(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_createElement_fcbc0805de826d62:function(){return L(function(e,t,_){return e.createElement(U(t,_))},arguments)},__wbg_cssRules_a96ba5e195723d36:function(){return L(function(e){return e.cssRules},arguments)},__wbg_deref_e6425a8fa9d03a9d:function(e){let t=e.deref();return $(t)?0:I(t)},__wbg_disableElementEvent_00750da2a3d98d3b:function(){return L(function(e,t,_,n){e.disableElementEvent(t,U(_,n))},arguments)},__wbg_enableElementEvent_d3b114945b78a398:function(){return L(function(e,t,_,n){e.enableElementEvent(t,U(_,n))},arguments)},__wbg_eventinfo_new:function(e){return r.__wrap(e)},__wbg_getClassList_4ef38849a4003220:function(){return L(function(e,t,_){let r=P(t.getClassList(_),n.__wbindgen_malloc),i=V;C().setInt32(e+4,i,!0),C().setInt32(e+0,r,!0)},arguments)},__wbg_get_507a50627bffa49b:function(e,t){return e[t>>>0]},__wbg_get_78f252d074a84d0b:function(){return L(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_8374cf06984d8bfc:function(){return L(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_host_18450e7fb2bf2108:function(e){return e.host},__wbg_insertRule_7f44b1a334b975c5:function(){return L(function(e,t,_,n){return e.insertRule(U(t,_),n>>>0)},arguments)},__wbg_item_6c9c57d2b0d3b03b:function(e,t){let _=e.item(t>>>0);return $(_)?0:I(_)},__wbg_keys_58421f8f96795607:function(e){return Object.keys(e)},__wbg_length_1f0964f4a5e2c6d8:function(e){return e.length},__wbg_length_370319915dc99107:function(e){return e.length},__wbg_length_c9d11fa3c1e97549:function(e){return e.length},__wbg_new_da52cf8fe3429cb2:function(){return{}},__wbg_new_from_slice_77cdfb7977362f3c:function(e,t){return new Uint8Array(O(e,t))},__wbg_ownerDocument_5a7a5473f8709b3e:function(e){let t=e.ownerDocument;return $(t)?0:I(t)},__wbg_prototypesetcall_4770620bbe4688a0:function(e,t,_){Uint8Array.prototype.set.call(O(e,t),_)},__wbg_publishEvent_98f316996d32c83c:function(){return L(function(e,t,_,n,r,i,o,s,l,a){e.publishEvent(U(t,_),0===n?void 0:U(n,r),i,o>>>0,s,l>>>0,a)},arguments)},__wbg_removeAttribute_1e7d2c409776d836:function(){return L(function(e,t,_){e.removeAttribute(U(t,_))},arguments)},__wbg_removeAttribute_425b95bcfcd686d9:function(){return L(function(e,t,_,n){e.removeAttribute(t,U(_,n))},arguments)},__wbg_removeProperty_70da952bc1b493fa:function(){return L(function(e,t,_,r){let i=D(t.removeProperty(U(_,r)),n.__wbindgen_malloc,n.__wbindgen_realloc),o=V;C().setInt32(e+4,o,!0),C().setInt32(e+0,i,!0)},arguments)},__wbg_runElementClosure_6b4e42c656f6ee9d:function(e,t,_,n,r,i,o){e.runElementClosure(t,_,n>>>0,r,i>>>0,o)},__wbg_runWorklet_3484f0c70445f9a7:function(){return L(function(e,t,_,n,r,i,o){e.runWorklet(t,_,n>>>0,r,i>>>0,o)},arguments)},__wbg_setAttribute_39a501bc57b5d356:function(){return L(function(e,t,_,n,r,i){e.setAttribute(t,U(_,n),U(r,i))},arguments)},__wbg_setAttribute_71039043be82d098:function(){return L(function(e,t,_,n,r){e.setAttribute(U(t,_),U(n,r))},arguments)},__wbg_setProperty_e4e51b1b1d681d15:function(){return L(function(e,t,_,n,r){e.setProperty(U(t,_),U(n,r))},arguments)},__wbg_set_8535240470bf2500:function(){return L(function(e,t,_){return Reflect.set(e,t,_)},arguments)},__wbg_set_cssText_1d203a1b8ff80e20:function(e,t,_){e.cssText=U(t,_)},__wbg_set_textContent_54dcad83ae15772d:function(e,t,_){e.textContent=0===t?void 0:U(t,_)},__wbg_sheet_9201185a230c1cdc:function(e){let t=e.sheet;return $(t)?0:I(t)},__wbg_style_00ba0d9bec50983f:function(e){return e.style},__wbg_style_6657aed849e5d757:function(e){return e.style},__wbindgen_cast_0000000000000001:function(e,t){return U(e,t)},__wbindgen_init_externref_table:function(){let e=n.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);let v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_eventinfo_free(e,1)),x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_mainthreadwasmcontext_free(e,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rawstyleinfo_free(e,1)),A="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rawstyleinfomap_free(e,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rule_free(e,1)),E="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_ruleprelude_free(e,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_selector_free(e,1)),F="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_stylesheetresource_free(e,1));function I(e){let t=n.__externref_table_alloc();return n.__wbindgen_externrefs.set(t,e),t}function z(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function j(e,t){e>>>=0;let _=C(),r=[];for(let i=e;i<e+4*t;i+=4)r.push(n.__wbindgen_externrefs.get(_.getUint32(i,!0)));return n.__externref_drop_slice(e,t),r}function O(e,t){return e>>>=0,q().subarray(e/1,e/1+t)}let W=null;function C(){return(null===W||!0===W.buffer.detached||void 0===W.buffer.detached&&W.buffer!==n.memory.buffer)&&(W=new DataView(n.memory.buffer)),W}function U(e,t){var _,n;return _=e>>>0,(X+=n=t)>=0x7ff00000&&((G=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),X=n),G.decode(q().subarray(_,_+n))}let M=null,T=null;function q(){return(null===T||0===T.byteLength)&&(T=new Uint8Array(n.memory.buffer)),T}function L(e,t){try{return e.apply(this,t)}catch(t){let e=I(t);n.__wbindgen_exn_store(e)}}function $(e){return null==e}function N(e,t){let _=t(4*e.length,4)>>>0;return((null===M||0===M.byteLength)&&(M=new Uint32Array(n.memory.buffer)),M).set(e,_/4),V=e.length,_}function P(e,t){let _=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let n=I(e[t]);C().setUint32(_+4*t,n,!0)}return V=e.length,_}function D(e,t,_){if(void 0===_){let _=J.encode(e),n=t(_.length,1)>>>0;return q().subarray(n,n+_.length).set(_),V=_.length,n}let n=e.length,r=t(n,1)>>>0,i=q(),o=0;for(;o<n;o++){let t=e.charCodeAt(o);if(t>127)break;i[r+o]=t}if(o!==n){0!==o&&(e=e.slice(o)),r=_(r,n,n=o+3*e.length,1)>>>0;let t=q().subarray(r+o,r+n);o+=J.encodeInto(e,t).written,r=_(r,n,o,1)>>>0}return V=o,r}function B(e){let t=n.__wbindgen_externrefs.get(e);return n.__externref_table_dealloc(e),t}let G=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});G.decode();let X=0,J=new TextEncoder;"encodeInto"in J||(J.encodeInto=function(e,t){let _=J.encode(e);return t.set(_),{read:e.length,written:_.length}});let V=0;function H(e,t){return n=e.exports,W=null,M=null,T=null,n.__wbindgen_start(),n}async function K(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let _=await e.arrayBuffer();return await WebAssembly.instantiate(_,t)}{let _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}}function Q(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=y();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),H(new WebAssembly.Instance(e,t),e)}async function Y(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(_(
|
|
1
|
+
"use strict";(globalThis.rspackChunk_byted_doubao_apps_web_sdk_debugger_app||=[]).push([[994],{25709(e,t,_){e.exports=_.p+"static/wasm/86e0a936fd.module.wasm"},37533(e,t,_){e.exports=_.p+"static/wasm/8585c2144c.module.wasm"},68845(e,t,_){let n;_.r(t),_(44622),_(66528),_(15254),_(20303),_(99166),_(6106),_(22742),_(37553),_(62148),_(89055),_(12205),_(65850),_(65135),_(5876),_(94359),_(28016),_(38641),_(82247),_(11839),_(56109),_(63589),_(14104),_(52205),_(40768),_(76235);class r{static __wrap(e){let t=Object.create(r.prototype);return t.__wbg_ptr=e,v.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_eventinfo_free(e,0)}get event_handler(){return n.__wbg_get_eventinfo_event_handler(this.__wbg_ptr)}get event_name(){let e,t;try{let _=n.__wbg_get_eventinfo_event_name(this.__wbg_ptr);return e=_[0],t=_[1],U(_[0],_[1])}finally{n.__wbindgen_free(e,t,1)}}get event_type(){let e,t;try{let _=n.__wbg_get_eventinfo_event_type(this.__wbg_ptr);return e=_[0],t=_[1],U(_[0],_[1])}finally{n.__wbindgen_free(e,t,1)}}set event_handler(e){n.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,e)}set event_name(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V;n.__wbg_set_eventinfo_event_name(this.__wbg_ptr,t,_)}set event_type(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V;n.__wbg_set_eventinfo_event_type(this.__wbg_ptr,t,_)}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class i{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_mainthreadwasmcontext_free(e,0)}add_closure_event(e,t,_,r,i){let o=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V,l=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),a=V;n.mainthreadwasmcontext_add_closure_event(this.__wbg_ptr,e,o,s,l,a,$(r)?0:I(r),$(i)?0:I(i))}add_cross_thread_event(e,t,_,r){let i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V,s=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;var a=$(r)?0:D(r,n.__wbindgen_malloc,n.__wbindgen_realloc),c=V;n.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,e,i,o,s,l,a,c)}add_dataset(e,t,_){let r=n.mainthreadwasmcontext_add_dataset(this.__wbg_ptr,e,t,_);if(r[1])throw B(r[0])}add_run_worklet_event(e,t,_,r){let i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V,s=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;n.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,e,i,o,s,l,$(r)?0:I(r))}common_event_handler(e,t,_,r){let i=N(t,n.__wbindgen_malloc),o=V,s=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;n.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,e,i,o,s,l,r)}create_element_common(e,t,_,r,i){var o=$(i)?0:D(i,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;return n.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,e,t,_,$(r)?Number.MAX_SAFE_INTEGER:0|r,o,s)>>>0}dispatch_event_by_path(e,t,_,r){let i=N(e,n.__wbindgen_malloc),o=V,s=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;return 0!==n.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,i,o,s,l,_,r)}dispatch_global_bind_event(e,t,_){let r=N(e,n.__wbindgen_malloc),i=V,o=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;n.mainthreadwasmcontext_dispatch_global_bind_event(this.__wbg_ptr,r,i,o,s,_)}gc(){n.mainthreadwasmcontext_gc(this.__wbg_ptr)}get_component_id(e){let t,_=n.mainthreadwasmcontext_get_component_id(this.__wbg_ptr,e);if(_[3])throw B(_[2]);return 0!==_[0]&&(t=U(_[0],_[1]).slice(),n.__wbindgen_free(_[0],+_[1],1)),t}get_config(e){let t=n.mainthreadwasmcontext_get_config(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_data_by_key(e,t){let _=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V,i=n.mainthreadwasmcontext_get_data_by_key(this.__wbg_ptr,e,_,r);if(i[2])throw B(i[1]);return B(i[0])}get_dataset(e){let t=n.mainthreadwasmcontext_get_dataset(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_dom_by_unique_id(e){return n.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,e)}get_element_config(e){let t=n.mainthreadwasmcontext_get_element_config(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_event(e,t,_){let r=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V,o=D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;return n.mainthreadwasmcontext_get_event(this.__wbg_ptr,e,r,i,o,s)}get_events(e){let t=n.mainthreadwasmcontext_get_events(this.__wbg_ptr,e);var _=j(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),_}get_unique_id_by_component_id(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V,r=n.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,t,_);return r===Number.MAX_SAFE_INTEGER?void 0:r}constructor(e,t,_){let r=n.mainthreadwasmcontext_new(e,t,_);return this.__wbg_ptr=r,x.register(this,this.__wbg_ptr,this),this}push_style_sheet(e,t){z(e,g);var _=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;let i=n.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,e.__wbg_ptr,_,r);if(i[1])throw B(i[0])}set_config(e,t){let _=n.mainthreadwasmcontext_set_config(this.__wbg_ptr,e,t);if(_[1])throw B(_[0])}set_css_id(e,t,_){let r=N(e,n.__wbindgen_malloc),i=V;var o=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;let l=n.mainthreadwasmcontext_set_css_id(this.__wbg_ptr,r,i,t,o,s);if(l[1])throw B(l[0])}set_dataset(e,t,_){let r=n.mainthreadwasmcontext_set_dataset(this.__wbg_ptr,e,t,_);if(r[1])throw B(r[0])}set_page_element_unique_id(e){n.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,e)}take_timing_flags(){let e=n.mainthreadwasmcontext_take_timing_flags(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),t}update_component_css_id(e,t){let _=n.mainthreadwasmcontext_update_component_css_id(this.__wbg_ptr,e,t);if(_[1])throw B(_[0])}update_component_id(e,t){var _=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;let i=n.mainthreadwasmcontext_update_component_id(this.__wbg_ptr,e,_,r);if(i[1])throw B(i[0])}update_css_og_style(e,t){var _=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;let i=n.mainthreadwasmcontext_update_css_og_style(this.__wbg_ptr,e,_,r);if(i[1])throw B(i[0])}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_rawstyleinfo_free(e,0)}append_import(e,t){n.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}constructor(){let e=n.rawstyleinfo_new();return this.__wbg_ptr=e,R.register(this,this.__wbg_ptr,this),this}push_rule(e,t){z(t,l);var _=t.__destroy_into_raw();n.rawstyleinfo_push_rule(this.__wbg_ptr,e,_)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class s{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_rawstyleinfomap_free(e,0)}insert(e,t){let _=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;z(t,o);var i=t.__destroy_into_raw();n.rawstyleinfomap_insert(this.__wbg_ptr,_,r,i)}constructor(){let e=n.rawstyleinfomap_new();return this.__wbg_ptr=e,A.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class l{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_rule_free(e,0)}constructor(e){let t=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),_=V,r=n.rule_new(t,_);if(r[2])throw B(r[1]);return this.__wbg_ptr=r[0],S.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let _=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V,i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V;n.rule_push_declaration(this.__wbg_ptr,_,r,i,o)}push_rule_children(e){z(e,l);var t=e.__destroy_into_raw();n.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){z(e,a);var t=e.__destroy_into_raw();n.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class a{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_ruleprelude_free(e,0)}constructor(){let e=n.ruleprelude_new();return this.__wbg_ptr=e,E.register(this,this.__wbg_ptr,this),this}push_selector(e){z(e,c);var t=e.__destroy_into_raw();n.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_selector_free(e,0)}constructor(){let e=n.selector_new();return this.__wbg_ptr=e,k.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let _=D(e,n.__wbindgen_malloc,n.__wbindgen_realloc),r=V,i=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=V,s=n.selector_push_one_selector_section(this.__wbg_ptr,_,r,i,o);if(s[1])throw B(s[0])}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class g{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){let e=this.__destroy_into_raw();n.__wbg_stylesheetresource_free(e,0)}constructor(e,t){let _=n.stylesheetresource_new(e,t);if(_[2])throw B(_[1]);return this.__wbg_ptr=_[0],F.register(this,this.__wbg_ptr,this),this}}function b(e,t,_){let r=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V;var o=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;n.add_inline_style_raw_string_key(e,r,i,o,s)}function u(e,t,_,r,i,o){var s=$(t)?0:D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),l=V;let a=n.decode_style_info(e,s,l,_,r,i,o);if(a[2])throw B(a[1]);return B(a[0])}function w(e,t,_,r,i,s){z(e,o);var l=e.__destroy_into_raw(),a=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),c=V;let g=n.encode_legacy_json_generated_raw_style_info(l,t,a,c,r,i,s);if(g[2])throw B(g[1]);return B(g[0])}function d(e){let t,_;try{let o=n.get_font_face_content(e);var r=o[0],i=o[1];if(o[3])throw r=0,i=0,B(o[2]);return t=r,_=i,U(r,i)}finally{n.__wbindgen_free(t,_,1)}}function f(e){let t,_;try{let o=n.get_style_content(e);var r=o[0],i=o[1];if(o[3])throw r=0,i=0,B(o[2]);return t=r,_=i,U(r,i)}finally{n.__wbindgen_free(t,_,1)}}function p(e,t,_,r,i){let o=P(t,n.__wbindgen_malloc),s=V;n.set_inline_styles_in_key_value_vec(e,o,s,_,r,i)}function h(e,t,_,r,i){let o=D(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=V;return 0!==n.set_inline_styles_in_str(e,o,s,_,r,i)}function m(e,t,_){var r=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V;n.set_inline_styles_number_key(e,t,r,i)}function y(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(e,t){return Error(U(e,t))},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(e,t){let _=D(function e(t){let _,n=typeof t;if("number"==n||"boolean"==n||null==t)return`${t}`;if("string"==n)return`"${t}"`;if("symbol"==n){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==n){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let _=t.length,n="[";_>0&&(n+=e(t[0]));for(let r=1;r<_;r++)n+=", "+e(t[r]);return n+"]"}let r=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!r||!(r.length>1))return toString.call(t);if("Object"==(_=r[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
+
${t.stack}`:_}(t),n.__wbindgen_malloc,n.__wbindgen_realloc),r=V;C().setInt32(e+4,r,!0),C().setInt32(e+0,_,!0)},__wbg___wbindgen_is_null_ea9085d691f535d3:function(e){return null===e},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(e){return void 0===e},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(e,t){return e===t},__wbg___wbindgen_string_get_b0ca35b86a603356:function(e,t){let _="string"==typeof t?t:void 0;var r=$(_)?0:D(_,n.__wbindgen_malloc,n.__wbindgen_realloc),i=V;C().setInt32(e+4,i,!0),C().setInt32(e+0,r,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw Error(U(e,t))},__wbg_addEventListener_514c0d1b9cb98d61:function(e,t,_){e.addEventListener(U(t,_))},__wbg_appendChild_f553e8704c4f14a6:function(){return L(function(e,t){return e.appendChild(t)},arguments)},__wbg_cloneNode_5f99da4333e10617:function(){return L(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_createElement_fcbc0805de826d62:function(){return L(function(e,t,_){return e.createElement(U(t,_))},arguments)},__wbg_cssRules_a96ba5e195723d36:function(){return L(function(e){return e.cssRules},arguments)},__wbg_deref_e6425a8fa9d03a9d:function(e){let t=e.deref();return $(t)?0:I(t)},__wbg_disableElementEvent_00750da2a3d98d3b:function(){return L(function(e,t,_,n){e.disableElementEvent(t,U(_,n))},arguments)},__wbg_enableElementEvent_d3b114945b78a398:function(){return L(function(e,t,_,n){e.enableElementEvent(t,U(_,n))},arguments)},__wbg_eventinfo_new:function(e){return r.__wrap(e)},__wbg_getClassList_4ef38849a4003220:function(){return L(function(e,t,_){let r=P(t.getClassList(_),n.__wbindgen_malloc),i=V;C().setInt32(e+4,i,!0),C().setInt32(e+0,r,!0)},arguments)},__wbg_get_507a50627bffa49b:function(e,t){return e[t>>>0]},__wbg_get_78f252d074a84d0b:function(){return L(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_8374cf06984d8bfc:function(){return L(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_host_18450e7fb2bf2108:function(e){return e.host},__wbg_insertRule_7f44b1a334b975c5:function(){return L(function(e,t,_,n){return e.insertRule(U(t,_),n>>>0)},arguments)},__wbg_item_6c9c57d2b0d3b03b:function(e,t){let _=e.item(t>>>0);return $(_)?0:I(_)},__wbg_keys_58421f8f96795607:function(e){return Object.keys(e)},__wbg_length_1f0964f4a5e2c6d8:function(e){return e.length},__wbg_length_370319915dc99107:function(e){return e.length},__wbg_length_c9d11fa3c1e97549:function(e){return e.length},__wbg_new_da52cf8fe3429cb2:function(){return{}},__wbg_new_from_slice_77cdfb7977362f3c:function(e,t){return new Uint8Array(O(e,t))},__wbg_ownerDocument_5a7a5473f8709b3e:function(e){let t=e.ownerDocument;return $(t)?0:I(t)},__wbg_prototypesetcall_4770620bbe4688a0:function(e,t,_){Uint8Array.prototype.set.call(O(e,t),_)},__wbg_publishEvent_98f316996d32c83c:function(){return L(function(e,t,_,n,r,i,o,s,l,a){e.publishEvent(U(t,_),0===n?void 0:U(n,r),i,o>>>0,s,l>>>0,a)},arguments)},__wbg_removeAttribute_1e7d2c409776d836:function(){return L(function(e,t,_){e.removeAttribute(U(t,_))},arguments)},__wbg_removeAttribute_425b95bcfcd686d9:function(){return L(function(e,t,_,n){e.removeAttribute(t,U(_,n))},arguments)},__wbg_removeProperty_70da952bc1b493fa:function(){return L(function(e,t,_,r){let i=D(t.removeProperty(U(_,r)),n.__wbindgen_malloc,n.__wbindgen_realloc),o=V;C().setInt32(e+4,o,!0),C().setInt32(e+0,i,!0)},arguments)},__wbg_runElementClosure_6b4e42c656f6ee9d:function(e,t,_,n,r,i,o){e.runElementClosure(t,_,n>>>0,r,i>>>0,o)},__wbg_runWorklet_3484f0c70445f9a7:function(){return L(function(e,t,_,n,r,i,o){e.runWorklet(t,_,n>>>0,r,i>>>0,o)},arguments)},__wbg_setAttribute_39a501bc57b5d356:function(){return L(function(e,t,_,n,r,i){e.setAttribute(t,U(_,n),U(r,i))},arguments)},__wbg_setAttribute_71039043be82d098:function(){return L(function(e,t,_,n,r){e.setAttribute(U(t,_),U(n,r))},arguments)},__wbg_setProperty_e4e51b1b1d681d15:function(){return L(function(e,t,_,n,r){e.setProperty(U(t,_),U(n,r))},arguments)},__wbg_set_8535240470bf2500:function(){return L(function(e,t,_){return Reflect.set(e,t,_)},arguments)},__wbg_set_cssText_1d203a1b8ff80e20:function(e,t,_){e.cssText=U(t,_)},__wbg_set_textContent_54dcad83ae15772d:function(e,t,_){e.textContent=0===t?void 0:U(t,_)},__wbg_sheet_9201185a230c1cdc:function(e){let t=e.sheet;return $(t)?0:I(t)},__wbg_style_00ba0d9bec50983f:function(e){return e.style},__wbg_style_6657aed849e5d757:function(e){return e.style},__wbindgen_cast_0000000000000001:function(e,t){return U(e,t)},__wbindgen_init_externref_table:function(){let e=n.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);let v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_eventinfo_free(e,1)),x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_mainthreadwasmcontext_free(e,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rawstyleinfo_free(e,1)),A="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rawstyleinfomap_free(e,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_rule_free(e,1)),E="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_ruleprelude_free(e,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_selector_free(e,1)),F="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>n.__wbg_stylesheetresource_free(e,1));function I(e){let t=n.__externref_table_alloc();return n.__wbindgen_externrefs.set(t,e),t}function z(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function j(e,t){e>>>=0;let _=C(),r=[];for(let i=e;i<e+4*t;i+=4)r.push(n.__wbindgen_externrefs.get(_.getUint32(i,!0)));return n.__externref_drop_slice(e,t),r}function O(e,t){return e>>>=0,q().subarray(e/1,e/1+t)}let W=null;function C(){return(null===W||!0===W.buffer.detached||void 0===W.buffer.detached&&W.buffer!==n.memory.buffer)&&(W=new DataView(n.memory.buffer)),W}function U(e,t){var _,n;return _=e>>>0,(X+=n=t)>=0x7ff00000&&((G=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),X=n),G.decode(q().subarray(_,_+n))}let M=null,T=null;function q(){return(null===T||0===T.byteLength)&&(T=new Uint8Array(n.memory.buffer)),T}function L(e,t){try{return e.apply(this,t)}catch(t){let e=I(t);n.__wbindgen_exn_store(e)}}function $(e){return null==e}function N(e,t){let _=t(4*e.length,4)>>>0;return((null===M||0===M.byteLength)&&(M=new Uint32Array(n.memory.buffer)),M).set(e,_/4),V=e.length,_}function P(e,t){let _=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let n=I(e[t]);C().setUint32(_+4*t,n,!0)}return V=e.length,_}function D(e,t,_){if(void 0===_){let _=J.encode(e),n=t(_.length,1)>>>0;return q().subarray(n,n+_.length).set(_),V=_.length,n}let n=e.length,r=t(n,1)>>>0,i=q(),o=0;for(;o<n;o++){let t=e.charCodeAt(o);if(t>127)break;i[r+o]=t}if(o!==n){0!==o&&(e=e.slice(o)),r=_(r,n,n=o+3*e.length,1)>>>0;let t=q().subarray(r+o,r+n);o+=J.encodeInto(e,t).written,r=_(r,n,o,1)>>>0}return V=o,r}function B(e){let t=n.__wbindgen_externrefs.get(e);return n.__externref_table_dealloc(e),t}let G=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});G.decode();let X=0,J=new TextEncoder;"encodeInto"in J||(J.encodeInto=function(e,t){let _=J.encode(e);return t.set(_),{read:e.length,written:_.length}});let V=0;function H(e,t){return n=e.exports,W=null,M=null,T=null,n.__wbindgen_start(),n}async function K(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let _=await e.arrayBuffer();return await WebAssembly.instantiate(_,t)}{let _=await WebAssembly.instantiate(e,t);return _ instanceof WebAssembly.Instance?{instance:_,module:e}:_}}function Q(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=y();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),H(new WebAssembly.Instance(e,t),e)}async function Y(e){if(void 0!==n)return n;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(_(25709),_.b));let t=y();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await K(await e,t);return H(r,i)}_.d(t,{EventInfo:()=>r,MainThreadWasmContext:()=>i,RawStyleInfo:()=>o,RawStyleInfoMap:()=>s,Rule:()=>l,RulePrelude:()=>a,Selector:()=>c,StyleSheetResource:()=>g,add_inline_style_raw_string_key:()=>b,decode_style_info:()=>u,default:()=>Y,encode_legacy_json_generated_raw_style_info:()=>w,get_font_face_content:()=>d,get_style_content:()=>f,initSync:()=>Q,set_inline_styles_in_key_value_vec:()=>p,set_inline_styles_in_str:()=>h,set_inline_styles_number_key:()=>m})},20569(e,t,_){let n=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]));_.d(t,{},{oR:r,rO:n})}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(globalThis.rspackChunk_byted_doubao_apps_web_sdk_debugger_app||=[]).push([[778],{27443(t,e,_){let n;_.r(e),_(44622),_(66528),_(15254),_(20303),_(99166),_(6106),_(22742),_(37553),_(62148),_(89055),_(12205),_(65850),_(65135),_(5876),_(94359),_(28016),_(38641),_(82247),_(11839),_(56109),_(63589),_(14104),_(52205),_(40768),_(76235);class r{static __wrap(t){let e=Object.create(r.prototype);return e.__wbg_ptr=t,x.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_eventinfo_free(t,0)}get event_handler(){return V(n.__wbg_get_eventinfo_event_handler(this.__wbg_ptr))}get event_name(){let t,e;try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.__wbg_get_eventinfo_event_name(i,this.__wbg_ptr);var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);return t=_,e=r,T(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(t,e,1)}}get event_type(){let t,e;try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.__wbg_get_eventinfo_event_type(i,this.__wbg_ptr);var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);return t=_,e=r,T(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(t,e,1)}}set event_handler(t){n.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,F(t))}set event_name(t){let e=X(t,n.__wbindgen_export,n.__wbindgen_export2),_=Y;n.__wbg_set_eventinfo_event_name(this.__wbg_ptr,e,_)}set event_type(t){let e=X(t,n.__wbindgen_export,n.__wbindgen_export2),_=Y;n.__wbg_set_eventinfo_event_type(this.__wbg_ptr,e,_)}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class i{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_mainthreadwasmcontext_free(t,0)}add_closure_event(t,e,_,r,i){let o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y,a=X(_,n.__wbindgen_export,n.__wbindgen_export2),d=Y;n.mainthreadwasmcontext_add_closure_event(this.__wbg_ptr,t,o,s,a,d,D(r)?0:F(r),D(i)?0:F(i))}add_cross_thread_event(t,e,_,r){let i=X(e,n.__wbindgen_export,n.__wbindgen_export2),o=Y,s=X(_,n.__wbindgen_export,n.__wbindgen_export2),a=Y;var d=D(r)?0:X(r,n.__wbindgen_export,n.__wbindgen_export2),g=Y;n.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,t,i,o,s,a,d,g)}add_dataset(t,e,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_add_dataset(i,this.__wbg_ptr,t,z(e),z(_));var r=M().getInt32(i+0,!0);if(M().getInt32(i+4,!0))throw V(r)}finally{n.__wbindgen_add_to_stack_pointer(16),N[J++]=void 0,N[J++]=void 0}}add_run_worklet_event(t,e,_,r){let i=X(e,n.__wbindgen_export,n.__wbindgen_export2),o=Y,s=X(_,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,t,i,o,s,a,D(r)?0:F(r))}common_event_handler(t,e,_,r){let i=B(e,n.__wbindgen_export),o=Y,s=X(_,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,F(t),i,o,s,a,r)}create_element_common(t,e,_,r,i){var o=D(i)?0:X(i,n.__wbindgen_export,n.__wbindgen_export2),s=Y;return n.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,t,F(e),F(_),D(r)?Number.MAX_SAFE_INTEGER:0|r,o,s)>>>0}dispatch_event_by_path(t,e,_,r){try{let i=B(t,n.__wbindgen_export),o=Y,s=X(e,n.__wbindgen_export,n.__wbindgen_export2),a=Y,d=n.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,i,o,s,a,_,z(r));return 0!==d}finally{N[J++]=void 0}}dispatch_global_bind_event(t,e,_){try{let r=B(t,n.__wbindgen_export),i=Y,o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y;n.mainthreadwasmcontext_dispatch_global_bind_event(this.__wbg_ptr,r,i,o,s,z(_))}finally{N[J++]=void 0}}gc(){n.mainthreadwasmcontext_gc(this.__wbg_ptr)}get_component_id(t){try{let i,o=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_component_id(o,this.__wbg_ptr,t);var e=M().getInt32(o+0,!0),_=M().getInt32(o+4,!0),r=M().getInt32(o+8,!0);if(M().getInt32(o+12,!0))throw V(r);return 0!==e&&(i=T(e,_).slice(),n.__wbindgen_export4(e,+_,1)),i}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_config(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_config(r,this.__wbg_ptr,t);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return V(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_data_by_key(t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16),o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y;n.mainthreadwasmcontext_get_data_by_key(i,this.__wbg_ptr,t,o,s);var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);if(M().getInt32(i+8,!0))throw V(r);return V(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_dataset(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_dataset(r,this.__wbg_ptr,t);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return V(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_dom_by_unique_id(t){return V(n.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,t))}get_element_config(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_element_config(r,this.__wbg_ptr,t);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return V(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_event(t,e,_){let r=X(e,n.__wbindgen_export,n.__wbindgen_export2),i=Y,o=X(_,n.__wbindgen_export,n.__wbindgen_export2),s=Y;return V(n.mainthreadwasmcontext_get_event(this.__wbg_ptr,t,r,i,o,s))}get_events(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_events(i,this.__wbg_ptr,t);var e=M().getInt32(i+0,!0),_=M().getInt32(i+4,!0),r=O(e,_).slice();return n.__wbindgen_export4(e,4*_,4),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_unique_id_by_component_id(t){let e=X(t,n.__wbindgen_export,n.__wbindgen_export2),_=Y,r=n.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,e,_);return r===Number.MAX_SAFE_INTEGER?void 0:r}constructor(t,e,_){let r=n.mainthreadwasmcontext_new(F(t),F(e),_);return this.__wbg_ptr=r,v.register(this,this.__wbg_ptr,this),this}push_style_sheet(t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16);j(t,l);var _=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),r=Y;n.mainthreadwasmcontext_push_style_sheet(o,this.__wbg_ptr,t.__wbg_ptr,_,r);var i=M().getInt32(o+0,!0);if(M().getInt32(o+4,!0))throw V(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}set_config(t,e){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_set_config(r,this.__wbg_ptr,t,z(e));var _=M().getInt32(r+0,!0);if(M().getInt32(r+4,!0))throw V(_)}finally{n.__wbindgen_add_to_stack_pointer(16),N[J++]=void 0}}set_css_id(t,e,_){try{let s=n.__wbindgen_add_to_stack_pointer(-16),a=B(t,n.__wbindgen_export),d=Y;var r=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),i=Y;n.mainthreadwasmcontext_set_css_id(s,this.__wbg_ptr,a,d,e,r,i);var o=M().getInt32(s+0,!0);if(M().getInt32(s+4,!0))throw V(o)}finally{n.__wbindgen_add_to_stack_pointer(16)}}set_dataset(t,e,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_set_dataset(i,this.__wbg_ptr,t,z(e),z(_));var r=M().getInt32(i+0,!0);if(M().getInt32(i+4,!0))throw V(r)}finally{n.__wbindgen_add_to_stack_pointer(16),N[J++]=void 0,N[J++]=void 0}}set_page_element_unique_id(t){n.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,t)}take_timing_flags(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_take_timing_flags(r,this.__wbg_ptr);var t=M().getInt32(r+0,!0),e=M().getInt32(r+4,!0),_=O(t,e).slice();return n.__wbindgen_export4(t,4*e,4),_}finally{n.__wbindgen_add_to_stack_pointer(16)}}update_component_css_id(t,e){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_update_component_css_id(r,this.__wbg_ptr,t,e);var _=M().getInt32(r+0,!0);if(M().getInt32(r+4,!0))throw V(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}update_component_id(t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16);var _=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),r=Y;n.mainthreadwasmcontext_update_component_id(o,this.__wbg_ptr,t,_,r);var i=M().getInt32(o+0,!0);if(M().getInt32(o+4,!0))throw V(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}update_css_og_style(t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16);var _=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),r=Y;n.mainthreadwasmcontext_update_css_og_style(o,this.__wbg_ptr,t,_,r);var i=M().getInt32(o+0,!0);if(M().getInt32(o+4,!0))throw V(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rawstyleinfo_free(t,0)}append_import(t,e){n.rawstyleinfo_append_import(this.__wbg_ptr,t,e)}constructor(){let t=n.rawstyleinfo_new();return this.__wbg_ptr=t,I.register(this,this.__wbg_ptr,this),this}push_rule(t,e){j(e,a);var _=e.__destroy_into_raw();n.rawstyleinfo_push_rule(this.__wbg_ptr,t,_)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class s{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rawstyleinfomap_free(t,0)}insert(t,e){let _=X(t,n.__wbindgen_export,n.__wbindgen_export2),r=Y;j(e,o);var i=e.__destroy_into_raw();n.rawstyleinfomap_insert(this.__wbg_ptr,_,r,i)}constructor(){let t=n.rawstyleinfomap_new();return this.__wbg_ptr=t,k.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class a{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rule_free(t,0)}constructor(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16),i=X(t,n.__wbindgen_export,n.__wbindgen_export2),o=Y;n.rule_new(r,i,o);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return this.__wbg_ptr=e,R.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16)}}push_declaration(t,e){let _=X(t,n.__wbindgen_export,n.__wbindgen_export2),r=Y,i=X(e,n.__wbindgen_export,n.__wbindgen_export2),o=Y;n.rule_push_declaration(this.__wbg_ptr,_,r,i,o)}push_rule_children(t){j(t,a);var e=t.__destroy_into_raw();n.rule_push_rule_children(this.__wbg_ptr,e)}set_prelude(t){j(t,d);var e=t.__destroy_into_raw();n.rule_set_prelude(this.__wbg_ptr,e)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class d{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_ruleprelude_free(t,0)}constructor(){let t=n.ruleprelude_new();return this.__wbg_ptr=t,S.register(this,this.__wbg_ptr,this),this}push_selector(t){j(t,g);var e=t.__destroy_into_raw();n.ruleprelude_push_selector(this.__wbg_ptr,e)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class g{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_selector_free(t,0)}constructor(){let t=n.selector_new();return this.__wbg_ptr=t,E.register(this,this.__wbg_ptr,this),this}push_one_selector_section(t,e){try{let r=n.__wbindgen_add_to_stack_pointer(-16),i=X(t,n.__wbindgen_export,n.__wbindgen_export2),o=Y,s=X(e,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.selector_push_one_selector_section(r,this.__wbg_ptr,i,o,s,a);var _=M().getInt32(r+0,!0);if(M().getInt32(r+4,!0))throw V(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class l{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_stylesheetresource_free(t,0)}constructor(t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.stylesheetresource_new(i,F(t),F(e));var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);if(M().getInt32(i+8,!0))throw V(r);return this.__wbg_ptr=_,A.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16)}}}function b(t,e,_){try{let o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y;var r=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),i=Y;n.add_inline_style_raw_string_key(z(t),o,s,r,i)}finally{N[J++]=void 0}}function w(t,e,_,r,i,o){try{let l=n.__wbindgen_add_to_stack_pointer(-16);var s=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.decode_style_info(l,F(t),s,a,_,r,i,o);var d=M().getInt32(l+0,!0),g=M().getInt32(l+4,!0);if(M().getInt32(l+8,!0))throw V(g);return V(d)}finally{n.__wbindgen_add_to_stack_pointer(16)}}function c(t,e,_,r,i,s){try{let w=n.__wbindgen_add_to_stack_pointer(-16);j(t,o);var a=t.__destroy_into_raw(),d=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),g=Y;n.encode_legacy_json_generated_raw_style_info(w,a,e,d,g,r,i,s);var l=M().getInt32(w+0,!0),b=M().getInt32(w+4,!0);if(M().getInt32(w+8,!0))throw V(b);return V(l)}finally{n.__wbindgen_add_to_stack_pointer(16)}}function u(t){let e,_;try{let g=n.__wbindgen_add_to_stack_pointer(-16);n.get_font_face_content(g,F(t));var r=M().getInt32(g+0,!0),i=M().getInt32(g+4,!0),o=M().getInt32(g+8,!0),s=M().getInt32(g+12,!0),a=r,d=i;if(s)throw a=0,d=0,V(o);return e=a,_=d,T(a,d)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1)}}function p(t){let e,_;try{let g=n.__wbindgen_add_to_stack_pointer(-16);n.get_style_content(g,F(t));var r=M().getInt32(g+0,!0),i=M().getInt32(g+4,!0),o=M().getInt32(g+8,!0),s=M().getInt32(g+12,!0),a=r,d=i;if(s)throw a=0,d=0,V(o);return e=a,_=d,T(a,d)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1)}}function f(t,e,_,r,i){try{let o=G(e,n.__wbindgen_export),s=Y;n.set_inline_styles_in_key_value_vec(z(t),o,s,_,r,i)}finally{N[J++]=void 0}}function y(t,e,_,r,i){try{let o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y,a=n.set_inline_styles_in_str(z(t),o,s,_,r,i);return 0!==a}finally{N[J++]=void 0}}function h(t,e,_){try{var r=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),i=Y;n.set_inline_styles_number_key(z(t),e,r,i)}finally{N[J++]=void 0}}function m(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){return F(Error(T(t,e)))},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let _=X(function t(e){let _,n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){let t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==n){let t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){let _=e.length,n="[";_>0&&(n+=t(e[0]));for(let r=1;r<_;r++)n+=", "+t(e[r]);return n+"]"}let r=/\[object ([^\]]+)\]/.exec(toString.call(e));if(!r||!(r.length>1))return toString.call(e);if("Object"==(_=r[1]))try{return"Object("+JSON.stringify(e)+")"}catch(t){return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
-
${e.stack}`:_}(N[e]),n.__wbindgen_export,n.__wbindgen_export2),r=Y;M().setInt32(t+4,r,!0),M().setInt32(t+0,_,!0)},__wbg___wbindgen_is_null_ea9085d691f535d3:function(t){return null===N[t]},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return void 0===N[t]},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(t,e){return N[t]===N[e]},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let _=N[e],r="string"==typeof _?_:void 0;var i=D(r)?0:X(r,n.__wbindgen_export,n.__wbindgen_export2),o=Y;M().setInt32(t+4,o,!0),M().setInt32(t+0,i,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw Error(T(t,e))},__wbg_addEventListener_514c0d1b9cb98d61:function(t,e,_){N[t].addEventListener(T(e,_))},__wbg_appendChild_f553e8704c4f14a6:function(){return $(function(t,e){return F(N[t].appendChild(N[e]))},arguments)},__wbg_cloneNode_5f99da4333e10617:function(){return $(function(t,e){return F(N[t].cloneNode(0!==e))},arguments)},__wbg_createElement_fcbc0805de826d62:function(){return $(function(t,e,_){return F(N[t].createElement(T(e,_)))},arguments)},__wbg_cssRules_a96ba5e195723d36:function(){return $(function(t){return F(N[t].cssRules)},arguments)},__wbg_deref_e6425a8fa9d03a9d:function(t){let e=N[t].deref();return D(e)?0:F(e)},__wbg_disableElementEvent_00750da2a3d98d3b:function(){return $(function(t,e,_,n){N[t].disableElementEvent(N[e],T(_,n))},arguments)},__wbg_enableElementEvent_d3b114945b78a398:function(){return $(function(t,e,_,n){N[t].enableElementEvent(N[e],T(_,n))},arguments)},__wbg_eventinfo_new:function(t){return F(r.__wrap(t))},__wbg_getClassList_4ef38849a4003220:function(){return $(function(t,e,_){let r=G(N[e].getClassList(N[_]),n.__wbindgen_export),i=Y;M().setInt32(t+4,i,!0),M().setInt32(t+0,r,!0)},arguments)},__wbg_get_507a50627bffa49b:function(t,e){return F(N[t][e>>>0])},__wbg_get_78f252d074a84d0b:function(){return $(function(t,e){return F(Reflect.get(N[t],N[e]))},arguments)},__wbg_has_8374cf06984d8bfc:function(){return $(function(t,e){return Reflect.has(N[t],N[e])},arguments)},__wbg_host_18450e7fb2bf2108:function(t){return F(N[t].host)},__wbg_insertRule_7f44b1a334b975c5:function(){return $(function(t,e,_,n){return N[t].insertRule(T(e,_),n>>>0)},arguments)},__wbg_item_6c9c57d2b0d3b03b:function(t,e){let _=N[t].item(e>>>0);return D(_)?0:F(_)},__wbg_keys_58421f8f96795607:function(t){return F(Object.keys(N[t]))},__wbg_length_1f0964f4a5e2c6d8:function(t){return N[t].length},__wbg_length_370319915dc99107:function(t){return N[t].length},__wbg_length_c9d11fa3c1e97549:function(t){return N[t].length},__wbg_new_da52cf8fe3429cb2:function(){return F({})},__wbg_new_from_slice_77cdfb7977362f3c:function(t,e){return F(new Uint8Array(W(t,e)))},__wbg_ownerDocument_5a7a5473f8709b3e:function(t){let e=N[t].ownerDocument;return D(e)?0:F(e)},__wbg_prototypesetcall_4770620bbe4688a0:function(t,e,_){Uint8Array.prototype.set.call(W(t,e),N[_])},__wbg_publishEvent_98f316996d32c83c:function(){return $(function(t,e,_,n,r,i,o,s,a,d){N[t].publishEvent(T(e,_),0===n?void 0:T(n,r),N[i],o>>>0,N[s],a>>>0,N[d])},arguments)},__wbg_removeAttribute_1e7d2c409776d836:function(){return $(function(t,e,_){N[t].removeAttribute(T(e,_))},arguments)},__wbg_removeAttribute_425b95bcfcd686d9:function(){return $(function(t,e,_,n){N[t].removeAttribute(N[e],T(_,n))},arguments)},__wbg_removeProperty_70da952bc1b493fa:function(){return $(function(t,e,_,r){let i=X(N[e].removeProperty(T(_,r)),n.__wbindgen_export,n.__wbindgen_export2),o=Y;M().setInt32(t+4,o,!0),M().setInt32(t+0,i,!0)},arguments)},__wbg_runElementClosure_6b4e42c656f6ee9d:function(t,e,_,n,r,i,o){N[t].runElementClosure(N[e],N[_],n>>>0,N[r],i>>>0,N[o])},__wbg_runWorklet_3484f0c70445f9a7:function(){return $(function(t,e,_,n,r,i,o){N[t].runWorklet(N[e],N[_],n>>>0,N[r],i>>>0,N[o])},arguments)},__wbg_setAttribute_39a501bc57b5d356:function(){return $(function(t,e,_,n,r,i){N[t].setAttribute(N[e],T(_,n),T(r,i))},arguments)},__wbg_setAttribute_71039043be82d098:function(){return $(function(t,e,_,n,r){N[t].setAttribute(T(e,_),T(n,r))},arguments)},__wbg_setProperty_e4e51b1b1d681d15:function(){return $(function(t,e,_,n,r){N[t].setProperty(T(e,_),T(n,r))},arguments)},__wbg_set_8535240470bf2500:function(){return $(function(t,e,_){return Reflect.set(N[t],N[e],N[_])},arguments)},__wbg_set_cssText_1d203a1b8ff80e20:function(t,e,_){N[t].cssText=T(e,_)},__wbg_set_textContent_54dcad83ae15772d:function(t,e,_){N[t].textContent=0===e?void 0:T(e,_)},__wbg_sheet_9201185a230c1cdc:function(t){let e=N[t].sheet;return D(e)?0:F(e)},__wbg_style_00ba0d9bec50983f:function(t){return F(N[t].style)},__wbg_style_6657aed849e5d757:function(t){return F(N[t].style)},__wbindgen_cast_0000000000000001:function(t,e){return F(T(t,e))},__wbindgen_object_clone_ref:function(t){return F(N[t])},__wbindgen_object_drop_ref:function(t){V(t)}}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);let x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_eventinfo_free(t,1)),v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_mainthreadwasmcontext_free(t,1)),I="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rawstyleinfo_free(t,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rawstyleinfomap_free(t,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rule_free(t,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_ruleprelude_free(t,1)),E="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_selector_free(t,1)),A="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_stylesheetresource_free(t,1));function F(t){P===N.length&&N.push(N.length+1);let e=P;return P=N[e],N[e]=t,e}function j(t,e){if(!(t instanceof e))throw Error(`expected instance of ${e.name}`)}function z(t){if(1==J)throw Error("out of js stack");return N[--J]=t,J}function O(t,e){t>>>=0;let _=M(),n=[];for(let r=t;r<t+4*e;r+=4)n.push(V(_.getUint32(r,!0)));return n}function W(t,e){return t>>>=0,U().subarray(t/1,t/1+e)}let C=null;function M(){return(null===C||!0===C.buffer.detached||void 0===C.buffer.detached&&C.buffer!==n.memory.buffer)&&(C=new DataView(n.memory.buffer)),C}function T(t,e){var _,n;return _=t>>>0,(K+=n=e)>=0x7ff00000&&((H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),K=n),H.decode(U().subarray(_,_+n))}let q=null,L=null;function U(){return(null===L||0===L.byteLength)&&(L=new Uint8Array(n.memory.buffer)),L}function $(t,e){try{return t.apply(this,e)}catch(t){n.__wbindgen_export3(F(t))}}let N=Array(1024).fill(void 0);N.push(void 0,null,!0,!1);let P=N.length;function D(t){return null==t}function B(t,e){let _=e(4*t.length,4)>>>0;return((null===q||0===q.byteLength)&&(q=new Uint32Array(n.memory.buffer)),q).set(t,_/4),Y=t.length,_}function G(t,e){let _=e(4*t.length,4)>>>0,n=M();for(let e=0;e<t.length;e++)n.setUint32(_+4*e,F(t[e]),!0);return Y=t.length,_}function X(t,e,_){if(void 0===_){let _=Q.encode(t),n=e(_.length,1)>>>0;return U().subarray(n,n+_.length).set(_),Y=_.length,n}let n=t.length,r=e(n,1)>>>0,i=U(),o=0;for(;o<n;o++){let e=t.charCodeAt(o);if(e>127)break;i[r+o]=e}if(o!==n){0!==o&&(t=t.slice(o)),r=_(r,n,n=o+3*t.length,1)>>>0;let e=U().subarray(r+o,r+n);o+=Q.encodeInto(t,e).written,r=_(r,n,o,1)>>>0}return Y=o,r}let J=1024;function V(t){let e=N[t];return t<1028||(N[t]=P,P=t),e}let H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();let K=0,Q=new TextEncoder;"encodeInto"in Q||(Q.encodeInto=function(t,e){let _=Q.encode(t);return e.set(_),{read:t.length,written:_.length}});let Y=0;function Z(t,e){return n=t.exports,C=null,q=null,L=null,n}async function tt(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(e){if(t.ok&&function(t){switch(t){case"basic":case"cors":case"default":return!0}return!1}(t.type)&&"application/wasm"!==t.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e);else throw e}let _=await t.arrayBuffer();return await WebAssembly.instantiate(_,e)}{let _=await WebAssembly.instantiate(t,e);return _ instanceof WebAssembly.Instance?{instance:_,module:t}:_}}function te(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=m();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),Z(new WebAssembly.Instance(t,e),t)}async function t_(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t&&(t=new URL(_(
|
|
1
|
+
"use strict";(globalThis.rspackChunk_byted_doubao_apps_web_sdk_debugger_app||=[]).push([[778],{63279(t,e,_){let n;_.r(e),_(44622),_(66528),_(15254),_(20303),_(99166),_(6106),_(22742),_(37553),_(62148),_(89055),_(12205),_(65850),_(65135),_(5876),_(94359),_(28016),_(38641),_(82247),_(11839),_(56109),_(63589),_(14104),_(52205),_(40768),_(76235);class r{static __wrap(t){let e=Object.create(r.prototype);return e.__wbg_ptr=t,x.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_eventinfo_free(t,0)}get event_handler(){return V(n.__wbg_get_eventinfo_event_handler(this.__wbg_ptr))}get event_name(){let t,e;try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.__wbg_get_eventinfo_event_name(i,this.__wbg_ptr);var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);return t=_,e=r,T(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(t,e,1)}}get event_type(){let t,e;try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.__wbg_get_eventinfo_event_type(i,this.__wbg_ptr);var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);return t=_,e=r,T(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(t,e,1)}}set event_handler(t){n.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,F(t))}set event_name(t){let e=X(t,n.__wbindgen_export,n.__wbindgen_export2),_=Y;n.__wbg_set_eventinfo_event_name(this.__wbg_ptr,e,_)}set event_type(t){let e=X(t,n.__wbindgen_export,n.__wbindgen_export2),_=Y;n.__wbg_set_eventinfo_event_type(this.__wbg_ptr,e,_)}}Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.free);class i{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_mainthreadwasmcontext_free(t,0)}add_closure_event(t,e,_,r,i){let o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y,a=X(_,n.__wbindgen_export,n.__wbindgen_export2),d=Y;n.mainthreadwasmcontext_add_closure_event(this.__wbg_ptr,t,o,s,a,d,D(r)?0:F(r),D(i)?0:F(i))}add_cross_thread_event(t,e,_,r){let i=X(e,n.__wbindgen_export,n.__wbindgen_export2),o=Y,s=X(_,n.__wbindgen_export,n.__wbindgen_export2),a=Y;var d=D(r)?0:X(r,n.__wbindgen_export,n.__wbindgen_export2),g=Y;n.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,t,i,o,s,a,d,g)}add_dataset(t,e,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_add_dataset(i,this.__wbg_ptr,t,z(e),z(_));var r=M().getInt32(i+0,!0);if(M().getInt32(i+4,!0))throw V(r)}finally{n.__wbindgen_add_to_stack_pointer(16),N[J++]=void 0,N[J++]=void 0}}add_run_worklet_event(t,e,_,r){let i=X(e,n.__wbindgen_export,n.__wbindgen_export2),o=Y,s=X(_,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,t,i,o,s,a,D(r)?0:F(r))}common_event_handler(t,e,_,r){let i=B(e,n.__wbindgen_export),o=Y,s=X(_,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,F(t),i,o,s,a,r)}create_element_common(t,e,_,r,i){var o=D(i)?0:X(i,n.__wbindgen_export,n.__wbindgen_export2),s=Y;return n.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,t,F(e),F(_),D(r)?Number.MAX_SAFE_INTEGER:0|r,o,s)>>>0}dispatch_event_by_path(t,e,_,r){try{let i=B(t,n.__wbindgen_export),o=Y,s=X(e,n.__wbindgen_export,n.__wbindgen_export2),a=Y,d=n.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,i,o,s,a,_,z(r));return 0!==d}finally{N[J++]=void 0}}dispatch_global_bind_event(t,e,_){try{let r=B(t,n.__wbindgen_export),i=Y,o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y;n.mainthreadwasmcontext_dispatch_global_bind_event(this.__wbg_ptr,r,i,o,s,z(_))}finally{N[J++]=void 0}}gc(){n.mainthreadwasmcontext_gc(this.__wbg_ptr)}get_component_id(t){try{let i,o=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_component_id(o,this.__wbg_ptr,t);var e=M().getInt32(o+0,!0),_=M().getInt32(o+4,!0),r=M().getInt32(o+8,!0);if(M().getInt32(o+12,!0))throw V(r);return 0!==e&&(i=T(e,_).slice(),n.__wbindgen_export4(e,+_,1)),i}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_config(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_config(r,this.__wbg_ptr,t);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return V(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_data_by_key(t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16),o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y;n.mainthreadwasmcontext_get_data_by_key(i,this.__wbg_ptr,t,o,s);var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);if(M().getInt32(i+8,!0))throw V(r);return V(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_dataset(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_dataset(r,this.__wbg_ptr,t);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return V(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_dom_by_unique_id(t){return V(n.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,t))}get_element_config(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_element_config(r,this.__wbg_ptr,t);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return V(e)}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_event(t,e,_){let r=X(e,n.__wbindgen_export,n.__wbindgen_export2),i=Y,o=X(_,n.__wbindgen_export,n.__wbindgen_export2),s=Y;return V(n.mainthreadwasmcontext_get_event(this.__wbg_ptr,t,r,i,o,s))}get_events(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_get_events(i,this.__wbg_ptr,t);var e=M().getInt32(i+0,!0),_=M().getInt32(i+4,!0),r=O(e,_).slice();return n.__wbindgen_export4(e,4*_,4),r}finally{n.__wbindgen_add_to_stack_pointer(16)}}get_unique_id_by_component_id(t){let e=X(t,n.__wbindgen_export,n.__wbindgen_export2),_=Y,r=n.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,e,_);return r===Number.MAX_SAFE_INTEGER?void 0:r}constructor(t,e,_){let r=n.mainthreadwasmcontext_new(F(t),F(e),_);return this.__wbg_ptr=r,v.register(this,this.__wbg_ptr,this),this}push_style_sheet(t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16);j(t,l);var _=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),r=Y;n.mainthreadwasmcontext_push_style_sheet(o,this.__wbg_ptr,t.__wbg_ptr,_,r);var i=M().getInt32(o+0,!0);if(M().getInt32(o+4,!0))throw V(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}set_config(t,e){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_set_config(r,this.__wbg_ptr,t,z(e));var _=M().getInt32(r+0,!0);if(M().getInt32(r+4,!0))throw V(_)}finally{n.__wbindgen_add_to_stack_pointer(16),N[J++]=void 0}}set_css_id(t,e,_){try{let s=n.__wbindgen_add_to_stack_pointer(-16),a=B(t,n.__wbindgen_export),d=Y;var r=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),i=Y;n.mainthreadwasmcontext_set_css_id(s,this.__wbg_ptr,a,d,e,r,i);var o=M().getInt32(s+0,!0);if(M().getInt32(s+4,!0))throw V(o)}finally{n.__wbindgen_add_to_stack_pointer(16)}}set_dataset(t,e,_){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_set_dataset(i,this.__wbg_ptr,t,z(e),z(_));var r=M().getInt32(i+0,!0);if(M().getInt32(i+4,!0))throw V(r)}finally{n.__wbindgen_add_to_stack_pointer(16),N[J++]=void 0,N[J++]=void 0}}set_page_element_unique_id(t){n.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,t)}take_timing_flags(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_take_timing_flags(r,this.__wbg_ptr);var t=M().getInt32(r+0,!0),e=M().getInt32(r+4,!0),_=O(t,e).slice();return n.__wbindgen_export4(t,4*e,4),_}finally{n.__wbindgen_add_to_stack_pointer(16)}}update_component_css_id(t,e){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.mainthreadwasmcontext_update_component_css_id(r,this.__wbg_ptr,t,e);var _=M().getInt32(r+0,!0);if(M().getInt32(r+4,!0))throw V(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}update_component_id(t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16);var _=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),r=Y;n.mainthreadwasmcontext_update_component_id(o,this.__wbg_ptr,t,_,r);var i=M().getInt32(o+0,!0);if(M().getInt32(o+4,!0))throw V(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}update_css_og_style(t,e){try{let o=n.__wbindgen_add_to_stack_pointer(-16);var _=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),r=Y;n.mainthreadwasmcontext_update_css_og_style(o,this.__wbg_ptr,t,_,r);var i=M().getInt32(o+0,!0);if(M().getInt32(o+4,!0))throw V(i)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class o{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rawstyleinfo_free(t,0)}append_import(t,e){n.rawstyleinfo_append_import(this.__wbg_ptr,t,e)}constructor(){let t=n.rawstyleinfo_new();return this.__wbg_ptr=t,I.register(this,this.__wbg_ptr,this),this}push_rule(t,e){j(e,a);var _=e.__destroy_into_raw();n.rawstyleinfo_push_rule(this.__wbg_ptr,t,_)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class s{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rawstyleinfomap_free(t,0)}insert(t,e){let _=X(t,n.__wbindgen_export,n.__wbindgen_export2),r=Y;j(e,o);var i=e.__destroy_into_raw();n.rawstyleinfomap_insert(this.__wbg_ptr,_,r,i)}constructor(){let t=n.rawstyleinfomap_new();return this.__wbg_ptr=t,k.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class a{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rule_free(t,0)}constructor(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16),i=X(t,n.__wbindgen_export,n.__wbindgen_export2),o=Y;n.rule_new(r,i,o);var e=M().getInt32(r+0,!0),_=M().getInt32(r+4,!0);if(M().getInt32(r+8,!0))throw V(_);return this.__wbg_ptr=e,R.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16)}}push_declaration(t,e){let _=X(t,n.__wbindgen_export,n.__wbindgen_export2),r=Y,i=X(e,n.__wbindgen_export,n.__wbindgen_export2),o=Y;n.rule_push_declaration(this.__wbg_ptr,_,r,i,o)}push_rule_children(t){j(t,a);var e=t.__destroy_into_raw();n.rule_push_rule_children(this.__wbg_ptr,e)}set_prelude(t){j(t,d);var e=t.__destroy_into_raw();n.rule_set_prelude(this.__wbg_ptr,e)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class d{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_ruleprelude_free(t,0)}constructor(){let t=n.ruleprelude_new();return this.__wbg_ptr=t,S.register(this,this.__wbg_ptr,this),this}push_selector(t){j(t,g);var e=t.__destroy_into_raw();n.ruleprelude_push_selector(this.__wbg_ptr,e)}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class g{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_selector_free(t,0)}constructor(){let t=n.selector_new();return this.__wbg_ptr=t,E.register(this,this.__wbg_ptr,this),this}push_one_selector_section(t,e){try{let r=n.__wbindgen_add_to_stack_pointer(-16),i=X(t,n.__wbindgen_export,n.__wbindgen_export2),o=Y,s=X(e,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.selector_push_one_selector_section(r,this.__wbg_ptr,i,o,s,a);var _=M().getInt32(r+0,!0);if(M().getInt32(r+4,!0))throw V(_)}finally{n.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class l{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,A.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_stylesheetresource_free(t,0)}constructor(t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.stylesheetresource_new(i,F(t),F(e));var _=M().getInt32(i+0,!0),r=M().getInt32(i+4,!0);if(M().getInt32(i+8,!0))throw V(r);return this.__wbg_ptr=_,A.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16)}}}function b(t,e,_){try{let o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y;var r=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),i=Y;n.add_inline_style_raw_string_key(z(t),o,s,r,i)}finally{N[J++]=void 0}}function w(t,e,_,r,i,o){try{let l=n.__wbindgen_add_to_stack_pointer(-16);var s=D(e)?0:X(e,n.__wbindgen_export,n.__wbindgen_export2),a=Y;n.decode_style_info(l,F(t),s,a,_,r,i,o);var d=M().getInt32(l+0,!0),g=M().getInt32(l+4,!0);if(M().getInt32(l+8,!0))throw V(g);return V(d)}finally{n.__wbindgen_add_to_stack_pointer(16)}}function c(t,e,_,r,i,s){try{let w=n.__wbindgen_add_to_stack_pointer(-16);j(t,o);var a=t.__destroy_into_raw(),d=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),g=Y;n.encode_legacy_json_generated_raw_style_info(w,a,e,d,g,r,i,s);var l=M().getInt32(w+0,!0),b=M().getInt32(w+4,!0);if(M().getInt32(w+8,!0))throw V(b);return V(l)}finally{n.__wbindgen_add_to_stack_pointer(16)}}function u(t){let e,_;try{let g=n.__wbindgen_add_to_stack_pointer(-16);n.get_font_face_content(g,F(t));var r=M().getInt32(g+0,!0),i=M().getInt32(g+4,!0),o=M().getInt32(g+8,!0),s=M().getInt32(g+12,!0),a=r,d=i;if(s)throw a=0,d=0,V(o);return e=a,_=d,T(a,d)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1)}}function p(t){let e,_;try{let g=n.__wbindgen_add_to_stack_pointer(-16);n.get_style_content(g,F(t));var r=M().getInt32(g+0,!0),i=M().getInt32(g+4,!0),o=M().getInt32(g+8,!0),s=M().getInt32(g+12,!0),a=r,d=i;if(s)throw a=0,d=0,V(o);return e=a,_=d,T(a,d)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1)}}function f(t,e,_,r,i){try{let o=G(e,n.__wbindgen_export),s=Y;n.set_inline_styles_in_key_value_vec(z(t),o,s,_,r,i)}finally{N[J++]=void 0}}function y(t,e,_,r,i){try{let o=X(e,n.__wbindgen_export,n.__wbindgen_export2),s=Y,a=n.set_inline_styles_in_str(z(t),o,s,_,r,i);return 0!==a}finally{N[J++]=void 0}}function h(t,e,_){try{var r=D(_)?0:X(_,n.__wbindgen_export,n.__wbindgen_export2),i=Y;n.set_inline_styles_number_key(z(t),e,r,i)}finally{N[J++]=void 0}}function m(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_92b29b0548f8b746:function(t,e){return F(Error(T(t,e)))},__wbg___wbindgen_debug_string_c25d447a39f5578f:function(t,e){let _=X(function t(e){let _,n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){let t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==n){let t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){let _=e.length,n="[";_>0&&(n+=t(e[0]));for(let r=1;r<_;r++)n+=", "+t(e[r]);return n+"]"}let r=/\[object ([^\]]+)\]/.exec(toString.call(e));if(!r||!(r.length>1))return toString.call(e);if("Object"==(_=r[1]))try{return"Object("+JSON.stringify(e)+")"}catch(t){return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:_}(N[e]),n.__wbindgen_export,n.__wbindgen_export2),r=Y;M().setInt32(t+4,r,!0),M().setInt32(t+0,_,!0)},__wbg___wbindgen_is_null_ea9085d691f535d3:function(t){return null===N[t]},__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return void 0===N[t]},__wbg___wbindgen_jsval_eq_e659fcf7b0e32763:function(t,e){return N[t]===N[e]},__wbg___wbindgen_string_get_b0ca35b86a603356:function(t,e){let _=N[e],r="string"==typeof _?_:void 0;var i=D(r)?0:X(r,n.__wbindgen_export,n.__wbindgen_export2),o=Y;M().setInt32(t+4,o,!0),M().setInt32(t+0,i,!0)},__wbg___wbindgen_throw_344f42d3211c4765:function(t,e){throw Error(T(t,e))},__wbg_addEventListener_514c0d1b9cb98d61:function(t,e,_){N[t].addEventListener(T(e,_))},__wbg_appendChild_f553e8704c4f14a6:function(){return $(function(t,e){return F(N[t].appendChild(N[e]))},arguments)},__wbg_cloneNode_5f99da4333e10617:function(){return $(function(t,e){return F(N[t].cloneNode(0!==e))},arguments)},__wbg_createElement_fcbc0805de826d62:function(){return $(function(t,e,_){return F(N[t].createElement(T(e,_)))},arguments)},__wbg_cssRules_a96ba5e195723d36:function(){return $(function(t){return F(N[t].cssRules)},arguments)},__wbg_deref_e6425a8fa9d03a9d:function(t){let e=N[t].deref();return D(e)?0:F(e)},__wbg_disableElementEvent_00750da2a3d98d3b:function(){return $(function(t,e,_,n){N[t].disableElementEvent(N[e],T(_,n))},arguments)},__wbg_enableElementEvent_d3b114945b78a398:function(){return $(function(t,e,_,n){N[t].enableElementEvent(N[e],T(_,n))},arguments)},__wbg_eventinfo_new:function(t){return F(r.__wrap(t))},__wbg_getClassList_4ef38849a4003220:function(){return $(function(t,e,_){let r=G(N[e].getClassList(N[_]),n.__wbindgen_export),i=Y;M().setInt32(t+4,i,!0),M().setInt32(t+0,r,!0)},arguments)},__wbg_get_507a50627bffa49b:function(t,e){return F(N[t][e>>>0])},__wbg_get_78f252d074a84d0b:function(){return $(function(t,e){return F(Reflect.get(N[t],N[e]))},arguments)},__wbg_has_8374cf06984d8bfc:function(){return $(function(t,e){return Reflect.has(N[t],N[e])},arguments)},__wbg_host_18450e7fb2bf2108:function(t){return F(N[t].host)},__wbg_insertRule_7f44b1a334b975c5:function(){return $(function(t,e,_,n){return N[t].insertRule(T(e,_),n>>>0)},arguments)},__wbg_item_6c9c57d2b0d3b03b:function(t,e){let _=N[t].item(e>>>0);return D(_)?0:F(_)},__wbg_keys_58421f8f96795607:function(t){return F(Object.keys(N[t]))},__wbg_length_1f0964f4a5e2c6d8:function(t){return N[t].length},__wbg_length_370319915dc99107:function(t){return N[t].length},__wbg_length_c9d11fa3c1e97549:function(t){return N[t].length},__wbg_new_da52cf8fe3429cb2:function(){return F({})},__wbg_new_from_slice_77cdfb7977362f3c:function(t,e){return F(new Uint8Array(W(t,e)))},__wbg_ownerDocument_5a7a5473f8709b3e:function(t){let e=N[t].ownerDocument;return D(e)?0:F(e)},__wbg_prototypesetcall_4770620bbe4688a0:function(t,e,_){Uint8Array.prototype.set.call(W(t,e),N[_])},__wbg_publishEvent_98f316996d32c83c:function(){return $(function(t,e,_,n,r,i,o,s,a,d){N[t].publishEvent(T(e,_),0===n?void 0:T(n,r),N[i],o>>>0,N[s],a>>>0,N[d])},arguments)},__wbg_removeAttribute_1e7d2c409776d836:function(){return $(function(t,e,_){N[t].removeAttribute(T(e,_))},arguments)},__wbg_removeAttribute_425b95bcfcd686d9:function(){return $(function(t,e,_,n){N[t].removeAttribute(N[e],T(_,n))},arguments)},__wbg_removeProperty_70da952bc1b493fa:function(){return $(function(t,e,_,r){let i=X(N[e].removeProperty(T(_,r)),n.__wbindgen_export,n.__wbindgen_export2),o=Y;M().setInt32(t+4,o,!0),M().setInt32(t+0,i,!0)},arguments)},__wbg_runElementClosure_6b4e42c656f6ee9d:function(t,e,_,n,r,i,o){N[t].runElementClosure(N[e],N[_],n>>>0,N[r],i>>>0,N[o])},__wbg_runWorklet_3484f0c70445f9a7:function(){return $(function(t,e,_,n,r,i,o){N[t].runWorklet(N[e],N[_],n>>>0,N[r],i>>>0,N[o])},arguments)},__wbg_setAttribute_39a501bc57b5d356:function(){return $(function(t,e,_,n,r,i){N[t].setAttribute(N[e],T(_,n),T(r,i))},arguments)},__wbg_setAttribute_71039043be82d098:function(){return $(function(t,e,_,n,r){N[t].setAttribute(T(e,_),T(n,r))},arguments)},__wbg_setProperty_e4e51b1b1d681d15:function(){return $(function(t,e,_,n,r){N[t].setProperty(T(e,_),T(n,r))},arguments)},__wbg_set_8535240470bf2500:function(){return $(function(t,e,_){return Reflect.set(N[t],N[e],N[_])},arguments)},__wbg_set_cssText_1d203a1b8ff80e20:function(t,e,_){N[t].cssText=T(e,_)},__wbg_set_textContent_54dcad83ae15772d:function(t,e,_){N[t].textContent=0===e?void 0:T(e,_)},__wbg_sheet_9201185a230c1cdc:function(t){let e=N[t].sheet;return D(e)?0:F(e)},__wbg_style_00ba0d9bec50983f:function(t){return F(N[t].style)},__wbg_style_6657aed849e5d757:function(t){return F(N[t].style)},__wbindgen_cast_0000000000000001:function(t,e){return F(T(t,e))},__wbindgen_object_clone_ref:function(t){return F(N[t])},__wbindgen_object_drop_ref:function(t){V(t)}}}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);let x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_eventinfo_free(t,1)),v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_mainthreadwasmcontext_free(t,1)),I="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rawstyleinfo_free(t,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rawstyleinfomap_free(t,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rule_free(t,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_ruleprelude_free(t,1)),E="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_selector_free(t,1)),A="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_stylesheetresource_free(t,1));function F(t){P===N.length&&N.push(N.length+1);let e=P;return P=N[e],N[e]=t,e}function j(t,e){if(!(t instanceof e))throw Error(`expected instance of ${e.name}`)}function z(t){if(1==J)throw Error("out of js stack");return N[--J]=t,J}function O(t,e){t>>>=0;let _=M(),n=[];for(let r=t;r<t+4*e;r+=4)n.push(V(_.getUint32(r,!0)));return n}function W(t,e){return t>>>=0,U().subarray(t/1,t/1+e)}let C=null;function M(){return(null===C||!0===C.buffer.detached||void 0===C.buffer.detached&&C.buffer!==n.memory.buffer)&&(C=new DataView(n.memory.buffer)),C}function T(t,e){var _,n;return _=t>>>0,(K+=n=e)>=0x7ff00000&&((H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),K=n),H.decode(U().subarray(_,_+n))}let q=null,L=null;function U(){return(null===L||0===L.byteLength)&&(L=new Uint8Array(n.memory.buffer)),L}function $(t,e){try{return t.apply(this,e)}catch(t){n.__wbindgen_export3(F(t))}}let N=Array(1024).fill(void 0);N.push(void 0,null,!0,!1);let P=N.length;function D(t){return null==t}function B(t,e){let _=e(4*t.length,4)>>>0;return((null===q||0===q.byteLength)&&(q=new Uint32Array(n.memory.buffer)),q).set(t,_/4),Y=t.length,_}function G(t,e){let _=e(4*t.length,4)>>>0,n=M();for(let e=0;e<t.length;e++)n.setUint32(_+4*e,F(t[e]),!0);return Y=t.length,_}function X(t,e,_){if(void 0===_){let _=Q.encode(t),n=e(_.length,1)>>>0;return U().subarray(n,n+_.length).set(_),Y=_.length,n}let n=t.length,r=e(n,1)>>>0,i=U(),o=0;for(;o<n;o++){let e=t.charCodeAt(o);if(e>127)break;i[r+o]=e}if(o!==n){0!==o&&(t=t.slice(o)),r=_(r,n,n=o+3*t.length,1)>>>0;let e=U().subarray(r+o,r+n);o+=Q.encodeInto(t,e).written,r=_(r,n,o,1)>>>0}return Y=o,r}let J=1024;function V(t){let e=N[t];return t<1028||(N[t]=P,P=t),e}let H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();let K=0,Q=new TextEncoder;"encodeInto"in Q||(Q.encodeInto=function(t,e){let _=Q.encode(t);return e.set(_),{read:t.length,written:_.length}});let Y=0;function Z(t,e){return n=t.exports,C=null,q=null,L=null,n}async function tt(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(e){if(t.ok&&function(t){switch(t){case"basic":case"cors":case"default":return!0}return!1}(t.type)&&"application/wasm"!==t.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e);else throw e}let _=await t.arrayBuffer();return await WebAssembly.instantiate(_,e)}{let _=await WebAssembly.instantiate(t,e);return _ instanceof WebAssembly.Instance?{instance:_,module:t}:_}}function te(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=m();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),Z(new WebAssembly.Instance(t,e),t)}async function t_(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t&&(t=new URL(_(37533),_.b));let e=m();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));let{instance:r,module:i}=await tt(await t,e);return Z(r,i)}_.d(e,{EventInfo:()=>r,MainThreadWasmContext:()=>i,RawStyleInfo:()=>o,RawStyleInfoMap:()=>s,Rule:()=>a,RulePrelude:()=>d,Selector:()=>g,StyleSheetResource:()=>l,add_inline_style_raw_string_key:()=>b,decode_style_info:()=>w,default:()=>t_,encode_legacy_json_generated_raw_style_info:()=>c,get_font_face_content:()=>u,get_style_content:()=>p,initSync:()=>te,set_inline_styles_in_key_value_vec:()=>f,set_inline_styles_in_str:()=>y,set_inline_styles_number_key:()=>h})}}]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";(globalThis.rspackChunk_byted_doubao_apps_web_sdk_debugger_app||=[]).push([[177],{92455(__unused_rspack_module,__webpack_exports__,__webpack_require__){let _computedKey,_computedKey1;__webpack_require__.r(__webpack_exports__);var He,gt,qe,Ht,Kt,M,Qt,w,P,Yt,zt,_swc_helpers_to_property_key__rspack_import_75=__webpack_require__(33553),core_js_modules_es_error_cause_js__rspack_import_0=__webpack_require__(15254),core_js_modules_es_error_cause_js__rspack_import_0_default=__webpack_require__.n(core_js_modules_es_error_cause_js__rspack_import_0),core_js_modules_es_iterator_constructor_js__rspack_import_1=__webpack_require__(42949),core_js_modules_es_iterator_constructor_js__rspack_import_1_default=__webpack_require__.n(core_js_modules_es_iterator_constructor_js__rspack_import_1),core_js_modules_es_iterator_for_each_js__rspack_import_2=__webpack_require__(84086),core_js_modules_es_iterator_for_each_js__rspack_import_2_default=__webpack_require__.n(core_js_modules_es_iterator_for_each_js__rspack_import_2),core_js_modules_es_array_push_js__rspack_import_3=__webpack_require__(14104),core_js_modules_es_array_push_js__rspack_import_3_default=__webpack_require__.n(core_js_modules_es_array_push_js__rspack_import_3),core_js_modules_es_iterator_map_js__rspack_import_4=__webpack_require__(37891),core_js_modules_es_iterator_map_js__rspack_import_4_default=__webpack_require__.n(core_js_modules_es_iterator_map_js__rspack_import_4),core_js_modules_esnext_map_delete_all_js__rspack_import_5=__webpack_require__(99811),core_js_modules_esnext_map_delete_all_js__rspack_import_5_default=__webpack_require__.n(core_js_modules_esnext_map_delete_all_js__rspack_import_5),core_js_modules_esnext_map_emplace_js__rspack_import_6=__webpack_require__(40009),core_js_modules_esnext_map_emplace_js__rspack_import_6_default=__webpack_require__.n(core_js_modules_esnext_map_emplace_js__rspack_import_6),core_js_modules_esnext_map_every_js__rspack_import_7=__webpack_require__(13035),core_js_modules_esnext_map_every_js__rspack_import_7_default=__webpack_require__.n(core_js_modules_esnext_map_every_js__rspack_import_7),core_js_modules_esnext_map_filter_js__rspack_import_8=__webpack_require__(13412),core_js_modules_esnext_map_filter_js__rspack_import_8_default=__webpack_require__.n(core_js_modules_esnext_map_filter_js__rspack_import_8),core_js_modules_esnext_map_find_js__rspack_import_9=__webpack_require__(17973),core_js_modules_esnext_map_find_js__rspack_import_9_default=__webpack_require__.n(core_js_modules_esnext_map_find_js__rspack_import_9),core_js_modules_esnext_map_find_key_js__rspack_import_10=__webpack_require__(64955),core_js_modules_esnext_map_find_key_js__rspack_import_10_default=__webpack_require__.n(core_js_modules_esnext_map_find_key_js__rspack_import_10),core_js_modules_esnext_map_get_or_insert_js__rspack_import_11=__webpack_require__(91016),core_js_modules_esnext_map_get_or_insert_js__rspack_import_11_default=__webpack_require__.n(core_js_modules_esnext_map_get_or_insert_js__rspack_import_11),core_js_modules_esnext_map_get_or_insert_computed_js__rspack_import_12=__webpack_require__(23306),core_js_modules_esnext_map_get_or_insert_computed_js__rspack_import_12_default=__webpack_require__.n(core_js_modules_esnext_map_get_or_insert_computed_js__rspack_import_12),core_js_modules_esnext_map_includes_js__rspack_import_13=__webpack_require__(76619),core_js_modules_esnext_map_includes_js__rspack_import_13_default=__webpack_require__.n(core_js_modules_esnext_map_includes_js__rspack_import_13),core_js_modules_esnext_map_key_of_js__rspack_import_14=__webpack_require__(57857),core_js_modules_esnext_map_key_of_js__rspack_import_14_default=__webpack_require__.n(core_js_modules_esnext_map_key_of_js__rspack_import_14),core_js_modules_esnext_map_map_keys_js__rspack_import_15=__webpack_require__(9975),core_js_modules_esnext_map_map_keys_js__rspack_import_15_default=__webpack_require__.n(core_js_modules_esnext_map_map_keys_js__rspack_import_15),core_js_modules_esnext_map_map_values_js__rspack_import_16=__webpack_require__(93885),core_js_modules_esnext_map_map_values_js__rspack_import_16_default=__webpack_require__.n(core_js_modules_esnext_map_map_values_js__rspack_import_16),core_js_modules_esnext_map_merge_js__rspack_import_17=__webpack_require__(812),core_js_modules_esnext_map_merge_js__rspack_import_17_default=__webpack_require__.n(core_js_modules_esnext_map_merge_js__rspack_import_17),core_js_modules_esnext_map_reduce_js__rspack_import_18=__webpack_require__(74180),core_js_modules_esnext_map_reduce_js__rspack_import_18_default=__webpack_require__.n(core_js_modules_esnext_map_reduce_js__rspack_import_18),core_js_modules_esnext_map_some_js__rspack_import_19=__webpack_require__(994),core_js_modules_esnext_map_some_js__rspack_import_19_default=__webpack_require__.n(core_js_modules_esnext_map_some_js__rspack_import_19),core_js_modules_esnext_map_update_js__rspack_import_20=__webpack_require__(4267),core_js_modules_esnext_map_update_js__rspack_import_20_default=__webpack_require__.n(core_js_modules_esnext_map_update_js__rspack_import_20),core_js_modules_es_iterator_some_js__rspack_import_21=__webpack_require__(12021),core_js_modules_es_iterator_some_js__rspack_import_21_default=__webpack_require__.n(core_js_modules_es_iterator_some_js__rspack_import_21),core_js_modules_esnext_json_parse_js__rspack_import_22=__webpack_require__(21301),core_js_modules_esnext_json_parse_js__rspack_import_22_default=__webpack_require__.n(core_js_modules_esnext_json_parse_js__rspack_import_22),core_js_modules_es_array_buffer_detached_js__rspack_import_23=__webpack_require__(20303),core_js_modules_es_array_buffer_detached_js__rspack_import_23_default=__webpack_require__.n(core_js_modules_es_array_buffer_detached_js__rspack_import_23),core_js_modules_es_array_buffer_transfer_js__rspack_import_24=__webpack_require__(99166),core_js_modules_es_array_buffer_transfer_js__rspack_import_24_default=__webpack_require__.n(core_js_modules_es_array_buffer_transfer_js__rspack_import_24),core_js_modules_es_array_buffer_transfer_to_fixed_length_js__rspack_import_25=__webpack_require__(6106),core_js_modules_es_array_buffer_transfer_to_fixed_length_js__rspack_import_25_default=__webpack_require__.n(core_js_modules_es_array_buffer_transfer_to_fixed_length_js__rspack_import_25),core_js_modules_es_typed_array_at_js__rspack_import_26=__webpack_require__(22742),core_js_modules_es_typed_array_at_js__rspack_import_26_default=__webpack_require__.n(core_js_modules_es_typed_array_at_js__rspack_import_26),core_js_modules_es_typed_array_find_last_js__rspack_import_27=__webpack_require__(37553),core_js_modules_es_typed_array_find_last_js__rspack_import_27_default=__webpack_require__.n(core_js_modules_es_typed_array_find_last_js__rspack_import_27),core_js_modules_es_typed_array_find_last_index_js__rspack_import_28=__webpack_require__(62148),core_js_modules_es_typed_array_find_last_index_js__rspack_import_28_default=__webpack_require__.n(core_js_modules_es_typed_array_find_last_index_js__rspack_import_28),core_js_modules_es_typed_array_set_js__rspack_import_29=__webpack_require__(89055),core_js_modules_es_typed_array_set_js__rspack_import_29_default=__webpack_require__.n(core_js_modules_es_typed_array_set_js__rspack_import_29),core_js_modules_es_typed_array_to_reversed_js__rspack_import_30=__webpack_require__(12205),core_js_modules_es_typed_array_to_reversed_js__rspack_import_30_default=__webpack_require__.n(core_js_modules_es_typed_array_to_reversed_js__rspack_import_30),core_js_modules_es_typed_array_to_sorted_js__rspack_import_31=__webpack_require__(65850),core_js_modules_es_typed_array_to_sorted_js__rspack_import_31_default=__webpack_require__.n(core_js_modules_es_typed_array_to_sorted_js__rspack_import_31),core_js_modules_es_typed_array_with_js__rspack_import_32=__webpack_require__(65135),core_js_modules_es_typed_array_with_js__rspack_import_32_default=__webpack_require__.n(core_js_modules_es_typed_array_with_js__rspack_import_32),core_js_modules_esnext_typed_array_filter_reject_js__rspack_import_33=__webpack_require__(5876),core_js_modules_esnext_typed_array_filter_reject_js__rspack_import_33_default=__webpack_require__.n(core_js_modules_esnext_typed_array_filter_reject_js__rspack_import_33),core_js_modules_esnext_typed_array_group_by_js__rspack_import_34=__webpack_require__(94359),core_js_modules_esnext_typed_array_group_by_js__rspack_import_34_default=__webpack_require__.n(core_js_modules_esnext_typed_array_group_by_js__rspack_import_34),core_js_modules_esnext_typed_array_to_spliced_js__rspack_import_35=__webpack_require__(28016),core_js_modules_esnext_typed_array_to_spliced_js__rspack_import_35_default=__webpack_require__.n(core_js_modules_esnext_typed_array_to_spliced_js__rspack_import_35),core_js_modules_esnext_typed_array_unique_by_js__rspack_import_36=__webpack_require__(38641),core_js_modules_esnext_typed_array_unique_by_js__rspack_import_36_default=__webpack_require__.n(core_js_modules_esnext_typed_array_unique_by_js__rspack_import_36),core_js_modules_esnext_uint8_array_set_from_base64_js__rspack_import_37=__webpack_require__(82247),core_js_modules_esnext_uint8_array_set_from_base64_js__rspack_import_37_default=__webpack_require__.n(core_js_modules_esnext_uint8_array_set_from_base64_js__rspack_import_37),core_js_modules_esnext_uint8_array_set_from_hex_js__rspack_import_38=__webpack_require__(11839),core_js_modules_esnext_uint8_array_set_from_hex_js__rspack_import_38_default=__webpack_require__.n(core_js_modules_esnext_uint8_array_set_from_hex_js__rspack_import_38),core_js_modules_esnext_uint8_array_to_base64_js__rspack_import_39=__webpack_require__(56109),core_js_modules_esnext_uint8_array_to_base64_js__rspack_import_39_default=__webpack_require__.n(core_js_modules_esnext_uint8_array_to_base64_js__rspack_import_39),core_js_modules_esnext_uint8_array_to_hex_js__rspack_import_40=__webpack_require__(63589),core_js_modules_esnext_uint8_array_to_hex_js__rspack_import_40_default=__webpack_require__.n(core_js_modules_esnext_uint8_array_to_hex_js__rspack_import_40),core_js_modules_web_url_search_params_delete_js__rspack_import_41=__webpack_require__(52205),core_js_modules_web_url_search_params_delete_js__rspack_import_41_default=__webpack_require__.n(core_js_modules_web_url_search_params_delete_js__rspack_import_41),core_js_modules_web_url_search_params_has_js__rspack_import_42=__webpack_require__(40768),core_js_modules_web_url_search_params_has_js__rspack_import_42_default=__webpack_require__.n(core_js_modules_web_url_search_params_has_js__rspack_import_42),core_js_modules_web_url_search_params_size_js__rspack_import_43=__webpack_require__(76235),core_js_modules_web_url_search_params_size_js__rspack_import_43_default=__webpack_require__.n(core_js_modules_web_url_search_params_size_js__rspack_import_43),core_js_modules_es_iterator_filter_js__rspack_import_44=__webpack_require__(18723),core_js_modules_es_iterator_filter_js__rspack_import_44_default=__webpack_require__.n(core_js_modules_es_iterator_filter_js__rspack_import_44),core_js_modules_es_set_difference_v2_js__rspack_import_45=__webpack_require__(67548),core_js_modules_es_set_difference_v2_js__rspack_import_45_default=__webpack_require__.n(core_js_modules_es_set_difference_v2_js__rspack_import_45),core_js_modules_es_set_intersection_v2_js__rspack_import_46=__webpack_require__(70954),core_js_modules_es_set_intersection_v2_js__rspack_import_46_default=__webpack_require__.n(core_js_modules_es_set_intersection_v2_js__rspack_import_46),core_js_modules_es_set_is_disjoint_from_v2_js__rspack_import_47=__webpack_require__(98803),core_js_modules_es_set_is_disjoint_from_v2_js__rspack_import_47_default=__webpack_require__.n(core_js_modules_es_set_is_disjoint_from_v2_js__rspack_import_47),core_js_modules_es_set_is_subset_of_v2_js__rspack_import_48=__webpack_require__(79162),core_js_modules_es_set_is_subset_of_v2_js__rspack_import_48_default=__webpack_require__.n(core_js_modules_es_set_is_subset_of_v2_js__rspack_import_48),core_js_modules_es_set_is_superset_of_v2_js__rspack_import_49=__webpack_require__(15385),core_js_modules_es_set_is_superset_of_v2_js__rspack_import_49_default=__webpack_require__.n(core_js_modules_es_set_is_superset_of_v2_js__rspack_import_49),core_js_modules_es_set_symmetric_difference_v2_js__rspack_import_50=__webpack_require__(39342),core_js_modules_es_set_symmetric_difference_v2_js__rspack_import_50_default=__webpack_require__.n(core_js_modules_es_set_symmetric_difference_v2_js__rspack_import_50),core_js_modules_es_set_union_v2_js__rspack_import_51=__webpack_require__(69152),core_js_modules_es_set_union_v2_js__rspack_import_51_default=__webpack_require__.n(core_js_modules_es_set_union_v2_js__rspack_import_51),core_js_modules_esnext_set_add_all_js__rspack_import_52=__webpack_require__(61955),core_js_modules_esnext_set_add_all_js__rspack_import_52_default=__webpack_require__.n(core_js_modules_esnext_set_add_all_js__rspack_import_52),core_js_modules_esnext_set_delete_all_js__rspack_import_53=__webpack_require__(82689),core_js_modules_esnext_set_delete_all_js__rspack_import_53_default=__webpack_require__.n(core_js_modules_esnext_set_delete_all_js__rspack_import_53),core_js_modules_esnext_set_difference_js__rspack_import_54=__webpack_require__(84847),core_js_modules_esnext_set_difference_js__rspack_import_54_default=__webpack_require__.n(core_js_modules_esnext_set_difference_js__rspack_import_54),core_js_modules_esnext_set_every_js__rspack_import_55=__webpack_require__(16285),core_js_modules_esnext_set_every_js__rspack_import_55_default=__webpack_require__.n(core_js_modules_esnext_set_every_js__rspack_import_55),core_js_modules_esnext_set_filter_js__rspack_import_56=__webpack_require__(20602),core_js_modules_esnext_set_filter_js__rspack_import_56_default=__webpack_require__.n(core_js_modules_esnext_set_filter_js__rspack_import_56),core_js_modules_esnext_set_find_js__rspack_import_57=__webpack_require__(33307),core_js_modules_esnext_set_find_js__rspack_import_57_default=__webpack_require__.n(core_js_modules_esnext_set_find_js__rspack_import_57),core_js_modules_esnext_set_intersection_js__rspack_import_58=__webpack_require__(94341),core_js_modules_esnext_set_intersection_js__rspack_import_58_default=__webpack_require__.n(core_js_modules_esnext_set_intersection_js__rspack_import_58),core_js_modules_esnext_set_is_disjoint_from_js__rspack_import_59=__webpack_require__(7270),core_js_modules_esnext_set_is_disjoint_from_js__rspack_import_59_default=__webpack_require__.n(core_js_modules_esnext_set_is_disjoint_from_js__rspack_import_59),core_js_modules_esnext_set_is_subset_of_js__rspack_import_60=__webpack_require__(44997),core_js_modules_esnext_set_is_subset_of_js__rspack_import_60_default=__webpack_require__.n(core_js_modules_esnext_set_is_subset_of_js__rspack_import_60),core_js_modules_esnext_set_is_superset_of_js__rspack_import_61=__webpack_require__(50364),core_js_modules_esnext_set_is_superset_of_js__rspack_import_61_default=__webpack_require__.n(core_js_modules_esnext_set_is_superset_of_js__rspack_import_61),core_js_modules_esnext_set_join_js__rspack_import_62=__webpack_require__(79780),core_js_modules_esnext_set_join_js__rspack_import_62_default=__webpack_require__.n(core_js_modules_esnext_set_join_js__rspack_import_62),core_js_modules_esnext_set_map_js__rspack_import_63=__webpack_require__(80372),core_js_modules_esnext_set_map_js__rspack_import_63_default=__webpack_require__.n(core_js_modules_esnext_set_map_js__rspack_import_63),core_js_modules_esnext_set_reduce_js__rspack_import_64=__webpack_require__(72498),core_js_modules_esnext_set_reduce_js__rspack_import_64_default=__webpack_require__.n(core_js_modules_esnext_set_reduce_js__rspack_import_64),core_js_modules_esnext_set_some_js__rspack_import_65=__webpack_require__(37928),core_js_modules_esnext_set_some_js__rspack_import_65_default=__webpack_require__.n(core_js_modules_esnext_set_some_js__rspack_import_65),core_js_modules_esnext_set_symmetric_difference_js__rspack_import_66=__webpack_require__(25597),core_js_modules_esnext_set_symmetric_difference_js__rspack_import_66_default=__webpack_require__.n(core_js_modules_esnext_set_symmetric_difference_js__rspack_import_66),core_js_modules_esnext_set_union_js__rspack_import_67=__webpack_require__(92321),core_js_modules_esnext_set_union_js__rspack_import_67_default=__webpack_require__.n(core_js_modules_esnext_set_union_js__rspack_import_67),core_js_modules_esnext_array_last_index_js__rspack_import_68=__webpack_require__(47894),core_js_modules_esnext_array_last_index_js__rspack_import_68_default=__webpack_require__.n(core_js_modules_esnext_array_last_index_js__rspack_import_68),core_js_modules_es_iterator_reduce_js__rspack_import_69=__webpack_require__(46455),core_js_modules_es_iterator_reduce_js__rspack_import_69_default=__webpack_require__.n(core_js_modules_es_iterator_reduce_js__rspack_import_69),core_js_modules_esnext_weak_map_delete_all_js__rspack_import_70=__webpack_require__(74678),core_js_modules_esnext_weak_map_delete_all_js__rspack_import_70_default=__webpack_require__.n(core_js_modules_esnext_weak_map_delete_all_js__rspack_import_70),core_js_modules_esnext_weak_map_emplace_js__rspack_import_71=__webpack_require__(55910),core_js_modules_esnext_weak_map_emplace_js__rspack_import_71_default=__webpack_require__.n(core_js_modules_esnext_weak_map_emplace_js__rspack_import_71),core_js_modules_esnext_weak_map_get_or_insert_js__rspack_import_72=__webpack_require__(76691),core_js_modules_esnext_weak_map_get_or_insert_js__rspack_import_72_default=__webpack_require__.n(core_js_modules_esnext_weak_map_get_or_insert_js__rspack_import_72),core_js_modules_esnext_weak_map_get_or_insert_computed_js__rspack_import_73=__webpack_require__(72919),core_js_modules_esnext_weak_map_get_or_insert_computed_js__rspack_import_73_default=__webpack_require__.n(core_js_modules_esnext_weak_map_get_or_insert_computed_js__rspack_import_73),core_js_modules_es_iterator_find_js__rspack_import_74=__webpack_require__(49678),core_js_modules_es_iterator_find_js__rspack_import_74_default=__webpack_require__.n(core_js_modules_es_iterator_find_js__rspack_import_74),An=function(){return this||(0,eval)("this")}(),L=An;function he(e,t){return Object.prototype.hasOwnProperty.call(e||{},t)}function S(e){let t=typeof e;return"object"!==t?t:Array.isArray(e)?"array":null==e?"null":e instanceof Date?"date":e instanceof RegExp?"regExp":"object"}function $(e){return"string"==typeof e}function E(e){return"object"===S(e)}function D(e){return"function"===S(e)}function oe(e){return"array"===S(e)}function se(e){return null===e}function Se(e){return void 0===e}function je(e){return Se(e)||se(e)}function $e(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Tn(e,Error)}}function Tn(e,t){try{return e instanceof t}catch{return!1}}function Mt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function ie(){}function Ut(e,t){if(Array.isArray(e)){let n=e.length;for(let r=n-1;r>=0;r--)t(e[r])}else throw Error("forEachRight ERROR: first params must be array.")}var wt=e=>{let t={};return E(e)&&Object.keys(e).forEach(n=>{t[n]=e[n]}),t},ge=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={};return E(e)&&Object.keys(e).forEach(t=>{r[t]=e[t]}),E(t)&&Object.keys(t).forEach(e=>{se(t[e])&&n||(r[e]=t[e])}),r},k="__Card__",Q="app-service.js",kt="LynxGetSourceMapReleaseError",Be={filename:"lynx_core",slot:"1cacd8aaec55d12c9a8af46c323ba358c4938dde",release:"unknown_version"},Ge=class{constructor(){this.observersFunc=[],this.observerOwners=[]}registerObserver(e,t){if(this.observersFunc.includes(e))return nativeConsole.log("Subject: Observer has been attached already.");this.observersFunc.push(e),this.observerOwners.push(t)}removeObserver(e){let t=this.observersFunc.indexOf(e);if(-1===t)return nativeConsole.log("Subject: Nonexistent observer.");this.observersFunc.splice(t,1),this.observerOwners.splice(t,1)}removeObserversOfOwner(e){for(let t=this.observerOwners.length-1;t>=0;t--)this.observerOwners[t]===e&&(this.observersFunc.splice(t,1),this.observerOwners.splice(t,1))}notifyDataChange(e){this.observersFunc.forEach(t=>{if("function"==typeof t)try{t(e)}catch(e){nativeConsole.log("SharedData change and notifyDataChange error info:"+e)}})}};L.multiApps={},L.currentAppId="",L.globComponentRegistPath="",L.sharedData={},L.globDynamicComponentEntry=k,L.shareDataSubject=new Ge,L.TaroLynx={},L.bundleSupportLoadScript=!0,L.getNapiLoader=()=>L.__lynxNapiLoader;var{loadScript:lr}=L,v=L;function yt(e){return(null==e?void 0:e.currentGlobalThis)??L}function Ve(e){let t=null==e?void 0:e.currentGlobalThis;t&&t!==L&&(t.multiApps??(t.multiApps={}),t.currentAppId??(t.currentAppId=""),t.globComponentRegistPath="",t.globDynamicComponentEntry=k,t.getPromise=L.getPromise)}function N(e){void 0===gt&&(gt="function"==typeof nativeConsole.alog),gt&&nativeConsole.alog("[LynxJSSDK]"+e)}!function(e){e[e.TypescriptBundleSupportLoadScript=48]="TypescriptBundleSupportLoadScript",e[e.TypescriptHeliumCreateCanvasWait=92]="TypescriptHeliumCreateCanvasWait"}(He||(He={}));var On=/\d+/,ae=class r{constructor(e){this.major=0,this.minor=0,this.revision=0,this.build=0,e=String(e),[this.major=0,this.minor=0,this.revision=0,this.build=0]=e.split(".").map(e=>{let t=On.exec(e);return t&&t.length>0?+t[0]:0})}gt(e){return"string"==typeof e&&(e=new r(e)),this.major>e.major||!(this.major<e.major)&&(this.minor>e.minor||!(this.minor<e.minor)&&(this.revision>e.revision||!(this.revision<e.revision)&&(this.build>e.build||(this.build<e.build,!1))))}eq(e){return"string"==typeof e&&(e=new r(e)),this.major===e.major&&this.minor===e.minor&&this.revision===e.revision&&this.build===e.build}lt(e){return!this.eq(e)&&!this.gt(e)}gte(e){return this.eq(e)||this.gt(e)}lte(e){return this.eq(e)||this.lt(e)}},ue=ae,_r=new ae("2.4"),Ft=new ae("2.7"),jt=new ae("2.9"),$t=new ae("2.12"),Bt=new ae("2.14");!function(e){e[e.Fatal=0]="Fatal",e[e.Error=1]="Error",e[e.Warn=2]="Warn"}(qe||(qe={}));var We=class extends Error{constructor(e,t){super(e),t&&(this.stack=t)}},Je=class extends We{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},vt=class extends We{constructor(){super(...arguments),this.kind="USER_ERROR"}},Y=class extends vt{constructor(){super(...arguments),this.name="USER_RUNTIME_ERROR"}},ce=class extends Je{constructor(){super(...arguments),this.name="INTERNAL_RUNTIME_ERROR"}},Ke=class extends Je{constructor(){super(...arguments),this.name="INVOKE_ERROR"}},V=class extends Error{constructor(e){super(`APP-SERVICE-Engine: ${e}`),this.type="AppServiceEngineKnownError"}};function J(e,t,n){let{originError:r,errorCode:s,errorLevel:i,runType:a=Be}=n??{};nativeConsole.error("The following error occurred in the JSRuntime:"),nativeConsole.error(`${null==e?void 0:e.message}
|
|
2
|
+
${null==e?void 0:e.stack}`),e.cause=E(e.cause)?JSON.stringify(e.cause):e.cause;try{t.reportException(e,{...a,buildVersion:"unknown_version",versionCode:"unknown_version",errorCode:s,errorLevel:i})}catch(e){nativeConsole.error(`reportError err:
|
|
3
|
+
`,e)}}function F(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Be;return D(n)?In("USER_ERROR",e,n,t,r):ie}function In(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"INTERNAL_ERROR",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;return function(){for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];try{return n.apply(this,a)}catch(o){let i=`${t}
|
|
4
|
+
${o.message}`;"onError"!==n.name&&"function"==typeof r.onError&&r.onError(`Card ${n.name} exec error:${i}
|
|
5
|
+
${o.stack}`,o);let a="INTERNAL_ERROR"===e?new ce(i,o.stack):new Y(i,o.stack);nativeConsole.log(`wrapError-${t}`,a),J(a,r._nativeApp,{runType:s,__sourcemap__release__:r.__sourcemap__release__,getSourceMapRelease:r.getSourceMapRelease})}}}var Ae=class{constructor(e,t){this.getApp=e,this.getNativeApp=t,this.setSourceMapRelease=e=>{$e(e)&&e.name===O.kGetSourceMapReleaseErrorName&&$(e.message)&&$(e.stack)?this.getNativeApp().__SetSourceMapRelease({name:e.name,message:e.message,stack:e.stack}):N(`setSourceMapRelease failed with error: ${JSON.stringify(e)}`)},this.getSourceMapRelease=e=>{let t=this.getNativeApp().__GetSourceMapRelease(e);return t||(t=this.getNativeApp().__GetSourceMapRelease(O.kDefaultSourceMapURL)),t},this.getApp=e,this.getNativeApp=t}rebind(e){this.getApp=e}},fe=class{constructor(e){this._internal_callLynxSetModule=e,this._events=new Map}getEventsSize(e){var t;return null==(t=this._events.get(e))?void 0:t.length}setCallLynxSetModule(e){this._internal_callLynxSetModule=e}addListener(e,t,n){let r=this._events.get(e);"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!0]),r?r.push({listener:t,context:n}):this._events.set(e,[{listener:t,context:n}])}removeListener(e,t){if("function"!=typeof t)throw Error("removeListener only takes instances of Function");let n=this._events.get(e),r=0;Array.isArray(n)&&n.some(e=>{if(t===e.listener)return!0;r++})&&n.splice(r,1),"keyboardstatuschanged"==e&&this._internal_callLynxSetModule&&this._internal_callLynxSetModule("switchKeyBoardDetect",[!1])}emit(e,t){let n=this._events.get(e);Array.isArray(n)&&n.forEach(e=>{let{listener:n,context:r}=e;"function"==typeof n&&n.apply(r||this,t)})}removeAllListeners(e){"string"==typeof e?this._events.delete(e):this._events=new Map}trigger(e,t){let n=this._events.get(e);Array.isArray(n)&&("string"==typeof t&&(t=JSON.parse(t)),n.forEach(e=>{let{listener:n,context:r}=e;"function"==typeof n&&n.call(r||this,t)}))}toggle(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.emit(e,n)}},Qe=class{constructor(){this._beforePublishEvent=new xt}},xt=class extends fe{add(e,t,n){return super.addListener(e,t,n),this}remove(e,t){return super.removeListener(e,t),this}},ee=fe,Ye=class{constructor(e){this._textInfoModule=void 0,this.getTextInfo=(e,t)=>(void 0===this._textInfoModule&&(this._textInfoModule=this._nativeModules.LynxTextInfoModule),this._textInfoModule&&this._textInfoModule.getTextInfo?this._textInfoModule.getTextInfo(e,t):{width:e.length}),this._nativeModules=e}},ze=class{constructor(e){this.resumeExposure=()=>{this._exposureModule.resumeExposure()},this.stopExposure=e=>{this._exposureModule.stopExposure(e)},this.setObserverFrameRate=e=>{this._exposureModule.setObserverFrameRate(e)},this._nativeModules=e,this._exposureModule=this._nativeModules.LynxExposureModule}},bt=class{constructor(e,t){this._selector=e,this._callback=t}invokeCallback(e){this._callback(e)}},Ct=class{constructor(e,t,n){this._id=e,this._intersectionObserverModule=t,this._manager=n,this._observationTargets=[],this._defaultMargins={left:0,right:0,top:0,bottom:0}}relativeTo(e,t){return this._intersectionObserverModule.relativeTo(this._id,e,t||this._defaultMargins),this}relativeToViewport(e){return this._intersectionObserverModule.relativeToViewport(this._id,e||this._defaultMargins),this}relativeToScreen(e){return this._intersectionObserverModule.relativeToScreen(this._id,e||this._defaultMargins),this}observe(e,t){this._observationTargets.push(new bt(e,t)),this._intersectionObserverModule.observe(this._id,e,this._observationTargets.length-1)}disconnect(){this._intersectionObserverModule.disconnect(this._id),this._manager.removeObserver(this._id)}invokeCallback(e,t){e<this._observationTargets.length&&this._observationTargets[e].invokeCallback(t)}},Xe=class{constructor(e){this._nativeModules=e,this._observerId=0,this._observers={},this._defaultOptions={thresholds:[0],initialRatio:0,observeAll:!1}}createIntersectionObserver(e,t){let n=this._nativeModules.IntersectionObserverModule,r=new Ct(this._observerId,n,this);return this._observers[this._observerId]=r,n.createIntersectionObserver(this._observerId,e,t||this._defaultOptions),this._observerId++,r}getObserver(e){return this._observers[e]}removeObserver(e){this._observers[e]=null}},Gt={onPerformance:"lynx.performance.onPerformanceEvent"},Ze=class{constructor(e,t){this._emitter=e,this._onPerformance=t,this._observedNames=[]}observe(e){this._observedNames.length>0||(this._observedNames=e,this._emitter.addListener(Gt.onPerformance,this.onPerformanceEvent.bind(this)))}disconnect(){this._observedNames=[],this._emitter.removeListener(Gt.onPerformance,this.onPerformanceEvent.bind(this))}onPerformanceEvent(e){if(0===this._observedNames.length)return;let t=e.entryType+"."+e.name;(this._observedNames.includes(t)||this._observedNames.includes(e.entryType))&&this._onPerformance(e)}},ve={onSetup:"lynx.performance.timing.onSetup",onUpdate:"lynx.performance.timing.onUpdate"},Te=class{constructor(e,t){this._emitter=e,this._generatePipelineOptions=t.generatePipelineOptions,this._onPipelineStart=t.onPipelineStart,this._markTiming=t.markPipelineTiming,this._profileStart=t.profileStart,this._profileEnd=t.profileEnd,this._profileMark=t.profileMark,this._profileFlowId=t.profileFlowId,this._isProfileRecording=t.isProfileRecording,this._getMemoryUsage=t.getMemoryUsage,this._bindPipelineIdWithTimingFlag=t.bindPipelineIdWithTimingFlag}profileStart(e,t){this._profileStart(e,t)}profileEnd(){this._profileEnd()}profileMark(e,t){this._profileMark(e,t)}profileFlowId(){return this._profileFlowId()}createObserver(e){return new Ze(this._emitter,e)}isProfileRecording(){return this._isProfileRecording()}getMemoryUsage(e){this._getMemoryUsage(e)}addTimingListener(e){this._emitter.addListener(ve.onSetup,e.onSetup,e),this._emitter.addListener(ve.onUpdate,e.onUpdate,e)}removeTimingListener(e){this._emitter.removeListener(ve.onSetup,e.onSetup),this._emitter.removeListener(ve.onUpdate,e.onUpdate)}removeAllTimingListener(){this._emitter.removeAllListeners(ve.onSetup),this._emitter.removeAllListeners(ve.onUpdate)}_initializeAndStartPipeline(){let e=this._generatePipelineOptions();return e&&this._onPipelineStart(e.pipelineID),e}_checkAndBindTimingFlag(e,t){if(!e)return;let n="__lynx_timing_flag";t[n]&&(this._bindPipelineIdWithTimingFlag(e.pipelineID,t[n]),this._markTiming(e.pipelineID,"update_set_state_trigger"),e.needTimestamps=!0)}},Rt=Te,St=v.LynxJSBI,pe=class r{static create(e){return new r(e)}constructor(e){for(let t in this._cachedFunctions={},e)Object.defineProperty(this,t,{get(){if(this._cachedFunctions[t])return this._cachedFunctions[t];let n=e[t];return"function"==typeof n&&(this._cachedFunctions[t]=n),n}})}};function Vt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],{getPromise:i}=v;return"function"==typeof i?i({nextTick:s?r:t=>e(t,0),setTimeout:e,onUnhandled:t,clearTimeout:n}):v.Promise}var _e=class{decode(e){return 0===e.byteLength?"":(e instanceof DataView?e=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):ArrayBuffer.isView(e)&&(e=e.buffer),globalThis.TextCodecHelper.decode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}get fatal(){return!1}get ignoreBOM(){return!0}},et=class{encode(e){return new Uint8Array(globalThis.TextCodecHelper.encode(e))}encodeInto(){throw TypeError("TextEncoder().encodeInto not supported")}get encoding(){return"utf-8"}},Oe=class{};function Nn(e){return"function"==typeof e?e:e.getPromise()}function nt(e){return class extends Oe{constructor(){super(),this.__Promise=Nn(e),this.__dataReceived=[],this.__done=!1,this.__cancelled=!1,this.__locked=!1,this.__eventCenter=new ee}onData(e){this.__cancelled||(this.__dataReceived.push(e),this.__eventCenter.emit("waitSignal",null))}onEnd(){this.__done=!0,this.__eventCenter.emit("waitSignal",null)}onError(e){this.__error=Error(e),this.__eventCenter.emit("waitSignal",null)}processRead(e,t){if(this.__error)return t(this.__error);if(this.__cancelled||this.__done&&0==this.__dataReceived.length)return e({done:!0,value:void 0});if(this.__dataReceived.length>0)return e({done:!1,value:this.__dataReceived.shift()});let n=()=>{this.__eventCenter.removeListener("waitSignal",n),this.processRead(e,t)};this.__eventCenter.addListener("waitSignal",n,this)}__read(){return new this.__Promise((e,t)=>{this.processRead(e,t)})}get locked(){return this.__locked}cancel(e){return this.__cancelled=!0,this.__dataReceived=null,this.__eventCenter.emit("waitSignal",null),this.__Promise.resolve(e)}getReader(){return this.__locked?null:(this.__locked=!0,new At(this))}}}var At=class{constructor(e){this.__stream=e}cancel(e){return this.__stream.cancel(e)}read(){return this.__stream.__read()}},xe=class r{constructor(){this._arrayBuffer=new ArrayBuffer(0),this._bodyStream=null,this._bodyUsed=!1,this._enableFetchAPIStandardStreaming=!1}safeUseBody(e){if(this._bodyUsed)return;let t=e(this._arrayBuffer);return this._bodyUsed=!0,this._arrayBuffer=null,t}cloneArrayBuffer(e){return e.slice(0)}setBody(e,t){if(e instanceof r){if(e._bodyUsed||e._bodyStream)throw Error("body used, or try to copy body stream");this._arrayBuffer=this.cloneArrayBuffer(e._arrayBuffer)}else e instanceof ArrayBuffer?this._arrayBuffer=this.cloneArrayBuffer(e):e instanceof DataView?this._arrayBuffer=this.cloneArrayBuffer(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)):ArrayBuffer.isView(e)?this._arrayBuffer=this.cloneArrayBuffer(e.buffer):e&&(this._arrayBuffer=new et().encode(e.toString()).buffer),e instanceof Oe&&(this._bodyStream=e,this._enableFetchAPIStandardStreaming=t)}async arrayBuffer(){if(!this._enableFetchAPIStandardStreaming||null==this._bodyStream)return Promise.resolve(this.safeUseBody(e=>e));{let e=await this.consumeStream();return null===e?new ArrayBuffer(0):e}}get body(){if(this._bodyUsed)throw Error("body used");return this._bodyUsed=!0,this._bodyStream}async text(){if(!this._enableFetchAPIStandardStreaming||null==this._bodyStream)return await this.safeUseBody(e=>new _e().decode(e));{let e=await this.consumeStream();return null===e?"":new _e().decode(e)}}async json(){if(!this._enableFetchAPIStandardStreaming||null==this._bodyStream)return Promise.resolve(this.safeUseBody(e=>new _e().decode(e))).then(e=>JSON.parse(e));{let e=await this.consumeStream();return null===e?null:JSON.parse(new _e().decode(e))}}get bodyUsed(){return this._bodyUsed}async getArrayBufferOfStreaming(){let e=[],t=0,n=this._bodyStream.getReader();{for(;;){let{done:r,value:s}=await n.read();if(r)break;e.push(new Uint8Array(s)),t+=s.byteLength}let r=new Uint8Array(t),s=0;for(let t of e)r.set(t,s),s+=t.byteLength;return r.buffer}}async consumeStream(){return this._bodyUsed?null:(this._bodyUsed=!0,await this.getArrayBufferOfStreaming())}};_computedKey=(0,_swc_helpers_to_property_key__rspack_import_75._)((Ht=Symbol.toStringTag,Symbol.iterator));var le=class r{normalizeName(e){return String(e).replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}isHttpWhitespace(e){return 9===e||10===e||13===e||32===e}normalizeValue(e){let t=String(e),n=0,r=t.length;for(;n<r&&this.isHttpWhitespace(t.charCodeAt(n));)n++;for(;r>n&&this.isHttpWhitespace(t.charCodeAt(r-1));)r--;return t.slice(n,r)}sortedEntries(){return Array.from(this._headers_map.entries()).sort((e,t)=>{let[n]=e,[r]=t;return n<r?-1:+(n>r)})}constructor(e){if(this._headers_map=new Map,this[Ht]="Headers",null===e||"number"==typeof e)throw TypeError("Headers init with null/number");if(e instanceof r)for(let[t,n]of e)this.append(t,n);else Array.isArray(e)?e.forEach(e=>{let[t,n]=e;this.append(t,Array.isArray(n)?n.join(" "):n)}):e&&Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];this.append(t,Array.isArray(n)?n.join(" "):n)})}[_computedKey](){return this.entries()}*keys(){for(let[e]of this.sortedEntries())yield e}*values(){for(let[,e]of this.sortedEntries())yield e}*entries(){for(let e of this.sortedEntries())yield e}has(e){return this._headers_map.has(this.normalizeName(e))}get(e){return this._headers_map.get(this.normalizeName(e))??null}set(e,t){this._headers_map.set(this.normalizeName(e),this.normalizeValue(t))}append(e,t){let n=this.normalizeValue(t),r=this.has(e)?`${this.get(e)}, ${n}`:n;this.set(e,r)}delete(e){this._headers_map.delete(this.normalizeName(e))}forEach(e,t){for(let[n,r]of this.entries())e.call(t,r,n,this)}};_computedKey1=(0,_swc_helpers_to_property_key__rspack_import_75._)(Symbol.toStringTag);var rt=class r extends ee{get aborted(){return this._aborted}get reason(){return this._reason}constructor(){super(),this._aborted=!1}get[_computedKey1](){return"[object AbortSignal]"}dispatchEvent(e){"abort"===e.type&&(this._aborted=!0,this._reason=e.reason,"function"==typeof this.onabort&&this.onabort.call(this,e)),super.emit(e.type,e)}addEventListener(e,t){super.addListener(e,t)}removeEventListener(e,t){super.removeListener(e,t)}static __create(){return new r}},ot=class r extends xe{get url(){return this._url}get headers(){return this._headers}get method(){return this._method}get signal(){return this._signal}get lynxExtension(){return this._lynxExtension}constructor(e,t){if(super(),t=t||{},e instanceof r){if(e.bodyUsed)throw TypeError("Already read");this._url=e.url,t.headers||(this._headers=new le(e.headers)),this._method=e.method,this._signal=e.signal,this._lynxExtension=e.lynxExtension,this.setBody(e._arrayBuffer)}else this._url=String(e);if((t.headers||!this.headers)&&(this._headers=new le(t.headers)),this._method=t.method||this.method||"GET",this._method=this._method.toUpperCase(),("GET"===this.method||"HEAD"===this.method)&&t.body)throw TypeError("Body not allowed for GET or HEAD requests");"u">typeof t.signal&&(this._signal=t.signal),this._signal=this._signal||rt.__create(),this._lynxExtension=t.lynxExtension||this._lynxExtension||{},this._headers.get("Content-Type")||("string"==typeof t.body?this._headers.set("Content-Type","text/plain;charset=UTF-8"):globalThis.URLSearchParams&&t.body instanceof URLSearchParams?this._headers.set("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"):t.body instanceof ArrayBuffer||this._headers.set("Content-Type","text/plain;charset=UTF-8")),this.setBody(t.body)}clone(){let e=new r(this,{method:this.method});return e.setBody(this),e}},st=class r extends xe{get url(){return this._url}get status(){return this._status}get statusText(){return this._statusText}get ok(){return this._ok}get headers(){return this._headers}get lynxExtension(){return this._lynxExtension}constructor(e,t,n){if(super(),t=t||{},this._status=void 0===t.status?200:t.status,this._status<200||this._status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this._ok=this._status>=200&&this._status<300,this._statusText=void 0===t.statusText?"":""+t.statusText,this._headers=new le(t.headers),this._url=t.url||"",this._lynxExtension=t.lynxExtension||{},this.setBody(e,n)}clone(){let e=new r(null,{status:this._status,statusText:this._statusText,headers:new le(this._headers),url:this._url});return e.setBody(this),e}};function qt(e){return class{constructor(e,t={}){this.listeners={},this.url=e,this.options=t,this._closed=!1,this._connect()}close(){this._closed=!0}_dispatchEvent(e,t){let n={type:e,detail:t,timestamp:Date.now(),target:{},currentTarget:{},preventDefault:()=>{},stopPropagation:()=>{}};"message"===e&&this.onmessage?this.onmessage(t):"error"===e&&this.onerror?this.onerror(n):"open"===e&&this.onopen&&this.onopen(n),(this.listeners[e]||[]).forEach(e=>e(t))}addEventListener(e,t){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}removeEventListener(e,t){this.listeners[e]=this.listeners[e]||[],this.listeners[e]=this.listeners[e].filter(e=>e!==t)}async _connect(){try{let t=await e(this.url,{...this.options,lynxExtension:{useStreaming:!0}});this._dispatchEvent("open",{data:""});let n=t.body.getReader();for(;;){let{done:e,value:t}=await n.read();if(e)break;let r=globalThis.TextCodecHelper.decode(t),s=this._parseEvent(r);s&&this._dispatchEvent(s.event||"message",s)}}catch(e){this._dispatchEvent("error",{data:"",error:e})}}_parseEvent(e){let t=e.split(`
|
|
6
|
+
`),n={data:""};for(let e of t)e.startsWith("data:")?n.data+=e.slice(5).trim()+`
|
|
7
|
+
`:e.startsWith("event:")?n.event=e.slice(6).trim():e.startsWith("id:")&&(n.id=e.slice(3).trim());return n.data&&(n.data=n.data.slice(0,-1)),n.data?n:null}}}var Ie=class{};Ie.EXECUTE_LOADED_SCRIPT="executeLoadedScript";var O=class _BaseApp{constructor(e,t){this.dataTypeSet=new Set(["string","number","array","object","boolean","null","function"]),this.removeInternalEventListenersCallbacks=[],this.setSourceMapRelease=e=>{this.Reporter.setSourceMapRelease(e)},this.getSourceMapRelease=e=>this.Reporter.getSourceMapRelease(e),this.setupGetTextInfoApi=()=>{this._apiList.getTextInfo=(e,t)=>this._textInfoManager.getTextInfo(e,t)},this.setupExposureApi=()=>{this._apiList.resumeExposure=()=>{this._exposureManager.resumeExposure()},this._apiList.stopExposure=e=>{this._exposureManager.stopExposure(e||{sendEvent:!0})},this._apiList.setObserverFrameRate=e=>{this._exposureManager.setObserverFrameRate(e||{forPageRect:20,forExposureCheck:20})}},this.requestAnimationFrame=e=>this._nativeApp.requestAnimationFrame(e),this.cancelAnimationFrame=e=>this._nativeApp.cancelAnimationFrame(e),this.__removeInternalEventListeners=()=>{this.removeInternalEventListenersCallbacks.forEach(e=>{e()})},this.initBase(e),this.initWithReusedApp(e,t),this.addInternalEventListeners();let n=this.pageGlobal["notifyRuntimeReadyOnRT"+this.nativeAppId];n&&n(this.lynx)}initWithReusedApp(e,t){if(t)this._nativeApp=t.nativeApp,this.sharedConsole=t.sharedConsole,this.dynamicComponentExports=t.dynamicComponentExports,this.loadedDynamicComponentsSet=t.loadedDynamicComponentsSet,this._apiList=t._apiList,this._intersectionObserverManager=t._intersectionObserverManager,this._exposureManager=t._exposureManager,this._textInfoManager=t._textInfoManager,t.GlobalEventEmitter.setCallLynxSetModule(this.__internal__callLynxSetModule.bind(this)),this.GlobalEventEmitter=t.GlobalEventEmitter,this._aopManager=t._aopManager,this.performance=t.performance,this.modules=t.modules,this._lazyCallableModules=t._lazyCallableModules,t.lynx.rebind(()=>this),this.lynx=t.lynx,t.Reporter.rebind(()=>this),this.Reporter=t.Reporter,this.setTimeout=t.setTimeout,this.setInterval=t.setInterval,this.clearInterval=t.clearInterval,this.clearTimeout=t.clearTimeout,this.resolvedPromise=t.resolvedPromise,this._createReadableStreamClass=t._createReadableStreamClass,this._ReadableStreamClass=t._ReadableStreamClass;else{let{lynx:t}=e;this.setTimeout=this.nativeApp.setTimeout,this.setInterval=this.nativeApp.setInterval,this.clearInterval=this.nativeApp.clearInterval,this.clearTimeout=this.nativeApp.clearTimeout,this.modules={},this._apiList={},this._textInfoManager=new Ye(this.NativeModules),this.setupGetTextInfoApi(),this._lazyCallableModules=new Map,this._nativeApp=pe.create(this._nativeApp),this.sharedConsole=this.pageGlobal.nativeConsole,this.dynamicComponentExports={},this.loadedDynamicComponentsSet=new Set,this._lazyCallableModules=new Map,this.Reporter=new Ae(()=>this,()=>this.nativeApp),this.GlobalEventEmitter=new ee(this.__internal__callLynxSetModule.bind(this)),this._intersectionObserverManager=new Xe(this.NativeModules),this._exposureManager=new ze(this.NativeModules),this.setupExposureApi(),this._aopManager=new Qe,this.beforePublishEvent=this._aopManager._beforePublishEvent,this.performance=new Rt(this.GlobalEventEmitter,this.nativeApp);let n=this.setupPromise(this.nativeApp.setTimeout,this.nativeApp.clearTimeout,t);this.lynx=this.createLynx(t,n),this.setupJSModule(),this.setupIntersectionApi(),this.setupFetchAPI(n)}}initBase(e){let{nativeApp:t,params:n}=e;this.nativeAppId=t.id,this._params=n,this._nativeApp=t,this.pageGlobal=yt(n),this.NativeModules=t.nativeModuleProxy,this.LynxUIMethodModule=t.nativeModuleProxy.LynxUIMethodModule,this.LynxTestModule=t.nativeModuleProxy.LynxTestModule,this.LynxResourceModule=t.nativeModuleProxy.LynxResourceModule,this.LynxAccessibilityModule=t.nativeModuleProxy.LynxAccessibilityModule,this.LynxSetModule=t.nativeModuleProxy.LynxSetModule}set __sourcemap__release__(e){let t=Error();t.name="LynxGetSourceMapReleaseError",t.message=e,t.stack=`at <anonymous> (${_BaseApp.kDefaultSourceMapURL}:1:1)`,this.setSourceMapRelease(t)}destroy(){this.__removeInternalEventListeners(),this._nativeApp=null,this._params=null,this._lazyCallableModules=null,this.GlobalEventEmitter=null}registerModule(e,t){this._lazyCallableModules[e]=t}getJSModule(e){return this._lazyCallableModules[e]}setupJSModule(){this.registerModule("GlobalEventEmitter",this.GlobalEventEmitter),this.registerModule("Reporter",this.Reporter)}setupFetchAPI(e){this._createReadableStreamClass=nt,this._ReadableStreamClass=nt(e);let t=this.pageGlobal;if(t.Request||(t.Request=ot),t.Response||(t.Response=st),!t.ReadableStream){var n;let e;if(null==(n=this.params)?void 0:n.currentGlobalThis){t.ReadableStream=this._ReadableStreamClass;return}t.ReadableStream=nt({getPromise:()=>{var t;if(e)return e;let n=Object.values(v.multiApps)[0];if(!(null==n||null==(t=n.lynx)?void 0:t.Promise))throw Error("ReadableStream Promise is unavailable");return e=n.lynx.Promise}})}}__internal__callLynxSetModule(e,t){let n=this.LynxSetModule[e];n&&Function.prototype.apply.call(n,void 0,t)}get nativeApp(){return this._nativeApp}set nativeApp(e){this._nativeApp=e}reloadCard(e,t){this.__removeInternalEventListeners();let n=this.lynx.requireModule.cache;for(let e of Object.keys(n))delete n[e];return this.lynx.loadScript.cache={},v.loadCard(this.nativeApp,{...this.params,updateData:e,processorName:null==t?void 0:t.processorName,isReload:!0},this.lynx.getNativeLynx())}get params(){return this._params}set apiList(e){this._apiList={...this._apiList,...e}}setupIntersectionApi(){let e=this;this._apiList.createIntersectionObserver=function(t,n){let{componentId:r=""}=t;return e._intersectionObserverManager.createIntersectionObserver(r,n)},this.lynx.createIntersectionObserver=this._apiList.createIntersectionObserver}onIntersectionObserverEvent(e,t,n){let r=this._intersectionObserverManager.getObserver(e);r&&r.invokeCallback(t,n)}reportError(e){return this.lynx.reportError(e)}handleError(e,t,n){J(e,this.nativeApp,{originError:t,getSourceMapRelease:this.getSourceMapRelease,errorLevel:n})}handleUserError(e,t,n,r){let{message:s,name:i,stack:a,cause:o}=e||{};s||({message:s,name:i,stack:a}=Error(JSON.stringify(e))),o=o??t;let l=new Y(r?`${r} ${i}: ${s}`:`${i}: ${s}`,a);l.cause=o,this.handleError(l,e,n)}handleInternalError(e,t){let{message:n,name:r,stack:s}=e||{};n||({message:n,name:r,stack:s}=Error(JSON.stringify(e)));let i=new ce(`${r}: ${n}`,s);i.cause=t,this.handleError(i,e)}getBoolEnv(e){var t;return(null==(t=this.nativeApp.getEnv(e))?void 0:t.toLowerCase())==="true"}_$executeInit(e,t){let{path:n,entryName:r,shouldCacheFactory:s=!0,cacheKey:i}=t,a,o=this.pageGlobal;if(e&&e.init)a=e.init.bind(e);else if(o.initBundle)a=o.initBundle.bind(o.initBundle),delete o.initBundle;else throw new Y(`load failed. path:${n},entryName:${r}`);try{var l,h;this.lynx.performance.profileStart(Ie.EXECUTE_LOADED_SCRIPT,{args:{path:n}});let t=a({tt:this});return s&&(n!==Q||(null==(h=this.params)||null==(l=h.pageConfigSubset)?void 0:l.disableAppServiceFactoryCache)===!1)&&(_BaseApp._$factoryCache[n]=a),Jt(i,e),t}finally{this.lynx.performance.profileEnd()}}_$executeJSON(e,t){let{path:n}=t,r=JSON.parse(e);return _BaseApp._$factoryCache[n]=()=>r,r}requireModule(e,t,n){let r=_BaseApp._$factoryCache[e];if(this.shouldUseModuleCache()&&r)return this._$executeInit({init:r},{path:e,entryName:t});if(e.split("?")[0].endsWith(".json")){let r=this.nativeApp.readScript(e,{dynamicComponentEntry:t??k,...n});return this._$executeJSON(r,{path:e,entryName:t})}let s=this.getLoadScriptCacheKey(e,t,this.params.srcName),i=Tt(s);if(i)return this._$executeInit(i,{path:e,entryName:t});{let r=this.nativeApp.loadScript(e,t,n);return this._$executeInit(r,{path:e,entryName:t,cacheKey:s})}}requireModuleAsync(e,t){let n=_BaseApp._$factoryCache[e];if(this.shouldUseModuleCache()&&n)return void t(null,this._$executeInit({init:n},{path:e}));if(e.split("?")[0].endsWith(".json")){try{let n=this.nativeApp.readScript(e),r=this._$executeJSON(n,{path:e});t(null,r)}catch(e){t(e)}return}let r=this.getLoadScriptCacheKey(e,void 0,this.params.srcName),s=Tt(r);if(s)try{return t(null,this._$executeInit(s,{path:e}))}catch(e){t(e)}let i=Error();this.nativeApp.loadScriptAsync(e,(n,s)=>{if(n)return i.message=n,t(i);try{return t(null,this._$executeInit(s,{path:e,cacheKey:r}))}catch(e){return t(e)}})}require(path,params){let that=this;if("string"!=typeof path)throw Error("require args must be a string");let entryName=params&¶ms.dynamicComponentEntry?params.dynamicComponentEntry:k;that.modules[entryName]||(that.modules[entryName]={});let module=that.modules[entryName][path];if(!module){try{let tt=that,jsContent=that._nativeApp.readScript(path,{dynamicComponentEntry:entryName});eval(jsContent),module=that.modules[entryName][path]}catch(r){this.handleError(new Y(`eval user: ${that._nativeApp.id} error: ${r.message}`,r.stack),r)}if(!that.modules[entryName][path])throw Error(`module ${path} in ${entryName} is not defined in card: ${that._nativeApp.id}`)}if(!module.hasRun){let{factory:r}=module,e={exports:{}},t;module.hasRun=!0,module.exports=e.exports,"function"==typeof r&&(t=r(Wt.call(that,path),e,e.exports,that.Card.bind(that),that.setTimeout,that.setInterval,that.clearInterval,that.clearTimeout,that.NativeModules,that._apiList,that.sharedConsole,that.Component.bind(that),null==params?void 0:params.ReactLynx,that.nativeAppId,that.Behavior.bind(that),St,that.lynx,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,that.lynx.fetch,void 0,void 0,void 0,void 0,void 0,void 0,that.requestAnimationFrame,that.cancelAnimationFrame),module.exports=e.exports||t)}return module.exports}define(e,t,n){n=n||k,this.modules[n]||(this.modules[n]={}),this.modules[n][e]={hasRun:!1,factory:t.bind(this)}}loadScript(e,t){let{bundleName:n=k,useModuleWrapper:r=!1}=t||{},s=this.getLoadScriptCacheKey(e,n,this.params.srcName,!0),i=Tt(s);if(!this.shouldUseModuleCache()||!i){let n=this.lynx.getNativeLynx().loadScript(e,t);if(n&&"function"==typeof n.init)i=n;else{if(!r||!n||"function"!=typeof n)return n;i=n}}if(!r)return this._$executeInit(i,{path:e,entryName:null==t?void 0:t.bundleName,shouldCacheFactory:!1,cacheKey:s});{let t={exports:{}},n=[Wt.call(this,e),t,t.exports,this.setTimeout,this.setInterval,this.clearInterval,this.clearTimeout,this.NativeModules,this.sharedConsole,this.nativeAppId,St,this.lynx,this.requestAnimationFrame,this.cancelAnimationFrame,this.lynx.fetch];return i.apply(t.exports,n),Jt(s,i),t.exports}}callFunction(e,t,n){try{let r=this.getJSModule(e);"function"==typeof r[t]&&r[t].apply(r,n)}catch(n){this.handleUserError(n,{by:`${e}.${t}`})}}onAppError(e,t){this.handleInternalError(t)}saveDynamicComponentExports(e,t){this.dynamicComponentExports[e]=t}getDynamicComponentExports(e){return this.dynamicComponentExports[e]}Component(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]}Card(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]}Behavior(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]}wrapReport(e,t){let n=this;return function(r){for(var s=arguments.length,i=Array(s>1?s-1:0),a=1;a<s;a++)i[a-1]=arguments[a];return Function.prototype.apply.call(e,void 0,[function(){for(var e=arguments.length,s=Array(e),i=0;i<e;i++)s[i]=arguments[i];try{return r.apply(this,s)}catch(e){n.handleUserError(e,{by:t})}},...i])}}setupPromise(e,t,n){var r,s;let i=this.nativeAppId,a=this.pageGlobal,o=Vt(e,(e,t)=>{try{if(t){t.stack||(t=Error(JSON.stringify(t))),t.name="unhandled rejection";let e=a.multiApps[i];e&&e.handleUserError(t)}}catch{}},t,n.queueMicrotask,(null==(s=this._params)||null==(r=s.pageConfigSubset)?void 0:r.enableMicrotaskPromisePolyfill)??!1);return this.resolvedPromise=o.resolve(),o}addInternalEventListener(e,t,n){this.contextProxyTypeToMethod[e]().addEventListener(t,n),this.removeInternalEventListenersCallbacks.push(()=>{this.contextProxyTypeToMethod[e]().removeEventListener(t,n)})}addInternalEventListeners(){this.contextProxyTypeToMethod||(this.contextProxyTypeToMethod={0:()=>this.lynx.getCoreContext(),1:()=>this.lynx.getDevtool(),2:()=>this.lynx.getJSContext(),3:()=>this.lynx.getUIContext(),4:()=>this.lynx.getNative(),5:()=>this.lynx.getEngine()}),this.addInternalEventListener(0,"__OnNativeAppReady",()=>{this.onNativeAppReady()}),this.addInternalEventListener(0,"__NotifyGlobalPropsUpdated",e=>{this.updateGlobalProps(e.data)}),this.addInternalEventListener(0,"__OnLifecycleEvent",e=>{this.OnLifecycleEvent(e.data)}),this.addInternalEventListener(0,"__OnAppFirstScreen",()=>{this.onAppFirstScreen()}),this.addInternalEventListener(0,"__OnDynamicJSSourcePrepared",e=>{v.loadDynamicComponent(this,e.data)}),this.addInternalEventListener(0,"__OnAppEnterForeground",()=>{this.onAppEnterForeground()}),this.addInternalEventListener(0,"__OnAppEnterBackground",()=>{this.onAppEnterBackground()})}getLoadScriptCacheKey(e,t,n){var r,s;let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!n||!this.shouldUseModuleCache()||!(null==(s=this.params)||null==(r=s.pageConfigSubset)?void 0:r.enableReuseLoadScriptExports)&&!i)return;let a=(t||k)+e;return(e.startsWith("/")||e.startsWith("lynx_assets"))&&(a=n+a),a}shouldUseModuleCache(){return!this.isModuleCacheDisabled()}isModuleCacheDisabled(){return!0===this.pageGlobal.__lynxDisableModuleCache}updateGlobalProps(e){}OnLifecycleEvent(e){}onNativeAppReady(){}onAppFirstScreen(){}onAppEnterBackground(){}onAppEnterForeground(){}};function Dn(e){let t=e.match(/(.*)\/([^/]+)?$/);return(null==t?void 0:t[1])?t[1]:"./"}function Wt(e){let t=this,n=Dn(e);return function(e){let r=[],s=`${n}/${e}`.split("/"),i=s.length;if("string"!=typeof e)throw Error("require args must be a string");for(let n=0;n<i;++n){let a=s[n];if(""!==a&&"."!==a)if(".."===a){if(0===r.length)throw Error(`can't find module ${e} in app: ${t._nativeApp.id}`);r.pop()}else n+1<i&&".."===s[n+1]?n++:r.push(a)}let a=r.join("/");return a.endsWith(".js")||(a+=".js"),t.require(a)}}function Tt(e){if(e)return O._$loadScriptCache[e]}function Jt(e,t){e&&t&&(O._$loadScriptCache[e]=t)}O.kDefaultSourceMapURL="default",O.kGetSourceMapReleaseErrorName=kt,O._$factoryCache={},O._$loadScriptCache={},Kt||(Kt={}),function(e){e.created="created",e.attached="attached",e.ready="ready",e.detached="detached",e.moved="moved"}(M||(M={})),function(e){e[e.START=0]="START",e[e.PLAY=1]="PLAY",e[e.PAUSE=2]="PAUSE",e[e.CANCEL=3]="CANCEL",e[e.FINISH=4]="FINISH"}(Qt||(Qt={}));var Ne=class r{constructor(e){this.effect=e,this.id="__lynx-inner-js-animation-"+r.count++}cancel(){this.effect.target.cancelAnimate(this)}pause(){this.effect.target.pauseAnimate(this)}play(){this.effect.target.playAnimate(this)}};Ne.count=0;var it=class{constructor(e,t,n){this.target=e,this.keyframes=t,this.options=n}},at=class{constructor(e,t){this.keyframes=e,this.options=t}},ct=class{constructor(e,t,n){this.id=e,this.effect=new at(t,n)}},De=class{constructor(e,t,n){this._root=e,this._idSelector="#"+t,this._lynx=n,this._element=void 0}ensureElement(){this._element||(this._element=this._lynx.createElement(this._root,this._idSelector))}animate(e,t){this.ensureElement();let n=new Ne(new it(this,e,t));return this._element.animate(0,n.id,e,t),n}playAnimate(e){this._element.animate(1,e.id,void 0,void 0)}pauseAnimate(e){this._element.animate(2,e.id,void 0,void 0)}cancelAnimate(e){this._element.animate(3,e.id,void 0,void 0)}finishAnimate(e){this._element.animate(4,e.id,void 0,void 0)}setProperty(e,t){if(this.ensureElement(),"string"==typeof e&&"string"==typeof t)this._element.setProperty({[e]:t});else if("object"==typeof e)this._element.setProperty(e);else throw Error(`setProperty's param must be string or object. While current type is ${typeof e} and ${typeof t}.`)}},z=De,U=class r{constructor(e,t,n){this._component=e,this._taskQueue=t,this._native_proxy=n,this._fire_immediately=!1,this._root_unique_id=void 0}static fromQuery(e,t){return new r(t??e._component,e._taskQueue.slice(),e._native_proxy)}static newEmptyQuery(e,t){return new r(t??"",[],e)}commitTask(e){let t=r.fromQuery(this,this._component);return(t._taskQueue.push(e),this._fire_immediately)?void t.exec():t}in(e){return e.createSelectorQuery(this)}select(e){return new me(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectAll(e){return new me(this,{type:0,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!1})}selectReactRef(e){if(this._taskQueue.length){let e="selectReactRef() should be called before any other selector query methods";nativeConsole.warn(e);let t=Error(e);J(new Ke(e,t.stack),this._native_proxy.nativeApp);return}return this._fire_immediately=!0,new me(this,{type:1,identifier:e,component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}selectRoot(){return this.select("")}selectUniqueID(e){return new me(this,{type:2,identifier:e.toString(),component_id:this._component,root_unique_id:this._root_unique_id,first_only:!0})}exec(){for(let e=0;e<this._taskQueue.length;++e)this._taskQueue[e](this._native_proxy)}setRoot(e){return this._root_unique_id=Number(e),this}},me=class{constructor(e,t){this._nodeSelectToken=t,this._selectorQuery=e}invoke(e){let t=t=>{let n=t=>{0===t.code?e.success&&e.success(t.data):e.fail&&e.fail(t)};this._nodeSelectToken.first_only?t.nativeApp.invokeUIMethod(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e.method,e.params??{},n,this._nodeSelectToken.root_unique_id):n({code:5,data:"selectAll not supported for invoke method"})};return this._selectorQuery.commitTask(t)}path(e){let t=t=>{t.nativeApp.getPathInfo(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,t=>{e&&e(t.data,t.status)},this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}fields(e,t){let n=n=>{let r=r=>{if(e.query){let t=t=>{t.query=U.newEmptyQuery(n),t.query.setRoot(t.unique_id.toString()),e.unique_id||delete t.unique_id};if(this._nodeSelectToken.first_only){let e=r.data;e&&t(e)}else for(let e of r.data)t(e)}t&&t(r.data,r.status)},s=[];for(let t in e){if("query"==t&&!0==e[t]&&!e.unique_id){s.push("unique_id");continue}e[t]&&s.push(t)}n.nativeApp.getFields(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,s,r,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(n)}animate(e){let t=[];Array.isArray(e)?t=e:t.push(e);let n=e=>{t.forEach(t=>{var n,r;e.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,0,null==t?void 0:t.id,null==t||null==(n=t.effect)?void 0:n.keyframes,null==t||null==(r=t.effect)?void 0:r.options)})};return this._selectorQuery.commitTask(n)}animationOperate(e,t){let n=[];Array.isArray(t)?n=t:n.push(t);let r=t=>{n.forEach(n=>{t.nativeApp.animate(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,e,n,null,null)})};return this._selectorQuery.commitTask(r)}playAnimation(e){return this.animationOperate(1,e)}pauseAnimation(e){return this.animationOperate(2,e)}cancelAnimation(e){return this.animationOperate(3,e)}finishAnimation(e){return this.animationOperate(4,e)}setNativeProps(e){let t=t=>{t.nativeApp.setNativeProps(this._nodeSelectToken.type,this._nodeSelectToken.identifier,this._nodeSelectToken.component_id,this._nodeSelectToken.first_only,e,this._nodeSelectToken.root_unique_id)};return this._selectorQuery.commitTask(t)}};me.nodePool={};var Ee=class r{constructor(e,t,n,s){var i,a,o=this;this.getNativeApp=e,this.getApp=t,this.Promise=n,this.getNativeLynx=s,this.setTimeout=this.getApp().wrapReport(this.getNativeApp().setTimeout,"setTimeout Error"),this.setInterval=this.getApp().wrapReport(this.getNativeApp().setInterval,"setInterval Error"),this.clearInterval=this.getNativeApp().clearInterval,this.clearTimeout=this.getNativeApp().clearTimeout,this.resumeExposure=this.getApp()._apiList.resumeExposure,this.requireModule=(e,t,n)=>{if(this.requireModule.cache[e])return this.requireModule.cache[e];let s=this.getApp().requireModule(e,t,n);return this.requireModule.cache[e]=s,s},this.requireModuleAsync=(e,t)=>{if(t??(t=e=>{e&&this.getApp().handleUserError(e)}),this.requireModuleAsync.cache[e])return void t(null,this.requireModuleAsync.cache[e]);let n=this.getApp();n.requireModuleAsync(e,(s,i)=>{s||this.getApp()!==n||(this.requireModuleAsync.cache[e]=i),t(s,i)})},this.createElement=(e,t)=>this.getNativeLynx().createElement(e,t),this.getElementById=e=>new z("",e,this),this.reportError=(e,t)=>{let n;if($e(e))n=e;else{let t;n=Error("string"!=typeof e?JSON.stringify(e):e)}let{level:s="error"}=t||{},i;switch(s){case"error":default:i=1;break;case"warning":i=2;break;case"fatal":i=0}this.getApp().handleUserError(n,n.cause,i)},this.registerModule=(e,t)=>this.getApp().registerModule(e,t),this.getJSModule=e=>this.getApp().getJSModule(e),this.getTextInfo=this.getApp()._apiList.getTextInfo,this.addFont=(e,t)=>{if(!E(e))throw Error("The first argument must be object type");if(!$(e["font-family"])||!$(e.src))throw Error("The font value must have font-family and src");if(!D(t))throw Error("The second argument must be function type");this.getNativeLynx().addFont(e,t)},this.stopExposure=this.getApp()._apiList.stopExposure,this.setObserverFrameRate=this.getApp()._apiList.setObserverFrameRate,this.performance=this.getApp().performance,this.beforePublishEvent=this.getApp()._aopManager._beforePublishEvent,this.setSessionStorageItem=(e,t)=>{this.dispatchSessionStorageEvent({type:"__SetSessionStorageItem",data:{key:e,value:t}})},this.getSessionStorageItem=(e,t)=>{this.getNativeApp().getSessionStorageItem(e,t)},this.subscribeSessionStorage=(e,t)=>{let n=r.__registerSharedDataCounter++;return this.getNativeApp().subscribeSessionStorage(e,n,t),n},this.unsubscribeSessionStorage=(e,t)=>{this.dispatchSessionStorageEvent({type:"__UnSubscribeSessionStorage",data:{key:e,listenerId:t}})},this.getDevtool=this.getNativeLynx().getDevtool,this.getCoreContext=this.getNativeLynx().getCoreContext,this.getJSContext=this.getNativeLynx().getJSContext,this.getUIContext=this.getNativeLynx().getUIContext,this.getNative=this.getNativeLynx().getNative,this.getEngine=this.getNativeLynx().getEngine,this.getCustomSectionSync=this.getNativeLynx().getCustomSectionSync,this.accessibilityAnnounce=null==(i=this.getNativeApp().nativeModuleProxy.LynxAccessibilityModule)?void 0:i.accessibilityAnnounce,this.requestResourcePrefetch=(e,t,n)=>{var s;if(!E(e)||!Array.isArray(e.data)){t&&t({code:32101,msg:"Parameters error in Lynx resource prefetch module! Value of 'data' should be an array.",details:[]});return}n&&(!Number.isInteger(n.awaitTimeout)||n.awaitTimeout<=0)&&(n={...n,awaitTimeout:6e4});let i=null==(s=this.getNativeApp().nativeModuleProxy.LynxResourceModule)?void 0:s.requestResourcePrefetch;i&&i(e,t,n??{})},this.cancelResourcePrefetch=null==(a=this.getNativeApp().nativeModuleProxy.LynxResourceModule)?void 0:a.cancelResourcePrefetch,this.setSharedData=(e,t)=>{v.sharedData[e]=t;let n={};n[e]=t,v.shareDataSubject.notifyDataChange(n)},this.getSharedData=e=>v.sharedData[e],this.registerSharedDataObserver=e=>v.shareDataSubject.registerObserver(e,this.getApp().nativeAppId),this.removeSharedDataObserver=e=>v.shareDataSubject.removeObserver(e),this.triggerLepusGlobalEvent=(e,t)=>this.getNativeApp().triggerLepusGlobalEvent(e,t),this.reload=(e,t)=>{this.getNativeLynx().reload(e,t)},this.startRecording=e=>{this.getNativeLynx().startRecording(e)},this.stopRecording=e=>{this.getNativeLynx().stopRecording(e)},this.fetchDynamicComponent=(e,t,n,s)=>this.getNativeLynx().fetchDynamicComponent(e,t,n,s),this.QueryComponent=(e,t)=>{let n=()=>{t({code:0,data:{url:e,sync:!0,error_message:"",mode:"cache"},detail:{schema:e,cache:!1,errMsg:""}})};if(this.getApp().loadedDynamicComponentsSet.has(e))return void n();let s=s=>{!0===s.__hasReady?(v.loadDynamicComponent(this.getApp(),e),n()):t(s)};this.getNativeLynx().QueryComponent(e,s)},this.loadDynamicComponent=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new o.Promise((s,i)=>{let a=[],l;(Array.isArray(e)?(a=e,l=t):"string"==typeof t?(a=[e],l=t):(l=e,n=t),o.getApp().loadedDynamicComponentsSet.has(l))?s({code:0,data:{url:l,sync:!1,error_message:"",mode:"normal"},detail:{schema:l,cache:!1,errMsg:""}}):o.getNativeLynx().fetchDynamicComponent(l,n,e=>{e&&0==e.code?s(e):i(e)},a)})},this.fetch=(e,t)=>new this.Promise((n,s)=>{var i,a;let o=new(this.getApp()).pageGlobal.Request(e,t),l=o.signal;if(l.aborted)return s(l.reason);l.addEventListener("abort",e=>{s(l.reason)});let h=null==(a=this.getApp().params)||null==(i=a.pageConfigSubset)?void 0:i.enableFetchAPIStandardStreaming;o.lynxExtension.enableFetchAPIStandardStreaming=h;let c={method:o.method,url:o.url,origin:this.getNativeApp().__pageUrl,headers:Object.fromEntries(o.headers.entries()),body:o._arrayBuffer,lynxExtension:o.lynxExtension},p=o.lynxExtension.useStreaming||h;this.getApp().NativeModules.LynxFetchModule.fetch(c,e=>{if(!l.aborted)try{let t=new(this.getApp())._ReadableStreamClass,s=new(this.getApp()).pageGlobal.Response(p?t:e.body,e,h);if(p){let e=s.lynxExtension.streamingId;this.getApp().GlobalEventEmitter.addListener(e,e=>{let n=e.event;"onData"===n?t.onData(e.data):"onEnd"===n?t.onEnd():"onError"===n&&t.onError(e.error)})}n(s)}catch{s(TypeError(e.statusText))}},e=>{l.aborted||s(TypeError(e.message))})}),this.EventSource=qt(this.fetch),this.createSelectorQuery=e=>U.newEmptyQuery({nativeApp:this.getNativeApp(),lynx:this},e),this.requestAnimationFrame=e=>this.getNativeApp().requestAnimationFrame(e),this.cancelAnimationFrame=e=>this.getNativeApp().cancelAnimationFrame(e),this.loadScript=(e,t)=>{let{bundleName:n=k}=t,s=n+":"+e;if(this.loadScript.cache[s])return this.loadScript.cache[s];let i=this.getApp().loadScript(e,t);return this.loadScript.cache[s]=i,i},this.fetchBundle=this.getNativeLynx().fetchBundle,this.__addReporterCustomInfo=e=>{this.getNativeApp().__addReporterCustomInfo(e)},this.getModuleLoader=()=>{let e=this.getApp();return e.pageGlobal["napiLoaderOnRT"+e.nativeAppId]},this.createAnimation=(e,t,n)=>new ct(e,t,n),this.init(void 0)}rebind(e){this.init(e)}init(e){if(e)this.getApp=e,e().params.isReload||(this.__globalProps=this.getNativeLynx().__globalProps||{}),this.__presetData=this.getNativeLynx().__presetData||{};else{let e={};this.requireModule.cache=e,this.requireModuleAsync.cache=e,this.loadScript.cache={},this.__globalProps=this.getNativeLynx().__globalProps||{},this.__presetData=this.getNativeLynx().__presetData||{},this._switches={}}}dispatchSessionStorageEvent(e){0!=this.getCoreContext().dispatchEvent(e)&&this.getJSContext().dispatchEvent(e)}get ReadableStream(){return this.getApp()._ReadableStreamClass}queueMicrotask(e){this.getNativeLynx().queueMicrotask(e)}};Ee.__registerSharedDataCounter=0,function(e){e[e.CoreContext=0]="CoreContext",e[e.DevTool=1]="DevTool",e[e.JSContext=2]="JSContext",e[e.UIContext=3]="UIContext",e[e.Native=4]="Native",e[e.Engine=5]="Engine"}(w||(w={})),function(e){e.ON_NATIVE_APP_READY="__OnNativeAppReady",e.NOTIFY_GLOBAL_PROPS_UPDATED="__NotifyGlobalPropsUpdated",e.ON_LIFECYCLE_EVENT="__OnLifecycleEvent",e.ON_REACT_COMPONENT_RENDER="__OnReactComponentRender",e.ON_REACT_CARD_DID_UPDATE="__OnReactCardDidUpdate",e.ON_REACT_COMPONENT_CREATED="__OnReactComponentCreated",e.ON_REACT_CARD_RENDER="__OnReactCardRender",e.ON_REACT_COMPONENT_UNMOUNT="__OnReactComponentUnmount",e.ON_APP_FIRST_SCREEN="__OnAppFirstScreen",e.ON_DYNAMIC_JS_SOURCE_PREPARED="__OnDynamicJSSourcePrepared",e.ON_APP_ENTER_FOREGROUND="__OnAppEnterForeground",e.ON_APP_ENTER_BACKGROUND="__OnAppEnterBackground",e.ON_COMPONENT_ACTIVITY="__OnComponentActivity",e.FORCE_GC_JSI_OBJECT_WRAPPER="__ForceGcJSIObjectWrapper",e.ON_REACT_COMPONENT_DID_UPDATE="__OnReactComponentDidUpdate",e.ON_REACT_COMPONENT_DID_CATCH="__OnReactComponentDidCatch",e.ON_COMPONENT_SELECTOR_CHANGED="__OnComponentSelectorChanged",e.ON_COMPONENT_PROPERTIES_CHANGED="__OnComponentPropertiesChanged",e.ON_COMPONENT_DATA_SET_CHANGED="__OnComponentDataSetChanged",e.EVENT_SET_SESSION_STORAGE="__SetSessionStorageItem",e.EVENT_GET_SESSION_STORAGE="__GetSessionStorageItem",e.EVENT_SUBSCRIBE_SESSION_STORAGE="__SubscribeSessionStorage",e.EVENT_UNSUBSCRIBE_SESSION_STORAGE="__UnSubscribeSessionStorage"}(P||(P={})),function(e){e[e.ID_SELECTOR=0]="ID_SELECTOR",e[e.REF_ID=1]="REF_ID",e[e.UNIQUE_ID=2]="UNIQUE_ID"}(Yt||(Yt={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.UNKNOWN=1]="UNKNOWN",e[e.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",e[e.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",e[e.PARAM_INVALID=4]="PARAM_INVALID",e[e.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",e[e.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE"}(zt||(zt={}));var H=class r{constructor(e,t,n,r,s){this._selectorName=n,r&&r.length>0?this._ancestorSelectorNames=[...r]:this._ancestorSelectorNames=[],this._rootComponentId=t,this._proxy=e,this._isCallByRefId=s}getNodeRef(e){return new r(this._proxy,this._rootComponentId,e,[...this._ancestorSelectorNames,this._selectorName],this._isCallByRefId)}invoke(e){let t=t=>{0===t.code?e.success&&e.success(t.data):e.fail&&e.fail(t)};!0===this._proxy.nativeApp.isFragmentLayerRender?this.invokeBySelectorQuery(e,t):this._proxy.nativeLynxUIModule.invokeUIMethod(this._rootComponentId,[...this._ancestorSelectorNames,this._selectorName],e.method,Object.assign({_isCallByRefId:this._isCallByRefId},e.params),t)}invokeBySelectorQuery(e,t){let n=[...this._ancestorSelectorNames,this._selectorName],r=+!!this._isCallByRefId,s=(i,a)=>{if(i===n.length-1)return void this._proxy.nativeApp.invokeUIMethod(r,n[i],this._rootComponentId,e.method,e.params??{},t,a);let o=n[i];this._proxy.nativeApp.getFields(r,o,this._rootComponentId,!0,["unique_id"],e=>{var n,r,a;let l=(null==e||null==(n=e.status)?void 0:n.code)??1,h=null==e||null==(r=e.data)?void 0:r.unique_id;0!==l||null==h?t({code:0===l?2:l,data:0===l?`not found ${o}`:(null==e||null==(a=e.status)?void 0:a.data)??`not found ${o}`}):s(i+1,Number(h))},a)};s(0)}scrollIntoView(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t={};if("boolean"==typeof e)t=e?{behavior:"auto",block:"start",inline:"nearest"}:{behavior:"auto",block:"end",inline:"nearest"};else if("object"==typeof e)t=e;else throw Error("scrollIntoView only support boolean or object");this.invoke({method:"scrollIntoView",params:{scrollIntoViewOptions:t},fail(e){nativeConsole.error("NodeRef.scrollIntoView failed",`ErrorCode: ${e.code}`)}})}},Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pn=new Uint8Array(256);for(let r=0;r<Xt.length;r++)Pn[Xt.charCodeAt(r)]=r;function Zt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;N(`destroy ${e}`),t.multiApps[e].destroy(),v.shareDataSubject.removeObserversOfOwner(e),delete t.multiApps[e]}function en(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;N(`callDestroyLifetimeFun ${e}`),t.multiApps[e].callDestroyLifetimeFun()}function tn(e,t){if(e.loadedDynamicComponentsSet.has(t))return e.getDynamicComponentExports(t);let n=e.pageGlobal,r=n.globDynamicComponentEntry;n.globDynamicComponentEntry=t;try{delete e.lynx.requireModule.cache[Q],delete O._$factoryCache[Q];let n=e.lynx.requireModule(Q,t);return e.saveDynamicComponentExports(t,n),e.loadedDynamicComponentsSet.add(t),n}catch(t){e.handleUserError(t)}finally{n.globDynamicComponentEntry=r}}function nn(e,t,n){let{message:r,name:s,stack:i}=t||{};r||({message:r,name:s,stack:i}=Error(JSON.stringify(t)));let a=new ce(`loadCard failed ${s}: ${r}`,i);a.cause=n,J(a,e,{originError:t,getSourceMapRelease:t=>{if(!e.__GetSourceMapRelease(t))return e.__GetSourceMapRelease(O.kDefaultSourceMapURL)}})}var B=function(){let e,t,n;function r(e,t){return null!=t&&e instanceof t}try{e=Map}catch{e=function(){}}try{t=Set}catch{t=function(){}}try{n=Promise}catch{n=function(){}}function s(i,o,l,h,c){"object"==typeof o&&(l=o.depth,h=o.prototype,c=o.includeNonEnumerable,o=o.circular);let p=[],d=[],u="u">typeof Buffer;return typeof o>"u"&&(o=!0),typeof l>"u"&&(l=1/0),function i(l,_){let m,f;if(null===l)return null;if(0===_||"object"!=typeof l)return l;if(r(l,e))m=new e;else if(r(l,t))m=new t;else if(r(l,n))m=new n(function(e,t){l.then(function(t){e(i(t,_-1))},function(e){t(i(e,_-1))})});else if(s.__isArray(l))m=[];else if(s.__isRegExp(l))m=new RegExp(l.source,a(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(s.__isDate(l))m=new Date(l.getTime());else{if(u&&Buffer.isBuffer(l))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(m),m;r(l,Error)?m=Object.create(l):typeof h>"u"?m=Object.create(f=Object.getPrototypeOf(l)):(m=Object.create(h),f=h)}if(o){let e=p.indexOf(l);if(-1!==e)return d[e];p.push(l),d.push(m)}for(let n in r(l,e)&&l.forEach(function(e,t){let n=i(t,_-1),r=i(e,_-1);m.set(n,r)}),r(l,t)&&l.forEach(function(e){let t=i(e,_-1);m.add(t)}),l){let e;f&&(e=Object.getOwnPropertyDescriptor(f,n)),e&&null==e.set||(m[n]=i(l[n],_-1))}if(Object.getOwnPropertySymbols){let e=Object.getOwnPropertySymbols(l);for(let t=0;t<e.length;t++){let n=e[t],r=Object.getOwnPropertyDescriptor(l,n);r&&!r.enumerable&&!c||(m[n]=i(l[n],_-1),r.enumerable||Object.defineProperty(m,n,{enumerable:!1}))}}if(c){let e=Object.getOwnPropertyNames(l);for(let t=0;t<e.length;t++){var y;let n=e[t];(null==(y=Object.getOwnPropertyDescriptor(l,n))?void 0:y.enumerable)||(m[n]=i(l[n],_-1),Object.defineProperty(m,n,{enumerable:!1}))}}return m}(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){let t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return s.clonePrototype=function(e){if(null===e)return null;let t=function(){};return t.prototype=e,new t},s.__objToStr=i,s.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},s.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},s.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},s.__getRegExpFlags=a,s}(),Mn=1,Un=1,pt={};function rn(){return String(Mn++)}function on(e){return pt[e]||(pt[e]=String(Un++)),pt[e]}var wn=["onLoad","onShow","onHide","onReady","onDestroy","onError","onFirstScreen"],Ot={},kn=function(){};for(let r of wn)Ot[r]=kn;var be=["created","attached","ready","moved","detached"],q="__Card__",sn="__card_config_",lt="theme",Ce="onThemeChanged",te="$$shouldComponentUpdate",de="$$jsStateVersion",K="$$nativeStateVersion",dt="$$renderError",ht="JS_RENDER_ERROR",an="LEPUS_RENDER_ERROR",cn="0";function Fn(e,t){let n=t._reactAppInstance._getComponent(e);for(;n&&"string"==typeof n.parentId;){if(n.parentId===cn)return;if((n=t._reactAppInstance._getComponent(n.parentId)).$hasDerivedErrorFunction)return n}}function jn(e){var t,n;return(null==e||null==(t=e.state)?void 0:t[dt])===ht||(null==e||null==(n=e.state)?void 0:n[dt])===an}function pn(e,t,n){let r={message:null==e?void 0:e.message,stack:null==e?void 0:e.stack,name:ht},s=Fn(t,n);if(s){if(jn(s))return;if(s.$hasDerivedErrorFunction){let e=s.$class.getDerivedStateFromError(r);if(E(e)){let t={...e,[dt]:ht};s.setState(t)}}s.$catchError=r,n.$throwError=r}else throw e}function It(e){if("string"!==S(e)){let e="path should be string";throw nativeConsole.error("TypeError",e),new V(e)}let t=!1,n=!1,r=e.length,s=[],i="";for(let a=0,o=0;o<r;o++){let l=e[o];if("\\"===l)o+1<r&&("."===e[o+1]||"["===e[o+1]||"]"===e[o+1])?(i+=e[o+1],o++):i+="\\";else if("."===l)i&&(s.push(i),i="");else if("["===l){if(n)throw nativeConsole.error("DataPathError",`Path can not have nested []: ${e}`),new V(`Path can not has nested []: ${e}`);if(i&&(s.push(i),i=""),0===s.length)throw nativeConsole.error("DataPathError",`Path can not start with []: ${e}`),new V(`Path can not start with []: ${e}`);n=!0,t=!1}else if("]"===l){if(!t)throw nativeConsole.error("DataPathError",`Must have number in []: ${e}`),new V(`Must have number in []: ${e}`);n=!1,s.push(a),a=0,i=""}else if(n){if(l<"0"||l>"9")throw nativeConsole.error("DataPathError",`Only number 0-9 could inside []: ${e}`),new V(`Only number 0-9 could inside []: ${e}`);t=!0,a=10*a+l.charCodeAt(0)-48}else i+=l}if(n)throw nativeConsole.error("DataPathError",`[] should appear in pair: ${e}`),new V(`[] should appear in pair: ${e}`);if(i&&s.push(i),0===s.length)throw nativeConsole.error("DataPathError","Path can not be empty"),new V("Path can not be empty");return s}function ln(e,t){let n={},r;for(var s=It(t),i=e,a=0;a<s.length;a++){let e=S(i);if(+(s[a]==s[a]&&s[a]%1==0)){if("array"!==e&&"object"!==e)throw nativeConsole.error(`DataPathError, Expected Array or Object but get ${e}. key: ${t}`),new V(`DataPathError, Expected Array but get ${e}. key: ${t}`)}else if("object"!==e)throw nativeConsole.error(`DataPathError, Expected Object but get ${e}. key: ${t}`),new V(`DataPathError, Expected Object but get ${e}. key: ${t}`);r=s[a],n=i,i=i[s[a]]}return{obj:n,key:r}}var ne=class r{constructor(e){this._queue=[],this.componentId="",this.getSourceMapRelease=e=>this.getApp().getSourceMapRelease(e);let{type:t,componentId:n="",resolvedPromise:r,app:s}=e??{};this.getApp=()=>s,this._type=t,this.componentId=n,this.resolvedPromise=r,this._$pendingUpdate=null,this._microTaskPending=!1}get __sourcemap__release__(){return this.getApp().getSourceMapRelease(O.kDefaultSourceMapURL)}nextTick(e){this.resolvedPromise.then(e)}updateData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.data,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(let r in e){let{obj:s,key:i}=ln(t,r);s&&(s[i]=n?e[r]:B(e[r]))}}static mergePendingUpdate(e){if(oe(e)){let t=[];e.map(e=>{let{callback:n}=e;D(n)&&t.push(n)});let n,[s,i]=e.reduce((e,t)=>{let[n,s]=e,{state:i,updateDataType:a}=t;for(let e in i)i.hasOwnProperty(e)&&e!==te&&(s[e]=i[e]);return!0!==s[te]&&(s[te]=null==i[te]),[n|=a,s]},[0,{}]);return i&&!0===i[te]&&delete i[te],{data:i,callbacks:t,stackTraces:n,updateDataType:s}}return r.mergePendingUpdate([e])}dataQueueUpdate(e,t,n,s){D(n)&&(n={callback:n}),Se(s)||(n.enableFixBatchedUpdateOrder=s);let{_queue:i}=e,{enableFixBatchedUpdateOrder:a,updateDataType:o,updateToNative:l=e._nativeApp.batchedUpdateData.bind(e._nativeApp),callback:h}=n,c={state:t,updateDataType:o,stackTrace:void 0,callback:h};je(this._$pendingUpdate)?this._$pendingUpdate=c:oe(this._$pendingUpdate)?this._$pendingUpdate.push(c):this._$pendingUpdate=[this._$pendingUpdate,c],i.includes(this)||i.push(this),e._microTaskPending||(e._microTaskPending=!0,this.nextTick(()=>{let t,n=[];e._microTaskPending=!1;let s=e=>{if(null===e._$pendingUpdate)return;let{callbacks:t,stackTraces:s,data:i,updateDataType:a}=r.mergePendingUpdate(e._$pendingUpdate);e._$pendingUpdate=null;let o=this.getApp().lynx.performance._initializeAndStartPipeline();this.getApp().lynx.performance._checkAndBindTimingFlag(o,i);let l={type:e._type,componentId:e.componentId,data:i,updateDataType:a,stackTraces:s,pipelineOptions:o};t.length>0&&(l.callback=$n.bind(e,t)),n.push(l)};if(a)e._queue=[],i.forEach(s);else for(;t=i.pop();)s(t);l(n)}))}triggerWorkletFunction(e,t,n,r){try{this.getApp()._nativeApp.triggerWorkletFunction(this.componentId??"",e,t,n,r)}catch(e){this.getApp().handleInternalError(e)}}};function $n(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;++t)e[t]()}var j=class{static #e=this.REACT_COMPONENT_CREATED="onReactComponentCreated";static #t=this.REACT_COMPONENT_RENDER="onReactComponentRender";static #n=this.REACT_COMPONENT_DID_UPDATE="onReactComponentDidUpdate";static #r=this.REACT_COMPONENT_DID_CATCH="onReactComponentDidCatch";static #s=this.REACT_COMPONENT_UNMOUNT="onReactComponentUnmount";static #i=this.REACT_COMPONENT_SET_STATE="ReactComponent::setState";static #a=this.TT_UPDATE_SIGNAL="updateSignal";static #o=this.TT_UPDATE_SIGNALS="updateSignals";static #l=this.TT_UPDATE_EMBEDDED_DATA="updateEmbeddedData"},dn=50,Dt=10,Gn=1e4,Nt=class r extends ne{constructor(e={}){super(),this.prevProps={},this.prevState={},this.nextProps={},this.nextState={},this.$init=!1,this.$cardInit=!1,this.$prefix="",this.componentPath="",this.entryName="",this.globalProps=null,this._asyncSetStateMicroTaskPending=!1,this.$jsStateVersion=0,this.$nativeStateVersion=0,this.$componentState=0,this.$isInCtor=!0,this.parentId="",this.$catchError=null,this.$throwError=null,this.$isUpdatingState=!1,this.$nestedUpdateCount=0,this.$startDetectNestedUpdateTimestamp=0,this.$hasNestedUpdate=!1,this.state={},this.props=e,this.prevProps={},this.prevState={},this.$prefix=rn(),this.setComponentConfig(this.constructor),this.$refs=[],this.$pureData={},this._stateQueue=[],this._uiModule=this._nativeApp.nativeModuleProxy.LynxUIMethodModule}static call(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return Reflect.construct(r,n,Object.getPrototypeOf(e).constructor)}static apply(e,t){return Reflect.construct(r,t,Object.getPrototypeOf(e).constructor)}get _reactAppInstance(){return this.getApp()}get nativeApp(){return this._nativeApp}executeJSRender(){this.clearRef();let e=this._createData();return this.bindRef(),e}handleExceptionInJS(e){pn(e,this.componentId,this)}bindRef(){!this.$refs||this.$refs.length<1||this.$refs.forEach(e=>{this.bindComponent(e)})}bindComponent(e){let t=null;if("native"===e.type){let n=this.getApp().lynx;t=n._switches.useSelectorQueryAsReactRef??new ue(n.targetSdkVersion).gte(Ft)?this.createSelectorQuery().selectReactRef(e.refId):this.getNodeRef(e.refId,!0)}else"com"===e.type&&$(this.$pureData[e.refId])&&(t=this._reactAppInstance._getComponent(this.$pureData[e.refId]));let n=typeof e.ref;E(t)&&("function"===n?e.ref.call(this,t):"object"===n&&"current"in e.ref&&(e.ref.current=t,e.ref.id=this.componentId))}bindSingleRef(e){E(e)&&this.bindComponent(e)}clearRef(){Array.isArray(this.$refs)&&this.$refs.length>0&&this.$refs.forEach(e=>{if("function"==typeof e.ref)try{e.ref.call(this,null)}catch{}}),this.$refs=[]}clearRefToThis(){if(!this.$componentIdContainsRefToThis)return;let e="card"==this.$componentIdContainsRefToThis.componentId?this._reactAppInstance.appInstance:this._reactAppInstance._getComponent(this.$componentIdContainsRefToThis.componentId);if(e){if(!e.$refs.includes(this.$componentIdContainsRefToThis.refItem)){this.$componentIdContainsRefToThis=null;return}try{this.$componentIdContainsRefToThis.refItem.ref.call(e,null)}catch{}delete e.$pureData[this.$componentIdContainsRefToThis.refItem.refId],this.$componentIdContainsRefToThis=null}}updateTheme(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{let n=S(e);if("object"!==n)throw Error(`updateTheme's first param must be object, you pass ${n}`);let r={};t?Object.assign(r,e):Object.assign(r,this.theme,e),Object.keys(r).forEach(e=>{r[e]||delete r[e]}),this._nativeApp.updateData({__card_config_:{theme:r}},1),this[lt]=r,"function"==typeof this[Ce]&&this[Ce](r)}catch(e){this.getApp().handleUserError(e)}}setStateByPath(e,t,n){"string"==typeof e?e={[e]:t}:"function"==typeof t&&(n=t),this.setState(e,n)}setState(e,t){if(this.getApp().lynx.performance.profileStart(j.REACT_COMPONENT_SET_STATE,{args:{componentPath:"card"===this._type?"card":this.componentPath}}),"card"===this._type&&2===this.$componentState)return void this.getApp().lynx.performance.profileEnd();if(this.$isInCtor){let{initNativeStateVersion:e}=this.$class.__config;nativeConsole.alog(`has setState in Ctor, change $nativeStateVersion from ${this.$nativeStateVersion} to ${e}`),Se(e)||(this.$nativeStateVersion=e)}if(this.$nestedUpdateCount>dn&&!this.$hasNestedUpdate&&(this.$nestedUpdateCount=0,Date.now()-this.$startDetectNestedUpdateTimestamp<Gn*(dn-Dt))){this.$hasNestedUpdate=!0,this.$startDetectNestedUpdateTimestamp=0;let e="Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentDidUpdate. ReactLynx limits the number of nested updates to prevent infinite loops.";nativeConsole.warn(e);let t=Error(e);J(new Y(e,t.stack),this._nativeApp,{originError:t,getSourceMapRelease:this.getSourceMapRelease,errorCode:20100,errorLevel:qe.Warn})}this.$isUpdatingState=!0;let n=null;try{var r;let s=S(e);if("function"===s)n=e(this.state,this.props);else if("object"===s)n=e;else throw Error(`setState's first param must be object/function, you pass ${s}`);let i=S(t);if(t&&"function"!==i)throw Error(`setState's second param must be function, you pass ${i}`);(null==(r=this._reactAppInstance.lynx._switches)?void 0:r.asyncSetState)?this.setStateInternalAsync(n,t):this.setStateInternal(n,t,{updateDataType:1})}catch(e){this.getApp().handleInternalError(e)}finally{this.getApp().lynx.performance.profileEnd()}}setStateInternalAsync(e,t){this._stateQueue.push({state:e,callback:t}),this._asyncSetStateMicroTaskPending||(this._asyncSetStateMicroTaskPending=!0,this._reactAppInstance.resolvedPromise.then(()=>{this._asyncSetStateMicroTaskPending=!1;let e={},t=[];this._stateQueue.forEach(n=>{let{state:r,callback:s}=n;Object.assign(e,r),t.push(s)}),this._stateQueue=[];let n=()=>{t.forEach(e=>{F("at setState/async",this,e).bind(this)()})};this.setStateInternal(e,n,{updateDataType:1})}))}setStateInternal(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{this.nextProps=this.props,D(this.shouldComponentUpdate)?this.nextState=B(this.state):this.nextState=this.state,super.updateData(e,this.nextState,!0);let r=null,s={};this.$hasDerivedFunction&&(r=this.$class.getDerivedStateFromProps(this.nextProps,this.nextState),s=this.getApp().diffData(this.nextState,r),super.updateData(r||{},this.nextState,!0));let i=!0;if(D(this.shouldComponentUpdate)&&(i=this.shouldComponentUpdate(this.nextProps,this.nextState)),this.state=this.nextState,!i){let r=Object.assign({},e,s);Object.keys(r).length&&(r[te]=!1,this.dataQueueUpdate(this,r,{callback:F("at setState/dataQueueUpdate",this,t).bind(this),updateDataType:n.updateDataType}));return}let a=this.executeJSRender();if(this.$throwError)return;let o=this.getApp().diffData(this.state,a);this.state=Object.assign(this.state,a);let l=Object.assign({},e,s,o);Object.keys(l).length&&this.dataQueueUpdate(this,l,{callback:F("at setState/dataQueueUpdate",this,t).bind(this),updateDataType:n.updateDataType})}catch(e){this.getApp().handleUserError(e)}}updateDataToNative(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(e&&Object.keys(e).length||n)&&(n&&(t|=8),this.dataQueueUpdate(this,e,{updateDataType:t}))}dataQueueUpdate(e,t,n){var r;let s=null==(r=this._reactAppInstance.lynx._switches)?void 0:r.enableFixBatchedUpdateOrder;e=s&&this._reactAppInstance.appInstance||this,n.enableFixBatchedUpdateOrder=s,this.$jsStateVersion+=1,Object.assign(t,{[de]:this.$jsStateVersion,[K]:this.$nativeStateVersion}),super.dataQueueUpdate(e,t,n)}nextTick(e){var t;(null==(t=this._reactAppInstance.lynx._switches)?void 0:t.enableReactBatchedUpdate)||"iOS"!==(v.SystemInfo||{}).platform?this._reactAppInstance.resolvedPromise.then(e):e()}registerModule(e,t){this._reactAppInstance.registerModule(e,t)}get $hasDidUpdateLifecycleV2(){return this.$alwaysCheckLifecycleFunction?this.componentDidUpdate!==r.prototype.componentDidUpdate:this.$hasDidUpdateLifecycle}get $hasDidCatchLifecycleV2(){return this.$alwaysCheckLifecycleFunction?this.componentDidCatch!==r.prototype.componentDidCatch:this.$hasDidCatchLifecycle}setComponentConfig(e){var t,n;this.$class=e,this.$hasDerivedFunction=D(e.getDerivedStateFromProps),this.$alwaysCheckLifecycleFunction=new ue((null==(n=this.getApp())||null==(t=n.lynx)?void 0:t.targetSdkVersion)||"1.4").gte(Bt),this.$hasDidUpdateLifecycle=this.componentDidUpdate!==r.prototype.componentDidUpdate,this.$hasDerivedErrorFunction=D(e.getDerivedStateFromError),this.$hasDidCatchLifecycle=this.componentDidCatch!==r.prototype.componentDidCatch;let s=e.__config,i=s.appInstance.lynx;this._type=s.$type,this._nativeApp=s.appInstance.nativeApp,this.getApp=()=>s.appInstance,this.componentId=s.componentId,this.setGlobalProps(i,s.initData),this.GlobalEventEmitter=this._reactAppInstance.GlobalEventEmitter}getJSModule(e){return this._reactAppInstance.getJSModule(e)}getNodeRef(e,t){return new H({nativeLynxUIModule:this._uiModule,nativeApp:this._nativeApp,disableWarningWhenFailed:this._reactAppInstance.lynx._switches.disableNodeRefWarningWhenFailed},"component"===this._type?this.componentId:"",e,[],t)}getNodeRefFromRoot(e){return new H({nativeLynxUIModule:this._uiModule,nativeApp:this._nativeApp,disableWarningWhenFailed:this._reactAppInstance.lynx._switches.disableNodeRefWarningWhenFailed},"",e)}createSelectorQuery(e){return e?U.fromQuery(e,this.componentId):U.newEmptyQuery({nativeApp:this._nativeApp,lynx:this._reactAppInstance.lynx},this.componentId)}getPathFromTarget(e,t){this.createSelectorQuery().selectUniqueID(e.uid).path(t).exec()}getElementById(e){return new z(this.componentId?this.componentId:"card",e,this._reactAppInstance.lynx)}selectComponent(e,t){let n=S(t);if(t&&"function"!==n)throw Error(`selectComponent's second param must be function, you pass ${n}`);let r=e=>{Array.isArray(e)&&t(this._reactAppInstance.getComponent(e[0]))};this._nativeApp.selectComponent(this.componentId,e,!0,F("at component selectComponent",this,r).bind(this))}addGlobalEventListener(e,t,n){this.getJSModule("GlobalEventEmitter").addListener(e,t,n)}setSharedData(e,t){v.sharedData[e]=t}getSharedData(e){return v.sharedData[e]}setGlobalProps(e,t){e&&!e.__globalProps&&t&&t.__globalProps&&(e.__globalProps=t.__globalProps)}triggerEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{let{componentId:r}=this;this._nativeApp.triggerComponentEvent(e,{eventDetail:t,eventOption:n,componentId:r})}catch(e){this.getApp().handleInternalError(e)}}componentDidCatch(e){}componentDidMount(){}componentWillUnmount(){}componentDidUpdate(e,t,n){}componentDidShow(){}componentDidHide(){}},ut=Nt,Pt=class{constructor(){this._map={}}set(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this._map[t]=e}getProps(e){return this._map[e]}deleteProps(e){delete this._map[e]}clear(){this._map={}}},hn=Pt;function ye(e){return e&&e.$_isFunctionComponent}var Lt=class extends ut{getHooks(){return this.getApp()._hooks}executeJSRender(){return this.getHooks().resetHooks(this),this._createData()}setHookState(){this.batching||(this.batching=!0,this._reactAppInstance.resolvedPromise.then(()=>{this.batching=!1,this.setHookStateInternal()}))}setHookStateInternal(){try{let e=this.executeJSRender();if(this.$throwError)return;let t=this.getApp().diffData(this.state,e);this.state=Object.assign(this.state,e),Object.keys(t).length&&this.updateDataToNative(t,4)}catch(e){this.getApp().handleInternalError(e)}}},un=Lt;function fn(e,t){return"function"==typeof t?t(e):t}function mn(e){"function"==typeof e._cleanup&&e._cleanup()}function Vn(e){e._cleanup=e._value()}function _n(e,t){return!e||e.length!==t.length||t.some((t,n)=>t!==e[n])}function Hn(e){let t=e.__hooks;t&&(t._pendingEffects.forEach(mn),t._pendingEffects.forEach(Vn),t._pendingEffects=[])}function qn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!e.$_hookStateKeys||"object"!=typeof t)return;let r=e.$_hookStateKeys;r.length&&Object.keys(t).filter(e=>r.includes(e)).forEach(s=>{let i=null;if(n&&se(t[s]))return;let a=r.findIndex(e=>e===s);-1!=a&&(i=(e.__hooks&&e.__hooks._list?e.__hooks._list.filter(e=>1===e._type||2===e._type):[])[a])&&(i._value[0]=t[s])})}function En(){let e,t,n,r;function s(e){let n=t,s=n.__hooks||(n.__hooks={_list:[],_pendingEffects:[]});return e>=s._list.length&&s._list.push({_type:r}),r=0,s._list[e]}function i(n,i,a){0===r&&(r=2);let o=t,l=s(e++);return l._reducer=n,l._component||(l._value=[a?a(i):fn(void 0,i),e=>{let t=l._reducer(l._value[0],e);l._value[0]!==t&&(l._value=[t,l._value[1]],l._component.setHookState())}],l._component=o),l._value}function a(t,n){0===r&&(r=4);let i=s(e++);return _n(i._args,n)&&(i._value=t(),i._args=n,i._factory=t),i._value}return{useState:function(e){return r=1,i(fn,e,null)},useReducer:i,useEffect:function(i,a){r=3;let o=t,l=s(e++);!n._skipEffects&&_n(l._args,a)&&(l._value=i,l._args=a,o.__hooks._pendingEffects.push(l))},useMemo:a,useCallback:function(e,t){return r=5,a(()=>e,t)},useRef:function(e){return r=6,a(()=>({current:e,id:null}),[])},mountHooks:function(e,r){t=e,n=r||{}},cleanUpHooks:function(e){if(e&&e.__hooks)try{e.__hooks._list.forEach(mn)}catch(e){n.catchError(e)}},executeEffects:Hn,resetHooks:function(n){e=0,t=n},syncInsHookState:qn,useInstance:function(){return t}}}function yn(e,t){return e===t||e!=e&&t!=t}var Re=(e,t,n)=>{if(e===t)return!0;let r=S(e),s=S(t);if(n||(n=new WeakMap),r===s)if("array"===r){if(e.length!==t.length)return!1;if(n.has(e)&&n.has(t))return n.get(e)===t;n.set(e,t),n.set(t,e);let r=!0;return e.some((e,s)=>!(r=Re(e,t[s],n))),n.delete(e),n.delete(t),r}else{if("object"!==r)return"date"===r?yn(+e,+t):"regExp"===r?e.toString()===t.toString():yn(e,t);let s=Object.keys(e);if(s.length!==Object.keys(t).length)return!1;if(n.has(e)&&n.has(t))return n.get(e)===t;n.set(e,t),n.set(t,e);let i=!0;return s.some(r=>!(i=Re(e[r],t[r],n))),n.delete(e),n.delete(t),i}return!1},gn=(e,t)=>{let n={};if(E(t)){let r=new Set(e);Object.keys(t).forEach(e=>{r.has(e)||(n[e]=t[e])})}return n},Le=class r{constructor(e,t,n,r){this._url=e,this._name=t,this._workerId=n,this._nativeApp=r}static createWorker(e){return(t,n)=>{let s=e.createWorker(t,n);return new r(t,n,s,e)}}postMessage(e){this._nativeApp.postMessage(this._workerId,e)}onMessage(e){this._nativeApp.onMessage(this._workerId,e)}onException(e){this._nativeApp.onException(this._workerId,e)}onTerminate(e){this._nativeApp.onTerminate(this._workerId,e)}terminate(){this._nativeApp.terminate(this._workerId)}},ft=class extends Ee{constructor(e,t,n,r){super(e,t,n,r),this.getNativeApp=e,this.getApp=t,this.Promise=n,this.getNativeLynx=r,this.nativeDataChanged=!1,this.getComponentContext=(e,t,n)=>this.getNativeLynx().getComponentContext(e,t,n),this.getJSModule=e=>this.getApp().getJSModule(e),this.createWorker=Le.createWorker(this.getNativeApp()),this.getI18nResource=this.getNativeLynx().getI18nResource,this.initSub(void 0)}rebind(e){super.rebind(e),this.initSub(e)}initSub(e){}setupCanvasInJS(){let e=this.getApp().CanvasModule;e&&e.setupCanvas()&&this.getApp().setupCanvasEnv()}},W=class extends O{constructor(e,t){let{nativeApp:n}=e;super(e,t),this.componentEventBatch={},this.$isErrorHandling=!1,this.reserveKey=new Set(["__globalProps","SystemInfo"]),this.dataTypeSet=new Set(["string","number","array","object","boolean","null","function"]),this.diffData=(e,t,n)=>{let r={};if(e===t)return r;if(E(t)){let s=E(e),i=Object.keys(t);i.length&&(n&&n.length?n:i).forEach(n=>{let i=t[n];this.dataTypeSet.has(S(i))&&(s&&Re(e[n],i)||(r[n]=i))})}return r},this.filterReactComponentData=e=>{let t={};return E(e)&&Object.keys(e).forEach(n=>{let r=e[n],s=S(r);this.dataTypeSet.has(s)&&!this.reserveKey.has(n)&&(t[n]=r)}),t},this.hasJSOnlyData=e=>!!E(e)&&Object.keys(e).some(t=>{let n=S(e[t]);return!this.dataTypeSet.has(n)}),this.BDLynxModule=n.nativeModuleProxy.BDLynxModule,this.CanvasModule=n.nativeModuleProxy.CanvasNativeModule,this.CanvasModule&&this.CanvasModule.enableCanvasOptimization()&&this.setupCanvasEnv()}set appInstance(e){this._appInstance=e}get appInstance(){return this._appInstance}destroy(){super.destroy(),this._canvasEngine&&(this._canvasEngine.destroy(),this._canvasEngine=void 0)}setupCanvasEnv(){if(this._canvasEngine)return;let e=this.pageGlobal["napiLoaderOnRT"+this.nativeAppId],t=e.load("krypton_environment");if(t){let n=t.setupKryptonEngine();n&&(this._canvasEngine=new n({loader:e,promise:this.lynx.Promise,timerFunctions:{setTimeout:this.setTimeout,clearTimeout:this.clearTimeout,setInterval:this.setInterval,clearInterval:this.clearInterval},featureReporter:e=>{this._nativeApp.featureCount(e)},consoleProxy:this.sharedConsole}),this._canvasEngine.registerSyncWaitFeature(He.TypescriptHeliumCreateCanvasWait),this._canvasEngine.append(this.lynx,!0))}}saveComponentEventBatch(e,t,n){this.componentEventBatch[e]||(this.componentEventBatch[e]=[]),this.componentEventBatch[e].push({eventName:t,data:n})}processCardConfig(e){let t=this.appInstance;try{if("string"==typeof e&&(e=JSON.parse(e)),e&&"object"==typeof e){let n=e[sn];if(E(n)){let{theme:e}=n;E(e)&&(t[lt]=e,"function"==typeof t[Ce]&&t[Ce](e))}}}catch(e){this.handleUserError(e)}}onHMRUpdate(e){}updateGlobalProps(e){try{if(!this.appInstance)return;Object.keys(e).forEach(t=>{let n=e[t];this.lynx.__globalProps[t]=n}),this.onGlobalPropsChanged(e)}catch(e){this.handleUserError(e)}}onGlobalPropsChanged(e){let t=this.appInstance;"function"==typeof t.onGlobalPropsChanged&&t.onGlobalPropsChanged.call(t,e)}OnLifecycleEvent(e){}forceGcJSIObjectWrapper(){this.lynx.getJSContext().dispatchEvent({type:P.FORCE_GC_JSI_OBJECT_WRAPPER,data:void 0})}createLynx(e,t){let n=pe.create(e);return new ft(()=>this.nativeApp,()=>this,t,()=>n)}},Me=class extends W{constructor(e,t){super(e,t);let{params:n}=e;this._componentMap={},this._dynamicComponentMap={},this._componentInstance={},this._reactLynx={},this.rlynxVersion=null==n?void 0:n.rlynxVersion,this.globalErrorEvents=[],this._propsMap=new hn,this._reactLynx.propsMap=this._propsMap,this._reactLynx.genPropsId=on,this._reactLynx.ReactComponent=ut,this._reactLynx.createRef=()=>({current:null,id:null}),this._getComponent=this.getComponent,this.lynx.onError=e=>this.subscribeGlobalError(e),this.lynx.nativeDataChanged=!1,this._hooks=En(),this._hooks.mountHooks(this,{catchError:e=>{this.handleInternalError(e)}}),this._reactLynx.ReactFcComponent=un,this._reactLynx.useReducer=this._hooks.useReducer,this._reactLynx.useState=this._hooks.useState,this._reactLynx.useEffect=this._hooks.useEffect,this._reactLynx.useMemo=this._hooks.useMemo,this._reactLynx.useCallback=this._hooks.useCallback,this._reactLynx.useInstance=this._hooks.useInstance,this._reactLynx.useRef=this._hooks.useRef,this._reactLynx.createRef=e=>({current:e,id:null})}subscribeGlobalError(e){this.globalErrorEvents.push(e)}publishGlobalError(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.globalErrorEvents&&this.globalErrorEvents.length>0&&this.globalErrorEvents.forEach(e=>{e(...t)})}handleError(e,t,n){super.handleError(e,t,n),this.$isErrorHandling||(this.$isErrorHandling=!0,this.publishGlobalError(e,e.message,e.stack),this.dispatchError(e.message||e.stack),this.$isErrorHandling=!1)}Card(e,t){this._cardComponentClass=e;try{let{initData:t,updateData:n,initConfig:r}=this._params||{};if(e.__config={$type:"card",appInstance:this,initData:t,componentId:""},this.appInstance=new e(e.defaultProps),this.appInstance.$isInCtor=!1,t&&"object"==typeof t&&this.initCardData(t),n&&"object"==typeof n)try{let e=this.appInstance;Object.keys(n).forEach(t=>{e.state[t]=n[t]}),ye(e)&&this._hooks.syncInsHookState(e,n),this.lynx.nativeDataChanged=!0}catch(e){this.handleInternalError(e)}r&&"object"==typeof r&&this.processCardConfig(r)}catch(e){this.handleInternalError(e)}}Component(e,t){let{globDynamicComponentEntry:n,globComponentRegistPath:r}=this.pageGlobal;n||(n=q),this._componentMap[n]||(this._componentMap[n]={}),this._componentMap[n][r]=e}initCardData(e){try{let t=this.appInstance;Object.keys(e).forEach(n=>{he(t.state,n)||(t.state[n]=e[n])})}catch(e){this.handleInternalError(e)}}onReactCardRender(e,t,n){let r=this.appInstance;if(!r)return void N("onReactCardRender execution stopped because card creation failed");"string"==typeof e&&(e=JSON.parse(e));let s=this.processVersionsAndCheckForConflict(e,r);if(r.$cardInit){this.lynx.nativeDataChanged=!0;try{e&&"object"==typeof e&&Object.keys(e).forEach(t=>{se(e[t])||(r.state[t]=e[t]),ye(r)&&this._hooks.syncInsHookState(r,e,!0)});let n=0;if(s)return void this.flushNative(r,32);if(!t)return;let i={},a={};r.$hasDerivedFunction&&!r.$shouldIgnoreLepusDataProcessor&&(i=r.$class.getDerivedStateFromProps(r.props||{},r.state)||{},a=this.diffData(r.state,i),r.state=Object.assign(r.state,i));let o=r.executeJSRender()||{},l=this.diffData(r.state,o);r.state=Object.assign(r.state,o);let h=Object.assign(a,l);Object.keys(a).length>0&&(n|=16),Object.keys(l).length>0&&(n|=4),Object.keys(h).length&&r.updateDataToNative(h,n)}catch(e){this.handleInternalError(e)}}else try{r.$cardInit=!0,this.flushNative(r,2,n)}catch(e){this.handleInternalError(e)}}onReactComponentCreated(e,t,n,r,s,i,a){this.lynx.performance.profileStart(j.REACT_COMPONENT_CREATED,{args:{componentPath:e}}),e.startsWith("/")&&(e=e.substr(1)),this._supportConstructorUpdateData??=new ue(this.lynx.targetSdkVersion).gte(jt);let o=i?this._componentMap[i][e]:this._componentMap[q][e];if(!o){this.sharedConsole.warn(`Create component path:${e}, entryName:${i}, is undefined.Find previous errors or red screens to resolve the issue.`),this.lynx.performance.profileEnd();return}o.defaultProps=o.defaultProps||{};let l=(n?this._propsMap.getProps(n.propsId):null)||{},h=Object.keys(o.defaultProps),c=Object.keys(l),p=[...h];c.forEach(e=>{p.includes(e)||p.push(e)});let d={};Object.keys(o.defaultProps).filter(e=>{c.includes(e)&&null===l[e]?d[e]=null:d[e]=o.defaultProps[e]});let u=ge(n,l);u=ge(d,u,!0),o.__config={$type:"component",appInstance:this,__sourcemap__release__:this.__sourcemap__release__,componentId:t,initNativeStateVersion:r[K]};let _=new o(u);_.$isInCtor=!1,r&&"object"==typeof r&&K in r&&(_.$nativeStateVersion=r[K]),_.componentPath=e,_.entryName=i,this.setComponent(t,_,s);let m=0,f=[];Object.keys(_.state).forEach(e=>{he(r,e)&&(null!==r[e]&&void 0!==r[e]||null===_.state[e]||void 0===_.state[e])||f.push(e)}),f.length>0&&(m|=2);let y=!1;if(n.$$onlyPropsId)y=this.hasJSOnlyData(l);else{let e=Object.keys(n);y=p.filter(t=>!e.includes(t)||null===n[t]).length>0}let g=this._supportConstructorUpdateData&&!_.$shouldIgnoreStateCheckInConstructor,v=null,E=null;if(_.$hasDerivedFunction&&(y||f.length||!_.$shouldIgnoreLepusDataProcessor||g)){if(v=_.$class.getDerivedStateFromProps(_.props,_.state),_.state=Object.assign(_.state,v||{}),g){this._shouldReportErrorForCompatible??=new ue(this.lynx.targetSdkVersion).lte($t);let e=Object.keys(v||{});if(this._shouldReportErrorForCompatible&&null==v){let e=Error("lifeCycle getDerivedStateFromProps of component: ${componentInstance.componentPath} returned null or undefined. When 2.9 <= targetSdkVersion <= 2.12, you need to ensure that it does not return null or undefined, or upgrade @byted-lynx/lynx-speedy to ^2.47.1.");this.handleUserError(e)}let t=this.diffData(_.state,r,Object.keys(r).filter(t=>!e.includes(t)));delete t[K],delete t[de],E=Object.keys(t||{})}}else if(g){let e=this.diffData(_.state,r);delete e[K],delete e[de],E=Object.keys(e||{})}else _.$hasDerivedFunction&&(_.state=ge(_.state,r,!0));let b=_.executeJSRender()||{};if(_.$throwError)return void this.lynx.performance.profileEnd();_.state=Object.assign(_.state,b),Object.keys(b).length>0&&(m|=4);let C=this.diffData(r,v);Object.keys(C).length>0&&(m|=16),f.push.apply(f,[...Object.keys(C),...Object.keys(b),...E||[]]);let S={};for(let e=0;e<f.length;e++){let t=f[e];S[t]=_.state[t]}_.updateDataToNative(this.filterReactComponentData(S),m,a);let x=this.componentEventBatch[t];x&&(this.componentEventBatch[t]=void 0,Array.isArray(x)&&x.forEach(e=>{this.publicComponentEvent(t,e.eventName,e.data)}));let I=n["react-ref"]||l["react-ref"];$(I)&&this.bindComponentWithRefId(s,t,I),this.lynx.performance.profileEnd()}onReactComponentRender(e,t,n,r){var s;let i=this.getComponent(e);if(!i)return void N("onReactComponentRender execution stopped because card creation failed");this.lynx.performance.profileStart(j.REACT_COMPONENT_RENDER,{args:{componentPath:i.componentPath}});let a=wt(this._propsMap.getProps(t.propsId)),o;if(Object.keys(o=(null==(s=this.lynx._switches)?void 0:s.fixMergeOrder)?ge(t,a):ge(a,t)).forEach(e=>{i.props[e]=o[e]}),this.processVersionsAndCheckForConflict(n,i)){this.flushNative(i,32),this.lynx.performance.profileEnd();return}if(n&&"object"==typeof n&&Object.keys(n).forEach(e=>{se(n[e])||(i.state[e]=n[e]),ye(i)&&this._hooks.syncInsHookState(i,n,!0)}),!r)return void this.lynx.performance.profileEnd();let l=!1;if(t.$$onlyPropsId)l=this.hasJSOnlyData(a);else{let e=Object.keys(a),n=Object.keys(t);l=e.filter(e=>!n.includes(e)||null===t[e]).length>0}let h={},c={};i.$hasDerivedFunction&&(!i.$shouldIgnoreLepusDataProcessor||l)?(h=i.$class.getDerivedStateFromProps(i.props,i.state),c=this.diffData(i.state,h),i.state=Object.assign(i.state,h||{})):i.$hasDerivedFunction&&(i.state=Object.assign(i.state,n||{}));let p=i.executeJSRender()||{};if(i.$throwError)return void this.lynx.performance.profileEnd();let d={};(i.$shouldDiffState||E(p)&&Object.keys(p).length>0)&&(d=this.diffData(i.state,p)),i.state=Object.assign(i.state,p||{});let u=0;Object.keys(c).length>0&&(u|=16),Object.keys(d).length>0&&(u|=4);let _=Object.assign(c,d);Object.keys(_).length&&i.updateDataToNative(_,u),this.lynx.performance.profileEnd()}processVersionsAndCheckForConflict(e,t){let n=!1;return e&&"object"==typeof e&&(K in e&&(t.$nativeStateVersion=e[K]),de in e&&e[de]<t.$jsStateVersion&&(n=!0),delete e[K],delete e[de]),n}flushNative(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={};e.$hasDerivedFunction&&(r=e.$class.getDerivedStateFromProps(e.props,e.state)),e.state=Object.assign(e.state,r||{}),e.state=Object.assign(e.state,e.executeJSRender()||{}),e.$throwError||e.updateDataToNative(this.filterReactComponentData(e.state),t,n)}flushAnonStateToNative(e){}reactUpdateComponent(e){let t=e.$hasUseDidUpdateLifecycleParams||typeof e.$hasUseDidUpdateLifecycleParams>"u";if(e.$init){if(e.$isUpdatingState=!1,e.$hasDidUpdateLifecycleV2){let n=t?B(e.props):void 0,r=t?B(e.state):void 0;e.componentDidUpdate(e.prevProps,e.prevState),e.prevProps=n,e.prevState=r,e.$isUpdatingState?(e.$nestedUpdateCount+=1,e.$nestedUpdateCount>Dt&&0===e.$startDetectNestedUpdateTimestamp&&(e.$startDetectNestedUpdateTimestamp=Date.now())):e.$nestedUpdateCount=0}}else e.$init=!0,e.$hasDidUpdateLifecycleV2&&t&&(e.prevProps=B(e.props),e.prevState=B(e.state)),e.componentDidMount(),e.$componentState=1;ye(e)&&this._hooks.executeEffects(e),e.$catchError&&e.$hasDidCatchLifecycleV2&&(e.componentDidCatch(e.$catchError),e.$catchError=null)}onReactCardDidUpdate(){let e=this.appInstance;e?(this.lynx.performance.profileStart(j.REACT_COMPONENT_DID_UPDATE,{args:{componentPath:"card"}}),this.reactUpdateComponent(e),this.lynx.performance.profileEnd(),this.lynx.nativeDataChanged=!1):N("onReactCardDidUpdate execution stopped because card creation failed")}onReactComponentDidUpdate(e){let t=this.getComponent(e);t?(this.lynx.performance.profileStart(j.REACT_COMPONENT_DID_UPDATE,{args:{componentPath:t.componentPath}}),this.reactUpdateComponent(t),this.lynx.performance.profileEnd()):N("onReactComponentDidUpdate execution stopped because card creation failed")}onReactComponentDidCatch(e,t){let n=this.getComponent(e);n?(this.lynx.performance.profileStart(j.REACT_COMPONENT_DID_CATCH,{args:{componentPath:n.componentPath}}),n.$hasDidCatchLifecycleV2&&n.componentDidCatch(t),this.lynx.performance.profileEnd()):N("onReactComponentDidCatch execution stopped because card creation failed")}onReactComponentUnmount(e){let t=this.getComponent(e);if(!t)return void N("onReactComponentUnmount execution stopped because card creation failed");if(this.lynx.performance.profileStart(j.REACT_COMPONENT_UNMOUNT,{args:{componentPath:t.componentPath}}),E(t.__childrenPropsIds))Object.keys(t.__childrenPropsIds).forEach(e=>{this._propsMap.deleteProps(e)}),t.__childrenPropsIds={};else{let e=t.props?t.props.propsId:null;e&&this._propsMap.deleteProps(e)}ye(t)&&this._hooks.cleanUpHooks(t),t.componentWillUnmount(),t.clearRefToThis(),t.$componentState=2,delete this._componentInstance[e],this.lynx.performance.profileEnd()}setComponent(e,t,n){this._componentInstance[e]=t,t.parentId=n}getComponent(e){return this._componentInstance[e]}getComponentOptions(e,t){return t?this._dynamicComponentMap[t][e]:this._dynamicComponentMap[q][e]}callBeforePublishEvent(e){if(0!==this._aopManager._beforePublishEvent.getEventsSize(e.type)){let t={...e};try{this._aopManager._beforePublishEvent.emit(t.type,[t])}catch(e){this.handleUserError(e,{by:"callBeforePublishEvent",type:t.type})}}}publishEvent(e,t){let n=this.appInstance;try{if(this.callBeforePublishEvent(t),"function"==typeof n[e])return this.handlerEvent(n,e,t);throw Error(`Do not have ${e} method in Card`)}catch(t){this.handleUserError(t,{handlerName:e})}}publicComponentEvent(e,t,n){let r=this.getComponent(e);if(!r)return void this.saveComponentEventBatch(e,t,n);try{if(this.callBeforePublishEvent(n),"function"==typeof r[t])return this.handlerEvent(r,t,n)}catch(n){this.handleUserError(n,{by:t,componentId:e})}}handlerEvent(e,t,n){let r=e,s=[],i=[],a={},o=n.type,l=n.currentTarget.dataset||{};n.preventDefault=()=>{},n.stopPropagation=()=>{},n.stopImmediatePropagation=()=>{},Object.keys(l).forEach(e=>{let t=e.toLocaleLowerCase();if(/^e/.test(t)&&(t=t.replace(/^e/,"")).indexOf(o)>=0){let n=t.replace(o,"");/^(a[a-z]|so)$/.test(n)&&(a[n]=l[e])}});let h=null;return"so"in a&&(r="this"!==a.so?a.so:e,h="this"!==a.so?a.so:null,delete a.so),E(a)&&(i=Object.keys(a).sort().map(e=>a[e])),s=-1===t.indexOf("funPrivate")?[...i,n]:[h,...i,n],e[t].apply(r,s)}callDestroyLifetimeFun(){try{Object.keys(this._componentInstance).forEach(e=>{this.onReactComponentUnmount(e)}),this.appInstance.componentWillUnmount()}catch{}}destroy(){try{ye(this.appInstance)&&this._hooks.cleanUpHooks(this.appInstance),this._hooks=null,this.modules=null,this._params=null,this._componentMap=null,this._propsMap=null,this.appInstance=null,this.componentEventBatch=null,super.destroy()}catch{}}onAppEnterBackground(e){try{this.appInstance&&D(this.appInstance.componentDidHide)&&this.appInstance.componentDidHide(),this.GlobalEventEmitter.emit("onHide",e)}catch(e){this.handleUserError(e)}}onAppEnterForeground(e){try{this.appInstance&&D(this.appInstance.componentDidShow)&&this.appInstance.componentDidShow(),this.GlobalEventEmitter.emit("onShow",e)}catch(e){this.handleUserError(e)}}dispatchError(e){this.appInstance&&D(this.appInstance.componentDidCatch)&&this.appInstance.componentDidCatch(e)}onAppReload(e){var t,n;null==(t=this.appInstance)||t.componentWillUnmount(),this.appInstance.$componentState=2,this._propsMap.clear(),(null==(n=this.lynx._switches)?void 0:n.enableClearGlobalEventsInReload)&&this.GlobalEventEmitter.removeAllListeners(),this._params.updateData=e,this.Card(this._cardComponentClass)}require(e,t){let n=t&&t.dynamicComponentEntry?t.dynamicComponentEntry:q;return super.require(e,{dynamicComponentEntry:n,ReactLynx:this._reactLynx})}define(e,t,n){super.define(e,t,n)}bindComponentWithRefId(e,t,n){for(let r=this._componentInstance[e];r;r=this._getComponent(r.parentId)){let e=r.$refs.find(e=>e.refId===n);if(E(e)){this._componentInstance[t].$componentIdContainsRefToThis={componentId:r.componentId,refItem:e},r.$pureData[n]=t,r.bindSingleRef(e);return}}let r=this.appInstance.$refs.find(e=>e.refId===n);E(r)&&(this._componentInstance[t].$componentIdContainsRefToThis={componentId:"card",refItem:r},this.appInstance.$pureData[n]=t,this.appInstance.bindSingleRef(r))}OnLifecycleEvent(e){}addInternalEventListeners(){super.addInternalEventListeners(),this.addInternalEventListener(w.CoreContext,P.ON_REACT_COMPONENT_RENDER,e=>{let[t,n,r,s]=e.data;this.onReactComponentRender(t,n,r,s)}),this.addInternalEventListener(w.CoreContext,P.ON_REACT_COMPONENT_DID_UPDATE,e=>{let t=e.data;this.onReactComponentDidUpdate(t)}),this.addInternalEventListener(w.CoreContext,P.ON_REACT_COMPONENT_DID_CATCH,e=>{let[t,n]=e.data;this.onReactComponentDidCatch(t,n)}),this.addInternalEventListener(w.CoreContext,P.ON_REACT_CARD_DID_UPDATE,()=>{this.onReactCardDidUpdate()}),this.addInternalEventListener(w.CoreContext,P.ON_REACT_COMPONENT_CREATED,e=>{this.nativeApp.pauseGcSuppressionMode();try{let[t,n,r,s,i,a,o]=e.data;this.onReactComponentCreated(n,r,s,i,a,""===t?void 0:t,o)}finally{this.nativeApp.resumeGcSuppressionMode()}}),this.addInternalEventListener(w.CoreContext,P.ON_REACT_CARD_RENDER,e=>{let[t,n,r]=e.data;this.onReactCardRender(t,n,r)}),this.addInternalEventListener(w.CoreContext,P.ON_REACT_COMPONENT_UNMOUNT,e=>{this.onReactComponentUnmount(e.data),this.forceGcJSIObjectWrapper()})}};function _t(e,t){let n="__lynx_timing_flag";t[n]&&["update_set_state_trigger","update_diff_vdom_start","update_diff_vdom_end"].forEach(r=>{e.markTiming(t[n],r)})}var mt="__lynx_data_version",Ue=class extends ne{get __proxy(){return this.getApp()}constructor(e,t,n,r){super({type:"card",resolvedPromise:n,app:r});let s=this;this.$parent=null,s.$children=[],s._queue=[],s._microTaskPending=!1,s._nativeApp=t,this._options=e;let{data:i={},theme:a={},methods:o={},...l}=e;s.data={...i},s.theme={...a},s.methods={...o},s._uiModule=this._nativeApp.nativeModuleProxy.LynxUIMethodModule;let h=Object.assign({},Ot,l);Object.keys(o).forEach(function(e){"function"==typeof o[e]&&(s[e]=F(`at Card methods: ${e}`,s,o[e]).bind(s))}),Object.keys(h).forEach(e=>{"function"==typeof h[e]?s[e]=F(`at Card ${e}`,s,h[e]).bind(s):s[e]=B(h[e])}),this.GlobalEventEmitter=r.GlobalEventEmitter,this.performance=r.performance}setData(e,t){if("destroyed"!==this.cardState)try{var n,r,s;let i=S(e);if("object"!==i)throw Error(`setData's first param must be object, you pass ${i}`);let a=S(t);if(t&&"function"!==a)throw Error(`setData's second param must be function, you pass ${a}`);let o=null==(n=this.getApp().lynx._switches)?void 0:n.isEmbeddedOn,l=null==(r=this.getApp().lynx._switches)?void 0:r.enableLynxNodiff;l&&_t(this._nativeApp,e),super.updateData(e),super.dataQueueUpdate(this,e,{callback:F("at card setData/dataQueueUpdate",this,t).bind(this),enableFixBatchedUpdateOrder:null==(s=this.__proxy.lynx._switches)?void 0:s.enableFixBatchedUpdateOrder,updateDataType:1,updateToNative:o?this.__proxy.updateEmbeddedData.bind(this.__proxy):l?this.__proxy.updateSignals.bind(this.__proxy):void 0})}catch(e){this.getApp().handleInternalError(e)}}getNodeRef(e){return new H({nativeLynxUIModule:this._uiModule,nativeApp:this._nativeApp,disableWarningWhenFailed:this.__proxy.lynx._switches.disableNodeRefWarningWhenFailed},"",e)}createSelectorQuery(e){return e?U.fromQuery(e,this.componentId):U.newEmptyQuery({nativeApp:this._nativeApp,lynx:this.__proxy.lynx})}getElementById(e){return new z("card",e,this.__proxy.lynx)}getRoot(){return new z("card",void 0,this.__proxy.lynx)}selectComponent(e,t){let n=S(t);if(t&&"function"!==n)throw Error(`selectComponent's second param must be function, you pass ${n}`);let r=e=>{Array.isArray(e)&&t(this.__proxy.getComponent(e[0]))};this._nativeApp.selectComponent("card",e,!0,F("at card selectComponent",this,r).bind(this))}updateTheme(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{let n=S(e);if("object"!==n)throw Error(`updateTheme's first param must be object, you pass ${n}`);let r={};t?Object.assign(r,e):Object.assign(r,this.theme,e),Object.keys(r).forEach(e=>{r[e]||delete r[e]}),this._nativeApp.updateData({__card_config_:{theme:r}},1)}catch(e){this.getApp().handleInternalError(e)}}registerModule(e,t){return this.__proxy.registerModule(e,t)}getJSModule(e){return this.__proxy.getJSModule(e)}addGlobalEventListener(e,t,n){this.getJSModule("GlobalEventEmitter").addListener(e,t,n)}setSharedData(e,t){v.sharedData[e]=t}getSharedData(e){return v.sharedData[e]}};function vn(e){return{...e}}var xn=new Map;function Jn(e){let t={created:[e.created],attached:[e.attached],ready:[e.ready],moved:[e.moved],detached:[e.detached]};Array.isArray(e.behaviors)&&Ut(e.behaviors,e=>{let n=xn.get(e);n&&be.forEach(e=>{"function"==typeof n[e]&&t[e].push(n[e])})}),be.forEach(n=>{e[n]=function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];t[n].forEach(e=>e.apply(this,r))}})}function bn(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let{created:t=ie,attached:n=ie,ready:r=ie,moved:s=ie,detached:i=ie}=e||{},a={...Object.assign(e={...e},{created:t,attached:n,ready:r,moved:s,detached:i})};return Jn(a),a}function Cn(e){try{if(E(e)){let t=Mt(),n=Object.keys(e).reduce(function(t,n){return be.includes(n)&&"function"==typeof e[n]&&(t[n]=e[n]),t},{});return xn.set(t,n),t}}catch(e){this.handleInternalError(e)}}var we=class extends ne{constructor(e,t,n,r){super({type:"component",componentId:e,resolvedPromise:r,app:t});let s=this,i=B(n),a=(i=bn(i)).methods||{},o=i.pageLifetimes||{},l=i.lifetimes||{};s.$parent=null,s.$children=[],s._initDataUpdated=!1,s._appInstance=t.appInstance,s._proxyInstance=t,s.componentId=e,s.behaviors=i.behaviors||[],s._nativeApp=t.nativeApp,s._lifetimes=l,s._pageLifetimes=o,s._uiModule=s._nativeApp.nativeModuleProxy.LynxUIMethodModule,this.GlobalEventEmitter=t.GlobalEventEmitter,E(i.data)||(i.data={}),E(i.properties)||(i.properties={});let h=i.data;for(let e in s._jsInitData={...h},i.properties)h[e]=i.properties[e].value;s.data=s.properties=h,s._properties=i.properties||{},Object.keys(a).forEach(e=>{"function"==typeof a[e]&&(s[e]=F(`at component methods ${e}`,s._appInstance,a[e]).bind(s))}),Object.keys(i).forEach(function(e){var t,n,r;"function"==typeof i[e]?s[e]=F(`at component option ${e}`,s._appInstance,i[e]).bind(s):(null==(r=s._proxyInstance)||null==(n=r.lynx)||null==(t=n._switches)?void 0:t.enableCopyOptions)&&!["data","properties","methods"].includes(e)&&(s[e]=B(i[e]))})}updateInitData(){var e,t,n;if(this._initDataUpdated)return;if(null==(e=this.getApp().lynx._switches)?void 0:e.isEmbeddedOn){this._initDataUpdated=!0;return}let{componentId:r,_jsInitData:s,_nativeInitData:i={}}=this,a=this.getApp().lynx._switches.enableLynxNodiff,o=a?this._proxyInstance.updateSignal.bind(this._proxyInstance):this._nativeApp.updateComponentData;if(!(null==(n=this._appInstance.__proxy.lynx)||null==(t=n._switches)?void 0:t.enableReduceInitDataCopy)){o(r,s,null,2,...a?["component",this.getApp().lynx.performance._initializeAndStartPipeline()]:[]),this._initDataUpdated=!0;return}let l=gn(Array.isArray(i)?i:Object.keys(i).filter(e=>!je(i[e])),s);Object.keys(l).length>0&&o(r,l,null,2,...a?["component",this.getApp().lynx.performance._initializeAndStartPipeline()]:[]),this._initDataUpdated=!0}getNodeRef(e){return new H({nativeLynxUIModule:this._uiModule,nativeApp:this._nativeApp,disableWarningWhenFailed:this._proxyInstance.lynx._switches.disableNodeRefWarningWhenFailed},this.componentId,e)}getNodeRefFromRoot(e){return new H({nativeLynxUIModule:this._uiModule,nativeApp:this._nativeApp,disableWarningWhenFailed:this._proxyInstance.lynx._switches.disableNodeRefWarningWhenFailed},"",e)}createSelectorQuery(e){return e?U.fromQuery(e,this.componentId):U.newEmptyQuery({nativeApp:this._nativeApp,lynx:this._proxyInstance.lynx},this.componentId)}getPathFromTarget(e,t){this.createSelectorQuery().selectUniqueID(e.uid).path(t).exec()}getElementById(e){return new z(this.componentId,e,this._proxyInstance.lynx)}selectComponent(e,t){let n=S(t);if(t&&"function"!==n)throw Error(`selectComponent's second param must be function, you pass ${n}`);let r=e=>{Array.isArray(e)&&t(this._proxyInstance.getComponent(e[0]))};this._nativeApp.selectComponent(this.componentId,e,!0,F("at component selectComponent",this,r).bind(this))}getJSModule(e){return this._proxyInstance.getJSModule(e)}setData(e,t){try{var n,r,s;let i=S(e);if("object"!==i)throw Error(`setData's first param must be object, you pass ${i}`);let a=S(t);if(t&&"function"!==a)throw Error(`setData's second param must be function, you pass ${a}`);this._initDataUpdated||this.updateInitData();let o=null==(n=this.getApp().lynx._switches)?void 0:n.isEmbeddedOn,l=null==(r=this.getApp().lynx._switches)?void 0:r.enableLynxNodiff;l&&_t(this._nativeApp,e),super.updateData(e,this.data),super.dataQueueUpdate(this._appInstance,e,{callback:F("at Component setData",this._appInstance,t).bind(this),enableFixBatchedUpdateOrder:null==(s=this._proxyInstance.lynx._switches)?void 0:s.enableFixBatchedUpdateOrder,updateDataType:1,updateToNative:o?this._proxyInstance.updateEmbeddedData.bind(this._proxyInstance):l?this._proxyInstance.updateSignals.bind(this._proxyInstance):void 0})}catch(e){this.getApp().handleUserError(e,{componentId:this.componentId})}}triggerEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{let{componentId:r}=this;this._nativeApp.triggerComponentEvent(e,{eventDetail:t,eventOption:n,componentId:r})}catch(e){this.getApp().handleInternalError(e,{componentId:this.componentId})}}};function Rn(e,t,n,r,s){let{initData:i,entryName:a,parentId:o}=s||{};try{if(!be.includes(t))return;if("created"===t){var l;r.startsWith("/")&&(r=r.substr(1));let t=this.getComponentOptions(r,a),s=null;if(E(t))try{s=new we(n,this,t,e)}catch(e){throw Error(`create component error: ${e}`)}else throw Error(`component: ${r} is not exist!`);let h=(null==(l=this.lynx._switches)?void 0:l.enableCardReuse)?this.getEncodeInitData(a)[r]:i;if(E(h)?(s._nativeInitData=h,Object.keys(h).forEach(e=>{he(s.data,e)||(s.data[e]=h[e])})):oe(h)&&(s._nativeInitData=h,s.data.__globalProps=this.lynx.__globalProps,s.data.SystemInfo=v.SystemInfo),$(o)){let e=null;(e="card"===o?this.appInstance:this.getComponent(o))&&(s.$parent=e,e.$children.push(s))}this.setComponent(n,s)}let h=this.getComponent(n);if("attached"===t&&!h._initDataUpdated){let e=!0;this.allRemoved&&(e=!this.allRemoved[r]),e&&h.updateInitData(),h._initDataUpdated=!0}if(!h)throw Error(`component instance: ${n} is not exist`);Kn(h,t);let c=(h._lifetimes||{})[t]||h[t];if("function"==typeof c&&c(s),"detached"===t){let e=h.$parent,t=(e||{}).$children;if(Array.isArray(t)){let r=[];t.forEach(function(e){e.componentId!==n&&r.push(e)}),e.$children=r}h.$parent=null,this.detachComponent(n)}}catch(e){this.handleUserError(e,{action:t,componentId:n,route:r})}}function Kn(e,t){"attached"===t?e.componentState=M.attached:"detached"===t?e.componentState=M.detached:"ready"===t?(e.componentState=M.ready,e.$_internal_shouldStopBatching=!0):"moved"===t?e.componentState=M.moved:"created"===t&&(e.componentState=M.created)}function re(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._componentInstance||{};Object.keys(n).forEach(function(r){let s=n[r],i=(s._pageLifetimes||{})[e];"function"==typeof i&&i.call(s,t)})}var ke=class extends W{constructor(e,t){super(e,t),this._componentOpts={},this._componentInstance={},this._dataProcessor={},this._encodeInitData={},this._dataVersion=-1}setAllRemoved(e){this.allRemoved=e}handleError(e,t,n){super.handleError(e,t,n),this.$isErrorHandling||(this.$isErrorHandling=!0,this._appInstance&&D(this._appInstance.onError)&&this._appInstance.onError(e.message||e.stack,t),this.$isErrorHandling=!1)}require(e,t){let n=this.pageGlobal.globDynamicComponentEntry?this.pageGlobal.globDynamicComponentEntry:q;return super.require(e,{dynamicComponentEntry:n,ReactLynx:v.TaroLynx})}define(e,t){super.define(e,t,this.pageGlobal.globDynamicComponentEntry)}Card(e){let{globComponentRegistPath:t}=this.pageGlobal;this._cardPath=t,this._cardParams=e;try{var n;let{initData:r,updateData:s,processorName:i="default",cacheData:a=[],isReload:o}=this._params||{};this._appInstance=new Ue(e,this._nativeApp,this.resolvedPromise,this);let l=(null==(n=this.lynx._switches)?void 0:n.enableCardReuse)?this.getEncodeInitData()[t]:r;l&&"object"==typeof l&&this.initCardData(l),(this.enableJSDataProcessor()||s&&"object"==typeof s)&&this.updateCardData(s,{processorName:i,cacheData:a,fromCard:!0,isReload:o}),this.onCardLoad()}catch(e){this.handleUserError(e)}finally{return e}}onCardLoad(){let{initConfig:e}=this._params||{};e&&"object"==typeof e&&this.processCardConfig(e),this._appInstance.cardState="loaded",this._appInstance.onLoad({}),re.call(this,"onLoad")}Behavior(e){return Cn.call(this,e)}Component(e){let{globDynamicComponentEntry:t,globComponentRegistPath:n}=this.pageGlobal,r=vn(e);return t||(t=q),this._componentOpts[t]||(this._componentOpts[t]={}),this._componentOpts[t][n]=r,r}setComponent(e,t){this._componentInstance[e]=t}getComponent(e){return this._componentInstance[e]}detachComponent(e){delete this._componentInstance[e]}getComponentOptions(e,t){let n=null;try{n=t?this._componentOpts[t][e]:this._componentOpts[q][e]}catch{throw Error(`Component (${e}) is not register.
|
|
8
|
+
please use Component({...}) to register.`)}return n}callDestroyLifetimeFun(){try{re.call(this,"onDestroy"),this._appInstance.onDestroy()}catch{}}destroy(){try{this.modules=null,this._appInstance.cardState="destroyed",this._appInstance=null,this.resolvedPromise=null,super.destroy()}catch{}}callBeforePublishEvent(e){if(0!==this._aopManager._beforePublishEvent.getEventsSize(e.type)){let t={...e};try{this._aopManager._beforePublishEvent.emit(t.type,[t])}catch(e){this.handleUserError(e,{by:"callBeforePublishEvent",type:t.type})}}}publishEvent(e,t){let n=this._appInstance,r=n._options[e];try{if(this.callBeforePublishEvent(t),"function"==typeof n[e])return n[e](t);if("function"==typeof r)return r.call(n,t);throw Error(`Do not have ${e} method in Card`)}catch(t){N(JSON.stringify(Object.keys(n))),N(JSON.stringify(Object.keys(n._options))),this.handleUserError(t,{handlerName:e})}}publicComponentEvent(e,t,n){let r=this.getComponent(e);if(!r||!r.$_internal_shouldStopBatching)return void this.saveComponentEventBatch(e,t,n);try{if(this.callBeforePublishEvent(n),"function"==typeof r[t])return r[t](n)}catch(n){N(JSON.stringify(Object.keys(r))),this.handleUserError(n,{handlerName:t,componentId:e})}}onComponentActivity(e,t,n,r){Rn.call(this,this.resolvedPromise,e,t,n,r);let s=this.getComponent(t);if(s&&s.$_internal_shouldStopBatching){let e=this.componentEventBatch[t];this.componentEventBatch[t]=void 0,Array.isArray(e)&&e.forEach(e=>{this.publicComponentEvent(t,e.eventName,e.data)})}}onComponentPropertiesChanged(e,t){let n=this.getComponent(e);try{let e=n.properties,r=[];E(t)&&(Object.keys(t).forEach(s=>{var i;let a=e[s],o=t[s],l=!1;(null==(i=this.lynx._switches)?void 0:i.enableDeepDiffProperties)?Re(a,o)||(l=!0):a!==o&&(l=!0),l&&(n.data[s]=n.properties[s]=o,r.push([a,o,s]))}),r.length>0&&r.forEach(e=>{let[t,r,s]=e,i=n._properties[s]||{},{observer:a}=i;E(i)&&($(a)&&(a=n[a]),"function"==typeof a&&a.call(n,r,t))}))}catch(t){this.handleUserError(t,{componentId:e})}}onComponentDatasetChanged(e,t){let n=this.getComponent(e);try{n.dataset=t}catch(t){this.handleUserError(t,{componentId:e})}}onComponentInstanceChanged(e,t){let n=this.getComponent(e);try{n.className=t.className,n.idSelector=t.id}catch(t){this.handleInternalError(t,{componentId:e})}}updateCardData(e,t){let{type:n=0,processorName:r="default",cacheData:s=[]}=t||{};this._updateData=e=this.processData(e,r,s);try{let r=this._appInstance;1==n&&(r.data={__globalProps:r.data.__globalProps},this._initData&&"object"==typeof this._initData&&Object.keys(this._initData).forEach(e=>{r.data[e]=this._initData[e]})),"string"==typeof e&&(e=JSON.parse(e)),e&&"object"==typeof e&&Object.keys(e).forEach(t=>{let n=e[t];r.data[t]=n}),this.onCardDataChanged(e,t)}catch(e){this.handleUserError(e)}}onCardDataChanged(e,t){var n;(null==(n=this.lynx._switches)?void 0:n.enableLynxNodiff)&&e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,mt)&&(this._dataVersion=e[mt],delete e[mt]);let r=this._appInstance;"function"==typeof r.onDataChanged&&r.onDataChanged.call(r,e)}initCardData(e){this._initData=e;try{let t=this._appInstance;Object.keys(e).forEach(n=>{he(t.data,n)||(t.data[n]=e[n])})}catch(e){this.handleInternalError(e)}}enableJSDataProcessor(){var e,t;return(null==(e=this.lynx._switches)?void 0:e.enableLynxNodiff)&&(null==(t=this.lynx._switches)?void 0:t.enableJSDataProcessor)}setDataProcessor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";this._dataProcessor[t]=e}processData(e,t,n){if(this.enableJSDataProcessor()){let i={};null==n||n.reduce((e,t)=>Object.assign(e,this.processData(t.data,t.processorName||"default")),i);try{var r,s;return Object.assign(i,(null==(r=(s=this._dataProcessor)[t||"default"])?void 0:r.call(s,e,{__globalProps:this.lynx.__globalProps,SystemInfo:v.SystemInfo}))??e)}catch(t){return this.handleUserError(t),Object.assign(i,e)}}return e}setEncodeInitData(e){let t=this.getEntryName();this._encodeInitData[t]=e}getEncodeInitData(e){let t=e||this.getEntryName();return this._encodeInitData[t]||{}}getEntryName(){return this.pageGlobal.globDynamicComponentEntry?this.pageGlobal.globDynamicComponentEntry:q}onNativeAppReady(e){try{var t,n;let e=!0;if(this.allRemoved&&(e=!this.allRemoved["/"+this._cardPath]),e&&!(null==(t=this.lynx._switches)?void 0:t.isEmbeddedOn)){let e=Object.assign({},this._initData,this._updateData),t=this.diffData(e,this._appInstance.data);if(Object.keys(t).length>0)if(null==(n=this.lynx._switches)?void 0:n.enableLynxNodiff){let e=this.lynx.performance._initializeAndStartPipeline();this.updateSignal("0",t,()=>{},2,"card",e)}else this._nativeApp.updateData(t,2,()=>{})}this._appInstance.cardState="ready",this._appInstance.onReady({}),re.call(this,"onReady")}catch(e){this.handleUserError(e)}}updateLepusSignal(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{componentId:n,data:r,callback:s,type:i,updateDataType:a,stackTraces:o,pipelineOptions:l}=e||{},h=[];for(let e in r)h.push([It(e),r[e]]);this.nativeApp.callLepusMethod("updateSignal",{paths:h,componentId:"card"===i?"0":n,isFinished:t,updateDataType:a,dataVersion:"card"===i?this._dataVersion:void 0,pipelineOptions:l},s,n,o)}updateSignal(e,t,n,r,s,i){this.lynx.performance.profileStart(j.TT_UPDATE_SIGNAL),this.updateLepusSignal({componentId:e,data:t,callback:n,updateDataType:r,type:s||"component",pipelineOptions:i}),this.lynx.performance.profileEnd()}updateSignals(e){this.lynx.performance.profileStart(j.TT_UPDATE_SIGNALS);let t=e.length;e.forEach((e,n)=>{this.updateLepusSignal(e,n===t-1)}),this.lynx.performance.profileEnd()}updateEmbeddedData(e){this.lynx.performance.profileStart(j.TT_UPDATE_EMBEDDED_DATA);let t=e.length;e.forEach((e,n)=>{let{type:r,componentId:s,data:i,callback:a,stackTraces:o,pipelineOptions:l}=e||{};this.updateEmbeddedDataToLepus(r,s,i,a,o,l,n===t-1)}),this.lynx.performance.profileEnd()}updateEmbeddedDataToLepus(e,t,n,r,s,i){let a=!(arguments.length>6)||void 0===arguments[6]||arguments[6];this.nativeApp.callLepusMethod("updateEmbeddedData",{type:e,componentId:t,data:n,isFinished:a,pipelineOptions:i},r,t,s)}onAppEnterBackground(e){try{this._appInstance.onHide(),re.call(this,"onHide")}catch(e){this.handleUserError(e)}}onAppEnterForeground(e){try{this._appInstance.onShow(e),re.call(this,"onShow")}catch(e){this.handleUserError(e)}}onAppFirstScreen(){try{this._appInstance.onFirstScreen(),re.call(this,"onFirstScreen")}catch(e){this.handleUserError(e)}}onAppReload(e,t){var n,r;re.call(this,"onDestroy"),null==(n=this.appInstance)||n.onDestroy(),this.appInstance.cardState="destroyed",(null==(r=this.lynx._switches)?void 0:r.enableClearGlobalEventsInReload)&&this.GlobalEventEmitter.removeAllListeners(),this._params.updateData=e,this._params.processorName=(null==t?void 0:t.processorName)||"default",this._params.isReload=!0,this.pageGlobal.globComponentRegistPath=this._cardPath,this.Card(this._cardParams),this._params.isReload=!1}OnLifecycleEvent(e){try{if(!oe(e))throw Error(`OnLifecycleEvent should get an array as argument, but get ${S(e)}`);let[t,n,r]=e;oe(n)||(n=[n]),n.forEach(e=>{switch(e){case M.created:case M.attached:case M.detached:case M.ready:case M.moved:this.onComponentActivity(e,t,r.path,r);break;case"datasetChanged":this.onComponentDatasetChanged(t,r.dataset);break;case"instanceChanged":this.onComponentInstanceChanged(t,r);break;case"propertiesChanged":this.onComponentPropertiesChanged(t,r.props);break;default:throw Error(`OnLifecycleEvent unknown event: ${e}`)}})}catch(e){this.handleInternalError(e)}}addInternalEventListeners(){super.addInternalEventListeners(),this.addInternalEventListener(w.CoreContext,P.ON_COMPONENT_ACTIVITY,e=>{let[t,n,r,s,i,a]=e.data,o;t===M.created&&void 0!==a&&(o={initData:a,entryName:i,parentId:r}),this.onComponentActivity(t,n,s,o),t===M.detached&&this.forceGcJSIObjectWrapper()}),this.addInternalEventListener(w.CoreContext,P.ON_COMPONENT_SELECTOR_CHANGED,e=>{let[t,n]=e.data;this.onComponentInstanceChanged(t,n)}),this.addInternalEventListener(w.CoreContext,P.ON_COMPONENT_PROPERTIES_CHANGED,e=>{let[t,n]=e.data;this.onComponentPropertiesChanged(t,n)}),this.addInternalEventListener(w.CoreContext,P.ON_COMPONENT_DATA_SET_CHANGED,e=>{let[t,n]=e.data;this.onComponentDatasetChanged(t,n)})}},Fe=class extends W{constructor(e,t){super(e,void 0);try{t.srcName&&(delete this.lynx.requireModule.cache[t.srcName],delete W._$factoryCache[t.srcName],this.lynx.requireModule(t.srcName,q),this.dataTypeSet.add("undefined"))}catch(e){this.handleUserError(e)}}};function Qn(e,t,n){let{cardType:r}=t,s,{id:i}=e;N(`load card native app id: ${i} cardType ${r}`);let a=!0;Ve(t);let o=t.currentGlobalThis??v;try{if(s="standalone"==r?new Fe({nativeApp:e,params:t,lynx:n},t):"tt"===r?new ke({nativeApp:e,params:t,lynx:n},o.multiApps[i]):new Me({nativeApp:e,params:t,lynx:n},o.multiApps[i]),o.currentAppId=i,o.multiApps[i]=s,"standalone"===r)return e.setCard(s),!0;let{BDLynxSDKCore:l}=v,{apiInit:h,registerNativeEvent:c}=l||{};if("function"==typeof h){let e=h.call(s);s.apiList=e}s.registerModule("BDLynxAPIModule",new ee),"function"==typeof c&&c(s.getJSModule("BDLynxAPIModule")),N(`load card native app load app-service.js params.bundleSupportLoadScript ${t.bundleSupportLoadScript}`);try{delete s.lynx.requireModule.cache[Q],delete W._$factoryCache[Q],s.lynx.requireModule(Q,k),s.lynx._switches.allowUndefinedInNativeDataTypeSet&&s.dataTypeSet.add("undefined")}catch(e){a=!1,s.handleUserError(e,void 0,void 0,"loadCard failed")}e.setCard(s)}catch(t){nn(e,t),a=!1}return a}__webpack_require__.d(__webpack_exports__,{callDestroyLifetimeFun:()=>en,destroyCard:()=>Zt,loadCard:()=>Qn,loadDynamicComponent:()=>tn,nativeGlobal:()=>v})}}]);
|