@lynx-js/web-rsbuild-server-middleware 0.19.6 → 0.19.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @lynx-js/web-rsbuild-server-middleware
2
2
 
3
+ ## 0.19.7
4
+
3
5
  ## 0.19.6
4
6
 
5
7
  ## 0.19.5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-rsbuild-server-middleware",
3
- "version": "0.19.6",
3
+ "version": "0.19.7",
4
4
  "private": false,
5
5
  "description": "a dev server middleware for rsbuild to serve Lynx Web Platform shell project",
6
6
  "keywords": [],
@@ -23,11 +23,11 @@
23
23
  "README.md"
24
24
  ],
25
25
  "devDependencies": {
26
- "@rsbuild/core": "1.7.1",
26
+ "@rsbuild/core": "1.7.2",
27
27
  "rsbuild-plugin-arethetypeswrong": "0.1.1",
28
- "rsbuild-plugin-publint": "0.3.3",
29
- "@lynx-js/web-core": "0.19.6",
30
- "@lynx-js/web-elements": "0.11.0"
28
+ "rsbuild-plugin-publint": "0.3.4",
29
+ "@lynx-js/web-core": "0.19.7",
30
+ "@lynx-js/web-elements": "0.11.1"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "rsbuild build"
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["8"],{9713(e,n,t){t.a(e,async function(e,r){try{t.d(n,{a:()=>i.aC,i:()=>i.iG});var _=t(4339),i=t(243),o=e([_]);_=(o.then?(await o)():o)[0],(0,i.lI)(_),r()}catch(e){r(e)}})},243(e,n,t){let r;function _(e){try{let _,i=r.__wbindgen_add_to_stack_pointer(-16),o=y(e,r.__wbindgen_export,r.__wbindgen_export2),l=I;r.transform_raw_u16_inline_style_ptr(i,o,l);var n=b().getInt32(i+0,!0),t=b().getInt32(i+4,!0);return 0!==n&&(_=s(n,t).slice(),r.__wbindgen_export3(n,+t,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}function i(e,n){let t=y(e,r.__wbindgen_export,r.__wbindgen_export2),_=I,i=y(n,r.__wbindgen_export,r.__wbindgen_export2),o=I;return m(r.transform_raw_u16_inline_style_ptr_parsed(t,_,i,o))}function o(e,n){throw Error(s(e,n))}function l(){return f([])}function a(e,n){return h[e].push(h[n])}function u(e,n){return f(s(e,n))}function d(e){m(e)}function f(e){p===h.length&&h.push(h.length+1);let n=p;return p=h[n],h[n]=e,n}t.d(n,{NR:()=>u,Yy:()=>a,aC:()=>_,bk:()=>d,iG:()=>i,lI:()=>C,oF:()=>l,rm:()=>o});let c=null;function b(){return(null===c||!0===c.buffer.detached||void 0===c.buffer.detached&&c.buffer!==r.memory.buffer)&&(c=new DataView(r.memory.buffer)),c}function s(e,n){var t,r;return t=e>>>=0,(v+=r=n)>=0x7ff00000&&((x=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),v=r),x.decode(g().subarray(t,t+r))}let w=null;function g(){return(null===w||0===w.byteLength)&&(w=new Uint8Array(r.memory.buffer)),w}let h=Array(128).fill(void 0);h.push(void 0,null,!0,!1);let p=h.length;function y(e,n,t){if(void 0===t){let t=k.encode(e),r=n(t.length,1)>>>0;return g().subarray(r,r+t.length).set(t),I=t.length,r}let r=e.length,_=n(r,1)>>>0,i=g(),o=0;for(;o<r;o++){let n=e.charCodeAt(o);if(n>127)break;i[_+o]=n}if(o!==r){0!==o&&(e=e.slice(o)),_=t(_,r,r=o+3*e.length,1)>>>0;let n=g().subarray(_+o,_+r);o+=k.encodeInto(e,n).written,_=t(_,r,o,1)>>>0}return I=o,_}function m(e){let n=h[e];return e<132||(h[e]=p,p=e),n}let x=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});x.decode();let v=0,k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(e,n){let t=k.encode(e);return n.set(t),{read:e.length,written:t.length}});let I=0;function C(e){r=e}},9850(e,n,t){t.a(e,async function(e,r){try{t.r(n),t.d(n,{transform_raw_u16_inline_style_ptr:()=>_.a,transform_raw_u16_inline_style_ptr_parsed:()=>_.i});var _=t(9713),i=e([_]);_=(i.then?(await i)():i)[0],r()}catch(e){r(e)}})},4339(e,n,t){var r=t(243);e.exports=t.v(n,e.id,"4af72b7e578bb591",{"./legacy_bg.js":{__wbg_new_3eb36ae241fe6f44:r.oF,__wbg_push_8ffdcb2063340ba5:r.Yy,__wbindgen_object_drop_ref:r.bk,__wbg___wbindgen_throw_be289d5034ed271b:r.rm,__wbindgen_cast_0000000000000001:r.NR}})}}]);
1
+ "use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["8"],{9713(e,n,t){t.a(e,async function(e,r){try{t.d(n,{a:()=>i.aC,i:()=>i.iG});var _=t(4339),i=t(243),o=e([_]);_=(o.then?(await o)():o)[0],(0,i.lI)(_),r()}catch(e){r(e)}})},243(e,n,t){let r;function _(e){try{let _,i=r.__wbindgen_add_to_stack_pointer(-16),o=y(e,r.__wbindgen_export,r.__wbindgen_export2),l=I;r.transform_raw_u16_inline_style_ptr(i,o,l);var n=b().getInt32(i+0,!0),t=b().getInt32(i+4,!0);return 0!==n&&(_=s(n,t).slice(),r.__wbindgen_export3(n,+t,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}function i(e,n){let t=y(e,r.__wbindgen_export,r.__wbindgen_export2),_=I,i=y(n,r.__wbindgen_export,r.__wbindgen_export2),o=I;return m(r.transform_raw_u16_inline_style_ptr_parsed(t,_,i,o))}function o(e,n){throw Error(s(e,n))}function l(){return f([])}function a(e,n){return h[e].push(h[n])}function u(e,n){return f(s(e,n))}function d(e){m(e)}function f(e){p===h.length&&h.push(h.length+1);let n=p;return p=h[n],h[n]=e,n}t.d(n,{NR:()=>u,Yy:()=>a,aC:()=>_,bk:()=>d,iG:()=>i,lI:()=>C,oF:()=>l,rm:()=>o});let c=null;function b(){return(null===c||!0===c.buffer.detached||void 0===c.buffer.detached&&c.buffer!==r.memory.buffer)&&(c=new DataView(r.memory.buffer)),c}function s(e,n){var t,r;return t=e>>>=0,(v+=r=n)>=0x7ff00000&&((x=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),v=r),x.decode(g().subarray(t,t+r))}let w=null;function g(){return(null===w||0===w.byteLength)&&(w=new Uint8Array(r.memory.buffer)),w}let h=Array(128).fill(void 0);h.push(void 0,null,!0,!1);let p=h.length;function y(e,n,t){if(void 0===t){let t=k.encode(e),r=n(t.length,1)>>>0;return g().subarray(r,r+t.length).set(t),I=t.length,r}let r=e.length,_=n(r,1)>>>0,i=g(),o=0;for(;o<r;o++){let n=e.charCodeAt(o);if(n>127)break;i[_+o]=n}if(o!==r){0!==o&&(e=e.slice(o)),_=t(_,r,r=o+3*e.length,1)>>>0;let n=g().subarray(_+o,_+r);o+=k.encodeInto(e,n).written,_=t(_,r,o,1)>>>0}return I=o,_}function m(e){let n=h[e];return e<132||(h[e]=p,p=e),n}let x=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});x.decode();let v=0,k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(e,n){let t=k.encode(e);return n.set(t),{read:e.length,written:t.length}});let I=0;function C(e){r=e}},9850(e,n,t){t.a(e,async function(e,r){try{t.r(n),t.d(n,{transform_raw_u16_inline_style_ptr:()=>_.a,transform_raw_u16_inline_style_ptr_parsed:()=>_.i});var _=t(9713),i=e([_]);_=(i.then?(await i)():i)[0],r()}catch(e){r(e)}})},4339(e,n,t){var r=t(243);e.exports=t.v(n,e.id,"754b96d883b9cb82",{"./legacy_bg.js":{__wbg_new_3eb36ae241fe6f44:r.oF,__wbg_push_8ffdcb2063340ba5:r.Yy,__wbindgen_object_drop_ref:r.bk,__wbg___wbindgen_throw_be289d5034ed271b:r.rm,__wbindgen_cast_0000000000000001:r.NR}})}}]);
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["361"],{5591(e,t,r){r.d(t,{A:()=>l});var n=/[A-Z]/g,i=/^ms-/,a={};function o(e){return"-"+e.toLowerCase()}let l=function(e){if(a.hasOwnProperty(e))return a[e];var t=e.replace(n,o);return a[e]=i.test(t)?"-"+t:t}},3095(e,t,r){r.a(e,async function(e,n){try{r.d(t,{a:()=>a.aC,i:()=>a.iG});var i=r(1009),a=r(3209),o=e([i]);i=(o.then?(await o)():o)[0],(0,a.lI)(i),i.__wbindgen_start(),n()}catch(e){n(e)}})},3209(e,t,r){let n;function i(e){let t,r=m(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=y,a=n.transform_raw_u16_inline_style_ptr(r,i);return 0!==a[0]&&(t=c(a[0],a[1]).slice(),n.__wbindgen_free(a[0],+a[1],1)),t}function a(e,t){let r=m(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=y,a=m(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=y;return n.transform_raw_u16_inline_style_ptr_parsed(r,i,a,o)}function o(e,t){throw Error(c(e,t))}function l(){return[]}function s(e,t){return e.push(t)}function u(e,t){return c(e,t)}function d(){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)}function c(e,t){var r,n;return r=e>>>=0,(b+=n=t)>=0x7ff00000&&((g=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),b=n),g.decode(f().subarray(r,r+n))}r.d(t,{NR:()=>u,Yy:()=>s,aC:()=>i,bL:()=>d,iG:()=>a,lI:()=>h,oF:()=>l,rm:()=>o});let p=null;function f(){return(null===p||0===p.byteLength)&&(p=new Uint8Array(n.memory.buffer)),p}function m(e,t,r){if(void 0===r){let r=_.encode(e),n=t(r.length,1)>>>0;return f().subarray(n,n+r.length).set(r),y=r.length,n}let n=e.length,i=t(n,1)>>>0,a=f(),o=0;for(;o<n;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==n){0!==o&&(e=e.slice(o)),i=r(i,n,n=o+3*e.length,1)>>>0;let t=f().subarray(i+o,i+n);o+=_.encodeInto(e,t).written,i=r(i,n,o,1)>>>0}return y=o,i}let g=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});g.decode();let b=0,_=new TextEncoder;"encodeInto"in _||(_.encodeInto=function(e,t){let r=_.encode(e);return t.set(r),{read:e.length,written:r.length}});let y=0;function h(e){n=e}},3267(e,t,r){r.a(e,async function(e,n){try{r.d(t,{D:()=>u});var i=r(4234),a=r(5333),o=r(1546),l=r(3063),s=e([o,a]);[o,a]=s.then?(await s)():s;let d=new Set(["exposure-id","exposure-area","exposure-screen-margin-top","exposure-screen-margin-right","exposure-screen-margin-bottom","exposure-screen-margin-left","exposure-ui-margin-top","exposure-ui-margin-right","exposure-ui-margin-bottom","exposure-ui-margin-left"]);function u(e){let t=[],{callbacks:r,tagMap:n,pageConfig:s,lynxTemplate:u,rootDom:c,globalProps:p,ssrHydrateInfo:f,ssrHooks:m,mtsRealm:g,document:b}=e,{elementTemplate:_,lepusCode:y}=u,h=f?.lynxUniqueIdToElement??[],v=new WeakMap,A=h[1]?.deref(),w=h.length||1,x=new Set,S=(e,t)=>{if(!e.currentTarget||e.eventPhase===Event.CAPTURING_PHASE&&!1===t||e.eventPhase===Event.BUBBLING_PHASE&&!0===t)return;let n=e.currentTarget,a=e.eventPhase===Event.AT_TARGET?t:e.eventPhase===e.CAPTURING_PHASE,o=i.$4[e.type]??e.type,s=v.get(n);if(s){let t=a?s.eventHandlerMap[o]?.capture:s.eventHandlerMap[o]?.bind,u=!1;if(t)for(let a of t){let s=a.handler,d=(0,l.X)(e,o);if("string"==typeof s){let e=h[Number(n.getAttribute(i.er))].deref(),a=e?.getAttribute(i.Gq)!=="page"?e?.getAttribute(i.pP)??void 0:void 0;a?r.publicComponentEvent(a,s,d):r.publishEvent(s,d),1===t.length&&(u=!0)}else s&&(d.target.elementRefptr=e.target,d.currentTarget&&(d.currentTarget.elementRefptr=e.currentTarget),g.globalWindow.runWorklet?.(s.value,[d]))}return u}return!1},C=e=>{S(e,!0)},E=e=>{S(e,!1)},T=(e,t)=>{S(e,t)&&e.stopPropagation()},I=e=>{T(e,!0)},P=e=>{T(e,!1)},k=(e,t,r,n)=>{r=r.toLowerCase();let a="catchEvent"===t||"capture-catch"===t,o=t.startsWith("capture"),l=v.get(e)??{eventHandlerMap:{},componentAtIndex:void 0,enqueueComponent:void 0},s=o?l.eventHandlerMap[r]?.capture:l.eventHandlerMap[r]?.bind,u=s&&s.length>0,d=a?o?I:P:o?C:E;if(u)!n&&(e.removeEventListener(r,d,{capture:o}),("uiappear"===r||"uidisappear"===r)&&"-1"===e.getAttribute("exposure-id")&&W.__SetAttribute(e,"exposure-id",null),l.eventHandlerMap[r]&&(o?l.eventHandlerMap[r].capture=void 0:l.eventHandlerMap[r].bind=void 0));else if(n){let t=i.vQ[e.tagName]?.[r]??i.im[r]??r;e.addEventListener(t,d,{capture:o}),("uiappear"===r||"uidisappear"===r)&&null===e.getAttribute("exposure-id")&&W.__SetAttribute(e,"exposure-id","-1")}if(n){let e={type:t,handler:n};l.eventHandlerMap[r]||(l.eventHandlerMap[r]={capture:void 0,bind:void 0});let i=o?l.eventHandlerMap[r].capture:l.eventHandlerMap[r].bind;Array.isArray(i)||(i=i?[i]:[]);let a=typeof n,s=i.findIndex(e=>typeof e.handler===a);-1!==s?i[s]=e:i.push(e),o?l.eventHandlerMap[r].capture=i:l.eventHandlerMap[r].bind=i}v.set(e,l)},O=(e,t)=>{let r=w++,a=n[e]??e,o=b.createElement(a);h[r]=new WeakRef(o);let l=h[t]?.deref()?.getAttribute(i.js);return l&&"0"!==l&&o.setAttribute(i.js,l),o.setAttribute(i.Gq,e),o.setAttribute(i.SP,r+""),o.setAttribute(i.er,t+""),o},j=(e,r,n)=>{let a=e.getAttribute(i.Gq);if("list"===a&&"update-list-info"===r){let{insertAction:t,removeAction:r}=n;queueMicrotask(()=>{let n=v.get(e);if(n){let i=n.componentAtIndex,a=n.enqueueComponent,l=(0,o.Tj)(e);for(let n of(r.forEach((t,r)=>{let n=e.children[t-r];if(n){let t=(0,o.Tj)(n);a?.(e,l,t),e.removeChild(n)}}),t)){let t=i?.(e,l,n.position,0,!1);if("number"==typeof t){let r=h[t]?.deref();if(r){let t=e.children[n.position];t!==r&&e.insertBefore(r,t||null)}}}}})}else null==n?e.removeAttribute(r):e.setAttribute(r,n+""),r===i.I7&&n&&t.push(n),d.has(r)&&x.add(e)},R=(e,t)=>{(0,o.R5)(e,t);let n=e.getAttribute(i.js),a=Number(e.getAttribute(i.SP)),l=e.getAttribute(i.Pb);r.updateCssOGStyle(a,t??"",n,l)},N=(e,t,r,n)=>{try{if("boundingClientRect"===t){let t=e.getBoundingClientRect();n({code:i.O4.SUCCESS,data:{id:e.id,width:t.width,height:t.height,left:t.left,right:t.right,top:t.top,bottom:t.bottom}});return}if("function"==typeof e[t]){let a=e[t](r);n({code:i.O4.SUCCESS,data:a});return}n({code:i.O4.METHOD_NOT_FOUND})}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),n({code:i.O4.PARAM_INVALID})}},G={},D=(e,t)=>{let r=O(e.type,t);for(let[t,n]of((0,o.wr)(r,e.id),e.class&&(0,o.R5)(r,e.class.join(" ")),Object.entries(e.attributes||{})))j(r,t,n);for(let[t,n]of Object.entries(e.builtinAttributes||{}))"dirtyID"===t&&n===e.id&&(0,o.ZW)(r,n),j(r,t,n);for(let n of e.children||[])(0,o.vh)(r,D(n,t));return void 0!==e.dataset&&(0,o.bw)(r,e.dataset),r},M=(e,t)=>{let r=w++;for(let n of(t.setAttribute(i.SP,r+""),e.events||[])){let{type:e,name:r,value:i}=n;k(t,e,r,i)}for(let r=0;r<(e.children||[]).length;r++){let n=(e.children||[])[r],i=t.children[r];n&&i&&M(n,i)}},H=(e,t)=>{let r=_[e];if(r){let n;if(G[e])n=Array.from(G[e].content.cloneNode(!0).children);else if(n=r.map(e=>D(e,t)),c.cloneNode){let r=b.createElement("template");return r.content.append(...n),G[e]=r,c.append(r),H(e,t)}for(let e=0;e<n.length;e++){let t=r[e],i=n[e];t&&i&&M(t,i)}return n.forEach(o.uY),n}return[]},$="",U=!s.enableCSSSelector,q={...i.c1,...e.browserConfig},W={__ElementFromBinary:H,__GetTemplateParts:c.querySelectorAll?o.$G:void 0,__MarkTemplateElement:o.uY,__MarkPartElement:o.ZW,__AddEvent:m?.__AddEvent??k,__GetEvent:(e,t,r)=>{let n=v.get(e);if(n){t=t.toLowerCase();let e=r.startsWith("capture")?n.eventHandlerMap[t]?.capture:n.eventHandlerMap[t]?.bind;return Array.isArray(e)?e[0]?.handler:e?.handler}},__GetEvents:e=>{let t=v.get(e)?.eventHandlerMap??{},r=[];for(let[e,n]of Object.entries(t))for(let t of[n.bind,n.capture])if(t)for(let n of Array.isArray(t)?t:[t]){let{type:t,handler:i}=n;i&&r.push({type:t,name:e,function:i})}return r},__SetEvents:(e,t)=>{for(let{type:r,name:n,function:i}of t)k(e,r,n,i)},__AppendElement:o.vh,__ElementIsEqual:o.pn,__FirstElement:o.vH,__GetChildren:o.yj,__GetParent:o.d6,__InsertElementBefore:o.pi,__LastElement:o.Nu,__NextElement:o.cw,__RemoveElement:o.z3,__ReplaceElement:o.Xk,__ReplaceElements:o.yE,__AddConfig:o.Ud,__AddDataset:o.Kz,__GetAttributes:o.GE,__GetComponentID:o.zP,__GetDataByKey:o.NV,__GetDataset:o.Fl,__GetElementConfig:o.pe,__GetElementUniqueID:o.Tj,__GetID:o.cb,__GetTag:o.zm,__SetConfig:o.l9,__SetDataset:o.bw,__SetID:o.wr,__UpdateComponentID:o.A7,__UpdateComponentInfo:o.$r,__CreateElement:O,__CreateView:e=>O("view",e),__CreateText:e=>O("text",e),__CreateComponent:(e,t,r,n,a)=>{let o=O("view",e);return o.setAttribute(i.js,r+""),o.setAttribute(i.pP,t),o.setAttribute("name",a),o},__CreatePage:(e,t)=>{let r=O("page",0);return r.setAttribute("part","page"),r.setAttribute(i.js,t+""),r.setAttribute(i.er,"1"),r.setAttribute(i.pP,e),(0,o.uY)(r),!1===s.defaultDisplayLinear&&r.setAttribute(i.Gm,"false"),!0===s.defaultOverflowVisible&&r.setAttribute("lynx-default-overflow-visible","true"),A=r,r},__CreateRawText:e=>{let t=O("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:e=>O("image",e),__CreateScrollView:e=>O("scroll-view",e),__CreateWrapperElement:e=>O("lynx-wrapper",e),__CreateList:(e,t,r)=>{let n=O("list",e);return v.set(n,{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r}),n},__SetAttribute:j,__SwapElement:(e,t)=>{let r=b.createElement("div");e.replaceWith(r),t.replaceWith(e),r.replaceWith(t)},__UpdateListCallbacks:(e,t,r)=>{let n=v.get(e)??{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r,uniqueId:(0,o.Tj)(e)};n.componentAtIndex=t,n.enqueueComponent=r,v.set(e,n)},__GetConfig:o.pe,__GetAttributeByName:o.li,__GetClasses:o.Tq,__AddClass:U?(e,t)=>{let n=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",n);let a=e.getAttribute(i.js),o=Number(e.getAttribute(i.SP)),l=e.getAttribute(i.Pb);r.updateCssOGStyle(o,n,a,l)}:o.gA,__SetClasses:U?R:o.R5,__AddInlineStyle:o.kB,__SetCSSId:U?(e,t,r)=>{for(let n of e){n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r);let e=n.getAttribute("class");e&&R(n,e)}}:o.D1,__SetInlineStyles:o.c2,__LoadLepusChunk:e=>{try{return e=y?.[e]??e,g.loadScriptSync(e),!0}catch(t){return console.error(`failed to load lepus chunk ${e}`,t),!1}},__GetPageElement:()=>A,__globalProps:p,__QueryComponent:r.__QueryComponent,SystemInfo:q,lynx:(0,a.B)(e,q),_ReportError:(e,t)=>r._ReportError(e,t,$),_SetSourceMapRelease:e=>$=e?.release,__OnLifecycleEvent:r.__OnLifecycleEvent,__FlushElementTree:(e,n)=>{let a=t;t=[],A&&!A.parentNode&&""!==A.getAttribute(i.JA)&&c.append(A);let o=Array.from(x);x.clear(),r.flushElementTree(n,a,o)},_I18nResourceTranslation:r._I18nResourceTranslation,_AddEventListener:()=>{},renderPage:void 0,__InvokeUIMethod:N,__QuerySelector:(e,t)=>{if(!e)return null;let r=e.querySelector(t);return r&&!r.invoke&&(r.invoke=(e,t)=>new Promise((n,a)=>{N(r,e,t,e=>{e.code===i.O4.SUCCESS?n(e.data):a(e)})})),r}};return Object.assign(g.globalWindow,W),Object.defineProperty(g.globalWindow,"renderPage",{get:()=>W.renderPage,set(e){W.renderPage=e,queueMicrotask(r.mainChunkReady)},configurable:!0,enumerable:!0}),g.globalWindow}n()}catch(e){n(e)}})},5333(e,t,r){r.a(e,async function(e,n){try{r.d(t,{B:()=>o});var i=r(3267),a=e([i]);function o(e,t){let r=requestAnimationFrame,n=cancelAnimationFrame,i=setTimeout,a=clearTimeout,o=setInterval,l=clearInterval;return{getJSContext:()=>e.jsContext,requestAnimationFrame:e=>r(e),cancelAnimationFrame:e=>n(e),__globalProps:e.globalProps,getCustomSectionSync:t=>e.lynxTemplate.customSections[t]?.content,markPipelineTiming:e.callbacks.markTiming,SystemInfo:t,setTimeout:i,clearTimeout:a,setInterval:o,clearInterval:l}}i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},7776(e,t,r){r.d(t,{k:()=>i});var n=r(4234);function i(e,t,r,i,a,o){let l=r.createCall(n.WS),s=new Map,u=(r,n)=>{let u=s.get(r),d=u??e(r).then(async e=>{let n=l(r,e),s=await o.loadScript(e.lepusCode.root);return i.mtsGlobalThis.processEvalResult&&(s=i.mtsGlobalThis.processEvalResult(s,r)),t(e.styleInfo,r),await n,a.dispatchEvent({type:"__OnDynamicJSSourcePrepared",data:r}),s});return u||s.set(r,d),d.then(e=>{n?.({code:0,data:{url:r,evalResult:e}})}).catch(e=>{console.error("lynx web: lazy bundle load failed:",e),s.delete(r),n?.({code:-1,data:void 0})}),null};return r.registerHandler(n.nk,e=>new Promise(t=>{u(e,r=>{t({code:r.code,detail:{schema:e}})})})),u}},938(e,t,r){r.d(t,{A:()=>i});var n=r(4234);function i(e,t){e.registerHandler(n.iH,(e,r)=>{t[e](r)})}},9894(e,t,r){r.d(t,{m:()=>i});var n=r(4234);function i(e,t){e.registerHandler(n.Fw,e=>t[e]?.content)}},7637(e,t,r){r.a(e,async function(e,n){try{r.d(t,{prepareMainThreadAPIs:()=>i.m});var i=r(4962),a=r(3267),o=e([i,a]);[i,a]=o.then?(await o)():o,n()}catch(e){n(e)}})},4962(e,t,r){r.a(e,async function(e,n){try{r.d(t,{m:()=>p});var i=r(4234),a=r(938),o=r(9894),l=r(3267),s=r(1883),u=r(3293),d=r(7776),c=e([u,l]);function p(e,t,r,n,c,p,f,m,g,b,_,y,h){let v=e.createCall(i.F6),A=e.createCall(i.a$),w=e.createCall(i.JW),x=e.createCall(i.Ke),S=e.createCall(i.pd),C=e.createCall(i.mB),E=e.createCall(i.Ve);async function T(e,t){let r=(await n).globalWindow,i=r.processData?r.processData(e,t?.processorName):e;return r.updatePage?.(i,t),E(i,t)}return p("lepus_execute_start"),{startMainThread:async function(E,T){let I=!0,{globalProps:P,template:k,browserConfig:O,nativeModulesMap:j,napiModulesMap:R,tagMap:N,initI18nResources:G}=E,{styleInfo:D,pageConfig:M,customSections:H,cardType:$}=k,U=await n;p("decode_start");let q=new i.tf({rpc:e,receiveEventEndpoint:i.Is,sendEventEndpoint:i.jK}),W=b(G),{updateCssOGStyle:L,updateLazyComponentStyle:B}=(0,u.c6)(D,M,t,r,T,h),z={mtsGlobalThis:void 0},F=(0,d.k)(_,B,e,z,q,U),J=(0,l.D)({lynxTemplate:k,mtsRealm:U,jsContext:q,tagMap:N,browserConfig:O,globalProps:P,pageConfig:M,rootDom:t,ssrHydrateInfo:T,ssrHooks:y,document:r,callbacks:{updateCssOGStyle:L,mainChunkReady:()=>{p("data_processor_start");let r=E.initData;!0!==M.enableJSDataProcessor&&J.processData&&(r=J.processData(E.initData)),p("data_processor_end"),(0,a.A)(e,J),(0,o.m)(e,H);let{switchExposureService:n}=(0,s.b)(t,S);if(e.registerHandler(i.eZ,n),A({initData:r,globalProps:P,template:k,cardType:$??"react",customSections:Object.fromEntries(Object.entries(H).filter(([,e])=>"lazy"!==e.type).map(([e,t])=>[e,t.content])),nativeModulesMap:j,napiModulesMap:R}),T){for(let e of T.events){let t=e[0],r=T.lynxUniqueIdToElement[t]?.deref();r&&J.__AddEvent(r,e[1],e[2],e[3])}J.ssrHydrate?.(T.ssrEncodeData)}else J.renderPage(r),J.__FlushElementTree(void 0,{})},flushElementTree:async(e,t,r)=>{let n=e?.pipelineOptions?.pipelineID;p("dispatch_start",n),I&&(I=!1,q.dispatchEvent({type:"__OnNativeAppReady",data:void 0})),p("layout_start",n),p("ui_operation_flush_start",n),await c(r),p("ui_operation_flush_end",n),p("layout_end",n),p("dispatch_end",n),f(),requestAnimationFrame(()=>{v(t,n)})},_ReportError:m,__OnLifecycleEvent:e=>{q.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>p(t,e),publishEvent:w,publicComponentEvent:x,_I18nResourceTranslation:e=>{let t=W.data?.find(t=>(0,i.HO)(t.options)===(0,i.HO)(e));return(C(t?.resource),t)?t.resource:g(e)},__QueryComponent:F}});z.mtsGlobalThis=J,p("decode_end"),await U.loadScript(k.lepusCode.root),q.__start()},handleUpdatedData:T}}[u,l]=c.then?(await c)():c,n()}catch(e){n(e)}})},1546(e,t,r){r.a(e,async function(e,n){try{r.d(t,{$G:()=>W,$r:()=>D,A7:()=>N,D1:()=>M,Fl:()=>w,GE:()=>S,Kz:()=>A,NV:()=>x,Nu:()=>g,R5:()=>H,Tj:()=>I,Tq:()=>G,Ud:()=>v,Xk:()=>y,ZW:()=>B,bw:()=>R,c2:()=>q,cb:()=>P,cw:()=>b,d6:()=>f,gA:()=>U,kB:()=>$,l9:()=>j,li:()=>T,pe:()=>E,pi:()=>m,pn:()=>d,uY:()=>L,vH:()=>c,vh:()=>u,wr:()=>k,yE:()=>h,yj:()=>p,z3:()=>_,zP:()=>C,zm:()=>O});var i=r(4234),a=r(6411),o=r(5529),l=r(5591),s=e([o]);o=(s.then?(await s)():s)[0];let u=(e,t)=>e.appendChild(t),d=(e,t)=>e===t,c=e=>e.firstElementChild,p=e=>e.children?[...e.children]:null,f=e=>e.parentElement,m=(e,t,r)=>e.insertBefore(t,r),g=e=>e.lastElementChild,b=e=>e.nextElementSibling,_=(e,t)=>e.removeChild(t),y=(e,t)=>t.replaceWith(e),h=(e,t,r)=>{if(t=Array.isArray(t)?t:[t],!r||Array.isArray(r)&&r?.length===0)e.append(...t);else{r=Array.isArray(r)?r:[r];for(let t=1;t<r.length;t++)_(e,r[t]);r[0].replaceWith(...t)}},v=(e,t,r)=>{let n=e.getAttribute(i.tl),a=n?JSON.parse(decodeURIComponent(n)):{};a[t]=r,e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(a)))},A=(e,t,r)=>{let n=w(e);n[t]=r,e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(n))),r?e.setAttribute("data-"+t,r.toString()):e.removeAttribute("data-"+t)},w=e=>{let t=e.getAttribute(i.C6);return t?JSON.parse(decodeURIComponent(t)):{}},x=(e,t)=>w(e)[t],S=e=>Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]).filter(([,e])=>e)),C=e=>e.getAttribute(i.pP),E=e=>{let t=e.getAttribute(i.tl);return t?JSON.parse(decodeURIComponent(t)):{}},T=(e,t)=>e.getAttribute(t),I=e=>e&&e.getAttribute?Number(e.getAttribute(i.SP)):-1,P=e=>e.getAttribute("id"),k=(e,t)=>t?e.setAttribute("id",t):e.removeAttribute("id"),O=e=>e.getAttribute(i.Gq),j=(e,t)=>{e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(t)))},R=(e,t)=>{for(let[r,n]of(e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(t))),Object.entries(t)))e.setAttribute("data-"+r,n.toString())},N=(e,t)=>e.setAttribute(i.pP,t),G=e=>(e.getAttribute("class")??"").split(" ").filter(e=>e),D=(e,t)=>{void 0!==t.componentID&&N(e,t.componentID),void 0!==t.cssID&&e.setAttribute(i.js,t.cssID+""),void 0!==t.name&&e.setAttribute("name",t.name)},M=(e,t,r)=>{for(let n of e)n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r)},H=(e,t)=>{t?e.setAttribute("class",t):e.removeAttribute("class")},$=(e,t,r)=>{let n;if("number"==typeof t){let e=(0,a.BH)(t);n=e.dashName,e.isX&&console.error(`[lynx-web] css property: ${n} is not supported.`)}else n=t;let i="number"==typeof r?r.toString():r;if(i){let{transformedStyle:t}=(0,o.x)([[n,i]]);for(let[r,n]of t)e.style.setProperty(r,n)}else e.style.removeProperty(n)},U=(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r)},q=(e,t)=>{if(t)if("string"==typeof t)e.setAttribute("style",(0,o.Q)(t));else{let{transformedStyle:r}=(0,o.x)(Object.entries(t).map(([e,t])=>[(0,l.A)(e),t?.toString?.()??""])),n=r.map(([e,t])=>`${e}:${t};`).join("");e.setAttribute("style",n)}},W=e=>{if(null===e.getAttribute(i.y))return{};let t=I(e),r={};for(let n of e.querySelectorAll(`[${i.SP}="${t}"] [${i.oZ}]:not([${i.SP}="${t}"] [${i.y}] [${i.oZ}])`)){let e=n.getAttribute(i.oZ);e&&(r[e]=n)}return r},L=e=>{e.setAttribute(i.y,"")},B=(e,t)=>{e.setAttribute(i.oZ,t)};n()}catch(e){n(e)}})},6411(e,t,r){r.d(t,{BH:()=>s});let n={},i=1,a={},o={},l=e=>{let t=i++,r=e.startsWith("-x-");a[t]={name:function(e){if(n[e])return n[e];let t=(e+"").replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()});return n[e]=t,t}(e),dashName:e,isX:r},o[e]=t};function s(e){return a[e]}l("top"),l("left"),l("right"),l("bottom"),l("position"),l("box-sizing"),l("background-color"),l("border-left-color"),l("border-right-color"),l("border-top-color"),l("border-bottom-color"),l("border-radius"),l("border-top-left-radius"),l("border-bottom-left-radius"),l("border-top-right-radius"),l("border-bottom-right-radius"),l("border-width"),l("border-left-width"),l("border-right-width"),l("border-top-width"),l("border-bottom-width"),l("color"),l("opacity"),l("display"),l("overflow"),l("height"),l("width"),l("max-width"),l("min-width"),l("max-height"),l("min-height"),l("padding"),l("padding-left"),l("padding-right"),l("padding-top"),l("padding-bottom"),l("margin"),l("margin-left"),l("margin-right"),l("margin-top"),l("margin-bottom"),l("white-space"),l("letter-spacing"),l("text-align"),l("line-height"),l("text-overflow"),l("font-size"),l("font-weight"),l("flex"),l("flex-grow"),l("flex-shrink"),l("flex-basis"),l("flex-direction"),l("flex-wrap"),l("align-items"),l("align-self"),l("align-content"),l("justify-content"),l("background"),l("border-color"),l("font-family"),l("font-style"),l("transform"),l("animation"),l("animation-name"),l("animation-duration"),l("animation-timing-function"),l("animation-delay"),l("animation-iteration-count"),l("animation-direction"),l("animation-fill-mode"),l("animation-play-state"),l("line-spacing"),l("border-style"),l("order"),l("box-shadow"),l("transform-origin"),l("linear-orientation"),l("linear-weight-sum"),l("linear-weight"),l("linear-gravity"),l("linear-layout-gravity"),l("layout-animation-create-duration"),l("layout-animation-create-timing-function"),l("layout-animation-create-delay"),l("layout-animation-create-property"),l("layout-animation-delete-duration"),l("layout-animation-delete-timing-function"),l("layout-animation-delete-delay"),l("layout-animation-delete-property"),l("layout-animation-update-duration"),l("layout-animation-update-timing-function"),l("layout-animation-update-delay"),l("adapt-font-size"),l("aspect-ratio"),l("text-decoration"),l("text-shadow"),l("background-image"),l("background-position"),l("background-origin"),l("background-repeat"),l("background-size"),l("border"),l("visibility"),l("border-right"),l("border-left"),l("border-top"),l("border-bottom"),l("transition"),l("transition-property"),l("transition-duration"),l("transition-delay"),l("transition-timing-function"),l("content"),l("border-left-style"),l("border-right-style"),l("border-top-style"),l("border-bottom-style"),l("implicit-animation"),l("overflow-x"),l("overflow-y"),l("word-break"),l("background-clip"),l("outline"),l("outline-color"),l("outline-style"),l("outline-width"),l("vertical-align"),l("caret-color"),l("direction"),l("relative-id"),l("relative-align-top"),l("relative-align-right"),l("relative-align-bottom"),l("relative-align-left"),l("relative-top-of"),l("relative-right-of"),l("relative-bottom-of"),l("relative-left-of"),l("relative-layout-once"),l("relative-center"),l("enter-transition-name"),l("exit-transition-name"),l("pause-transition-name"),l("resume-transition-name"),l("flex-flow"),l("z-index"),l("text-decoration-color"),l("linear-cross-gravity"),l("margin-inline-start"),l("margin-inline-end"),l("padding-inline-start"),l("padding-inline-end"),l("border-inline-start-color"),l("border-inline-end-color"),l("border-inline-start-width"),l("border-inline-end-width"),l("border-inline-start-style"),l("border-inline-end-style"),l("border-start-start-radius"),l("border-end-start-radius"),l("border-start-end-radius"),l("border-end-end-radius"),l("relative-align-inline-start"),l("relative-align-inline-end"),l("relative-inline-start-of"),l("relative-inline-end-of"),l("inset-inline-start"),l("inset-inline-end"),l("mask-image"),l("grid-template-columns"),l("grid-template-rows"),l("grid-auto-columns"),l("grid-auto-rows"),l("grid-column-span"),l("grid-row-span"),l("grid-column-start"),l("grid-column-end"),l("grid-row-start"),l("grid-row-end"),l("grid-column-gap"),l("grid-row-gap"),l("justify-items"),l("justify-self"),l("grid-auto-flow"),l("filter"),l("list-main-axis-gap"),l("list-cross-axis-gap"),l("linear-direction"),l("perspective"),l("cursor"),l("text-indent"),l("clip-path"),l("text-stroke"),l("text-stroke-width"),l("text-stroke-color"),l("-x-auto-font-size"),l("-x-auto-font-size-preset-sizes"),l("mask"),l("mask-repeat"),l("mask-position"),l("mask-clip"),l("mask-origin"),l("mask-size"),l("gap"),l("column-gap"),l("row-gap"),l("image-rendering"),l("hyphens"),l("-x-app-region"),l("-x-animation-color-interpolation"),l("-x-handle-color"),l("-x-handle-size"),l("offset-path"),l("offset-distance")},5529(e,t,r){r.a(e,async function(e,n){try{r.d(t,{Q:()=>i.Q,x:()=>i.x});var i=r(2965),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},3063(e,t,r){r.d(t,{X:()=>a});var n=r(4234);function i(e){let t={};for(let r in e){let n=e[r];("boolean"==typeof n||"number"==typeof n||"string"==typeof n||null===n)&&(t[r]=n)}return t}function a(e,t){let r=e.target,a=e.currentTarget.getAttribute?e.currentTarget:void 0,o=e.type,l={},s=e.isTrusted,u={},d=e.detail??{};if(o.match(/^transition/))Object.assign(l,{animation_type:"keyframe-animation",animation_name:e.propertyName,new_animator:!0});else if(o.match(/animation/))Object.assign(l,{animation_type:"keyframe-animation",animation_name:e.animationName,new_animator:!0});else if(o.startsWith("touch")){let t=[...e.touches],r=[...e.targetTouches],n=[...e.changedTouches];Object.assign(u,{touches:s?t.map(i):t,targetTouches:s?r.map(i):r,changedTouches:s?n.map(i):n})}else o.startsWith("mouse")?Object.assign(u,{button:e.button,buttons:e.buttons,x:e.x,y:e.y,pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY}):"click"===o&&(d={x:e.x,y:e.y});let c=a?.getAttribute(n.C6),p=c?JSON.parse(decodeURIComponent(c)):{},f=r.getAttribute(n.C6),m=f?JSON.parse(decodeURIComponent(f)):{};return{type:t,timestamp:e.timeStamp,target:{id:r.getAttribute("id"),dataset:m,uniqueId:Number(r.getAttribute(n.SP))},currentTarget:a?{id:a.getAttribute("id"),dataset:p,uniqueId:Number(a.getAttribute(n.SP))}:null,detail:d,params:l,...u}}},1883(e,t,r){r.d(t,{b:()=>a});var n=r(4234),i=r(3063);function a(e,t){let r=!0,a=[],o=[],l=null,s=new Map;function u(e){let r=(0,i.X)(e,e.type);r.detail["unique-id"]=parseFloat(e.target.getAttribute(n.SP));let u=r.detail.exposureID;"exposure"===e.type?(a.push(r),s.set(u,r)):(o.push(r),s.delete(u)),l||(l=setTimeout(()=>{if(a.length>0||o.length>0){let e=a,r=o;a=[],o=[],t({exposures:e,disExposures:r})}l=null},50))}return e.addEventListener("exposure",u,{passive:!0}),e.addEventListener("disexposure",u,{passive:!0}),{switchExposureService:function(e,n){e&&!r?t({exposures:[...s.values()],disExposures:[]}):!e&&r&&n&&t({exposures:[],disExposures:[...s.values()]}),r=e}}}},4320(e,t,r){r.d(t,{y:()=>n});function n(e,t,r){let n=e.split(" ").filter(e=>e),i=[],a=t[r??"0"];if(a)for(let e of n){let t=a[e];t&&i.push(...t)}else console.warn(`[lynx-web] cannot find styleinfo for cssid ${r}`);return i.map(([e,t])=>`${e}:${t};`).join("")}},3293(e,t,r){r.a(e,async function(e,n){try{r.d(t,{c6:()=>p});var i=r(4234),a=r(2965),o=r(4320),l=e([a]);function s(e,t){let r=function(e){let t=[],r=new Map;for(let[t,n]of Object.entries(e))for(let e of(r.has(t)||r.set(t,0),n.imports??[])){let t=r.get(e)??0;r.set(e,t+1)}for(let[e,n]of r.entries())0===n&&t.push(e);let n=[];for(;t.length>0;){let i=t.shift();n.push(i);let a=e[i]?.imports;if(a)for(let e of a){let n=r.get(e)-1;r.set(e,n),0===n&&t.push(e)}}return n}(e),n=function(e,t){let r=new Map;for(let n of t){let t=e[n]?.imports;if(t){let e=r.get(n)??new Set([n]);for(let i of t){let t=r.get(i)??new Set([i]);t.add(n),r.set(i,e.union(t))}r.set(n,e)}}return r}(e,r);return r.reverse(),r.map(r=>{let i=e[r];return i?{content:t?i.content?[...i.content]:[]:i.content??[],rules:t?i.rules?i.rules.map(e=>({sel:e.sel.map(e=>e.map(e=>e.slice())),decl:e.decl.map(([e,t])=>[e,t])})):[]:i.rules??[],importBy:Array.from(n.get(r)??[r])}:{content:[],rules:[],importBy:[r]}})}function u(e){for(let t of e)for(let e of t.rules){let{sel:r,decl:n}=e,{transformedStyle:i,childStyle:o}=(0,a.x)(n);e.decl=i,o.length>0&&t.rules.push({sel:r.map(e=>e.toSpliced(-2,1,[">"],["*"],[],[],[])),decl:o})}}function d(e,t,r){let n=[];for(let a of e){let e=a.rules.map(e=>{let{sel:n,decl:o}=e,l=a.importBy.map(e=>{let a=function(e){let n;return n=t.enableRemoveCSSScope?`[${i.Gq}]`:`[${i.js}="${e}"]`,n=r?`${n}[${i.Pb}=${JSON.stringify(r)}]`:`${n}:not([${i.Pb}])`}(e);return n.map(e=>e.toSpliced(-4,0,[a]).flat().join("")).join(",")}).join(","),s=o.map(([e,t])=>`${e}:${t};`).join("");return`${l}{${s}}`}).join("");n.push(...a.content,e)}return n.join("\n")}function c(e){let t={};for(let r of e)r.rules=r.rules.filter(e=>(e.sel=e.sel.filter(n=>{let[i,a,o,l]=n;if(1===i.length&&"."===i[0][0]&&0===a.length&&0===o.length&&0===l.length){let n=i[0].substring(1);for(let i of r.importBy){t[i]||(t[i]={});let r=t[i][n];r?r.push(...e.decl):t[i][n]=e.decl}return!1}return!0}),e.sel.length>0));return t}function p(e,t,r,n,a,l){let p,f=a?.lynxUniqueIdToStyleRulesIndex??[],m=s(e,!!l);u(m);let g=t.enableCSSSelector?{}:c(m),b={};return a?.cardStyleElement?p=a.cardStyleElement:((p=n.createElement("style")).textContent=d(m,t,void 0),r.appendChild(p)),{updateCssOGStyle:(e,t,r,n)=>{let a=p.sheet,l=n&&b[n]?b[n]:g,s=(0,o.y)(t,l,r);if(void 0!==f[e])a.cssRules[f[e]].style.cssText=s;else{let t=a.insertRule(`[${i.SP}="${e}"]{${s}}`,a.cssRules.length);f[e]=t}},updateLazyComponentStyle:(e,r)=>{let n=s(e,!!l);u(n),t.enableCSSSelector||(b[r]=c(n));let i=d(n,t,r);p.textContent+=i}}}a=(l.then?(await l)():l)[0],n()}catch(e){n(e)}})},2965(e,t,r){r.a(e,async function(e,n){try{r.d(t,{Q:()=>o,x:()=>l});var i=r(4433),a=e([i]);function o(e){return i.v.transform_raw_u16_inline_style_ptr(e)??e}function l(e){let t=[],r=[];for(let[n,a]of e){let e=i.v.transform_raw_u16_inline_style_ptr_parsed(n,a);if(e){let[n,i]=e;r=r.concat(n),i&&(t=t.concat(i))}else r.push([n,a])}return{childStyle:t,transformedStyle:r}}i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},4433(e,t,r){r.a(e,async function(e,n){try{let e;r.d(t,{v:()=>e});var i=r(480);async function a(){let[t,n]=await Promise.all([(0,i.rO)(),(0,i.oR)()]);e=t&&n?await Promise.resolve().then(r.bind(r,5512)):await r.e("8").then(r.bind(r,9850))}await a(),n()}catch(e){n(e)}},1)},5512(e,t,r){r.a(e,async function(e,n){try{r.r(t),r.d(t,{transform_raw_u16_inline_style_ptr:()=>i.a,transform_raw_u16_inline_style_ptr_parsed:()=>i.i});var i=r(3095),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},480(e,t,r){r.d(t,{oR:()=>i,rO:()=>n});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])),i=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]))},1009(e,t,r){var n=r(3209);e.exports=r.v(t,e.id,"9a3c5a841d16118a",{"./standard_bg.js":{__wbg_new_3eb36ae241fe6f44:n.oF,__wbg_push_8ffdcb2063340ba5:n.Yy,__wbg___wbindgen_throw_be289d5034ed271b:n.rm,__wbindgen_init_externref_table:n.bL,__wbindgen_cast_0000000000000001:n.NR}})}}]);
1
+ "use strict";(globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).push([["361"],{5591(e,t,r){r.d(t,{A:()=>l});var n=/[A-Z]/g,i=/^ms-/,a={};function o(e){return"-"+e.toLowerCase()}let l=function(e){if(a.hasOwnProperty(e))return a[e];var t=e.replace(n,o);return a[e]=i.test(t)?"-"+t:t}},3095(e,t,r){r.a(e,async function(e,n){try{r.d(t,{a:()=>a.aC,i:()=>a.iG});var i=r(1009),a=r(3209),o=e([i]);i=(o.then?(await o)():o)[0],(0,a.lI)(i),i.__wbindgen_start(),n()}catch(e){n(e)}})},3209(e,t,r){let n;function i(e){let t,r=m(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=y,a=n.transform_raw_u16_inline_style_ptr(r,i);return 0!==a[0]&&(t=c(a[0],a[1]).slice(),n.__wbindgen_free(a[0],+a[1],1)),t}function a(e,t){let r=m(e,n.__wbindgen_malloc,n.__wbindgen_realloc),i=y,a=m(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=y;return n.transform_raw_u16_inline_style_ptr_parsed(r,i,a,o)}function o(e,t){throw Error(c(e,t))}function l(){return[]}function s(e,t){return e.push(t)}function u(e,t){return c(e,t)}function d(){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)}function c(e,t){var r,n;return r=e>>>=0,(b+=n=t)>=0x7ff00000&&((g=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),b=n),g.decode(f().subarray(r,r+n))}r.d(t,{NR:()=>u,Yy:()=>s,aC:()=>i,bL:()=>d,iG:()=>a,lI:()=>h,oF:()=>l,rm:()=>o});let p=null;function f(){return(null===p||0===p.byteLength)&&(p=new Uint8Array(n.memory.buffer)),p}function m(e,t,r){if(void 0===r){let r=_.encode(e),n=t(r.length,1)>>>0;return f().subarray(n,n+r.length).set(r),y=r.length,n}let n=e.length,i=t(n,1)>>>0,a=f(),o=0;for(;o<n;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==n){0!==o&&(e=e.slice(o)),i=r(i,n,n=o+3*e.length,1)>>>0;let t=f().subarray(i+o,i+n);o+=_.encodeInto(e,t).written,i=r(i,n,o,1)>>>0}return y=o,i}let g=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});g.decode();let b=0,_=new TextEncoder;"encodeInto"in _||(_.encodeInto=function(e,t){let r=_.encode(e);return t.set(r),{read:e.length,written:r.length}});let y=0;function h(e){n=e}},3267(e,t,r){r.a(e,async function(e,n){try{r.d(t,{D:()=>u});var i=r(4234),a=r(5333),o=r(1546),l=r(3063),s=e([o,a]);[o,a]=s.then?(await s)():s;let d=new Set(["exposure-id","exposure-area","exposure-screen-margin-top","exposure-screen-margin-right","exposure-screen-margin-bottom","exposure-screen-margin-left","exposure-ui-margin-top","exposure-ui-margin-right","exposure-ui-margin-bottom","exposure-ui-margin-left"]);function u(e){let t=[],{callbacks:r,tagMap:n,pageConfig:s,lynxTemplate:u,rootDom:c,globalProps:p,ssrHydrateInfo:f,ssrHooks:m,mtsRealm:g,document:b}=e,{elementTemplate:_,lepusCode:y}=u,h=f?.lynxUniqueIdToElement??[],v=new WeakMap,A=h[1]?.deref(),w=h.length||1,x=new Set,S=(e,t)=>{if(!e.currentTarget||e.eventPhase===Event.CAPTURING_PHASE&&!1===t||e.eventPhase===Event.BUBBLING_PHASE&&!0===t)return;let n=e.currentTarget,a=e.eventPhase===Event.AT_TARGET?t:e.eventPhase===e.CAPTURING_PHASE,o=i.$4[e.type]??e.type,s=v.get(n);if(s){let t=a?s.eventHandlerMap[o]?.capture:s.eventHandlerMap[o]?.bind,u=!1;if(t)for(let a of t){let s=a.handler,d=(0,l.X)(e,o);if("string"==typeof s){let e=h[Number(n.getAttribute(i.er))].deref(),a=e?.getAttribute(i.Gq)!=="page"?e?.getAttribute(i.pP)??void 0:void 0;a?r.publicComponentEvent(a,s,d):r.publishEvent(s,d),1===t.length&&(u=!0)}else s&&(d.target.elementRefptr=e.target,d.currentTarget&&(d.currentTarget.elementRefptr=e.currentTarget),g.globalWindow.runWorklet?.(s.value,[d]))}return u}return!1},C=e=>{S(e,!0)},E=e=>{S(e,!1)},T=(e,t)=>{S(e,t)&&e.stopPropagation()},I=e=>{T(e,!0)},P=e=>{T(e,!1)},k=(e,t,r,n)=>{r=r.toLowerCase();let a="catchEvent"===t||"capture-catch"===t,o=t.startsWith("capture"),l=v.get(e)??{eventHandlerMap:{},componentAtIndex:void 0,enqueueComponent:void 0},s=o?l.eventHandlerMap[r]?.capture:l.eventHandlerMap[r]?.bind,u=s&&s.length>0,d=a?o?I:P:o?C:E;if(u)!n&&(e.removeEventListener(r,d,{capture:o}),("uiappear"===r||"uidisappear"===r)&&"-1"===e.getAttribute("exposure-id")&&W.__SetAttribute(e,"exposure-id",null),l.eventHandlerMap[r]&&(o?l.eventHandlerMap[r].capture=void 0:l.eventHandlerMap[r].bind=void 0));else if(n){let t=i.vQ[e.tagName]?.[r]??i.im[r]??r;e.addEventListener(t,d,{capture:o}),("uiappear"===r||"uidisappear"===r)&&null===e.getAttribute("exposure-id")&&W.__SetAttribute(e,"exposure-id","-1")}if(n){let e={type:t,handler:n};l.eventHandlerMap[r]||(l.eventHandlerMap[r]={capture:void 0,bind:void 0});let i=o?l.eventHandlerMap[r].capture:l.eventHandlerMap[r].bind;Array.isArray(i)||(i=i?[i]:[]);let a=typeof n,s=i.findIndex(e=>typeof e.handler===a);-1!==s?i[s]=e:i.push(e),o?l.eventHandlerMap[r].capture=i:l.eventHandlerMap[r].bind=i}v.set(e,l)},O=(e,t)=>{let r=w++,a=n[e]??e,o=b.createElement(a);h[r]=new WeakRef(o);let l=h[t]?.deref()?.getAttribute(i.js);return l&&"0"!==l&&o.setAttribute(i.js,l),o.setAttribute(i.Gq,e),o.setAttribute(i.SP,r+""),o.setAttribute(i.er,t+""),o},j=(e,r,n)=>{let a=e.getAttribute(i.Gq);if("list"===a&&"update-list-info"===r){let{insertAction:t,removeAction:r}=n;queueMicrotask(()=>{let n=v.get(e);if(n){let i=n.componentAtIndex,a=n.enqueueComponent,l=(0,o.Tj)(e);for(let n of(r.forEach((t,r)=>{let n=e.children[t-r];if(n){let t=(0,o.Tj)(n);a?.(e,l,t),e.removeChild(n)}}),t)){let t=i?.(e,l,n.position,0,!1);if("number"==typeof t){let r=h[t]?.deref();if(r){let t=e.children[n.position];t!==r&&e.insertBefore(r,t||null)}}}}})}else null==n?e.removeAttribute(r):e.setAttribute(r,n+""),r===i.I7&&n&&t.push(n),d.has(r)&&x.add(e)},R=(e,t)=>{(0,o.R5)(e,t);let n=e.getAttribute(i.js),a=Number(e.getAttribute(i.SP)),l=e.getAttribute(i.Pb);r.updateCssOGStyle(a,t??"",n,l)},N=(e,t,r,n)=>{try{if("boundingClientRect"===t){let t=e.getBoundingClientRect();n({code:i.O4.SUCCESS,data:{id:e.id,width:t.width,height:t.height,left:t.left,right:t.right,top:t.top,bottom:t.bottom}});return}if("function"==typeof e[t]){let a=e[t](r);n({code:i.O4.SUCCESS,data:a});return}n({code:i.O4.METHOD_NOT_FOUND})}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),n({code:i.O4.PARAM_INVALID})}},G={},D=(e,t)=>{let r=O(e.type,t);for(let[t,n]of((0,o.wr)(r,e.id),e.class&&(0,o.R5)(r,e.class.join(" ")),Object.entries(e.attributes||{})))j(r,t,n);for(let[t,n]of Object.entries(e.builtinAttributes||{}))"dirtyID"===t&&n===e.id&&(0,o.ZW)(r,n),j(r,t,n);for(let n of e.children||[])(0,o.vh)(r,D(n,t));return void 0!==e.dataset&&(0,o.bw)(r,e.dataset),r},M=(e,t)=>{let r=w++;for(let n of(t.setAttribute(i.SP,r+""),e.events||[])){let{type:e,name:r,value:i}=n;k(t,e,r,i)}for(let r=0;r<(e.children||[]).length;r++){let n=(e.children||[])[r],i=t.children[r];n&&i&&M(n,i)}},H=(e,t)=>{let r=_[e];if(r){let n;if(G[e])n=Array.from(G[e].content.cloneNode(!0).children);else if(n=r.map(e=>D(e,t)),c.cloneNode){let r=b.createElement("template");return r.content.append(...n),G[e]=r,c.append(r),H(e,t)}for(let e=0;e<n.length;e++){let t=r[e],i=n[e];t&&i&&M(t,i)}return n.forEach(o.uY),n}return[]},$="",U=!s.enableCSSSelector,q={...i.c1,...e.browserConfig},W={__ElementFromBinary:H,__GetTemplateParts:c.querySelectorAll?o.$G:void 0,__MarkTemplateElement:o.uY,__MarkPartElement:o.ZW,__AddEvent:m?.__AddEvent??k,__GetEvent:(e,t,r)=>{let n=v.get(e);if(n){t=t.toLowerCase();let e=r.startsWith("capture")?n.eventHandlerMap[t]?.capture:n.eventHandlerMap[t]?.bind;return Array.isArray(e)?e[0]?.handler:e?.handler}},__GetEvents:e=>{let t=v.get(e)?.eventHandlerMap??{},r=[];for(let[e,n]of Object.entries(t))for(let t of[n.bind,n.capture])if(t)for(let n of Array.isArray(t)?t:[t]){let{type:t,handler:i}=n;i&&r.push({type:t,name:e,function:i})}return r},__SetEvents:(e,t)=>{for(let{type:r,name:n,function:i}of t)k(e,r,n,i)},__AppendElement:o.vh,__ElementIsEqual:o.pn,__FirstElement:o.vH,__GetChildren:o.yj,__GetParent:o.d6,__InsertElementBefore:o.pi,__LastElement:o.Nu,__NextElement:o.cw,__RemoveElement:o.z3,__ReplaceElement:o.Xk,__ReplaceElements:o.yE,__AddConfig:o.Ud,__AddDataset:o.Kz,__GetAttributes:o.GE,__GetComponentID:o.zP,__GetDataByKey:o.NV,__GetDataset:o.Fl,__GetElementConfig:o.pe,__GetElementUniqueID:o.Tj,__GetID:o.cb,__GetTag:o.zm,__SetConfig:o.l9,__SetDataset:o.bw,__SetID:o.wr,__UpdateComponentID:o.A7,__UpdateComponentInfo:o.$r,__CreateElement:O,__CreateView:e=>O("view",e),__CreateText:e=>O("text",e),__CreateComponent:(e,t,r,n,a)=>{let o=O("view",e);return o.setAttribute(i.js,r+""),o.setAttribute(i.pP,t),o.setAttribute("name",a),o},__CreatePage:(e,t)=>{let r=O("page",0);return r.setAttribute("part","page"),r.setAttribute(i.js,t+""),r.setAttribute(i.er,"1"),r.setAttribute(i.pP,e),(0,o.uY)(r),!1===s.defaultDisplayLinear&&r.setAttribute(i.Gm,"false"),!0===s.defaultOverflowVisible&&r.setAttribute("lynx-default-overflow-visible","true"),A=r,r},__CreateRawText:e=>{let t=O("raw-text",-1);return t.setAttribute("text",e),t},__CreateImage:e=>O("image",e),__CreateScrollView:e=>O("scroll-view",e),__CreateWrapperElement:e=>O("lynx-wrapper",e),__CreateList:(e,t,r)=>{let n=O("list",e);return v.set(n,{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r}),n},__SetAttribute:j,__SwapElement:(e,t)=>{let r=b.createElement("div");e.replaceWith(r),t.replaceWith(e),r.replaceWith(t)},__UpdateListCallbacks:(e,t,r)=>{let n=v.get(e)??{eventHandlerMap:{},componentAtIndex:t,enqueueComponent:r,uniqueId:(0,o.Tj)(e)};n.componentAtIndex=t,n.enqueueComponent=r,v.set(e,n)},__GetConfig:o.pe,__GetAttributeByName:o.li,__GetClasses:o.Tq,__AddClass:U?(e,t)=>{let n=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",n);let a=e.getAttribute(i.js),o=Number(e.getAttribute(i.SP)),l=e.getAttribute(i.Pb);r.updateCssOGStyle(o,n,a,l)}:o.gA,__SetClasses:U?R:o.R5,__AddInlineStyle:o.kB,__SetCSSId:U?(e,t,r)=>{for(let n of e){n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r);let e=n.getAttribute("class");e&&R(n,e)}}:o.D1,__SetInlineStyles:o.c2,__LoadLepusChunk:e=>{try{return e=y?.[e]??e,g.loadScriptSync(e),!0}catch(t){return console.error(`failed to load lepus chunk ${e}`,t),!1}},__GetPageElement:()=>A,__globalProps:p,__QueryComponent:r.__QueryComponent,SystemInfo:q,lynx:(0,a.B)(e,q),_ReportError:(e,t)=>r._ReportError(e,t,$),_SetSourceMapRelease:e=>$=e?.release,__OnLifecycleEvent:r.__OnLifecycleEvent,__FlushElementTree:(e,n)=>{let a=t;t=[],A&&!A.parentNode&&""!==A.getAttribute(i.JA)&&c.append(A);let o=Array.from(x);x.clear(),r.flushElementTree(n,a,o)},_I18nResourceTranslation:r._I18nResourceTranslation,_AddEventListener:()=>{},renderPage:void 0,__InvokeUIMethod:N,__QuerySelector:(e,t)=>{if(!e)return null;let r=e.querySelector(t);return r&&!r.invoke&&(r.invoke=(e,t)=>new Promise((n,a)=>{N(r,e,t,e=>{e.code===i.O4.SUCCESS?n(e.data):a(e)})})),r}};return Object.assign(g.globalWindow,W),Object.defineProperty(g.globalWindow,"renderPage",{get:()=>W.renderPage,set(e){W.renderPage=e,queueMicrotask(r.mainChunkReady)},configurable:!0,enumerable:!0}),g.globalWindow}n()}catch(e){n(e)}})},5333(e,t,r){r.a(e,async function(e,n){try{r.d(t,{B:()=>o});var i=r(3267),a=e([i]);function o(e,t){let r=requestAnimationFrame,n=cancelAnimationFrame,i=setTimeout,a=clearTimeout,o=setInterval,l=clearInterval;return{getJSContext:()=>e.jsContext,requestAnimationFrame:e=>r(e),cancelAnimationFrame:e=>n(e),__globalProps:e.globalProps,getCustomSectionSync:t=>e.lynxTemplate.customSections[t]?.content,markPipelineTiming:e.callbacks.markTiming,SystemInfo:t,setTimeout:i,clearTimeout:a,setInterval:o,clearInterval:l}}i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},7776(e,t,r){r.d(t,{k:()=>i});var n=r(4234);function i(e,t,r,i,a,o){let l=r.createCall(n.WS),s=new Map,u=(r,n)=>{let u=s.get(r),d=u??e(r).then(async e=>{let n=l(r,e),s=await o.loadScript(e.lepusCode.root);return i.mtsGlobalThis.processEvalResult&&(s=i.mtsGlobalThis.processEvalResult(s,r)),t(e.styleInfo,r),await n,a.dispatchEvent({type:"__OnDynamicJSSourcePrepared",data:r}),s});return u||s.set(r,d),d.then(e=>{n?.({code:0,data:{url:r,evalResult:e}})}).catch(e=>{console.error("lynx web: lazy bundle load failed:",e),s.delete(r),n?.({code:-1,data:void 0})}),null};return r.registerHandler(n.nk,e=>new Promise(t=>{u(e,r=>{t({code:r.code,detail:{schema:e}})})})),u}},938(e,t,r){r.d(t,{A:()=>i});var n=r(4234);function i(e,t){e.registerHandler(n.iH,(e,r)=>{t[e](r)})}},9894(e,t,r){r.d(t,{m:()=>i});var n=r(4234);function i(e,t){e.registerHandler(n.Fw,e=>t[e]?.content)}},7637(e,t,r){r.a(e,async function(e,n){try{r.d(t,{prepareMainThreadAPIs:()=>i.m});var i=r(4962),a=r(3267),o=e([i,a]);[i,a]=o.then?(await o)():o,n()}catch(e){n(e)}})},4962(e,t,r){r.a(e,async function(e,n){try{r.d(t,{m:()=>p});var i=r(4234),a=r(938),o=r(9894),l=r(3267),s=r(1883),u=r(3293),d=r(7776),c=e([u,l]);function p(e,t,r,n,c,p,f,m,g,b,_,y,h){let v=e.createCall(i.F6),A=e.createCall(i.a$),w=e.createCall(i.JW),x=e.createCall(i.Ke),S=e.createCall(i.pd),C=e.createCall(i.mB),E=e.createCall(i.Ve);async function T(e,t){let r=(await n).globalWindow,i=r.processData?r.processData(e,t?.processorName):e;return r.updatePage?.(i,t),E(i,t)}return p("lepus_execute_start"),{startMainThread:async function(E,T){let I=!0,{globalProps:P,template:k,browserConfig:O,nativeModulesMap:j,napiModulesMap:R,tagMap:N,initI18nResources:G}=E,{styleInfo:D,pageConfig:M,customSections:H,cardType:$}=k,U=await n;p("decode_start");let q=new i.tf({rpc:e,receiveEventEndpoint:i.Is,sendEventEndpoint:i.jK}),W=b(G),{updateCssOGStyle:L,updateLazyComponentStyle:B}=(0,u.c6)(D,M,t,r,T,h),z={mtsGlobalThis:void 0},F=(0,d.k)(_,B,e,z,q,U),J=(0,l.D)({lynxTemplate:k,mtsRealm:U,jsContext:q,tagMap:N,browserConfig:O,globalProps:P,pageConfig:M,rootDom:t,ssrHydrateInfo:T,ssrHooks:y,document:r,callbacks:{updateCssOGStyle:L,mainChunkReady:()=>{p("data_processor_start");let r=E.initData;!0!==M.enableJSDataProcessor&&J.processData&&(r=J.processData(E.initData)),p("data_processor_end"),(0,a.A)(e,J),(0,o.m)(e,H);let{switchExposureService:n}=(0,s.b)(t,S);if(e.registerHandler(i.eZ,n),A({initData:r,globalProps:P,template:k,cardType:$??"react",customSections:Object.fromEntries(Object.entries(H).filter(([,e])=>"lazy"!==e.type).map(([e,t])=>[e,t.content])),nativeModulesMap:j,napiModulesMap:R}),T){for(let e of T.events){let t=e[0],r=T.lynxUniqueIdToElement[t]?.deref();r&&J.__AddEvent(r,e[1],e[2],e[3])}J.ssrHydrate?.(T.ssrEncodeData)}else J.renderPage(r),J.__FlushElementTree(void 0,{})},flushElementTree:async(e,t,r)=>{let n=e?.pipelineOptions?.pipelineID;p("dispatch_start",n),I&&(I=!1,q.dispatchEvent({type:"__OnNativeAppReady",data:void 0})),p("layout_start",n),p("ui_operation_flush_start",n),await c(r),p("ui_operation_flush_end",n),p("layout_end",n),p("dispatch_end",n),f(),requestAnimationFrame(()=>{v(t,n)})},_ReportError:m,__OnLifecycleEvent:e=>{q.dispatchEvent({type:"__OnLifecycleEvent",data:e})},markTiming:(e,t)=>p(t,e),publishEvent:w,publicComponentEvent:x,_I18nResourceTranslation:e=>{let t=W.data?.find(t=>(0,i.HO)(t.options)===(0,i.HO)(e));return(C(t?.resource),t)?t.resource:g(e)},__QueryComponent:F}});z.mtsGlobalThis=J,p("decode_end"),await U.loadScript(k.lepusCode.root),q.__start()},handleUpdatedData:T}}[u,l]=c.then?(await c)():c,n()}catch(e){n(e)}})},1546(e,t,r){r.a(e,async function(e,n){try{r.d(t,{$G:()=>W,$r:()=>D,A7:()=>N,D1:()=>M,Fl:()=>w,GE:()=>S,Kz:()=>A,NV:()=>x,Nu:()=>g,R5:()=>H,Tj:()=>I,Tq:()=>G,Ud:()=>v,Xk:()=>y,ZW:()=>B,bw:()=>R,c2:()=>q,cb:()=>P,cw:()=>b,d6:()=>f,gA:()=>U,kB:()=>$,l9:()=>j,li:()=>T,pe:()=>E,pi:()=>m,pn:()=>d,uY:()=>L,vH:()=>c,vh:()=>u,wr:()=>k,yE:()=>h,yj:()=>p,z3:()=>_,zP:()=>C,zm:()=>O});var i=r(4234),a=r(6411),o=r(5529),l=r(5591),s=e([o]);o=(s.then?(await s)():s)[0];let u=(e,t)=>e.appendChild(t),d=(e,t)=>e===t,c=e=>e.firstElementChild,p=e=>e.children?[...e.children]:null,f=e=>e.parentElement,m=(e,t,r)=>e.insertBefore(t,r),g=e=>e.lastElementChild,b=e=>e.nextElementSibling,_=(e,t)=>e.removeChild(t),y=(e,t)=>t.replaceWith(e),h=(e,t,r)=>{if(t=Array.isArray(t)?t:[t],!r||Array.isArray(r)&&r?.length===0)e.append(...t);else{r=Array.isArray(r)?r:[r];for(let t=1;t<r.length;t++)_(e,r[t]);r[0].replaceWith(...t)}},v=(e,t,r)=>{let n=e.getAttribute(i.tl),a=n?JSON.parse(decodeURIComponent(n)):{};a[t]=r,e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(a)))},A=(e,t,r)=>{let n=w(e);n[t]=r,e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(n))),r?e.setAttribute("data-"+t,r.toString()):e.removeAttribute("data-"+t)},w=e=>{let t=e.getAttribute(i.C6);return t?JSON.parse(decodeURIComponent(t)):{}},x=(e,t)=>w(e)[t],S=e=>Object.fromEntries(e.getAttributeNames().map(t=>[t,e.getAttribute(t)]).filter(([,e])=>e)),C=e=>e.getAttribute(i.pP),E=e=>{let t=e.getAttribute(i.tl);return t?JSON.parse(decodeURIComponent(t)):{}},T=(e,t)=>e.getAttribute(t),I=e=>e&&e.getAttribute?Number(e.getAttribute(i.SP)):-1,P=e=>e.getAttribute("id"),k=(e,t)=>t?e.setAttribute("id",t):e.removeAttribute("id"),O=e=>e.getAttribute(i.Gq),j=(e,t)=>{e.setAttribute(i.tl,encodeURIComponent(JSON.stringify(t)))},R=(e,t)=>{for(let[r,n]of(e.setAttribute(i.C6,encodeURIComponent(JSON.stringify(t))),Object.entries(t)))e.setAttribute("data-"+r,n.toString())},N=(e,t)=>e.setAttribute(i.pP,t),G=e=>(e.getAttribute("class")??"").split(" ").filter(e=>e),D=(e,t)=>{void 0!==t.componentID&&N(e,t.componentID),void 0!==t.cssID&&e.setAttribute(i.js,t.cssID+""),void 0!==t.name&&e.setAttribute("name",t.name)},M=(e,t,r)=>{for(let n of e)n.setAttribute(i.js,t+""),r&&n.setAttribute(i.Pb,r)},H=(e,t)=>{t?e.setAttribute("class",t):e.removeAttribute("class")},$=(e,t,r)=>{let n;if("number"==typeof t){let e=(0,a.BH)(t);n=e.dashName,e.isX&&console.error(`[lynx-web] css property: ${n} is not supported.`)}else n=t;let i="number"==typeof r?r.toString():r;if(i){let{transformedStyle:t}=(0,o.x)([[n,i]]);for(let[r,n]of t)e.style.setProperty(r,n)}else e.style.removeProperty(n)},U=(e,t)=>{let r=((e.getAttribute("class")??"")+" "+t).trim();e.setAttribute("class",r)},q=(e,t)=>{if(t)if("string"==typeof t)e.setAttribute("style",(0,o.Q)(t));else{let{transformedStyle:r}=(0,o.x)(Object.entries(t).map(([e,t])=>[(0,l.A)(e),t?.toString?.()??""])),n=r.map(([e,t])=>`${e}:${t};`).join("");e.setAttribute("style",n)}},W=e=>{if(null===e.getAttribute(i.y))return{};let t=I(e),r={};for(let n of e.querySelectorAll(`[${i.SP}="${t}"] [${i.oZ}]:not([${i.SP}="${t}"] [${i.y}] [${i.oZ}])`)){let e=n.getAttribute(i.oZ);e&&(r[e]=n)}return r},L=e=>{e.setAttribute(i.y,"")},B=(e,t)=>{e.setAttribute(i.oZ,t)};n()}catch(e){n(e)}})},6411(e,t,r){r.d(t,{BH:()=>s});let n={},i=1,a={},o={},l=e=>{let t=i++,r=e.startsWith("-x-");a[t]={name:function(e){if(n[e])return n[e];let t=(e+"").replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()});return n[e]=t,t}(e),dashName:e,isX:r},o[e]=t};function s(e){return a[e]}l("top"),l("left"),l("right"),l("bottom"),l("position"),l("box-sizing"),l("background-color"),l("border-left-color"),l("border-right-color"),l("border-top-color"),l("border-bottom-color"),l("border-radius"),l("border-top-left-radius"),l("border-bottom-left-radius"),l("border-top-right-radius"),l("border-bottom-right-radius"),l("border-width"),l("border-left-width"),l("border-right-width"),l("border-top-width"),l("border-bottom-width"),l("color"),l("opacity"),l("display"),l("overflow"),l("height"),l("width"),l("max-width"),l("min-width"),l("max-height"),l("min-height"),l("padding"),l("padding-left"),l("padding-right"),l("padding-top"),l("padding-bottom"),l("margin"),l("margin-left"),l("margin-right"),l("margin-top"),l("margin-bottom"),l("white-space"),l("letter-spacing"),l("text-align"),l("line-height"),l("text-overflow"),l("font-size"),l("font-weight"),l("flex"),l("flex-grow"),l("flex-shrink"),l("flex-basis"),l("flex-direction"),l("flex-wrap"),l("align-items"),l("align-self"),l("align-content"),l("justify-content"),l("background"),l("border-color"),l("font-family"),l("font-style"),l("transform"),l("animation"),l("animation-name"),l("animation-duration"),l("animation-timing-function"),l("animation-delay"),l("animation-iteration-count"),l("animation-direction"),l("animation-fill-mode"),l("animation-play-state"),l("line-spacing"),l("border-style"),l("order"),l("box-shadow"),l("transform-origin"),l("linear-orientation"),l("linear-weight-sum"),l("linear-weight"),l("linear-gravity"),l("linear-layout-gravity"),l("layout-animation-create-duration"),l("layout-animation-create-timing-function"),l("layout-animation-create-delay"),l("layout-animation-create-property"),l("layout-animation-delete-duration"),l("layout-animation-delete-timing-function"),l("layout-animation-delete-delay"),l("layout-animation-delete-property"),l("layout-animation-update-duration"),l("layout-animation-update-timing-function"),l("layout-animation-update-delay"),l("adapt-font-size"),l("aspect-ratio"),l("text-decoration"),l("text-shadow"),l("background-image"),l("background-position"),l("background-origin"),l("background-repeat"),l("background-size"),l("border"),l("visibility"),l("border-right"),l("border-left"),l("border-top"),l("border-bottom"),l("transition"),l("transition-property"),l("transition-duration"),l("transition-delay"),l("transition-timing-function"),l("content"),l("border-left-style"),l("border-right-style"),l("border-top-style"),l("border-bottom-style"),l("implicit-animation"),l("overflow-x"),l("overflow-y"),l("word-break"),l("background-clip"),l("outline"),l("outline-color"),l("outline-style"),l("outline-width"),l("vertical-align"),l("caret-color"),l("direction"),l("relative-id"),l("relative-align-top"),l("relative-align-right"),l("relative-align-bottom"),l("relative-align-left"),l("relative-top-of"),l("relative-right-of"),l("relative-bottom-of"),l("relative-left-of"),l("relative-layout-once"),l("relative-center"),l("enter-transition-name"),l("exit-transition-name"),l("pause-transition-name"),l("resume-transition-name"),l("flex-flow"),l("z-index"),l("text-decoration-color"),l("linear-cross-gravity"),l("margin-inline-start"),l("margin-inline-end"),l("padding-inline-start"),l("padding-inline-end"),l("border-inline-start-color"),l("border-inline-end-color"),l("border-inline-start-width"),l("border-inline-end-width"),l("border-inline-start-style"),l("border-inline-end-style"),l("border-start-start-radius"),l("border-end-start-radius"),l("border-start-end-radius"),l("border-end-end-radius"),l("relative-align-inline-start"),l("relative-align-inline-end"),l("relative-inline-start-of"),l("relative-inline-end-of"),l("inset-inline-start"),l("inset-inline-end"),l("mask-image"),l("grid-template-columns"),l("grid-template-rows"),l("grid-auto-columns"),l("grid-auto-rows"),l("grid-column-span"),l("grid-row-span"),l("grid-column-start"),l("grid-column-end"),l("grid-row-start"),l("grid-row-end"),l("grid-column-gap"),l("grid-row-gap"),l("justify-items"),l("justify-self"),l("grid-auto-flow"),l("filter"),l("list-main-axis-gap"),l("list-cross-axis-gap"),l("linear-direction"),l("perspective"),l("cursor"),l("text-indent"),l("clip-path"),l("text-stroke"),l("text-stroke-width"),l("text-stroke-color"),l("-x-auto-font-size"),l("-x-auto-font-size-preset-sizes"),l("mask"),l("mask-repeat"),l("mask-position"),l("mask-clip"),l("mask-origin"),l("mask-size"),l("gap"),l("column-gap"),l("row-gap"),l("image-rendering"),l("hyphens"),l("-x-app-region"),l("-x-animation-color-interpolation"),l("-x-handle-color"),l("-x-handle-size"),l("offset-path"),l("offset-distance")},5529(e,t,r){r.a(e,async function(e,n){try{r.d(t,{Q:()=>i.Q,x:()=>i.x});var i=r(2965),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},3063(e,t,r){r.d(t,{X:()=>a});var n=r(4234);function i(e){let t={};for(let r in e){let n=e[r];("boolean"==typeof n||"number"==typeof n||"string"==typeof n||null===n)&&(t[r]=n)}return t}function a(e,t){let r=e.target,a=e.currentTarget.getAttribute?e.currentTarget:void 0,o=e.type,l={},s=e.isTrusted,u={},d=e.detail??{};if(o.match(/^transition/))Object.assign(l,{animation_type:"keyframe-animation",animation_name:e.propertyName,new_animator:!0});else if(o.match(/animation/))Object.assign(l,{animation_type:"keyframe-animation",animation_name:e.animationName,new_animator:!0});else if(o.startsWith("touch")){let t=[...e.touches],r=[...e.targetTouches],n=[...e.changedTouches];Object.assign(u,{touches:s?t.map(i):t,targetTouches:s?r.map(i):r,changedTouches:s?n.map(i):n})}else o.startsWith("mouse")?Object.assign(u,{button:e.button,buttons:e.buttons,x:e.x,y:e.y,pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY}):"click"===o&&(d={x:e.x,y:e.y});let c=a?.getAttribute(n.C6),p=c?JSON.parse(decodeURIComponent(c)):{},f=r.getAttribute(n.C6),m=f?JSON.parse(decodeURIComponent(f)):{};return{type:t,timestamp:e.timeStamp,target:{id:r.getAttribute("id"),dataset:m,uniqueId:Number(r.getAttribute(n.SP))},currentTarget:a?{id:a.getAttribute("id"),dataset:p,uniqueId:Number(a.getAttribute(n.SP))}:null,detail:d,params:l,...u}}},1883(e,t,r){r.d(t,{b:()=>a});var n=r(4234),i=r(3063);function a(e,t){let r=!0,a=[],o=[],l=null,s=new Map;function u(e){let r=(0,i.X)(e,e.type);r.detail["unique-id"]=parseFloat(e.target.getAttribute(n.SP));let u=r.detail.exposureID;"exposure"===e.type?(a.push(r),s.set(u,r)):(o.push(r),s.delete(u)),l||(l=setTimeout(()=>{if(a.length>0||o.length>0){let e=a,r=o;a=[],o=[],t({exposures:e,disExposures:r})}l=null},50))}return e.addEventListener("exposure",u,{passive:!0}),e.addEventListener("disexposure",u,{passive:!0}),{switchExposureService:function(e,n){e&&!r?t({exposures:[...s.values()],disExposures:[]}):!e&&r&&n&&t({exposures:[],disExposures:[...s.values()]}),r=e}}}},4320(e,t,r){r.d(t,{y:()=>n});function n(e,t,r){let n=e.split(" ").filter(e=>e),i=[],a=t[r??"0"];if(a)for(let e of n){let t=a[e];t&&i.push(...t)}else console.warn(`[lynx-web] cannot find styleinfo for cssid ${r}`);return i.map(([e,t])=>`${e}:${t};`).join("")}},3293(e,t,r){r.a(e,async function(e,n){try{r.d(t,{c6:()=>p});var i=r(4234),a=r(2965),o=r(4320),l=e([a]);function s(e,t){let r=function(e){let t=[],r=new Map;for(let[t,n]of Object.entries(e))for(let e of(r.has(t)||r.set(t,0),n.imports??[])){let t=r.get(e)??0;r.set(e,t+1)}for(let[e,n]of r.entries())0===n&&t.push(e);let n=[];for(;t.length>0;){let i=t.shift();n.push(i);let a=e[i]?.imports;if(a)for(let e of a){let n=r.get(e)-1;r.set(e,n),0===n&&t.push(e)}}return n}(e),n=function(e,t){let r=new Map;for(let n of t){let t=e[n]?.imports;if(t){let e=r.get(n)??new Set([n]);for(let i of t){let t=r.get(i)??new Set([i]);t.add(n),r.set(i,e.union(t))}r.set(n,e)}}return r}(e,r);return r.reverse(),r.map(r=>{let i=e[r];return i?{content:t?i.content?[...i.content]:[]:i.content??[],rules:t?i.rules?i.rules.map(e=>({sel:e.sel.map(e=>e.map(e=>e.slice())),decl:e.decl.map(([e,t])=>[e,t])})):[]:i.rules??[],importBy:Array.from(n.get(r)??[r])}:{content:[],rules:[],importBy:[r]}})}function u(e){for(let t of e)for(let e of t.rules){let{sel:r,decl:n}=e,{transformedStyle:i,childStyle:o}=(0,a.x)(n);e.decl=i,o.length>0&&t.rules.push({sel:r.map(e=>e.toSpliced(-2,1,[">"],["*"],[],[],[])),decl:o})}}function d(e,t,r){let n=[];for(let a of e){let e=a.rules.map(e=>{let{sel:n,decl:o}=e,l=a.importBy.map(e=>{let a=function(e){let n;return n=t.enableRemoveCSSScope?`[${i.Gq}]`:`[${i.js}="${e}"]`,n=r?`${n}[${i.Pb}=${JSON.stringify(r)}]`:`${n}:not([${i.Pb}])`}(e);return n.map(e=>e.toSpliced(-4,0,[a]).flat().join("")).join(",")}).join(","),s=o.map(([e,t])=>`${e}:${t};`).join("");return`${l}{${s}}`}).join("");n.push(...a.content,e)}return n.join("\n")}function c(e){let t={};for(let r of e)r.rules=r.rules.filter(e=>(e.sel=e.sel.filter(n=>{let[i,a,o,l]=n;if(1===i.length&&"."===i[0][0]&&0===a.length&&0===o.length&&0===l.length){let n=i[0].substring(1);for(let i of r.importBy){t[i]||(t[i]={});let r=t[i][n];r?r.push(...e.decl):t[i][n]=e.decl}return!1}return!0}),e.sel.length>0));return t}function p(e,t,r,n,a,l){let p,f=a?.lynxUniqueIdToStyleRulesIndex??[],m=s(e,!!l);u(m);let g=t.enableCSSSelector?{}:c(m),b={};return a?.cardStyleElement?p=a.cardStyleElement:((p=n.createElement("style")).textContent=d(m,t,void 0),r.appendChild(p)),{updateCssOGStyle:(e,t,r,n)=>{let a=p.sheet,l=n&&b[n]?b[n]:g,s=(0,o.y)(t,l,r);if(void 0!==f[e])a.cssRules[f[e]].style.cssText=s;else{let t=a.insertRule(`[${i.SP}="${e}"]{${s}}`,a.cssRules.length);f[e]=t}},updateLazyComponentStyle:(e,r)=>{let n=s(e,!!l);u(n),t.enableCSSSelector||(b[r]=c(n));let i=d(n,t,r);p.textContent+=i}}}a=(l.then?(await l)():l)[0],n()}catch(e){n(e)}})},2965(e,t,r){r.a(e,async function(e,n){try{r.d(t,{Q:()=>o,x:()=>l});var i=r(4433),a=e([i]);function o(e){return i.v.transform_raw_u16_inline_style_ptr(e)??e}function l(e){let t=[],r=[];for(let[n,a]of e){let e=i.v.transform_raw_u16_inline_style_ptr_parsed(n,a);if(e){let[n,i]=e;r=r.concat(n),i&&(t=t.concat(i))}else r.push([n,a])}return{childStyle:t,transformedStyle:r}}i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},4433(e,t,r){r.a(e,async function(e,n){try{let e;r.d(t,{v:()=>e});var i=r(480);async function a(){let[t,n]=await Promise.all([(0,i.rO)(),(0,i.oR)()]);e=t&&n?await Promise.resolve().then(r.bind(r,5512)):await r.e("8").then(r.bind(r,9850))}await a(),n()}catch(e){n(e)}},1)},5512(e,t,r){r.a(e,async function(e,n){try{r.r(t),r.d(t,{transform_raw_u16_inline_style_ptr:()=>i.a,transform_raw_u16_inline_style_ptr_parsed:()=>i.i});var i=r(3095),a=e([i]);i=(a.then?(await a)():a)[0],n()}catch(e){n(e)}})},480(e,t,r){r.d(t,{oR:()=>i,rO:()=>n});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])),i=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]))},1009(e,t,r){var n=r(3209);e.exports=r.v(t,e.id,"382885261fffaf0c",{"./standard_bg.js":{__wbg_new_3eb36ae241fe6f44:n.oF,__wbg_push_8ffdcb2063340ba5:n.Yy,__wbg___wbindgen_throw_be289d5034ed271b:n.rm,__wbindgen_init_externref_table:n.bL,__wbindgen_cast_0000000000000001:n.NR}})}}]);
@@ -1,9 +1,9 @@
1
- (()=>{"use strict";var e,t,n,i,l,a,s,r,o,d,c,h,u={7357(){},5767(){},970(){},4234(e,t,n){n.d(t,{Yx:()=>ev.Y,Ke:()=>E,g:()=>D,mB:()=>K,SP:()=>"l-uid",er:()=>a,Gq:()=>r,pT:()=>W,im:()=>g,js:()=>i,HO:()=>en,gj:()=>P,jK:()=>B,tl:()=>o,Pb:()=>s,O4:()=>em,c1:()=>m,Uc:()=>eb,F6:()=>z,PC:()=>R,gI:()=>el,C6:()=>"l-dset",pP:()=>l,Gm:()=>h,pd:()=>y,Wx:()=>eu,hO:()=>T,eZ:()=>_,JW:()=>S,E_:()=>k,M$:()=>es,gx:()=>V,tf:()=>ea,iH:()=>A,Fw:()=>H,JA:()=>d,qz:()=>er,Sy:()=>$,oZ:()=>"l-part",Hf:()=>x,o2:()=>I,$4:()=>b,hh:()=>O,ZU:()=>N,F0:()=>et,vr:()=>U,Ve:()=>C,Is:()=>X,zk:()=>M,I7:()=>u,vQ:()=>v,yn:()=>Y,k3:()=>G,vn:()=>q,WS:()=>Z,BE:()=>J,y:()=>c,a$:()=>L,PM:()=>j,VK:()=>F,nk:()=>Q,hv:()=>ei,OE:()=>p,Zu:()=>w,o3:()=>ee});let i="l-css-id",l="l-comp-id",a="l-p-comp-uid",s="l-e-name",r="lynx-tag",o="l-comp-cfg",d="l-disposed",c="l-template",h="lynx-default-display-linear",u="__lynx_timing_flag",m={platform:"web",lynxSdkVersion:"3.0"},p=[` [lynx-default-display-linear="false"] * {
1
+ (()=>{"use strict";var e,t,n,i,l,a,s,r,o,d,c,h,u={2990(){},3692(){},9374(){},4234(e,t,n){n.d(t,{Yx:()=>ev.Y,Ke:()=>E,g:()=>D,mB:()=>K,SP:()=>"l-uid",er:()=>a,Gq:()=>r,pT:()=>W,im:()=>g,js:()=>i,HO:()=>en,gj:()=>P,jK:()=>B,tl:()=>o,Pb:()=>s,O4:()=>em,c1:()=>m,Uc:()=>eb,F6:()=>z,PC:()=>R,gI:()=>el,C6:()=>"l-dset",pP:()=>l,Gm:()=>h,pd:()=>y,Wx:()=>eu,hO:()=>T,eZ:()=>_,JW:()=>S,E_:()=>k,M$:()=>es,gx:()=>V,tf:()=>ea,iH:()=>A,Fw:()=>H,JA:()=>d,qz:()=>er,Sy:()=>$,oZ:()=>"l-part",Hf:()=>x,o2:()=>I,$4:()=>b,hh:()=>O,ZU:()=>N,F0:()=>et,vr:()=>U,Ve:()=>C,Is:()=>X,zk:()=>M,I7:()=>u,vQ:()=>v,yn:()=>Y,k3:()=>G,vn:()=>q,WS:()=>Z,BE:()=>J,y:()=>c,a$:()=>L,PM:()=>j,VK:()=>F,nk:()=>Q,hv:()=>ei,OE:()=>p,Zu:()=>w,o3:()=>ee});let i="l-css-id",l="l-comp-id",a="l-p-comp-uid",s="l-e-name",r="lynx-tag",o="l-comp-cfg",d="l-disposed",c="l-template",h="lynx-default-display-linear",u="__lynx_timing_flag",m={platform:"web",lynxSdkVersion:"3.0"},p=[` [lynx-default-display-linear="false"] * {
2
2
  --lynx-display: flex;
3
3
  --lynx-display-toggle: var(--lynx-display-flex);
4
4
  }`,`[lynx-default-overflow-visible="true"] x-view{
5
5
  overflow: visible;
6
- }`],b={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},v={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},g={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function f(e,t,n=!0,i=!1,l){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:i,bufferSize:l}}let y=f("__postExposure",!1,!1),E=f("publicComponentEvent",!1,!1),S=f("publishEvent",!1,!1),w=f("postOffscreenEventEndpoint",!1,!1),_=f("switchExposureServiceEndpoint",!1,!1),x=f("mainThreadStart",!1,!1),C=f("updateData",!1,!0),T=f("sendGlobalEventEndpoint",!1,!1),O=f("dispose",!1,!0),L=f("start",!1,!0),I=f("reportError",!1,!1),k=f("flushElementTree",!1,!0),A=f("callLepusMethod",!1,!0),P=f("multiThreadExposureChangedEndpoint",!1,!1),M=f("__invokeUIMethod",!1,!0),R=f("__setNativeProps",!1,!0),N=f("__getPathInfo",!1,!0),D=f("nativeModulesCall",!1,!0),F=f("napiModulesCall",!1,!0,!0),H=f("getCustomSections",!1,!0),j=f("markTiming",!1,!1),z=f("postTimingFlags",!1,!1),W=f("__triggerComponentEvent",!1,!1),U=f("__selectComponent",!1,!0),V=f("dispatchLynxViewEvent",!1,!1),$=f("dispatchNapiModule",!1,!1),B=f("dispatchCoreContextOnBackground",!1,!1),X=f("dispatchJSContextOnMainThread",!1,!1),q=f("__triggerElementMethod",!1,!1),Y=f("updateGlobalProps",!1,!1),G=f("updateI18nResources",!1,!1),J=f("updateI18nResource",!1,!1),K=f("dispatchI18nResource",!1,!1),Q=f("queryComponent",!1,!0),Z=f("updateBTSTemplateCacheEndpoint",!1,!0),ee=f("loadTemplateMultiThread",!1,!0),et=f("reload",!1,!1);(eo=eu||(eu={}))[eo.ID_SELECTOR=0]="ID_SELECTOR",eo[eo.REF_ID=1]="REF_ID",eo[eo.UNIQUE_ID=2]="UNIQUE_ID",(ed=em||(em={}))[ed.SUCCESS=0]="SUCCESS",ed[ed.UNKNOWN=1]="UNKNOWN",ed[ed.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",ed[ed.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",ed[ed.PARAM_INVALID=4]="PARAM_INVALID",ed[ed.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",ed[ed.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(ec=ep||(ep={}))[ec.UPDATE=0]="UPDATE",ec[ec.RESET=1]="RESET",(eh=eb||(eb={}))[eh.START=0]="START",eh[eh.PLAY=1]="PLAY",eh[eh.PAUSE=2]="PAUSE",eh[eh.CANCEL=3]="CANCEL",eh[eh.FINISH=4]="FINISH";let en=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,ei="i18nResourceMissed";class el{data;constructor(e){this.data=e}setData(e){this.data=e}}class ea extends EventTarget{_config;constructor(e){super(),this._config=e}postMessage(...e){console.error("[lynx-web] postMessage not implemented, args:",...e)}dispatchEvent(e){let{rpc:t,sendEventEndpoint:n}=this._config;return t.invoke(n,[e]),3}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}let es=({timingKey:e,pipelineId:t,timeStamp:n,markTiming:i,cacheMarkTimings:l})=>{l.records.push({timingKey:e,pipelineId:t,timeStamp:n??performance.now()+performance.timeOrigin}),l.timeout||(l.timeout=setTimeout(()=>{i(l.records),l.records=[],l.timeout=null},500))},er=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)};var eo,ed,ec,eh,eu,em,ep,eb,ev=n(6894)},6894(e,t,n){n.d(t,{Y:()=>s});let i=["navigator","postMessage","window"],l=[e=>(e.appType=e.appType??(e.lepusCode.root.startsWith("(function (globDynamicComponentEntry")?"lazy":"card"),e.version=2,e.lepusCode=Object.fromEntries(Object.entries(e.lepusCode).filter(([e,t])=>"string"==typeof t)),e)];async function a(e,t,n,l,a){return Promise.all(Object.entries(e).filter(([e,t])=>"string"==typeof t).map(async([e,s])=>{let r;return[e,await t((r=`${a}/${e.replaceAll("/","_")}.js`,(n?"//# allFunctionsCalledOnLoad":"")+'\n(function() { "use strict"; const '+i.join("=void 0,")+"=void 0;\n"+("card"!==l?"module.exports=\n":"")+s+"\n})()\n//# sourceURL="+r),`${a}-${e.replaceAll("/","_")}.js`)]})).then(Object.fromEntries)}async function s(e,t,n){let i;if(e.version=e.version??1,e.version>2)throw Error("Unsupported template, please upgrade your web-platform dependencies");for(;e.version<2&&(i=l[e.version-1]);)e=i(e);return{...e,lepusCode:await a(e.lepusCode,t,!0,e.appType,n)}}},8687(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(4234),a=e([i]);i=(a.then?(await a)():a)[0];class s extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=s.observedAttributeAsProperties.map(e=>e.toLowerCase());#e;#t=!1;#n;get url(){return this.#n}set url(e){this.#n=e,this.#i()}#l={};get globalProps(){return this.#l}set globalProps(e){"string"==typeof e?this.#l=JSON.parse(e):this.#l=e}#a={};get initData(){return this.#a}set initData(e){"string"==typeof e?this.#a=JSON.parse(e):this.#a=e}#s=[];get initI18nResources(){return this.#s}set initI18nResources(e){"string"==typeof e?this.#s=JSON.parse(e):this.#s=e}updateI18nResources(e,t){this.#e?.updateI18nResources(e,t)}#r={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#r}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#r=JSON.parse(e):this.#r=e}#o=[];#d;get onNativeModulesCall(){return this.#d}set onNativeModulesCall(e){for(let t of(this.#d=e,this.#o))t.resolve(e.apply(void 0,t.args));this.#o=[]}#c={};get nativeModulesMap(){return this.#c}set nativeModulesMap(e){this.#c=e}#h={};get napiModulesMap(){return this.#h}set napiModulesMap(e){this.#h=e}#u;get onNapiModulesCall(){return this.#u}set onNapiModulesCall(e){this.#u=(t,n,i,l)=>e(t,n,i,this,l)}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#e?.updateData(e,t,n)}updateGlobalProps(e){this.#e?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#e?.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#i()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#n=n;break;case"global-props":this.#l=JSON.parse(n);break;case"init-data":this.#a=JSON.parse(n)}}get threadStrategy(){return this.getAttribute("thread-strategy")}set threadStrategy(e){e?this.setAttribute("thread-strategy",e):this.removeAttribute("thread-strategy")}get injectHeadLinks(){return"false"!==this.getAttribute("inject-head-links")}set injectHeadLinks(e){e?this.setAttribute("inject-head-links","true"):this.removeAttribute("inject-head-links")}injectStyleRules=[];disconnectedCallback(){this.#e?.dispose(),this.#e=void 0,this.shadowRoot?.querySelector(`[${l.Gq}="page"]`)?.setAttribute(l.JA,""),this.shadowRoot&&(this.shadowRoot.innerHTML="")}customTemplateLoader;#m=!1;#i(){!this.#m&&this.#t&&(this.#m=!0,queueMicrotask(()=>{this.#m=!1;let e=this.getAttribute("ssr");if(this.#e&&this.disconnectedCallback(),this.#n){let t={page:"div",view:"x-view",text:"x-text",image:"x-image",list:"x-list",svg:"x-svg",input:"x-input","x-input-ng":"x-input",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let n=this.lynxGroupId,a=this.threadStrategy??"all-on-ui";"multi-thread"===a&&console.warn('[LynxView] multi-thread strategy is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.');let s=(0,i.P)({threadStrategy:a,tagMap:t,shadowRoot:this.shadowRoot,templateUrl:this.#n,globalProps:this.#l,initData:this.#a,nativeModulesMap:this.#c,napiModulesMap:this.#h,lynxGroupId:n,initI18nResources:this.#s,callbacks:{nativeModulesCall:(...e)=>this.onNativeModulesCall?this.onNativeModulesCall(...e):new Promise(t=>{this.#o.push({args:e,resolve:t})}),napiModulesCall:(...e)=>this.onNapiModulesCall?.(...e),onError:(e,t,n)=>{this.dispatchEvent(new CustomEvent("error",{detail:{sourceMap:{offset:{line:2,col:0}},error:e,release:t,fileName:n}}))},customTemplateLoader:this.customTemplateLoader,reload:()=>{this.reload()}},ssr:e?JSON.parse(decodeURI(e)):void 0});if(this.#e=s,!e){let e=document.createElement("style");this.shadowRoot.append(e);let t=e.sheet;for(let e of l.OE)t.insertRule(e);for(let e of this.injectStyleRules)t.insertRule(e);"false"!==this.getAttribute("inject-head-links")&&document.head.querySelectorAll('link[rel="stylesheet"]').forEach(e=>{let n=e.href;t.insertRule(`@import url("${n}");`)})}}}))}connectedCallback(){this.#t=!0,this.#i()}}customElements.get(s.tag)?console.warn(`[${s.tag}] has already been defined`):customElements.define(s.tag,s),t()}catch(e){t(e)}})},3379(e,t,n){n.a(e,async function(e,i){try{n.d(t,{P:()=>s});var l=n(7826),a=e([l]);l=(a.then?(await a)():a)[0];let r=window.devicePixelRatio,o=document.documentElement.clientWidth*r,d=document.documentElement.clientHeight*r;function s(e){let{shadowRoot:t,callbacks:n,templateUrl:i,globalProps:a,initData:s,nativeModulesMap:r,napiModulesMap:c,tagMap:h,lynxGroupId:u,threadStrategy:m="multi-thread",initI18nResources:p,ssr:b}=e;return(0,l.$)(i,{tagMap:h,initData:s,globalProps:a,nativeModulesMap:r,napiModulesMap:c,browserConfig:{pixelRatio:window.devicePixelRatio,pixelWidth:o,pixelHeight:d},initI18nResources:p},t,u,m,n,b)}i()}catch(e){i(e)}})},3493(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(8687),a=e([i,l]);[i,l]=a.then?(await a)():a,t()}catch(e){t(e)}})},5969(e,t,n){n.d(t,{C:()=>r});var i=n(4234);class l{port;name;incId=0;#p=[];#b={};#v=new TextEncoder;#g=new TextDecoder;#f=new Map;constructor(e,t){this.port=e,this.name=t,e&&(e.onmessage=e=>this.#y(e.data))}setMessagePort(e){if(this.port)throw Error("Rpc port already set");for(let t of(this.port=e,this.#p))this.postMessage(t.message,t.detail);this.#p=[],e.onmessage=e=>this.#y(e.data)}postMessage(e,t){this.port?this.port.postMessage(e,t):this.#p.push({message:e,detail:t})}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#y=async e=>{let t=this.#f.get(e.name);if(t){let n=e.sync?new Int32Array(e.lock):void 0,i=!e.sync&&e.retId?l.createRetEndpoint(e.retId):void 0;try{let l=await t(...e.data),a,s=[];if(e.sync?a=l:e.hasTransfer?{data:a,transfer:s}=l||{}:a=l,e.sync){if(e.buf){let t=JSON.stringify(a),n=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),l=new Uint8Array(e.buf.byteLength-4),{written:s}=this.#v.encodeInto(t,l);n[0]=s,i.set(l,0)}Atomics.store(n,0,1),Atomics.notify(n,0)}else e.retId&&this.invoke(i,[a,!1],s||[])}catch(t){console.error(t),e.sync?(Atomics.store(n,0,2),Atomics.notify(n,0),n[1]=2):this.invoke(i,[void 0,!0])}}else{let t=this.#b[e.name];t?t.push(e):this.#b[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#f.set(e.name,t);let n=this.#b[e.name];if(n?.length)for(let t of(this.#b[e.name]=void 0,n))this.#y(t)}registerHandlerRef(e,t,n){this.registerHandler(e,(...e)=>t[n]?.call(t,...e))}registerHandlerLazy(e,t,n){if(t[n])this.registerHandlerRef(e,t,n);else{let i,l=this;Object.defineProperty(t,n,{get:()=>i,set(a){i=a,a&&l.registerHandlerRef(e,t,n)}})}}removeHandler(e){this.#f.delete(e.name)}invoke(e,t,n=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,l=new SharedArrayBuffer(4),a=new Int32Array(l);a[0]=0;let s={name:e.name,data:t,sync:!0,lock:l,buf:i};if(this.postMessage(s,{transfer:n}),Atomics.wait(a,0,0),2===a[0])throw null;if(!i)return;{let e=new Uint32Array(i,0,4)[0],t=new Uint8Array(i,4,e),n=new Uint8Array(e);return n.set(t,0),n?JSON.parse(this.#g.decode(n)):void 0}}if(e.hasReturn){let i,a,s;i=new Promise((e,t)=>{a=e,s=t});let r=l.createRetEndpoint(this.nextRetId);this.registerHandler(r,(e,t)=>{t&&s(),a(e)});let o={name:e.name,data:t,sync:!1,retId:r?.name,hasTransfer:e.hasReturnTransfer};return this.postMessage(o,{transfer:n}),i}{let i={name:e.name,data:t,sync:!1};this.postMessage(i,{transfer:n})}}createCallbackify(e,t){let n=this.createCall(e);return(...e)=>{let i=e.at(t);e.splice(t,1),n(...e).then(i)}}}let a=[],s=[];function r(e,t,n){var r,d,c;let h,u,m,p,b,v,g,f,y,E=(r=e,d=(y=t?{mainThreadRpc:new l((h=new MessageChannel).port1,"main-to-bg"),channelMainThreadWithBackground:h}:(u=new MessageChannel,m=new MessageChannel,p=o("lynx-main"),b={mode:"main",toUIThread:u.port2,toPeerThread:m.port1},p.postMessage(b,[u.port2,m.port1]),{mainThreadRpc:new l(u.port1,"ui-to-main"),mainThreadWorker:p,channelMainThreadWithBackground:m})).channelMainThreadWithBackground,c=n,g=new MessageChannel,r?(v=s[r]??o("lynx-bg"),s[r]=v):v=o("lynx-bg"),f={mode:"background",toUIThread:g.port2,toPeerThread:d.port2,systemInfo:{...i.c1,...c}},v.postMessage(f,[g.port2,d.port2]),{backgroundRpc:new l(g.port1,"ui-to-bg"),backgroundThreadWorker:v});return void 0!==e&&(a[e]?a[e]++:a[e]=1),{mainThreadRpc:y.mainThreadRpc,backgroundRpc:E.backgroundRpc,terminateWorkers:()=>{y.mainThreadWorker?.terminate(),void 0===e?E.backgroundThreadWorker.terminate():1===a[e]?(E.backgroundThreadWorker.terminate(),a[e]=0,s[e]=void 0):"number"==typeof a[e]&&a[e]>1&&a[e]--}}}function o(e){return new Worker(new URL(n.p+n.u("524"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},768(e,t,n){n.a(e,async function(e,i){try{n.d(t,{z:()=>o});var l=n(4234),a=n(6621),s=n(2244);let e=document.querySelector("script[nonce]"),d=e?.nonce||e?.getAttribute("nonce")||"",{prepareMainThreadAPIs:c}=await n.e("361","high").then(n.bind(n,7637));async function r(e){let t=document.createElement("iframe"),n=new Promise(e=>{let n=i=>{"lynx:mtsready"===i.data&&i.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc=`<!DOCTYPE html><html><head><script nonce="${d}">parent.postMessage("lynx:mtsready","*")</script></head><body style="display:none"></body></html>`,t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await n;let i=t.contentWindow,l=async e=>{let n=t.contentDocument.createElement("script");return n.fetchPriority="high",n.defer=!0,n.async=!1,n.nonce=d,t.contentDocument.head.appendChild(n),new Promise(async(t,l)=>{n.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},n.onerror=t=>l(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},n.src=e})};return{globalWindow:i,loadScript:l,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.nonce=d,e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let l=i?.module?.exports;return i.module={exports:void 0},l}throw Error(`Failed to load script: ${e}`,{cause:n})}}}function o(e,t,n,i,o,d,h){globalThis.module||Object.assign(globalThis,{module:{}});let u=new l.gI,{exposureChangedCallback:m}=(0,s.e)(t),p=r(t),{startMainThread:b,handleUpdatedData:v}=c(e,t,document,p,m,i,o,(e,t,n)=>{d.onError?.(e,n,"lepus.js")},e=>{(0,a.D)(t,l.hv,e)},e=>(u.setData(e),u),n,void 0,!0),g=async e=>{if(h){let n=[],i=t.querySelectorAll(`[${l.SP}]`),a=i.length;for(let e=0;e<a;e++){let t=i[e];n[Number(t.getAttribute(l.SP))]=new WeakRef(t)}let s=t.querySelector("style:nth-of-type(2)"),r=s?.sheet,o=[],d=r?.cssRules.length??0;for(let e=0;e<d;e++){let t=r?.cssRules[e];if(t?.constructor.name==="CSSStyleRule"){let n=parseFloat(t.selectorText.substring(l.SP.length+3));void 0===n||isNaN(n)||(o[n]=e)}}await b(e,{lynxUniqueIdToElement:n,lynxUniqueIdToStyleRulesIndex:o,...h,cardStyleElement:s})}else await b(e)},f=async(e,t)=>v(e,t);return{start:g,updateDataMainThread:f,updateI18nResourcesMainThread:e=>{u.setData(e)}}}i()}catch(e){i(e)}},1)},6865(e,t,n){n.d(t,{k:()=>h});var i=n(4234),l=n(6993);let a={CreateElement:1,SetAttribute:2,RemoveAttribute:3,Append:4,Remove:5,ReplaceWith:6,InsertBefore:7,EnableEvent:8,RemoveChild:9,StyleDeclarationSetProperty:10,StyleDeclarationRemoveProperty:11,SetTextContent:12,sheetInsertRule:13,sheetRuleUpdateCssText:14};function s(){}let r=["detail","keyCode","charCode","elapsedTime","propertyName","pseudoElement","animationName","touches","targetTouches","changedTouches","x","y"],o=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);var d=n(2515),c=n(2244);function h(e,t,n,h){(0,l.m)(e,"lepus.js",h.onError),function(e,t){let{shadowRoot:n}=t,{decodeOperation:l}=function(e){let{shadowRoot:t,onEvent:n}=e,i=new Set,l=[new WeakRef(t)],d=new WeakMap;function c(e){let t=l[e]?.deref();if(t)return t;throw Error(`[lynx-web] cannot find element with uniqueId: ${e}`)}function h(e){if(e.eventPhase!==Event.CAPTURING_PHASE&&e.currentTarget!==t)return;let i=e.target;if(i&&d.has(i)){let t=d.get(i),l=e.type,a={};for(let t of r)t in e&&(a[t]=function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t)return t;if(t[Symbol.iterator])return[...t].map(e);if("object"==typeof t&&!(t instanceof EventTarget)){let n={};for(let i in t)o.has(i)||(n[i]=e(t[i]));return n}}(e[t]));n(l,t,e.bubbles,a)}}return{decodeOperation:function(e){let n;if(0===e.length)return;let r=0,{CreateElement:o,SetAttribute:u,RemoveAttribute:m,Append:p,Remove:b,ReplaceWith:v,InsertBefore:g,EnableEvent:f,RemoveChild:y,StyleDeclarationSetProperty:E,StyleDeclarationRemoveProperty:S,SetTextContent:w,sheetInsertRule:_,sheetRuleUpdateCssText:x}=a;for(;n=e[r++];){let a=e[r++];if(n===o){let t=document.createElement(e[r++]);l[a]=new WeakRef(t),d.set(t,a)}else{let l=c(a);switch(n){case u:{let t=e[r++],n=e[r++];l.setAttribute(t,n)}break;case m:l.removeAttribute(e[r++]);break;case p:{let t=e[r++];for(let n=0;n<t;n++){let t=c(e[r++]);l.appendChild(t)}}break;case b:l.remove();break;case v:{let t=e[r++],n=e.slice(r,r+t).map(e=>c(e));r+=t,l.replaceWith(...n)}break;case g:{let t=c(e[r++]),n=e[r++],i=n?c(n):null;l.insertBefore(t,i)}break;case f:let o=e[r++];l.addEventListener(o,s,{passive:!0}),i.has(o)||(t.addEventListener(o,h,{passive:!0,capture:!0}),i.add(o));break;case y:{let t=c(e[r++]);l.removeChild(t)}break;case E:l.style.setProperty(e[r++],e[r++],e[r++]);break;case S:l.style.removeProperty(e[r++]);break;case w:l.textContent=e[r++];break;case _:{let t=e[r++],n=e[r++];l.sheet.insertRule(n,t)}break;case x:{let t=e[r++];l.sheet.cssRules[t].style.cssText=e[r++]}}}}}}}({shadowRoot:n,onEvent:e.createCall(i.Zu)});e.registerHandler(i.E_,e=>{l(e)})}(e,{shadowRoot:t}),(0,d.c)(e,t),(0,c.g)(e,t),e.registerHandler(i.o3,n);let u=e.createCall(i.Hf);return{start:u,updateDataMainThread:e.createCall(i.Ve),updateI18nResourcesMainThread:e.createCall(i.k3)}}},9791(e,t,n){n.d(t,{i:()=>l});var i=n(4234);function l(e,t){return async()=>{await e.invoke(i.hh,[]),t()}}},2244(e,t,n){function i(e,t,n){if(t){if((t=t.trim()).endsWith("px"))return Number(t.substring(0,t.length-2));if(t.endsWith("%")){let i=Number(t.substring(0,t.length-1)),{width:l,height:a}=e.getBoundingClientRect();return(n?l:a)*i/100}}return 0}n.d(t,{g:()=>r,e:()=>s});var l=n(4234);let a=Symbol.for("lynx-scroll-container-dom");function s(e){let t=new WeakMap,n=new WeakMap,l=new WeakSet,s=(e,t,n)=>{let i=e.getAttribute("exposure-scene")??"",l={exposureID:n,exposureScene:i,"exposure-id":n,"exposure-scene":i},a=new CustomEvent(t?"uiappear":"uidisappear",{bubbles:!1,composed:!1,cancelable:!0,detail:l}),s=new CustomEvent(t?"exposure":"disexposure",{bubbles:!0,composed:!1,cancelable:!1,detail:l});Object.assign(a,l),e.dispatchEvent(a),e.dispatchEvent(s)},r=e=>{e.forEach(({target:e,isIntersecting:t})=>{t&&!l.has(e)?(s(e,!0,e.getAttribute("exposure-id")),l.add(e)):!t&&l.has(e)&&(s(e,!1,e.getAttribute("exposure-id")),l.delete(e))})};return{exposureChangedCallback:o=>{o.forEach(o=>{let d=n.get(o)??null,c=o.getAttribute("exposure-id");null!==d&&s(o,!1,d),n.set(o,c),t.get(o)?.disconnect(),t.delete(o),l.delete(o),null!==o.getAttribute("exposure-id")&&(n=>{let l=parseFloat(n.getAttribute("exposure-area")??"0")/100,s=i(n,n.getAttribute("exposure-screen-margin-top")),o=i(n,n.getAttribute("exposure-screen-margin-right")),d=i(n,n.getAttribute("exposure-screen-margin-bottom")),c=i(n,n.getAttribute("exposure-screen-margin-left")),h=i(n,n.getAttribute("exposure-ui-margin-top")),u=i(n,n.getAttribute("exposure-ui-margin-right")),m=i(n,n.getAttribute("exposure-ui-margin-bottom")),p=i(n,n.getAttribute("exposure-ui-margin-left")),b=n.parentElement;for(;b;)if(b[a]){b=b[a];break}else b=b.parentElement;let v=new IntersectionObserver(r,{rootMargin:`${(m?-1:1)*(s-m)}px ${(p?-1:1)*(o-p)}px ${(h?-1:1)*(d-h)}px ${(u?-1:1)*(c-u)}px`,root:b??e.parentElement,threshold:l});v.observe(n),t.set(n,v)})(o)})}}}function r(e,t){let{exposureChangedCallback:n}=s(t);e.registerHandler(l.gj,e=>{n(e.map(e=>t.querySelector(`[${l.SP}="${e}"]`)).filter(e=>null!==e))})}},4729(e,t,n){n.d(t,{k:()=>i});function i(e){return(t,n,i)=>{e(t,{processorName:n}).then(()=>i?.())}}},2515(e,t,n){n.d(t,{c:()=>a});var i=n(4234),l=n(6621);function a(e,t){e.registerHandler(i.gx,(e,n)=>{(0,l.D)(t,e,n)})}},6993(e,t,n){n.d(t,{m:()=>l});var i=n(4234);function l(e,t,n){e.registerHandler(i.o2,(e,i,l)=>{n?.(e,l,t)})}},9174(e,t,n){n.d(t,{r:()=>o});var i=n(4234);function l(e,t,n,l,a,s,r,o){let d,c=e;if(s){let t=e.querySelector(`[${i.SP}="${s}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for root_unique_id: ${s}`),o?.(i.O4.NODE_NOT_FOUND);return}}else if(l){let t=e.querySelector(`[${i.pP}="${l}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for component_id: ${l}`),o?.(i.O4.NODE_NOT_FOUND);return}}if(t===i.Wx.ID_SELECTOR)d=n;else if(t===i.Wx.UNIQUE_ID)d=`[${i.SP}="${n}"]`;else{console.error(`[lynx-web] NYI: setnativeprops type ${t}`),o?.(i.O4.UNKNOWN);return}if(a){let e=null;try{e=c.querySelector(d)}catch(e){console.error(`[lynx-web] cannot use selector: ${d}`),o?.(i.O4.SELECTOR_NOT_SUPPORTED);return}e?r(e):(console.error(`[lynx-web] cannot find from for selector ${n} under`,c),o?.(i.O4.NODE_NOT_FOUND))}else c.querySelectorAll(d).forEach(e=>{r(e)})}let a={boundingClientRect:e=>{let t=e.getBoundingClientRect();return{id:e.id,width:t.width,height:t.height,left:t.left,right:t.right,top:t.top,bottom:t.bottom}}};var s=n(2515),r=n(6993);function o(e,t,n){var o,d,c;let h,u,m,p,b;h=i.O4.UNKNOWN,e.registerHandler(i.zk,(e,n,s,r,o,d)=>(l(t,e,n,s,!0,d,e=>{try{let t=a[r],n="function"==typeof e[r];t||n?(u=t?t(e,o):e[r](o),h=i.O4.SUCCESS):h=i.O4.METHOD_NOT_FOUND}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),h=i.O4.PARAM_INVALID}},e=>{h=e}),{code:h,data:u})),e.registerHandler(i.PC,(e,n,i,a,s,r)=>{l(t,e,n,i,a,r,e=>{var t=e;for(let e in s){let n=s[e];"text"===e&&t?.tagName==="X-TEXT"&&t.firstElementChild&&"RAW-TEXT"==t.firstElementChild.tagName&&(t=t.firstElementChild),CSS.supports(e,n)&&t.style?t.style.setProperty(e,n):t.setAttribute(e,n)}})}),e.registerHandler(i.pT,(e,n)=>{let l=t.querySelector(`[${i.pP}="${n.componentId}"]`);l?.dispatchEvent(new CustomEvent(e,{...n.eventOption,detail:n.eventDetail}))}),e.registerHandler(i.vr,(e,n,a)=>(l(t,i.Wx.ID_SELECTOR,n,"card"===e?"0":e,a,void 0,e=>{m=e}),[m?.getAttribute(i.pP)??void 0])),o=n.nativeModulesCall,e.registerHandler(i.g,o),d=n.napiModulesCall,p=e.createCall(i.Sy),e.registerHandler(i.VK,(e,t,n)=>d(e,t,n,p)),e.registerHandler(i.ZU,(e,n,a,s,r)=>{let o,d=i.O4.UNKNOWN;return l(t,e,n,a,s,r,e=>{try{let n=[],l=e;for(;l;){let e=l.parentElement,a=e??t,s=Array.from(a.children),r=l.getAttribute(i.Gq),o="page"===r?0:s.indexOf(l),d=l.getAttribute("id")||void 0,c=l.getAttribute("class")||void 0,h=l.getAttribute(i.C6),u=h?JSON.parse(decodeURIComponent(h)):void 0;if(n.push({tag:r,id:d,class:c,dataSet:u,index:o}),"page"===r||l.parentNode===t)break;l=e}o={path:n},d=i.O4.SUCCESS}catch(t){console.error("[lynx-web] getPathInfo: failed with",t,e),d=i.O4.UNKNOWN}},e=>{d=e}),{code:d,data:o}}),(0,s.c)(e,t),b=new Map,e.registerHandler(i.vn,(e,n,l)=>{if("animate"===e)switch(l.operation){case i.Uc.START:b.set(l.id,t.querySelector(n)?.animate(l.keyframes,l.timingOptions));break;case i.Uc.PLAY:b.get(l.id)?.play();break;case i.Uc.PAUSE:b.get(l.id)?.pause();break;case i.Uc.CANCEL:b.get(l.id)?.cancel();break;case i.Uc.FINISH:b.get(l.id)?.finish()}}),(0,r.m)(e,"app-service.js",n.onError),c=n.reload,e.registerHandler(i.F0,c);let v=e.createCall(i.hO);return{sendGlobalEvent:v,markTiming:e.createCall(i.PM),updateI18nResourceBackground:(t,n)=>{let l=t.find(e=>(0,i.HO)(e.options)===(0,i.HO)(n));e.invoke(i.BE,[l?.resource])}}}},7826(e,t,n){n.a(e,async function(e,i){try{n.d(t,{$:()=>m});var l=n(5969),a=n(9791),s=n(4234),r=n(3893),o=n(4729),d=n(9174),c=n(6865),h=n(768),u=e([h]);function m(e,t,n,i,u,m,p){let b=performance.now()+performance.timeOrigin,v="all-on-ui"===u,{mainThreadRpc:g,backgroundRpc:f,terminateWorkers:y}=(0,l.C)(i,v,t.browserConfig),{markTiming:E,sendGlobalEvent:S,updateI18nResourceBackground:w}=(0,d.r)(f,n,m),_={records:[],timeout:null},x=(e,t,n)=>{(0,s.M$)({timingKey:e,pipelineId:t,timeStamp:n,markTiming:E,cacheMarkTimings:_})},C=()=>(0,s.qz)(E,_),T=(0,r._)(m.customTemplateLoader,x),{start:O,updateDataMainThread:L,updateI18nResourcesMainThread:I}=v?(0,h.z)(g,n,T,x,C,m,p):(0,c.k)(g,n,T,m);return x("create_lynx_start",void 0,b),T(e).then(e=>{C(),O({...t,template:e})}),{updateData:(0,o.k)(L),dispose:(0,a.i)(f,y),sendGlobalEvent:S,updateGlobalProps:f.createCall(s.yn),updateI18nResources:(...e)=>{I(e[0]),w(...e)}}}h=(u.then?(await u)():u)[0],i()}catch(e){i(e)}})},6621(e,t,n){n.d(t,{D:()=>i});let i=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0,composed:!0}))}},3893(e,t,n){n.d(t,{_:()=>s});var i=n(4234);let l=new Map;function a(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function s(e,t){return async n=>{t("load_template_start");let s=l.get(n);if(s)return t("load_template_end"),s;{let s=new Promise(async(t,s)=>{try{let l=e?await e(n):await (await fetch(n,{method:"GET"})).json(),s=await (0,i.Yx)(l,a,encodeURIComponent(n));t(s)}catch(e){l.delete(n),s(e)}});return l.set(n,s),t("load_template_end"),s}}}},6033(){var e,t,n,i;let l,a,s,r,o,d,c,h,u,m,p,b,v,g,f,y,E,S,w,_,x,C,T,O,L,I,k,A,P,M,R,N,D,F,H,j,z,W,U,V,$,B,X,q,Y,G,J,K,Q,Z,ee,et,en,ei,el,ea,es,er,eo,ed,ec,eh,eu,em,ep,eb,ev,eg,ef,ey,eE,eS,ew,e_,ex,eC,eT,eO,eL,eI,ek,eA,eP,eM,eR,eN,eD,eF,eH,ej,ez,eW,eU,eV,e$,eB,eX,eq,eY,eG,eJ,eK,eQ,eZ,e0,e1,e2,e4,e3,e8,e6,e7,e9,e5,te,tt,tn,ti,tl,ta,ts,tr,to,td,tc,th,tu,tm,tp,tb,tv,tg,tf,ty,tE,tS,tw,t_,tx,tC,tT,tO,tL,tI,tk,tA,tP,tM,tR,tN,tD,tF,tH,tj,tz,tW,tU,tV,t$,tB,tX,tq,tY,tG,tJ,tK,tQ,tZ,t0,t1,t2,t4,t3,t8,t6,t7,t9,t5,ne,nt,nn,ni,nl,na,ns,nr,no,nd,nc,nh,nu,nm,np,nb,nv,ng,nf,ny,nE,nS,nw,n_,nx,nC,nT,nO,nL,nI,nk,nA,nP,nM,nR,nN,nD,nF,nH,nj,nz,nW,nU,nV,n$,nB,nX,nq,nY,nG,nJ,nK,nQ,nZ,n0,n1,n2,n4,n3,n8,n6,n7,n9,n5,ie,it,ii,il,ia,is,ir,io,id,ic,ih,iu,im,ip,ib,iv,ig,iy,iE,iS,iw,i_,ix,iC,iT,iO,iL,iI,ik,iA,iP,iM,iR,iN,iD,iF,iH,ij,iz,iW,iU,iV,i$,iB,iX,iq,iY,iG,iJ,iK,iQ,iZ,i0,i1,i2,i4,i3,i8,i6,i7,i9,i5,le,lt,ln,li,ll,la,ls,lr,lo,ld,lc,lh,lu,lm,lp,lb,lv,lg,lf,ly,lE,lS,lw,l_,lx,lC,lT,lO,lL,lI,lk,lA,lP,lM,lR,lN,lD,lF,lH,lj,lz,lW,lU,lV,l$,lB,lX,lq,lY,lG,lJ,lK,lQ,lZ,l0,l1,l2,l4,l3,l8,l6,l7,l9,l5,ae,at,an,ai,al,aa,as,ar,ao,ad,ac,ah,au,am,ap,ab,av,ag,af,ay,aE,aS;function aw(e,t,n,i,l,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var r,o=i.kind,d="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?i.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,i.name):{}),u=!1,m=n.length-1;m>=0;m--){var p={};for(var b in i)p[b]="access"===b?{}:i[b];for(var b in i.access)p.access[b]=i.access[b];p.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var v=(0,n[m])("accessor"===o?{get:h.get,set:h.set}:h[d],p);if("accessor"===o){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(r=s(v.get))&&(h.get=r),(r=s(v.set))&&(h.set=r),(r=s(v.init))&&l.unshift(r)}else(r=s(v))&&("field"===o?l.unshift(r):h[d]=r)}c&&Object.defineProperty(c,i.name,h),u=!0}function a_(e,t,n){for(var i=arguments.length>2,l=0;l<t.length;l++)n=i?t[l].call(e,n):t[l].call(e);return i?n:void 0}let ax=[];function aC(){let e=ax;for(let[t,n]of(ax=[],e))n?t.call(n):t()}function aT(e,t){0===ax.length&&queueMicrotask(aC),ax.push([e,t])}function aO(e,t,n,i){let l=!1;return function(a){if(a!==l){let s=e.call(this);a?(aT(()=>s.addEventListener(t,n,i)),l=!0):(aT(()=>s.removeEventListener(t,n)),l=!1)}}}function aL(e,t,n){return function(i){n&&(i=n(i));let l=e.call(this);l.getAttribute(t)!==i&&(null!==i?aT(()=>{l.setAttribute(t,i)}):aT(()=>{l.removeAttribute(t)}))}}function aI(e,t,n,i){return function(l){l?(n&&(l=n(l)),aT(()=>e.call(this).style.setProperty(t,l,i?"important":void 0))):aT(()=>e.call(this).style.removeProperty(t))}}function ak(e,t){let n,i;return()=>(i||(i=e()),i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=i.querySelector(t)),n)}function aA(e,t,n){let i,l=t.filter(e=>!!e);return(t,{addInitializer:a})=>{let s=new Set([...l.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class r extends t{static registerPlugin(e){if(r.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)s.add(t);l.push(e)}static observedAttributes=[...t.observedAttributes??[],...l.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#E=[];constructor(){if(super(),n&&!i&&((i=document.createElement("template")).innerHTML=n,document.body.appendChild(i)),i&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=i.content.cloneNode(!0);e.append(t)}this.#E=l.map(e=>new e(this)),this.#S()}#w=!1;#_=new Map;#x(){!this.#w&&s.size&&(this.#w=!0,aT(this.#C,this))}#C(){let e=getComputedStyle(this);for(let n of s){var t;let i=e.getPropertyValue(n),l=e.getPropertyPriority(n),a=(t=i.trim(),l?t+" !important":t);if(this.#_.get(n)!==a)for(let e of this.#E)e.cssPropertyChangedHandler?.[n]?.call(e,a,n)}this.#w=!1}setAttribute(e,n){"false"!==n.toString()||t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,n):this.removeAttribute(e)}#S(){let e=this.attributes;for(let n=0,i;i=e.item(n);n++)"false"!==i.value||t.notToFilterFalseAttributes?.has(i.name)||i.name.startsWith("data-")||this.removeAttributeNode(i)}#t=!1;attributeChangedCallback(e,n,i){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,n,i),t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===n&&(n=null),"false"===i&&(i=null,this.removeAttribute(e))),n!==i){for(let t of(this.#t&&("class"===e||"style"===e)&&this.#x(),this.#E))if(t.attributeChangedHandler?.[e]){let{handler:l,noDomMeasure:a}=t.attributeChangedHandler[e];a?l.call(t,i,n,e):this.#t&&aT(()=>l.call(t,i,n,e))}}}#T(){this.getAttributeNames().forEach(e=>{for(let t of this.#E)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:i}=t.attributeChangedHandler[e];i||aT(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#E.forEach(e=>{e.connectedCallback?.()}),this.#x(),aT(this.#T,this),this.#t=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#E.forEach(e=>{e.dispose?.()})}#O={};enableEvent(e){this.#O[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let t=this.#O[e];if(0===t.count)for(let t of this.#E){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}t.count++}disableEvent(e){let t=this.#O[e];if(t&&t.count>0&&(t.count--,0===t.count))for(let t of this.#E){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}addEventListener(e,t,n){super.addEventListener(e,t,n),this.enableEvent(e);let i=this.#O[e],l=("object"==typeof n?n.capture:n)?i.captureListenerCount:i.listenerCount,a=l.get(t)??0;l.set(t,a+1)}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let i="object"==typeof n?n.capture:n,l=this.#O[e];if(l&&l.count>0){let n=i?l.captureListenerCount:l.listenerCount;1===n.get(t)&&(n.delete(t),this.disableEvent(e))}}}return a(()=>{customElements.define(e,r)}),r}}function aP(e,t){return function(n,...i){return function(l,a){if("method"===a.kind)a.addInitializer(function(){this[e]??={},this[e][n]=t(l,i)});else if("field"===a.kind)return function(l){return this[e]??={},this[e][n]=t(l,i),l};else throw Error(`[lynx-web-components] decorator type ${a.kind} is not supported`)}}}let aM=aP("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),aR=aP("cssPropertyChangedHandler",e=>e),aN=aP("eventStatusChangedHandler",e=>e);s=[aA("lynx-wrapper",[])],r=[],o=HTMLElement,class extends o{static{a=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;aw(null,l={value:a},s,{kind:"class",name:a.name,metadata:e},null,r),a=l.value,e&&Object.defineProperty(a,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(a,r)}};let aD={bubbles:!1,composed:!1,cancelable:!0},aF=Symbol("layoutChangeTarget"),aH=(d=[],c=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(null,null,[aN("layoutchange")],{kind:"field",name:"__handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"__handleScrollUpperThresholdEventEnabled"in e,get:e=>e.__handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e.__handleScrollUpperThresholdEventEnabled=t}},metadata:e},d,c),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L;constructor(e){a_(this,c),this.#L=e}#I=!1;#k;__handleScrollUpperThresholdEventEnabled=a_(this,d,e=>{e&&this.#L[aF]?!this.#k&&(this.#k=new ResizeObserver(([e])=>{if(e){let t=this.#L.id,{top:n,bottom:i,left:l,right:a,width:s,height:r}=e.target.getBoundingClientRect();this.#L.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:s,height:r,left:l,right:a,top:n,bottom:i,id:t},...aD}))}}),this.#I||(this.#k.observe(this.#L[aF]),this.#I=!0)):(this.#k?.disconnect(),this.#k=void 0,this.#I=!1)});dispose(){this.#k?.disconnect(),this.#k=void 0,this.#I=!1}}),aj=(u=[],m=[],p=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;h=[aM("fading-edge-length",!0)],aw(this,null,[aR("background"),aR("background-color")],{kind:"method",name:"_backgroundColorToVariable",static:!1,private:!1,access:{has:e=>"_backgroundColorToVariable"in e,get:e=>e._backgroundColorToVariable},metadata:e},null,u),aw(null,null,h,{kind:"field",name:"_handleFadingEdgeLength",static:!1,private:!1,access:{has:e=>"_handleFadingEdgeLength"in e,get:e=>e._handleFadingEdgeLength,set:(e,t)=>{e._handleFadingEdgeLength=t}},metadata:e},m,p),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,u);#A=ak(()=>this.#L.shadowRoot,"#top-fade-mask");#P=ak(()=>this.#L.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){a_(this,p),this.#L=e}_handleFadingEdgeLength=a_(this,m,aI(()=>this.#L,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));_backgroundColorToVariable(e){this.#A().style.setProperty("--scroll-view-bg-color",e),this.#P().style.setProperty("--scroll-view-bg-color",e)}connectedCallback(){}dispose(){}}),az=(g=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;b=[aM("scroll-top",!1),aM("scroll-left",!1),aM("initial-scroll-offset",!1)],v=[aM("scroll-to-index",!1),aM("initial-scroll-to-index",!1)],aw(this,null,b,{kind:"method",name:"_handleInitialScrollOffset",static:!1,private:!1,access:{has:e=>"_handleInitialScrollOffset"in e,get:e=>e._handleInitialScrollOffset},metadata:e},null,g),aw(this,null,v,{kind:"method",name:"_handleInitialScrollIndex",static:!1,private:!1,access:{has:e=>"_handleInitialScrollIndex"in e,get:e=>e._handleInitialScrollIndex},metadata:e},null,g),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,g);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#L=e}_handleInitialScrollOffset(e,t,n){if(e){let t=parseFloat(e),i=this.#L.getAttribute("scroll-orientation"),l=this.#L.getAttribute("scroll-y"),a=this.#L.getAttribute("scroll-x"),s=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===l||"true"===l||"vertical"===i||"both"===i),r=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===a||"true"===a||"vertical"===i||"both"===i);requestAnimationFrame(()=>{s&&this.#L.scrollTo(0,t),r&&(this.#L.scrollLeft=t)})}}_handleInitialScrollIndex(e){if(e){let t=parseFloat(e),n=this.#L.children.item(t);if(n&&n instanceof HTMLElement){let e=null!==this.#L.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#L.scrollLeft=n.offsetLeft:this.#L.scrollTop=n.offsetTop})}}}dispose(){}});function aW(e,t,n){let i;return l=>{null!==l?i||(i=new IntersectionObserver(n,{root:e()})).observe(t()):i&&(i.disconnect(),i=void 0)}}let aU="onscrollend"in document,aV=window.navigator.userAgent;aV.includes("Chrome"),/\b(iPad|iPhone|iPod|OS X)\b/.test(aV)&&!/Edge/.test(aV)&&/WebKit/.test(aV)&&window.MSStream;let a$=Symbol.for("lynx-scroll-container-dom"),aB=(x=[],C=[],T=[],O=[],L=[],I=[],k=[],A=[],P=[],M=[],R=[],N=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;f=[aN("scrolltoupper")],y=[aN("scrolltolower")],E=[aM("upper-threshold",!0)],S=[aM("lower-threshold",!0)],w=[aN("lynxscroll")],_=[aN("lynxscrollend")],aw(null,null,f,{kind:"field",name:"_handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollUpperThresholdEventEnabled"in e,get:e=>e._handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e._handleScrollUpperThresholdEventEnabled=t}},metadata:e},x,C),aw(null,null,y,{kind:"field",name:"_handleScrollLowerThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollLowerThresholdEventEnabled"in e,get:e=>e._handleScrollLowerThresholdEventEnabled,set:(e,t)=>{e._handleScrollLowerThresholdEventEnabled=t}},metadata:e},T,O),aw(null,null,E,{kind:"field",name:"_updateUpperThreshold",static:!1,private:!1,access:{has:e=>"_updateUpperThreshold"in e,get:e=>e._updateUpperThreshold,set:(e,t)=>{e._updateUpperThreshold=t}},metadata:e},L,I),aw(null,null,S,{kind:"field",name:"_updateLowerThreshold",static:!1,private:!1,access:{has:e=>"_updateLowerThreshold"in e,get:e=>e._updateLowerThreshold,set:(e,t)=>{e._updateLowerThreshold=t}},metadata:e},k,A),aw(null,null,w,{kind:"field",name:"_handleScrollEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEventEnabled"in e,get:e=>e._handleScrollEventEnabled,set:(e,t)=>{e._handleScrollEventEnabled=t}},metadata:e},P,M),aw(null,null,_,{kind:"field",name:"_handleScrollEndEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEndEventEnabled"in e,get:e=>e._handleScrollEndEventEnabled,set:(e,t)=>{e._handleScrollEndEventEnabled=t}},metadata:e},R,N),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L;#M;#R=0;#N=0;constructor(e){a_(this,N),this.#L=e}#D=()=>this.#L;#F=ak(()=>this.#L.shadowRoot,"#upper-threshold-observer");#H=ak(()=>this.#L.shadowRoot,"#lower-threshold-observer");#j=e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...aD,detail:this.#z()})):"lower-threshold-observer"===i&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...aD,detail:this.#z()})))};static observedAttributes=["upper-threshold","lower-threshold"];_handleScrollUpperThresholdEventEnabled=a_(this,x,e=>{e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#W(e)});#W=(a_(this,C),aW(this.#D,this.#F,this.#j));_handleScrollLowerThresholdEventEnabled=a_(this,T,e=>{e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),this.#U(e)});#U=(a_(this,O),aW(this.#D,this.#H,this.#j));_updateUpperThreshold=a_(this,L,aI(this.#F,"flex-basis",e=>`${parseInt(e)}px`));_updateLowerThreshold=(a_(this,I),a_(this,k,aI(this.#H,"flex-basis",e=>`${parseInt(e)}px`)));#z(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i}=this.#D();0===e&&(e-=this.#L.scrollHeight/2-this.#L.scrollTop),0===t&&(t-=this.#L.scrollWidth/2-this.#L.scrollLeft);let l={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i,isDragging:!1,deltaX:t-this.#R,deltaY:e-this.#N};return this.#R=t,this.#N=e,l}#V=(a_(this,A),()=>{this.#$&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...aD,detail:this.#z()}))});#B=()=>{this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aD,detail:this.#z()}))};#X=!1;_handleScrollEventEnabled=a_(this,P,e=>{this.#X=e,this.#q()});#$=(a_(this,M),!1);_handleScrollEndEventEnabled=a_(this,R,e=>{this.#$=e,this.#q()});#q(){this.#X||this.#$?(this.#D().addEventListener("scroll",this.#V),this.#D().addEventListener("scrollend",this.#B),this.#L.addEventListener("scroll",this.#V),this.#L.addEventListener("scrollend",this.#B),this.#R=0,this.#N=0):(this.#L.removeEventListener("scroll",this.#V),this.#L.removeEventListener("scrollend",this.#B))}connectedCallback(){}dispose(){}});class aX{static eventName="__scrollIntoView";static observedAttributes=[];#L;#Y=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],i=this.#L;for(let e of t){if(e===i)break;n.push(e)}let l=this.#L.getAttribute("scroll-orientation"),a=null!==this.#L.getAttribute("scroll-x")||"both"===l||"horizontal"===l,s=null!==this.#L.getAttribute("scroll-y")||"both"===l||"vertical"===l,r=0,o=0;for(let{offsetTop:e,offsetLeft:t}of n)a&&(o+=t),s&&(r+=e);if(a)switch(e.detail.inline){case"center":o+=(e.target.clientWidth-this.#L.clientWidth)/2;break;case"end":o+=e.target.clientWidth-this.#L.clientWidth}if(s)switch(e.detail.block){case"center":r+=(e.target.clientHeight-this.#L.clientHeight)/2;break;case"end":r+=e.target.clientHeight-this.#L.clientHeight}i.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:o,top:r})};constructor(e){this.#L=e,this.#L.addEventListener(aX.eventName,this.#Y,{passive:!1})}dispose(){this.#L.removeEventListener(aX.eventName,this.#Y)}}let aq=`<style>
6
+ }`],b={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},v={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},g={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function f(e,t,n=!0,i=!1,l){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:i,bufferSize:l}}let y=f("__postExposure",!1,!1),E=f("publicComponentEvent",!1,!1),S=f("publishEvent",!1,!1),w=f("postOffscreenEventEndpoint",!1,!1),_=f("switchExposureServiceEndpoint",!1,!1),x=f("mainThreadStart",!1,!1),C=f("updateData",!1,!0),T=f("sendGlobalEventEndpoint",!1,!1),O=f("dispose",!1,!0),L=f("start",!1,!0),I=f("reportError",!1,!1),k=f("flushElementTree",!1,!0),A=f("callLepusMethod",!1,!0),P=f("multiThreadExposureChangedEndpoint",!1,!1),M=f("__invokeUIMethod",!1,!0),R=f("__setNativeProps",!1,!0),N=f("__getPathInfo",!1,!0),D=f("nativeModulesCall",!1,!0),F=f("napiModulesCall",!1,!0,!0),H=f("getCustomSections",!1,!0),j=f("markTiming",!1,!1),z=f("postTimingFlags",!1,!1),W=f("__triggerComponentEvent",!1,!1),U=f("__selectComponent",!1,!0),V=f("dispatchLynxViewEvent",!1,!1),$=f("dispatchNapiModule",!1,!1),B=f("dispatchCoreContextOnBackground",!1,!1),X=f("dispatchJSContextOnMainThread",!1,!1),q=f("__triggerElementMethod",!1,!1),Y=f("updateGlobalProps",!1,!1),G=f("updateI18nResources",!1,!1),J=f("updateI18nResource",!1,!1),K=f("dispatchI18nResource",!1,!1),Q=f("queryComponent",!1,!0),Z=f("updateBTSTemplateCacheEndpoint",!1,!0),ee=f("loadTemplateMultiThread",!1,!0),et=f("reload",!1,!1);(eo=eu||(eu={}))[eo.ID_SELECTOR=0]="ID_SELECTOR",eo[eo.REF_ID=1]="REF_ID",eo[eo.UNIQUE_ID=2]="UNIQUE_ID",(ed=em||(em={}))[ed.SUCCESS=0]="SUCCESS",ed[ed.UNKNOWN=1]="UNKNOWN",ed[ed.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",ed[ed.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",ed[ed.PARAM_INVALID=4]="PARAM_INVALID",ed[ed.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",ed[ed.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(ec=ep||(ep={}))[ec.UPDATE=0]="UPDATE",ec[ec.RESET=1]="RESET",(eh=eb||(eb={}))[eh.START=0]="START",eh[eh.PLAY=1]="PLAY",eh[eh.PAUSE=2]="PAUSE",eh[eh.CANCEL=3]="CANCEL",eh[eh.FINISH=4]="FINISH";let en=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,ei="i18nResourceMissed";class el{data;constructor(e){this.data=e}setData(e){this.data=e}}class ea extends EventTarget{_config;constructor(e){super(),this._config=e}postMessage(...e){console.error("[lynx-web] postMessage not implemented, args:",...e)}dispatchEvent(e){let{rpc:t,sendEventEndpoint:n}=this._config;return t.invoke(n,[e]),3}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}let es=({timingKey:e,pipelineId:t,timeStamp:n,markTiming:i,cacheMarkTimings:l})=>{l.records.push({timingKey:e,pipelineId:t,timeStamp:n??performance.now()+performance.timeOrigin}),l.timeout||(l.timeout=setTimeout(()=>{i(l.records),l.records=[],l.timeout=null},500))},er=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)};var eo,ed,ec,eh,eu,em,ep,eb,ev=n(6894)},6894(e,t,n){n.d(t,{Y:()=>s});let i=["navigator","postMessage","window"],l=[e=>(e.appType=e.appType??(e.lepusCode.root.startsWith("(function (globDynamicComponentEntry")?"lazy":"card"),e.version=2,e.lepusCode=Object.fromEntries(Object.entries(e.lepusCode).filter(([e,t])=>"string"==typeof t)),e)];async function a(e,t,n,l,a){return Promise.all(Object.entries(e).filter(([e,t])=>"string"==typeof t).map(async([e,s])=>{let r;return[e,await t((r=`${a}/${e.replaceAll("/","_")}.js`,(n?"//# allFunctionsCalledOnLoad":"")+'\n(function() { "use strict"; const '+i.join("=void 0,")+"=void 0;\n"+("card"!==l?"module.exports=\n":"")+s+"\n})()\n//# sourceURL="+r),`${a}-${e.replaceAll("/","_")}.js`)]})).then(Object.fromEntries)}async function s(e,t,n){let i;if(e.version=e.version??1,e.version>2)throw Error("Unsupported template, please upgrade your web-platform dependencies");for(;e.version<2&&(i=l[e.version-1]);)e=i(e);return{...e,lepusCode:await a(e.lepusCode,t,!0,e.appType,n)}}},8687(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(4234),a=e([i]);i=(a.then?(await a)():a)[0];class s extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=s.observedAttributeAsProperties.map(e=>e.toLowerCase());#e;#t=!1;#n;get url(){return this.#n}set url(e){this.#n=e,this.#i()}#l={};get globalProps(){return this.#l}set globalProps(e){"string"==typeof e?this.#l=JSON.parse(e):this.#l=e}#a={};get initData(){return this.#a}set initData(e){"string"==typeof e?this.#a=JSON.parse(e):this.#a=e}#s=[];get initI18nResources(){return this.#s}set initI18nResources(e){"string"==typeof e?this.#s=JSON.parse(e):this.#s=e}updateI18nResources(e,t){this.#e?.updateI18nResources(e,t)}#r={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#r}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#r=JSON.parse(e):this.#r=e}#o=[];#d;get onNativeModulesCall(){return this.#d}set onNativeModulesCall(e){for(let t of(this.#d=e,this.#o))t.resolve(e.apply(void 0,t.args));this.#o=[]}#c={};get nativeModulesMap(){return this.#c}set nativeModulesMap(e){this.#c=e}#h={};get napiModulesMap(){return this.#h}set napiModulesMap(e){this.#h=e}#u;get onNapiModulesCall(){return this.#u}set onNapiModulesCall(e){this.#u=(t,n,i,l)=>e(t,n,i,this,l)}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#e?.updateData(e,t,n)}updateGlobalProps(e){this.#e?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#e?.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#i()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#n=n;break;case"global-props":this.#l=JSON.parse(n);break;case"init-data":this.#a=JSON.parse(n)}}get threadStrategy(){return this.getAttribute("thread-strategy")}set threadStrategy(e){e?this.setAttribute("thread-strategy",e):this.removeAttribute("thread-strategy")}get injectHeadLinks(){return"false"!==this.getAttribute("inject-head-links")}set injectHeadLinks(e){e?this.setAttribute("inject-head-links","true"):this.removeAttribute("inject-head-links")}injectStyleRules=[];disconnectedCallback(){this.#e?.dispose(),this.#e=void 0,this.shadowRoot?.querySelector(`[${l.Gq}="page"]`)?.setAttribute(l.JA,""),this.shadowRoot&&(this.shadowRoot.innerHTML="")}customTemplateLoader;browserConfig;#m=!1;#i(){!this.#m&&this.#t&&(this.#m=!0,queueMicrotask(()=>{this.#m=!1;let e=this.getAttribute("ssr");if(this.#e&&this.disconnectedCallback(),this.#n){let t={page:"div",view:"x-view",text:"x-text",image:"x-image",list:"x-list",svg:"x-svg",input:"x-input","x-input-ng":"x-input",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let n=this.lynxGroupId,a=this.threadStrategy??"all-on-ui";"multi-thread"===a&&console.warn('[LynxView] multi-thread strategy is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.');let s=(0,i.P)({threadStrategy:a,tagMap:t,shadowRoot:this.shadowRoot,templateUrl:this.#n,globalProps:this.#l,initData:this.#a,nativeModulesMap:this.#c,napiModulesMap:this.#h,lynxGroupId:n,initI18nResources:this.#s,browserConfig:this.browserConfig,callbacks:{nativeModulesCall:(...e)=>this.onNativeModulesCall?this.onNativeModulesCall(...e):new Promise(t=>{this.#o.push({args:e,resolve:t})}),napiModulesCall:(...e)=>this.onNapiModulesCall?.(...e),onError:(e,t,n)=>{this.dispatchEvent(new CustomEvent("error",{detail:{sourceMap:{offset:{line:2,col:0}},error:e,release:t,fileName:n}}))},customTemplateLoader:this.customTemplateLoader,reload:()=>{this.reload()}},ssr:e?JSON.parse(decodeURI(e)):void 0});if(this.#e=s,!e){let e=document.createElement("style");this.shadowRoot.append(e);let t=e.sheet;for(let e of l.OE)t.insertRule(e);for(let e of this.injectStyleRules)t.insertRule(e);"false"!==this.getAttribute("inject-head-links")&&document.head.querySelectorAll('link[rel="stylesheet"]').forEach(e=>{let n=e.href;t.insertRule(`@import url("${n}");`)})}}}))}connectedCallback(){this.#t=!0,this.#i()}}customElements.get(s.tag)?console.warn(`[${s.tag}] has already been defined`):customElements.define(s.tag,s),t()}catch(e){t(e)}})},3379(e,t,n){n.a(e,async function(e,i){try{n.d(t,{P:()=>s});var l=n(7826),a=e([l]);l=(a.then?(await a)():a)[0];let r=window.devicePixelRatio,o=document.documentElement.clientWidth*r,d=document.documentElement.clientHeight*r;function s(e){let{shadowRoot:t,callbacks:n,templateUrl:i,globalProps:a,initData:s,nativeModulesMap:r,napiModulesMap:c,tagMap:h,lynxGroupId:u,threadStrategy:m="multi-thread",initI18nResources:p,ssr:b,browserConfig:v}=e;return(0,l.$)(i,{tagMap:h,initData:s,globalProps:a,nativeModulesMap:r,napiModulesMap:c,browserConfig:{pixelRatio:v?.pixelRatio??window.devicePixelRatio,pixelWidth:v?.pixelWidth??o,pixelHeight:v?.pixelHeight??d},initI18nResources:p},t,u,m,n,b)}i()}catch(e){i(e)}})},3493(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(8687),a=e([i,l]);[i,l]=a.then?(await a)():a,t()}catch(e){t(e)}})},5969(e,t,n){n.d(t,{C:()=>r});var i=n(4234);class l{port;name;incId=0;#p=[];#b={};#v=new TextEncoder;#g=new TextDecoder;#f=new Map;constructor(e,t){this.port=e,this.name=t,e&&(e.onmessage=e=>this.#y(e.data))}setMessagePort(e){if(this.port)throw Error("Rpc port already set");for(let t of(this.port=e,this.#p))this.postMessage(t.message,t.detail);this.#p=[],e.onmessage=e=>this.#y(e.data)}postMessage(e,t){this.port?this.port.postMessage(e,t):this.#p.push({message:e,detail:t})}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#y=async e=>{let t=this.#f.get(e.name);if(t){let n=e.sync?new Int32Array(e.lock):void 0,i=!e.sync&&e.retId?l.createRetEndpoint(e.retId):void 0;try{let l=await t(...e.data),a,s=[];if(e.sync?a=l:e.hasTransfer?{data:a,transfer:s}=l||{}:a=l,e.sync){if(e.buf){let t=JSON.stringify(a),n=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),l=new Uint8Array(e.buf.byteLength-4),{written:s}=this.#v.encodeInto(t,l);n[0]=s,i.set(l,0)}Atomics.store(n,0,1),Atomics.notify(n,0)}else e.retId&&this.invoke(i,[a,!1],s||[])}catch(t){console.error(t),e.sync?(Atomics.store(n,0,2),Atomics.notify(n,0),n[1]=2):this.invoke(i,[void 0,!0])}}else{let t=this.#b[e.name];t?t.push(e):this.#b[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#f.set(e.name,t);let n=this.#b[e.name];if(n?.length)for(let t of(this.#b[e.name]=void 0,n))this.#y(t)}registerHandlerRef(e,t,n){this.registerHandler(e,(...e)=>t[n]?.call(t,...e))}registerHandlerLazy(e,t,n){if(t[n])this.registerHandlerRef(e,t,n);else{let i,l=this;Object.defineProperty(t,n,{get:()=>i,set(a){i=a,a&&l.registerHandlerRef(e,t,n)}})}}removeHandler(e){this.#f.delete(e.name)}invoke(e,t,n=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,l=new SharedArrayBuffer(4),a=new Int32Array(l);a[0]=0;let s={name:e.name,data:t,sync:!0,lock:l,buf:i};if(this.postMessage(s,{transfer:n}),Atomics.wait(a,0,0),2===a[0])throw null;if(!i)return;{let e=new Uint32Array(i,0,4)[0],t=new Uint8Array(i,4,e),n=new Uint8Array(e);return n.set(t,0),n?JSON.parse(this.#g.decode(n)):void 0}}if(e.hasReturn){let i,a,s;i=new Promise((e,t)=>{a=e,s=t});let r=l.createRetEndpoint(this.nextRetId);this.registerHandler(r,(e,t)=>{t&&s(),a(e)});let o={name:e.name,data:t,sync:!1,retId:r?.name,hasTransfer:e.hasReturnTransfer};return this.postMessage(o,{transfer:n}),i}{let i={name:e.name,data:t,sync:!1};this.postMessage(i,{transfer:n})}}createCallbackify(e,t){let n=this.createCall(e);return(...e)=>{let i=e.at(t);e.splice(t,1),n(...e).then(i)}}}let a=[],s=[];function r(e,t,n){var r,d,c;let h,u,m,p,b,v,g,f,y,E=(r=e,d=(y=t?{mainThreadRpc:new l((h=new MessageChannel).port1,"main-to-bg"),channelMainThreadWithBackground:h}:(u=new MessageChannel,m=new MessageChannel,p=o("lynx-main"),b={mode:"main",toUIThread:u.port2,toPeerThread:m.port1},p.postMessage(b,[u.port2,m.port1]),{mainThreadRpc:new l(u.port1,"ui-to-main"),mainThreadWorker:p,channelMainThreadWithBackground:m})).channelMainThreadWithBackground,c=n,g=new MessageChannel,r?(v=s[r]??o("lynx-bg"),s[r]=v):v=o("lynx-bg"),f={mode:"background",toUIThread:g.port2,toPeerThread:d.port2,systemInfo:{...i.c1,...c}},v.postMessage(f,[g.port2,d.port2]),{backgroundRpc:new l(g.port1,"ui-to-bg"),backgroundThreadWorker:v});return void 0!==e&&(a[e]?a[e]++:a[e]=1),{mainThreadRpc:y.mainThreadRpc,backgroundRpc:E.backgroundRpc,terminateWorkers:()=>{y.mainThreadWorker?.terminate(),void 0===e?E.backgroundThreadWorker.terminate():1===a[e]?(E.backgroundThreadWorker.terminate(),a[e]=0,s[e]=void 0):"number"==typeof a[e]&&a[e]>1&&a[e]--}}}function o(e){return new Worker(new URL(n.p+n.u("524"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},768(e,t,n){n.a(e,async function(e,i){try{n.d(t,{z:()=>o});var l=n(4234),a=n(6621),s=n(2244);let e=document.querySelector("script[nonce]"),d=e?.nonce||e?.getAttribute("nonce")||"",{prepareMainThreadAPIs:c}=await n.e("361","high").then(n.bind(n,7637));async function r(e){let t=document.createElement("iframe"),n=new Promise(e=>{let n=i=>{"lynx:mtsready"===i.data&&i.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc=`<!DOCTYPE html><html><head><script nonce="${d}">parent.postMessage("lynx:mtsready","*")</script></head><body style="display:none"></body></html>`,t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await n;let i=t.contentWindow,l=async e=>{let n=t.contentDocument.createElement("script");return n.fetchPriority="high",n.defer=!0,n.async=!1,n.nonce=d,t.contentDocument.head.appendChild(n),new Promise(async(t,l)=>{n.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},n.onerror=t=>l(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},n.src=e})};return{globalWindow:i,loadScript:l,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.nonce=d,e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let l=i?.module?.exports;return i.module={exports:void 0},l}throw Error(`Failed to load script: ${e}`,{cause:n})}}}function o(e,t,n,i,o,d,h){globalThis.module||Object.assign(globalThis,{module:{}});let u=new l.gI,{exposureChangedCallback:m}=(0,s.e)(t),p=r(t),{startMainThread:b,handleUpdatedData:v}=c(e,t,document,p,m,i,o,(e,t,n)=>{d.onError?.(e,n,"lepus.js")},e=>{(0,a.D)(t,l.hv,e)},e=>(u.setData(e),u),n,void 0,!0),g=async e=>{if(h){let n=[],i=t.querySelectorAll(`[${l.SP}]`),a=i.length;for(let e=0;e<a;e++){let t=i[e];n[Number(t.getAttribute(l.SP))]=new WeakRef(t)}let s=t.querySelector("style:nth-of-type(2)"),r=s?.sheet,o=[],d=r?.cssRules.length??0;for(let e=0;e<d;e++){let t=r?.cssRules[e];if(t?.constructor.name==="CSSStyleRule"){let n=parseFloat(t.selectorText.substring(l.SP.length+3));void 0===n||isNaN(n)||(o[n]=e)}}await b(e,{lynxUniqueIdToElement:n,lynxUniqueIdToStyleRulesIndex:o,...h,cardStyleElement:s})}else await b(e)},f=async(e,t)=>v(e,t);return{start:g,updateDataMainThread:f,updateI18nResourcesMainThread:e=>{u.setData(e)}}}i()}catch(e){i(e)}},1)},6865(e,t,n){n.d(t,{k:()=>h});var i=n(4234),l=n(6993);let a={CreateElement:1,SetAttribute:2,RemoveAttribute:3,Append:4,Remove:5,ReplaceWith:6,InsertBefore:7,EnableEvent:8,RemoveChild:9,StyleDeclarationSetProperty:10,StyleDeclarationRemoveProperty:11,SetTextContent:12,sheetInsertRule:13,sheetRuleUpdateCssText:14};function s(){}let r=["detail","keyCode","charCode","elapsedTime","propertyName","pseudoElement","animationName","touches","targetTouches","changedTouches","x","y"],o=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);var d=n(2515),c=n(2244);function h(e,t,n,h){(0,l.m)(e,"lepus.js",h.onError),function(e,t){let{shadowRoot:n}=t,{decodeOperation:l}=function(e){let{shadowRoot:t,onEvent:n}=e,i=new Set,l=[new WeakRef(t)],d=new WeakMap;function c(e){let t=l[e]?.deref();if(t)return t;throw Error(`[lynx-web] cannot find element with uniqueId: ${e}`)}function h(e){if(e.eventPhase!==Event.CAPTURING_PHASE&&e.currentTarget!==t)return;let i=e.target;if(i&&d.has(i)){let t=d.get(i),l=e.type,a={};for(let t of r)t in e&&(a[t]=function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t)return t;if(t[Symbol.iterator])return[...t].map(e);if("object"==typeof t&&!(t instanceof EventTarget)){let n={};for(let i in t)o.has(i)||(n[i]=e(t[i]));return n}}(e[t]));n(l,t,e.bubbles,a)}}return{decodeOperation:function(e){let n;if(0===e.length)return;let r=0,{CreateElement:o,SetAttribute:u,RemoveAttribute:m,Append:p,Remove:b,ReplaceWith:v,InsertBefore:g,EnableEvent:f,RemoveChild:y,StyleDeclarationSetProperty:E,StyleDeclarationRemoveProperty:S,SetTextContent:w,sheetInsertRule:_,sheetRuleUpdateCssText:x}=a;for(;n=e[r++];){let a=e[r++];if(n===o){let t=document.createElement(e[r++]);l[a]=new WeakRef(t),d.set(t,a)}else{let l=c(a);switch(n){case u:{let t=e[r++],n=e[r++];l.setAttribute(t,n)}break;case m:l.removeAttribute(e[r++]);break;case p:{let t=e[r++];for(let n=0;n<t;n++){let t=c(e[r++]);l.appendChild(t)}}break;case b:l.remove();break;case v:{let t=e[r++],n=e.slice(r,r+t).map(e=>c(e));r+=t,l.replaceWith(...n)}break;case g:{let t=c(e[r++]),n=e[r++],i=n?c(n):null;l.insertBefore(t,i)}break;case f:let o=e[r++];l.addEventListener(o,s,{passive:!0}),i.has(o)||(t.addEventListener(o,h,{passive:!0,capture:!0}),i.add(o));break;case y:{let t=c(e[r++]);l.removeChild(t)}break;case E:l.style.setProperty(e[r++],e[r++],e[r++]);break;case S:l.style.removeProperty(e[r++]);break;case w:l.textContent=e[r++];break;case _:{let t=e[r++],n=e[r++];l.sheet.insertRule(n,t)}break;case x:{let t=e[r++];l.sheet.cssRules[t].style.cssText=e[r++]}}}}}}}({shadowRoot:n,onEvent:e.createCall(i.Zu)});e.registerHandler(i.E_,e=>{l(e)})}(e,{shadowRoot:t}),(0,d.c)(e,t),(0,c.g)(e,t),e.registerHandler(i.o3,n);let u=e.createCall(i.Hf);return{start:u,updateDataMainThread:e.createCall(i.Ve),updateI18nResourcesMainThread:e.createCall(i.k3)}}},9791(e,t,n){n.d(t,{i:()=>l});var i=n(4234);function l(e,t){return async()=>{await e.invoke(i.hh,[]),t()}}},2244(e,t,n){function i(e,t,n){if(t){if((t=t.trim()).endsWith("px"))return Number(t.substring(0,t.length-2));if(t.endsWith("%")){let i=Number(t.substring(0,t.length-1)),{width:l,height:a}=e.getBoundingClientRect();return(n?l:a)*i/100}}return 0}n.d(t,{g:()=>r,e:()=>s});var l=n(4234);let a=Symbol.for("lynx-scroll-container-dom");function s(e){let t=new WeakMap,n=new WeakMap,l=new WeakSet,s=(e,t,n)=>{let i=e.getAttribute("exposure-scene")??"",l={exposureID:n,exposureScene:i,"exposure-id":n,"exposure-scene":i},a=new CustomEvent(t?"uiappear":"uidisappear",{bubbles:!1,composed:!1,cancelable:!0,detail:l}),s=new CustomEvent(t?"exposure":"disexposure",{bubbles:!0,composed:!1,cancelable:!1,detail:l});Object.assign(a,l),e.dispatchEvent(a),e.dispatchEvent(s)},r=e=>{e.forEach(({target:e,isIntersecting:t})=>{t&&!l.has(e)?(s(e,!0,e.getAttribute("exposure-id")),l.add(e)):!t&&l.has(e)&&(s(e,!1,e.getAttribute("exposure-id")),l.delete(e))})};return{exposureChangedCallback:o=>{o.forEach(o=>{let d=n.get(o)??null,c=o.getAttribute("exposure-id");null!==d&&s(o,!1,d),n.set(o,c),t.get(o)?.disconnect(),t.delete(o),l.delete(o),null!==o.getAttribute("exposure-id")&&(n=>{let l=parseFloat(n.getAttribute("exposure-area")??"0")/100,s=i(n,n.getAttribute("exposure-screen-margin-top")),o=i(n,n.getAttribute("exposure-screen-margin-right")),d=i(n,n.getAttribute("exposure-screen-margin-bottom")),c=i(n,n.getAttribute("exposure-screen-margin-left")),h=i(n,n.getAttribute("exposure-ui-margin-top")),u=i(n,n.getAttribute("exposure-ui-margin-right")),m=i(n,n.getAttribute("exposure-ui-margin-bottom")),p=i(n,n.getAttribute("exposure-ui-margin-left")),b=n.parentElement;for(;b;)if(b[a]){b=b[a];break}else b=b.parentElement;let v=new IntersectionObserver(r,{rootMargin:`${(m?-1:1)*(s-m)}px ${(p?-1:1)*(o-p)}px ${(h?-1:1)*(d-h)}px ${(u?-1:1)*(c-u)}px`,root:b??e.parentElement,threshold:l});v.observe(n),t.set(n,v)})(o)})}}}function r(e,t){let{exposureChangedCallback:n}=s(t);e.registerHandler(l.gj,e=>{n(e.map(e=>t.querySelector(`[${l.SP}="${e}"]`)).filter(e=>null!==e))})}},4729(e,t,n){n.d(t,{k:()=>i});function i(e){return(t,n,i)=>{e(t,{processorName:n}).then(()=>i?.())}}},2515(e,t,n){n.d(t,{c:()=>a});var i=n(4234),l=n(6621);function a(e,t){e.registerHandler(i.gx,(e,n)=>{(0,l.D)(t,e,n)})}},6993(e,t,n){n.d(t,{m:()=>l});var i=n(4234);function l(e,t,n){e.registerHandler(i.o2,(e,i,l)=>{n?.(e,l,t)})}},9174(e,t,n){n.d(t,{r:()=>o});var i=n(4234);function l(e,t,n,l,a,s,r,o){let d,c=e;if(s){let t=e.querySelector(`[${i.SP}="${s}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for root_unique_id: ${s}`),o?.(i.O4.NODE_NOT_FOUND);return}}else if(l){let t=e.querySelector(`[${i.pP}="${l}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for component_id: ${l}`),o?.(i.O4.NODE_NOT_FOUND);return}}if(t===i.Wx.ID_SELECTOR)d=n;else if(t===i.Wx.UNIQUE_ID)d=`[${i.SP}="${n}"]`;else{console.error(`[lynx-web] NYI: setnativeprops type ${t}`),o?.(i.O4.UNKNOWN);return}if(a){let e=null;try{e=c.querySelector(d)}catch(e){console.error(`[lynx-web] cannot use selector: ${d}`),o?.(i.O4.SELECTOR_NOT_SUPPORTED);return}e?r(e):(console.error(`[lynx-web] cannot find from for selector ${n} under`,c),o?.(i.O4.NODE_NOT_FOUND))}else c.querySelectorAll(d).forEach(e=>{r(e)})}let a={boundingClientRect:e=>{let t=e.getBoundingClientRect();return{id:e.id,width:t.width,height:t.height,left:t.left,right:t.right,top:t.top,bottom:t.bottom}}};var s=n(2515),r=n(6993);function o(e,t,n){var o,d,c;let h,u,m,p,b;h=i.O4.UNKNOWN,e.registerHandler(i.zk,(e,n,s,r,o,d)=>(l(t,e,n,s,!0,d,e=>{try{let t=a[r],n="function"==typeof e[r];t||n?(u=t?t(e,o):e[r](o),h=i.O4.SUCCESS):h=i.O4.METHOD_NOT_FOUND}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),h=i.O4.PARAM_INVALID}},e=>{h=e}),{code:h,data:u})),e.registerHandler(i.PC,(e,n,i,a,s,r)=>{l(t,e,n,i,a,r,e=>{var t=e;for(let e in s){let n=s[e];"text"===e&&t?.tagName==="X-TEXT"&&t.firstElementChild&&"RAW-TEXT"==t.firstElementChild.tagName&&(t=t.firstElementChild),CSS.supports(e,n)&&t.style?t.style.setProperty(e,n):t.setAttribute(e,n)}})}),e.registerHandler(i.pT,(e,n)=>{let l=t.querySelector(`[${i.pP}="${n.componentId}"]`);l?.dispatchEvent(new CustomEvent(e,{...n.eventOption,detail:n.eventDetail}))}),e.registerHandler(i.vr,(e,n,a)=>(l(t,i.Wx.ID_SELECTOR,n,"card"===e?"0":e,a,void 0,e=>{m=e}),[m?.getAttribute(i.pP)??void 0])),o=n.nativeModulesCall,e.registerHandler(i.g,o),d=n.napiModulesCall,p=e.createCall(i.Sy),e.registerHandler(i.VK,(e,t,n)=>d(e,t,n,p)),e.registerHandler(i.ZU,(e,n,a,s,r)=>{let o,d=i.O4.UNKNOWN;return l(t,e,n,a,s,r,e=>{try{let n=[],l=e;for(;l;){let e=l.parentElement,a=e??t,s=Array.from(a.children),r=l.getAttribute(i.Gq),o="page"===r?0:s.indexOf(l),d=l.getAttribute("id")||void 0,c=l.getAttribute("class")||void 0,h=l.getAttribute(i.C6),u=h?JSON.parse(decodeURIComponent(h)):void 0;if(n.push({tag:r,id:d,class:c,dataSet:u,index:o}),"page"===r||l.parentNode===t)break;l=e}o={path:n},d=i.O4.SUCCESS}catch(t){console.error("[lynx-web] getPathInfo: failed with",t,e),d=i.O4.UNKNOWN}},e=>{d=e}),{code:d,data:o}}),(0,s.c)(e,t),b=new Map,e.registerHandler(i.vn,(e,n,l)=>{if("animate"===e)switch(l.operation){case i.Uc.START:b.set(l.id,t.querySelector(n)?.animate(l.keyframes,l.timingOptions));break;case i.Uc.PLAY:b.get(l.id)?.play();break;case i.Uc.PAUSE:b.get(l.id)?.pause();break;case i.Uc.CANCEL:b.get(l.id)?.cancel();break;case i.Uc.FINISH:b.get(l.id)?.finish()}}),(0,r.m)(e,"app-service.js",n.onError),c=n.reload,e.registerHandler(i.F0,c);let v=e.createCall(i.hO);return{sendGlobalEvent:v,markTiming:e.createCall(i.PM),updateI18nResourceBackground:(t,n)=>{let l=t.find(e=>(0,i.HO)(e.options)===(0,i.HO)(n));e.invoke(i.BE,[l?.resource])}}}},7826(e,t,n){n.a(e,async function(e,i){try{n.d(t,{$:()=>m});var l=n(5969),a=n(9791),s=n(4234),r=n(3893),o=n(4729),d=n(9174),c=n(6865),h=n(768),u=e([h]);function m(e,t,n,i,u,m,p){let b=performance.now()+performance.timeOrigin,v="all-on-ui"===u,{mainThreadRpc:g,backgroundRpc:f,terminateWorkers:y}=(0,l.C)(i,v,t.browserConfig),{markTiming:E,sendGlobalEvent:S,updateI18nResourceBackground:w}=(0,d.r)(f,n,m),_={records:[],timeout:null},x=(e,t,n)=>{(0,s.M$)({timingKey:e,pipelineId:t,timeStamp:n,markTiming:E,cacheMarkTimings:_})},C=()=>(0,s.qz)(E,_),T=(0,r._)(m.customTemplateLoader,x),{start:O,updateDataMainThread:L,updateI18nResourcesMainThread:I}=v?(0,h.z)(g,n,T,x,C,m,p):(0,c.k)(g,n,T,m);return x("create_lynx_start",void 0,b),T(e).then(e=>{C(),O({...t,template:e})}),{updateData:(0,o.k)(L),dispose:(0,a.i)(f,y),sendGlobalEvent:S,updateGlobalProps:f.createCall(s.yn),updateI18nResources:(...e)=>{I(e[0]),w(...e)}}}h=(u.then?(await u)():u)[0],i()}catch(e){i(e)}})},6621(e,t,n){n.d(t,{D:()=>i});let i=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0,composed:!0}))}},3893(e,t,n){n.d(t,{_:()=>s});var i=n(4234);let l=new Map;function a(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function s(e,t){return async n=>{t("load_template_start");let s=l.get(n);if(s)return t("load_template_end"),s;{let s=new Promise(async(t,s)=>{try{let l=e?await e(n):await (await fetch(n,{method:"GET"})).json(),s=await (0,i.Yx)(l,a,encodeURIComponent(n));t(s)}catch(e){l.delete(n),s(e)}});return l.set(n,s),t("load_template_end"),s}}}},6033(){var e,t,n,i;let l,a,s,r,o,d,c,h,u,m,p,b,v,g,f,y,E,S,w,_,x,C,T,O,L,I,k,A,P,M,R,N,D,F,H,j,z,W,U,V,$,B,X,q,Y,G,J,K,Q,Z,ee,et,en,ei,el,ea,es,er,eo,ed,ec,eh,eu,em,ep,eb,ev,eg,ef,ey,eE,eS,ew,e_,ex,eC,eT,eO,eL,eI,ek,eA,eP,eM,eR,eN,eD,eF,eH,ej,ez,eW,eU,eV,e$,eB,eX,eq,eY,eG,eJ,eK,eQ,eZ,e0,e1,e2,e4,e3,e8,e9,e6,e7,e5,te,tt,tn,ti,tl,ta,ts,tr,to,td,tc,th,tu,tm,tp,tb,tv,tg,tf,ty,tE,tS,tw,t_,tx,tC,tT,tO,tL,tI,tk,tA,tP,tM,tR,tN,tD,tF,tH,tj,tz,tW,tU,tV,t$,tB,tX,tq,tY,tG,tJ,tK,tQ,tZ,t0,t1,t2,t4,t3,t8,t9,t6,t7,t5,ne,nt,nn,ni,nl,na,ns,nr,no,nd,nc,nh,nu,nm,np,nb,nv,ng,nf,ny,nE,nS,nw,n_,nx,nC,nT,nO,nL,nI,nk,nA,nP,nM,nR,nN,nD,nF,nH,nj,nz,nW,nU,nV,n$,nB,nX,nq,nY,nG,nJ,nK,nQ,nZ,n0,n1,n2,n4,n3,n8,n9,n6,n7,n5,ie,it,ii,il,ia,is,ir,io,id,ic,ih,iu,im,ip,ib,iv,ig,iy,iE,iS,iw,i_,ix,iC,iT,iO,iL,iI,ik,iA,iP,iM,iR,iN,iD,iF,iH,ij,iz,iW,iU,iV,i$,iB,iX,iq,iY,iG,iJ,iK,iQ,iZ,i0,i1,i2,i4,i3,i8,i9,i6,i7,i5,le,lt,ln,li,ll,la,ls,lr,lo,ld,lc,lh,lu,lm,lp,lb,lv,lg,lf,ly,lE,lS,lw,l_,lx,lC,lT,lO,lL,lI,lk,lA,lP,lM,lR,lN,lD,lF,lH,lj,lz,lW,lU,lV,l$,lB,lX,lq,lY,lG,lJ,lK,lQ,lZ,l0,l1,l2,l4,l3,l8,l9,l6,l7,l5,ae,at,an,ai,al,aa,as,ar,ao,ad,ac,ah,au,am,ap,ab,av,ag,af,ay,aE,aS;function aw(e,t,n,i,l,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var r,o=i.kind,d="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?i.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,i.name):{}),u=!1,m=n.length-1;m>=0;m--){var p={};for(var b in i)p[b]="access"===b?{}:i[b];for(var b in i.access)p.access[b]=i.access[b];p.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var v=(0,n[m])("accessor"===o?{get:h.get,set:h.set}:h[d],p);if("accessor"===o){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(r=s(v.get))&&(h.get=r),(r=s(v.set))&&(h.set=r),(r=s(v.init))&&l.unshift(r)}else(r=s(v))&&("field"===o?l.unshift(r):h[d]=r)}c&&Object.defineProperty(c,i.name,h),u=!0}function a_(e,t,n){for(var i=arguments.length>2,l=0;l<t.length;l++)n=i?t[l].call(e,n):t[l].call(e);return i?n:void 0}let ax=[];function aC(){let e=ax;for(let[t,n]of(ax=[],e))n?t.call(n):t()}function aT(e,t){0===ax.length&&queueMicrotask(aC),ax.push([e,t])}function aO(e,t,n,i){let l=!1;return function(a){if(a!==l){let s=e.call(this);a?(aT(()=>s.addEventListener(t,n,i)),l=!0):(aT(()=>s.removeEventListener(t,n)),l=!1)}}}function aL(e,t,n){return function(i){n&&(i=n(i));let l=e.call(this);l.getAttribute(t)!==i&&(null!==i?aT(()=>{l.setAttribute(t,i)}):aT(()=>{l.removeAttribute(t)}))}}function aI(e,t,n,i){return function(l){l?(n&&(l=n(l)),aT(()=>e.call(this).style.setProperty(t,l,i?"important":void 0))):aT(()=>e.call(this).style.removeProperty(t))}}function ak(e,t){let n,i;return()=>(i||(i=e()),i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=i.querySelector(t)),n)}function aA(e,t,n){let i,l=t.filter(e=>!!e);return(t,{addInitializer:a})=>{let s=new Set([...l.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class r extends t{static registerPlugin(e){if(r.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)s.add(t);l.push(e)}static observedAttributes=[...t.observedAttributes??[],...l.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#E=[];constructor(){if(super(),n&&!i&&((i=document.createElement("template")).innerHTML=n,document.body.appendChild(i)),i&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=i.content.cloneNode(!0);e.append(t)}this.#E=l.map(e=>new e(this)),this.#S()}#w=!1;#_=new Map;#x(){!this.#w&&s.size&&(this.#w=!0,aT(this.#C,this))}#C(){let e=getComputedStyle(this);for(let n of s){var t;let i=e.getPropertyValue(n),l=e.getPropertyPriority(n),a=(t=i.trim(),l?t+" !important":t);if(this.#_.get(n)!==a)for(let e of this.#E)e.cssPropertyChangedHandler?.[n]?.call(e,a,n)}this.#w=!1}setAttribute(e,n){"false"!==n.toString()||t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,n):this.removeAttribute(e)}#S(){let e=this.attributes;for(let n=0,i;i=e.item(n);n++)"false"!==i.value||t.notToFilterFalseAttributes?.has(i.name)||i.name.startsWith("data-")||this.removeAttributeNode(i)}#t=!1;attributeChangedCallback(e,n,i){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,n,i),t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===n&&(n=null),"false"===i&&(i=null,this.removeAttribute(e))),n!==i){for(let t of(this.#t&&("class"===e||"style"===e)&&this.#x(),this.#E))if(t.attributeChangedHandler?.[e]){let{handler:l,noDomMeasure:a}=t.attributeChangedHandler[e];a?l.call(t,i,n,e):this.#t&&aT(()=>l.call(t,i,n,e))}}}#T(){this.getAttributeNames().forEach(e=>{for(let t of this.#E)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:i}=t.attributeChangedHandler[e];i||aT(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#E.forEach(e=>{e.connectedCallback?.()}),this.#x(),aT(this.#T,this),this.#t=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#E.forEach(e=>{e.dispose?.()})}#O={};enableEvent(e){this.#O[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let t=this.#O[e];if(0===t.count)for(let t of this.#E){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}t.count++}disableEvent(e){let t=this.#O[e];if(t&&t.count>0&&(t.count--,0===t.count))for(let t of this.#E){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}addEventListener(e,t,n){super.addEventListener(e,t,n),this.enableEvent(e);let i=this.#O[e],l=("object"==typeof n?n.capture:n)?i.captureListenerCount:i.listenerCount,a=l.get(t)??0;l.set(t,a+1)}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let i="object"==typeof n?n.capture:n,l=this.#O[e];if(l&&l.count>0){let n=i?l.captureListenerCount:l.listenerCount;1===n.get(t)&&(n.delete(t),this.disableEvent(e))}}}return a(()=>{customElements.define(e,r)}),r}}function aP(e,t){return function(n,...i){return function(l,a){if("method"===a.kind)a.addInitializer(function(){this[e]??={},this[e][n]=t(l,i)});else if("field"===a.kind)return function(l){return this[e]??={},this[e][n]=t(l,i),l};else throw Error(`[lynx-web-components] decorator type ${a.kind} is not supported`)}}}let aM=aP("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),aR=aP("cssPropertyChangedHandler",e=>e),aN=aP("eventStatusChangedHandler",e=>e);s=[aA("lynx-wrapper",[])],r=[],o=HTMLElement,class extends o{static{a=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;aw(null,l={value:a},s,{kind:"class",name:a.name,metadata:e},null,r),a=l.value,e&&Object.defineProperty(a,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(a,r)}};let aD={bubbles:!1,composed:!1,cancelable:!0},aF=Symbol("layoutChangeTarget"),aH=(d=[],c=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(null,null,[aN("layoutchange")],{kind:"field",name:"__handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"__handleScrollUpperThresholdEventEnabled"in e,get:e=>e.__handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e.__handleScrollUpperThresholdEventEnabled=t}},metadata:e},d,c),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L;constructor(e){a_(this,c),this.#L=e}#I=!1;#k;__handleScrollUpperThresholdEventEnabled=a_(this,d,e=>{e&&this.#L[aF]?!this.#k&&(this.#k=new ResizeObserver(([e])=>{if(e){let t=this.#L.id,{top:n,bottom:i,left:l,right:a,width:s,height:r}=e.target.getBoundingClientRect();this.#L.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:s,height:r,left:l,right:a,top:n,bottom:i,id:t},...aD}))}}),this.#I||(this.#k.observe(this.#L[aF]),this.#I=!0)):(this.#k?.disconnect(),this.#k=void 0,this.#I=!1)});dispose(){this.#k?.disconnect(),this.#k=void 0,this.#I=!1}}),aj=(u=[],m=[],p=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;h=[aM("fading-edge-length",!0)],aw(this,null,[aR("background"),aR("background-color")],{kind:"method",name:"_backgroundColorToVariable",static:!1,private:!1,access:{has:e=>"_backgroundColorToVariable"in e,get:e=>e._backgroundColorToVariable},metadata:e},null,u),aw(null,null,h,{kind:"field",name:"_handleFadingEdgeLength",static:!1,private:!1,access:{has:e=>"_handleFadingEdgeLength"in e,get:e=>e._handleFadingEdgeLength,set:(e,t)=>{e._handleFadingEdgeLength=t}},metadata:e},m,p),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,u);#A=ak(()=>this.#L.shadowRoot,"#top-fade-mask");#P=ak(()=>this.#L.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){a_(this,p),this.#L=e}_handleFadingEdgeLength=a_(this,m,aI(()=>this.#L,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));_backgroundColorToVariable(e){this.#A().style.setProperty("--scroll-view-bg-color",e),this.#P().style.setProperty("--scroll-view-bg-color",e)}connectedCallback(){}dispose(){}}),az=(g=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;b=[aM("scroll-top",!1),aM("scroll-left",!1),aM("initial-scroll-offset",!1)],v=[aM("scroll-to-index",!1),aM("initial-scroll-to-index",!1)],aw(this,null,b,{kind:"method",name:"_handleInitialScrollOffset",static:!1,private:!1,access:{has:e=>"_handleInitialScrollOffset"in e,get:e=>e._handleInitialScrollOffset},metadata:e},null,g),aw(this,null,v,{kind:"method",name:"_handleInitialScrollIndex",static:!1,private:!1,access:{has:e=>"_handleInitialScrollIndex"in e,get:e=>e._handleInitialScrollIndex},metadata:e},null,g),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,g);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#L=e}_handleInitialScrollOffset(e,t,n){if(e){let t=parseFloat(e),i=this.#L.getAttribute("scroll-orientation"),l=this.#L.getAttribute("scroll-y"),a=this.#L.getAttribute("scroll-x"),s=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===l||"true"===l||"vertical"===i||"both"===i),r=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===a||"true"===a||"vertical"===i||"both"===i);requestAnimationFrame(()=>{s&&this.#L.scrollTo(0,t),r&&(this.#L.scrollLeft=t)})}}_handleInitialScrollIndex(e){if(e){let t=parseFloat(e),n=this.#L.children.item(t);if(n&&n instanceof HTMLElement){let e=null!==this.#L.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#L.scrollLeft=n.offsetLeft:this.#L.scrollTop=n.offsetTop})}}}dispose(){}});function aW(e,t,n){let i;return l=>{null!==l?i||(i=new IntersectionObserver(n,{root:e()})).observe(t()):i&&(i.disconnect(),i=void 0)}}let aU="onscrollend"in document,aV=window.navigator.userAgent;aV.includes("Chrome"),/\b(iPad|iPhone|iPod|OS X)\b/.test(aV)&&!/Edge/.test(aV)&&/WebKit/.test(aV)&&window.MSStream;let a$=Symbol.for("lynx-scroll-container-dom"),aB=(x=[],C=[],T=[],O=[],L=[],I=[],k=[],A=[],P=[],M=[],R=[],N=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;f=[aN("scrolltoupper")],y=[aN("scrolltolower")],E=[aM("upper-threshold",!0)],S=[aM("lower-threshold",!0)],w=[aN("lynxscroll")],_=[aN("lynxscrollend")],aw(null,null,f,{kind:"field",name:"_handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollUpperThresholdEventEnabled"in e,get:e=>e._handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e._handleScrollUpperThresholdEventEnabled=t}},metadata:e},x,C),aw(null,null,y,{kind:"field",name:"_handleScrollLowerThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollLowerThresholdEventEnabled"in e,get:e=>e._handleScrollLowerThresholdEventEnabled,set:(e,t)=>{e._handleScrollLowerThresholdEventEnabled=t}},metadata:e},T,O),aw(null,null,E,{kind:"field",name:"_updateUpperThreshold",static:!1,private:!1,access:{has:e=>"_updateUpperThreshold"in e,get:e=>e._updateUpperThreshold,set:(e,t)=>{e._updateUpperThreshold=t}},metadata:e},L,I),aw(null,null,S,{kind:"field",name:"_updateLowerThreshold",static:!1,private:!1,access:{has:e=>"_updateLowerThreshold"in e,get:e=>e._updateLowerThreshold,set:(e,t)=>{e._updateLowerThreshold=t}},metadata:e},k,A),aw(null,null,w,{kind:"field",name:"_handleScrollEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEventEnabled"in e,get:e=>e._handleScrollEventEnabled,set:(e,t)=>{e._handleScrollEventEnabled=t}},metadata:e},P,M),aw(null,null,_,{kind:"field",name:"_handleScrollEndEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEndEventEnabled"in e,get:e=>e._handleScrollEndEventEnabled,set:(e,t)=>{e._handleScrollEndEventEnabled=t}},metadata:e},R,N),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L;#M;#R=0;#N=0;constructor(e){a_(this,N),this.#L=e}#D=()=>this.#L;#F=ak(()=>this.#L.shadowRoot,"#upper-threshold-observer");#H=ak(()=>this.#L.shadowRoot,"#lower-threshold-observer");#j=e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...aD,detail:this.#z()})):"lower-threshold-observer"===i&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...aD,detail:this.#z()})))};static observedAttributes=["upper-threshold","lower-threshold"];_handleScrollUpperThresholdEventEnabled=a_(this,x,e=>{e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#W(e)});#W=(a_(this,C),aW(this.#D,this.#F,this.#j));_handleScrollLowerThresholdEventEnabled=a_(this,T,e=>{e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),this.#U(e)});#U=(a_(this,O),aW(this.#D,this.#H,this.#j));_updateUpperThreshold=a_(this,L,aI(this.#F,"flex-basis",e=>`${parseInt(e)}px`));_updateLowerThreshold=(a_(this,I),a_(this,k,aI(this.#H,"flex-basis",e=>`${parseInt(e)}px`)));#z(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i}=this.#D();0===e&&(e-=this.#L.scrollHeight/2-this.#L.scrollTop),0===t&&(t-=this.#L.scrollWidth/2-this.#L.scrollLeft);let l={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i,isDragging:!1,deltaX:t-this.#R,deltaY:e-this.#N};return this.#R=t,this.#N=e,l}#V=(a_(this,A),()=>{this.#$&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...aD,detail:this.#z()}))});#B=()=>{this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aD,detail:this.#z()}))};#X=!1;_handleScrollEventEnabled=a_(this,P,e=>{this.#X=e,this.#q()});#$=(a_(this,M),!1);_handleScrollEndEventEnabled=a_(this,R,e=>{this.#$=e,this.#q()});#q(){this.#X||this.#$?(this.#D().addEventListener("scroll",this.#V),this.#D().addEventListener("scrollend",this.#B),this.#L.addEventListener("scroll",this.#V),this.#L.addEventListener("scrollend",this.#B),this.#R=0,this.#N=0):(this.#L.removeEventListener("scroll",this.#V),this.#L.removeEventListener("scrollend",this.#B))}connectedCallback(){}dispose(){}});class aX{static eventName="__scrollIntoView";static observedAttributes=[];#L;#Y=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],i=this.#L;for(let e of t){if(e===i)break;n.push(e)}let l=this.#L.getAttribute("scroll-orientation"),a=null!==this.#L.getAttribute("scroll-x")||"both"===l||"horizontal"===l,s=null!==this.#L.getAttribute("scroll-y")||"both"===l||"vertical"===l,r=0,o=0;for(let{offsetTop:e,offsetLeft:t}of n)a&&(o+=t),s&&(r+=e);if(a)switch(e.detail.inline){case"center":o+=(e.target.clientWidth-this.#L.clientWidth)/2;break;case"end":o+=e.target.clientWidth-this.#L.clientWidth}if(s)switch(e.detail.block){case"center":r+=(e.target.clientHeight-this.#L.clientHeight)/2;break;case"end":r+=e.target.clientHeight-this.#L.clientHeight}i.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:o,top:r})};constructor(e){this.#L=e,this.#L.addEventListener(aX.eventName,this.#Y,{passive:!1})}dispose(){this.#L.removeEventListener(aX.eventName,this.#Y)}}let aq=`<style>
7
7
  .placeholder-dom {
8
8
  display: none;
9
9
  flex: 0 0 0;
@@ -311,7 +311,7 @@
311
311
  border: none;
312
312
  }
313
313
  </style>
314
- <iframe id="webview" part="webview"></iframe>`,a3=CSS.supports("width:1rex")&&CSS.supports("transition-behavior:allow-discrete")&&CSS.supports("content-visibility: auto");class a8{static observedAttributes=[];static observedCSSProperties=["--lynx-display","--lynx-linear-orientation"];#L;constructor(e){this.#L=e,this.cssPropertyChangedHandler={"--lynx-display":this.#G,"--lynx-linear-orientation":this.#J}}#G=aL(()=>this.#L,"lynx-computed-display");#J=aL(()=>this.#L,"lynx-linear-orientation")}let a6=a3?void 0:a8;H=[aA("scroll-view",[a6,aH,az,aj,aB,aX],aq)],j=[],z=HTMLElement,e=class extends z{static{F=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(z[Symbol.metadata]??null):void 0;aw(null,D={value:F},H,{kind:"class",name:F.name,metadata:t},null,j),e=F=D.value,t&&Object.defineProperty(F,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#K;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#K),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#K=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[a$](){return this}static{a_(F,j)}},e=F;let a7=Symbol("__src"),a9=Symbol("__src"),a5={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},se={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=i||(i={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let st=($=[],B=[],X=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;W=[aM("src",!0)],U=[aM("loop",!0)],V=[aM("pause-on-hide",!0)],aw(this,null,W,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,$),aw(this,null,V,{kind:"method",name:"_handlePauseOnHide",static:!1,private:!1,access:{has:e=>"_handlePauseOnHide"in e,get:e=>e._handlePauseOnHide},metadata:e},null,$),aw(null,null,U,{kind:"field",name:"_handleLoop",static:!1,private:!1,access:{has:e=>"_handleLoop"in e,get:e=>e._handleLoop,set:(e,t)=>{e._handleLoop=t}},metadata:e},B,X),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#L=a_(this,$);#Q=ak(()=>this.#L.shadowRoot,"#audio");_handleSrc(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:i.SrcError,msg:"",from:"res loader",currentSrcID:this.#L[a7]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:i.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#L[a7]?.id}})),this.#L[a7]=t,this.#L[a9]=void 0,this.#L.stop()}_handleLoop=a_(this,B,aL(this.#Q,"loop"));#Z=(a_(this,X),()=>{"hidden"===document.visibilityState&&this.#L.pause()});_handlePauseOnHide(e){null!==e?document.addEventListener("visibilitychange",this.#Z,{passive:!0}):document.removeEventListener("visibilitychange",this.#Z)}constructor(e){this.#L=e}});class sn{static observedAttributes=[];#L;#ee;#Q=ak(()=>this.#L.shadowRoot,"#audio");#et=e=>{let t=Number(this.#L.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#ee=setInterval(()=>{this.#L.dispatchEvent(new CustomEvent("timeupdate",{...aD,detail:{currentTime:this.#Q().currentTime,currentSrcID:this.#L[a7]?.id}}))},n);let i=se[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...aD,detail:{code:i?.code,type:i?.type,currentSrcID:this.#L[a7]?.id}}))};#en=e=>{clearInterval(this.#ee);let t=se[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...aD,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[a7]?.id}}))};#ei=e=>{let t=a5[e.type];this.#L.dispatchEvent(new CustomEvent("loadingstatechanged",{...aD,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[a7]?.id}}))};#el=e=>{this.#ei(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?i.PlayerLoadingError:i.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=i.PlayerLoadingError),this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:n,msg:"",from:"player",currentSrcID:this.#L[a7]?.id}}))};#ea=()=>{let e=null!==this.#L.getAttribute("loop");this.#L.dispatchEvent(new CustomEvent("finished",{...aD,detail:{loop:e,currentSrcID:this.#L[a7]?.id}}))};constructor(e){this.#L=e}connectedCallback(){let e=this.#Q();e.addEventListener("play",this.#et,{passive:!0}),e.addEventListener("pause",this.#en,{passive:!0}),e.addEventListener("ended",this.#ea,{passive:!0}),e.addEventListener("loadstart",this.#ei,{passive:!0}),e.addEventListener("canplay",this.#ei,{passive:!0}),e.addEventListener("stalled",this.#ei,{passive:!0}),e.addEventListener("error",this.#el,{passive:!0})}}G=[aA("x-audio-tt",[aH,st,sn],'<audio id="audio"></audio>')],J=[],K=HTMLElement,(class extends K{static{Y=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(K[Symbol.metadata]??null):void 0;aw(null,q={value:Y},G,{kind:"class",name:Y.name,metadata:e},null,J),Y=q.value,e&&Object.defineProperty(Y,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(Y,J)}#es=ak(()=>this.shadowRoot,"#audio");#Q=ak(()=>this.shadowRoot,"#audio");#er=aL(this.#Q,"src");[a7];[a9];#eo=()=>{let e,t=this[a7];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[a9]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aD,detail:{code:0,type:"loading",currentSrcID:t.id}}));let a=await fetch(t.play_url,{headers:e});a.ok||(this.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:i.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aD,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await a.blob(),r=URL.createObjectURL(s);this.#er(r),n()})}};play(){return this[a9]||this.#eo(),this[a9]?.then(()=>{let e=this.#es();e.currentTime=0,e.play()}),{currentSrcID:this[a7]?.id,loadingSrcID:""}}stop(){let e=this.#es(),t=se.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...aD,detail:{code:t?.code,type:t?.type,currentSrcID:this[a7]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[a7]?.id}}pause(){return this.#es().pause(),{currentSrcID:this[a7]?.id}}resume(){return this.#es().play(),{currentSrcID:this[a7]?.id,loadingSrcID:""}}seek(e){return this.#es().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...aD,detail:{seekresult:1,currentSrcID:this[a7]?.id}})),{currentSrcID:this[a7]?.id}}mute(e){return this.#es().muted=e.mute,{currentSrcID:this[a7]?.id}}playerInfo(){var e;let t=this.#es(),n=t.buffered,i=n.end(n.length-1);return{currentSrcID:this[a7]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:i}}prepare(){this[a9]||this.#eo()}setVolume(e){return this.#es().volume=e.volume,{code:1}}}),ed=[aA("x-canvas",[aH,(et=[],en=[],ei=[],el=[],ea=[],es=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;Q=[aM("name",!0)],Z=[aM("height",!0)],ee=[aM("width",!0)],aw(null,null,Q,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},et,en),aw(null,null,Z,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ei,el),aw(null,null,ee,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},ea,es),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#L;#k;#ed=ak(()=>this.#L.shadowRoot,"#canvas");constructor(e){this.#L=e}handleName=a_(this,et,aL(this.#ed,"name"));handleHeight=(a_(this,en),a_(this,ei,aL(this.#ed,"height")));handleWidth=(a_(this,el),a_(this,ea,aL(this.#ed,"width")));#ec=(a_(this,es),e=>{let{contentRect:t}=e[0],n=this.#L.shadowRoot.firstElementChild;if(n){let{height:e,width:i}=t;e*=window.devicePixelRatio,i*=window.devicePixelRatio;let l=new CustomEvent("resize",{...aD,detail:{height:e,width:i}});l.height=e,l.width=i,n.dispatchEvent(l)}});#eh(){this.#k||(this.#k=new ResizeObserver(this.#ec),this.#k.observe(this.#L))}#eu(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#eh()}dispose(){this.#eu()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],ec=[],eh=HTMLElement,class extends eh{static{eo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eh[Symbol.metadata]??null):void 0;aw(null,er={value:eo},ed,{kind:"class",name:eo.name,metadata:e},null,ec),eo=er.value,e&&Object.defineProperty(eo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eo,ec)}};let si=(ep=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eu=[aM("granularity",!0)],em=[aN("offset")],aw(this,null,eu,{kind:"method",name:"_handleGranularity",static:!1,private:!1,access:{has:e=>"_handleGranularity"in e,get:e=>e._handleGranularity},metadata:e},null,ep),aw(this,null,em,{kind:"method",name:"_enableOffsetEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetEvent"in e,get:e=>e._enableOffsetEvent},metadata:e},null,ep),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,ep);#em=.01;#ep=0;constructor(e){this.#L=e}static observedAttributes=["granularity"];_handleGranularity(e){e&&""!==e?this.#em=parseFloat(e):this.#em=.01}_enableOffsetEvent(e){e?this.#L.addEventListener("scroll",this.#V,{passive:!0}):this.#L.removeEventListener("scroll",this.#V)}#V=()=>{let e=this.#L.scrollTop;(Math.abs(this.#ep-e)>this.#em||0===this.#L.scrollTop||1>=Math.abs(this.#L.scrollHeight-this.#L.clientHeight-this.#L.scrollTop))&&(this.#ep=e,this.#L.dispatchEvent(new CustomEvent("offset",{...aD,detail:{offset:e,height:this.#L[sl]}})))}}),sl=Symbol("scrollableLength"),sa=Symbol("isHeaderShowing"),ss=Symbol("resizeObserver"),sr=Symbol("slotKid");eg=[aA("x-foldview-ng",[a6,aH,si])],ef=[],ey=HTMLElement,class extends ey{static{ev=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ey[Symbol.metadata]??null):void 0;aw(null,eb={value:ev},eg,{kind:"class",name:ev.name,metadata:e},null,ef),ev=eb.value,e&&Object.defineProperty(ev,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sr];[ss]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eb=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ev=t.contentRect.height);this[sr]&&(this[sr].style.top=`${this.#eb-this.#ev}px`)});#eb=0;#ev=0;get[sl](){return this.#eb-this.#ev}get[sa](){return this[sl]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sl]?e=this[sl]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,i=parseFloat(t);this.scrollTo({top:i,behavior:n?"smooth":"instant"})}get[a$](){return this}disconnectedCallback(){this[ss]?.disconnect(),this[ss]=void 0}static{a_(ev,ef)}};let so=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};ew=[aA("x-foldview-header-ng",[a6,aH])],e_=[],ex=HTMLElement,(class extends ex{static{eS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ex[Symbol.metadata]??null):void 0;aw(null,eE={value:eS},ew,{kind:"class",name:eS.name,metadata:e},null,e_),eS=eE.value,e&&Object.defineProperty(eS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eS,e_)}#eg=void 0;connectedCallback(){let e=so(this,"X-FOLDVIEW-NG");this.#eg=e?.[ss],this.#eg?.observe(this)}dispose(){this.#eg?.unobserve(this)}}),eO=[aA("x-foldview-slot-drag-ng",[a6,aH])],eL=[],eI=HTMLElement,class extends eI{static{eT=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;aw(null,eC={value:eT},eO,{kind:"class",name:eT.name,metadata:e},null,eL),eT=eC.value,e&&Object.defineProperty(eT,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eT,eL)}};class sd{#ef=0;#ey=new WeakMap;#eE;#eS=0;#ew=0;#e_=null;#ex;#eC=0;#L;static observedAttributes=[];constructor(e){this.#L=e,this.#L.addEventListener("touchmove",this.#eT,{passive:!1}),this.#L.addEventListener("touchstart",this.#eO,{passive:!0}),this.#L.addEventListener("touchend",this.#eL,{passive:!0})}#eI(e){return this.#eE?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,i=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||i}return!1})}#ek(e,t){let n=this.#ey.get(e)??0;n+=t,this.#ey.set(e,n),e.scrollTop=n}#eT=e=>{let t=this.#eA(),{pageY:n,pageX:i}=e.touches.item(0),l=this.#eS-n;if(null===this.#e_){let e=this.#ew-i;this.#e_=Math.abs(l)>Math.abs(e)}if(!1===this.#e_)return;let a=this.#eI(l);t&&(e.cancelable&&e.preventDefault(),t[sa]&&l>0||l<0&&!a||!t[sa]&&!a?(t.scrollBy({top:l,behavior:"smooth"}),this.#ef+=l,t.scrollTop=this.#ef,this.#ex=t):a&&(this.#ex=a,this.#ek(a,l))),this.#eS=n,this.#eC=l};#eA(){let e=this.#L.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#eO=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#eE=document.elementsFromPoint(t,n).filter(e=>this.#L.contains(e)),this.#eS=n,this.#ew=t,this.#ef=this.#eA()?.scrollTop??0,this.#eE))this.#ey.set(e,e.scrollTop);this.#e_=null,this.#ex=void 0};#eL=()=>{if(this.#e_=null,this.#ex){let e=this.#eA();(this.#ex!==e||e[sa])&&this.#ex.scrollBy({top:4*this.#eC,behavior:"smooth"})}}}eP=[aA("x-foldview-slot-ng",[a6,aH,sd])],eM=[],eR=HTMLElement,(class extends eR{static{eA=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eR[Symbol.metadata]??null):void 0;aw(null,ek={value:eA},eP,{kind:"class",name:eA.name,metadata:e},null,eM),eA=ek.value,e&&Object.defineProperty(eA,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eA,eM)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sr]=this)}}),eF=[aA("x-foldview-toolbar-ng",[a6,aH])],eH=[],ej=HTMLElement,class extends ej{static{eD=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ej[Symbol.metadata]??null):void 0;aw(null,eN={value:eD},eF,{kind:"class",name:eD.name,metadata:e},null,eH),eD=eN.value,e&&Object.defineProperty(eD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eD,eH)}#eg=void 0;connectedCallback(){let e=so(this,"X-FOLDVIEW-NG");this.#eg=e?.[ss],this.#eg?.observe(this)}dispose(){this.#eg?.unobserve(this)}};let sc=(eq=[],eY=[],eG=[],eJ=[],eK=[],eQ=[],eZ=[],e0=[],e1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eU=[aM("src",!0)],eV=[aM("placeholder",!0)],e$=[aM("blur-radius",!0)],eB=[aM("crossorigin",!0)],eX=[aM("referrerpolicy",!0)],aw(this,null,eV,{kind:"method",name:"_preloadPlaceholder",static:!1,private:!1,access:{has:e=>"_preloadPlaceholder"in e,get:e=>e._preloadPlaceholder},metadata:e},null,eq),aw(null,null,eU,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},eY,eG),aw(null,null,e$,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eJ,eK),aw(null,null,eB,{kind:"field",name:"_handleCrossorigin",static:!1,private:!1,access:{has:e=>"_handleCrossorigin"in e,get:e=>e._handleCrossorigin,set:(e,t)=>{e._handleCrossorigin=t}},metadata:e},eQ,eZ),aw(null,null,eX,{kind:"field",name:"_handleReferrerpolicy",static:!1,private:!1,access:{has:e=>"_handleReferrerpolicy"in e,get:e=>e._handleReferrerpolicy,set:(e,t)=>{e._handleReferrerpolicy=t}},metadata:e},e0,e1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#L=a_(this,eq);#eP=ak(()=>this.#L.shadowRoot,"#img");_handleSrc=a_(this,eY,aL(this.#eP,"src",e=>e||this.#L.getAttribute("placeholder")));_preloadPlaceholder(e){e&&(new Image().src=e)}_handleBlurRadius=(a_(this,eG),a_(this,eJ,aI(this.#eP,"--blur-radius",void 0,!0)));_handleCrossorigin=(a_(this,eK),a_(this,eQ,aL(this.#eP,"crossorigin")));_handleReferrerpolicy=(a_(this,eZ),a_(this,e0,aL(this.#eP,"referrerpolicy")));#eM=(a_(this,e1),()=>{let e=this.#eP().src,t=this.#L.getAttribute("placeholder");t&&e!==t&&(this.#eP().src=t)});constructor(e){this.#L=e,this.#eP().addEventListener("error",this.#eM)}connectedCallback(){(null===this.#L.getAttribute("src")||""===this.#L.getAttribute("src"))&&this._handleSrc(null)}}),sh=(e3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e2=[aN("load")],e4=[aN("error")],aw(this,null,e2,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,e3),aw(this,null,e4,{kind:"method",name:"_enableErrorEvent",static:!1,private:!1,access:{has:e=>"_enableErrorEvent"in e,get:e=>e._enableErrorEvent},metadata:e},null,e3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=a_(this,e3);#eP=ak(()=>this.#L.shadowRoot,"#img");_enableLoadEvent(e){e?this.#eP().addEventListener("load",this.#eR,{passive:!0}):this.#eP().removeEventListener("load",this.#eR)}_enableErrorEvent(e){e?this.#eP().addEventListener("error",this.#eN,{passive:!0}):this.#eP().removeEventListener("error",this.#eN)}#eR=()=>{this.#L.dispatchEvent(new CustomEvent("load",{...aD,detail:{width:this.#eP().naturalWidth,height:this.#eP().naturalHeight}}))};#eN=()=>{this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{}}))};constructor(e){this.#L=e}});e7=[aA("filter-image",[aH,sc,(ez=[],eW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(null,null,[aM("drop-shadow",!0)],{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},ez,eW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#L;#eP=ak(()=>this.#L.shadowRoot,"#img");_handleBlurRadius=a_(this,ez,aI(this.#eP,"--drop-shadow",void 0,!0));constructor(e){a_(this,eW),this.#L=e}}),sh],aG({}))],e9=[],e5=HTMLElement,(class extends e5{static{e6=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(e5[Symbol.metadata]??null):void 0;aw(null,e8={value:e6},e7,{kind:"class",name:e6.name,metadata:e},null,e9),e6=e8.value,e&&Object.defineProperty(e6,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(e6,e9)}}),tn=[aA("x-image",[aH,sc,sh],aG({}))],ti=[],tl=HTMLElement,class extends tl{static{tt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tl[Symbol.metadata]??null):void 0;aw(null,te={value:tt},tn,{kind:"class",name:tt.name,metadata:e},null,ti),tt=te.value,e&&Object.defineProperty(tt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(tt,ti)}};let su={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};tY=[aA("x-input",[aH,(tx=[],tC=[],tT=[],tO=[],tL=[],tI=[],tk=[],tA=[],tP=[],tM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ty=[aM("placeholder",!0)],tE=[aM("placeholder-color",!0)],tS=[aM("placeholder-font-family",!0)],tw=[aM("placeholder-font-size",!0)],t_=[aM("placeholder-font-weight",!0)],aw(null,null,ty,{kind:"field",name:"_handlerPlaceholder",static:!1,private:!1,access:{has:e=>"_handlerPlaceholder"in e,get:e=>e._handlerPlaceholder,set:(e,t)=>{e._handlerPlaceholder=t}},metadata:e},tx,tC),aw(null,null,tE,{kind:"field",name:"_handlerPlaceholderColor",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderColor"in e,get:e=>e._handlerPlaceholderColor,set:(e,t)=>{e._handlerPlaceholderColor=t}},metadata:e},tT,tO),aw(null,null,tS,{kind:"field",name:"_handlerPlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontFamily"in e,get:e=>e._handlerPlaceholderFontFamily,set:(e,t)=>{e._handlerPlaceholderFontFamily=t}},metadata:e},tL,tI),aw(null,null,tw,{kind:"field",name:"_handlerPlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontSize"in e,get:e=>e._handlerPlaceholderFontSize,set:(e,t)=>{e._handlerPlaceholderFontSize=t}},metadata:e},tk,tA),aw(null,null,t_,{kind:"field",name:"_handlerPlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontWeight"in e,get:e=>e._handlerPlaceholderFontWeight,set:(e,t)=>{e._handlerPlaceholderFontWeight=t}},metadata:e},tP,tM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#L;#eD=ak(()=>this.#L.shadowRoot,"#input");_handlerPlaceholder=a_(this,tx,aL(this.#eD,"placeholder"));_handlerPlaceholderColor=(a_(this,tC),a_(this,tT,aI(this.#eD,"--placeholder-color",void 0,!0)));_handlerPlaceholderFontFamily=(a_(this,tO),a_(this,tL,aI(this.#eD,"--placeholder-font-family",void 0,!0)));_handlerPlaceholderFontSize=(a_(this,tI),a_(this,tk,aI(this.#eD,"--placeholder-font-size",void 0,!0)));_handlerPlaceholderFontWeight=(a_(this,tA),a_(this,tP,aI(this.#eD,"--placeholder-font-weight",void 0,!0)));constructor(e){a_(this,tM),this.#L=e}}),(tF=[],tH=[],tj=[],tz=[],tW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tR=[aM("value",!1)],tN=[aM("disabled",!0)],tD=[aM("autocomplete",!0)],aw(this,null,tR,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,tF),aw(null,null,tN,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},tH,tj),aw(null,null,tD,{kind:"field",name:"_handleAutocomplete",static:!1,private:!1,access:{has:e=>"_handleAutocomplete"in e,get:e=>e._handleAutocomplete,set:(e,t)=>{e._handleAutocomplete=t}},metadata:e},tz,tW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#L=a_(this,tF);#eD=ak(()=>this.#L.shadowRoot,"#input");_handleValue(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#eD();t.value!==e&&(t.value=e)}_handleDisabled=a_(this,tH,aL(this.#eD,"disabled",e=>null!==e?"":null));_handleAutocomplete=(a_(this,tj),a_(this,tz,aL(this.#eD,"autocomplete")));constructor(e){a_(this,tW),this.#L=e}}),(tc=[],th=[],tu=[],tm=[],tp=[],tb=[],tv=[],tg=[],tf=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ta=[aM("confirm-type",!0)],ts=[aM("maxlength",!0)],tr=[aM("readonly",!0)],to=[aM("type",!0)],td=[aM("ios-spell-check",!0),aM("spell-check",!0)],aw(this,null,to,{kind:"method",name:"_handleType",static:!1,private:!1,access:{has:e=>"_handleType"in e,get:e=>e._handleType},metadata:e},null,tc),aw(null,null,ta,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},th,tu),aw(null,null,ts,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},tm,tp),aw(null,null,tr,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},tb,tv),aw(null,null,td,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},tg,tf),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#L=a_(this,tc);#eD=ak(()=>this.#L.shadowRoot,"#input");_handlerConfirmType=a_(this,th,aL(this.#eD,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(a_(this,tu),a_(this,tm,aL(this.#eD,"maxlength",e=>null===e?"140":e)));_handleReadonly=(a_(this,tp),a_(this,tb,aL(this.#eD,"readonly",e=>null!==e?"":null)));#eF=(a_(this,tv),aL(this.#eD,"type"));#eH=aL(this.#eD,"inputmode");_handleType(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#eH(t),this.#eF(n)}_handleSpellCheck=a_(this,tg,aL(this.#eD,"spellcheck",e=>null===e?"false":"true"));constructor(e){a_(this,tf),this.#L=e}}),(tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tU=[aM("input-filter",!0),aN("lynxinput")],tV=[aM("send-composing-input",!0)],t$=[aN("selection")],aw(this,null,tU,{kind:"method",name:"_handleEnableInputEvent",static:!1,private:!1,access:{has:e=>"_handleEnableInputEvent"in e,get:e=>e._handleEnableInputEvent},metadata:e},null,tB),aw(this,null,tV,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,tB),aw(this,null,t$,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#L=a_(this,tB);#ej=!1;#eD=ak(()=>this.#L.shadowRoot,"#input");#ez=ak(()=>this.#L.shadowRoot,"#form");_handleEnableInputEvent(e){let t=this.#eD();e?(t.addEventListener("input",this.#eW,{passive:!0}),t.addEventListener("compositionend",this.#eU,{passive:!0})):(t.removeEventListener("input",this.#eW),t.removeEventListener("compositionend",this.#eU))}_handleSendComposingInput(e){this.#ej=null!==e}#eV=e=>{let t=su[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...aD,detail:{value:this.#eD().value}}))};#eW=e=>{let t=this.#eD(),n=this.#L.getAttribute("input-filter"),i=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=i,(!l||this.#ej)&&this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#eU=()=>{let e=this.#eD(),t=this.#L.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#ej||this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#eD().addEventListener("select",this.#e$,{passive:!0}):this.#eD().removeEventListener("select",this.#e$)}#e$=()=>{let e=this.#eD();this.#L.dispatchEvent(new CustomEvent("selection",{...aD,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eB=e=>{e.target===this.#eD()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;const t=this.#eD(),n=this.#ez();t.addEventListener("blur",this.#eV,{passive:!0}),t.addEventListener("focus",this.#eV,{passive:!0}),n.addEventListener("submit",this.#eV,{passive:!0}),n.addEventListener("input",this.#eB,{passive:!0})}})],aJ)],tG=[],tJ=HTMLElement,(class extends tJ{static{tq=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tJ[Symbol.metadata]??null):void 0;aw(null,tX={value:tq},tY,{kind:"class",name:tq.name,metadata:e},null,tG),tq=tX.value,e&&Object.defineProperty(tq,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(tq,tG)}#eX=ak(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#eX(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#eX();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#eX();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#eX();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#eX().setAttribute("pattern",e.pattern)}select(){let e=this.#eX();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#eX().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#eX().focus(e)}blur(){this.#eX().blur()}connectedCallback(){let e=this.#eX();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),t2=[aA("x-overlay-ng",[aH,(tZ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tK=[aM("events-pass-through",!0)],tQ=[aM("visible",!1)],aw(this,null,tK,{kind:"method",name:"_handleEventsPassThrough",static:!1,private:!1,access:{has:e=>"_handleEventsPassThrough"in e,get:e=>e._handleEventsPassThrough},metadata:e},null,tZ),aw(this,null,tQ,{kind:"method",name:"_handleVisible",static:!1,private:!1,access:{has:e=>"_handleVisible"in e,get:e=>e._handleVisible},metadata:e},null,tZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#L=a_(this,tZ);#eq=!!window.HTMLDialogElement;#eY=!1;constructor(e){this.#L=e}#eG=ak(()=>this.#L.shadowRoot,"#dialog");_handleEventsPassThrough(e){null!==e?(this.#eG().addEventListener("click",this.#eJ,{passive:!1}),this.#L.addEventListener("click",this.#eJ,{passive:!1})):(this.#eG().removeEventListener("click",this.#eJ),this.#L.removeEventListener("click",this.#eJ))}_handleVisible(e){this.#eY=null!==e,this.#eq&&(this.#eY?(this.#eG().showModal(),this.#L.dispatchEvent(new CustomEvent("showoverlay",aD))):(this.#eG().close(),this.#L.dispatchEvent(new CustomEvent("dismissoverlay",aD))))}#eJ=e=>{e.stopPropagation();let t=this.#eG();if(e.target===this.#L||e.target===t){t.close();let{clientX:n,clientY:i}=e,l=document.elementFromPoint(n,i);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,i)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#eY&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#eq||(this.#eG().style.display="none")}})],aQ)],t4=[],t3=HTMLElement,class extends t3{static{t1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t3[Symbol.metadata]??null):void 0;aw(null,t0={value:t1},t2,{kind:"class",name:t1.name,metadata:e},null,t4),t1=t0.value,e&&Object.defineProperty(t1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(t1,t4)}get[aF](){return this.shadowRoot.firstElementChild}};class sm extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sm.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sp{#L;static observedAttributes=[];#eK;constructor(e){this.#L=e}connectedCallback(){if(IntersectionObserver&&!this.#eK){let e=this.#L.parentElement;e&&(this.#eK=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#L.dispatchEvent(new sm(t,n)),n&&this.#L.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#eK.observe(this.#L))}}dispose(){this.#eK&&(this.#eK.disconnect(),this.#eK=void 0)}}t7=[aA("x-refresh-footer",[a6,aH,sp])],t9=[],t5=HTMLElement,(class extends t5{static{t6=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t5[Symbol.metadata]??null):void 0;aw(null,t8={value:t6},t7,{kind:"class",name:t6.name,metadata:e},null,t9),t6=t8.value,e&&Object.defineProperty(t6,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(t6,t9)}connectedCallback(){this.setAttribute("slot","footer")}}),nn=[aA("x-refresh-header",[a6,aH,sp])],ni=[],nl=HTMLElement,(class extends nl{static{nt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nl[Symbol.metadata]??null):void 0;aw(null,ne={value:nt},nn,{kind:"class",name:nt.name,metadata:e},null,ni),nt=ne.value,e&&Object.defineProperty(nt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(nt,ni)}connectedCallback(){this.setAttribute("slot","header")}}),nc=[aA("x-refresh-view",[a6,aH,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[aN("headeroffset"),aN("headershow"),aN("footeroffset")],ns=[aN("startrefresh"),aN("headerreleased"),aN("startloadmore"),aN("footerreleased")],aw(this,null,na,{kind:"method",name:"_handleComplexEventEnableAttributes",static:!1,private:!1,access:{has:e=>"_handleComplexEventEnableAttributes"in e,get:e=>e._handleComplexEventEnableAttributes},metadata:e},null,nr),aw(this,null,ns,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,nr);static observedAttributes=[];#eQ=ak(()=>this.#L,"x-refresh-view > x-refresh-header:first-of-type");#eZ=ak(()=>this.#L,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#L=e,this.#L.addEventListener(sm.EventName,this.#e0)}#e1={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};_handleComplexEventEnableAttributes(e,t){this.#e1[t]=e;let{headeroffset:n,headershow:i,footeroffset:l}=this.#e1;n||i||l?this.#e2():this.#e4()}_handleXEnableHeaderOffsetEvent(e,t){this.#e1[t]=e;let{startrefresh:n,headerreleased:i,startloadmore:l,footerreleased:a}=this.#e1;i||a||l||n?this.#e3():this.#e8()}#e6=!1;#e7=!1;#e9=!1;#e5=!1;#e0=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#e6=e.startShowing,this.#e7=e.fullyShowing):(this.#e9=e.startShowing,this.#e5=e.fullyShowing)};#te=!1;#e3(){this.#te||(this.#L.addEventListener("touchend",this.#tt),this.#te=!0)}#tt=()=>{this.#e7?(this.#L.dispatchEvent(new CustomEvent("headerreleased",aD)),this.#L.dispatchEvent(new CustomEvent("startrefresh",{...aD,detail:{isManual:this.#L._nextRefreshIsManual}})),this.#L._nextRefreshIsManual=!0):("true"===this.#L.getAttribute("enable-auto-loadmore")&&this.#e9||this.#e5)&&(this.#L.dispatchEvent(new CustomEvent("footerreleased",aD)),this.#L.dispatchEvent(new CustomEvent("startloadmore",aD)))};#e8(){this.#te&&this.#L.removeEventListener("touchend",this.#tt)}#tn=!1;#ti=!1;#e2(){this.#ti||(this.#L.addEventListener("touchstart",this.#tl),this.#L.addEventListener("touchend",this.#ta),this.#L.addEventListener("touchcancel",this.#ta),this.#L.shadowRoot.querySelector("#container").addEventListener("scroll",this.#V))}#ta=()=>{this.#tn=!1};#tl=()=>{this.#tn=!0};#V=()=>{if(this.#e6&&(this.#e1.headershow||this.#e1.headeroffset)){let e=this.#eQ();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#L.shadowRoot.querySelector("#container").scrollTop;this.#L.dispatchEvent(new CustomEvent("headershow",{...aD,detail:{isDragging:this.#tn,offsetPercent:1-n/t}})),this.#L.dispatchEvent(new CustomEvent("headeroffset",{...aD,detail:{isDragging:this.#tn,offsetPercent:1-n/t}}))}}else if(this.#e9&&this.#e1.footeroffset){let e=this.#eZ();if(e){let t=this.#L.shadowRoot.querySelector("#container").scrollTop,n=parseFloat(getComputedStyle(e).height);this.#L.dispatchEvent(new CustomEvent("footeroffset",{...aD,detail:{isDragging:this.#tn,offsetPercent:1-t/n}}))}}};#e4(){this.#ti&&(this.#L.removeEventListener("touchstart",this.#tl),this.#L.removeEventListener("touchend",this.#ta),this.#L.removeEventListener("touchcancel",this.#ta),this.#L.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#V))}dispose(){this.#e8(),this.#e4()}})],aZ)],nh=[],nu=HTMLElement,(class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;aw(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#ts=ak(()=>this.shadowRoot,"#container");#tr=ak(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#ts(),t=this.#tr();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#ts(),n=this.#tr();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tr().scrollHeight}get[a$](){return this}static{a_(nd,nh)}}),ny=[aA("x-svg",[aH,(nv=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nm=[aM("src",!0)],np=[aM("content",!0)],nb=[aN("load")],aw(this,null,nm,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,nv),aw(this,null,np,{kind:"method",name:"_handleContent",static:!1,private:!1,access:{has:e=>"_handleContent"in e,get:e=>e._handleContent},metadata:e},null,nv),aw(this,null,nb,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,nv),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#L=a_(this,nv);#n=null;#eP=ak(()=>this.#L.shadowRoot,"#img");_handleSrc(e){e?this.#eP().src=e:this.#eP().src=""}_handleContent(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#eP().src=n}_enableLoadEvent(e){e?this.#eP().addEventListener("load",this.#eR,{passive:!0}):this.#eP().removeEventListener("load",this.#eR)}#eR=()=>{this.#L.dispatchEvent(new CustomEvent("load",{...aD,detail:{width:this.#eP().naturalWidth,height:this.#eP().naturalHeight}}))};constructor(e){this.#L=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nE=[],nS=HTMLElement,(class extends nS{static{nf=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nS[Symbol.metadata]??null):void 0;aw(null,ng={value:nf},ny,{kind:"class",name:nf.name,metadata:e},null,nE),nf=ng.value,e&&Object.defineProperty(nf,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(nf,nE)}}),nx=[aA("x-swiper-item",[a6,aH])],nC=[],nT=HTMLElement,(class extends nT{static{n_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nT[Symbol.metadata]??null):void 0;aw(null,nw={value:n_},nx,{kind:"class",name:n_.name,metadata:e},null,nC),n_=nw.value,e&&Object.defineProperty(n_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(n_,nC)}}),n0=[aA("x-swiper",[aH,(nU=[],nV=[],n$=[],nB=[],nX=[],nq=[],nY=[],nG=[],nJ=[],nK=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nF=[aM("indicator-color",!0)],nH=[aM("indicator-active-color",!0)],nj=[aM("page-margin",!0)],nz=[aM("previous-margin",!0)],nW=[aM("next-margin",!0)],aw(null,null,nF,{kind:"field",name:"_handleIndicatorColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorColor"in e,get:e=>e._handleIndicatorColor,set:(e,t)=>{e._handleIndicatorColor=t}},metadata:e},nU,nV),aw(null,null,nH,{kind:"field",name:"_handleIndicatorActiveColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorActiveColor"in e,get:e=>e._handleIndicatorActiveColor,set:(e,t)=>{e._handleIndicatorActiveColor=t}},metadata:e},n$,nB),aw(null,null,nj,{kind:"field",name:"_handlePageMargin",static:!1,private:!1,access:{has:e=>"_handlePageMargin"in e,get:e=>e._handlePageMargin,set:(e,t)=>{e._handlePageMargin=t}},metadata:e},nX,nq),aw(null,null,nz,{kind:"field",name:"_handlePreviousMargin",static:!1,private:!1,access:{has:e=>"_handlePreviousMargin"in e,get:e=>e._handlePreviousMargin,set:(e,t)=>{e._handlePreviousMargin=t}},metadata:e},nY,nG),aw(null,null,nW,{kind:"field",name:"_handleNextMargin",static:!1,private:!1,access:{has:e=>"_handleNextMargin"in e,get:e=>e._handleNextMargin,set:(e,t)=>{e._handleNextMargin=t}},metadata:e},nJ,nK),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#L;#to=0;#td=ak(()=>this.#L.shadowRoot,"#indicator-container");#tc=ak(()=>this.#L.shadowRoot,"#indicator-style");#th;constructor(e){a_(this,nK),this.#L=e}_handleIndicatorColor=a_(this,nU,aI(this.#td,"--indicator-color",void 0,!0));_handleIndicatorActiveColor=(a_(this,nV),a_(this,n$,aI(this.#td,"--indicator-active-color",void 0,!0)));_handlePageMargin=(a_(this,nB),a_(this,nX,aI(this.#td,"--page-margin",void 0,!0)));_handlePreviousMargin=(a_(this,nq),a_(this,nY,aI(this.#td,"--previous-margin",void 0,!0)));_handleNextMargin=(a_(this,nG),a_(this,nJ,aI(this.#td,"--next-margin",void 0,!0)));#tu(){let e=this.#L.childElementCount;if(e!==this.#to){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#td().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#L.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#tc().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#to=e}connectedCallback(){this.#tu(),this.#th=new MutationObserver(this.#tu.bind(this)),this.#th.observe(this.#L,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#L.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#L.childElementCount,i=this.#td();for(let e=0;e<n;e++){let n=i.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),aT(()=>{this.#td().children[this.#L.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#th?.disconnect(),this.#th=void 0}}),(nL=[],nI=[],nk=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nO=[aN("transition")],aw(this,null,[aN("scrollstart"),aN("lynxscrollend"),aN("change"),aN("change-event-for-indicator")],{kind:"method",name:"_enableScrollEventProcessor",static:!1,private:!1,access:{has:e=>"_enableScrollEventProcessor"in e,get:e=>e._enableScrollEventProcessor},metadata:e},null,nL),aw(null,null,nO,{kind:"field",name:"_handleEnableTransitionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableTransitionEvent"in e,get:e=>e._handleEnableTransitionEvent,set:(e,t)=>{e._handleEnableTransitionEvent=t}},metadata:e},nI,nk),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=a_(this,nL);#tm=0;#tp=0;#tn=!1;#M;#tb=!1;constructor(e){this.#L=e}#tr=ak(()=>this.#L.shadowRoot,"#content").bind(this);_handleEnableTransitionEvent=a_(this,nI,aO(this.#tr,"scroll",this.#tv,{passive:!0}));#V(){aU||(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#tb||(this.#L.dispatchEvent(new CustomEvent("scrollstart",{...aD,detail:{current:this.#tm,isDragged:this.#tn}})),this.#tb=!0);let e=this.#tr(),t=this.#L.isVertical,n=t?e.scrollTop:e.scrollLeft,i=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#tp-n)>i/4||n<10||Math.abs(n-l)<=i){let e=this.#L.currentIndex;e!==this.#tm&&(this.#L.dispatchEvent(new CustomEvent("change",{...aD,detail:{current:e,isDragged:this.#tn}})),this.#tm=e),this.#tp=n}}#B(){this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aD,detail:{current:this.#tm}})),this.#tb=!1}#tg(){this.#tn=!0}#tf(){this.#tn=!1}#tv(){this.#L.dispatchEvent(new CustomEvent("transition",{...aD,detail:{dx:this.#tr().scrollLeft,dy:this.#tr().scrollTop}}))}#ty=(a_(this,nk),[aO(this.#tr,"scroll",this.#V.bind(this),{passive:!0}),aO(this.#tr,"touchstart",this.#tg.bind(this),{passive:!0}),aO(this.#tr,"touchend",this.#tf.bind(this),{passive:!0}),aO(this.#tr,"touchcancel",this.#tf.bind(this),{passive:!0}),aO(this.#tr,"scrollend",this.#B.bind(this),{passive:!0})]);#e1={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};_enableScrollEventProcessor(e,t){this.#e1[t]=e;let{lynxscrollend:n,scrollstart:i,change:l}=this.#e1,a=l||n||i||this.#e1["change-event-for-indicator"];this.#ty.forEach(e=>e(a))}connectedCallback(){this.#tm=parseFloat(this.#L.getAttribute("current")??"0");let e=this.#L.isVertical;this.#tp=e?this.#tr().scrollTop:this.#tr().scrollLeft}}),(nD=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nR=[aM("circular",!1)],nN=[aM("vertical",!0)],aw(this,null,nR,{kind:"method",name:"_handleCircular",static:!1,private:!1,access:{has:e=>"_handleCircular"in e,get:e=>e._handleCircular},metadata:e},null,nD),aw(this,null,nN,{kind:"method",name:"_handleVerticalChange",static:!1,private:!1,access:{has:e=>"_handleVerticalChange"in e,get:e=>e._handleVerticalChange},metadata:e},null,nD),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#L=a_(this,nD);#tE=!1;#tS;#tw=0;#tr=ak(()=>this.#L.shadowRoot,"#content").bind(this);constructor(e){this.#L=e}#t_=ak(()=>this.#L.shadowRoot,"#circular-start").bind(this);#tx=ak(()=>this.#L.shadowRoot,"#circular-end").bind(this);#tC(e){let t=this.#L.childElementCount;if(t>2){let{current:n,isDragged:i,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,a=this.#tr(),s=this.#t_().assignedElements(),r=this.#tx().assignedElements(),o=this.#L.firstElementChild,d=this.#L.lastElementChild,c=this.#L.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#L.children[n]),this.#tE){let t="carousel"===this.#L.getAttribute("mode")?.8*a.clientHeight/2:a.clientHeight/2;this.#tw=e.offsetTop+e.offsetHeight/2-c-t,a.scrollTop=this.#tw}else{let t="carousel"===this.#L.getAttribute("mode")?.8*a.clientWidth/2:a.clientWidth/2;this.#tw=e.offsetLeft+e.offsetWidth/2-c-t,a.scrollLeft=this.#tw}if(!i){let e=this.#L.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#tT(l?"instant":"smooth")}}}}#tT(e){let t=this.#tr(),n=this.#L.snapDistance;t.scrollBy({top:this.#tE?n:0,left:this.#tE?0:n,behavior:e??"smooth"})}#ty=[aO(()=>this.#L,"change",this.#tC.bind(this),{passive:!0}),aO(()=>this.#L,"touchmove",this.#tO.bind(this),{passive:!1}),aO(()=>this.#L,"touchend",this.#tL.bind(this),{passive:!1}),aO(()=>this.#L,"touchcancel",this.#tL.bind(this),{passive:!1})];_handleCircular(e){this.#ty.forEach(t=>t(null!=e)),null!==e&&this.#tC({detail:{current:this.#L.currentIndex,isDragged:!1,__isFirstLayout:!0}})}#tO(e){let t=e.touches.item(0);if(t){let e=this.#tE?t.pageY:t.pageX;if(void 0!==this.#tS){this.#tI();let t=this.#tS-e;this.#tw+=t}this.#tS=e}}#tL(e){this.#tk(),this.#tT(),this.#tS=void 0}_handleVerticalChange(e){this.#tE=null!==e}#tA;#tI(){if(!this.#tA){let e=this.#tr();this.#tw=this.#tE?e.scrollTop:e.scrollLeft,this.#tA=setInterval(()=>{this.#tE?e.scrollTop=this.#tw:e.scrollLeft=this.#tw},10)}}#tk(){this.#tA&&(clearInterval(this.#tA),this.#tA=void 0)}dispose(){this.#tk()}}),(nM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nA=[aM("current",!1)],nP=[aM("interval",!1),aM("autoplay",!1)],aw(this,null,nA,{kind:"method",name:"_handleCurrentChange",static:!1,private:!1,access:{has:e=>"_handleCurrentChange"in e,get:e=>e._handleCurrentChange},metadata:e},null,nM),aw(this,null,nP,{kind:"method",name:"_handleAutoplay",static:!1,private:!1,access:{has:e=>"_handleAutoplay"in e,get:e=>e._handleAutoplay},metadata:e},null,nM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#L=a_(this,nM);constructor(e){this.#L=e}#tP(){this.#L.currentIndex===this.#L.childElementCount-1?this.#L.circularPlay&&(this.#L.currentIndex=0):this.#L.currentIndex+=1}_handleCurrentChange(e){let t=Number(e);Number.isNaN(t)||(this.#L.currentIndex=t)}#tM;#tR=(()=>{this.#tP()}).bind(this);#tN(e){this.#tD(),this.#tM=setInterval(this.#tR,e)}#tD(){this.#tM&&clearInterval(this.#tM)}_handleAutoplay(){if(null!==this.#L.getAttribute("autoplay")){let e=this.#L.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#tN(t)}}dispose(){this.#tD()}})],a0)],n1=[],n2=HTMLElement,(class extends n2{static{nZ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n2[Symbol.metadata]??null):void 0;aw(null,nQ={value:nZ},n0,{kind:"class",name:nZ.name,metadata:e},null,n1),nZ=nQ.value,e&&Object.defineProperty(nZ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tr=ak(()=>this.shadowRoot,"#content").bind(this);#tF(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let i=this.#tr(),l=this.isVertical,a=this.childElementCount,s=l?i.scrollTop:i.scrollLeft,r=l?i.clientHeight:i.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let i=0;i<a;i++){let a=this.children[i];if(a){let s=(l?a.offsetTop:a.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=i,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#tF().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#tH(e,t?"smooth":"instant")}#tH(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,i=0;i="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tr().scrollTo({left:e?0:i,top:e?i:0,behavior:t})}}get snapDistance(){return this.#tF().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#tH(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#tH(Number(e),"instant")}get[a$](){return this}static{a_(nZ,n1)}}),n6=[aA("inline-image",[(n4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(this,null,[aM("src",!0)],{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,n4),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#L=a_(this,n4);constructor(e){this.#L=e}#tj=ak(()=>this.#L.shadowRoot,"#img");_handleSrc(e){e?this.#tj().setAttribute("src",e):this.#tj().removeAttribute("src")}})],aG({}))],n7=[],n9=HTMLElement,(class extends n9{static{n8=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n9[Symbol.metadata]??null):void 0;aw(null,n3={value:n8},n6,{kind:"class",name:n8.name,metadata:e},null,n7),n8=n3.value,e&&Object.defineProperty(n8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(n8,n7)}}),it=[aA("inline-text",[])],ii=[],il=HTMLElement,(class extends il{static{ie=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(il[Symbol.metadata]??null):void 0;aw(null,n5={value:ie},it,{kind:"class",name:ie.name,metadata:e},null,ii),ie=n5.value,e&&Object.defineProperty(ie,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(ie,ii)}}),ir=[aA("inline-truncation",[])],io=[],id=HTMLElement,n=class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;aw(null,ia={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),n=is=ia.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{a_(is,io)}},n=is;let sb=(ic=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(this,null,[aM("text",!0)],{kind:"method",name:"_handleText",static:!1,private:!1,access:{has:e=>"_handleText"in e,get:e=>e._handleText},metadata:e},null,ic),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#L=a_(this,ic);#tz;constructor(e){this.#L=e}_handleText(e){this.#tz?.remove(),e&&(this.#tz=new Text(e),this.#L.append(this.#tz))}});im=[aA("raw-text",[sb])],ip=[],ib=HTMLElement,class extends ib{static{iu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ib[Symbol.metadata]??null):void 0;aw(null,ih={value:iu},im,{kind:"class",name:iu.name,metadata:e},null,ip),iu=ih.value,e&&Object.defineProperty(iu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(iu,ip)}};let sv=(iy=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iv=[aM("text-maxlength",!0),aM("text-maxline",!0),aM("tail-color-convert",!0)],ig=[aN("layout")],aw(this,null,iv,{kind:"method",name:"_handleAttributeChange",static:!1,private:!1,access:{has:e=>"_handleAttributeChange"in e,get:e=>e._handleAttributeChange},metadata:e},null,iy),aw(this,null,ig,{kind:"method",name:"_handleEnableLayoutEvent",static:!1,private:!1,access:{has:e=>"_handleEnableLayoutEvent"in e,get:e=>e._handleEnableLayoutEvent},metadata:e},null,iy),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#tW=(a_(this,iy),!1);#tU=!1;#tV=new Map;#t$;#k;#tB;#tX;#tq=!1;#tY=NaN;#tG=NaN;#tJ=!0;#tK=!1;get #tQ(){return!this.#tZ&&!this.#tJ}get #tZ(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#L.matches(":has(inline-truncation)");{let e=this.#L.querySelector("inline-truncation");if(e?.parentElement===this.#L)return!0}return!1}get #t0(){return!isNaN(this.#tG)&&(this.#tZ||!this.#tJ)}#L;constructor(e){this.#L=e}#t1=ak(()=>this.#L.shadowRoot,"#inner-box");#t2(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#tV.delete(e)}),"characterData"===e.type&&void 0!==this.#tV.get(e.target)&&this.#tV.set(e.target,e.target.data)})}#t4(){for(let[t,n]of this.#tV)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#L.removeAttribute(e.exceedMathLengthAttribute),this.#L.removeAttribute(e.showInlineTruncation)}#t3(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#t8(){!this.#tU||this.#L.matches("x-text>x-text")||this.#tW||(this.#tW=!0,aT(async()=>{await this.#t6(),this.#t7(),this.#tW=!1}))}async #t6(){if(this.#tB?.parentElement?.removeChild(this.#tB),this.#t4(),!this.#t0&&isNaN(this.#tY))return;await document.fonts.ready;let t=this.#t1().getBoundingClientRect();this.#tX=new sg(this.#L,t);let n=this.#tX,i=(isNaN(this.#tY)?void 0:n.getNodeInfoByCharIndex(this.#tY))?this.#tY:1/0,l=this.#t0&&n.getLineInfo(this.#tG)?n.getLineInfo(this.#tG-1):void 0,a=1/0,s=3;if(l){let{start:i,end:r}=l,o=r-i;if(this.#tZ){this.#L.setAttribute(e.showInlineTruncation,"");let l=this.#L.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){a=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(a),i=r-t.start;for(e.setEnd(t.node,i),e.setStart(t.node,i);e.getBoundingClientRect().width<o&&(a-=1)&&(t=n.getNodeInfoByCharIndex(a));)e.setStart(t.node,a-t.start)}else a=i,this.#L.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,a=i):a=r-3}let r=Math.min(i,a);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let i=r-t.start,l=t.node,a=[];l.nodeType===Node.TEXT_NODE?(this.#tV.set(l,l.data),l.data=l.data.substring(0,i)):a.push(l),a=a.concat(this.#t3(l));let o=l.parentElement;for(;o!==this.#L;)a=a.concat(this.#t3(o)),o=o.parentElement;if(a.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#tV.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#tV.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#tQ){let e=(0===i?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#tB=new Text(Array(s).fill(".").join("")),e.append(this.#tB)}this.#L.setAttribute(e.exceedMathLengthAttribute,"")}this.#t9(r)}}#t5=e=>{this.#t2(e),this.#t8()};#ne=()=>{if(this.#tq){this.#tq=!1;return}this.#t8()};#t7(){this.#tU&&((this.#tY||this.#tG)&&!this.#t$&&(this.#t$=new MutationObserver(this.#t5),this.#t$.observe(this.#L,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#tG&&!this.#k&&(this.#k=new ResizeObserver(this.#ne),this.#tq=!0,this.#k.observe(this.#t1(),{box:"content-box"})))}#nt(){this.#t$?.disconnect(),this.#t$=void 0,this.#k?.disconnect(),this.#k=void 0}_handleAttributeChange(){this.#tY=parseFloat(this.#L.getAttribute("text-maxlength")??""),this.#tG=parseFloat(this.#L.getAttribute("text-maxline")??""),this.#tJ="false"!==this.#L.getAttribute("tail-color-convert"),this.#tY<0&&(this.#tY=NaN),this.#tG<1&&(this.#tG=NaN),isNaN(this.#tG)?this.#t1().style.removeProperty("-webkit-line-clamp"):this.#t1().style.webkitLineClamp=this.#tG.toString(),this.#t8()}_handleEnableLayoutEvent(e){this.#tK=e}#t9(e){if(!this.#tK)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#tX||(t.#tX=new sg(t.#L,t.#L.getBoundingClientRect())),t.#tX.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let i=parseFloat(n.toString());if(!isNaN(i)){t.#tX||(t.#tX=new sg(t.#L,t.#L.getBoundingClientRect()));let n=t.#tX.getLineInfo(i);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#L.dispatchEvent(new CustomEvent("layout",{...aD,detail:t}))}dispose(){this.#nt()}connectedCallback(){this.#tU=!0,this._handleEnableLayoutEvent(this.#tK),this._handleAttributeChange(),aT(()=>{this.#t9()})}});class sg{#nn=[{start:0}];#ni=[];#nl=[];#L;#na;nodelist;constructor(e,t){this.#L=e,this.nodelist=new sf(this.#L),this.#na=t}#ns(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,i=e.node,l=document.createRange();l.selectNode(i);for(let e=0;e<i.data.length;e++){l.setEnd(i,e);let a=l.getClientRects().item(n);if(a&&a.right===t.right)return e}return i.data.length}}#nr(e){if(this.#ni[e])return;let{left:t}=this.#na,n=this.#ni[this.#ni.length-1],i=n?.[n.length-1],l=i?.nodeIndex?i?.nodeIndex+1:0;for(let n=l,i;(i=this.#no(n))&&e>=this.#ni.length;n++){let e,{node:n}=i;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#ni[this.#ni.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#ni.push([{...i,rect:l,rectIndex:0}]):n.push({...i,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let a=e[n];(a.left!==l.left||a.bottom!==l.bottom)&&(.2>Math.abs(a.left-t)?this.#ni.push([{...i,rect:a,rectIndex:n}]):this.#ni[this.#ni.length-1].push({...i,rect:a,rectIndex:n}))}}}}getLineCount(){return this.#nr(1/0),this.#ni.length}getLineInfo(e){if(this.#nr(e+1),e<this.#ni.length){let t=e>0?this.#nn[e-1]??{}:void 0,n=this.#nn[e]??{},i=e<this.#ni.length-1?this.#nn[e+1]??{}:void 0;if(void 0===n.start){let i=this.#ni[e-1],l=i[i.length-1],a=this.#ns(l),s=l.start+a;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#ni[e],l=t[t.length-1];if(e===this.#ni.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#ns(l);n.end=l.start+e,i.start=n.end+1}}return n}}#no(e){let t=this.#nl.length-1,n=this.#nl[t],i=n?n.start+n.length:0;for(let t=this.#nl.length,n;(n=this.nodelist.at(t))&&e>=this.#nl.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:i,nodeIndex:t};this.#nl.push(l)}return this.#nl[e]}getNodeInfoByCharIndex(e){let t,n=0,i=this.#nl.length-1;for(;n<=i;){let l=Math.floor((n+i)/2),a=this.#nl[l],s=a.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=a.start;if(e>=o&&e<o+r){t=a;break}e<o?i=l-1:n=l+1}if(t)return t;for(let t=this.#nl.length,n;n=this.#no(t);t++)if(e<n.start+n.length)return n}}class sf{#nd=[];#nc;constructor(e){this.#nc=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#nd[e]||this.#nh(e),this.#nd[e]}#nh(e){let t=null;for(;e>=this.#nd.length&&(t=this.#nc.nextNode());){this.#nd.push(t);break}}}iw=[aA("x-text",[aH,sv,sb],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],i_=[],ix=HTMLElement,(class extends ix{static{iS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ix[Symbol.metadata]??null):void 0;aw(null,iE={value:iS},iw,{kind:"class",name:iS.name,metadata:e},null,i_),iS=iE.value,e&&Object.defineProperty(iS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aX.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aF]=this;static{a_(iS,i_)}}),ld=[aA("x-textarea",[aH,(ik=[],iA=[],iP=[],iM=[],iR=[],iN=[],iD=[],iF=[],iH=[],ij=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iC=[aM("placeholder-color",!0)],iT=[aM("placeholder-font-size",!0)],iO=[aM("placeholder-font-weight",!0)],iL=[aM("placeholder-font-family",!0)],iI=[aM("placeholder",!0)],aw(null,null,iC,{kind:"field",name:"_updatePlaceholderColor",static:!1,private:!1,access:{has:e=>"_updatePlaceholderColor"in e,get:e=>e._updatePlaceholderColor,set:(e,t)=>{e._updatePlaceholderColor=t}},metadata:e},ik,iA),aw(null,null,iT,{kind:"field",name:"_updatePlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontSize"in e,get:e=>e._updatePlaceholderFontSize,set:(e,t)=>{e._updatePlaceholderFontSize=t}},metadata:e},iP,iM),aw(null,null,iO,{kind:"field",name:"_updatePlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontWeight"in e,get:e=>e._updatePlaceholderFontWeight,set:(e,t)=>{e._updatePlaceholderFontWeight=t}},metadata:e},iR,iN),aw(null,null,iL,{kind:"field",name:"_updatePlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontFamily"in e,get:e=>e._updatePlaceholderFontFamily,set:(e,t)=>{e._updatePlaceholderFontFamily=t}},metadata:e},iD,iF),aw(null,null,iI,{kind:"field",name:"_handlePlaceholder",static:!1,private:!1,access:{has:e=>"_handlePlaceholder"in e,get:e=>e._handlePlaceholder,set:(e,t)=>{e._handlePlaceholder=t}},metadata:e},iH,ij),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#nu=ak(()=>this.#L.shadowRoot,"#textarea");_updatePlaceholderColor=a_(this,ik,aI(this.#nu,"--placeholder-color",void 0,!0));_updatePlaceholderFontSize=(a_(this,iA),a_(this,iP,aI(this.#nu,"--placeholder-font-size",void 0,!0)));_updatePlaceholderFontWeight=(a_(this,iM),a_(this,iR,aI(this.#nu,"--placeholder-font-weight",void 0,!0)));_updatePlaceholderFontFamily=(a_(this,iN),a_(this,iD,aI(this.#nu,"--placeholder-font-family",void 0,!0)));_handlePlaceholder=(a_(this,iF),a_(this,iH,aL(this.#nu,"placeholder")));#L=a_(this,ij);constructor(e){this.#L=e}}),(iB=[],iX=[],iq=[],iY=[],iG=[],iJ=[],iK=[],iQ=[],iZ=[],i0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iz=[aM("confirm-type",!0)],iW=[aM("maxlength",!0)],iU=[aM("readonly",!0)],iV=[aM("ios-spell-check",!0)],i$=[aM("show-soft-input-onfocus",!0)],aw(null,null,iz,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},iB,iX),aw(null,null,iW,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},iq,iY),aw(null,null,iU,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},iG,iJ),aw(null,null,iV,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},iK,iQ),aw(null,null,i$,{kind:"field",name:"_handleShowSoftInputOnfocus",static:!1,private:!1,access:{has:e=>"_handleShowSoftInputOnfocus"in e,get:e=>e._handleShowSoftInputOnfocus,set:(e,t)=>{e._handleShowSoftInputOnfocus=t}},metadata:e},iZ,i0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#L;#nm=ak(()=>this.#L.shadowRoot,"#textarea");_handlerConfirmType=a_(this,iB,aL(this.#nm,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(a_(this,iX),a_(this,iq,aL(this.#nm,"maxlength",e=>null===e?"140":e)));_handleReadonly=(a_(this,iY),a_(this,iG,aL(this.#nm,"readonly",e=>null!==e?"":null)));_handleSpellCheck=(a_(this,iJ),a_(this,iK,aL(this.#nm,"spellcheck",e=>null===e?"false":"true")));_handleShowSoftInputOnfocus=(a_(this,iQ),a_(this,iZ,aL(this.#nm,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){a_(this,i0),this.#L=e}}),(i6=[],i7=[],i9=[],i5=[],le=[],lt=[],ln=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1=[aM("confirm-enter",!0)],i2=[aM("disabled",!0)],i4=[aM("max-height",!0)],i3=[aM("min-height",!0)],i8=[aM("value",!1)],aw(this,null,i1,{kind:"method",name:"_handleConfirmEnter",static:!1,private:!1,access:{has:e=>"_handleConfirmEnter"in e,get:e=>e._handleConfirmEnter},metadata:e},null,i6),aw(this,null,i8,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,i6),aw(null,null,i2,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},i7,i9),aw(null,null,i4,{kind:"field",name:"_handleMaxHeight",static:!1,private:!1,access:{has:e=>"_handleMaxHeight"in e,get:e=>e._handleMaxHeight,set:(e,t)=>{e._handleMaxHeight=t}},metadata:e},i5,le),aw(null,null,i3,{kind:"field",name:"_handleMinHeight",static:!1,private:!1,access:{has:e=>"_handleMinHeight"in e,get:e=>e._handleMinHeight,set:(e,t)=>{e._handleMinHeight=t}},metadata:e},lt,ln),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#L=a_(this,i6);#nm=ak(()=>this.#L.shadowRoot,"#textarea");#ez=ak(()=>this.#L.shadowRoot,"#form");#np=!1;_handleConfirmEnter(e){this.#np=null!==e}_handleDisabled=a_(this,i7,aL(this.#nm,"disabled",e=>null!==e?"":null));_handleMaxHeight=(a_(this,i9),a_(this,i5,aI(this.#nm,"max-height")));_handleMinHeight=(a_(this,le),a_(this,lt,aI(this.#nm,"min-height")));_handleValue(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#nm();t.value!==e&&(t.value=e)}#nb=(a_(this,ln),e=>{this.#np&&"Enter"===e.key&&this.#ez().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#L=e,this.#nm().addEventListener("keyup",this.#nb)}}),(ls=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;li=[aM("input-filter",!0),aN("lynxinput")],ll=[aM("send-composing-input",!0)],la=[aN("selection")],aw(this,null,li,{kind:"method",name:"_handleEnableConfirmEvent",static:!1,private:!1,access:{has:e=>"_handleEnableConfirmEvent"in e,get:e=>e._handleEnableConfirmEvent},metadata:e},null,ls),aw(this,null,ll,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,ls),aw(this,null,la,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,ls),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#L=a_(this,ls);#ej=!1;#nm=ak(()=>this.#L.shadowRoot,"#textarea");#ez=ak(()=>this.#L.shadowRoot,"#form");_handleEnableConfirmEvent(e){let t=this.#nm();e?(t.addEventListener("input",this.#eW,{passive:!0}),t.addEventListener("compositionend",this.#eU,{passive:!0})):(t.removeEventListener("input",this.#eW),t.removeEventListener("compositionend",this.#eU))}_handleSendComposingInput(e){this.#ej=null!==e}#eV=e=>{let t=su[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...aD,detail:{value:this.#nm().value}}))};#eW=e=>{let t=this.#nm(),n=this.#L.getAttribute("input-filter"),i=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=i,(!l||this.#ej)&&this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#eU=()=>{let e=this.#nm(),t=this.#L.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#ej||this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#nm().addEventListener("select",this.#e$,{passive:!0}):this.#nm().removeEventListener("select",this.#e$)}#e$=()=>{let e=this.#nm();this.#L.dispatchEvent(new CustomEvent("selection",{...aD,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eB=e=>{e.target===this.#nm()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;const t=this.#nm(),n=this.#ez();t.addEventListener("blur",this.#eV,{passive:!0}),t.addEventListener("focus",this.#eV,{passive:!0}),n.addEventListener("submit",this.#eV,{passive:!0}),n.addEventListener("input",this.#eB,{passive:!0})}})],a1)],lc=[],lh=HTMLElement,(class extends lh{static{lo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lh[Symbol.metadata]??null):void 0;aw(null,lr={value:lo},ld,{kind:"class",name:lo.name,metadata:e},null,lc),lo=lr.value,e&&Object.defineProperty(lo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(lo,lc)}#nu=ak(()=>this.shadowRoot,"#textarea");get value(){return this.#nu().value}set value(e){this.#nu().value=e}addText(e){let{text:t}=e,n=this.#nu(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}setValue(e){let t,n=this.#nu();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#nu();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#nu();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#nu();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#nu().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lp=[aA("x-view",[a6,aH])],lb=[],lv=HTMLElement,(class extends lv{static{lm=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lv[Symbol.metadata]??null):void 0;aw(null,lu={value:lm},lp,{kind:"class",name:lm.name,metadata:e},null,lb),lm=lu.value,e&&Object.defineProperty(lm,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(lm,lb)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aX.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aF]=this}),lE=[aA("x-blur-view",[aH,(lg=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(this,null,[aM("blur-radius",!0)],{kind:"method",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius},metadata:e},null,lg),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#L=a_(this,lg);#nv=ak(()=>this.#L.shadowRoot,"#dynamic-style");_handleBlurRadius(e){e?(e=`blur(${parseFloat(e)}px)`,this.#nv().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#nv().innerHTML=""}constructor(e){this.#L=e}})],'<style id="dynamic-style"></style><slot></slot>')],lS=[],lw=HTMLElement,(class extends lw{static{ly=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lw[Symbol.metadata]??null):void 0;aw(null,lf={value:ly},lE,{kind:"class",name:ly.name,metadata:e},null,lS),ly=lf.value,e&&Object.defineProperty(ly,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(ly,lS)}}),lL=[aA("x-viewpager-ng",[a6,aH,(lC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l_=[aN("change")],lx=[aN("offsetchange")],aw(this,null,l_,{kind:"method",name:"_enableChangeEvent",static:!1,private:!1,access:{has:e=>"_enableChangeEvent"in e,get:e=>e._enableChangeEvent},metadata:e},null,lC),aw(this,null,lx,{kind:"method",name:"_enableOffsetChangeEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetChangeEvent"in e,get:e=>e._enableOffsetChangeEvent},metadata:e},null,lC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=a_(this,lC);#ng=!1;#t=!1;#nf=0;#M;constructor(e){this.#L=e}#D=ak(()=>this.#L.shadowRoot,"#content");#ny=()=>{if(!this.#t)return;let e=this.#D(),t=this.#L.clientWidth,n=e.scrollLeft;this.#nE&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#nS()},100)),this.#L.dispatchEvent(new CustomEvent("offsetchange",{...aD,detail:{offset:n/t}}))};#nS=()=>{if(this.#t){let e=this.#D(),t=this.#L.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#nf&&(this.#L.dispatchEvent(new CustomEvent("change",{...aD,detail:{index:n,isDragged:this.#ng}})),this.#nf=n)}};#nw=()=>{this.#ng=!0};#n_=()=>{this.#ng=!1};#nE=!1;_enableChangeEvent(e){this.#nE=e,this.#nx()}#nC=!1;_enableOffsetChangeEvent(e){this.#nC=e,this.#nx()}#nx(){let e=this.#D();this.#nC||this.#nE?e.addEventListener("scroll",this.#ny,{passive:!0}):e.removeEventListener("scroll",this.#ny),aU&&this.#nE?e.addEventListener("scrollend",this.#nS,{passive:!0}):e.removeEventListener("scrollend",this.#nS)}connectedCallback(){this.#t=!0;let e=this.#D();this.#L.addEventListener("touchstart",this.#nw,{passive:!0}),e.addEventListener("touchend",this.#n_,{passive:!0}),e.addEventListener("touchcancel",this.#n_,{passive:!0})}dispose(){let e=this.#D();e.removeEventListener("scroll",this.#ny),e.removeEventListener("scrollend",this.#nS)}})],a2)],lI=[],lk=HTMLElement,(class extends lk{static{lO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lk[Symbol.metadata]??null):void 0;aw(null,lT={value:lO},lL,{kind:"class",name:lO.name,metadata:e},null,lI),lO=lT.value,e&&Object.defineProperty(lO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let i=this.shadowRoot.children.item(2),l=i.clientWidth*t;i.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),i=()=>{0===n.clientWidth?requestAnimationFrame(i):this.selectTab({index:t,smooth:!1})};aT(i)}}get[a$](){return this}static{a_(lO,lI)}}),lM=[aA("x-viewpager-item-ng",[a6,aH])],lR=[],lN=HTMLElement,(class extends lN{static{lP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lN[Symbol.metadata]??null):void 0;aw(null,lA={value:lP},lM,{kind:"class",name:lP.name,metadata:e},null,lR),lP=lA.value,e&&Object.defineProperty(lP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(lP,lR)}}),lz=[aA("list-item",[aH,(lD=[],lF=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(null,null,[aM("estimated-main-axis-size-px",!0)],{kind:"field",name:"_handlerEstimatedMainAxisSizePx",static:!1,private:!1,access:{has:e=>"_handlerEstimatedMainAxisSizePx"in e,get:e=>e._handlerEstimatedMainAxisSizePx,set:(e,t)=>{e._handlerEstimatedMainAxisSizePx=t}},metadata:e},lD,lF),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#L;_handlerEstimatedMainAxisSizePx=a_(this,lD,aI(()=>this.#L,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){a_(this,lF),this.#L=e}})])],lW=[],lU=HTMLElement,class extends lU{static{lj=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lU[Symbol.metadata]??null):void 0;aw(null,lH={value:lj},lz,{kind:"class",name:lj.name,metadata:e},null,lW),lj=lH.value,e&&Object.defineProperty(lj,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["recyclable"]);static{a_(lj,lW)}};let sy=function(e,t,n){let i,l,a,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),i=null,s=e.apply(l,a),i||(l=a=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,a=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),r=d,s=e.apply(l,a),i||(l=a=null)):i||n?.trailing===!1||(i=setTimeout(o,c)),s}},sE="waterfall-slot",sS="waterfall-style";ao=[aA("x-list",[aH,(lB=[],lX=[],lq=[],lY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lV=[aM("sticky-offset",!0)],l$=[aM("span-count",!0),aM("column-count",!0)],aw(null,null,lV,{kind:"field",name:"_handlerStickyOffset",static:!1,private:!1,access:{has:e=>"_handlerStickyOffset"in e,get:e=>e._handlerStickyOffset,set:(e,t)=>{e._handlerStickyOffset=t}},metadata:e},lB,lX),aw(null,null,l$,{kind:"field",name:"_handlerCount",static:!1,private:!1,access:{has:e=>"_handlerCount"in e,get:e=>e._handlerCount,set:(e,t)=>{e._handlerCount=t}},metadata:e},lq,lY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#L;_handlerStickyOffset=a_(this,lB,aI(()=>this.#L,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));_handlerCount=(a_(this,lX),a_(this,lq,aI(()=>this.#L,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){a_(this,lY),this.#L=e}connectedCallback(){let e=this.#L.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#L.clientHeight?requestAnimationFrame(n):this.#L.scrollToPosition({position:t})};aT(n)}}}),(l2=[],l4=[],l3=[],l8=[],l6=[],l7=[],l9=[],l5=[],ae=[],at=[],an=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lG=[aN("scrolltoupper")],lJ=[aM("upper-threshold-item-count",!0)],lK=[aN("scrolltolower")],lQ=[aM("lower-threshold-item-count",!0)],lZ=[aN("lynxscroll"),aN("lynxscrollend"),aN("snap")],l0=[aN("scrolltoupperedge")],l1=[aN("scrolltoloweredge")],aw(this,null,lJ,{kind:"method",name:"_handleUpperThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleUpperThresholdItemCountChange"in e,get:e=>e._handleUpperThresholdItemCountChange},metadata:e},null,l2),aw(this,null,lQ,{kind:"method",name:"_handleLowerThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleLowerThresholdItemCountChange"in e,get:e=>e._handleLowerThresholdItemCountChange},metadata:e},null,l2),aw(null,null,lG,{kind:"field",name:"_updateEventSwitches",static:!1,private:!1,access:{has:e=>"_updateEventSwitches"in e,get:e=>e._updateEventSwitches,set:(e,t)=>{e._updateEventSwitches=t}},metadata:e},l4,l3),aw(null,null,lK,{kind:"field",name:"_updateScrollToLowerEventSwitches",static:!1,private:!1,access:{has:e=>"_updateScrollToLowerEventSwitches"in e,get:e=>e._updateScrollToLowerEventSwitches,set:(e,t)=>{e._updateScrollToLowerEventSwitches=t}},metadata:e},l8,l6),aw(null,null,lZ,{kind:"field",name:"_handleScrollEventsSwitches",static:!1,private:!1,access:{has:e=>"_handleScrollEventsSwitches"in e,get:e=>e._handleScrollEventsSwitches,set:(e,t)=>{e._handleScrollEventsSwitches=t}},metadata:e},l7,l9),aw(null,null,l0,{kind:"field",name:"_handleScrollToUpperEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToUpperEdgeEventEnable"in e,get:e=>e._handleScrollToUpperEdgeEventEnable,set:(e,t)=>{e._handleScrollToUpperEdgeEventEnable=t}},metadata:e},l5,ae),aw(null,null,l1,{kind:"field",name:"_handleScrollToLowerEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToLowerEdgeEventEnable"in e,get:e=>e._handleScrollToLowerEdgeEventEnable,set:(e,t)=>{e._handleScrollToLowerEdgeEventEnable=t}},metadata:e},at,an),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#L=a_(this,l2);#nT=ak(()=>this.#L.shadowRoot,"#content");#nO;#nL;#nI;#R=0;#N=0;#nk=!1;#M;#F=ak(()=>this.#L.shadowRoot,"#upper-threshold-observer");#H=ak(()=>this.#L.shadowRoot,"#lower-threshold-observer");#z(){let e=null!==this.#L.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l}=this.#nT(),a={scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l,deltaX:n-this.#R,deltaY:t-this.#N,attachedCells:e?this.#L.getVisibleCells():void 0};return this.#R=n,this.#N=t,a}#nA=e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...aD,detail:this.#z()}))};_updateEventSwitches=a_(this,l4,e=>{if(e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#e1.scrolltoupper=e,e){this.#nO||(this.#nO=new IntersectionObserver(this.#nA,{root:this.#nT()})),this.#nI||(this.#nI=new MutationObserver(this.#nP));let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#L.children[t-1];n&&this.#nO.observe(n),this.#nI.observe(this.#L,{childList:!0})}else this.#nO&&(this.#nO.disconnect(),this.#nO=void 0),this.#nI&&(this.#nI.disconnect(),this.#nI=void 0)});_handleUpperThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#F():this.#L.children[n-1];i&&this.#nO?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#F():this.#L.children[l-1];a&&this.#nO?.observe(a)}#nM=(a_(this,l3),e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...aD,detail:this.#z()}))});#e1={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};_updateScrollToLowerEventSwitches=a_(this,l8,e=>{if(this.#e1.scrolltolower=e,e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),e){this.#nL||(this.#nL=new IntersectionObserver(this.#nM,{root:this.#nT()})),this.#nI||(this.#nI=new MutationObserver(this.#nP));let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#L.children[this.#L.children.length-t];n&&this.#nL.observe(n),this.#nI.observe(this.#L,{childList:!0})}else this.#nL&&(this.#nL.disconnect(),this.#nL=void 0),this.#nI&&(this.#nI.disconnect(),this.#nI=void 0)});_handleLowerThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#H():this.#L.children[this.#L.children.length-n];i&&this.#nL?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#H():this.#L.children[this.#L.children.length-l];a&&this.#nL?.observe(a)}#nP=(a_(this,l6),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#e1.scrolltolower){this.#nL&&(this.#nL.disconnect(),this.#nL=void 0),this.#nL=new IntersectionObserver(this.#nM,{root:this.#nT()});let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#L.children[this.#L.children.length-t];n&&this.#nL.observe(n)}if(null!==this.#L.getAttribute("x-enable-scrolltoupper-event")){this.#nO&&(this.#nO.disconnect(),this.#nO=void 0),this.#nO=new IntersectionObserver(this.#nA,{root:this.#nT()});let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#L.children[t-1];n&&this.#nO.observe(n)}}});#nR=null;#V=()=>{this.#nk&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...aD,detail:this.#z()}))};_handleScrollEventsSwitches=a_(this,l7,(e,t)=>{this.#e1[t]=e;let{lynxscroll:n,lynxscrollend:i,snap:l}=this.#e1,a=this.#L.getAttribute("scroll-event-throttle");this.#nk=null!==i||null!==l;let s=this.#nT();if(this.#nR&&s.removeEventListener("scroll",this.#nR),null!==n||this.#nk){let e=null!==a?parseFloat(a):0,t=sy(this.#V,e,{leading:!0,trailing:!1});this.#nR=t,s.addEventListener("scroll",this.#nR),this.#R=0,this.#N=0}aU&&this.#nk?s.addEventListener("scrollend",this.#B):s.removeEventListener("scrollend",this.#B)});#j=(a_(this,l9),e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#L.dispatchEvent(new CustomEvent("scrolltoupperedge",{...aD,detail:this.#z()})):"lower-threshold-observer"===i&&this.#L.dispatchEvent(new CustomEvent("scrolltoloweredge",{...aD,detail:this.#z()})))});_handleScrollToUpperEdgeEventEnable=a_(this,l5,e=>{e?this.#L.setAttribute("x-enable-scrolltoupperedge-event",""):this.#L.removeAttribute("x-enable-scrolltoupperedge-event"),this.#nN(e)});#nN=(a_(this,ae),aW(this.#nT,this.#F,this.#j));_handleScrollToLowerEdgeEventEnable=a_(this,at,e=>{e?this.#L.setAttribute("x-enable-scrolltoloweredge-event",""):this.#L.removeAttribute("x-enable-scrolltoloweredge-event"),this.#nD(e)});#nD=(a_(this,an),aW(this.#nT,this.#H,this.#j));#B=()=>{let e=this.#L.getAttribute("item-snap");if(this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aD})),null!==e){let e=Array.from(this.#L.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#nT().scrollTop,n=this.#nT().scrollLeft,i=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#L.dispatchEvent(new CustomEvent("snap",{...aD,detail:{position:i&&e.indexOf(i),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#L=e}}),(aa=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ai=[aN("scrolltolower")],al=[aM("list-type",!0)],aw(this,null,ai,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,aa),aw(this,null,al,{kind:"method",name:"_handlerListType",static:!1,private:!1,access:{has:e=>"_handlerListType"in e,get:e=>e._handlerListType},metadata:e},null,aa),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#L=a_(this,aa);#nT=ak(()=>this.#L.shadowRoot,"#content");#nF=ak(()=>this.#L.shadowRoot,'div[part="lower-threshold-observer"]');#k;#nI;_handleXEnableHeaderOffsetEvent(e){if(e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#nF(),t=this.#L.getAttribute("scroll-orientation")||"vertical",n=this.#nT();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}}#nH=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sE}`),this.#L.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#nj=()=>{let e=parseFloat(this.#L.getAttribute("span-count")||this.#L.getAttribute("column-count")||"")||1,t="vertical"===(this.#L.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let i=0;i<this.#L.children.length;i++){let l=this.#L.children[i],a=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(a):l.getBoundingClientRect().width+parseFloat(a);if(null!==l.getAttribute("full-span")){let i=n[0];for(let t=1;t<e;t++)n[t]>i&&(i=n[t]);for(let t=0;t<e;t++)n[t]=i+r;t?(l.setAttribute(`${sS}-left`,"0"),l.setAttribute(`${sS}-top`,`${i}px`)):(l.setAttribute(`${sS}-left`,`${i}px`),l.setAttribute(`${sS}-top`,"0"))}else{let i=0,a=n[0];for(let t=1;t<e;t++)n[t]<a&&(i=t,a=n[t]);let o=`calc(${i} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,i)} * ${s})`;t?(l.setAttribute(`${sS}-left`,o),l.setAttribute(`${sS}-top`,`${a}px`)):(l.setAttribute(`${sS}-left`,`${a}px`),l.setAttribute(`${sS}-top`,o)),n[i]+=r}}for(let e=0;e<this.#L.children.length;e++){let t=this.#L.children[e];t.style.setProperty("left",t.getAttribute(`${sS}-left`)),t.style.setProperty("top",t.getAttribute(`${sS}-top`)),t.setAttribute("slot",sE)}};constructor(e){this.#L=e}#nz=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#nj()})}),Array.from(this.#L.children).forEach(e=>{this.#k?.observe(e)})};_handlerListType(e){if("waterfall"===e)this.#nH(),this.#k||this.#nz(),this.#nI||(this.#nI=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#nz()}),this.#nI.observe(this.#L,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#nI?.disconnect(),this.#nI=void 0;for(let e=0;e<this.#L.children.length;e++)this.#L.children[e].removeAttribute("slot");this.#L.shadowRoot?.querySelector(`slot[name=${sE}]`)?.remove()}}})],aK)],ad=[],ac=HTMLElement,(class extends ac{static{ar=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ac[Symbol.metadata]??null):void 0;aw(null,as={value:ar},ao,{kind:"class",name:ar.name,metadata:e},null,ad),ar=as.value,e&&Object.defineProperty(ar,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#nT=ak(()=>this.shadowRoot,"#content");#nW={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#nU={};get scrollTop(){return this.#nT().scrollTop}set scrollTop(e){this.#nT().scrollTop=e}get scrollLeft(){return this.#nT().scrollTop}set scrollLeft(e){this.#nT().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#nT().scrollTop=0,this.#nT().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#nT().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#nV=e=>{if(!this.#nW.isScrolling)return;if(!this.#nW.lastTimestamp){this.#nW.lastTimestamp=e,requestAnimationFrame(this.#nV);return}let t=this.#nT(),n=(e-this.#nW.lastTimestamp)/1e3*this.#nW.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#nW.lastTimestamp=e;let i="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(i?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#nW.autoStop?(i?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#nW.isScrolling=!1):requestAnimationFrame(this.#nV)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#nW={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#nT(),i="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#nW.lastTimestamp=0,i?setTimeout(()=>requestAnimationFrame(this.#nV),0):requestAnimationFrame(this.#nV)}else this.#nW.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#nU),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#n$=()=>Object.values(this.#nU).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#nB=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",i="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#n$();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...aD,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#n$()}}))},100);return}if(i){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#nU[n]&&delete this.#nU[n]:this.#nU[n]=e.target;return}};connectedCallback(){this.#nT().addEventListener("contentvisibilityautostatechange",this.#nB,{passive:!0})}static{a_(ar,ad)}}),ay=[aA("x-webview",[aH,(am=[],ap=[],ab=[],av=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah=[aM("src",!0)],au=[aM("html",!0)],aw(null,null,ah,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},am,ap),aw(null,null,au,{kind:"field",name:"_handleHtml",static:!1,private:!1,access:{has:e=>"_handleHtml"in e,get:e=>e._handleHtml,set:(e,t)=>{e._handleHtml=t}},metadata:e},ab,av),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","html"];#L;#nX=ak(()=>this.#L.shadowRoot,"#webview");constructor(e){a_(this,av),this.#L=e}_handleSrc=a_(this,am,aL(this.#nX,"src"));_handleHtml=(a_(this,ap),a_(this,ab,aL(this.#nX,"srcdoc")))})],a4)],aE=[],aS=HTMLElement,class extends aS{static{af=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aS[Symbol.metadata]??null):void 0;aw(null,ag={value:af},ay,{kind:"class",name:af.name,metadata:e},null,aE),af=ag.value,e&&Object.defineProperty(af,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(af,aE)}#nX=ak(()=>this.shadowRoot,"#webview");#nq=()=>{this.dispatchEvent(new CustomEvent("load",{bubbles:!0,composed:!0,detail:{url:this.#nX().src}})),this.dispatchEvent(new CustomEvent("bindload",{bubbles:!0,composed:!0,detail:{url:this.#nX().src}}))};#nY=e=>{this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}})),this.dispatchEvent(new CustomEvent("binderror",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}}))};#nG=e=>{e.source===this.#nX().contentWindow&&(this.dispatchEvent(new CustomEvent("message",{bubbles:!0,composed:!0,detail:{msg:e.data,data:e.data}})),this.dispatchEvent(new CustomEvent("bindmessage",{bubbles:!0,composed:!0,detail:{msg:e.data}})))};connectedCallback(){this.#nX().addEventListener("load",this.#nq),this.#nX().addEventListener("error",this.#nY),window.addEventListener("message",this.#nG)}disconnectedCallback(){this.#nX().removeEventListener("load",this.#nq),this.#nX().removeEventListener("error",this.#nY),window.removeEventListener("message",this.#nG)}get src(){return this.getAttribute("src")}set src(e){null===e?this.removeAttribute("src"):this.setAttribute("src",e)}get html(){return this.getAttribute("html")}set html(e){null===e?this.removeAttribute("html"):this.setAttribute("html",e)}reload(){this.#nX().src=this.#nX().src}}},7075(e,t,n){n.a(e,async function(e,t){try{var i=n(3493);n(6033),n(7357),n(5767),n(970);var l=e([i]);i=(l.then?(await l)():l)[0];let d="lynx-web-core-init-data",c="lynx-web-core-global-props",h=document.createElement("lynx-view");document.body.appendChild(h);let u=new URLSearchParams(document.location.search).get("casename");function a(){if(u){let e={};try{let t=localStorage.getItem(d);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(c);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}h.globalProps=t,h.initData=e,h.url=u}}function s(e){localStorage.setItem(d,JSON.stringify(e)),a()}function r(e){localStorage.setItem(c,JSON.stringify(e)),a()}function o(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
314
+ <iframe id="webview" part="webview"></iframe>`,a3=CSS.supports("width:1rex")&&CSS.supports("transition-behavior:allow-discrete")&&CSS.supports("content-visibility: auto");class a8{static observedAttributes=[];static observedCSSProperties=["--lynx-display","--lynx-linear-orientation"];#L;constructor(e){this.#L=e,this.cssPropertyChangedHandler={"--lynx-display":this.#G,"--lynx-linear-orientation":this.#J}}#G=aL(()=>this.#L,"lynx-computed-display");#J=aL(()=>this.#L,"lynx-linear-orientation")}let a9=a3?void 0:a8;H=[aA("scroll-view",[a9,aH,az,aj,aB,aX],aq)],j=[],z=HTMLElement,e=class extends z{static{F=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(z[Symbol.metadata]??null):void 0;aw(null,D={value:F},H,{kind:"class",name:F.name,metadata:t},null,j),e=F=D.value,t&&Object.defineProperty(F,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#K;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#K),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#K=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[a$](){return this}static{a_(F,j)}},e=F;let a6=Symbol("__src"),a7=Symbol("__src"),a5={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},se={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=i||(i={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let st=($=[],B=[],X=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;W=[aM("src",!0)],U=[aM("loop",!0)],V=[aM("pause-on-hide",!0)],aw(this,null,W,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,$),aw(this,null,V,{kind:"method",name:"_handlePauseOnHide",static:!1,private:!1,access:{has:e=>"_handlePauseOnHide"in e,get:e=>e._handlePauseOnHide},metadata:e},null,$),aw(null,null,U,{kind:"field",name:"_handleLoop",static:!1,private:!1,access:{has:e=>"_handleLoop"in e,get:e=>e._handleLoop,set:(e,t)=>{e._handleLoop=t}},metadata:e},B,X),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#L=a_(this,$);#Q=ak(()=>this.#L.shadowRoot,"#audio");_handleSrc(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:i.SrcError,msg:"",from:"res loader",currentSrcID:this.#L[a6]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:i.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#L[a6]?.id}})),this.#L[a6]=t,this.#L[a7]=void 0,this.#L.stop()}_handleLoop=a_(this,B,aL(this.#Q,"loop"));#Z=(a_(this,X),()=>{"hidden"===document.visibilityState&&this.#L.pause()});_handlePauseOnHide(e){null!==e?document.addEventListener("visibilitychange",this.#Z,{passive:!0}):document.removeEventListener("visibilitychange",this.#Z)}constructor(e){this.#L=e}});class sn{static observedAttributes=[];#L;#ee;#Q=ak(()=>this.#L.shadowRoot,"#audio");#et=e=>{let t=Number(this.#L.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#ee=setInterval(()=>{this.#L.dispatchEvent(new CustomEvent("timeupdate",{...aD,detail:{currentTime:this.#Q().currentTime,currentSrcID:this.#L[a6]?.id}}))},n);let i=se[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...aD,detail:{code:i?.code,type:i?.type,currentSrcID:this.#L[a6]?.id}}))};#en=e=>{clearInterval(this.#ee);let t=se[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...aD,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[a6]?.id}}))};#ei=e=>{let t=a5[e.type];this.#L.dispatchEvent(new CustomEvent("loadingstatechanged",{...aD,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[a6]?.id}}))};#el=e=>{this.#ei(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?i.PlayerLoadingError:i.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=i.PlayerLoadingError),this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:n,msg:"",from:"player",currentSrcID:this.#L[a6]?.id}}))};#ea=()=>{let e=null!==this.#L.getAttribute("loop");this.#L.dispatchEvent(new CustomEvent("finished",{...aD,detail:{loop:e,currentSrcID:this.#L[a6]?.id}}))};constructor(e){this.#L=e}connectedCallback(){let e=this.#Q();e.addEventListener("play",this.#et,{passive:!0}),e.addEventListener("pause",this.#en,{passive:!0}),e.addEventListener("ended",this.#ea,{passive:!0}),e.addEventListener("loadstart",this.#ei,{passive:!0}),e.addEventListener("canplay",this.#ei,{passive:!0}),e.addEventListener("stalled",this.#ei,{passive:!0}),e.addEventListener("error",this.#el,{passive:!0})}}G=[aA("x-audio-tt",[aH,st,sn],'<audio id="audio"></audio>')],J=[],K=HTMLElement,(class extends K{static{Y=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(K[Symbol.metadata]??null):void 0;aw(null,q={value:Y},G,{kind:"class",name:Y.name,metadata:e},null,J),Y=q.value,e&&Object.defineProperty(Y,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(Y,J)}#es=ak(()=>this.shadowRoot,"#audio");#Q=ak(()=>this.shadowRoot,"#audio");#er=aL(this.#Q,"src");[a6];[a7];#eo=()=>{let e,t=this[a6];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[a7]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aD,detail:{code:0,type:"loading",currentSrcID:t.id}}));let a=await fetch(t.play_url,{headers:e});a.ok||(this.dispatchEvent(new CustomEvent("error",{...aD,detail:{code:i.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aD,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await a.blob(),r=URL.createObjectURL(s);this.#er(r),n()})}};play(){return this[a7]||this.#eo(),this[a7]?.then(()=>{let e=this.#es();e.currentTime=0,e.play()}),{currentSrcID:this[a6]?.id,loadingSrcID:""}}stop(){let e=this.#es(),t=se.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...aD,detail:{code:t?.code,type:t?.type,currentSrcID:this[a6]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[a6]?.id}}pause(){return this.#es().pause(),{currentSrcID:this[a6]?.id}}resume(){return this.#es().play(),{currentSrcID:this[a6]?.id,loadingSrcID:""}}seek(e){return this.#es().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...aD,detail:{seekresult:1,currentSrcID:this[a6]?.id}})),{currentSrcID:this[a6]?.id}}mute(e){return this.#es().muted=e.mute,{currentSrcID:this[a6]?.id}}playerInfo(){var e;let t=this.#es(),n=t.buffered,i=n.end(n.length-1);return{currentSrcID:this[a6]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:i}}prepare(){this[a7]||this.#eo()}setVolume(e){return this.#es().volume=e.volume,{code:1}}}),ed=[aA("x-canvas",[aH,(et=[],en=[],ei=[],el=[],ea=[],es=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;Q=[aM("name",!0)],Z=[aM("height",!0)],ee=[aM("width",!0)],aw(null,null,Q,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},et,en),aw(null,null,Z,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ei,el),aw(null,null,ee,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},ea,es),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#L;#k;#ed=ak(()=>this.#L.shadowRoot,"#canvas");constructor(e){this.#L=e}handleName=a_(this,et,aL(this.#ed,"name"));handleHeight=(a_(this,en),a_(this,ei,aL(this.#ed,"height")));handleWidth=(a_(this,el),a_(this,ea,aL(this.#ed,"width")));#ec=(a_(this,es),e=>{let{contentRect:t}=e[0],n=this.#L.shadowRoot.firstElementChild;if(n){let{height:e,width:i}=t;e*=window.devicePixelRatio,i*=window.devicePixelRatio;let l=new CustomEvent("resize",{...aD,detail:{height:e,width:i}});l.height=e,l.width=i,n.dispatchEvent(l)}});#eh(){this.#k||(this.#k=new ResizeObserver(this.#ec),this.#k.observe(this.#L))}#eu(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#eh()}dispose(){this.#eu()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],ec=[],eh=HTMLElement,class extends eh{static{eo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eh[Symbol.metadata]??null):void 0;aw(null,er={value:eo},ed,{kind:"class",name:eo.name,metadata:e},null,ec),eo=er.value,e&&Object.defineProperty(eo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eo,ec)}};let si=(ep=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eu=[aM("granularity",!0)],em=[aN("offset")],aw(this,null,eu,{kind:"method",name:"_handleGranularity",static:!1,private:!1,access:{has:e=>"_handleGranularity"in e,get:e=>e._handleGranularity},metadata:e},null,ep),aw(this,null,em,{kind:"method",name:"_enableOffsetEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetEvent"in e,get:e=>e._enableOffsetEvent},metadata:e},null,ep),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,ep);#em=.01;#ep=0;constructor(e){this.#L=e}static observedAttributes=["granularity"];_handleGranularity(e){e&&""!==e?this.#em=parseFloat(e):this.#em=.01}_enableOffsetEvent(e){e?this.#L.addEventListener("scroll",this.#V,{passive:!0}):this.#L.removeEventListener("scroll",this.#V)}#V=()=>{let e=this.#L.scrollTop;(Math.abs(this.#ep-e)>this.#em||0===this.#L.scrollTop||1>=Math.abs(this.#L.scrollHeight-this.#L.clientHeight-this.#L.scrollTop))&&(this.#ep=e,this.#L.dispatchEvent(new CustomEvent("offset",{...aD,detail:{offset:e,height:this.#L[sl]}})))}}),sl=Symbol("scrollableLength"),sa=Symbol("isHeaderShowing"),ss=Symbol("resizeObserver"),sr=Symbol("slotKid");eg=[aA("x-foldview-ng",[a9,aH,si])],ef=[],ey=HTMLElement,class extends ey{static{ev=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ey[Symbol.metadata]??null):void 0;aw(null,eb={value:ev},eg,{kind:"class",name:ev.name,metadata:e},null,ef),ev=eb.value,e&&Object.defineProperty(ev,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sr];[ss]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eb=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ev=t.contentRect.height);this[sr]&&(this[sr].style.top=`${this.#eb-this.#ev}px`)});#eb=0;#ev=0;get[sl](){return this.#eb-this.#ev}get[sa](){return this[sl]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sl]?e=this[sl]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,i=parseFloat(t);this.scrollTo({top:i,behavior:n?"smooth":"instant"})}get[a$](){return this}disconnectedCallback(){this[ss]?.disconnect(),this[ss]=void 0}static{a_(ev,ef)}};let so=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};ew=[aA("x-foldview-header-ng",[a9,aH])],e_=[],ex=HTMLElement,(class extends ex{static{eS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ex[Symbol.metadata]??null):void 0;aw(null,eE={value:eS},ew,{kind:"class",name:eS.name,metadata:e},null,e_),eS=eE.value,e&&Object.defineProperty(eS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eS,e_)}#eg=void 0;connectedCallback(){let e=so(this,"X-FOLDVIEW-NG");this.#eg=e?.[ss],this.#eg?.observe(this)}dispose(){this.#eg?.unobserve(this)}}),eO=[aA("x-foldview-slot-drag-ng",[a9,aH])],eL=[],eI=HTMLElement,class extends eI{static{eT=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;aw(null,eC={value:eT},eO,{kind:"class",name:eT.name,metadata:e},null,eL),eT=eC.value,e&&Object.defineProperty(eT,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eT,eL)}};class sd{#ef=0;#ey=new WeakMap;#eE;#eS=0;#ew=0;#e_=null;#ex;#eC=0;#L;static observedAttributes=[];constructor(e){this.#L=e,this.#L.addEventListener("touchmove",this.#eT,{passive:!1}),this.#L.addEventListener("touchstart",this.#eO,{passive:!0}),this.#L.addEventListener("touchend",this.#eL,{passive:!0}),this.#L.addEventListener("wheel",this.#eI,{passive:!1})}#ek(e){return this.#eE?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,i=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||i}return!1})}#eA(e,t){let n=this.#ey.get(e)??0;n+=t,this.#ey.set(e,n),e.scrollTop=n}#eT=e=>{let t=this.#eP();if(!t)return;let{pageY:n,pageX:i}=e.touches.item(0),l=this.#eS-n;if(null===this.#e_){let e=this.#ew-i;this.#e_=Math.abs(l)>Math.abs(e)}!1!==this.#e_&&(e.cancelable&&e.preventDefault(),this.#eM(l,t),this.#eS=n)};#eI=e=>{let t=this.#eP();if(!t||Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let n=e.composedPath().filter(e=>e instanceof Element&&this.#L.contains(e)),{clientX:i,clientY:l}=e,a=document.elementsFromPoint(i,l).filter(e=>this.#L.contains(e));if(this.#eE=[...new Set([...n,...a])],this.#ef=t.scrollTop,this.#eE)for(let e of this.#eE)this.#ey.set(e,e.scrollTop);e.cancelable&&e.preventDefault(),this.#eM(e.deltaY,t)};#eP(){let e=this.#L.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#eO=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#eE=document.elementsFromPoint(t,n).filter(e=>this.#L.contains(e)),this.#eS=n,this.#ew=t,this.#ef=this.#eP()?.scrollTop??0,this.#eE))this.#ey.set(e,e.scrollTop);this.#e_=null,this.#ex=void 0};#eL=()=>{if(this.#e_=null,this.#ex){let e=this.#eP();(this.#ex!==e||e[sa])&&this.#ex.scrollBy({top:4*this.#eC,behavior:"smooth"})}};#eM(e,t){let n=this.#ek(e);t[sa]&&e>0||e<0&&!n||!t[sa]&&!n?(t.scrollBy({top:e,behavior:"smooth"}),this.#ef+=e,t.scrollTop=this.#ef,this.#ex=t):n&&(this.#ex=n,this.#eA(n,e)),this.#eC=e}}eP=[aA("x-foldview-slot-ng",[a9,aH,sd])],eM=[],eR=HTMLElement,(class extends eR{static{eA=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eR[Symbol.metadata]??null):void 0;aw(null,ek={value:eA},eP,{kind:"class",name:eA.name,metadata:e},null,eM),eA=ek.value,e&&Object.defineProperty(eA,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eA,eM)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sr]=this)}}),eF=[aA("x-foldview-toolbar-ng",[a9,aH])],eH=[],ej=HTMLElement,class extends ej{static{eD=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ej[Symbol.metadata]??null):void 0;aw(null,eN={value:eD},eF,{kind:"class",name:eD.name,metadata:e},null,eH),eD=eN.value,e&&Object.defineProperty(eD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(eD,eH)}#eg=void 0;connectedCallback(){let e=so(this,"X-FOLDVIEW-NG");this.#eg=e?.[ss],this.#eg?.observe(this)}dispose(){this.#eg?.unobserve(this)}};let sc=(eq=[],eY=[],eG=[],eJ=[],eK=[],eQ=[],eZ=[],e0=[],e1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eU=[aM("src",!0)],eV=[aM("placeholder",!0)],e$=[aM("blur-radius",!0)],eB=[aM("crossorigin",!0)],eX=[aM("referrerpolicy",!0)],aw(this,null,eV,{kind:"method",name:"_preloadPlaceholder",static:!1,private:!1,access:{has:e=>"_preloadPlaceholder"in e,get:e=>e._preloadPlaceholder},metadata:e},null,eq),aw(null,null,eU,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},eY,eG),aw(null,null,e$,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eJ,eK),aw(null,null,eB,{kind:"field",name:"_handleCrossorigin",static:!1,private:!1,access:{has:e=>"_handleCrossorigin"in e,get:e=>e._handleCrossorigin,set:(e,t)=>{e._handleCrossorigin=t}},metadata:e},eQ,eZ),aw(null,null,eX,{kind:"field",name:"_handleReferrerpolicy",static:!1,private:!1,access:{has:e=>"_handleReferrerpolicy"in e,get:e=>e._handleReferrerpolicy,set:(e,t)=>{e._handleReferrerpolicy=t}},metadata:e},e0,e1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#L=a_(this,eq);#eR=ak(()=>this.#L.shadowRoot,"#img");_handleSrc=a_(this,eY,aL(this.#eR,"src",e=>e||this.#L.getAttribute("placeholder")));_preloadPlaceholder(e){e&&(new Image().src=e)}_handleBlurRadius=(a_(this,eG),a_(this,eJ,aI(this.#eR,"--blur-radius",void 0,!0)));_handleCrossorigin=(a_(this,eK),a_(this,eQ,aL(this.#eR,"crossorigin")));_handleReferrerpolicy=(a_(this,eZ),a_(this,e0,aL(this.#eR,"referrerpolicy")));#eN=(a_(this,e1),()=>{let e=this.#eR().src,t=this.#L.getAttribute("placeholder");t&&e!==t&&(this.#eR().src=t)});constructor(e){this.#L=e,this.#eR().addEventListener("error",this.#eN)}connectedCallback(){(null===this.#L.getAttribute("src")||""===this.#L.getAttribute("src"))&&this._handleSrc(null)}}),sh=(e3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e2=[aN("load")],e4=[aN("error")],aw(this,null,e2,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,e3),aw(this,null,e4,{kind:"method",name:"_enableErrorEvent",static:!1,private:!1,access:{has:e=>"_enableErrorEvent"in e,get:e=>e._enableErrorEvent},metadata:e},null,e3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=a_(this,e3);#eR=ak(()=>this.#L.shadowRoot,"#img");_enableLoadEvent(e){e?this.#eR().addEventListener("load",this.#eD,{passive:!0}):this.#eR().removeEventListener("load",this.#eD)}_enableErrorEvent(e){e?this.#eR().addEventListener("error",this.#eF,{passive:!0}):this.#eR().removeEventListener("error",this.#eF)}#eD=()=>{this.#L.dispatchEvent(new CustomEvent("load",{...aD,detail:{width:this.#eR().naturalWidth,height:this.#eR().naturalHeight}}))};#eF=()=>{this.#L.dispatchEvent(new CustomEvent("error",{...aD,detail:{}}))};constructor(e){this.#L=e}});e6=[aA("filter-image",[aH,sc,(ez=[],eW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(null,null,[aM("drop-shadow",!0)],{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},ez,eW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#L;#eR=ak(()=>this.#L.shadowRoot,"#img");_handleBlurRadius=a_(this,ez,aI(this.#eR,"--drop-shadow",void 0,!0));constructor(e){a_(this,eW),this.#L=e}}),sh],aG({}))],e7=[],e5=HTMLElement,(class extends e5{static{e9=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(e5[Symbol.metadata]??null):void 0;aw(null,e8={value:e9},e6,{kind:"class",name:e9.name,metadata:e},null,e7),e9=e8.value,e&&Object.defineProperty(e9,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(e9,e7)}}),tn=[aA("x-image",[aH,sc,sh],aG({}))],ti=[],tl=HTMLElement,class extends tl{static{tt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tl[Symbol.metadata]??null):void 0;aw(null,te={value:tt},tn,{kind:"class",name:tt.name,metadata:e},null,ti),tt=te.value,e&&Object.defineProperty(tt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(tt,ti)}};let su={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};tY=[aA("x-input",[aH,(tx=[],tC=[],tT=[],tO=[],tL=[],tI=[],tk=[],tA=[],tP=[],tM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ty=[aM("placeholder",!0)],tE=[aM("placeholder-color",!0)],tS=[aM("placeholder-font-family",!0)],tw=[aM("placeholder-font-size",!0)],t_=[aM("placeholder-font-weight",!0)],aw(null,null,ty,{kind:"field",name:"_handlerPlaceholder",static:!1,private:!1,access:{has:e=>"_handlerPlaceholder"in e,get:e=>e._handlerPlaceholder,set:(e,t)=>{e._handlerPlaceholder=t}},metadata:e},tx,tC),aw(null,null,tE,{kind:"field",name:"_handlerPlaceholderColor",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderColor"in e,get:e=>e._handlerPlaceholderColor,set:(e,t)=>{e._handlerPlaceholderColor=t}},metadata:e},tT,tO),aw(null,null,tS,{kind:"field",name:"_handlerPlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontFamily"in e,get:e=>e._handlerPlaceholderFontFamily,set:(e,t)=>{e._handlerPlaceholderFontFamily=t}},metadata:e},tL,tI),aw(null,null,tw,{kind:"field",name:"_handlerPlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontSize"in e,get:e=>e._handlerPlaceholderFontSize,set:(e,t)=>{e._handlerPlaceholderFontSize=t}},metadata:e},tk,tA),aw(null,null,t_,{kind:"field",name:"_handlerPlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontWeight"in e,get:e=>e._handlerPlaceholderFontWeight,set:(e,t)=>{e._handlerPlaceholderFontWeight=t}},metadata:e},tP,tM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#L;#eH=ak(()=>this.#L.shadowRoot,"#input");_handlerPlaceholder=a_(this,tx,aL(this.#eH,"placeholder"));_handlerPlaceholderColor=(a_(this,tC),a_(this,tT,aI(this.#eH,"--placeholder-color",void 0,!0)));_handlerPlaceholderFontFamily=(a_(this,tO),a_(this,tL,aI(this.#eH,"--placeholder-font-family",void 0,!0)));_handlerPlaceholderFontSize=(a_(this,tI),a_(this,tk,aI(this.#eH,"--placeholder-font-size",void 0,!0)));_handlerPlaceholderFontWeight=(a_(this,tA),a_(this,tP,aI(this.#eH,"--placeholder-font-weight",void 0,!0)));constructor(e){a_(this,tM),this.#L=e}}),(tF=[],tH=[],tj=[],tz=[],tW=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tR=[aM("value",!1)],tN=[aM("disabled",!0)],tD=[aM("autocomplete",!0)],aw(this,null,tR,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,tF),aw(null,null,tN,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},tH,tj),aw(null,null,tD,{kind:"field",name:"_handleAutocomplete",static:!1,private:!1,access:{has:e=>"_handleAutocomplete"in e,get:e=>e._handleAutocomplete,set:(e,t)=>{e._handleAutocomplete=t}},metadata:e},tz,tW),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#L=a_(this,tF);#eH=ak(()=>this.#L.shadowRoot,"#input");_handleValue(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#eH();t.value!==e&&(t.value=e)}_handleDisabled=a_(this,tH,aL(this.#eH,"disabled",e=>null!==e?"":null));_handleAutocomplete=(a_(this,tj),a_(this,tz,aL(this.#eH,"autocomplete")));constructor(e){a_(this,tW),this.#L=e}}),(tc=[],th=[],tu=[],tm=[],tp=[],tb=[],tv=[],tg=[],tf=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ta=[aM("confirm-type",!0)],ts=[aM("maxlength",!0)],tr=[aM("readonly",!0)],to=[aM("type",!0)],td=[aM("ios-spell-check",!0),aM("spell-check",!0)],aw(this,null,to,{kind:"method",name:"_handleType",static:!1,private:!1,access:{has:e=>"_handleType"in e,get:e=>e._handleType},metadata:e},null,tc),aw(null,null,ta,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},th,tu),aw(null,null,ts,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},tm,tp),aw(null,null,tr,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},tb,tv),aw(null,null,td,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},tg,tf),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#L=a_(this,tc);#eH=ak(()=>this.#L.shadowRoot,"#input");_handlerConfirmType=a_(this,th,aL(this.#eH,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(a_(this,tu),a_(this,tm,aL(this.#eH,"maxlength",e=>null===e?"140":e)));_handleReadonly=(a_(this,tp),a_(this,tb,aL(this.#eH,"readonly",e=>null!==e?"":null)));#ej=(a_(this,tv),aL(this.#eH,"type"));#ez=aL(this.#eH,"inputmode");_handleType(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#ez(t),this.#ej(n)}_handleSpellCheck=a_(this,tg,aL(this.#eH,"spellcheck",e=>null===e?"false":"true"));constructor(e){a_(this,tf),this.#L=e}}),(tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tU=[aM("input-filter",!0),aN("lynxinput")],tV=[aM("send-composing-input",!0)],t$=[aN("selection")],aw(this,null,tU,{kind:"method",name:"_handleEnableInputEvent",static:!1,private:!1,access:{has:e=>"_handleEnableInputEvent"in e,get:e=>e._handleEnableInputEvent},metadata:e},null,tB),aw(this,null,tV,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,tB),aw(this,null,t$,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#L=a_(this,tB);#eW=!1;#eH=ak(()=>this.#L.shadowRoot,"#input");#eU=ak(()=>this.#L.shadowRoot,"#form");_handleEnableInputEvent(e){let t=this.#eH();e?(t.addEventListener("input",this.#eV,{passive:!0}),t.addEventListener("compositionend",this.#e$,{passive:!0})):(t.removeEventListener("input",this.#eV),t.removeEventListener("compositionend",this.#e$))}_handleSendComposingInput(e){this.#eW=null!==e}#eB=e=>{let t=su[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...aD,detail:{value:this.#eH().value}}))};#eV=e=>{let t=this.#eH(),n=this.#L.getAttribute("input-filter"),i=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=i,(!l||this.#eW)&&this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#e$=()=>{let e=this.#eH(),t=this.#L.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#eW||this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#eH().addEventListener("select",this.#eX,{passive:!0}):this.#eH().removeEventListener("select",this.#eX)}#eX=()=>{let e=this.#eH();this.#L.dispatchEvent(new CustomEvent("selection",{...aD,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eq=e=>{e.target===this.#eH()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;const t=this.#eH(),n=this.#eU();t.addEventListener("blur",this.#eB,{passive:!0}),t.addEventListener("focus",this.#eB,{passive:!0}),n.addEventListener("submit",this.#eB,{passive:!0}),n.addEventListener("input",this.#eq,{passive:!0})}})],aJ)],tG=[],tJ=HTMLElement,(class extends tJ{static{tq=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tJ[Symbol.metadata]??null):void 0;aw(null,tX={value:tq},tY,{kind:"class",name:tq.name,metadata:e},null,tG),tq=tX.value,e&&Object.defineProperty(tq,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(tq,tG)}#eY=ak(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#eY(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#eY();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#eY();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#eY();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#eY().setAttribute("pattern",e.pattern)}select(){let e=this.#eY();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#eY().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#eY().focus(e)}blur(){this.#eY().blur()}connectedCallback(){let e=this.#eY();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),t2=[aA("x-overlay-ng",[aH,(tZ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tK=[aM("events-pass-through",!0)],tQ=[aM("visible",!1)],aw(this,null,tK,{kind:"method",name:"_handleEventsPassThrough",static:!1,private:!1,access:{has:e=>"_handleEventsPassThrough"in e,get:e=>e._handleEventsPassThrough},metadata:e},null,tZ),aw(this,null,tQ,{kind:"method",name:"_handleVisible",static:!1,private:!1,access:{has:e=>"_handleVisible"in e,get:e=>e._handleVisible},metadata:e},null,tZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#L=a_(this,tZ);#eG=!!window.HTMLDialogElement;#eJ=!1;constructor(e){this.#L=e}#eK=ak(()=>this.#L.shadowRoot,"#dialog");_handleEventsPassThrough(e){null!==e?(this.#eK().addEventListener("click",this.#eQ,{passive:!1}),this.#L.addEventListener("click",this.#eQ,{passive:!1})):(this.#eK().removeEventListener("click",this.#eQ),this.#L.removeEventListener("click",this.#eQ))}_handleVisible(e){this.#eJ=null!==e,this.#eG&&(this.#eJ?(this.#eK().showModal(),this.#L.dispatchEvent(new CustomEvent("showoverlay",aD))):(this.#eK().close(),this.#L.dispatchEvent(new CustomEvent("dismissoverlay",aD))))}#eQ=e=>{e.stopPropagation();let t=this.#eK();if(e.target===this.#L||e.target===t){t.close();let{clientX:n,clientY:i}=e,l=document.elementFromPoint(n,i);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,i)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#eJ&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#eG||(this.#eK().style.display="none")}})],aQ)],t4=[],t3=HTMLElement,class extends t3{static{t1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t3[Symbol.metadata]??null):void 0;aw(null,t0={value:t1},t2,{kind:"class",name:t1.name,metadata:e},null,t4),t1=t0.value,e&&Object.defineProperty(t1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(t1,t4)}get[aF](){return this.shadowRoot.firstElementChild}};class sm extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sm.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sp{#L;static observedAttributes=[];#eZ;constructor(e){this.#L=e}connectedCallback(){if(IntersectionObserver&&!this.#eZ){let e=this.#L.parentElement;e&&(this.#eZ=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#L.dispatchEvent(new sm(t,n)),n&&this.#L.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#eZ.observe(this.#L))}}dispose(){this.#eZ&&(this.#eZ.disconnect(),this.#eZ=void 0)}}t6=[aA("x-refresh-footer",[a9,aH,sp])],t7=[],t5=HTMLElement,(class extends t5{static{t9=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t5[Symbol.metadata]??null):void 0;aw(null,t8={value:t9},t6,{kind:"class",name:t9.name,metadata:e},null,t7),t9=t8.value,e&&Object.defineProperty(t9,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(t9,t7)}connectedCallback(){this.setAttribute("slot","footer")}}),nn=[aA("x-refresh-header",[a9,aH,sp])],ni=[],nl=HTMLElement,(class extends nl{static{nt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nl[Symbol.metadata]??null):void 0;aw(null,ne={value:nt},nn,{kind:"class",name:nt.name,metadata:e},null,ni),nt=ne.value,e&&Object.defineProperty(nt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(nt,ni)}connectedCallback(){this.setAttribute("slot","header")}}),nc=[aA("x-refresh-view",[a9,aH,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[aN("headeroffset"),aN("headershow"),aN("footeroffset")],ns=[aN("startrefresh"),aN("headerreleased"),aN("startloadmore"),aN("footerreleased")],aw(this,null,na,{kind:"method",name:"_handleComplexEventEnableAttributes",static:!1,private:!1,access:{has:e=>"_handleComplexEventEnableAttributes"in e,get:e=>e._handleComplexEventEnableAttributes},metadata:e},null,nr),aw(this,null,ns,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=a_(this,nr);static observedAttributes=[];#e0=ak(()=>this.#L,"x-refresh-view > x-refresh-header:first-of-type");#e1=ak(()=>this.#L,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#L=e,this.#L.addEventListener(sm.EventName,this.#e2)}#e4={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};_handleComplexEventEnableAttributes(e,t){this.#e4[t]=e;let{headeroffset:n,headershow:i,footeroffset:l}=this.#e4;n||i||l?this.#e3():this.#e8()}_handleXEnableHeaderOffsetEvent(e,t){this.#e4[t]=e;let{startrefresh:n,headerreleased:i,startloadmore:l,footerreleased:a}=this.#e4;i||a||l||n?this.#e9():this.#e6()}#e7=!1;#e5=!1;#te=!1;#tt=!1;#e2=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#e7=e.startShowing,this.#e5=e.fullyShowing):(this.#te=e.startShowing,this.#tt=e.fullyShowing)};#tn=!1;#e9(){this.#tn||(this.#L.addEventListener("touchend",this.#ti),this.#tn=!0)}#ti=()=>{this.#e5?(this.#L.dispatchEvent(new CustomEvent("headerreleased",aD)),this.#L.dispatchEvent(new CustomEvent("startrefresh",{...aD,detail:{isManual:this.#L._nextRefreshIsManual}})),this.#L._nextRefreshIsManual=!0):("true"===this.#L.getAttribute("enable-auto-loadmore")&&this.#te||this.#tt)&&(this.#L.dispatchEvent(new CustomEvent("footerreleased",aD)),this.#L.dispatchEvent(new CustomEvent("startloadmore",aD)))};#e6(){this.#tn&&this.#L.removeEventListener("touchend",this.#ti)}#tl=!1;#ta=!1;#e3(){this.#ta||(this.#L.addEventListener("touchstart",this.#ts),this.#L.addEventListener("touchend",this.#tr),this.#L.addEventListener("touchcancel",this.#tr),this.#L.shadowRoot.querySelector("#container").addEventListener("scroll",this.#V))}#tr=()=>{this.#tl=!1};#ts=()=>{this.#tl=!0};#V=()=>{if(this.#e7&&(this.#e4.headershow||this.#e4.headeroffset)){let e=this.#e0();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#L.shadowRoot.querySelector("#container").scrollTop;this.#L.dispatchEvent(new CustomEvent("headershow",{...aD,detail:{isDragging:this.#tl,offsetPercent:1-n/t}})),this.#L.dispatchEvent(new CustomEvent("headeroffset",{...aD,detail:{isDragging:this.#tl,offsetPercent:1-n/t}}))}}else if(this.#te&&this.#e4.footeroffset){let e=this.#e1();if(e){let t=this.#L.shadowRoot.querySelector("#container").scrollTop,n=parseFloat(getComputedStyle(e).height);this.#L.dispatchEvent(new CustomEvent("footeroffset",{...aD,detail:{isDragging:this.#tl,offsetPercent:1-t/n}}))}}};#e8(){this.#ta&&(this.#L.removeEventListener("touchstart",this.#ts),this.#L.removeEventListener("touchend",this.#tr),this.#L.removeEventListener("touchcancel",this.#tr),this.#L.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#V))}dispose(){this.#e6(),this.#e8()}})],aZ)],nh=[],nu=HTMLElement,(class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;aw(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#to=ak(()=>this.shadowRoot,"#container");#td=ak(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#to(),t=this.#td();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#to(),n=this.#td();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#td().scrollHeight}get[a$](){return this}static{a_(nd,nh)}}),ny=[aA("x-svg",[aH,(nv=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nm=[aM("src",!0)],np=[aM("content",!0)],nb=[aN("load")],aw(this,null,nm,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,nv),aw(this,null,np,{kind:"method",name:"_handleContent",static:!1,private:!1,access:{has:e=>"_handleContent"in e,get:e=>e._handleContent},metadata:e},null,nv),aw(this,null,nb,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,nv),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#L=a_(this,nv);#n=null;#eR=ak(()=>this.#L.shadowRoot,"#img");_handleSrc(e){e?this.#eR().src=e:this.#eR().src=""}_handleContent(e){if(this.#n&&URL.revokeObjectURL(this.#n),!e){this.#n="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#n=n,this.#eR().src=n}_enableLoadEvent(e){e?this.#eR().addEventListener("load",this.#eD,{passive:!0}):this.#eR().removeEventListener("load",this.#eD)}#eD=()=>{this.#L.dispatchEvent(new CustomEvent("load",{...aD,detail:{width:this.#eR().naturalWidth,height:this.#eR().naturalHeight}}))};constructor(e){this.#L=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nE=[],nS=HTMLElement,(class extends nS{static{nf=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nS[Symbol.metadata]??null):void 0;aw(null,ng={value:nf},ny,{kind:"class",name:nf.name,metadata:e},null,nE),nf=ng.value,e&&Object.defineProperty(nf,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(nf,nE)}}),nx=[aA("x-swiper-item",[a9,aH])],nC=[],nT=HTMLElement,(class extends nT{static{n_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nT[Symbol.metadata]??null):void 0;aw(null,nw={value:n_},nx,{kind:"class",name:n_.name,metadata:e},null,nC),n_=nw.value,e&&Object.defineProperty(n_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(n_,nC)}}),n0=[aA("x-swiper",[aH,(nU=[],nV=[],n$=[],nB=[],nX=[],nq=[],nY=[],nG=[],nJ=[],nK=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nF=[aM("indicator-color",!0)],nH=[aM("indicator-active-color",!0)],nj=[aM("page-margin",!0)],nz=[aM("previous-margin",!0)],nW=[aM("next-margin",!0)],aw(null,null,nF,{kind:"field",name:"_handleIndicatorColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorColor"in e,get:e=>e._handleIndicatorColor,set:(e,t)=>{e._handleIndicatorColor=t}},metadata:e},nU,nV),aw(null,null,nH,{kind:"field",name:"_handleIndicatorActiveColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorActiveColor"in e,get:e=>e._handleIndicatorActiveColor,set:(e,t)=>{e._handleIndicatorActiveColor=t}},metadata:e},n$,nB),aw(null,null,nj,{kind:"field",name:"_handlePageMargin",static:!1,private:!1,access:{has:e=>"_handlePageMargin"in e,get:e=>e._handlePageMargin,set:(e,t)=>{e._handlePageMargin=t}},metadata:e},nX,nq),aw(null,null,nz,{kind:"field",name:"_handlePreviousMargin",static:!1,private:!1,access:{has:e=>"_handlePreviousMargin"in e,get:e=>e._handlePreviousMargin,set:(e,t)=>{e._handlePreviousMargin=t}},metadata:e},nY,nG),aw(null,null,nW,{kind:"field",name:"_handleNextMargin",static:!1,private:!1,access:{has:e=>"_handleNextMargin"in e,get:e=>e._handleNextMargin,set:(e,t)=>{e._handleNextMargin=t}},metadata:e},nJ,nK),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#L;#tc=0;#th=ak(()=>this.#L.shadowRoot,"#indicator-container");#tu=ak(()=>this.#L.shadowRoot,"#indicator-style");#tm;constructor(e){a_(this,nK),this.#L=e}_handleIndicatorColor=a_(this,nU,aI(this.#th,"--indicator-color",void 0,!0));_handleIndicatorActiveColor=(a_(this,nV),a_(this,n$,aI(this.#th,"--indicator-active-color",void 0,!0)));_handlePageMargin=(a_(this,nB),a_(this,nX,aI(this.#th,"--page-margin",void 0,!0)));_handlePreviousMargin=(a_(this,nq),a_(this,nY,aI(this.#th,"--previous-margin",void 0,!0)));_handleNextMargin=(a_(this,nG),a_(this,nJ,aI(this.#th,"--next-margin",void 0,!0)));#tp(){let e=this.#L.childElementCount;if(e!==this.#tc){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#th().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#L.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#tu().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#tc=e}connectedCallback(){this.#tp(),this.#tm=new MutationObserver(this.#tp.bind(this)),this.#tm.observe(this.#L,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#L.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#L.childElementCount,i=this.#th();for(let e=0;e<n;e++){let n=i.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),aT(()=>{this.#th().children[this.#L.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#tm?.disconnect(),this.#tm=void 0}}),(nL=[],nI=[],nk=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nO=[aN("transition")],aw(this,null,[aN("scrollstart"),aN("lynxscrollend"),aN("change"),aN("change-event-for-indicator")],{kind:"method",name:"_enableScrollEventProcessor",static:!1,private:!1,access:{has:e=>"_enableScrollEventProcessor"in e,get:e=>e._enableScrollEventProcessor},metadata:e},null,nL),aw(null,null,nO,{kind:"field",name:"_handleEnableTransitionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableTransitionEvent"in e,get:e=>e._handleEnableTransitionEvent,set:(e,t)=>{e._handleEnableTransitionEvent=t}},metadata:e},nI,nk),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=a_(this,nL);#tb=0;#tv=0;#tl=!1;#M;#tg=!1;constructor(e){this.#L=e}#td=ak(()=>this.#L.shadowRoot,"#content").bind(this);_handleEnableTransitionEvent=a_(this,nI,aO(this.#td,"scroll",this.#tf,{passive:!0}));#V(){aU||(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#tg||(this.#L.dispatchEvent(new CustomEvent("scrollstart",{...aD,detail:{current:this.#tb,isDragged:this.#tl}})),this.#tg=!0);let e=this.#td(),t=this.#L.isVertical,n=t?e.scrollTop:e.scrollLeft,i=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#tv-n)>i/4||n<10||Math.abs(n-l)<=i){let e=this.#L.currentIndex;e!==this.#tb&&(this.#L.dispatchEvent(new CustomEvent("change",{...aD,detail:{current:e,isDragged:this.#tl}})),this.#tb=e),this.#tv=n}}#B(){this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aD,detail:{current:this.#tb}})),this.#tg=!1}#ty(){this.#tl=!0}#tE(){this.#tl=!1}#tf(){this.#L.dispatchEvent(new CustomEvent("transition",{...aD,detail:{dx:this.#td().scrollLeft,dy:this.#td().scrollTop}}))}#tS=(a_(this,nk),[aO(this.#td,"scroll",this.#V.bind(this),{passive:!0}),aO(this.#td,"touchstart",this.#ty.bind(this),{passive:!0}),aO(this.#td,"touchend",this.#tE.bind(this),{passive:!0}),aO(this.#td,"touchcancel",this.#tE.bind(this),{passive:!0}),aO(this.#td,"scrollend",this.#B.bind(this),{passive:!0})]);#e4={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};_enableScrollEventProcessor(e,t){this.#e4[t]=e;let{lynxscrollend:n,scrollstart:i,change:l}=this.#e4,a=l||n||i||this.#e4["change-event-for-indicator"];this.#tS.forEach(e=>e(a))}connectedCallback(){this.#tb=parseFloat(this.#L.getAttribute("current")??"0");let e=this.#L.isVertical;this.#tv=e?this.#td().scrollTop:this.#td().scrollLeft}}),(nD=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nR=[aM("circular",!1)],nN=[aM("vertical",!0)],aw(this,null,nR,{kind:"method",name:"_handleCircular",static:!1,private:!1,access:{has:e=>"_handleCircular"in e,get:e=>e._handleCircular},metadata:e},null,nD),aw(this,null,nN,{kind:"method",name:"_handleVerticalChange",static:!1,private:!1,access:{has:e=>"_handleVerticalChange"in e,get:e=>e._handleVerticalChange},metadata:e},null,nD),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#L=a_(this,nD);#tw=!1;#t_;#tx=0;#td=ak(()=>this.#L.shadowRoot,"#content").bind(this);constructor(e){this.#L=e}#tC=ak(()=>this.#L.shadowRoot,"#circular-start").bind(this);#tT=ak(()=>this.#L.shadowRoot,"#circular-end").bind(this);#tO(e){let t=this.#L.childElementCount;if(t>2){let{current:n,isDragged:i,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,a=this.#td(),s=this.#tC().assignedElements(),r=this.#tT().assignedElements(),o=this.#L.firstElementChild,d=this.#L.lastElementChild,c=this.#L.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#L.children[n]),this.#tw){let t="carousel"===this.#L.getAttribute("mode")?.8*a.clientHeight/2:a.clientHeight/2;this.#tx=e.offsetTop+e.offsetHeight/2-c-t,a.scrollTop=this.#tx}else{let t="carousel"===this.#L.getAttribute("mode")?.8*a.clientWidth/2:a.clientWidth/2;this.#tx=e.offsetLeft+e.offsetWidth/2-c-t,a.scrollLeft=this.#tx}if(!i){let e=this.#L.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#tL(l?"instant":"smooth")}}}}#tL(e){let t=this.#td(),n=this.#L.snapDistance;t.scrollBy({top:this.#tw?n:0,left:this.#tw?0:n,behavior:e??"smooth"})}#tS=[aO(()=>this.#L,"change",this.#tO.bind(this),{passive:!0}),aO(()=>this.#L,"touchmove",this.#tI.bind(this),{passive:!1}),aO(()=>this.#L,"touchend",this.#tk.bind(this),{passive:!1}),aO(()=>this.#L,"touchcancel",this.#tk.bind(this),{passive:!1})];_handleCircular(e){this.#tS.forEach(t=>t(null!=e)),null!==e&&this.#tO({detail:{current:this.#L.currentIndex,isDragged:!1,__isFirstLayout:!0}})}#tI(e){let t=e.touches.item(0);if(t){let e=this.#tw?t.pageY:t.pageX;if(void 0!==this.#t_){this.#tA();let t=this.#t_-e;this.#tx+=t}this.#t_=e}}#tk(e){this.#tP(),this.#tL(),this.#t_=void 0}_handleVerticalChange(e){this.#tw=null!==e}#tM;#tA(){if(!this.#tM){let e=this.#td();this.#tx=this.#tw?e.scrollTop:e.scrollLeft,this.#tM=setInterval(()=>{this.#tw?e.scrollTop=this.#tx:e.scrollLeft=this.#tx},10)}}#tP(){this.#tM&&(clearInterval(this.#tM),this.#tM=void 0)}dispose(){this.#tP()}}),(nM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nA=[aM("current",!1)],nP=[aM("interval",!1),aM("autoplay",!1)],aw(this,null,nA,{kind:"method",name:"_handleCurrentChange",static:!1,private:!1,access:{has:e=>"_handleCurrentChange"in e,get:e=>e._handleCurrentChange},metadata:e},null,nM),aw(this,null,nP,{kind:"method",name:"_handleAutoplay",static:!1,private:!1,access:{has:e=>"_handleAutoplay"in e,get:e=>e._handleAutoplay},metadata:e},null,nM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#L=a_(this,nM);constructor(e){this.#L=e}#tR(){this.#L.currentIndex===this.#L.childElementCount-1?this.#L.circularPlay&&(this.#L.currentIndex=0):this.#L.currentIndex+=1}_handleCurrentChange(e){let t=Number(e);Number.isNaN(t)||(this.#L.currentIndex=t)}#tN;#tD=(()=>{this.#tR()}).bind(this);#tF(e){this.#tH(),this.#tN=setInterval(this.#tD,e)}#tH(){this.#tN&&clearInterval(this.#tN)}_handleAutoplay(){if(null!==this.#L.getAttribute("autoplay")){let e=this.#L.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#tF(t)}}dispose(){this.#tH()}})],a0)],n1=[],n2=HTMLElement,(class extends n2{static{nZ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n2[Symbol.metadata]??null):void 0;aw(null,nQ={value:nZ},n0,{kind:"class",name:nZ.name,metadata:e},null,n1),nZ=nQ.value,e&&Object.defineProperty(nZ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#td=ak(()=>this.shadowRoot,"#content").bind(this);#tj(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let i=this.#td(),l=this.isVertical,a=this.childElementCount,s=l?i.scrollTop:i.scrollLeft,r=l?i.clientHeight:i.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let i=0;i<a;i++){let a=this.children[i];if(a){let s=(l?a.offsetTop:a.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=i,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#tj().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#tz(e,t?"smooth":"instant")}#tz(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,i=0;i="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#td().scrollTo({left:e?0:i,top:e?i:0,behavior:t})}}get snapDistance(){return this.#tj().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollTo(...e){if(e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"index"in e[0]){let{index:t,smooth:n=!0}=e[0];if("number"==typeof t)return void this.#tz(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#tz(Number(e),"instant")}get[a$](){return this}static{a_(nZ,n1)}}),n9=[aA("inline-image",[(n4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(this,null,[aM("src",!0)],{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,n4),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#L=a_(this,n4);constructor(e){this.#L=e}#tW=ak(()=>this.#L.shadowRoot,"#img");_handleSrc(e){e?this.#tW().setAttribute("src",e):this.#tW().removeAttribute("src")}})],aG({}))],n6=[],n7=HTMLElement,(class extends n7{static{n8=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n7[Symbol.metadata]??null):void 0;aw(null,n3={value:n8},n9,{kind:"class",name:n8.name,metadata:e},null,n6),n8=n3.value,e&&Object.defineProperty(n8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(n8,n6)}}),it=[aA("inline-text",[])],ii=[],il=HTMLElement,(class extends il{static{ie=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(il[Symbol.metadata]??null):void 0;aw(null,n5={value:ie},it,{kind:"class",name:ie.name,metadata:e},null,ii),ie=n5.value,e&&Object.defineProperty(ie,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(ie,ii)}}),ir=[aA("inline-truncation",[])],io=[],id=HTMLElement,n=class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;aw(null,ia={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),n=is=ia.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{a_(is,io)}},n=is;let sb=(ic=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(this,null,[aM("text",!0)],{kind:"method",name:"_handleText",static:!1,private:!1,access:{has:e=>"_handleText"in e,get:e=>e._handleText},metadata:e},null,ic),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#L=a_(this,ic);#tU;constructor(e){this.#L=e}_handleText(e){this.#tU?.remove(),e&&(this.#tU=new Text(e),this.#L.append(this.#tU))}});im=[aA("raw-text",[sb])],ip=[],ib=HTMLElement,class extends ib{static{iu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ib[Symbol.metadata]??null):void 0;aw(null,ih={value:iu},im,{kind:"class",name:iu.name,metadata:e},null,ip),iu=ih.value,e&&Object.defineProperty(iu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(iu,ip)}};let sv=(iy=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iv=[aM("text-maxlength",!0),aM("text-maxline",!0),aM("tail-color-convert",!0)],ig=[aN("layout")],aw(this,null,iv,{kind:"method",name:"_handleAttributeChange",static:!1,private:!1,access:{has:e=>"_handleAttributeChange"in e,get:e=>e._handleAttributeChange},metadata:e},null,iy),aw(this,null,ig,{kind:"method",name:"_handleEnableLayoutEvent",static:!1,private:!1,access:{has:e=>"_handleEnableLayoutEvent"in e,get:e=>e._handleEnableLayoutEvent},metadata:e},null,iy),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#tV=(a_(this,iy),!1);#t$=!1;#tB=new Map;#tX;#k;#tq;#tY;#tG=!1;#tJ=NaN;#tK=NaN;#tQ=!0;#tZ=!1;get #t0(){return!this.#t1&&!this.#tQ}get #t1(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#L.matches(":has(inline-truncation)");{let e=this.#L.querySelector("inline-truncation");if(e?.parentElement===this.#L)return!0}return!1}get #t2(){return!isNaN(this.#tK)&&(this.#t1||!this.#tQ)}#L;constructor(e){this.#L=e}#t4=ak(()=>this.#L.shadowRoot,"#inner-box");#t3(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#tB.delete(e)}),"characterData"===e.type&&void 0!==this.#tB.get(e.target)&&this.#tB.set(e.target,e.target.data)})}#t8(){for(let[t,n]of this.#tB)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#L.removeAttribute(e.exceedMathLengthAttribute),this.#L.removeAttribute(e.showInlineTruncation)}#t9(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#t6(){!this.#t$||this.#L.matches("x-text>x-text")||this.#tV||(this.#tV=!0,aT(async()=>{await this.#t7(),this.#t5(),this.#tV=!1}))}async #t7(){if(this.#tq?.parentElement?.removeChild(this.#tq),this.#t8(),!this.#t2&&isNaN(this.#tJ))return;await document.fonts.ready;let t=this.#t4().getBoundingClientRect();this.#tY=new sg(this.#L,t);let n=this.#tY,i=(isNaN(this.#tJ)?void 0:n.getNodeInfoByCharIndex(this.#tJ))?this.#tJ:1/0,l=this.#t2&&n.getLineInfo(this.#tK)?n.getLineInfo(this.#tK-1):void 0,a=1/0,s=3;if(l){let{start:i,end:r}=l,o=r-i;if(this.#t1){this.#L.setAttribute(e.showInlineTruncation,"");let l=this.#L.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=l.width;if(s>o){a=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(a),i=r-t.start;for(e.setEnd(t.node,i),e.setStart(t.node,i);e.getBoundingClientRect().width<o&&(a-=1)&&(t=n.getNodeInfoByCharIndex(a));)e.setStart(t.node,a-t.start)}else a=i,this.#L.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,a=i):a=r-3}let r=Math.min(i,a);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let i=r-t.start,l=t.node,a=[];l.nodeType===Node.TEXT_NODE?(this.#tB.set(l,l.data),l.data=l.data.substring(0,i)):a.push(l),a=a.concat(this.#t9(l));let o=l.parentElement;for(;o!==this.#L;)a=a.concat(this.#t9(o)),o=o.parentElement;if(a.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#tB.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#tB.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#t0){let e=(0===i?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#tq=new Text(Array(s).fill(".").join("")),e.append(this.#tq)}this.#L.setAttribute(e.exceedMathLengthAttribute,"")}this.#ne(r)}}#nt=e=>{this.#t3(e),this.#t6()};#nn=()=>{if(this.#tG){this.#tG=!1;return}this.#t6()};#t5(){this.#t$&&((this.#tJ||this.#tK)&&!this.#tX&&(this.#tX=new MutationObserver(this.#nt),this.#tX.observe(this.#L,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#tK&&!this.#k&&(this.#k=new ResizeObserver(this.#nn),this.#tG=!0,this.#k.observe(this.#t4(),{box:"content-box"})))}#ni(){this.#tX?.disconnect(),this.#tX=void 0,this.#k?.disconnect(),this.#k=void 0}_handleAttributeChange(){this.#tJ=parseFloat(this.#L.getAttribute("text-maxlength")??""),this.#tK=parseFloat(this.#L.getAttribute("text-maxline")??""),this.#tQ="false"!==this.#L.getAttribute("tail-color-convert"),this.#tJ<0&&(this.#tJ=NaN),this.#tK<1&&(this.#tK=NaN),isNaN(this.#tK)?this.#t4().style.removeProperty("-webkit-line-clamp"):this.#t4().style.webkitLineClamp=this.#tK.toString(),this.#t6()}_handleEnableLayoutEvent(e){this.#tZ=e}#ne(e){if(!this.#tZ)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#tY||(t.#tY=new sg(t.#L,t.#L.getBoundingClientRect())),t.#tY.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let i=parseFloat(n.toString());if(!isNaN(i)){t.#tY||(t.#tY=new sg(t.#L,t.#L.getBoundingClientRect()));let n=t.#tY.getLineInfo(i);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#L.dispatchEvent(new CustomEvent("layout",{...aD,detail:t}))}dispose(){this.#ni()}connectedCallback(){this.#t$=!0,this._handleEnableLayoutEvent(this.#tZ),this._handleAttributeChange(),aT(()=>{this.#ne()})}});class sg{#nl=[{start:0}];#na=[];#ns=[];#L;#nr;nodelist;constructor(e,t){this.#L=e,this.nodelist=new sf(this.#L),this.#nr=t}#no(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,i=e.node,l=document.createRange();l.selectNode(i);for(let e=0;e<i.data.length;e++){l.setEnd(i,e);let a=l.getClientRects().item(n);if(a&&a.right===t.right)return e}return i.data.length}}#nd(e){if(this.#na[e])return;let{left:t}=this.#nr,n=this.#na[this.#na.length-1],i=n?.[n.length-1],l=i?.nodeIndex?i?.nodeIndex+1:0;for(let n=l,i;(i=this.#nc(n))&&e>=this.#na.length;n++){let e,{node:n}=i;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#na[this.#na.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#na.push([{...i,rect:l,rectIndex:0}]):n.push({...i,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let a=e[n];(a.left!==l.left||a.bottom!==l.bottom)&&(.2>Math.abs(a.left-t)?this.#na.push([{...i,rect:a,rectIndex:n}]):this.#na[this.#na.length-1].push({...i,rect:a,rectIndex:n}))}}}}getLineCount(){return this.#nd(1/0),this.#na.length}getLineInfo(e){if(this.#nd(e+1),e<this.#na.length){let t=e>0?this.#nl[e-1]??{}:void 0,n=this.#nl[e]??{},i=e<this.#na.length-1?this.#nl[e+1]??{}:void 0;if(void 0===n.start){let i=this.#na[e-1],l=i[i.length-1],a=this.#no(l),s=l.start+a;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#na[e],l=t[t.length-1];if(e===this.#na.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#no(l);n.end=l.start+e,i.start=n.end+1}}return n}}#nc(e){let t=this.#ns.length-1,n=this.#ns[t],i=n?n.start+n.length:0;for(let t=this.#ns.length,n;(n=this.nodelist.at(t))&&e>=this.#ns.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:i,nodeIndex:t};this.#ns.push(l)}return this.#ns[e]}getNodeInfoByCharIndex(e){let t,n=0,i=this.#ns.length-1;for(;n<=i;){let l=Math.floor((n+i)/2),a=this.#ns[l],s=a.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=a.start;if(e>=o&&e<o+r){t=a;break}e<o?i=l-1:n=l+1}if(t)return t;for(let t=this.#ns.length,n;n=this.#nc(t);t++)if(e<n.start+n.length)return n}}class sf{#nh=[];#nu;constructor(e){this.#nu=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.tagName;if("X-TEXT"===t||"INLINE-TEXT"===t||"RAW-TEXT"===t||"LYNX-WRAPPER"===t)return NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_ACCEPT})}at(e){return this.#nh[e]||this.#nm(e),this.#nh[e]}#nm(e){let t=null;for(;e>=this.#nh.length&&(t=this.#nu.nextNode());){this.#nh.push(t);break}}}iw=[aA("x-text",[aH,sv,sb],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],i_=[],ix=HTMLElement,(class extends ix{static{iS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ix[Symbol.metadata]??null):void 0;aw(null,iE={value:iS},iw,{kind:"class",name:iS.name,metadata:e},null,i_),iS=iE.value,e&&Object.defineProperty(iS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aX.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aF]=this;static{a_(iS,i_)}}),ld=[aA("x-textarea",[aH,(ik=[],iA=[],iP=[],iM=[],iR=[],iN=[],iD=[],iF=[],iH=[],ij=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iC=[aM("placeholder-color",!0)],iT=[aM("placeholder-font-size",!0)],iO=[aM("placeholder-font-weight",!0)],iL=[aM("placeholder-font-family",!0)],iI=[aM("placeholder",!0)],aw(null,null,iC,{kind:"field",name:"_updatePlaceholderColor",static:!1,private:!1,access:{has:e=>"_updatePlaceholderColor"in e,get:e=>e._updatePlaceholderColor,set:(e,t)=>{e._updatePlaceholderColor=t}},metadata:e},ik,iA),aw(null,null,iT,{kind:"field",name:"_updatePlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontSize"in e,get:e=>e._updatePlaceholderFontSize,set:(e,t)=>{e._updatePlaceholderFontSize=t}},metadata:e},iP,iM),aw(null,null,iO,{kind:"field",name:"_updatePlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontWeight"in e,get:e=>e._updatePlaceholderFontWeight,set:(e,t)=>{e._updatePlaceholderFontWeight=t}},metadata:e},iR,iN),aw(null,null,iL,{kind:"field",name:"_updatePlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontFamily"in e,get:e=>e._updatePlaceholderFontFamily,set:(e,t)=>{e._updatePlaceholderFontFamily=t}},metadata:e},iD,iF),aw(null,null,iI,{kind:"field",name:"_handlePlaceholder",static:!1,private:!1,access:{has:e=>"_handlePlaceholder"in e,get:e=>e._handlePlaceholder,set:(e,t)=>{e._handlePlaceholder=t}},metadata:e},iH,ij),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#np=ak(()=>this.#L.shadowRoot,"#textarea");_updatePlaceholderColor=a_(this,ik,aI(this.#np,"--placeholder-color",void 0,!0));_updatePlaceholderFontSize=(a_(this,iA),a_(this,iP,aI(this.#np,"--placeholder-font-size",void 0,!0)));_updatePlaceholderFontWeight=(a_(this,iM),a_(this,iR,aI(this.#np,"--placeholder-font-weight",void 0,!0)));_updatePlaceholderFontFamily=(a_(this,iN),a_(this,iD,aI(this.#np,"--placeholder-font-family",void 0,!0)));_handlePlaceholder=(a_(this,iF),a_(this,iH,aL(this.#np,"placeholder")));#L=a_(this,ij);constructor(e){this.#L=e}}),(iB=[],iX=[],iq=[],iY=[],iG=[],iJ=[],iK=[],iQ=[],iZ=[],i0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iz=[aM("confirm-type",!0)],iW=[aM("maxlength",!0)],iU=[aM("readonly",!0)],iV=[aM("ios-spell-check",!0)],i$=[aM("show-soft-input-onfocus",!0)],aw(null,null,iz,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},iB,iX),aw(null,null,iW,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},iq,iY),aw(null,null,iU,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},iG,iJ),aw(null,null,iV,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},iK,iQ),aw(null,null,i$,{kind:"field",name:"_handleShowSoftInputOnfocus",static:!1,private:!1,access:{has:e=>"_handleShowSoftInputOnfocus"in e,get:e=>e._handleShowSoftInputOnfocus,set:(e,t)=>{e._handleShowSoftInputOnfocus=t}},metadata:e},iZ,i0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#L;#nb=ak(()=>this.#L.shadowRoot,"#textarea");_handlerConfirmType=a_(this,iB,aL(this.#nb,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(a_(this,iX),a_(this,iq,aL(this.#nb,"maxlength",e=>null===e?"140":e)));_handleReadonly=(a_(this,iY),a_(this,iG,aL(this.#nb,"readonly",e=>null!==e?"":null)));_handleSpellCheck=(a_(this,iJ),a_(this,iK,aL(this.#nb,"spellcheck",e=>null===e?"false":"true")));_handleShowSoftInputOnfocus=(a_(this,iQ),a_(this,iZ,aL(this.#nb,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){a_(this,i0),this.#L=e}}),(i9=[],i6=[],i7=[],i5=[],le=[],lt=[],ln=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1=[aM("confirm-enter",!0)],i2=[aM("disabled",!0)],i4=[aM("max-height",!0)],i3=[aM("min-height",!0)],i8=[aM("value",!1)],aw(this,null,i1,{kind:"method",name:"_handleConfirmEnter",static:!1,private:!1,access:{has:e=>"_handleConfirmEnter"in e,get:e=>e._handleConfirmEnter},metadata:e},null,i9),aw(this,null,i8,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,i9),aw(null,null,i2,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},i6,i7),aw(null,null,i4,{kind:"field",name:"_handleMaxHeight",static:!1,private:!1,access:{has:e=>"_handleMaxHeight"in e,get:e=>e._handleMaxHeight,set:(e,t)=>{e._handleMaxHeight=t}},metadata:e},i5,le),aw(null,null,i3,{kind:"field",name:"_handleMinHeight",static:!1,private:!1,access:{has:e=>"_handleMinHeight"in e,get:e=>e._handleMinHeight,set:(e,t)=>{e._handleMinHeight=t}},metadata:e},lt,ln),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#L=a_(this,i9);#nb=ak(()=>this.#L.shadowRoot,"#textarea");#eU=ak(()=>this.#L.shadowRoot,"#form");#nv=!1;_handleConfirmEnter(e){this.#nv=null!==e}_handleDisabled=a_(this,i6,aL(this.#nb,"disabled",e=>null!==e?"":null));_handleMaxHeight=(a_(this,i7),a_(this,i5,aI(this.#nb,"max-height")));_handleMinHeight=(a_(this,le),a_(this,lt,aI(this.#nb,"min-height")));_handleValue(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#nb();t.value!==e&&(t.value=e)}#ng=(a_(this,ln),e=>{this.#nv&&"Enter"===e.key&&this.#eU().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#L=e,this.#nb().addEventListener("keyup",this.#ng)}}),(ls=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;li=[aM("input-filter",!0),aN("lynxinput")],ll=[aM("send-composing-input",!0)],la=[aN("selection")],aw(this,null,li,{kind:"method",name:"_handleEnableConfirmEvent",static:!1,private:!1,access:{has:e=>"_handleEnableConfirmEvent"in e,get:e=>e._handleEnableConfirmEvent},metadata:e},null,ls),aw(this,null,ll,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,ls),aw(this,null,la,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,ls),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#L=a_(this,ls);#eW=!1;#nb=ak(()=>this.#L.shadowRoot,"#textarea");#eU=ak(()=>this.#L.shadowRoot,"#form");_handleEnableConfirmEvent(e){let t=this.#nb();e?(t.addEventListener("input",this.#eV,{passive:!0}),t.addEventListener("compositionend",this.#e$,{passive:!0})):(t.removeEventListener("input",this.#eV),t.removeEventListener("compositionend",this.#e$))}_handleSendComposingInput(e){this.#eW=null!==e}#eB=e=>{let t=su[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...aD,detail:{value:this.#nb().value}}))};#eV=e=>{let t=this.#nb(),n=this.#L.getAttribute("input-filter"),i=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=i,(!l||this.#eW)&&this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#e$=()=>{let e=this.#nb(),t=this.#L.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#eW||this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aD,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#nb().addEventListener("select",this.#eX,{passive:!0}):this.#nb().removeEventListener("select",this.#eX)}#eX=()=>{let e=this.#nb();this.#L.dispatchEvent(new CustomEvent("selection",{...aD,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eq=e=>{e.target===this.#nb()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;const t=this.#nb(),n=this.#eU();t.addEventListener("blur",this.#eB,{passive:!0}),t.addEventListener("focus",this.#eB,{passive:!0}),n.addEventListener("submit",this.#eB,{passive:!0}),n.addEventListener("input",this.#eq,{passive:!0})}})],a1)],lc=[],lh=HTMLElement,(class extends lh{static{lo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lh[Symbol.metadata]??null):void 0;aw(null,lr={value:lo},ld,{kind:"class",name:lo.name,metadata:e},null,lc),lo=lr.value,e&&Object.defineProperty(lo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(lo,lc)}#np=ak(()=>this.shadowRoot,"#textarea");get value(){return this.#np().value}set value(e){this.#np().value=e}addText(e){let{text:t}=e,n=this.#np(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}setValue(e){let t,n=this.#np();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#np();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#np();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#np();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#np().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lp=[aA("x-view",[a9,aH])],lb=[],lv=HTMLElement,(class extends lv{static{lm=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lv[Symbol.metadata]??null):void 0;aw(null,lu={value:lm},lp,{kind:"class",name:lm.name,metadata:e},null,lb),lm=lu.value,e&&Object.defineProperty(lm,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(lm,lb)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aX.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aF]=this}),lE=[aA("x-blur-view",[aH,(lg=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(this,null,[aM("blur-radius",!0)],{kind:"method",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius},metadata:e},null,lg),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#L=a_(this,lg);#nf=ak(()=>this.#L.shadowRoot,"#dynamic-style");_handleBlurRadius(e){e?(e=`blur(${parseFloat(e)}px)`,this.#nf().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#nf().innerHTML=""}constructor(e){this.#L=e}})],'<style id="dynamic-style"></style><slot></slot>')],lS=[],lw=HTMLElement,(class extends lw{static{ly=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lw[Symbol.metadata]??null):void 0;aw(null,lf={value:ly},lE,{kind:"class",name:ly.name,metadata:e},null,lS),ly=lf.value,e&&Object.defineProperty(ly,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(ly,lS)}}),lL=[aA("x-viewpager-ng",[a9,aH,(lC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l_=[aN("change")],lx=[aN("offsetchange")],aw(this,null,l_,{kind:"method",name:"_enableChangeEvent",static:!1,private:!1,access:{has:e=>"_enableChangeEvent"in e,get:e=>e._enableChangeEvent},metadata:e},null,lC),aw(this,null,lx,{kind:"method",name:"_enableOffsetChangeEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetChangeEvent"in e,get:e=>e._enableOffsetChangeEvent},metadata:e},null,lC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=a_(this,lC);#ny=!1;#t=!1;#nE=0;#M;constructor(e){this.#L=e}#D=ak(()=>this.#L.shadowRoot,"#content");#nS=()=>{if(!this.#t)return;let e=this.#D(),t=this.#L.clientWidth,n=e.scrollLeft;this.#nw&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#n_()},100)),this.#L.dispatchEvent(new CustomEvent("offsetchange",{...aD,detail:{offset:n/t}}))};#n_=()=>{if(this.#t){let e=this.#D(),t=this.#L.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#nE&&(this.#L.dispatchEvent(new CustomEvent("change",{...aD,detail:{index:n,isDragged:this.#ny}})),this.#nE=n)}};#nx=()=>{this.#ny=!0};#nC=()=>{this.#ny=!1};#nw=!1;_enableChangeEvent(e){this.#nw=e,this.#nT()}#nO=!1;_enableOffsetChangeEvent(e){this.#nO=e,this.#nT()}#nT(){let e=this.#D();this.#nO||this.#nw?e.addEventListener("scroll",this.#nS,{passive:!0}):e.removeEventListener("scroll",this.#nS),aU&&this.#nw?e.addEventListener("scrollend",this.#n_,{passive:!0}):e.removeEventListener("scrollend",this.#n_)}connectedCallback(){this.#t=!0;let e=this.#D();this.#L.addEventListener("touchstart",this.#nx,{passive:!0}),e.addEventListener("touchend",this.#nC,{passive:!0}),e.addEventListener("touchcancel",this.#nC,{passive:!0})}dispose(){let e=this.#D();e.removeEventListener("scroll",this.#nS),e.removeEventListener("scrollend",this.#n_)}})],a2)],lI=[],lk=HTMLElement,(class extends lk{static{lO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lk[Symbol.metadata]??null):void 0;aw(null,lT={value:lO},lL,{kind:"class",name:lO.name,metadata:e},null,lI),lO=lT.value,e&&Object.defineProperty(lO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let i=this.shadowRoot.children.item(2),l=i.clientWidth*t;i.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),i=()=>{0===n.clientWidth?requestAnimationFrame(i):this.selectTab({index:t,smooth:!1})};aT(i)}}get[a$](){return this}static{a_(lO,lI)}}),lM=[aA("x-viewpager-item-ng",[a9,aH])],lR=[],lN=HTMLElement,(class extends lN{static{lP=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lN[Symbol.metadata]??null):void 0;aw(null,lA={value:lP},lM,{kind:"class",name:lP.name,metadata:e},null,lR),lP=lA.value,e&&Object.defineProperty(lP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(lP,lR)}}),lz=[aA("list-item",[aH,(lD=[],lF=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aw(null,null,[aM("estimated-main-axis-size-px",!0)],{kind:"field",name:"_handlerEstimatedMainAxisSizePx",static:!1,private:!1,access:{has:e=>"_handlerEstimatedMainAxisSizePx"in e,get:e=>e._handlerEstimatedMainAxisSizePx,set:(e,t)=>{e._handlerEstimatedMainAxisSizePx=t}},metadata:e},lD,lF),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#L;_handlerEstimatedMainAxisSizePx=a_(this,lD,aI(()=>this.#L,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){a_(this,lF),this.#L=e}})])],lW=[],lU=HTMLElement,class extends lU{static{lj=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lU[Symbol.metadata]??null):void 0;aw(null,lH={value:lj},lz,{kind:"class",name:lj.name,metadata:e},null,lW),lj=lH.value,e&&Object.defineProperty(lj,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["recyclable"]);static{a_(lj,lW)}};let sy=function(e,t,n){let i,l,a,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),i=null,s=e.apply(l,a),i||(l=a=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,a=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),r=d,s=e.apply(l,a),i||(l=a=null)):i||n?.trailing===!1||(i=setTimeout(o,c)),s}},sE="waterfall-slot",sS="waterfall-style";ao=[aA("x-list",[aH,(lB=[],lX=[],lq=[],lY=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lV=[aM("sticky-offset",!0)],l$=[aM("span-count",!0),aM("column-count",!0)],aw(null,null,lV,{kind:"field",name:"_handlerStickyOffset",static:!1,private:!1,access:{has:e=>"_handlerStickyOffset"in e,get:e=>e._handlerStickyOffset,set:(e,t)=>{e._handlerStickyOffset=t}},metadata:e},lB,lX),aw(null,null,l$,{kind:"field",name:"_handlerCount",static:!1,private:!1,access:{has:e=>"_handlerCount"in e,get:e=>e._handlerCount,set:(e,t)=>{e._handlerCount=t}},metadata:e},lq,lY),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#L;_handlerStickyOffset=a_(this,lB,aI(()=>this.#L,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));_handlerCount=(a_(this,lX),a_(this,lq,aI(()=>this.#L,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){a_(this,lY),this.#L=e}connectedCallback(){let e=this.#L.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#L.clientHeight?requestAnimationFrame(n):this.#L.scrollToPosition({position:t})};aT(n)}}}),(l2=[],l4=[],l3=[],l8=[],l9=[],l6=[],l7=[],l5=[],ae=[],at=[],an=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lG=[aN("scrolltoupper")],lJ=[aM("upper-threshold-item-count",!0)],lK=[aN("scrolltolower")],lQ=[aM("lower-threshold-item-count",!0)],lZ=[aN("lynxscroll"),aN("lynxscrollend"),aN("snap")],l0=[aN("scrolltoupperedge")],l1=[aN("scrolltoloweredge")],aw(this,null,lJ,{kind:"method",name:"_handleUpperThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleUpperThresholdItemCountChange"in e,get:e=>e._handleUpperThresholdItemCountChange},metadata:e},null,l2),aw(this,null,lQ,{kind:"method",name:"_handleLowerThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleLowerThresholdItemCountChange"in e,get:e=>e._handleLowerThresholdItemCountChange},metadata:e},null,l2),aw(null,null,lG,{kind:"field",name:"_updateEventSwitches",static:!1,private:!1,access:{has:e=>"_updateEventSwitches"in e,get:e=>e._updateEventSwitches,set:(e,t)=>{e._updateEventSwitches=t}},metadata:e},l4,l3),aw(null,null,lK,{kind:"field",name:"_updateScrollToLowerEventSwitches",static:!1,private:!1,access:{has:e=>"_updateScrollToLowerEventSwitches"in e,get:e=>e._updateScrollToLowerEventSwitches,set:(e,t)=>{e._updateScrollToLowerEventSwitches=t}},metadata:e},l8,l9),aw(null,null,lZ,{kind:"field",name:"_handleScrollEventsSwitches",static:!1,private:!1,access:{has:e=>"_handleScrollEventsSwitches"in e,get:e=>e._handleScrollEventsSwitches,set:(e,t)=>{e._handleScrollEventsSwitches=t}},metadata:e},l6,l7),aw(null,null,l0,{kind:"field",name:"_handleScrollToUpperEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToUpperEdgeEventEnable"in e,get:e=>e._handleScrollToUpperEdgeEventEnable,set:(e,t)=>{e._handleScrollToUpperEdgeEventEnable=t}},metadata:e},l5,ae),aw(null,null,l1,{kind:"field",name:"_handleScrollToLowerEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToLowerEdgeEventEnable"in e,get:e=>e._handleScrollToLowerEdgeEventEnable,set:(e,t)=>{e._handleScrollToLowerEdgeEventEnable=t}},metadata:e},at,an),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#L=a_(this,l2);#nL=ak(()=>this.#L.shadowRoot,"#content");#nI;#nk;#nA;#R=0;#N=0;#nP=!1;#M;#F=ak(()=>this.#L.shadowRoot,"#upper-threshold-observer");#H=ak(()=>this.#L.shadowRoot,"#lower-threshold-observer");#z(){let e=null!==this.#L.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l}=this.#nL(),a={scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l,deltaX:n-this.#R,deltaY:t-this.#N,attachedCells:e?this.#L.getVisibleCells():void 0};return this.#R=n,this.#N=t,a}#nM=e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...aD,detail:this.#z()}))};_updateEventSwitches=a_(this,l4,e=>{if(e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#e4.scrolltoupper=e,e){this.#nI||(this.#nI=new IntersectionObserver(this.#nM,{root:this.#nL()})),this.#nA||(this.#nA=new MutationObserver(this.#nR));let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#L.children[t-1];n&&this.#nI.observe(n),this.#nA.observe(this.#L,{childList:!0})}else this.#nI&&(this.#nI.disconnect(),this.#nI=void 0),this.#nA&&(this.#nA.disconnect(),this.#nA=void 0)});_handleUpperThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#F():this.#L.children[n-1];i&&this.#nI?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#F():this.#L.children[l-1];a&&this.#nI?.observe(a)}#nN=(a_(this,l3),e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...aD,detail:this.#z()}))});#e4={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};_updateScrollToLowerEventSwitches=a_(this,l8,e=>{if(this.#e4.scrolltolower=e,e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),e){this.#nk||(this.#nk=new IntersectionObserver(this.#nN,{root:this.#nL()})),this.#nA||(this.#nA=new MutationObserver(this.#nR));let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#L.children[this.#L.children.length-t];n&&this.#nk.observe(n),this.#nA.observe(this.#L,{childList:!0})}else this.#nk&&(this.#nk.disconnect(),this.#nk=void 0),this.#nA&&(this.#nA.disconnect(),this.#nA=void 0)});_handleLowerThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#H():this.#L.children[this.#L.children.length-n];i&&this.#nk?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#H():this.#L.children[this.#L.children.length-l];a&&this.#nk?.observe(a)}#nR=(a_(this,l9),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#e4.scrolltolower){this.#nk&&(this.#nk.disconnect(),this.#nk=void 0),this.#nk=new IntersectionObserver(this.#nN,{root:this.#nL()});let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#L.children[this.#L.children.length-t];n&&this.#nk.observe(n)}if(null!==this.#L.getAttribute("x-enable-scrolltoupper-event")){this.#nI&&(this.#nI.disconnect(),this.#nI=void 0),this.#nI=new IntersectionObserver(this.#nM,{root:this.#nL()});let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#L.children[t-1];n&&this.#nI.observe(n)}}});#nD=null;#V=()=>{this.#nP&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...aD,detail:this.#z()}))};_handleScrollEventsSwitches=a_(this,l6,(e,t)=>{this.#e4[t]=e;let{lynxscroll:n,lynxscrollend:i,snap:l}=this.#e4,a=this.#L.getAttribute("scroll-event-throttle");this.#nP=null!==i||null!==l;let s=this.#nL();if(this.#nD&&s.removeEventListener("scroll",this.#nD),null!==n||this.#nP){let e=null!==a?parseFloat(a):0,t=sy(this.#V,e,{leading:!0,trailing:!1});this.#nD=t,s.addEventListener("scroll",this.#nD),this.#R=0,this.#N=0}aU&&this.#nP?s.addEventListener("scrollend",this.#B):s.removeEventListener("scrollend",this.#B)});#j=(a_(this,l7),e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#L.dispatchEvent(new CustomEvent("scrolltoupperedge",{...aD,detail:this.#z()})):"lower-threshold-observer"===i&&this.#L.dispatchEvent(new CustomEvent("scrolltoloweredge",{...aD,detail:this.#z()})))});_handleScrollToUpperEdgeEventEnable=a_(this,l5,e=>{e?this.#L.setAttribute("x-enable-scrolltoupperedge-event",""):this.#L.removeAttribute("x-enable-scrolltoupperedge-event"),this.#nF(e)});#nF=(a_(this,ae),aW(this.#nL,this.#F,this.#j));_handleScrollToLowerEdgeEventEnable=a_(this,at,e=>{e?this.#L.setAttribute("x-enable-scrolltoloweredge-event",""):this.#L.removeAttribute("x-enable-scrolltoloweredge-event"),this.#nH(e)});#nH=(a_(this,an),aW(this.#nL,this.#H,this.#j));#B=()=>{let e=this.#L.getAttribute("item-snap");if(this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aD})),null!==e){let e=Array.from(this.#L.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#nL().scrollTop,n=this.#nL().scrollLeft,i=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#L.dispatchEvent(new CustomEvent("snap",{...aD,detail:{position:i&&e.indexOf(i),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#L=e}}),(aa=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ai=[aN("scrolltolower")],al=[aM("list-type",!0)],aw(this,null,ai,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,aa),aw(this,null,al,{kind:"method",name:"_handlerListType",static:!1,private:!1,access:{has:e=>"_handlerListType"in e,get:e=>e._handlerListType},metadata:e},null,aa),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#L=a_(this,aa);#nL=ak(()=>this.#L.shadowRoot,"#content");#nj=ak(()=>this.#L.shadowRoot,'div[part="lower-threshold-observer"]');#k;#nA;_handleXEnableHeaderOffsetEvent(e){if(e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#nj(),t=this.#L.getAttribute("scroll-orientation")||"vertical",n=this.#nL();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}}#nz=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sE}`),this.#L.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#nW=()=>{let e=parseFloat(this.#L.getAttribute("span-count")||this.#L.getAttribute("column-count")||"")||1,t="vertical"===(this.#L.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let i=0;i<this.#L.children.length;i++){let l=this.#L.children[i],a=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(a):l.getBoundingClientRect().width+parseFloat(a);if(null!==l.getAttribute("full-span")){let i=n[0];for(let t=1;t<e;t++)n[t]>i&&(i=n[t]);for(let t=0;t<e;t++)n[t]=i+r;t?(l.setAttribute(`${sS}-left`,"0"),l.setAttribute(`${sS}-top`,`${i}px`)):(l.setAttribute(`${sS}-left`,`${i}px`),l.setAttribute(`${sS}-top`,"0"))}else{let i=0,a=n[0];for(let t=1;t<e;t++)n[t]<a&&(i=t,a=n[t]);let o=`calc(${i} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,i)} * ${s})`;t?(l.setAttribute(`${sS}-left`,o),l.setAttribute(`${sS}-top`,`${a}px`)):(l.setAttribute(`${sS}-left`,`${a}px`),l.setAttribute(`${sS}-top`,o)),n[i]+=r}}for(let e=0;e<this.#L.children.length;e++){let t=this.#L.children[e];t.style.setProperty("left",t.getAttribute(`${sS}-left`)),t.style.setProperty("top",t.getAttribute(`${sS}-top`)),t.setAttribute("slot",sE)}};constructor(e){this.#L=e}#nU=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#nW()})}),Array.from(this.#L.children).forEach(e=>{this.#k?.observe(e)})};_handlerListType(e){if("waterfall"===e)this.#nz(),this.#k||this.#nU(),this.#nA||(this.#nA=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#nU()}),this.#nA.observe(this.#L,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#nA?.disconnect(),this.#nA=void 0;for(let e=0;e<this.#L.children.length;e++)this.#L.children[e].removeAttribute("slot");this.#L.shadowRoot?.querySelector(`slot[name=${sE}]`)?.remove()}}})],aK)],ad=[],ac=HTMLElement,(class extends ac{static{ar=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ac[Symbol.metadata]??null):void 0;aw(null,as={value:ar},ao,{kind:"class",name:ar.name,metadata:e},null,ad),ar=as.value,e&&Object.defineProperty(ar,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#nL=ak(()=>this.shadowRoot,"#content");#nV={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#n$={};get scrollTop(){return this.#nL().scrollTop}set scrollTop(e){this.#nL().scrollTop=e}get scrollLeft(){return this.#nL().scrollTop}set scrollLeft(e){this.#nL().scrollLeft=e}get __scrollTop(){return super.scrollTop}get __scrollLeft(){return super.scrollTop}scrollToPosition(e){let t;if("string"==typeof e.offset){let n=parseFloat(e.offset);t={left:n,top:n}}else"number"==typeof e.offset&&(t={left:e.offset,top:e.offset});if("number"==typeof e.position){if(0===e.position)this.#nL().scrollTop=0,this.#nL().scrollLeft=0;else if(e.position>0&&e.position<this.childElementCount){let n=this.children.item(e.position);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#nL().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#nB=e=>{if(!this.#nV.isScrolling)return;if(!this.#nV.lastTimestamp){this.#nV.lastTimestamp=e,requestAnimationFrame(this.#nB);return}let t=this.#nL(),n=(e-this.#nV.lastTimestamp)/1e3*this.#nV.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#nV.lastTimestamp=e;let i="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(i?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#nV.autoStop?(i?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#nV.isScrolling=!1):requestAnimationFrame(this.#nB)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#nV={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#nL(),i="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#nV.lastTimestamp=0,i?setTimeout(()=>requestAnimationFrame(this.#nB),0):requestAnimationFrame(this.#nB)}else this.#nV.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#n$),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);return e.map(e=>{let n=e.getBoundingClientRect();return{id:e.getAttribute("id"),itemKey:e.getAttribute("item-key"),bottom:n.bottom,top:n.top,left:n.left,right:n.right,index:t.indexOf(e)}})};#nX=()=>Object.values(this.#n$).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#nq=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",i="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#nX();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...aD,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#nX()}}))},100);return}if(i){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#n$[n]&&delete this.#n$[n]:this.#n$[n]=e.target;return}};connectedCallback(){this.#nL().addEventListener("contentvisibilityautostatechange",this.#nq,{passive:!0})}static{a_(ar,ad)}}),ay=[aA("x-webview",[aH,(am=[],ap=[],ab=[],av=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ah=[aM("src",!0)],au=[aM("html",!0)],aw(null,null,ah,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},am,ap),aw(null,null,au,{kind:"field",name:"_handleHtml",static:!1,private:!1,access:{has:e=>"_handleHtml"in e,get:e=>e._handleHtml,set:(e,t)=>{e._handleHtml=t}},metadata:e},ab,av),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","html"];#L;#nY=ak(()=>this.#L.shadowRoot,"#webview");constructor(e){a_(this,av),this.#L=e}_handleSrc=a_(this,am,aL(this.#nY,"src"));_handleHtml=(a_(this,ap),a_(this,ab,aL(this.#nY,"srcdoc")))})],a4)],aE=[],aS=HTMLElement,class extends aS{static{af=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aS[Symbol.metadata]??null):void 0;aw(null,ag={value:af},ay,{kind:"class",name:af.name,metadata:e},null,aE),af=ag.value,e&&Object.defineProperty(af,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),a_(af,aE)}#nY=ak(()=>this.shadowRoot,"#webview");#nG=()=>{this.dispatchEvent(new CustomEvent("load",{bubbles:!0,composed:!0,detail:{url:this.#nY().src}})),this.dispatchEvent(new CustomEvent("bindload",{bubbles:!0,composed:!0,detail:{url:this.#nY().src}}))};#nJ=e=>{this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}})),this.dispatchEvent(new CustomEvent("binderror",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}}))};#nK=e=>{e.source===this.#nY().contentWindow&&(this.dispatchEvent(new CustomEvent("message",{bubbles:!0,composed:!0,detail:{msg:e.data,data:e.data}})),this.dispatchEvent(new CustomEvent("bindmessage",{bubbles:!0,composed:!0,detail:{msg:e.data}})))};connectedCallback(){this.#nY().addEventListener("load",this.#nG),this.#nY().addEventListener("error",this.#nJ),window.addEventListener("message",this.#nK)}disconnectedCallback(){this.#nY().removeEventListener("load",this.#nG),this.#nY().removeEventListener("error",this.#nJ),window.removeEventListener("message",this.#nK)}get src(){return this.getAttribute("src")}set src(e){null===e?this.removeAttribute("src"):this.setAttribute("src",e)}get html(){return this.getAttribute("html")}set html(e){null===e?this.removeAttribute("html"):this.setAttribute("html",e)}reload(){this.#nY().src=this.#nY().src}}},7075(e,t,n){n.a(e,async function(e,t){try{var i=n(3493);n(6033),n(2990),n(3692),n(9374);var l=e([i]);i=(l.then?(await l)():l)[0];let d="lynx-web-core-init-data",c="lynx-web-core-global-props",h=document.createElement("lynx-view");document.body.appendChild(h);let u=new URLSearchParams(document.location.search).get("casename");function a(){if(u){let e={};try{let t=localStorage.getItem(d);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(c);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}h.globalProps=t,h.initData=e,h.url=u}}function s(e){localStorage.setItem(d,JSON.stringify(e)),a()}function r(e){localStorage.setItem(c,JSON.stringify(e)),a()}function o(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
315
315
  | | \\ \\ / / \\ | \\ \\ / / \\ \\ / / ____| _ \\ | __ \\| | /\\|__ __| ____/ __ \\| __ \\| \\/ |
316
316
  | | \\ \\_/ /| \\| |\\ V / \\ \\ /\\ / /| |__ | |_) | | |__) | | / \\ | | | |__ | | | | |__) | \\ / |
317
317
  | | \\ / | . \\ | > < \\ \\/ \\/ / | __| | _ < | ___/| | / /\\ \\ | | | __|| | | | _ /| |\\/| |