@lynx-js/web-explorer-canary 0.0.9 → 0.0.10-canary-20251010-2da147d2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/static/css/index.css +1 -1
- package/dist/static/js/async/64.js +3 -0
- package/dist/static/js/async/legacy-wasm-chunk.js +1 -0
- package/dist/static/js/async/web-core-main-thread-apis.js +1 -0
- package/dist/static/js/async/web-worker-runtime-main-thread.js +1 -0
- package/dist/static/js/index.js +37 -11
- package/dist/static/wasm/a027d161.module.wasm +0 -0
- package/dist/static/wasm/e9aa597d.module.wasm +0 -0
- package/dist/stats.json +60025 -54378
- package/package.json +7 -7
- package/preinstalled/homepage.json +1 -1
- package/dist/static/js/async/238.js +0 -1
- package/dist/static/js/async/45.js +0 -3
package/dist/static/js/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e,t,n,l={244:function(){},766:function(){},29:function(e,t,n){n.d(t,{Yx:()=>ef.Y,Ke:()=>x,g:()=>_,mB:()=>ee,SP:()=>l,er:()=>s,Gq:()=>o,pT:()=>$,im:()=>E,js:()=>a,HO:()=>ea,gj:()=>D,jK:()=>Y,tl:()=>c,Pb:()=>r,O4:()=>ev,c1:()=>b,Uc:()=>eg,F6:()=>W,PC:()=>H,gI:()=>es,C6:()=>d,pP:()=>i,Gm:()=>p,pd:()=>w,Wx:()=>ep,hO:()=>k,eZ:()=>O,JW:()=>C,E_:()=>R,M$:()=>eo,gx:()=>X,tf:()=>er,iH:()=>N,Fw:()=>z,JA:()=>h,qz:()=>ed,Sy:()=>q,oZ:()=>m,Hf:()=>I,o2:()=>M,$4:()=>f,hh:()=>A,ZU:()=>j,vr:()=>B,Ve:()=>L,Is:()=>G,zk:()=>F,I7:()=>v,vQ:()=>y,yn:()=>J,k3:()=>Z,vn:()=>K,WS:()=>en,BE:()=>Q,y:()=>u,a$:()=>P,PM:()=>V,VK:()=>U,nk:()=>et,hv:()=>ei,OE:()=>g,Zu:()=>T,o3:()=>el});let l="l-uid",a="l-css-id",i="l-comp-id",s="l-p-comp-uid",r="l-e-name",o="lynx-tag",d="l-dset",c="l-comp-cfg",h="l-disposed",u="l-template",m="l-part",p="lynx-default-display-linear",v="__lynx_timing_flag",b={platform:"web",lynxSdkVersion:"3.0"},g=[` [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
|
-
}`],E={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur"},S={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus"}},w={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function x(e,t,n=!0,l=!1,a){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:l,bufferSize:a}}let C=x("__postExposure",!1,!1),T=x("publicComponentEvent",!1,!1),O=x("publishEvent",!1,!1),I=x("postOffscreenEventEndpoint",!1,!1),L=x("switchExposureServiceEndpoint",!1,!1),k=x("mainThreadStart",!1,!1),A=x("updateData",!1,!0),M=x("sendGlobalEventEndpoint",!1,!1),P=x("dispose",!1,!0),R=x("start",!1,!0),_=x("reportError",!1,!1),N=x("flushElementTree",!1,!0),D=x("callLepusMethod",!1,!0),F=x("__invokeUIMethod",!1,!0),H=x("__setNativeProps",!1,!0),j=x("nativeModulesCall",!1,!0),U=x("napiModulesCall",!1,!0,!0),V=x("getCustomSections",!1,!0),z=x("markTiming",!1,!1),W=x("postTimingFlags",!1,!1),B=x("__triggerComponentEvent",!1,!1),$=x("__selectComponent",!1,!0),X=x("dispatchLynxViewEvent",!1,!1),q=x("dispatchNapiModule",!1,!1),K=x("dispatchCoreContextOnBackground",!1,!1),G=x("dispatchJSContextOnMainThread",!1,!1);(s=l||(l={}))[s.ID_SELECTOR=0]="ID_SELECTOR",s[s.REF_ID=1]="REF_ID",s[s.UNIQUE_ID=2]="UNIQUE_ID",(o=a||(a={}))[o.SUCCESS=0]="SUCCESS",o[o.UNKNOWN=1]="UNKNOWN",o[o.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",o[o.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",o[o.PARAM_INVALID=4]="PARAM_INVALID",o[o.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",o[o.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(d=i||(i={}))[d.UPDATE=0]="UPDATE",d[d.RESET=1]="RESET",(h=r||(r={}))[h.Unknown=0]="Unknown",h[h.UpdateExplictByUser=1]="UpdateExplictByUser",h[h.UpdateByKernelFromCtor=2]="UpdateByKernelFromCtor",h[h.UpdateByKernelFromRender=4]="UpdateByKernelFromRender",h[h.UpdateByKernelFromHydrate=8]="UpdateByKernelFromHydrate",h[h.UpdateByKernelFromGetDerived=16]="UpdateByKernelFromGetDerived",h[h.UpdateByKernelFromConflict=32]="UpdateByKernelFromConflict",h[h.UpdateByKernelFromHMR=64]="UpdateByKernelFromHMR";class Y 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??{}}))})}}},582:function(e,t,n){n.a(e,async function(e,t){try{var l=n(609),a=n(353),i=e([l]);l=(i.then?(await i)():i)[0];class r extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=r.observedAttributeAsProperties.map(e=>e.toLowerCase());#e;#t;get url(){return this.#t}set url(e){this.#t=e,this.#n()}#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}#i={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#i}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#i=JSON.parse(e):this.#i=e}#r=[];#s;get onNativeModulesCall(){return this.#s}set onNativeModulesCall(e){if(this.#s=e,this.#r)for(let t of this.#r)e.apply(void 0,t)}#o={};get nativeModulesMap(){return this.#o}set nativeModulesMap(e){this.#o=e}#d={};get napiModulesMap(){return this.#d}set napiModulesMap(e){this.#d=e}#h;get onNapiModulesCall(){return this.#h}set onNapiModulesCall(e){this.#h=(t,n,l,a)=>e(t,n,l,this,a)}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)}sendGlobalEvent(e,t){this.#e?.sendGlobalEvent(e,t)}reload(){this.#n()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#t=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&&(this.shadowRoot.innerHTML="")}customTemplateLoader;#c=!1;#n(){this.#c||(this.#c=!0,queueMicrotask(()=>{if(this.#c=!1,this.#e&&this.disconnectedCallback(),this.#t){let e={page:"div",view:"x-view",text:"x-text",image:"x-image",list:"x-list",svg:"x-svg",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let t=this.lynxGroupId,n=this.threadStrategy??"multi-thread",i=(0,l.G)({threadStrategy:n,tagMap:e,shadowRoot:this.shadowRoot,templateUrl:this.#t,globalProps:this.#l,initData:this.#a,nativeModulesMap:this.#o,napiModulesMap:this.#d,lynxGroupId:t,callbacks:{nativeModulesCall:(...e)=>{if(this.#s)return this.#s(...e);this.#r?this.#r.push(e):this.#r=[e]},napiModulesCall:(...e)=>this.#h?.(...e),onError:()=>{this.dispatchEvent(new CustomEvent("error",{}))},customTemplateLoader:this.customTemplateLoader}});this.#e=i;let r=document.createElement("style");this.shadowRoot.append(r);let s=r.sheet;for(let e of a.kL)s.insertRule(e);for(let e of this.injectStyleRules)s.insertRule(e);"false"!==this.getAttribute("inject-head-links")&&document.head.querySelectorAll('link[rel="stylesheet"]').forEach(e=>{let t=e.href;s.insertRule(`@import url("${t}");`)})}}))}connectedCallback(){this.#n()}}customElements.get(r.tag)?console.warn(`[${r.tag}] has already been defined`):customElements.define(r.tag,r),t()}catch(e){t(e)}})},609:function(e,t,n){n.a(e,async function(e,l){try{n.d(t,{G:()=>r});var a=n(41),i=e([a]);a=(i.then?(await i)():i)[0];let s=window.devicePixelRatio,o=window.screen.availWidth*s,d=window.screen.availHeight*s;function r(e){let{shadowRoot:t,callbacks:n,templateUrl:l,globalProps:i,initData:r,nativeModulesMap:s,napiModulesMap:h,tagMap:c,lynxGroupId:u,threadStrategy:m="multi-thread"}=e;return(0,a.H)(l,{tagMap:c,initData:r,globalProps:i,nativeModulesMap:s,napiModulesMap:h,browserConfig:{pixelRatio:window.devicePixelRatio,pixelWidth:o,pixelHeight:d}},t,u,m,n)}l()}catch(e){l(e)}})},568:function(e,t,n){n.a(e,async function(e,t){try{var l=n(609),a=n(582),i=e([l,a]);[l,a]=i.then?(await i)():i,t()}catch(e){t(e)}})},835:function(e,t,n){n.d(t,{bootWorkers:()=>s});class l{port;name;incId=0;#u={};#m=new TextEncoder;#p=new TextDecoder;#v=new Map;constructor(e,t){this.port=e,this.name=t,e.onmessage=e=>this.#b(e.data)}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#b=async e=>{let t=this.#v.get(e.name);if(t){let n=e.sync?new Int32Array(e.lock):void 0,a=!e.sync&&e.retId?l.createRetEndpoint(e.retId):void 0;try{let l=await t(...e.data),i,r=[];if(e.sync?i=l:e.hasTransfer?{data:i,transfer:r}=l||{}:i=l,e.sync){if(e.buf){let t=JSON.stringify(i),n=new Uint32Array(e.buf,0,1),l=new Uint8Array(e.buf,4),a=new Uint8Array(e.buf.byteLength-4),{written:r}=this.#m.encodeInto(t,a);n[0]=r,l.set(a,0)}Atomics.store(n,0,1),Atomics.notify(n,0)}else e.retId&&this.invoke(a,[i,!1],r||[])}catch(t){console.error(t),e.sync?(Atomics.store(n,0,2),Atomics.notify(n,0),n[1]=2):this.invoke(a,[void 0,!0])}}else{let t=this.#u[e.name];t?t.push(e):this.#u[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#v.set(e.name,t);let n=this.#u[e.name];if(n?.length)for(let t of(this.#u[e.name]=void 0,n))this.#b(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 l,a=this;Object.defineProperty(t,n,{get:()=>l,set(i){l=i,i&&a.registerHandlerRef(e,t,n)}})}}removeHandler(e){this.#v.delete(e.name)}invoke(e,t,n=[]){if(e.isSync){let l=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,a=new SharedArrayBuffer(4),i=new Int32Array(a);i[0]=0;let r={name:e.name,data:t,sync:!0,lock:a,buf:l};if(this.port.postMessage(r,{transfer:n}),Atomics.wait(i,0,0),2===i[0])throw null;if(!l)return;{let e=new Uint32Array(l,0,4)[0],t=new Uint8Array(l,4,e),n=new Uint8Array(e);return n.set(t,0),n?JSON.parse(this.#p.decode(n)):void 0}}if(e.hasReturn){let{promise:a,resolve:i,reject:r}=Promise.withResolvers(),s=l.createRetEndpoint(this.nextRetId);this.registerHandler(s,(e,t)=>{t&&r(),i(e)});let o={name:e.name,data:t,sync:!1,retId:s?.name,hasTransfer:e.hasReturnTransfer};return this.port.postMessage(o,{transfer:n}),a}{let l={name:e.name,data:t,sync:!1};this.port.postMessage(l,{transfer:n})}}createCallbackify(e,t){let n=this.createCall(e);return(...e)=>{let l=e.at(t);e.splice(t,1),n(...e).then(l)}}}let a=[],i=[],r=o();function s(e,t){let n;t?n=function(){let e=new MessageChannel;return{mainThreadRpc:new l(e.port1,"main-to-bg"),channelMainThreadWithBackground:e}}():(n=r,r=o());let s=function(e,t){let n,a=new MessageChannel;e?(n=i[e]??d("lynx-bg"),i[e]=n):n=d("lynx-bg");let r={mode:"background",toUIThread:a.port2,toPeerThread:t.port2};return n.postMessage(r,[a.port2,t.port2]),{backgroundRpc:new l(a.port1,"ui-to-bg"),backgroundThreadWorker:n}}(e,n.channelMainThreadWithBackground);return void 0!==e&&(a[e]?a[e]++:a[e]=1),{mainThreadRpc:n.mainThreadRpc,backgroundRpc:s.backgroundRpc,terminateWorkers:()=>{n.mainThreadWorker?.terminate(),void 0===e?s.backgroundThreadWorker.terminate():1===a[e]?(s.backgroundThreadWorker.terminate(),a[e]=0,i[e]=void 0):"number"==typeof a[e]&&a[e]>1&&a[e]--}}}function o(){let e=new MessageChannel,t=new MessageChannel,n=d("lynx-main"),a={mode:"main",toUIThread:e.port2,toPeerThread:t.port1};return n.postMessage(a,[e.port2,t.port1]),{mainThreadRpc:new l(e.port1,"ui-to-main"),mainThreadWorker:n,channelMainThreadWithBackground:t}}function d(e){return new Worker(new URL(n.p+n.u("45"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},475:function(e,t,n){n.a(e,async function(e,l){try{n.d(t,{q:()=>a});let{prepareMainThreadAPIs:e}=await n.e("238").then(n.bind(n,697));function a(t,n,l,a){let i;globalThis.module||Object.assign(globalThis,{module:{}});let{startMainThread:r}=e(t,n,document.createElement.bind(document),()=>{},l,()=>{a.onError?.()}),s=async e=>{let t=r(e);i=await t},o=async(...e)=>{i.updatePage?.(...e)};return{start:s,updateDataMainThread:o}}l()}catch(e){l(e)}},1)},294:function(e,t,n){n.d(t,{g:()=>o});var l=n(353);let a={CreateElement:1,SetAttribute:2,RemoveAttribute:3,Append:4,Remove:5,ReplaceWith:6,InsertBefore:7,EnableEvent:8,RemoveChild:9,StyleDeclarationSetProperty:10,StyleDeclarationRemoveProperty:11,SetInnerHTML:12};function i(){}let r=["detail","keyCode","charCode","elapsedTime","propertyName","pseudoElement","animationName","touches","targetTouches","changedTouches"],s=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);function o(e,t,n){var o;o=n.onError,e.registerHandler(l.Oh,e=>{o?.(e)});let{shadowRoot:d}={shadowRoot:t},{decodeOperation:h}=function(e){let{shadowRoot:t,onEvent:n}=e,l=new Set,o=[new WeakRef(t)],d=new WeakMap;function h(e){let t=o[e]?.deref();if(t)return t;throw Error(`[lynx-web] cannot find element with uniqueId: ${e}`)}function c(e){if(e.eventPhase!==Event.CAPTURING_PHASE&&e.currentTarget!==t)return;let l=e.target;if(l&&d.has(l)){let t=d.get(l),a=e.type,i={};for(let t of r)t in e&&(i[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 l in t)s.has(l)||(n[l]=e(t[l]));return n}}(e[t]));n(a,t,e.bubbles,i)}}return{decodeOperation:function(e){for(let n of e)if(n.type===a.CreateElement){let e=document.createElement(n.tag);o[n.uid]=new WeakRef(e),d.set(e,n.uid)}else{let e=h(n.uid);switch(n.type){case a.SetAttribute:e.setAttribute(n.key,n.value);break;case a.RemoveAttribute:e.removeAttribute(n.key);break;case a.Append:{let t=n.cid.map(e=>h(e));e.append(...t)}break;case a.Remove:e.remove();break;case a.ReplaceWith:let r=n.nid.map(e=>h(e));e.replaceWith(...r);break;case a.InsertBefore:{let t=h(n.cid),l=n.ref?h(n.ref):null;e.insertBefore(t,l)}break;case a.EnableEvent:e.addEventListener(n.eventType,i,{passive:!0}),l.has(n.eventType)||(t.addEventListener(n.eventType,c,{passive:!0,capture:!0}),l.add(n.eventType));break;case a.RemoveChild:{let t=h(n.cid);e.removeChild(t)}break;case a.StyleDeclarationSetProperty:e.style.setProperty(n.property,n.value,n.priority);break;case a.StyleDeclarationRemoveProperty:e.style.removeProperty(n.property);break;case a.SetInnerHTML:e.innerHTML=n.text}}}}}({shadowRoot:d,onEvent:e.createCall(l.wU)});return e.registerHandler(l.R1,e=>{h(e)}),{start:e.createCall(l.cZ),updateDataMainThread:e.createCall(l.Au)}}},809:function(e,t,n){n.d(t,{m:()=>a});var l=n(353);function a(e,t){return async()=>{await e.invoke(l.eW,[]),t()}}},237:function(e,t,n){n.d(t,{h:()=>l});function l(e,t){return(n,l,a)=>{Promise.all([e(n,{}),t(n,{})]).then(()=>a?.())}}},56:function(e,t,n){n.d(t,{startBackground:()=>r});var l=n(353);function a(e,t,n,a,i,r,s,o){let d,h=e;if(r){let t=e.querySelector(`[${l.Xz}="${r}"]`);if(t)h=t;else{console.error(`[lynx-web] cannot find dom for root_unique_id: ${r}`),o?.(l.jK.NODE_NOT_FOUND);return}}else if(a){let t=e.querySelector(`[${l.uE}="${a}"]`);if(t)h=t;else{console.error(`[lynx-web] cannot find dom for component_id: ${a}`),o?.(l.jK.NODE_NOT_FOUND);return}}if(t===l.fT.ID_SELECTOR)d=n;else if(t===l.fT.UNIQUE_ID)d=`[${l.Xz}="${n}"]`;else{console.error(`[lynx-web] NYI: setnativeprops type ${t}`),o?.(l.jK.UNKNOWN);return}if(i){let e=null;try{e=h.querySelector(d)}catch(e){console.error(`[lynx-web] cannot use selector: ${d}`),o?.(l.jK.SELECTOR_NOT_SUPPORTED);return}e?s(e):(console.error(`[lynx-web] cannot find from for selector ${n} under`,h),o?.(l.jK.NODE_NOT_FOUND))}else h.querySelectorAll(d).forEach(e=>{s(e)})}let i={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}}};function r(e,t,n){let r,s,o;r=l.jK.UNKNOWN,e.registerHandler(l.bh,(e,n,o,d,h,c)=>(a(t,e,n,o,!0,c,e=>{try{let t=i[d],n="function"==typeof e[d];t||n?(s=t?t(e,h):e[d](h),r=l.jK.SUCCESS):r=l.jK.METHOD_NOT_FOUND}catch(t){console.error("[lynx-web] invokeUIMethod: apply method faild with",t,e),r=l.jK.PARAM_INVALID}},e=>{r=e}),{code:r,data:s})),e.registerHandler(l.cx,(e,n,l,i,r,s)=>{a(t,e,n,l,i,s,e=>{var t=e;for(let e in r){let n=r[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(l.gc,(e,n)=>{let a=t.querySelector(`[${l.uE}="${n.componentId}"]`);a?.dispatchEvent(new CustomEvent(e,{...n.eventOption,detail:n.eventDetail}))}),e.registerHandler(l.ZW,(e,n,i)=>(a(t,l.fT.ID_SELECTOR,n,"card"===e?"0":e,i,void 0,e=>{o=e}),[o?.getAttribute(l.uE)??void 0])),d=n.nativeModulesCall,e.registerHandler(l.bM,d);var d,h=n.napiModulesCall;let c=e.createCall(l.oc);e.registerHandler(l.i$,(e,t,n)=>h(e,t,n,c)),e.registerHandler(l.G4,(e,n)=>{t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0,composed:!0}))});let u=e.createCall(l.nt);return{sendGlobalEvent:u,markTiming:e.createCall(l.V_),updateDataBackground:e.createCall(l.Au)}}},41:function(e,t,n){n.a(e,async function(e,l){try{n.d(t,{H:()=>u});var a=n(835),i=n(809);n(353);var r=n(936),s=n(237),o=n(56),d=n(294),h=n(475),c=e([h]);function u(e,t,n,l,c,u){let m=performance.now()+performance.timeOrigin,p="all-on-ui"===c,{mainThreadRpc:v,backgroundRpc:b,terminateWorkers:g}=(0,a.bootWorkers)(l,p),{markTiming:f,sendGlobalEvent:y,updateDataBackground:E}=(0,o.startBackground)(b,n,u),S=(e,t,n)=>{n||(n=performance.now()+performance.timeOrigin),f(e,t,n)},{start:w,updateDataMainThread:x}=p?(0,h.q)(v,n,S,u):(0,d.g)(v,n,u);return S("create_lynx_start",void 0,m),S("load_template_start"),(0,r.$)(e,u.customTemplateLoader).then(e=>{S("load_template_end"),w({...t,template:e})}),{updateData:(0,s.h)(x,E),dispose:(0,i.m)(b,g),sendGlobalEvent:y}}h=(c.then?(await c)():c)[0],l()}catch(e){l(e)}})},936:function(e,t,n){n.d(t,{$:()=>d});var l=n(353);let a={};function i(e,t,n,l){return t=t.concat(l),Object.fromEntries(Object.entries(e).map(([e,a])=>{var i;return[e,(i=["//# allFunctionsCalledOnLoad\n","globalThis.module.exports = function(lynx_runtime) {","const module= {exports:{}};let exports = module.exports;","var {",t.join(","),"} = lynx_runtime;",...n.map(e=>`const ${e} = lynx_runtime.${e}?.bind(lynx_runtime);`),";var globDynamicComponentEntry = '__Card__';","var {__globalProps} = lynx;","lynx_runtime._updateVars=()=>{",...l.map(e=>`${e} = lynx_runtime.__lynxGlobalBindingValues.${e};`),"};\n",a,"\n return module.exports;}"].join(""),URL.createObjectURL(new Blob([i],{type:"text/javascript"})))]}))}let r=["lynx","globalThis","_ReportError","__AddConfig","__AddDataset","__GetAttributes","__GetComponentID","__GetDataByKey","__GetDataset","__GetElementConfig","__GetElementUniqueID","__GetID","__GetTag","__SetAttribute","__SetConfig","__SetDataset","__SetID","__UpdateComponentID","__GetConfig","__UpdateListCallbacks","__AppendElement","__ElementIsEqual","__FirstElement","__GetChildren","__GetParent","__InsertElementBefore","__LastElement","__NextElement","__RemoveElement","__ReplaceElement","__ReplaceElements","__SwapElement","__CreateComponent","__CreateElement","__CreatePage","__CreateView","__CreateText","__CreateRawText","__CreateImage","__CreateScrollView","__CreateWrapperElement","__CreateList","__AddEvent","__GetEvent","__GetEvents","__SetEvents","__AddClass","__SetClasses","__GetClasses","__AddInlineStyle","__SetInlineStyles","__SetCSSId","__OnLifecycleEvent","__FlushElementTree","__LoadLepusChunk","SystemInfo"],s=["NativeModules","globalThis","lynx","lynxCoreInject","SystemInfo"],o=["Card","Component"];async function d(e,t){let n=a[e];if(n)return n;let d=t?await t(e):await (await fetch(e,{method:"GET"})).json(),h={...d,lepusCode:i(d.lepusCode,r,[],l.$m),manifest:i(d.manifest,s,o,[])};return a[e]=h,h}},997:function(){var e,t,n,l,a,i,r,s,o,d,h,c,u,m,p,v,b,g,f,y,E,S,w,x,C,T,O,I,L,k,A,M,P;let R,_,N,D,F,H,j,U,V,z,W,B,$,X,q,K,G,Y,J,Q,Z,ee,et,en,el,ea,ei,er,es,eo,ed,eh,ec,eu,em,ep,ev,eb,eg,ef,ey,eE,eS,ew,ex,eC,eT,eO,eI,eL,ek,eA,eM,eP,eR,e_,eN,eD,eF,eH,ej,eU,eV,ez,eW,eB,e$,eX,eq,eK,eG,eY,eJ,eQ,eZ,e0,e1,e2,e3,e4,e5,e6,e9,e8,e7,te,tt,tn,tl,ta,ti,tr,ts,to,td,th,tc,tu,tm,tp,tv,tb,tg,tf,ty,tE,tS,tw,tx,tC,tT,tO,tI,tL,tk,tA,tM,tP,tR,t_,tN,tD,tF,tH,tj,tU,tV,tz,tW,tB,t$,tX,tq,tK,tG,tY,tJ,tQ,tZ,t0,t1,t2,t3,t4,t5,t6,t9,t8,t7,ne,nt,nn,nl,na,ni,nr,ns,no,nd,nh,nc,nu,nm,np,nv,nb,ng,nf,ny,nE,nS,nw,nx,nC,nT,nO,nI,nL,nk,nA,nM,nP,nR,n_,nN,nD,nF,nH,nj,nU,nV,nz,nW,nB,n$,nX,nq,nK,nG,nY,nJ,nQ,nZ,n0,n1,n2,n3,n4,n5,n6,n9,n8,n7,le,lt,ln,ll,la,li,lr,ls,lo,ld,lh,lc,lu,lm,lp,lv,lb,lg,lf,ly,lE,lS,lw,lx,lC,lT,lO,lI,lL,lk,lA,lM,lP,lR,l_,lN,lD,lF,lH,lj,lU,lV,lz,lW,lB,l$,lX,lq,lK,lG,lY,lJ,lQ,lZ,l0,l1,l2,l3,l4,l5,l6,l9,l8,l7,ae,at,an,al,aa,ai,ar,as,ao,ad,ah,ac,au,am,ap,av,ab,ag,af,ay,aE,aS,aw,ax,aC,aT,aO,aI,aL,ak,aA,aM,aP,aR,a_,aN,aD,aF,aH,aj,aU,aV,az,aW,aB,a$,aX,aq,aK,aG,aY,aJ,aQ,aZ,a0,a1,a2,a3,a4,a5,a6,a9,a8,a7,ie,it,il,ia,ii,ir,is,io,id,ih,ic,iu,im,ip,iv,ib,ig,iy,iE,iS,iw,ix,iC,iT,iO,iI,iL,ik,iA,iM,iP,iR,i_,iN,iD,iF,iH,ij,iU,iV,iz,iW,iB,i$,iX,iq,iK,iG,iY,iJ,iQ,iZ,i0,i1,i2,i3,i4,i5,i6,i9,i8,i7,re,rt,rn,rl,ra,ri;function rr(e,t,n,l,a,i){function r(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,o=l.kind,d="getter"===o?"get":"setter"===o?"set":"value",h=!t&&e?l.static?e:e.prototype:null,c=t||(h?Object.getOwnPropertyDescriptor(h,l.name):{}),u=!1,m=n.length-1;m>=0;m--){var p={};for(var v in l)p[v]="access"===v?{}:l[v];for(var v in l.access)p.access[v]=l.access[v];p.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");i.push(r(e||null))};var b=(0,n[m])("accessor"===o?{get:c.get,set:c.set}:c[d],p);if("accessor"===o){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw TypeError("Object expected");(s=r(b.get))&&(c.get=s),(s=r(b.set))&&(c.set=s),(s=r(b.init))&&a.unshift(s)}else(s=r(b))&&("field"===o?a.unshift(s):c[d]=s)}h&&Object.defineProperty(h,l.name,c),u=!0}function rs(e,t,n){for(var l=arguments.length>2,a=0;a<t.length;a++)n=l?t[a].call(e,n):t[a].call(e);return l?n:void 0}function ro(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}let rd=[];function rh(){let e=rd;for(let[t,n]of(rd=[],e))n?t.call(n):t()}function rc(e,t){0===rd.length&&queueMicrotask(rh),rd.push([e,t])}function ru(e,t,n){let l;return(a,{addInitializer:i})=>{let r=new Set([...t.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class s extends a{static registerPlugin(e){if(s.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)r.add(t);t.push(e)}static observedAttributes=[...a.observedAttributes??[],...t.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#g=[];constructor(){if(super(),n&&!l&&((l=document.createElement("template")).innerHTML=n,document.body.appendChild(l)),l&&!this.shadowRoot){let e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=l.content.cloneNode(!0);e.append(t)}this.#g=t.map(e=>new e(this)),this.#f()}#y=!1;#E=new Map;#S(){!this.#y&&r.size&&(this.#y=!0,rc(this.#w,this))}#w(){let e=getComputedStyle(this);for(let n of r){var t;let l=e.getPropertyValue(n),a=e.getPropertyPriority(n),i=(t=l.trim(),a?t+" !important":t);if(this.#E.get(n)!==i)for(let e of this.#g)e.cssPropertyChangedHandler?.[n]?.call(e,i,n)}this.#y=!1}setAttribute(e,t){if("false"===t.toString()&&!a.notToFilterFalseAttributes?.has(e)&&!e.startsWith("data-"))return void this.removeAttribute(e);super.setAttribute(e,t)}#f(){let e=this.attributes;for(let t=0,n;n=e.item(t);t++)"false"!==n.value||a.notToFilterFalseAttributes?.has(n.name)||n.name.startsWith("data-")||this.removeAttributeNode(n)}#x=!1;attributeChangedCallback(e,t,n){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n),a.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===t&&(t=null),"false"===n&&(n=null,this.removeAttribute(e))),t!==n){for(let l of(this.#x&&("class"===e||"style"===e)&&this.#S(),this.#g))if(l.attributeChangedHandler?.[e]){let{handler:a,noDomMeasure:i}=l.attributeChangedHandler[e];i?a.call(l,n,t,e):this.#x&&rc(()=>a.call(l,n,t,e))}}}#C(){this.getAttributeNames().forEach(e=>{for(let t of this.#g)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:l}=t.attributeChangedHandler[e];l||rc(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#g.forEach(e=>{e.connectedCallback?.()}),this.#S(),rc(this.#C,this),this.#x=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#g.forEach(e=>{e.dispose?.()})}#T={};addEventListener(e,t,n){super.addEventListener(e,t,n),this.#T[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let l=this.#T[e],a=("object"==typeof n?n.capture:n)?l.captureListenerCount:l.listenerCount,i=a.get(t)??0;if(a.set(t,i+1),0===l.count)for(let t of this.#g){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}l.count++}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let l="object"==typeof n?n.capture:n,a=this.#T[e];if(a&&a.count>0&&1===(l?a?.captureListenerCount:a?.listenerCount).get(t)&&(a.listenerCount.delete(t),a.count--,0===a.count))for(let t of this.#g){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}}return i(()=>{customElements.define(e,s)}),s}}function rm(e,t,n){if(t){if((t=t.trim()).endsWith("px"))return Number(t.substring(0,t.length-2));if(t.endsWith("%")){let l=Number(t.substring(0,t.length-1)),{width:a,height:i}=e.getBoundingClientRect();return(n?a:i)*l/100}}return 0}N=[ru("lynx-wrapper",[])],D=[],F=HTMLElement,class extends F{static{_=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(F[Symbol.metadata]??null):void 0;rr(null,R={value:_},N,{kind:"class",name:_.name,metadata:e},null,D),_=R.value,e&&Object.defineProperty(_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(_,D)}};let rp={bubbles:!1,composed:!1,cancelable:!0},rv="onscrollend"in document,rb=window.navigator.userAgent;rb.includes("Chrome"),/\b(iPad|iPhone|iPod|OS X)\b/.test(rb)&&!/Edge/.test(rb)&&/WebKit/.test(rb)&&window.MSStream;let rg=Symbol();function rf(e,t){return function(n,...l){return function(a,i){if("method"===i.kind)i.addInitializer(function(){this[e]??={},this[e][n]=t(a,l)});else if("field"===i.kind)return function(a){return this[e]??={},this[e][n]=t(a,l),a};else throw Error(`[lynx-web-components] decorator type ${i.kind} is not supported`)}}}let ry=rf("eventStatusChangedHandler",e=>e),rE=Symbol("layoutChangeTarget"),rS=(H=[],j=[],class e{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;rr(null,null,[ry("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},H,j),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["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"];#O=!1;#I=!1;#L;#k;#A=!1;#M;get #P(){return this.#O||this.#I||null!==this.#L.getAttribute("exposure-id")}constructor(e){rs(this,j),this.#L=e}onExposureParamsChanged=()=>{this.#k||(this.#k=Promise.resolve().then(()=>{this.#R(),this.#k=void 0}))};onExposureIdChanged(e,t){t&&this.#P&&this.#_({isIntersecting:!1},t),this.onExposureParamsChanged()}attributeChangedHandler=new Proxy(this,{get(t,n){if(e.observedAttributes.includes(n))if("exposure-id"===n)return{handler:t.onExposureIdChanged,noDomMeasure:!0};else return{handler:t.onExposureParamsChanged,noDomMeasure:!0}}});eventStatusChangedHandler={uiappear:e=>{this.#O=e,this.onExposureParamsChanged()},uidisappear:e=>{this.#I=e,this.onExposureParamsChanged()}};#R(){let e={exposureID:this.#L.getAttribute("exposure-id"),exposureArea:this.#L.getAttribute("exposure-area"),exposureScene:this.#L.getAttribute("exposure-scene"),exposureScreenMarginTop:this.#L.getAttribute("exposure-screen-margin-top"),exposureScreenMarginRight:this.#L.getAttribute("exposure-screen-margin-right"),exposureScreenMarginBottom:this.#L.getAttribute("exposure-screen-margin-bottom"),exposureScreenMarginLeft:this.#L.getAttribute("exposure-screen-margin-left"),exposureUIMarginTop:this.#L.getAttribute("exposure-ui-margin-top"),exposureUIMarginRight:this.#L.getAttribute("exposure-ui-margin-right"),exposureUIMarginBottom:this.#L.getAttribute("exposure-ui-margin-bottom"),exposureUIMarginLeft:this.#L.getAttribute("exposure-ui-margin-left")};if(this.#P){if(IntersectionObserver){let t={top:rm(this.#L,e.exposureUIMarginTop),right:rm(this.#L,e.exposureUIMarginRight,!0),bottom:rm(this.#L,e.exposureUIMarginBottom),left:rm(this.#L,e.exposureUIMarginLeft,!0)},n={top:rm(this.#L,e.exposureScreenMarginTop),right:rm(this.#L,e.exposureScreenMarginRight,!0),bottom:rm(this.#L,e.exposureScreenMarginBottom),left:rm(this.#L,e.exposureScreenMarginLeft,!0)},l={top:(t.bottom?-1:1)*(n.top-t.bottom),right:(t.left?-1:1)*(n.right-t.left),bottom:(t.top?-1:1)*(n.bottom-t.top),left:(t.right?-1:1)*(n.left-t.right)},a=this.#L.getAttribute("exposure-area"),i=`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`,r=a?parseFloat(a)/100:0;this.#M&&this.#M.disconnect();let s=this.#L.parentElement;for(;s;)if(s[rg]){s=s[rg];break}else s=s.parentElement;this.#A=!1,this.#M=new IntersectionObserver(([e])=>{e&&(e.isIntersecting&&(this.#A=!0),this.#_(e))},{rootMargin:i,threshold:r,root:s}),this.#M.observe(this.#L)}}else this.#N()}#_(e,t){if(!this.#A)return;let n=t??this.#L.getAttribute("exposure-id")??"",l=this.#L.getAttribute("exposure-scene")??"",a={"exposure-id":n,"exposure-scene":l,exposureID:n,exposureScene:l},i=new CustomEvent(e.isIntersecting?"uiappear":"uidisappear",{...rp,detail:a}),r=new CustomEvent(e.isIntersecting?"exposure":"disexposure",{bubbles:!0,composed:!1,cancelable:!1,detail:a});Object.assign(i,a),this.#L.dispatchEvent(i),this.#L.dispatchEvent(r)}#D=!1;#F;__handleScrollUpperThresholdEventEnabled=rs(this,H,e=>{e&&this.#L[rE]?!this.#F&&(this.#F=new ResizeObserver(([e])=>{if(e){let{width:t,height:n,left:l,right:a,top:i,bottom:r}=e.contentRect,s=this.#L.id;this.#L.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:t,height:n,left:l,right:a,top:i,bottom:r,id:s},...rp}))}}),this.#D||(this.#F.observe(this.#L[rE]),this.#D=!0)):this.#F?.disconnect()});#N(){this.#M&&(this.#M.disconnect(),this.#M=void 0)}}),rw=rf("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),rx=rf("cssPropertyChangedHandler",e=>e);function rC(e,t){let n,l;return()=>(l||(l=e()),l.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=l.querySelector(t)),n)}function rT(e,t,n,l){return function(a){a?(n&&(a=n(a)),rc(()=>e.call(this).style.setProperty(t,a,l?"important":void 0))):rc(()=>e.call(this).style.removeProperty(t))}}let rO=(W=[],B=[],$=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;U=[rw("fading-edge-length",!0)],V=[rx("background"),rx("background-color")],rr(this,z={value:ro(function(e){this.#H().style.setProperty("--scroll-view-bg-color",e),this.#j().style.setProperty("--scroll-view-bg-color",e)},"#backgroundColorToVariable")},V,{kind:"method",name:"#backgroundColorToVariable",static:!1,private:!0,access:{has:e=>#U in e,get:e=>e.#U},metadata:e},null,W),rr(null,null,U,{kind:"field",name:"#handleFadingEdgeLength",static:!1,private:!0,access:{has:e=>#V in e,get:e=>e.#V,set:(e,t)=>{e.#V=t}},metadata:e},B,$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=rs(this,W);#H=rC(()=>this.#L.shadowRoot,"#top-fade-mask");#j=rC(()=>this.#L.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){rs(this,$),this.#L=e}#V=rs(this,B,rT(()=>this.#L,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));get #U(){return z.value}connectedCallback(){}dispose(){}}),rI=(Y=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;X=[rw("scroll-top",!1),rw("scroll-left",!1),rw("initial-scroll-offset",!1)],K=[rw("scroll-to-index",!1),rw("initial-scroll-to-index",!1)],rr(this,q={value:ro(function(e,t,n){if(e){let t=parseFloat(e),l=this.#L.getAttribute("scroll-orientation"),a=this.#L.getAttribute("scroll-y"),i=this.#L.getAttribute("scroll-x"),r=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===a||"true"===a||"vertical"===l||"both"===l),s=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===i||"true"===i||"vertical"===l||"both"===l);requestAnimationFrame(()=>{r&&this.#L.scrollTo(0,t),s&&(this.#L.scrollLeft=t)})}},"#handleInitialScrollOffset")},X,{kind:"method",name:"#handleInitialScrollOffset",static:!1,private:!0,access:{has:e=>#z in e,get:e=>e.#z},metadata:e},null,Y),rr(this,G={value:ro(function(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})}}},"#handleInitialScrollIndex")},K,{kind:"method",name:"#handleInitialScrollIndex",static:!1,private:!0,access:{has:e=>#W in e,get:e=>e.#W},metadata:e},null,Y),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=rs(this,Y);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#L=e}get #z(){return q.value}get #W(){return G.value}dispose(){}});function rL(e,t,n){let l;return a=>{null!==a?l||(l=new IntersectionObserver(n,{root:e()})).observe(t()):l&&(l.disconnect(),l=void 0)}}let rk=(el=[],ea=[],ei=[],er=[],es=[],eo=[],ed=[],eh=[],ec=[],eu=[],em=[],ep=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;J=[ry("scrolltoupper")],Q=[ry("scrolltolower")],Z=[rw("upper-threshold",!0)],ee=[rw("lower-threshold",!0)],et=[ry("lynxscroll")],en=[ry("lynxscrollend")],rr(null,null,J,{kind:"field",name:"#handleScrollUpperThresholdEventEnabled",static:!1,private:!0,access:{has:e=>#B in e,get:e=>e.#B,set:(e,t)=>{e.#B=t}},metadata:e},el,ea),rr(null,null,Q,{kind:"field",name:"#handleScrollLowerThresholdEventEnabled",static:!1,private:!0,access:{has:e=>#$ in e,get:e=>e.#$,set:(e,t)=>{e.#$=t}},metadata:e},ei,er),rr(null,null,Z,{kind:"field",name:"#updateUpperThreshold",static:!1,private:!0,access:{has:e=>#X in e,get:e=>e.#X,set:(e,t)=>{e.#X=t}},metadata:e},es,eo),rr(null,null,ee,{kind:"field",name:"#updateLowerThreshold",static:!1,private:!0,access:{has:e=>#q in e,get:e=>e.#q,set:(e,t)=>{e.#q=t}},metadata:e},ed,eh),rr(null,null,et,{kind:"field",name:"#handleScrollEventEnabled",static:!1,private:!0,access:{has:e=>#K in e,get:e=>e.#K,set:(e,t)=>{e.#K=t}},metadata:e},ec,eu),rr(null,null,en,{kind:"field",name:"#handleScrollEndEventEnabled",static:!1,private:!0,access:{has:e=>#G in e,get:e=>e.#G,set:(e,t)=>{e.#G=t}},metadata:e},em,ep),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L;#Y;#J=0;#Q=0;constructor(e){rs(this,ep),this.#L=e}#Z=()=>this.#L;#ee=rC(()=>this.#L.shadowRoot,"#upper-threshold-observer");#et=rC(()=>this.#L.shadowRoot,"#lower-threshold-observer");#en=e=>{let{isIntersecting:t,target:n}=e[0],l=n.id;t&&("upper-threshold-observer"===l?this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...rp,detail:this.#el()})):"lower-threshold-observer"===l&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...rp,detail:this.#el()})))};static observedAttributes=["upper-threshold","lower-threshold"];#B=rs(this,el,e=>{e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#ea(e)});#ea=(rs(this,ea),rL(this.#Z,this.#ee,this.#en));#$=rs(this,ei,e=>{e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),this.#ei(e)});#ei=(rs(this,er),rL(this.#Z,this.#et,this.#en));#X=rs(this,es,rT(this.#ee,"flex-basis",e=>`${parseInt(e)}px`));#q=(rs(this,eo),rs(this,ed,rT(this.#et,"flex-basis",e=>`${parseInt(e)}px`)));#el(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:l}=this.#Z();0===e&&(e-=this.#L.scrollHeight/2-this.#L.scrollTop),0===t&&(t-=this.#L.scrollWidth/2-this.#L.scrollLeft);let a={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:l,isDragging:!1,deltaX:t-this.#J,deltaY:e-this.#Q};return this.#J=t,this.#Q=e,a}#er=(rs(this,eh),()=>{this.#es&&!rv&&(clearTimeout(this.#Y),this.#Y=setTimeout(()=>{this.#eo()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...rp,detail:this.#el()}))});#eo=()=>{this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...rp,detail:this.#el()}))};#ed=!1;#K=rs(this,ec,e=>{this.#ed=e,this.#eh()});#es=(rs(this,eu),!1);#G=rs(this,em,e=>{this.#es=e,this.#eh()});#eh(){this.#ed||this.#es?(this.#Z().addEventListener("scroll",this.#er),this.#Z().addEventListener("scrollend",this.#eo),this.#L.addEventListener("scroll",this.#er),this.#L.addEventListener("scrollend",this.#eo),this.#J=0,this.#Q=0):(this.#L.removeEventListener("scroll",this.#er),this.#L.removeEventListener("scrollend",this.#eo))}connectedCallback(){}dispose(){}});class rA{static eventName="__scrollIntoView";static observedAttributes=[];#L;#ec=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],l=this.#L;for(let e of t){if(e===l)break;n.push(e)}let a=this.#L.getAttribute("scroll-orientation"),i=null!==this.#L.getAttribute("scroll-x")||"both"===a||"horizontal"===a,r=null!==this.#L.getAttribute("scroll-y")||"both"===a||"vertical"===a,s=0,o=0;for(let{offsetTop:e,offsetLeft:t}of n)i&&(o+=t),r&&(s+=e);if(i)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(r)switch(e.detail.block){case"center":s+=(e.target.clientHeight-this.#L.clientHeight)/2;break;case"end":s+=e.target.clientHeight-this.#L.clientHeight}l.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:o,top:s})};constructor(e){this.#L=e,this.#L.addEventListener(rA.eventName,this.#ec,{passive:!1})}dispose(){this.#L.removeEventListener(rA.eventName,this.#ec)}}let rM=/<\s*script/g,rP=e=>{let{src:t}=e;if(t&&rM.test(t))throw Error("detected <script, this is a potential XSS attack, please check your src");return`<img part="img" alt="" id="img" ${t?`src="${t}"`:""}/> `},rR=`<style>
|
|
6
|
+
}`],f={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},y={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},E={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function S(e,t,n=!0,l=!1,a){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:l,bufferSize:a}}let w=S("__postExposure",!1,!1),x=S("publicComponentEvent",!1,!1),C=S("publishEvent",!1,!1),T=S("postOffscreenEventEndpoint",!1,!1),O=S("switchExposureServiceEndpoint",!1,!1),I=S("mainThreadStart",!1,!1),L=S("updateData",!1,!0),k=S("sendGlobalEventEndpoint",!1,!1),A=S("dispose",!1,!0),P=S("start",!1,!0),M=S("reportError",!1,!1),R=S("flushElementTree",!1,!0),N=S("callLepusMethod",!1,!0),D=S("multiThreadExposureChangedEndpoint",!1,!1),F=S("__invokeUIMethod",!1,!0),H=S("__setNativeProps",!1,!0),j=S("__getPathInfo",!1,!0),_=S("nativeModulesCall",!1,!0),U=S("napiModulesCall",!1,!0,!0),z=S("getCustomSections",!1,!0),V=S("markTiming",!1,!1),W=S("postTimingFlags",!1,!1),$=S("__triggerComponentEvent",!1,!1),B=S("__selectComponent",!1,!0),X=S("dispatchLynxViewEvent",!1,!1),q=S("dispatchNapiModule",!1,!1),Y=S("dispatchCoreContextOnBackground",!1,!1),G=S("dispatchJSContextOnMainThread",!1,!1),K=S("__triggerElementMethod",!1,!1),J=S("updateGlobalProps",!1,!1),Z=S("updateI18nResources",!1,!1),Q=S("updateI18nResource",!1,!1),ee=S("dispatchI18nResource",!1,!1),et=S("queryComponent",!1,!0),en=S("updateBTSTemplateCacheEndpoint",!1,!0),el=S("loadTemplateMultiThread",!1,!0);(ec=ep||(ep={}))[ec.ID_SELECTOR=0]="ID_SELECTOR",ec[ec.REF_ID=1]="REF_ID",ec[ec.UNIQUE_ID=2]="UNIQUE_ID",(eh=ev||(ev={}))[eh.SUCCESS=0]="SUCCESS",eh[eh.UNKNOWN=1]="UNKNOWN",eh[eh.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",eh[eh.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",eh[eh.PARAM_INVALID=4]="PARAM_INVALID",eh[eh.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",eh[eh.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(eu=eb||(eb={}))[eu.UPDATE=0]="UPDATE",eu[eu.RESET=1]="RESET",(em=eg||(eg={}))[em.START=0]="START",em[em.PLAY=1]="PLAY",em[em.PAUSE=2]="PAUSE",em[em.CANCEL=3]="CANCEL",em[em.FINISH=4]="FINISH";let ea=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,ei="i18nResourceMissed";class es{data;constructor(e){this.data=e}setData(e){this.data=e}}class er 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 eo=({timingKey:e,pipelineId:t,timeStamp:n,markTiming:l,cacheMarkTimings:a})=>{a.records.push({timingKey:e,pipelineId:t,timeStamp:n??performance.now()+performance.timeOrigin}),a.timeout||(a.timeout=setTimeout(()=>{l(a.records),a.records=[],a.timeout=null},500))},ed=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)};var ec,eh,eu,em,ep,ev,eb,eg,ef=n(473)},473:function(e,t,n){n.d(t,{Y:()=>s});let l=["navigator","postMessage","window"],a=[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 i(e,t,n,a,i){return Promise.all(Object.entries(e).filter(([e,t])=>"string"==typeof t).map(async([e,s])=>{let r;return[e,await t((r=`${i}/${e.replaceAll("/","_")}.js`,(n?"//# allFunctionsCalledOnLoad":"")+'\n(function() { "use strict"; const '+l.join("=void 0,")+"=void 0;\n"+("card"!==a?"module.exports=\n":"")+s+"\n})()\n//# sourceURL="+r),`${i}-${e.replaceAll("/","_")}.js`)]})).then(Object.fromEntries)}async function s(e,t,n){let l;if(e.version=e.version??1,e.version>2)throw Error("Unsupported template, please upgrade your web-platform dependencies");for(;e.version<2&&(l=a[e.version-1]);)e=l(e);return{...e,lepusCode:await i(e.lepusCode,t,!0,e.appType,n)}}},688:function(e,t,n){n.a(e,async function(e,t){try{var l=n(736),a=n(29),i=e([l]);l=(i.then?(await i)():i)[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.#l()}#a={};get globalProps(){return this.#a}set globalProps(e){"string"==typeof e?this.#a=JSON.parse(e):this.#a=e}#i={};get initData(){return this.#i}set initData(e){"string"==typeof e?this.#i=JSON.parse(e):this.#i=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,l,a)=>e(t,n,l,this,a)}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.#l()}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.#a=JSON.parse(n);break;case"init-data":this.#i=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(`[${a.Gq}="page"]`)?.setAttribute(a.JA,""),this.shadowRoot&&(this.shadowRoot.innerHTML="")}customTemplateLoader;#m=!1;#l(){!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",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let n=this.lynxGroupId,i=this.threadStrategy??"all-on-ui",s=(0,l.P)({threadStrategy:i,tagMap:t,shadowRoot:this.shadowRoot,templateUrl:this.#n,globalProps:this.#a,initData:this.#i,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},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 a.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.#l()}}customElements.get(s.tag)?console.warn(`[${s.tag}] has already been defined`):customElements.define(s.tag,s),t()}catch(e){t(e)}})},736:function(e,t,n){n.a(e,async function(e,l){try{n.d(t,{P:()=>s});var a=n(719),i=e([a]);a=(i.then?(await i)():i)[0];let r=window.devicePixelRatio,o=window.screen.availWidth*r,d=window.screen.availHeight*r;function s(e){let{shadowRoot:t,callbacks:n,templateUrl:l,globalProps:i,initData:s,nativeModulesMap:r,napiModulesMap:c,tagMap:h,lynxGroupId:u,threadStrategy:m="multi-thread",initI18nResources:p,ssr:v}=e;return(0,a.$)(l,{tagMap:h,initData:s,globalProps:i,nativeModulesMap:r,napiModulesMap:c,browserConfig:{pixelRatio:window.devicePixelRatio,pixelWidth:o,pixelHeight:d},initI18nResources:p},t,u,m,n,v)}l()}catch(e){l(e)}})},506:function(e,t,n){n.a(e,async function(e,t){try{var l=n(736),a=n(688),i=e([l,a]);[l,a]=i.then?(await i)():i,t()}catch(e){t(e)}})},778:function(e,t,n){n.d(t,{C:()=>r});var l=n(29);class a{port;name;incId=0;#p={};#v=new TextEncoder;#b=new TextDecoder;#g=new Map;constructor(e,t){this.port=e,this.name=t,e.onmessage=e=>this.#f(e.data)}get nextRetId(){return`ret_${this.name}_${this.incId++}`}static createRetEndpoint(e){return{name:e,hasReturn:!1,isSync:!1}}#f=async e=>{let t=this.#g.get(e.name);if(t){let n=e.sync?new Int32Array(e.lock):void 0,l=!e.sync&&e.retId?a.createRetEndpoint(e.retId):void 0;try{let a=await t(...e.data),i,s=[];if(e.sync?i=a:e.hasTransfer?{data:i,transfer:s}=a||{}:i=a,e.sync){if(e.buf){let t=JSON.stringify(i),n=new Uint32Array(e.buf,0,1),l=new Uint8Array(e.buf,4),a=new Uint8Array(e.buf.byteLength-4),{written:s}=this.#v.encodeInto(t,a);n[0]=s,l.set(a,0)}Atomics.store(n,0,1),Atomics.notify(n,0)}else e.retId&&this.invoke(l,[i,!1],s||[])}catch(t){console.error(t),e.sync?(Atomics.store(n,0,2),Atomics.notify(n,0),n[1]=2):this.invoke(l,[void 0,!0])}}else{let t=this.#p[e.name];t?t.push(e):this.#p[e.name]=[e]}};createCall(e){return(...t)=>this.invoke(e,t)}registerHandler(e,t){this.#g.set(e.name,t);let n=this.#p[e.name];if(n?.length)for(let t of(this.#p[e.name]=void 0,n))this.#f(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 l,a=this;Object.defineProperty(t,n,{get:()=>l,set(i){l=i,i&&a.registerHandlerRef(e,t,n)}})}}removeHandler(e){this.#g.delete(e.name)}invoke(e,t,n=[]){if(e.isSync){let l=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,a=new SharedArrayBuffer(4),i=new Int32Array(a);i[0]=0;let s={name:e.name,data:t,sync:!0,lock:a,buf:l};if(this.port.postMessage(s,{transfer:n}),Atomics.wait(i,0,0),2===i[0])throw null;if(!l)return;{let e=new Uint32Array(l,0,4)[0],t=new Uint8Array(l,4,e),n=new Uint8Array(e);return n.set(t,0),n?JSON.parse(this.#b.decode(n)):void 0}}if(e.hasReturn){let{promise:l,resolve:i,reject:s}=Promise.withResolvers(),r=a.createRetEndpoint(this.nextRetId);this.registerHandler(r,(e,t)=>{t&&s(),i(e)});let o={name:e.name,data:t,sync:!1,retId:r?.name,hasTransfer:e.hasReturnTransfer};return this.port.postMessage(o,{transfer:n}),l}{let l={name:e.name,data:t,sync:!1};this.port.postMessage(l,{transfer:n})}}createCallbackify(e,t){let n=this.createCall(e);return(...e)=>{let l=e.at(t);e.splice(t,1),n(...e).then(l)}}}let i=[],s=[];function r(e,t,n){var r,d,c;let h,u,m,p,v,b,g,f,y,E=(r=e,d=(y=t?{mainThreadRpc:new a((h=new MessageChannel).port1,"main-to-bg"),channelMainThreadWithBackground:h}:(u=new MessageChannel,m=new MessageChannel,p=o("lynx-main"),v={mode:"main",toUIThread:u.port2,toPeerThread:m.port1},p.postMessage(v,[u.port2,m.port1]),{mainThreadRpc:new a(u.port1,"ui-to-main"),mainThreadWorker:p,channelMainThreadWithBackground:m})).channelMainThreadWithBackground,c=n,g=new MessageChannel,r?(b=s[r]??o("lynx-bg"),s[r]=b):b=o("lynx-bg"),f={mode:"background",toUIThread:g.port2,toPeerThread:d.port2,systemInfo:{...l.c1,...c}},b.postMessage(f,[g.port2,d.port2]),{backgroundRpc:new a(g.port1,"ui-to-bg"),backgroundThreadWorker:b});return void 0!==e&&(i[e]?i[e]++:i[e]=1),{mainThreadRpc:y.mainThreadRpc,backgroundRpc:E.backgroundRpc,terminateWorkers:()=>{y.mainThreadWorker?.terminate(),void 0===e?E.backgroundThreadWorker.terminate():1===i[e]?(E.backgroundThreadWorker.terminate(),i[e]=0,s[e]=void 0):"number"==typeof i[e]&&i[e]>1&&i[e]--}}}function o(e){return new Worker(new URL(n.p+n.u("64"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},357:function(e,t,n){n.a(e,async function(e,l){try{n.d(t,{z:()=>r});var a=n(29),i=n(878),s=n(99);let{prepareMainThreadAPIs:e}=await n.e("361","high").then(n.bind(n,746));function r(t,n,l,r,o,d,c){let h,u,m;globalThis.module||Object.assign(globalThis,{module:{}});let p=new a.gI,{exposureChangedCallback:v}=(0,s.e)(n),b=((h=document.createElement("iframe")).style.display="none",h.srcdoc='<!DOCTYPE html><html><head></head><body style="display:none"></body></html>',h.sandbox="allow-same-origin allow-scripts",h.loading="eager",n.appendChild(h),u=h.contentWindow,m=async e=>{let t=h.contentDocument.createElement("script");return t.fetchPriority="high",t.defer=!0,t.async=!1,h.contentDocument.head||await new Promise(e=>{h.onload=()=>e(),setTimeout(()=>e(),0)}),h.contentDocument.head.appendChild(t),new Promise(async(n,l)=>{t.onload=()=>{let e=u?.module?.exports;u.module={exports:void 0},n(e)},t.onerror=t=>l(Error(`Failed to load script: ${e}`,{cause:t})),u.module={exports:void 0},t.src=e})},{globalWindow:u,loadScript:m,loadScriptSync:e=>{let t=new XMLHttpRequest;if(t.open("GET",e,!1),t.send(null),200===t.status){let e=h.contentDocument.createElement("script");e.textContent=t.responseText,u.module={exports:void 0},h.contentDocument.head.appendChild(e);let n=u?.module?.exports;return u.module={exports:void 0},n}throw Error(`Failed to load script: ${e}`,{cause:t})}}),g=b.globalWindow,{startMainThread:f,handleUpdatedData:y}=e(t,n,document,b,v,r,o,(e,t,n)=>{d.onError?.(e,n,"lepus.js")},e=>{(0,i.D)(n,a.hv,e)},e=>(p.setData(e),p),l),E=[],S=async e=>{if(c){let t=[],l=n.querySelectorAll(`[${a.SP}]`),i=l.length;for(let e=0;e<i;e++){let n=l[e];t[Number(n.getAttribute(a.SP))]=new WeakRef(n)}let s=n.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(a.SP.length+3));void 0===n||isNaN(n)||(o[n]=e)}}await f(e,{lynxUniqueIdToElement:t,lynxUniqueIdToStyleRulesIndex:o,...c,cardStyleElement:s})}else await f(e);for(let[e,t]of E)y(e,t);E.length=0},w=async(e,t)=>{if(g)return y(e,t);E.push([e,t])};return{start:S,updateDataMainThread:w,updateI18nResourcesMainThread:e=>{p.setData(e)}}}l()}catch(e){l(e)}},1)},618:function(e,t,n){n.d(t,{k:()=>h});var l=n(29),a=n(334);let i={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"],o=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);var d=n(524),c=n(99);function h(e,t,n,h){(0,a.m)(e,"lepus.js",h.onError),function(e,t){let{shadowRoot:n}=t,{decodeOperation:a}=function(e){let{shadowRoot:t,onEvent:n}=e,l=new Set,a=[new WeakRef(t)],d=new WeakMap;function c(e){let t=a[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 l=e.target;if(l&&d.has(l)){let t=d.get(l),a=e.type,i={};for(let t of r)t in e&&(i[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 l in t)o.has(l)||(n[l]=e(t[l]));return n}}(e[t]));n(a,t,e.bubbles,i)}}return{decodeOperation:function(e){let n;if(0===e.length)return;let r=0,{CreateElement:o,SetAttribute:u,RemoveAttribute:m,Append:p,Remove:v,ReplaceWith:b,InsertBefore:g,EnableEvent:f,RemoveChild:y,StyleDeclarationSetProperty:E,StyleDeclarationRemoveProperty:S,SetTextContent:w,sheetInsertRule:x,sheetRuleUpdateCssText:C}=i;for(;n=e[r++];){let i=e[r++];if(n===o){let t=document.createElement(e[r++]);a[i]=new WeakRef(t),d.set(t,i)}else{let a=c(i);switch(n){case u:{let t=e[r++],n=e[r++];a.setAttribute(t,n)}break;case m:a.removeAttribute(e[r++]);break;case p:{let t=e[r++];for(let n=0;n<t;n++){let t=c(e[r++]);a.appendChild(t)}}break;case v:a.remove();break;case b:{let t=e[r++],n=e.slice(r,r+t).map(e=>c(e));r+=t,a.replaceWith(...n)}break;case g:{let t=c(e[r++]),n=e[r++],l=n?c(n):null;a.insertBefore(t,l)}break;case f:let o=e[r++];a.addEventListener(o,s,{passive:!0}),l.has(o)||(t.addEventListener(o,h,{passive:!0,capture:!0}),l.add(o));break;case y:{let t=c(e[r++]);a.removeChild(t)}break;case E:a.style.setProperty(e[r++],e[r++],e[r++]);break;case S:a.style.removeProperty(e[r++]);break;case w:a.textContent=e[r++];break;case x:{let t=e[r++],n=e[r++];a.sheet.insertRule(n,t)}break;case C:{let t=e[r++];a.sheet.cssRules[t].style.cssText=e[r++]}}}}}}}({shadowRoot:n,onEvent:e.createCall(l.Zu)});e.registerHandler(l.E_,e=>{a(e)})}(e,{shadowRoot:t}),(0,d.c)(e,t),(0,c.g)(e,t),e.registerHandler(l.o3,n);let u=e.createCall(l.Hf);return{start:u,updateDataMainThread:e.createCall(l.Ve),updateI18nResourcesMainThread:e.createCall(l.k3)}}},218:function(e,t,n){n.d(t,{i:()=>a});var l=n(29);function a(e,t){return async()=>{await e.invoke(l.hh,[]),t()}}},99:function(e,t,n){function l(e,t,n){if(t){if((t=t.trim()).endsWith("px"))return Number(t.substring(0,t.length-2));if(t.endsWith("%")){let l=Number(t.substring(0,t.length-1)),{width:a,height:i}=e.getBoundingClientRect();return(n?a:i)*l/100}}return 0}n.d(t,{g:()=>r,e:()=>s});var a=n(29);let i=Symbol.for("lynx-scroll-container-dom");function s(e){let t=new WeakMap,n=new WeakMap,a=new WeakSet,s=(e,t,n)=>{let l=e.getAttribute("exposure-scene")??"",a={exposureID:n,exposureScene:l,"exposure-id":n,"exposure-scene":l},i=new CustomEvent(t?"uiappear":"uidisappear",{bubbles:!1,composed:!1,cancelable:!0,detail:a}),s=new CustomEvent(t?"exposure":"disexposure",{bubbles:!0,composed:!1,cancelable:!1,detail:a});Object.assign(i,a),e.dispatchEvent(i),e.dispatchEvent(s)},r=e=>{e.forEach(({target:e,isIntersecting:t})=>{t&&!a.has(e)?(s(e,!0,e.getAttribute("exposure-id")),a.add(e)):!t&&a.has(e)&&(s(e,!1,e.getAttribute("exposure-id")),a.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),a.delete(o),null!==o.getAttribute("exposure-id")&&(n=>{let a=parseFloat(n.getAttribute("exposure-area")??"0")/100,s=l(n,n.getAttribute("exposure-screen-margin-top")),o=l(n,n.getAttribute("exposure-screen-margin-right")),d=l(n,n.getAttribute("exposure-screen-margin-bottom")),c=l(n,n.getAttribute("exposure-screen-margin-left")),h=l(n,n.getAttribute("exposure-ui-margin-top")),u=l(n,n.getAttribute("exposure-ui-margin-right")),m=l(n,n.getAttribute("exposure-ui-margin-bottom")),p=l(n,n.getAttribute("exposure-ui-margin-left")),v=n.parentElement;for(;v;)if(v[i]){v=v[i];break}else v=v.parentElement;let b=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:v??e.parentElement,threshold:a});b.observe(n),t.set(n,b)})(o)})}}}function r(e,t){let{exposureChangedCallback:n}=s(t);e.registerHandler(a.gj,e=>{n(e.map(e=>t.querySelector(`[${a.SP}="${e}"]`)).filter(e=>null!==e))})}},682:function(e,t,n){n.d(t,{k:()=>l});function l(e){return(t,n,l)=>{e(t,{processorName:n}).then(()=>l?.())}}},524:function(e,t,n){n.d(t,{c:()=>i});var l=n(29),a=n(878);function i(e,t){e.registerHandler(l.gx,(e,n)=>{(0,a.D)(t,e,n)})}},334:function(e,t,n){n.d(t,{m:()=>a});var l=n(29);function a(e,t,n){e.registerHandler(l.o2,(e,l,a)=>{n?.(e,a,t)})}},555:function(e,t,n){n.d(t,{r:()=>o});var l=n(29);function a(e,t,n,a,i,s,r,o){let d,c=e;if(s){let t=e.querySelector(`[${l.SP}="${s}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for root_unique_id: ${s}`),o?.(l.O4.NODE_NOT_FOUND);return}}else if(a){let t=e.querySelector(`[${l.pP}="${a}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for component_id: ${a}`),o?.(l.O4.NODE_NOT_FOUND);return}}if(t===l.Wx.ID_SELECTOR)d=n;else if(t===l.Wx.UNIQUE_ID)d=`[${l.SP}="${n}"]`;else{console.error(`[lynx-web] NYI: setnativeprops type ${t}`),o?.(l.O4.UNKNOWN);return}if(i){let e=null;try{e=c.querySelector(d)}catch(e){console.error(`[lynx-web] cannot use selector: ${d}`),o?.(l.O4.SELECTOR_NOT_SUPPORTED);return}e?r(e):(console.error(`[lynx-web] cannot find from for selector ${n} under`,c),o?.(l.O4.NODE_NOT_FOUND))}else c.querySelectorAll(d).forEach(e=>{r(e)})}let i={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(524),r=n(334);function o(e,t,n){var o,d;let c,h,u,m,p;c=l.O4.UNKNOWN,e.registerHandler(l.zk,(e,n,s,r,o,d)=>(a(t,e,n,s,!0,d,e=>{try{let t=i[r],n="function"==typeof e[r];t||n?(h=t?t(e,o):e[r](o),c=l.O4.SUCCESS):c=l.O4.METHOD_NOT_FOUND}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),c=l.O4.PARAM_INVALID}},e=>{c=e}),{code:c,data:h})),e.registerHandler(l.PC,(e,n,l,i,s,r)=>{a(t,e,n,l,i,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(l.pT,(e,n)=>{let a=t.querySelector(`[${l.pP}="${n.componentId}"]`);a?.dispatchEvent(new CustomEvent(e,{...n.eventOption,detail:n.eventDetail}))}),e.registerHandler(l.vr,(e,n,i)=>(a(t,l.Wx.ID_SELECTOR,n,"card"===e?"0":e,i,void 0,e=>{u=e}),[u?.getAttribute(l.pP)??void 0])),o=n.nativeModulesCall,e.registerHandler(l.g,o),d=n.napiModulesCall,m=e.createCall(l.Sy),e.registerHandler(l.VK,(e,t,n)=>d(e,t,n,m)),e.registerHandler(l.ZU,(e,n,i,s,r)=>{let o,d=l.O4.UNKNOWN;return a(t,e,n,i,s,r,e=>{try{let n=[],a=e;for(;a;){let e=a.parentElement,i=e??t,s=Array.from(i.children),r=a.getAttribute(l.Gq),o="page"===r?0:s.indexOf(a),d=a.getAttribute("id")||void 0,c=a.getAttribute("class")||void 0,h=a.getAttribute(l.C6),u=h?JSON.parse(decodeURIComponent(h)):void 0;if(n.push({tag:r,id:d,class:c,dataSet:u,index:o}),"page"===r||a.parentNode===t)break;a=e}o={path:n},d=l.O4.SUCCESS}catch(t){console.error("[lynx-web] getPathInfo: failed with",t,e),d=l.O4.UNKNOWN}},e=>{d=e}),{code:d,data:o}}),(0,s.c)(e,t),p=new Map,e.registerHandler(l.vn,(e,n,a)=>{if("animate"===e)switch(a.operation){case l.Uc.START:p.set(a.id,t.querySelector(n)?.animate(a.keyframes,a.timingOptions));break;case l.Uc.PLAY:p.get(a.id)?.play();break;case l.Uc.PAUSE:p.get(a.id)?.pause();break;case l.Uc.CANCEL:p.get(a.id)?.cancel();break;case l.Uc.FINISH:p.get(a.id)?.finish()}}),(0,r.m)(e,"app-service.js",n.onError);let v=e.createCall(l.hO);return{sendGlobalEvent:v,markTiming:e.createCall(l.PM),updateI18nResourceBackground:(t,n)=>{let a=t.find(e=>(0,l.HO)(e.options)===(0,l.HO)(n));e.invoke(l.BE,[a?.resource])}}}},719:function(e,t,n){n.a(e,async function(e,l){try{n.d(t,{$:()=>m});var a=n(778),i=n(218),s=n(29),r=n(32),o=n(682),d=n(555),c=n(618),h=n(357),u=e([h]);function m(e,t,n,l,u,m,p){let v=performance.now()+performance.timeOrigin,b="all-on-ui"===u,{mainThreadRpc:g,backgroundRpc:f,terminateWorkers:y}=(0,a.C)(l,b,t.browserConfig),{markTiming:E,sendGlobalEvent:S,updateI18nResourceBackground:w}=(0,d.r)(f,n,m),x={records:[],timeout:null},C=(e,t,n)=>{(0,s.M$)({timingKey:e,pipelineId:t,timeStamp:n,markTiming:E,cacheMarkTimings:x})},T=()=>(0,s.qz)(E,x),O=(0,r._)(m.customTemplateLoader,C),{start:I,updateDataMainThread:L,updateI18nResourcesMainThread:k}=b?(0,h.z)(g,n,O,C,T,m,p):(0,c.k)(g,n,O,m);return C("create_lynx_start",void 0,v),O(e).then(e=>{T(),I({...t,template:e})}),{updateData:(0,o.k)(L),dispose:(0,i.i)(f,y),sendGlobalEvent:S,updateGlobalProps:f.createCall(s.yn),updateI18nResources:(...e)=>{k(e[0]),w(...e)}}}h=(u.then?(await u)():u)[0],l()}catch(e){l(e)}})},878:function(e,t,n){n.d(t,{D:()=>l});let l=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0,composed:!0}))}},32:function(e,t,n){n.d(t,{_:()=>s});var l=n(29);let a=new Map;function i(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function s(e,t){return async n=>{t("load_template_start");let s=a.get(n);if(s)return t("load_template_end"),s;{let s=new Promise(async(t,s)=>{try{let a=e?await e(n):await (await fetch(n,{method:"GET"})).json(),s=await (0,l.Yx)(a,i,encodeURIComponent(n));t(s)}catch(e){a.delete(n),s(e)}});return a.set(n,s),t("load_template_end"),s}}}},569:function(){var e,t,n,l;let a,i,s,r,o,d,c,h,u,m,p,v,b,g,f,y,E,S,w,x,C,T,O,I,L,k,A,P,M,R,N,D,F,H,j,_,U,z,V,W,$,B,X,q,Y,G,K,J,Z,Q,ee,et,en,el,ea,ei,es,er,eo,ed,ec,eh,eu,em,ep,ev,eb,eg,ef,ey,eE,eS,ew,ex,eC,eT,eO,eI,eL,ek,eA,eP,eM,eR,eN,eD,eF,eH,ej,e_,eU,ez,eV,eW,e$,eB,eX,eq,eY,eG,eK,eJ,eZ,eQ,e0,e1,e2,e3,e8,e4,e6,e9,e5,e7,te,tt,tn,tl,ta,ti,ts,tr,to,td,tc,th,tu,tm,tp,tv,tb,tg,tf,ty,tE,tS,tw,tx,tC,tT,tO,tI,tL,tk,tA,tP,tM,tR,tN,tD,tF,tH,tj,t_,tU,tz,tV,tW,t$,tB,tX,tq,tY,tG,tK,tJ,tZ,tQ,t0,t1,t2,t3,t8,t4,t6,t9,t5,t7,ne,nt,nn,nl,na,ni,ns,nr,no,nd,nc,nh,nu,nm,np,nv,nb,ng,nf,ny,nE,nS,nw,nx,nC,nT,nO,nI,nL,nk,nA,nP,nM,nR,nN,nD,nF,nH,nj,n_,nU,nz,nV,nW,n$,nB,nX,nq,nY,nG,nK,nJ,nZ,nQ,n0,n1,n2,n3,n8,n4,n6,n9,n5,n7,le,lt,ln,ll,la,li,ls,lr,lo,ld,lc,lh,lu,lm,lp,lv,lb,lg,lf,ly,lE,lS,lw,lx,lC,lT,lO,lI,lL,lk,lA,lP,lM,lR,lN,lD,lF,lH,lj,l_,lU,lz,lV,lW,l$,lB,lX,lq,lY,lG,lK,lJ,lZ,lQ,l0,l1,l2,l3,l8,l4,l6,l9,l5,l7,ae,at,an,al,aa,ai,as,ar,ao,ad,ac,ah,au,am,ap,av,ab,ag,af,ay,aE,aS,aw,ax,aC,aT,aO,aI,aL,ak,aA,aP,aM,aR,aN,aD,aF,aH,aj,a_,aU,az,aV,aW,a$,aB,aX,aq,aY,aG,aK,aJ,aZ,aQ,a0,a1,a2,a3,a8,a4,a6,a9,a5,a7,ie,it,il,ia,ii,is,ir,io,id,ic,ih,iu,im,ip,iv,ib,ig,iy,iE,iS,iw,ix,iC,iT,iO,iI,iL,ik,iA,iP,iM,iR,iN,iD,iF,iH,ij,i_,iU,iz,iV,iW,i$,iB,iX,iq,iY,iG,iK,iJ,iZ,iQ,i0;function i1(e,t,n,l,a,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var r,o=l.kind,d="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?l.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,l.name):{}),u=!1,m=n.length-1;m>=0;m--){var p={};for(var v in l)p[v]="access"===v?{}:l[v];for(var v in l.access)p.access[v]=l.access[v];p.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var b=(0,n[m])("accessor"===o?{get:h.get,set:h.set}:h[d],p);if("accessor"===o){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw TypeError("Object expected");(r=s(b.get))&&(h.get=r),(r=s(b.set))&&(h.set=r),(r=s(b.init))&&a.unshift(r)}else(r=s(b))&&("field"===o?a.unshift(r):h[d]=r)}c&&Object.defineProperty(c,l.name,h),u=!0}function i2(e,t,n){for(var l=arguments.length>2,a=0;a<t.length;a++)n=l?t[a].call(e,n):t[a].call(e);return l?n:void 0}function i3(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}let i8=[];function i4(){let e=i8;for(let[t,n]of(i8=[],e))n?t.call(n):t()}function i6(e,t){0===i8.length&&queueMicrotask(i4),i8.push([e,t])}function i9(e,t,n){let l;return(a,{addInitializer:i})=>{let s=new Set([...t.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class r extends a{static registerPlugin(e){if(r.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)s.add(t);t.push(e)}static observedAttributes=[...a.observedAttributes??[],...t.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#y=[];constructor(){if(super(),n&&!l&&((l=document.createElement("template")).innerHTML=n,document.body.appendChild(l)),l&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=l.content.cloneNode(!0);e.append(t)}this.#y=t.map(e=>new e(this)),this.#E()}#S=!1;#w=new Map;#x(){!this.#S&&s.size&&(this.#S=!0,i6(this.#C,this))}#C(){let e=getComputedStyle(this);for(let n of s){var t;let l=e.getPropertyValue(n),a=e.getPropertyPriority(n),i=(t=l.trim(),a?t+" !important":t);if(this.#w.get(n)!==i)for(let e of this.#y)e.cssPropertyChangedHandler?.[n]?.call(e,i,n)}this.#S=!1}setAttribute(e,t){"false"!==t.toString()||a.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,t):this.removeAttribute(e)}#E(){let e=this.attributes;for(let t=0,n;n=e.item(t);t++)"false"!==n.value||a.notToFilterFalseAttributes?.has(n.name)||n.name.startsWith("data-")||this.removeAttributeNode(n)}#t=!1;attributeChangedCallback(e,t,n){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n),a.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===t&&(t=null),"false"===n&&(n=null,this.removeAttribute(e))),t!==n){for(let l of(this.#t&&("class"===e||"style"===e)&&this.#x(),this.#y))if(l.attributeChangedHandler?.[e]){let{handler:a,noDomMeasure:i}=l.attributeChangedHandler[e];i?a.call(l,n,t,e):this.#t&&i6(()=>a.call(l,n,t,e))}}}#T(){this.getAttributeNames().forEach(e=>{for(let t of this.#y)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:l}=t.attributeChangedHandler[e];l||i6(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#y.forEach(e=>{e.connectedCallback?.()}),this.#x(),i6(this.#T,this),this.#t=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#y.forEach(e=>{e.dispose?.()})}#O={};addEventListener(e,t,n){super.addEventListener(e,t,n),this.#O[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let l=this.#O[e],a=("object"==typeof n?n.capture:n)?l.captureListenerCount:l.listenerCount,i=a.get(t)??0;if(a.set(t,i+1),0===l.count)for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}l.count++}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let l="object"==typeof n?n.capture:n,a=this.#O[e];if(a&&a.count>0&&1===(l?a?.captureListenerCount:a?.listenerCount).get(t)&&(a.listenerCount.delete(t),a.count--,0===a.count))for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}}return i(()=>{customElements.define(e,r)}),r}}s=[i9("lynx-wrapper",[])],r=[],o=HTMLElement,class extends o{static{i=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;i1(null,a={value:i},s,{kind:"class",name:i.name,metadata:e},null,r),i=a.value,e&&Object.defineProperty(i,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(i,r)}};let i5={bubbles:!1,composed:!1,cancelable:!0};function i7(e,t){return function(n,...l){return function(a,i){if("method"===i.kind)i.addInitializer(function(){this[e]??={},this[e][n]=t(a,l)});else if("field"===i.kind)return function(a){return this[e]??={},this[e][n]=t(a,l),a};else throw Error(`[lynx-web-components] decorator type ${i.kind} is not supported`)}}}let se=i7("eventStatusChangedHandler",e=>e),st=Symbol("layoutChangeTarget"),sn=(d=[],c=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1(null,null,[se("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=[];#I;constructor(e){i2(this,c),this.#I=e}#L=!1;#k;__handleScrollUpperThresholdEventEnabled=i2(this,d,e=>{e&&this.#I[st]?!this.#k&&(this.#k=new ResizeObserver(([e])=>{if(e){let{width:t,height:n,left:l,right:a,top:i,bottom:s}=e.contentRect,r=this.#I.id;this.#I.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:t,height:n,left:l,right:a,top:i,bottom:s,id:r},...i5}))}}),this.#L||(this.#k.observe(this.#I[st]),this.#L=!0)):this.#k?.disconnect()});#A(){this.#k?.disconnect()}}),sl=i7("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),sa=i7("cssPropertyChangedHandler",e=>e);function si(e,t){let n,l;return()=>(l||(l=e()),l.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=l.querySelector(t)),n)}function ss(e,t,n,l){return function(a){a?(n&&(a=n(a)),i6(()=>e.call(this).style.setProperty(t,a,l?"important":void 0))):i6(()=>e.call(this).style.removeProperty(t))}}let sr=(p=[],v=[],b=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;h=[sl("fading-edge-length",!0)],u=[sa("background"),sa("background-color")],i1(this,m={value:i3(function(e){this.#P().style.setProperty("--scroll-view-bg-color",e),this.#M().style.setProperty("--scroll-view-bg-color",e)},"#backgroundColorToVariable")},u,{kind:"method",name:"#backgroundColorToVariable",static:!1,private:!0,access:{has:e=>#R in e,get:e=>e.#R},metadata:e},null,p),i1(null,null,h,{kind:"field",name:"#handleFadingEdgeLength",static:!1,private:!0,access:{has:e=>#N in e,get:e=>e.#N,set:(e,t)=>{e.#N=t}},metadata:e},v,b),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i2(this,p);#P=si(()=>this.#I.shadowRoot,"#top-fade-mask");#M=si(()=>this.#I.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){i2(this,b),this.#I=e}#N=i2(this,v,ss(()=>this.#I,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));get #R(){return m.value}connectedCallback(){}dispose(){}}),so=(S=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;g=[sl("scroll-top",!1),sl("scroll-left",!1),sl("initial-scroll-offset",!1)],y=[sl("scroll-to-index",!1),sl("initial-scroll-to-index",!1)],i1(this,f={value:i3(function(e,t,n){if(e){let t=parseFloat(e),l=this.#I.getAttribute("scroll-orientation"),a=this.#I.getAttribute("scroll-y"),i=this.#I.getAttribute("scroll-x"),s=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===a||"true"===a||"vertical"===l||"both"===l),r=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===i||"true"===i||"vertical"===l||"both"===l);requestAnimationFrame(()=>{s&&this.#I.scrollTo(0,t),r&&(this.#I.scrollLeft=t)})}},"#handleInitialScrollOffset")},g,{kind:"method",name:"#handleInitialScrollOffset",static:!1,private:!0,access:{has:e=>#D in e,get:e=>e.#D},metadata:e},null,S),i1(this,E={value:i3(function(e){if(e){let t=parseFloat(e),n=this.#I.children.item(t);if(n&&n instanceof HTMLElement){let e=null!==this.#I.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#I.scrollLeft=n.offsetLeft:this.#I.scrollTop=n.offsetTop})}}},"#handleInitialScrollIndex")},y,{kind:"method",name:"#handleInitialScrollIndex",static:!1,private:!0,access:{has:e=>#F in e,get:e=>e.#F},metadata:e},null,S),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i2(this,S);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#I=e}get #D(){return f.value}get #F(){return E.value}dispose(){}});function sd(e,t,n){let l;return a=>{null!==a?l||(l=new IntersectionObserver(n,{root:e()})).observe(t()):l&&(l.disconnect(),l=void 0)}}let sc="onscrollend"in document,sh=window.navigator.userAgent;sh.includes("Chrome"),/\b(iPad|iPhone|iPod|OS X)\b/.test(sh)&&!/Edge/.test(sh)&&/WebKit/.test(sh)&&window.MSStream;let su=Symbol.for("lynx-scroll-container-dom"),sm=(L=[],k=[],A=[],P=[],M=[],R=[],N=[],D=[],F=[],H=[],j=[],_=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;w=[se("scrolltoupper")],x=[se("scrolltolower")],C=[sl("upper-threshold",!0)],T=[sl("lower-threshold",!0)],O=[se("lynxscroll")],I=[se("lynxscrollend")],i1(null,null,w,{kind:"field",name:"#handleScrollUpperThresholdEventEnabled",static:!1,private:!0,access:{has:e=>#H in e,get:e=>e.#H,set:(e,t)=>{e.#H=t}},metadata:e},L,k),i1(null,null,x,{kind:"field",name:"#handleScrollLowerThresholdEventEnabled",static:!1,private:!0,access:{has:e=>#j in e,get:e=>e.#j,set:(e,t)=>{e.#j=t}},metadata:e},A,P),i1(null,null,C,{kind:"field",name:"#updateUpperThreshold",static:!1,private:!0,access:{has:e=>#_ in e,get:e=>e.#_,set:(e,t)=>{e.#_=t}},metadata:e},M,R),i1(null,null,T,{kind:"field",name:"#updateLowerThreshold",static:!1,private:!0,access:{has:e=>#U in e,get:e=>e.#U,set:(e,t)=>{e.#U=t}},metadata:e},N,D),i1(null,null,O,{kind:"field",name:"#handleScrollEventEnabled",static:!1,private:!0,access:{has:e=>#z in e,get:e=>e.#z,set:(e,t)=>{e.#z=t}},metadata:e},F,H),i1(null,null,I,{kind:"field",name:"#handleScrollEndEventEnabled",static:!1,private:!0,access:{has:e=>#V in e,get:e=>e.#V,set:(e,t)=>{e.#V=t}},metadata:e},j,_),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I;#W;#$=0;#B=0;constructor(e){i2(this,_),this.#I=e}#X=()=>this.#I;#q=si(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=si(()=>this.#I.shadowRoot,"#lower-threshold-observer");#G=e=>{let{isIntersecting:t,target:n}=e[0],l=n.id;t&&("upper-threshold-observer"===l?this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...i5,detail:this.#K()})):"lower-threshold-observer"===l&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...i5,detail:this.#K()})))};static observedAttributes=["upper-threshold","lower-threshold"];#H=i2(this,L,e=>{e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#J(e)});#J=(i2(this,k),sd(this.#X,this.#q,this.#G));#j=i2(this,A,e=>{e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),this.#Z(e)});#Z=(i2(this,P),sd(this.#X,this.#Y,this.#G));#_=i2(this,M,ss(this.#q,"flex-basis",e=>`${parseInt(e)}px`));#U=(i2(this,R),i2(this,N,ss(this.#Y,"flex-basis",e=>`${parseInt(e)}px`)));#K(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:l}=this.#X();0===e&&(e-=this.#I.scrollHeight/2-this.#I.scrollTop),0===t&&(t-=this.#I.scrollWidth/2-this.#I.scrollLeft);let a={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:l,isDragging:!1,deltaX:t-this.#$,deltaY:e-this.#B};return this.#$=t,this.#B=e,a}#Q=(i2(this,D),()=>{this.#ee&&!sc&&(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...i5,detail:this.#K()}))});#et=()=>{this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...i5,detail:this.#K()}))};#en=!1;#z=i2(this,F,e=>{this.#en=e,this.#el()});#ee=(i2(this,H),!1);#V=i2(this,j,e=>{this.#ee=e,this.#el()});#el(){this.#en||this.#ee?(this.#X().addEventListener("scroll",this.#Q),this.#X().addEventListener("scrollend",this.#et),this.#I.addEventListener("scroll",this.#Q),this.#I.addEventListener("scrollend",this.#et),this.#$=0,this.#B=0):(this.#I.removeEventListener("scroll",this.#Q),this.#I.removeEventListener("scrollend",this.#et))}connectedCallback(){}dispose(){}});class sp{static eventName="__scrollIntoView";static observedAttributes=[];#I;#ea=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],l=this.#I;for(let e of t){if(e===l)break;n.push(e)}let a=this.#I.getAttribute("scroll-orientation"),i=null!==this.#I.getAttribute("scroll-x")||"both"===a||"horizontal"===a,s=null!==this.#I.getAttribute("scroll-y")||"both"===a||"vertical"===a,r=0,o=0;for(let{offsetTop:e,offsetLeft:t}of n)i&&(o+=t),s&&(r+=e);if(i)switch(e.detail.inline){case"center":o+=(e.target.clientWidth-this.#I.clientWidth)/2;break;case"end":o+=e.target.clientWidth-this.#I.clientWidth}if(s)switch(e.detail.block){case"center":r+=(e.target.clientHeight-this.#I.clientHeight)/2;break;case"end":r+=e.target.clientHeight-this.#I.clientHeight}l.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:o,top:r})};constructor(e){this.#I=e,this.#I.addEventListener(sp.eventName,this.#ea,{passive:!1})}dispose(){this.#I.removeEventListener(sp.eventName,this.#ea)}}let sv=/<\s*script/g,sb=e=>{let{src:t}=e;if(t&&sv.test(t))throw Error("detected <script, this is a potential XSS attack, please check your src");return`<img part="img" alt="" loading="lazy" id="img" ${t?`src="${t}"`:""}/> `},sg=`<style>
|
|
7
7
|
#input:focus {
|
|
8
8
|
outline: none;
|
|
9
9
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
inputmode="text"
|
|
21
21
|
spell-check="true"
|
|
22
22
|
/>
|
|
23
|
-
</form>`,
|
|
23
|
+
</form>`,sf=`<style>
|
|
24
24
|
.placeholder-dom {
|
|
25
25
|
display: none;
|
|
26
26
|
flex: 0 0 0;
|
|
@@ -56,21 +56,43 @@
|
|
|
56
56
|
id="lower-threshold-observer"
|
|
57
57
|
></div>
|
|
58
58
|
</div>
|
|
59
|
-
</div>`,
|
|
59
|
+
</div>`,sy=`<style>
|
|
60
60
|
#dialog[open] {
|
|
61
61
|
top: 0;
|
|
62
62
|
left: 0;
|
|
63
63
|
right: 0;
|
|
64
64
|
bottom: 0;
|
|
65
65
|
position: fixed;
|
|
66
|
+
overscroll-behavior: contain;
|
|
67
|
+
scrollbar-width: none;
|
|
68
|
+
}
|
|
69
|
+
#dialog[open]::-webkit-scrollbar {
|
|
70
|
+
display: none;
|
|
66
71
|
}
|
|
67
72
|
#dialog::backdrop {
|
|
68
73
|
background-color: transparent;
|
|
69
74
|
}
|
|
75
|
+
.overlay-inner {
|
|
76
|
+
position: sticky;
|
|
77
|
+
top: 0;
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 100%;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
82
|
+
.overlay-inner > * {
|
|
83
|
+
pointer-events: auto;
|
|
84
|
+
}
|
|
85
|
+
.overlay-placeholder {
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 1px;
|
|
88
|
+
}
|
|
70
89
|
</style>
|
|
71
90
|
<dialog id="dialog" part="dialog">
|
|
72
|
-
<
|
|
73
|
-
|
|
91
|
+
<div class="overlay-inner">
|
|
92
|
+
<slot></slot>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="overlay-placeholder"></div>
|
|
95
|
+
</dialog>`,sE=`<style>
|
|
74
96
|
.bounce-container {
|
|
75
97
|
overflow: scroll;
|
|
76
98
|
overscroll-behavior: contain;
|
|
@@ -115,7 +137,7 @@
|
|
|
115
137
|
class="overflow-placeholder bounce-item"
|
|
116
138
|
part="placeholder-bot"
|
|
117
139
|
></div>
|
|
118
|
-
</div>`,
|
|
140
|
+
</div>`,sS=`<style>
|
|
119
141
|
#bounce-padding {
|
|
120
142
|
display: none;
|
|
121
143
|
flex: 0 0 0;
|
|
@@ -143,6 +165,10 @@
|
|
|
143
165
|
#indicator-container {
|
|
144
166
|
display: none;
|
|
145
167
|
}
|
|
168
|
+
#indicator-container > div {
|
|
169
|
+
animation-name: indicator-dot;
|
|
170
|
+
animation-duration: 100ms;
|
|
171
|
+
}
|
|
146
172
|
@keyframes indicator-dot {
|
|
147
173
|
30%,
|
|
148
174
|
70% {
|
|
@@ -161,7 +187,7 @@
|
|
|
161
187
|
<slot part="slot-start" name="circular-start" id="circular-start"></slot>
|
|
162
188
|
<slot part="slot"></slot>
|
|
163
189
|
<slot part="slot-end" name="circular-end" id="circular-end"></slot>
|
|
164
|
-
</div>`,
|
|
190
|
+
</div>`,sw=`<style>
|
|
165
191
|
#textarea:focus,
|
|
166
192
|
#textarea:focus-visible {
|
|
167
193
|
border: inherit;
|
|
@@ -170,7 +196,7 @@
|
|
|
170
196
|
</style>
|
|
171
197
|
<form id="form" part="form" method="dialog">
|
|
172
198
|
<textarea id="textarea" part="textarea"></textarea>
|
|
173
|
-
</form>`,
|
|
199
|
+
</form>`,sx=`<style>
|
|
174
200
|
#bounce-padding {
|
|
175
201
|
display: none;
|
|
176
202
|
flex: 0 0 0;
|
|
@@ -196,7 +222,7 @@
|
|
|
196
222
|
<div id="bounce-padding" part="bounce-padding"></div>
|
|
197
223
|
<div id="content" part="content">
|
|
198
224
|
<slot></slot>
|
|
199
|
-
</div>`;function
|
|
225
|
+
</div>`;function sC(e,t,n){return function(l){n&&(l=n(l));let a=e.call(this);a.getAttribute(t)!==l&&(null!==l?i6(()=>{a.setAttribute(t,l)}):i6(()=>{a.removeAttribute(t)}))}}V=[i9("scroll-view",[sn,so,sr,sm,sp],`<style>
|
|
200
226
|
.placeholder-dom {
|
|
201
227
|
display: none;
|
|
202
228
|
flex: 0 0 0;
|
|
@@ -278,4 +304,4 @@
|
|
|
278
304
|
class="mask placeholder-dom"
|
|
279
305
|
id="bot-fade-mask"
|
|
280
306
|
part="bot-fade-mask"
|
|
281
|
-
></div>`)],ef=[],ey=HTMLElement,n=class extends ey{static{eb=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ey[Symbol.metadata]??null):void 0;rr(null,ev={value:eb},eg,{kind:"class",name:eb.name,metadata:e},null,ef),n=eb=ev.value,e&&Object.defineProperty(eb,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#eu;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(e){if(clearInterval(this.#eu),e.start){let t=("number"==typeof e.rate?e.rate:parseFloat(e.rate))*n.scrollInterval/1e3;this.#eu=setInterval(e=>{e.scrollBy({left:t,top:t,behavior:"smooth"})},n.scrollInterval,this)}}get[rg](){return this}static{rs(eb,ef)}},n=eb;let rV=Symbol("__src"),rz=Symbol("__src"),rW={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},rB={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}},r$=e=>e?e.paused?2*!e.ended:e.currentTime>0?1:3:-1;(l=e||(e={}))[l.SrcError=-1]="SrcError",l[l.SrcJsonError=-2]="SrcJsonError",l[l.DownloadError=-3]="DownloadError",l[l.PlayerFinishedError=-4]="PlayerFinishedError",l[l.PlayerLoadingError=-5]="PlayerLoadingError",l[l.PlayerPlaybackError=-6]="PlayerPlaybackError";let rX=(eT=[],eO=[],eI=[],class{static{let t="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eE=[rw("src",!0)],ew=[rw("loop",!0)],ex=[rw("pause-on-hide",!0)],rr(this,eS={value:ro(function(t){let n;try{n=JSON.parse(t||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),n={}}null===t?this.#L.dispatchEvent(new CustomEvent("error",{...rp,detail:{code:e.SrcError,msg:"",from:"res loader",currentSrcID:this.#L[rV]?.id}})):(n?.id===void 0||n?.play_url===void 0)&&this.#L.dispatchEvent(new CustomEvent("error",{...rp,detail:{code:e.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#L[rV]?.id}})),this.#L[rV]=n,this.#L[rz]=void 0,this.#L.stop()},"#handleSrc")},eE,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#em in e,get:e=>e.#em},metadata:t},null,eT),rr(this,eC={value:ro(function(e){null!==e?document.addEventListener("visibilitychange",this.#ep,{passive:!0}):document.removeEventListener("visibilitychange",this.#ep)},"#handlePauseOnHide")},ex,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#ev in e,get:e=>e.#ev},metadata:t},null,eT),rr(null,null,ew,{kind:"field",name:"#handleLoop",static:!1,private:!0,access:{has:e=>#eb in e,get:e=>e.#eb,set:(e,t)=>{e.#eb=t}},metadata:t},eO,eI),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static observedAttributes=["src","loop","pause-on-hide"];#L=rs(this,eT);#eg=rC(()=>this.#L.shadowRoot,"#audio");#ef=rU(this.#eg,"src");get #em(){return eS.value}#eb=rs(this,eO,rU(this.#eg,"loop"));#ep=(rs(this,eI),()=>{"hidden"===document.visibilityState&&this.#L.pause()});get #ev(){return eC.value}constructor(e){this.#L=e}});class rq{static observedAttributes=[];#L;#ey;#eg=rC(()=>this.#L.shadowRoot,"#audio");#eE=e=>{let t=Number(this.#L.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#ey=setInterval(()=>{this.#L.dispatchEvent(new CustomEvent("timeupdate",{...rp,detail:{currentTime:this.#eg().currentTime,currentSrcID:this.#L[rV]?.id}}))},n);let l=rB[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...rp,detail:{code:l?.code,type:l?.type,currentSrcID:this.#L[rV]?.id}}))};#eS=e=>{clearInterval(this.#ey);let t=rB[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...rp,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[rV]?.id}}))};#ew=e=>{let t=rW[e.type];this.#L.dispatchEvent(new CustomEvent("loadingstatechanged",{...rp,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[rV]?.id}}))};#ex=t=>{this.#ew(t);let n=t.target?.error?.code,l=n===MediaError.MEDIA_ERR_DECODE?e.PlayerLoadingError:e.PlayerPlaybackError;n===MediaError.MEDIA_ERR_DECODE&&(l=e.PlayerLoadingError),this.#L.dispatchEvent(new CustomEvent("error",{...rp,detail:{code:l,msg:"",from:"player",currentSrcID:this.#L[rV]?.id}}))};#eC=()=>{let e=null!==this.#L.getAttribute("loop");this.#L.dispatchEvent(new CustomEvent("finished",{...rp,detail:{loop:e,currentSrcID:this.#L[rV]?.id}}))};constructor(e){this.#L=e}connectedCallback(){let e=this.#eg();e.addEventListener("play",this.#eE,{passive:!0}),e.addEventListener("pause",this.#eS,{passive:!0}),e.addEventListener("ended",this.#eC,{passive:!0}),e.addEventListener("loadstart",this.#ew,{passive:!0}),e.addEventListener("canplay",this.#ew,{passive:!0}),e.addEventListener("stalled",this.#ew,{passive:!0}),e.addEventListener("error",this.#ex,{passive:!0})}}eA=[ru("x-audio-tt",[rS,rX,rq],'<audio id="audio"></audio>')],eM=[],eP=HTMLElement,class extends eP{static{ek=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(eP[Symbol.metadata]??null):void 0;rr(null,eL={value:ek},eA,{kind:"class",name:ek.name,metadata:e},null,eM),ek=eL.value,e&&Object.defineProperty(ek,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(ek,eM)}#eT=rC(()=>this.shadowRoot,"#audio");#eg=rC(()=>this.shadowRoot,"#audio");#ef=rU(this.#eg,"src");[rV];[rz];#eO=()=>{let t,n=this[rV];if(n&&n.id&&n.play_url){try{t=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(e){console.error(`JSON.parse headers error: ${e}`),t={}}this[rz]=new Promise(async(l,a)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...rp,detail:{code:0,type:"loading",currentSrcID:n.id}}));let i=await fetch(n.play_url,{headers:t});i.ok||(this.dispatchEvent(new CustomEvent("error",{...rp,detail:{code:e.DownloadError,msg:"",from:"res loader",currentSrcID:n.id}})),a()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...rp,detail:{code:1,type:"success",currentSrcID:n.id}}));let r=await i.blob(),s=URL.createObjectURL(r);this.#ef(s),l()})}};play(){return this[rz]||this.#eO(),this[rz]?.then(()=>{let e=this.#eT();e.currentTime=0,e.play()}),{currentSrcID:this[rV]?.id,loadingSrcID:""}}stop(){let e=this.#eT(),t=rB.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...rp,detail:{code:t?.code,type:t?.type,currentSrcID:this[rV]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[rV]?.id}}pause(){return this.#eT().pause(),{currentSrcID:this[rV]?.id}}resume(){return this.#eT().play(),{currentSrcID:this[rV]?.id,loadingSrcID:""}}seek(e){return this.#eT().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...rp,detail:{seekresult:1,currentSrcID:this[rV]?.id}})),{currentSrcID:this[rV]?.id}}mute(e){return this.#eT().muted=e.mute,{currentSrcID:this[rV]?.id}}playerInfo(){let e=this.#eT(),t=e.buffered,n=t.end(t.length-1);return{currentSrcID:this[rV]?.id,duration:1e3*e.duration,playbackState:r$(e),currentTime:e.currentTime,cacheTime:n}}prepare(){this[rz]||this.#eO()}setVolume(e){return this.#eT().volume=e.volume,{code:1}}};eB=[ru("x-canvas",[rS,(eD=[],eF=[],eH=[],ej=[],eU=[],eV=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eR=[rw("name",!0)],e_=[rw("height",!0)],eN=[rw("height",!0)],rr(null,null,eR,{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},eD,eF),rr(null,null,e_,{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},eH,ej),rr(null,null,eN,{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},eU,eV),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#L;#F;#eI=rC(()=>this.#L.shadowRoot,"#canvas");constructor(e){this.#L=e}handleName=rs(this,eD,rU(this.#eI,"name"));handleHeight=(rs(this,eF),rs(this,eH,rU(this.#eI,"height")));handleWidth=(rs(this,ej),rs(this,eU,rU(this.#eI,"width")));#eL=(rs(this,eV),e=>{let{contentRect:t}=e[0],n=this.#L.shadowRoot.firstElementChild;if(n){let{height:e,width:l}=t;e*=window.devicePixelRatio,l*=window.devicePixelRatio;let a=new CustomEvent("resize",{...rp,detail:{height:e,width:l}});a.height=e,a.width=l,n.dispatchEvent(a)}});#ek(){this.#F||(this.#F=new ResizeObserver(this.#eL),this.#F.observe(this.#L))}#eA(){this.#F?.disconnect(),this.#F=void 0}connectedCallback(){this.#ek()}dispose(){this.#eA()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],e$=[],eX=HTMLElement,class extends eX{static{eW=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(eX[Symbol.metadata]??null):void 0;rr(null,ez={value:eW},eB,{kind:"class",name:eW.name,metadata:e},null,e$),eW=ez.value,e&&Object.defineProperty(eW,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(eW,e$)}};let rK=(eJ=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eq=[rw("granularity",!0)],eG=[ry("offset")],rr(this,eK={value:ro(function(e){e&&""!==e?this.#eM=parseFloat(e):this.#eM=.01},"#handleGranularity")},eq,{kind:"method",name:"#handleGranularity",static:!1,private:!0,access:{has:e=>#eP in e,get:e=>e.#eP},metadata:e},null,eJ),rr(this,eY={value:ro(function(e){e?this.#L.addEventListener("scroll",this.#er,{passive:!0}):this.#L.removeEventListener("scroll",this.#er)},"#enableOffsetEvent")},eG,{kind:"method",name:"#enableOffsetEvent",static:!1,private:!0,access:{has:e=>#eR in e,get:e=>e.#eR},metadata:e},null,eJ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=rs(this,eJ);#eM=.01;#e_=0;constructor(e){this.#L=e}static observedAttributes=["granularity"];get #eP(){return eK.value}get #eR(){return eY.value}#er=()=>{let e=this.#L.scrollTop;(Math.abs(this.#e_-e)>this.#eM||0===this.#L.scrollTop||1>=Math.abs(this.#L.scrollHeight-this.#L.clientHeight-this.#L.scrollTop))&&(this.#e_=e,this.#L.dispatchEvent(new CustomEvent("offset",{...rp,detail:{offset:e,height:this.#L[rG]}})))}}),rG=Symbol("scrollableLength"),rY=Symbol("isHeaderShowing"),rJ=Symbol("resizeObserver"),rQ=Symbol("slotKid");e0=[ru("x-foldview-ng",[rS,rK])],e1=[],e2=HTMLElement,(class extends e2{static{eZ=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(e2[Symbol.metadata]??null):void 0;rr(null,eQ={value:eZ},e0,{kind:"class",name:eZ.name,metadata:e},null,e1),eZ=eQ.value,e&&Object.defineProperty(eZ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[rQ];[rJ]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eN=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#eD=t.contentRect.height);this[rQ]&&(this[rQ].style.top=`${this.#eN-this.#eD}px`)});#eN=0;#eD=0;get[rG](){return this.#eN-this.#eD}get[rY](){return this[rG]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[rG]?e=this[rG]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,l=parseFloat(t);this.scrollTo({top:l,behavior:n?"smooth":"instant"})}get[rg](){return this}disconnectedCallback(){this[rJ]?.disconnect(),this[rJ]=void 0}static{rs(eZ,e1)}}),e5=[ru("x-foldview-header-ng",[rS])],e6=[],e9=HTMLElement,(class extends e9{static{e4=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(e9[Symbol.metadata]??null):void 0;rr(null,e3={value:e4},e5,{kind:"class",name:e4.name,metadata:e},null,e6),e4=e3.value,e&&Object.defineProperty(e4,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(e4,e6)}connectedCallback(){this.parentElement?.[rJ]?.observe(this)}dispose(){this.parentElement?.[rJ]?.unobserve(this)}}),te=[ru("x-foldivew-slot-drag-ng",[rS])],tt=[],tn=HTMLElement,class extends tn{static{e7=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(tn[Symbol.metadata]??null):void 0;rr(null,e8={value:e7},te,{kind:"class",name:e7.name,metadata:e},null,tt),e7=e8.value,e&&Object.defineProperty(e7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(e7,tt)}};class rZ{#eF=0;#eH=new WeakMap;#ej;#eU=0;#eV=0;#ez=null;#eW;#eB=0;#L;static observedAttributes=[];constructor(e){this.#L=e,this.#L.addEventListener("touchmove",this.#e$,{passive:!1}),this.#L.addEventListener("touchstart",this.#eX,{passive:!0}),this.#L.addEventListener("touchend",this.#eq,{passive:!0})}#eK(e){return this.#ej?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,l=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||l}return!1})}#eG(e,t){let n=this.#eH.get(e)??0;n+=t,this.#eH.set(e,n),e.scrollTop=n}#e$=e=>{let t=this.#eY(),{pageY:n,pageX:l}=e.touches.item(0),a=this.#eU-n;if(null===this.#ez){let e=this.#eV-l;this.#ez=Math.abs(a)>Math.abs(e)}if(!1===this.#ez)return;let i=this.#eK(a);t&&(e.cancelable&&e.preventDefault(),t[rY]&&a>0||a<0&&!i||!t[rY]&&!i?(t.scrollBy({top:a,behavior:"smooth"}),this.#eF+=a,t.scrollTop=this.#eF,this.#eW=t):i&&(this.#eW=i,this.#eG(i,a))),this.#eU=n,this.#eB=a};#eY(){let e=this.#L.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#eX=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#ej=document.elementsFromPoint(t,n).filter(e=>this.#L.contains(e)),this.#eU=n,this.#eV=t,this.#eF=this.#eY()?.scrollTop??0,this.#ej))this.#eH.set(e,e.scrollTop);this.#ez=null,this.#eW=void 0};#eq=()=>{if(this.#ez=null,this.#eW){let e=this.#eY();(this.#eW!==e||e[rY])&&this.#eW.scrollBy({top:4*this.#eB,behavior:"smooth"})}}}ti=[ru("x-foldview-slot-ng",[rS,rZ])],tr=[],ts=HTMLElement,(class extends ts{static{ta=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ts[Symbol.metadata]??null):void 0;rr(null,tl={value:ta},ti,{kind:"class",name:ta.name,metadata:e},null,tr),ta=tl.value,e&&Object.defineProperty(ta,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(ta,tr)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[rQ]=this)}}),th=[ru("x-foldview-toolbar-ng",[rS])],tc=[],tu=HTMLElement,class extends tu{static{td=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(tu[Symbol.metadata]??null):void 0;rr(null,to={value:td},th,{kind:"class",name:td.name,metadata:e},null,tc),td=to.value,e&&Object.defineProperty(td,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(td,tc)}connectedCallback(){this.parentElement?.[rJ]?.observe(this)}dispose(){this.parentElement?.[rJ]?.unobserve(this)}};let r0=(ty=[],tE=[],tS=[],tw=[],tx=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tv=[rw("src",!0)],tb=[rw("placeholder",!0)],tf=[rw("blur-radius",!0)],rr(this,tg={value:ro(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},tb,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#eJ in e,get:e=>e.#eJ},metadata:e},null,ty),rr(null,null,tv,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#em in e,get:e=>e.#em,set:(e,t)=>{e.#em=t}},metadata:e},tE,tS),rr(null,null,tf,{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eQ in e,get:e=>e.#eQ,set:(e,t)=>{e.#eQ=t}},metadata:e},tw,tx),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius"];#L=rs(this,ty);#eZ=rC(()=>this.#L.shadowRoot,"#img");#em=rs(this,tE,rU(this.#eZ,"src",e=>e||this.#L.getAttribute("placeholder")));get #eJ(){return tg.value}#eQ=(rs(this,tS),rs(this,tw,rT(this.#eZ,"--blur-radius",void 0,!0)));#e0=(rs(this,tx),()=>{let e=this.#eZ().src,t=this.#L.getAttribute("placeholder");t&&e!==t&&(this.#eZ().src=t)});constructor(e){this.#L=e,this.#eZ().addEventListener("error",this.#e0)}connectedCallback(){(null===this.#L.getAttribute("src")||""===this.#L.getAttribute("src"))&&this.#em(null)}}),r1=(tL=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tC=[ry("load")],tO=[ry("error")],rr(this,tT={value:ro(function(e){e?this.#eZ().addEventListener("load",this.#e1,{passive:!0}):this.#eZ().removeEventListener("load",this.#e1)},"#enableLoadEvent")},tC,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#e2 in e,get:e=>e.#e2},metadata:e},null,tL),rr(this,tI={value:ro(function(e){e?this.#eZ().addEventListener("error",this.#e3,{passive:!0}):this.#eZ().removeEventListener("error",this.#e3)},"#enableErrorEvent")},tO,{kind:"method",name:"#enableErrorEvent",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4},metadata:e},null,tL),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=rs(this,tL);#eZ=rC(()=>this.#L.shadowRoot,"#img");get #e2(){return tT.value}get #e4(){return tI.value}#e1=()=>{this.#L.dispatchEvent(new CustomEvent("load",{...rp,detail:{width:this.#eZ().naturalWidth,height:this.#eZ().naturalHeight}}))};#e3=()=>{this.#L.dispatchEvent(new CustomEvent("error",{...rp,detail:{}}))};constructor(e){this.#L=e}});tM=[ru("filter-image",[rS,r0,(tm=[],tp=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;rr(null,null,[rw("drop-shadow",!0)],{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eQ in e,get:e=>e.#eQ,set:(e,t)=>{e.#eQ=t}},metadata:e},tm,tp),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#L;#eZ=rC(()=>this.#L.shadowRoot,"#img");#eQ=rs(this,tm,rT(this.#eZ,"--drop-shadow",void 0,!0));constructor(e){rs(this,tp),this.#L=e}}),r1],rP({}))],tP=[],tR=HTMLElement,(class extends tR{static{tA=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(tR[Symbol.metadata]??null):void 0;rr(null,tk={value:tA},tM,{kind:"class",name:tA.name,metadata:e},null,tP),tA=tk.value,e&&Object.defineProperty(tA,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(tA,tP)}}),tD=[ru("x-image",[rS,r0,r1],rP({}))],tF=[],tH=HTMLElement,class extends tH{static{tN=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(tH[Symbol.metadata]??null):void 0;rr(null,t_={value:tN},tD,{kind:"class",name:tN.name,metadata:e},null,tF),tN=t_.value,e&&Object.defineProperty(tN,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(tN,tF)}};let r2={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};nf=[ru("x-input",[rS,(t5=[],t6=[],t9=[],t8=[],t7=[],ne=[],nt=[],nn=[],nl=[],na=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t0=[rw("placeholder",!0)],t1=[rw("placeholder-color",!0)],t2=[rw("placeholder-font-family",!0)],t3=[rw("placeholder-font-size",!0)],t4=[rw("placeholder-font-weight",!0)],rr(null,null,t0,{kind:"field",name:"#handlerPlaceholder",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},t5,t6),rr(null,null,t1,{kind:"field",name:"#handlerPlaceholderColor",static:!1,private:!0,access:{has:e=>#e6 in e,get:e=>e.#e6,set:(e,t)=>{e.#e6=t}},metadata:e},t9,t8),rr(null,null,t2,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9,set:(e,t)=>{e.#e9=t}},metadata:e},t7,ne),rr(null,null,t3,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},nt,nn),rr(null,null,t4,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e7 in e,get:e=>e.#e7,set:(e,t)=>{e.#e7=t}},metadata:e},nl,na),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;#te=rC(()=>this.#L.shadowRoot,"#input");#e5=rs(this,t5,rU(this.#te,"placeholder"));#e6=(rs(this,t6),rs(this,t9,rT(this.#te,"--placeholder-color",void 0,!0)));#e9=(rs(this,t8),rs(this,t7,rT(this.#te,"--placeholder-font-family",void 0,!0)));#e8=(rs(this,ne),rs(this,nt,rT(this.#te,"--placeholder-font-size",void 0,!0)));#e7=(rs(this,nn),rs(this,nl,rT(this.#te,"--placeholder-font-weight",void 0,!0)));constructor(e){rs(this,na),this.#L=e}}),(no=[],nd=[],nh=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ni=[rw("value",!1)],ns=[rw("disabled",!0)],rr(this,nr={value:ro(function(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#te();t.value!==e&&(t.value=e)},"#handleValue")},ni,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#tt in e,get:e=>e.#tt},metadata:e},null,no),rr(null,null,ns,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn,set:(e,t)=>{e.#tn=t}},metadata:e},nd,nh),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled"];#L=rs(this,no);#te=rC(()=>this.#L.shadowRoot,"#input");get #tt(){return nr.value}#tn=rs(this,nd,rU(this.#te,"disabled",e=>null!==e?"":null));constructor(e){rs(this,nh),this.#L=e}}),(t$=[],tX=[],tq=[],tK=[],tG=[],tY=[],tJ=[],tQ=[],tZ=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tj=[rw("confirm-type",!0)],tU=[rw("maxlength",!0)],tV=[rw("readonly",!0)],tz=[rw("type",!0)],tB=[rw("ios-spell-check",!0),rw("spell-check",!0)],rr(this,tW={value:ro(function(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.#tl(t),this.#ta(n)},"#handleType")},tz,{kind:"method",name:"#handleType",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti},metadata:e},null,t$),rr(null,null,tj,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#tr in e,get:e=>e.#tr,set:(e,t)=>{e.#tr=t}},metadata:e},tX,tq),rr(null,null,tU,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},tK,tG),rr(null,null,tV,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#to in e,get:e=>e.#to,set:(e,t)=>{e.#to=t}},metadata:e},tY,tJ),rr(null,null,tB,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#td in e,get:e=>e.#td,set:(e,t)=>{e.#td=t}},metadata:e},tQ,tZ),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=rs(this,t$);#th="text";#te=rC(()=>this.#L.shadowRoot,"#input");#tr=rs(this,tX,rU(this.#te,"enterkeyhint",e=>null===e?"send":e));#ts=(rs(this,tq),rs(this,tK,rU(this.#te,"maxlength",e=>null===e?"140":e)));#to=(rs(this,tG),rs(this,tY,rU(this.#te,"readonly",e=>null!==e?"":null)));#ta=(rs(this,tJ),rU(this.#te,"type"));#tl=rU(this.#te,"inputmode");get #ti(){return tW.value}#td=rs(this,tQ,rU(this.#te,"spellcheck",e=>null===e?"false":"true"));constructor(e){rs(this,tZ),this.#L=e}}),(nv=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nc=[ry("input")],nm=[rw("send-composing-input",!0)],rr(this,nu={value:ro(function(e){let t=this.#te();e?(t.addEventListener("input",this.#tc,{passive:!0}),t.addEventListener("compositionend",this.#tu,{passive:!0})):(t.removeEventListener("input",this.#tc),t.removeEventListener("compositionend",this.#tu))},"#handleEnableConfirmEvent")},nc,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#tm in e,get:e=>e.#tm},metadata:e},null,nv),rr(this,np={value:ro(function(e){this.#tp=null!==e},"#handleSendComposingInput")},nm,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tv in e,get:e=>e.#tv},metadata:e},null,nv),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input"];#L=rs(this,nv);#tp=!1;#te=rC(()=>this.#L.shadowRoot,"#input");#tb=rC(()=>this.#L.shadowRoot,"#form");get #tm(){return nu.value}get #tv(){return np.value}#tg=e=>{let t=r2[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...rp,detail:{value:this.#te().value}}))};#tc=e=>{let t=this.#te(),n=t.value,l=e.isComposing;(!l||this.#tp)&&this.#L.dispatchEvent(new CustomEvent("input",{...rp,detail:{value:n,textLength:n.length,cursor:t.selectionStart,isComposing:l}}))};#tu=()=>{let e=this.#te(),t=e.value;this.#tp||this.#L.dispatchEvent(new CustomEvent("input",{...rp,detail:{value:t,textLength:t.length,cursor:e.selectionStart}}))};#tf=e=>{e.target===this.#te()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;let t=this.#te(),n=this.#tb();t.addEventListener("blur",this.#tg,{passive:!0}),t.addEventListener("focus",this.#tg,{passive:!0}),n.addEventListener("submit",this.#tg,{passive:!0}),n.addEventListener("input",this.#tf,{passive:!0})}})],rR)],ny=[],nE=HTMLElement,(class extends nE{static{ng=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nE[Symbol.metadata]??null):void 0;rr(null,nb={value:ng},nf,{kind:"class",name:ng.name,metadata:e},null,ny),ng=nb.value,e&&Object.defineProperty(ng,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(ng,ny)}#ty=rC(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#ty(),l=n.selectionStart;if(null===l)n.value=t;else{let e=n.value;n.value=e.slice(0,l)+t+e.slice(l)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#ty();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}sendDelEvent(e){let{action:t,length:n}=e,l=this.#ty();1===t&&(n=1);let a=l.selectionStart;if(null===a){let e=l.value;l.value=l.value.substring(0,e.length-n)}else{let e=l.value;l.value=e.slice(0,a-n)+e.slice(a)}}setInputFilter(e){this.#ty().setAttribute("pattern",e.pattern)}select(){let e=this.#ty();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#ty().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#ty().focus(e)}blur(){this.#ty().blur()}connectedCallback(){let e=this.#ty();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),nL=[ru("x-overlay-ng",[rS,(nT=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nS=[rw("events-pass-through",!0)],nx=[rw("visible",!1)],rr(this,nw={value:ro(function(e){null!==e?(this.#tE().addEventListener("click",this.#tS,{passive:!1}),this.#L.addEventListener("click",this.#tS,{passive:!1})):(this.#tE().removeEventListener("click",this.#tS),this.#L.removeEventListener("click",this.#tS))},"#handleEventsPassThrough")},nS,{kind:"method",name:"#handleEventsPassThrough",static:!1,private:!0,access:{has:e=>#tw in e,get:e=>e.#tw},metadata:e},null,nT),rr(this,nC={value:ro(function(e){this.#tx=null!==e,this.#tC&&(this.#tx?(this.#tE().showModal(),this.#L.dispatchEvent(new CustomEvent("showoverlay",rp))):(this.#tE().close(),this.#L.dispatchEvent(new CustomEvent("dismissoverlay",rp))))},"#handleVisible")},nx,{kind:"method",name:"#handleVisible",static:!1,private:!0,access:{has:e=>#tT in e,get:e=>e.#tT},metadata:e},null,nT),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#L=rs(this,nT);#tC=!!window.HTMLDialogElement;#tx=!1;constructor(e){this.#L=e}#tE=rC(()=>this.#L.shadowRoot,"#dialog");get #tw(){return nw.value}get #tT(){return nC.value}#tS=e=>{e.stopPropagation();let t=this.#tE();if(e.target===this.#L||e.target===t){t.close();let{clientX:n,clientY:l}=e,a=document.elementFromPoint(n,l);a?.tagName==="LYNX-VIEW"&&a.shadowRoot&&(a=a.shadowRoot.elementFromPoint(n,l)??a),a?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#tx&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#tC||(this.#tE().style.display="none")}})],rN)],nk=[],nA=HTMLElement,class extends nA{static{nI=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nA[Symbol.metadata]??null):void 0;rr(null,nO={value:nI},nL,{kind:"class",name:nI.name,metadata:e},null,nk),nI=nO.value,e&&Object.defineProperty(nI,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(nI,nk)}get[rE](){return this.shadowRoot.firstElementChild}};class r3 extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(r3.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class r4{#L;static observedAttributes=[];#tO;constructor(e){this.#L=e}connectedCallback(){if(IntersectionObserver&&!this.#tO){let e=this.#L.parentElement;e&&(this.#tO=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#L.dispatchEvent(new r3(t,n)),n&&this.#L.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#tO.observe(this.#L))}}dispose(){this.#tO&&(this.#tO.disconnect(),this.#tO=void 0)}}function r5(e,t,n,l){let a=!1;return function(i){if(i!==a){let r=e.call(this);i?(rc(()=>r.addEventListener(t,n,l)),a=!0):(rc(()=>r.removeEventListener(t,n)),a=!1)}}}nR=[ru("x-refresh-footer",[rS,r4])],n_=[],nN=HTMLElement,(class extends nN{static{nP=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nN[Symbol.metadata]??null):void 0;rr(null,nM={value:nP},nR,{kind:"class",name:nP.name,metadata:e},null,n_),nP=nM.value,e&&Object.defineProperty(nP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(nP,n_)}connectedCallback(){this.setAttribute("slot","footer")}}),nH=[ru("x-refresh-header",[rS,r4])],nj=[],nU=HTMLElement,(class extends nU{static{nF=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nU[Symbol.metadata]??null):void 0;rr(null,nD={value:nF},nH,{kind:"class",name:nF.name,metadata:e},null,nj),nF=nD.value,e&&Object.defineProperty(nF,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(nF,nj)}connectedCallback(){this.setAttribute("slot","header")}}),nK=[ru("x-refresh-view",[rS,(n$=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nV=[ry("headeroffset"),ry("headershow"),ry("footeroffset")],nW=[ry("startrefresh"),ry("headerreleased"),ry("startloadmore"),ry("footerreleased")],rr(this,nz={value:ro(function(e,t){this.#tI[t]=e;let{headeroffset:n,headershow:l,footeroffset:a}=this.#tI;n||l||a?this.#tL():this.#tk()},"#handleComplexEventEnableAttributes")},nV,{kind:"method",name:"#handleComplexEventEnableAttributes",static:!1,private:!0,access:{has:e=>#tA in e,get:e=>e.#tA},metadata:e},null,n$),rr(this,nB={value:ro(function(e,t){this.#tI[t]=e;let{startrefresh:n,headerreleased:l,startloadmore:a,footerreleased:i}=this.#tI;l||i||a||n?this.#tM():this.#tP()},"#handleXEnableHeaderOffsetEvent")},nW,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tR in e,get:e=>e.#tR},metadata:e},null,n$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=rs(this,n$);static observedAttributes=[];#t_=rC(()=>this.#L,"x-refresh-view > x-refresh-header:first-of-type");#tN=rC(()=>this.#L,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#L=e,this.#L.addEventListener(r3.EventName,this.#tD)}#tI={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};get #tA(){return nz.value}get #tR(){return nB.value}#tF=!1;#tH=!1;#tj=!1;#tU=!1;#tD=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tF=e.startShowing,this.#tH=e.fullyShowing):(this.#tj=e.startShowing,this.#tU=e.fullyShowing)};#tV=!1;#tM(){this.#tV||(this.#L.addEventListener("touchend",this.#tz),this.#tV=!0)}#tz=()=>{this.#tH?(this.#L.dispatchEvent(new CustomEvent("headerreleased",rp)),this.#L.dispatchEvent(new CustomEvent("startrefresh",{...rp,detail:{isManual:this.#L._nextRefreshIsManual}})),this.#L._nextRefreshIsManual=!0):("true"===this.#L.getAttribute("enable-auto-loadmore")&&this.#tj||this.#tU)&&(this.#L.dispatchEvent(new CustomEvent("footerreleased",rp)),this.#L.dispatchEvent(new CustomEvent("startloadmore",rp)))};#tP(){this.#tV&&this.#L.removeEventListener("touchend",this.#tz)}#tW=!1;#tB=!1;#tL(){this.#tB||(this.#L.addEventListener("touchstart",this.#t$),this.#L.addEventListener("touchend",this.#tX),this.#L.addEventListener("touchcancel",this.#tX),this.#L.shadowRoot.querySelector("#container").addEventListener("scroll",this.#er))}#tX=()=>{this.#tW=!1};#t$=()=>{this.#tW=!0};#er=()=>{if(this.#tF&&(this.#tI.headershow||this.#tI.headeroffset)){let e=this.#t_();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#L.shadowRoot.querySelector("#container").scrollTop;this.#L.dispatchEvent(new CustomEvent("headershow",{...rp,detail:{isDragging:this.#tW,offsetPercent:1-n/t}})),this.#L.dispatchEvent(new CustomEvent("headeroffset",{...rp,detail:{isDragging:this.#tW,offsetPercent:1-n/t}}))}}else if(this.#tj&&this.#tI.footeroffset){let e=this.#tN();if(e){let t=this.#L.shadowRoot.querySelector("#container"),n=t.scrollTop;t.scrollHeight;let l=parseFloat(getComputedStyle(e).height);this.#L.dispatchEvent(new CustomEvent("footeroffset",{...rp,detail:{isDragging:this.#tW,offsetPercent:1-n/l}}))}}};#tk(){this.#tB&&(this.#L.removeEventListener("touchstart",this.#t$),this.#L.removeEventListener("touchend",this.#tX),this.#L.removeEventListener("touchcancel",this.#tX),this.#L.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#er))}dispose(){this.#tP(),this.#tk()}})],rD)],nG=[],nY=HTMLElement,(class extends nY{static{nq=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(nY[Symbol.metadata]??null):void 0;rr(null,nX={value:nq},nK,{kind:"class",name:nq.name,metadata:e},null,nG),nq=nX.value,e&&Object.defineProperty(nq,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"})}#tq=rC(()=>this.shadowRoot,"#container");#tK=rC(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tq(),t=this.#tK();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tq(),n=this.#tK();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tK().scrollHeight}get[rg](){return this}static{rs(nq,nG)}}),n5=[ru("x-svg",[rS,(nZ=[],n0=[],n1=[],n2=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nJ=[rw("src",!0)],nQ=[rw("content",!0)],rr(null,null,nJ,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#em in e,get:e=>e.#em,set:(e,t)=>{e.#em=t}},metadata:e},nZ,n0),rr(null,null,nQ,{kind:"field",name:"#handleContent",static:!1,private:!0,access:{has:e=>#tG in e,get:e=>e.#tG,set:(e,t)=>{e.#tG=t}},metadata:e},n1,n2),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#L;#tY=new Image;#em=rs(this,nZ,rT(()=>this.#L,"background-image",e=>(this.#tY.src=e,`url(${e})`)));#tG=(rs(this,n0),rs(this,n1,rT(()=>this.#L,"background-image",e=>{if(!e)return"";let t="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e)));return this.#tY.src=t,`url("${t}")`})));#tJ=(rs(this,n2),()=>{let{width:e,height:t}=this.#tY;this.#L.dispatchEvent(new CustomEvent("load",{...rp,detail:{width:e,height:t}}))});constructor(e){this.#L=e,this.#tY.addEventListener("load",this.#tJ)}})])],n6=[],n9=HTMLElement,(class extends n9{static{n4=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(n9[Symbol.metadata]??null):void 0;rr(null,n3={value:n4},n5,{kind:"class",name:n4.name,metadata:e},null,n6),n4=n3.value,e&&Object.defineProperty(n4,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(n4,n6)}}),le=[ru("x-swiper-item",[rS])],lt=[],ln=HTMLElement,(class extends ln{static{n7=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ln[Symbol.metadata]??null):void 0;rr(null,n8={value:n7},le,{kind:"class",name:n7.name,metadata:e},null,lt),n7=n8.value,e&&Object.defineProperty(n7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(n7,lt)}}),lD=[ru("x-swiper",[rS,(lC=[],lT=[],lO=[],lI=[],lL=[],lk=[],lA=[],lM=[],lP=[],lR=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ly=[rw("indicator-color",!0)],lE=[rw("indicator-active-color",!0)],lS=[rw("page-margin",!0)],lw=[rw("previous-margin",!0)],lx=[rw("next-margin",!0)],rr(null,null,ly,{kind:"field",name:"#handleIndicatorColor",static:!1,private:!0,access:{has:e=>#tQ in e,get:e=>e.#tQ,set:(e,t)=>{e.#tQ=t}},metadata:e},lC,lT),rr(null,null,lE,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tZ in e,get:e=>e.#tZ,set:(e,t)=>{e.#tZ=t}},metadata:e},lO,lI),rr(null,null,lS,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#t0 in e,get:e=>e.#t0,set:(e,t)=>{e.#t0=t}},metadata:e},lL,lk),rr(null,null,lw,{kind:"field",name:"#handlePreviousMargin",static:!1,private:!0,access:{has:e=>#t1 in e,get:e=>e.#t1,set:(e,t)=>{e.#t1=t}},metadata:e},lA,lM),rr(null,null,lx,{kind:"field",name:"#handleNextMargin",static:!1,private:!0,access:{has:e=>#t2 in e,get:e=>e.#t2,set:(e,t)=>{e.#t2=t}},metadata:e},lP,lR),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;#t3=0;#t4=rC(()=>this.#L.shadowRoot,"#indicator-container");#t5=rC(()=>this.#L.shadowRoot,"#indicator-style");#t6;constructor(e){rs(this,lR),this.#L=e}#tQ=rs(this,lC,rT(this.#t4,"--indicator-color",void 0,!0));#tZ=(rs(this,lT),rs(this,lO,rT(this.#t4,"--indicator-active-color",void 0,!0)));#t0=(rs(this,lI),rs(this,lL,rT(this.#t4,"--page-margin",void 0,!0)));#t1=(rs(this,lk),rs(this,lA,rT(this.#t4,"--previous-margin",void 0,!0)));#t2=(rs(this,lM),rs(this,lP,rT(this.#t4,"--next-margin",void 0,!0)));#t9(){let e=this.#L.childElementCount;if(e!==this.#t3){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#t4().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.#t5().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#t3=e}connectedCallback(){this.#t9(),this.#t6=new MutationObserver(this.#t9.bind(this)),this.#t6.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,l=this.#t4();for(let e=0;e<n;e++){let n=l.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),rc(()=>{this.#t4().children[this.#L.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t6?.disconnect(),this.#t6=void 0}}),(lr=[],ls=[],lo=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ll=[ry("transition")],la=[ry("scrollstart"),ry("lynxscrollend"),ry("change"),ry("change-event-for-indicator")],rr(this,li={value:ro(function(e,t){this.#tI[t]=e;let{lynxscrollend:n,scrollstart:l,change:a}=this.#tI,i=a||n||l||this.#tI["change-event-for-indicator"];this.#t8.forEach(e=>e(i))},"#enableScrollEventProcessor")},la,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t7 in e,get:e=>e.#t7},metadata:e},null,lr),rr(null,null,ll,{kind:"field",name:"#handleEnableTransitionEvent",static:!1,private:!0,access:{has:e=>#ne in e,get:e=>e.#ne,set:(e,t)=>{e.#ne=t}},metadata:e},ls,lo),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=rs(this,lr);#nt=0;#nn=0;#tW=!1;#Y;#nl=!1;constructor(e){this.#L=e}#tK=rC(()=>this.#L.shadowRoot,"#content").bind(this);#ne=rs(this,ls,r5(this.#tK,"scroll",this.#na,{passive:!0}));#er(){rv||(clearTimeout(this.#Y),this.#Y=setTimeout(()=>{this.#eo()},100)),this.#nl||(this.#L.dispatchEvent(new CustomEvent("scrollstart",{...rp,detail:{current:this.#nt,isDragged:this.#tW}})),this.#nl=!0);let e=this.#tK(),t=this.#L.isVertical,n=t?e.scrollTop:e.scrollLeft,l=t?e.clientHeight:e.clientWidth,a=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#nn-n)>l/4||n<10||Math.abs(n-a)<=l){let e=this.#L.currentIndex;e!==this.#nt&&(this.#L.dispatchEvent(new CustomEvent("change",{...rp,detail:{current:e,isDragged:this.#tW}})),this.#nt=e),this.#nn=n}}#eo(){this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...rp,detail:{current:this.#nt}})),this.#nl=!1}#ni(){this.#tW=!0}#nr(){this.#tW=!1}#na(){this.#L.dispatchEvent(new CustomEvent("transition",{...rp,detail:{dx:this.#tK().scrollLeft,dy:this.#tK().scrollTop}}))}#t8=(rs(this,lo),[r5(this.#tK,"scroll",this.#er.bind(this),{passive:!0}),r5(this.#tK,"touchstart",this.#ni.bind(this),{passive:!0}),r5(this.#tK,"touchend",this.#nr.bind(this),{passive:!0}),r5(this.#tK,"touchcancel",this.#nr.bind(this),{passive:!0}),r5(this.#tK,"scrollend",this.#eo.bind(this),{passive:!0})]);#tI={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t7(){return li.value}connectedCallback(){this.#nt=parseFloat(this.#L.getAttribute("current")??"0");let e=this.#L.isVertical;this.#nn=e?this.#tK().scrollTop:this.#tK().scrollLeft}}),(lf=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lp=[rw("circular",!1)],lb=[rw("vertical",!0)],rr(this,lv={value:ro(function(e){this.#t8.forEach(t=>t(null!=e)),null!==e&&this.#ns({detail:{current:this.#L.currentIndex,isDragged:!1,__isFirstLayout:!0}})},"#handleCircular")},lp,{kind:"method",name:"#handleCircular",static:!1,private:!0,access:{has:e=>#no in e,get:e=>e.#no},metadata:e},null,lf),rr(this,lg={value:ro(function(e){this.#nd=null!==e},"#handleVerticalChange")},lb,{kind:"method",name:"#handleVerticalChange",static:!1,private:!0,access:{has:e=>#nh in e,get:e=>e.#nh},metadata:e},null,lf),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#L=rs(this,lf);#nd=!1;#nc;#nu=0;#tK=rC(()=>this.#L.shadowRoot,"#content").bind(this);constructor(e){this.#L=e}#nm=rC(()=>this.#L.shadowRoot,"#circular-start").bind(this);#np=rC(()=>this.#L.shadowRoot,"#circular-end").bind(this);#ns(e){let t=this.#L.childElementCount;if(t>2){let{current:n,isDragged:l,__isFirstLayout:a}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,i=this.#tK(),r=this.#nm().assignedElements(),s=this.#np().assignedElements(),o=this.#L.firstElementChild,d=this.#L.lastElementChild,h=this.#L.snapDistance;if(0===n?(s.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(r.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(r.forEach(e=>e.removeAttribute("slot")),s.forEach(e=>e.removeAttribute("slot")),e=this.#L.children[n]),this.#nd){let t="carousel"===this.#L.getAttribute("mode")?.8*i.clientHeight/2:i.clientHeight/2;this.#nu=e.offsetTop+e.offsetHeight/2-h-t,i.scrollTop=this.#nu}else{let t="carousel"===this.#L.getAttribute("mode")?.8*i.clientWidth/2:i.clientWidth/2;this.#nu=e.offsetLeft+e.offsetWidth/2-h-t,i.scrollLeft=this.#nu}if(!l){let e=this.#L.getAttribute("mode");if(a&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#nv(a?"instant":"smooth")}}}}#nv(e){let t=this.#tK(),n=this.#L.snapDistance;t.scrollBy({top:this.#nd?n:0,left:this.#nd?0:n,behavior:e??"smooth"})}#t8=[r5(()=>this.#L,"change",this.#ns.bind(this),{passive:!0}),r5(()=>this.#L,"touchmove",this.#nb.bind(this),{passive:!1}),r5(()=>this.#L,"touchend",this.#ng.bind(this),{passive:!1}),r5(()=>this.#L,"touchcancel",this.#ng.bind(this),{passive:!1})];get #no(){return lv.value}#nb(e){let t=e.touches.item(0);if(t){let e=this.#nd?t.pageY:t.pageX;if(void 0!==this.#nc){this.#nf();let t=this.#nc-e;this.#nu+=t}this.#nc=e}}#ng(e){this.#ny(),this.#nv(),this.#nc=void 0}get #nh(){return lg.value}#nE;#nf(){if(!this.#nE){let e=this.#tK();this.#nu=this.#nd?e.scrollTop:e.scrollLeft,this.#nE=setInterval(()=>{this.#nd?e.scrollTop=this.#nu:e.scrollLeft=this.#nu},10)}}#ny(){this.#nE&&(clearInterval(this.#nE),this.#nE=void 0)}dispose(){this.#ny()}}),(lm=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ld=[rw("current",!1)],lc=[rw("interval",!1),rw("autoplay",!1)],rr(this,lh={value:ro(function(e){let t=Number(e);Number.isNaN(t)||(this.#L.currentIndex=t)},"#handleCurrentChange")},ld,{kind:"method",name:"#handleCurrentChange",static:!1,private:!0,access:{has:e=>#nS in e,get:e=>e.#nS},metadata:e},null,lm),rr(this,lu={value:ro(function(){if(null!==this.#L.getAttribute("autoplay")){let e=this.#L.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#nw(t)}},"#handleAutoplay")},lc,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nx in e,get:e=>e.#nx},metadata:e},null,lm),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#L=rs(this,lm);constructor(e){this.#L=e}get #nS(){return lh.value}#nC;#nT=(()=>{this.#L.scrollToNext()}).bind(this);#nw(e){this.#nO(),this.#nC=setInterval(this.#nT,e)}#nO(){this.#nC&&clearInterval(this.#nC)}get #nx(){return lu.value}dispose(){this.#nO()}})],rF)],lF=[],lH=HTMLElement,(class extends lH{static{lN=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(lH[Symbol.metadata]??null):void 0;rr(null,l_={value:lN},lD,{kind:"class",name:lN.name,metadata:e},null,lF),lN=l_.value,e&&Object.defineProperty(lN,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tK=rC(()=>this.shadowRoot,"#content").bind(this);#nI(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let l=this.#tK(),a=this.isVertical,i=this.childElementCount,r=a?l.scrollTop:l.scrollLeft,s=a?l.clientHeight:l.clientWidth,o=a?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=r+("carousel"===this.getAttribute("mode")?.8*s/2:s/2);for(let l=0;l<i;l++){let i=this.children[l];if(i){let r=(a?i.offsetTop:i.offsetLeft)+o/2-d,s=Math.abs(r);s<t&&(e=l,t=s,n=r)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#nI().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#nL(e,t?"smooth":"instant")}#nL(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,l=0;l="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tK().scrollTo({left:e?0:l,top:e?l:0,behavior:t})}}get snapDistance(){return this.#nI().minOffsetToMid}get isVertical(){return null!==this.getAttribute("vertical")}get circularPlay(){return null!==this.getAttribute("circular")}scrollToNext(){this.currentIndex===this.childElementCount-1?this.circularPlay&&(this.currentIndex=0):this.currentIndex+=1}scrollToPrevious(){let e=this.currentIndex,t=this.childElementCount;0===e?this.circularPlay&&(this.currentIndex=t-1):this.currentIndex=t-1}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#nL(Number(e),"instant")}get[rg](){return this}static{rs(lN,lF)}}),lB=[ru("inline-image",[(lV=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lj=[rw("src",!0)],rr(this,lU={value:ro(function(e){e?this.#nk().setAttribute("src",e):this.#nk().removeAttribute("src")},"#handleSrc")},lj,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#em in e,get:e=>e.#em},metadata:e},null,lV),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#L=rs(this,lV);constructor(e){this.#L=e}#nk=rC(()=>this.#L.shadowRoot,"#img");get #em(){return lU.value}})],rP({}))],l$=[],lX=HTMLElement,(class extends lX{static{lW=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(lX[Symbol.metadata]??null):void 0;rr(null,lz={value:lW},lB,{kind:"class",name:lW.name,metadata:e},null,l$),lW=lz.value,e&&Object.defineProperty(lW,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(lW,l$)}}),lG=[ru("inline-text",[])],lY=[],lJ=HTMLElement,(class extends lJ{static{lK=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(lJ[Symbol.metadata]??null):void 0;rr(null,lq={value:lK},lG,{kind:"class",name:lK.name,metadata:e},null,lY),lK=lq.value,e&&Object.defineProperty(lK,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(lK,lY)}}),l0=[ru("inline-truncation",[])],l1=[],l2=HTMLElement,x=class extends l2{static{lZ=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(l2[Symbol.metadata]??null):void 0;rr(null,lQ={value:lZ},l0,{kind:"class",name:lZ.name,metadata:e},null,l1),x=lZ=lQ.value,e&&Object.defineProperty(lZ,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(x.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(x.XEnableCustomTruncation)}static{rs(lZ,l1)}},x=lZ,l8=[ru("raw-text",[(l5=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l3=[rw("text",!0)],rr(this,l4={value:ro(function(e){this.#nA?.remove(),e&&(this.#nA=new Text(e),this.#L.append(this.#nA))},"#handleText")},l3,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nM in e,get:e=>e.#nM},metadata:e},null,l5),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#L=rs(this,l5);#nA;constructor(e){this.#L=e}get #nM(){return l4.value}})])],l7=[],ae=HTMLElement,class extends ae{static{l9=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ae[Symbol.metadata]??null):void 0;rr(null,l6={value:l9},l8,{kind:"class",name:l9.name,metadata:e},null,l7),l9=l6.value,e&&Object.defineProperty(l9,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(l9,l7)}};let r6=(ai=[],class e{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;at=[rw("text-maxlength",!0),rw("text-maxline",!0),rw("tail-color-convert",!0)],al=[ry("layout")],rr(this,an={value:ro(function(){this.#nP=parseFloat(this.#L.getAttribute("text-maxlength")??""),this.#nR=parseFloat(this.#L.getAttribute("text-maxline")??""),this.#n_="false"!==this.#L.getAttribute("tail-color-convert"),this.#nP<0&&(this.#nP=NaN),this.#nR<1&&(this.#nR=NaN),isNaN(this.#nR)?this.#nN().style.removeProperty("-webkit-line-clamp"):this.#nN().style.webkitLineClamp=this.#nR.toString(),this.#nD()},"#handleAttributeChange")},at,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nF in e,get:e=>e.#nF},metadata:e},null,ai),rr(this,aa={value:ro(function(e){this.#nH=e},"#handleEnableLayoutEvent")},al,{kind:"method",name:"#handleEnableLayoutEvent",static:!1,private:!0,access:{has:e=>#nj in e,get:e=>e.#nj},metadata:e},null,ai),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"];#nU=(rs(this,ai),!1);#nV=!1;#nz=new Map;#nW;#F;#nB;#n$;#nX=!1;#nP=NaN;#nR=NaN;#n_=!0;#nH=!1;get #nq(){return!this.#nK&&!this.#n_}get #nK(){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 #nG(){return!isNaN(this.#nR)&&(this.#nK||!this.#n_)}#L;constructor(e){this.#L=e}#nN=rC(()=>this.#L.shadowRoot,"#inner-box");#nY(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nz.delete(e)}),"characterData"===e.type&&void 0!==this.#nz.get(e.target)&&this.#nz.set(e.target,e.target.data)})}#nJ(){for(let[t,n]of this.#nz)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)}#nQ(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nD(){!(!this.#nV||this.#L.matches("x-text>x-text"))&&(this.#nU||(this.#nU=!0,rc(async()=>{await this.#nZ(),this.#n0(),this.#nU=!1})))}async #nZ(){if(this.#nB?.parentElement?.removeChild(this.#nB),this.#nJ(),!this.#nG&&isNaN(this.#nP))return;await document.fonts.ready;let t=this.#nN().getBoundingClientRect();this.#n$=new r9(this.#L,t);let n=this.#n$,l=(isNaN(this.#nP)?void 0:n.getNodeInfoByCharIndex(this.#nP))?this.#nP:1/0,a=this.#nG&&n.getLineInfo(this.#nR)?n.getLineInfo(this.#nR-1):void 0,i=1/0,r=3;if(a){let{start:l,end:s}=a,o=s-l;if(this.#nK){this.#L.setAttribute(e.showInlineTruncation,"");let a=this.#L.querySelector("inline-truncation").getBoundingClientRect(),r=t.width,o=a.width;if(r>o){i=s-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(i),l=s-t.start;for(e.setEnd(t.node,l),e.setStart(t.node,l);e.getBoundingClientRect().width<o&&(i-=1)&&(t=n.getNodeInfoByCharIndex(i));)e.setStart(t.node,i-t.start)}else i=l,this.#L.removeAttribute(e.showInlineTruncation)}else o<3?(r=o,i=l):i=s-3}let s=Math.min(l,i);if(s<1/0){let t=n.getNodeInfoByCharIndex(s);if(t){let l=s-t.start,a=t.node,i=[];a.nodeType===Node.TEXT_NODE?(this.#nz.set(a,a.data),a.data=a.data.substring(0,l)):i.push(a),i=i.concat(this.#nQ(a));let o=a.parentElement;for(;o!==this.#L;)i=i.concat(this.#nQ(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nz.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nz.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#nq){let e=(0===l?n.nodelist.at(t.nodeIndex-1)?.parentElement:a.parentElement)??a.parentElement;this.#nB=new Text(Array(r).fill(".").join("")),e.append(this.#nB)}this.#L.setAttribute(e.exceedMathLengthAttribute,"")}this.#n1(s)}}#n2=e=>{this.#nY(e),this.#nD()};#n3=()=>{if(this.#nX){this.#nX=!1;return}this.#nD()};#n0(){this.#nV&&((this.#nP||this.#nR)&&!this.#nW&&(this.#nW=new MutationObserver(this.#n2),this.#nW.observe(this.#L,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nR&&!this.#F&&(this.#F=new ResizeObserver(this.#n3),this.#nX=!0,this.#F.observe(this.#nN(),{box:"content-box"})))}#n4(){this.#nW?.disconnect(),this.#nW=void 0,this.#F?.disconnect(),this.#F=void 0}get #nF(){return an.value}get #nj(){return aa.value}#n1(e){if(!this.#nH)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#n$||(t.#n$=new r9(t.#L,t.#L.getBoundingClientRect())),t.#n$.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let l=parseFloat(n.toString());if(!isNaN(l)){t.#n$||(t.#n$=new r9(t.#L,t.#L.getBoundingClientRect()));let n=t.#n$.getLineInfo(l);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",{...rp,detail:t}))}dispose(){this.#n4()}connectedCallback(){this.#nV=!0,this.#nj(this.#nH),this.#nF(),rc(()=>{this.#n1()})}});class r9{#n5=[{start:0}];#n6=[];#n9=[];#L;#n8;nodelist;constructor(e,t){this.#L=e,this.nodelist=new r8(this.#L),this.#n8=t}#n7(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,l=e.node,a=document.createRange();a.selectNode(l);for(let e=0;e<l.data.length;e++){a.setEnd(l,e);let i=a.getClientRects().item(n);if(i&&i.right===t.right)return e}return l.data.length}}#le(e){if(this.#n6[e])return;let{left:t}=this.#n8,n=this.#n6[this.#n6.length-1],l=n?.[n.length-1],a=l?.nodeIndex?l?.nodeIndex+1:0;for(let n=a,l;(l=this.#lt(n))&&e>=this.#n6.length;n++){let e,{node:n}=l;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.#n6[this.#n6.length-1],a=e[0];if(.2>Math.abs(a.left-t)||!n?this.#n6.push([{...l,rect:a,rectIndex:0}]):n.push({...l,rect:a,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let i=e[n];(i.left!==a.left||i.bottom!==a.bottom)&&(.2>Math.abs(i.left-t)?this.#n6.push([{...l,rect:i,rectIndex:n}]):this.#n6[this.#n6.length-1].push({...l,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#le(1/0),this.#n6.length}getLineInfo(e){if(this.#le(e+1),e<this.#n6.length){let t=e>0?this.#n5[e-1]??{}:void 0,n=this.#n5[e]??{},l=e<this.#n6.length-1?this.#n5[e+1]??{}:void 0;if(void 0===n.start){let l=this.#n6[e-1],a=l[l.length-1],i=this.#n7(a),r=a.start+i;t&&(t.end=r),n.start=r+1}if(void 0===n.end){let t=this.#n6[e],a=t[t.length-1];if(e===this.#n6.length-1){let e=a.node.nodeType===Node.TEXT_NODE?a.node.data.length:1;n.end=a.start+e}else{let e=this.#n7(a);n.end=a.start+e,l.start=n.end+1}}return n}}#lt(e){let t=this.#n9.length-1,n=this.#n9[t],l=n?n.start+n.length:0;for(let t=this.#n9.length,n;(n=this.nodelist.at(t))&&e>=this.#n9.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,a={node:n,length:e,start:l,nodeIndex:t};this.#n9.push(a)}return this.#n9[e]}getNodeInfoByCharIndex(e){let t,n=0,l=this.#n9.length-1;for(;n<=l;){let a=Math.floor((n+l)/2),i=this.#n9[a],r=i.node,s=r.nodeType===Node.TEXT_NODE?r.data.length:1,o=i.start;if(e>=o&&e<o+s){t=i;break}e<o?l=a-1:n=a+1}if(t)return t;for(let t=this.#n9.length,n;n=this.#lt(t);t++)if(e<n.start+n.length)return n}}class r8{#ln=[];#ll;constructor(e){this.#ll=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.#ln[e]||this.#la(e),this.#ln[e]}#la(e){let t=null;for(;e>=this.#ln.length&&(t=this.#ll.nextNode());){this.#ln.push(t);break}}}ao=[ru("x-text",[rS,r6],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],ad=[],ah=HTMLElement,(class extends ah{static{as=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ah[Symbol.metadata]??null):void 0;rr(null,ar={value:as},ao,{kind:"class",name:as.name,metadata:e},null,ad),as=ar.value,e&&Object.defineProperty(as,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(rA.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[rE]=this;static{rs(as,ad)}}),a8=[ru("x-textarea",[rS,(ab=[],ag=[],af=[],ay=[],aE=[],aS=[],aw=[],ax=[],aC=[],aT=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ac=[rw("placeholder-color",!0)],au=[rw("placeholder-font-size",!0)],am=[rw("placeholder-font-weight",!0)],ap=[rw("placeholder-font-family",!0)],av=[rw("placeholder",!0)],rr(null,null,ac,{kind:"field",name:"#updatePlaceholderColor",static:!1,private:!0,access:{has:e=>#li in e,get:e=>e.#li,set:(e,t)=>{e.#li=t}},metadata:e},ab,ag),rr(null,null,au,{kind:"field",name:"#updatePlaceholderFontSize",static:!1,private:!0,access:{has:e=>#lr in e,get:e=>e.#lr,set:(e,t)=>{e.#lr=t}},metadata:e},af,ay),rr(null,null,am,{kind:"field",name:"#updatePlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#ls in e,get:e=>e.#ls,set:(e,t)=>{e.#ls=t}},metadata:e},aE,aS),rr(null,null,ap,{kind:"field",name:"#updatePlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#lo in e,get:e=>e.#lo,set:(e,t)=>{e.#lo=t}},metadata:e},aw,ax),rr(null,null,av,{kind:"field",name:"#handlePlaceholder",static:!1,private:!0,access:{has:e=>#ld in e,get:e=>e.#ld,set:(e,t)=>{e.#ld=t}},metadata:e},aC,aT),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"];#lh=rC(()=>this.#L.shadowRoot,"#textarea");#li=rs(this,ab,rT(this.#lh,"--placeholder-color",void 0,!0));#lr=(rs(this,ag),rs(this,af,rT(this.#lh,"--placeholder-font-size",void 0,!0)));#ls=(rs(this,ay),rs(this,aE,rT(this.#lh,"--placeholder-font-weight",void 0,!0)));#lo=(rs(this,aS),rs(this,aw,rT(this.#lh,"--placeholder-font-family",void 0,!0)));#ld=(rs(this,ax),rs(this,aC,rU(this.#lh,"placeholder")));#L=rs(this,aT);constructor(e){this.#L=e}}),(aM=[],aP=[],aR=[],a_=[],aN=[],aD=[],aF=[],aH=[],aj=[],aU=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aO=[rw("confirm-type",!0)],aI=[rw("maxlength",!0)],aL=[rw("readonly",!0)],ak=[rw("ios-spell-check",!0)],aA=[rw("show-soft-input-onfocus",!0)],rr(null,null,aO,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#tr in e,get:e=>e.#tr,set:(e,t)=>{e.#tr=t}},metadata:e},aM,aP),rr(null,null,aI,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},aR,a_),rr(null,null,aL,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#to in e,get:e=>e.#to,set:(e,t)=>{e.#to=t}},metadata:e},aN,aD),rr(null,null,ak,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#td in e,get:e=>e.#td,set:(e,t)=>{e.#td=t}},metadata:e},aF,aH),rr(null,null,aA,{kind:"field",name:"#handleShowSoftInputOnfocus",static:!1,private:!0,access:{has:e=>#lc in e,get:e=>e.#lc,set:(e,t)=>{e.#lc=t}},metadata:e},aj,aU),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;#lu=rC(()=>this.#L.shadowRoot,"#textarea");#tr=rs(this,aM,rU(this.#lu,"enterkeyhint",e=>null===e?"send":e));#ts=(rs(this,aP),rs(this,aR,rU(this.#lu,"maxlength",e=>null===e?"140":e)));#to=(rs(this,a_),rs(this,aN,rU(this.#lu,"readonly",e=>null!==e?"":null)));#td=(rs(this,aD),rs(this,aF,rU(this.#lu,"spellcheck",e=>null===e?"false":"true")));#lc=(rs(this,aH),rs(this,aj,rU(this.#lu,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){rs(this,aU),this.#L=e}}),(aK=[],aG=[],aY=[],aJ=[],aQ=[],aZ=[],a0=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aV=[rw("confirm-enter",!0)],aW=[rw("disabled",!0)],aB=[rw("max-height",!0)],a$=[rw("min-height",!0)],aX=[rw("value",!1)],rr(this,az={value:ro(function(e){this.#lm=null!==e},"#handleConfirmEnter")},aV,{kind:"method",name:"#handleConfirmEnter",static:!1,private:!0,access:{has:e=>#lp in e,get:e=>e.#lp},metadata:e},null,aK),rr(this,aq={value:ro(function(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#lu();t.value!==e&&(t.value=e)},"#handleValue")},aX,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#tt in e,get:e=>e.#tt},metadata:e},null,aK),rr(null,null,aW,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn,set:(e,t)=>{e.#tn=t}},metadata:e},aG,aY),rr(null,null,aB,{kind:"field",name:"#handleMaxHeight",static:!1,private:!0,access:{has:e=>#lv in e,get:e=>e.#lv,set:(e,t)=>{e.#lv=t}},metadata:e},aJ,aQ),rr(null,null,a$,{kind:"field",name:"#handleMinHeight",static:!1,private:!0,access:{has:e=>#lb in e,get:e=>e.#lb,set:(e,t)=>{e.#lb=t}},metadata:e},aZ,a0),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=rs(this,aK);#lu=rC(()=>this.#L.shadowRoot,"#textarea");#tb=rC(()=>this.#L.shadowRoot,"#form");#lm=!1;get #lp(){return az.value}#tn=rs(this,aG,rU(this.#lu,"disabled",e=>null!==e?"":null));#lv=(rs(this,aY),rs(this,aJ,rT(this.#lu,"max-height")));#lb=(rs(this,aQ),rs(this,aZ,rT(this.#lu,"min-height")));get #tt(){return aq.value}#lg=(rs(this,a0),e=>{this.#lm&&"Enter"===e.key&&this.#tb().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#L=e,this.#lu().addEventListener("keyup",this.#lg)}}),(a5=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a1=[ry("input")],a3=[rw("send-composing-input",!0)],rr(this,a2={value:ro(function(e){let t=this.#lu();e?(t.addEventListener("input",this.#tc,{passive:!0}),t.addEventListener("compositionend",this.#tu,{passive:!0})):(t.removeEventListener("input",this.#tc),t.removeEventListener("compositionend",this.#tu))},"#handleEnableConfirmEvent")},a1,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#tm in e,get:e=>e.#tm},metadata:e},null,a5),rr(this,a4={value:ro(function(e){this.#tp=null!==e},"#handleSendComposingInput")},a3,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tv in e,get:e=>e.#tv},metadata:e},null,a5),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input"];#L=rs(this,a5);#tp=!1;#lu=rC(()=>this.#L.shadowRoot,"#textarea");#tb=rC(()=>this.#L.shadowRoot,"#form");get #tm(){return a2.value}get #tv(){return a4.value}#tg=e=>{let t=r2[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...rp,detail:{value:this.#lu().value}}))};#tc=e=>{let t=this.#lu(),n=t.value,l=e.isComposing;(!l||this.#tp)&&this.#L.dispatchEvent(new CustomEvent("input",{...rp,detail:{value:n,textLength:n.length,cursor:t.selectionStart,isComposing:l}}))};#tu=()=>{let e=this.#lu(),t=e.value;this.#tp||this.#L.dispatchEvent(new CustomEvent("input",{...rp,detail:{value:t,textLength:t.length,cursor:e.selectionStart}}))};#tf=e=>{e.target===this.#lu()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;let t=this.#lu(),n=this.#tb();t.addEventListener("blur",this.#tg,{passive:!0}),t.addEventListener("focus",this.#tg,{passive:!0}),n.addEventListener("submit",this.#tg,{passive:!0}),n.addEventListener("input",this.#tf,{passive:!0})}})],rH)],a7=[],ie=HTMLElement,(class extends ie{static{a9=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ie[Symbol.metadata]??null):void 0;rr(null,a6={value:a9},a8,{kind:"class",name:a9.name,metadata:e},null,a7),a9=a6.value,e&&Object.defineProperty(a9,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(a9,a7)}#lh=rC(()=>this.shadowRoot,"#textarea");get value(){return this.#lh().value}set value(e){this.#lh().value=e}addText(e){let{text:t}=e,n=this.#lh(),l=n.selectionStart;if(null===l)n.value=t;else{let e=n.value;n.value=e.slice(0,l)+t+e.slice(l)}}setValue(e){let t,n=this.#lh();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}sendDelEvent(e){let{action:t,length:n}=e,l=this.#lh();1===t&&(n=1);let a=l.selectionStart;if(null===a){let e=l.value;l.value=l.value.substring(0,e.length-n)}else{let e=l.value;l.value=e.slice(0,a-n)+e.slice(a)}}select(){let e=this.#lh();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#lh().setSelectionRange(e.selectionStart,e.selectionEnd)}}),ia=[ru("x-view",[rS])],ii=[],ir=HTMLElement,(class extends ir{static{il=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ir[Symbol.metadata]??null):void 0;rr(null,it={value:il},ia,{kind:"class",name:il.name,metadata:e},null,ii),il=it.value,e&&Object.defineProperty(il,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(il,ii)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(rA.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[rE]=this}),iu=[ru("x-blur-view",[rS,(id=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;is=[rw("blur-radius",!0)],rr(this,io={value:ro(function(e){e?(e=`blur(${parseFloat(e)}px)`,this.#lf().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#lf().innerHTML=""},"#handleBlurRadius")},is,{kind:"method",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eQ in e,get:e=>e.#eQ},metadata:e},null,id),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#L=rs(this,id);#lf=rC(()=>this.#L.shadowRoot,"#dynamic-style");get #eQ(){return io.value}constructor(e){this.#L=e}})],'<style id="dynamic-style"></style><slot></slot>')],im=[],ip=HTMLElement,(class extends ip{static{ic=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ip[Symbol.metadata]??null):void 0;rr(null,ih={value:ic},iu,{kind:"class",name:ic.name,metadata:e},null,im),ic=ih.value,e&&Object.defineProperty(ic,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(ic,im)}}),ix=[ru("x-viewpager-ng",[rS,(iE=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iv=[ry("change")],ig=[ry("offsetchange")],rr(this,ib={value:ro(function(e){this.#ly=e,this.#lE()},"#enableChangeEvent")},iv,{kind:"method",name:"#enableChangeEvent",static:!1,private:!0,access:{has:e=>#lS in e,get:e=>e.#lS},metadata:e},null,iE),rr(this,iy={value:ro(function(e){this.#ly=e,this.#lE()},"#enableOffsetChangeEvent")},ig,{kind:"method",name:"#enableOffsetChangeEvent",static:!1,private:!0,access:{has:e=>#lw in e,get:e=>e.#lw},metadata:e},null,iE),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=rs(this,iE);#lx=!1;#x=!1;#lC=0;#Y;constructor(e){this.#L=e}#Z=rC(()=>this.#L.shadowRoot,"#content");#lT=()=>{if(!this.#x)return;let e=this.#Z(),t=this.#L.clientWidth,n=e.scrollLeft;this.#ly&&!rv&&(clearTimeout(this.#Y),this.#Y=setTimeout(()=>{this.#lO()},100)),this.#L.dispatchEvent(new CustomEvent("offsetchange",{...rp,detail:{offset:n/t}}))};#lO=()=>{if(this.#x){let e=this.#Z(),t=this.#L.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#lC&&(this.#L.dispatchEvent(new CustomEvent("change",{...rp,detail:{index:n,isDragged:this.#lx}})),this.#lC=n)}};#lI=()=>{this.#lx=!0};#lL=()=>{this.#lx=!1};#ly=!1;get #lS(){return ib.value}#lk=!1;get #lw(){return iy.value}#lE(){let e=this.#Z();this.#lk||this.#ly?e.addEventListener("scroll",this.#lT,{passive:!0}):e.removeEventListener("scroll",this.#lT),rv&&this.#ly?e.addEventListener("scrollend",this.#lO,{passive:!0}):e.removeEventListener("scrollend",this.#lO)}connectedCallback(){this.#x=!0;let e=this.#Z();this.#L.addEventListener("touchstart",this.#lI,{passive:!0}),e.addEventListener("touchend",this.#lL,{passive:!0}),e.addEventListener("touchcancel",this.#lL,{passive:!0})}dispose(){let e=this.#Z();e.removeEventListener("scroll",this.#lT),e.removeEventListener("scrollend",this.#lO)}})],rj)],iC=[],iT=HTMLElement,(class extends iT{static{iw=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(iT[Symbol.metadata]??null):void 0;rr(null,iS={value:iw},ix,{kind:"class",name:iw.name,metadata:e},null,iC),iw=iS.value,e&&Object.defineProperty(iw,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 l=this.shadowRoot.children.item(2),a=l.clientWidth*t;l.scrollTo({left:a,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),l=()=>{0===n.clientWidth?requestAnimationFrame(l):this.selectTab({index:t,smooth:!1})};rc(l)}}get[rg](){return this}static{rs(iw,iC)}}),iL=[ru("x-viewpager-item-ng",[rS])],ik=[],iA=HTMLElement,(class extends iA{static{iI=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(iA[Symbol.metadata]??null):void 0;rr(null,iO={value:iI},iL,{kind:"class",name:iI.name,metadata:e},null,ik),iI=iO.value,e&&Object.defineProperty(iI,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(iI,ik)}}),iR=[ru("list-item",[rS])],i_=[],iN=HTMLElement,class extends iN{static{iP=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(iN[Symbol.metadata]??null):void 0;rr(null,iM={value:iP},iR,{kind:"class",name:iP.name,metadata:e},null,i_),iP=iM.value,e&&Object.defineProperty(iP,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),rs(iP,i_)}};let r7=function(e,t,n){let l,a,i,r,s=0;var o=function(){s=n?.leading===!1?0:new Date().getTime(),l=null,r=e.apply(a,i),l||(a=i=null)};return function(){var d=new Date().getTime();s||n?.leading!==!1||(s=d);var h=t-(d-s);return a=this,i=arguments,h<=0||h>t?(l&&(clearTimeout(l),l=null),s=d,r=e.apply(a,i),l||(a=i=null)):l||n?.trailing===!1||(l=setTimeout(o,h)),r}},se="waterfall-slot",st="waterfall-style";rl=[ru("x-list",[rS,(iH=[],ij=[],iU=[],iV=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iD=[rw("sticky-offset",!0)],iF=[rw("span-count",!0),rw("column-count",!0)],rr(null,null,iD,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#lA in e,get:e=>e.#lA,set:(e,t)=>{e.#lA=t}},metadata:e},iH,ij),rr(null,null,iF,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#lM in e,get:e=>e.#lM,set:(e,t)=>{e.#lM=t}},metadata:e},iU,iV),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;#lA=rs(this,iH,rT(()=>this.#L,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#lM=(rs(this,ij),rs(this,iU,rT(()=>this.#L,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){rs(this,iV),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({index:t})};rc(n)}}}),(iJ=[],iQ=[],iZ=[],i0=[],i1=[],i2=[],i3=[],i4=[],i5=[],i6=[],i9=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iz=[ry("scrolltoupper")],iW=[rw("upper-threshold-item-count",!0)],i$=[ry("scrolltolower")],iX=[rw("lower-threshold-item-count",!0)],iK=[ry("lynxscroll"),ry("lynxscrollend"),ry("snap")],iG=[ry("scrolltoupperedge")],iY=[ry("scrolltoloweredge")],rr(this,iB={value:ro(function(e,t){let n=null!==t?parseFloat(t):0,l=0===n?this.#ee():this.#L.children[n-1];l&&this.#lP?.unobserve(l);let a=null!==e?parseFloat(e):0,i=0===a?this.#ee():this.#L.children[a-1];i&&this.#lP?.observe(i)},"#handleUpperThresholdItemCountChange")},iW,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#lR in e,get:e=>e.#lR},metadata:e},null,iJ),rr(this,iq={value:ro(function(e,t){let n=null!==t?parseFloat(t):0,l=0===n?this.#et():this.#L.children[this.#L.children.length-n];l&&this.#l_?.unobserve(l);let a=null!==e?parseFloat(e):0,i=0===a?this.#et():this.#L.children[this.#L.children.length-a];i&&this.#l_?.observe(i)},"#handleLowerThresholdItemCountChange")},iX,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#lN in e,get:e=>e.#lN},metadata:e},null,iJ),rr(null,null,iz,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#lD in e,get:e=>e.#lD,set:(e,t)=>{e.#lD=t}},metadata:e},iQ,iZ),rr(null,null,i$,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#lF in e,get:e=>e.#lF,set:(e,t)=>{e.#lF=t}},metadata:e},i0,i1),rr(null,null,iK,{kind:"field",name:"#handleScrollEventsSwitches",static:!1,private:!0,access:{has:e=>#eh in e,get:e=>e.#eh,set:(e,t)=>{e.#eh=t}},metadata:e},i2,i3),rr(null,null,iG,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#lH in e,get:e=>e.#lH,set:(e,t)=>{e.#lH=t}},metadata:e},i4,i5),rr(null,null,iY,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#lj in e,get:e=>e.#lj,set:(e,t)=>{e.#lj=t}},metadata:e},i6,i9),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=rs(this,iJ);#lU=rC(()=>this.#L.shadowRoot,"#content");#lP;#l_;#lV;#J=0;#Q=0;#lz=!1;#Y;#ee=rC(()=>this.#L.shadowRoot,"#upper-threshold-observer");#et=rC(()=>this.#L.shadowRoot,"#lower-threshold-observer");#el(){let e=null!==this.#L.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:l,scrollWidth:a}=this.#lU(),i={scrollTop:t,scrollLeft:n,scrollHeight:l,scrollWidth:a,deltaX:n-this.#J,deltaY:t-this.#Q,attachedCells:e?this.#L.getVisibleCells():void 0};return this.#J=n,this.#Q=t,i}#lW=e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...rp,detail:this.#el()}))};#lD=rs(this,iQ,e=>{if(e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#tI.scrolltoupper=e,e){this.#lP||(this.#lP=new IntersectionObserver(this.#lW,{root:this.#lU()})),this.#lV||(this.#lV=new MutationObserver(this.#lB));let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#ee():this.#L.children[t-1];n&&this.#lP.observe(n),this.#lV.observe(this.#L,{childList:!0})}else this.#lP&&(this.#lP.disconnect(),this.#lP=void 0),this.#lV&&(this.#lV.disconnect(),this.#lV=void 0)});get #lR(){return iB.value}#l$=(rs(this,iZ),e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...rp,detail:this.#el()}))});#tI={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#lF=rs(this,i0,e=>{if(this.#tI.scrolltolower=e,e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),e){this.#l_||(this.#l_=new IntersectionObserver(this.#l$,{root:this.#lU()})),this.#lV||(this.#lV=new MutationObserver(this.#lB));let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#et():this.#L.children[this.#L.children.length-t];n&&this.#l_.observe(n),this.#lV.observe(this.#L,{childList:!0})}else this.#l_&&(this.#l_.disconnect(),this.#l_=void 0),this.#lV&&(this.#lV.disconnect(),this.#lV=void 0)});get #lN(){return iq.value}#lB=(rs(this,i1),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tI.scrolltolower){this.#l_&&(this.#l_.disconnect(),this.#l_=void 0),this.#l_=new IntersectionObserver(this.#l$,{root:this.#lU()});let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#et():this.#L.children[this.#L.children.length-t];n&&this.#l_.observe(n)}if(null!==this.#L.getAttribute("x-enable-scrolltoupper-event")){this.#lP&&(this.#lP.disconnect(),this.#lP=void 0),this.#lP=new IntersectionObserver(this.#lW,{root:this.#lU()});let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#ee():this.#L.children[t-1];n&&this.#lP.observe(n)}}});#lX=null;#er=()=>{this.#lz&&!rv&&(clearTimeout(this.#Y),this.#Y=setTimeout(()=>{this.#eo()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...rp,detail:this.#el()}))};#eh=rs(this,i2,(e,t)=>{this.#tI[t]=e;let{lynxscroll:n,lynxscrollend:l,snap:a}=this.#tI,i=this.#L.getAttribute("scroll-event-throttle");this.#lz=null!==l||null!==a;let r=this.#lU();if(this.#lX&&r.removeEventListener("scroll",this.#lX),null!==scroll||this.#lz){let e=null!==i?parseFloat(i):0,t=r7(this.#er,e,{leading:!0,trailing:!1});this.#lX=t,r.addEventListener("scroll",this.#lX),this.#J=0,this.#Q=0}rv&&this.#lz?r.addEventListener("scrollend",this.#eo):r.removeEventListener("scrollend",this.#eo)});#en=(rs(this,i3),e=>{let{isIntersecting:t,target:n}=e[0],l=n.id;t&&("upper-threshold-observer"===l?this.#L.dispatchEvent(new CustomEvent("scrolltoupperedge",{...rp,detail:this.#el()})):"lower-threshold-observer"===l&&this.#L.dispatchEvent(new CustomEvent("scrolltoloweredge",{...rp,detail:this.#el()})))});#lH=rs(this,i4,e=>{e?this.#L.setAttribute("x-enable-scrolltoupperedge-event",""):this.#L.removeAttribute("x-enable-scrolltoupperedge-event"),this.#lq(e)});#lq=(rs(this,i5),rL(this.#lU,this.#ee,this.#en));#lj=rs(this,i6,e=>{e?this.#L.setAttribute("x-enable-scrolltoloweredge-event",""):this.#L.removeAttribute("x-enable-scrolltoloweredge-event"),this.#lK(e)});#lK=(rs(this,i9),rL(this.#lU,this.#et,this.#en));#eo=()=>{let e=this.#L.getAttribute("item-snap");if(this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...rp})),null!==e){let e=Array.from(this.#L.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#lU().scrollTop,n=this.#lU().scrollLeft,l=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#L.dispatchEvent(new CustomEvent("snap",{...rp,detail:{position:l&&e.indexOf(l),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#L=e}}),(re=[],class{static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i8=[rw("list-type",!0)],rr(this,i7={value:ro(function(e){if("waterfall"===e){let e=parseFloat(this.#L.getAttribute("span-count")||this.#L.getAttribute("column-count")||"")||1,t=this.#L.getAttribute("scroll-orientation")||"vertical";this.#lG(),this.#F||this.#lY(e,"vertical"===t),this.#lV||(this.#lV=new MutationObserver(n=>{let l=n?.[0];l?.type==="childList"&&this.#lY(e,"vertical"===t)}),this.#lV.observe(this.#L,{childList:!0}))}else{this.#F?.disconnect(),this.#F=void 0,this.#lV?.disconnect(),this.#lV=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()}},"#handlerListType")},i8,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#lJ in e,get:e=>e.#lJ},metadata:e},null,re),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#L=rs(this,re);#lU=rC(()=>this.#L.shadowRoot,"#content");#lQ=rC(()=>this.#L.shadowRoot,'div[part="lower-threshold-observer"]');#F;#lV;#lG=()=>{let e=document.createElement("slot");e.setAttribute("name",`${se}`),this.#L.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#lZ=(e,t)=>{let n=Array(e).fill(0);for(let l=0;l<this.#L.children.length;l++){let a=this.#L.children[l],i=getComputedStyle(a).getPropertyValue("--list-main-axis-gap"),r=getComputedStyle(a).getPropertyValue("--list-cross-axis-gap"),s=t?a.getBoundingClientRect().height+parseFloat(i):a.getBoundingClientRect().width+parseFloat(i);if(null!==a.getAttribute("full-span")){let l=n[0];for(let t=1;t<e;t++)n[t]>l&&(l=n[t]);for(let t=0;t<e;t++)n[t]=l+s;t?(a.setAttribute(`${st}-left`,"0"),a.setAttribute(`${st}-top`,`${l}px`)):(a.setAttribute(`${st}-left`,`${l}px`),a.setAttribute(`${st}-top`,"0"))}else{let l=0,i=n[0];for(let t=1;t<e;t++)n[t]<i&&(l=t,i=n[t]);let o=`calc(${l} * (100% - ${r} * (${e} - 1))/ ${e} + ${Math.max(0,l)} * ${r})`;t?(a.setAttribute(`${st}-left`,o),a.setAttribute(`${st}-top`,`${i}px`)):(a.setAttribute(`${st}-left`,`${i}px`),a.setAttribute(`${st}-top`,o)),n[l]+=s}}for(let e=0;e<this.#L.children.length;e++){let t=this.#L.children[e];t.style.setProperty("left",t.getAttribute(`${st}-left`)),t.style.setProperty("top",t.getAttribute(`${st}-top`)),t.setAttribute("slot",se)}let l=this.#L.getAttribute("x-enable-scrolltolower-event");if(null!==l&&"false"!==l){let e=this.#lQ(),t=this.#L.getAttribute("scroll-orientation")||"vertical",n=this.#lU();"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollHeight-1)}px`),e.style.setProperty("right","unset"))}};constructor(e){this.#L=e}#lY=(e,t)=>{this.#F?.disconnect(),this.#F=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#lZ(e,t)})}),Array.from(this.#L.children).forEach(e=>{this.#F?.observe(e)})};get #lJ(){return i7.value}})],r_)],ra=[],ri=HTMLElement,class extends ri{static{rn=this}static{let e="function"==typeof Symbol&&Symbol.metadata?Object.create(ri[Symbol.metadata]??null):void 0;rr(null,rt={value:rn},rl,{kind:"class",name:rn.name,metadata:e},null,ra),rn=rt.value,e&&Object.defineProperty(rn,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#lU=rC(()=>this.shadowRoot,"#content");#l0={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#l1={};get scrollTop(){return this.#lU().scrollTop}set scrollTop(e){this.#lU().scrollTop=e}get scrollLeft(){return this.#lU().scrollTop}set scrollLeft(e){this.#lU().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.index){if(0===e.index)this.#lU().scrollTop=0,this.#lU().scrollLeft=0;else if(e.index>0&&e.index<this.childElementCount){let n=this.children.item(e.index);n instanceof HTMLElement&&(t=t?{left:n.offsetLeft+t.left,top:n.offsetTop+t.top}:{left:n.offsetLeft,top:n.offsetTop})}}t&&this.#lU().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#l2=e=>{if(!this.#l0.isScrolling)return;this.#l0.lastTimestamp||(this.#l0.lastTimestamp=e);let t=this.#lU(),n=(e-this.#l0.lastTimestamp)/1e3*this.#l0.rate;t.scrollBy({left:n,top:n,behavior:"smooth"}),this.#l0.lastTimestamp=e,t.scrollTop+t.clientHeight>=t.scrollHeight&&this.#l0.autoStop?(t.scrollTop=t.scrollHeight-t.clientHeight,this.#l0.isScrolling=!1):requestAnimationFrame(this.#l2)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#l0={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop},requestAnimationFrame(this.#l2)}else this.#l0.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#l1),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)}})};#l3=()=>Object.values(this.#l1).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#l4=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",l="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#l3();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...rp,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#l3()}}))},100);return}if(l){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#l1[n]&&delete this.#l1[n]:this.#l1[n]=e.target;return}};connectedCallback(){this.#lU().addEventListener("contentvisibilityautostatechange",this.#l4,{passive:!0})}static{rs(rn,ra)}}},67:function(e,t,n){n.a(e,async function(e,t){try{var l=n(568);n(704),n(566),n(997);var a=e([l]);l=(a.then?(await a)():a)[0];let r=document.getElementById("qr-scanner"),s=document.getElementById("lynx-view"),o=document.getElementById("back-button"),d=document.getElementById("nav"),h="preinstalled/homepage.json";o.addEventListener("click",()=>{i(h)});let c=new QrScanner(r,e=>{console.log("qr",e),s.style.visibility="visible",c.stop();let t=e.data;i(t)},{highlightScanRegion:!0,highlightCodeOutline:!0});function i(e){let t=window.matchMedia("(prefers-color-scheme: dark)").matches?"Dark":"Light";if(s.onNativeModulesCall=(e,t)=>{"openScan"===e?(s.style.visibility="hidden",c.start()):"openSchema"===e&&i(t)},s.globalProps={theme:t},e===h)d.style.display="none",s.url=e,d.style.setProperty("--bar-color",null);else{let{searchParams:t}=new URL(e);t.has("bar_color")&&d.style.setProperty("--bar-color",`#${t.get("bar_color")}`),t.has("fullscreen")&&"true"===t.get("fullscreen")?d.style.display="none":d.style.display="flex",s.url=e}}i(h),window.addEventListener("message",e=>{if(e.data&&"setLynxViewUrl"===e.data.method&&e.data.url){let t=s.parentElement;s.remove(),(s=document.createElement("lynx-view")).setAttribute("style","flex: 0 1 100vh; height:100vh;width:100vw;"),t.append(s),i(e.data.url)}}),t()}catch(e){t(e)}})}},t={};function n(l){var a=t[l];if(void 0!==a)return a.exports;var i=t[l]={exports:{}};return e[l](i,i.exports,n),i.exports}n.m=e,(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",l="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",a=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},i=n=>n.map(n=>{if(null!==n&&"object"==typeof n){if(n[e])return n;if(n.then){var i=[];i.d=0,n.then(e=>{r[t]=e,a(i)},e=>{r[l]=e,a(i)});var r={};return r[e]=e=>e(i),r}}var s={};return s[e]=function(){},s[t]=n,s});n.a=(n,r,s)=>{s&&((o=[]).d=-1);var o,d,h,c,u=new Set,m=n.exports,p=new Promise((e,t)=>{c=t,h=e});p[t]=m,p[e]=e=>{o&&e(o),u.forEach(e),p.catch(function(){})},n.exports=p,r(n=>{d=i(n);var a,r=()=>d.map(e=>{if(e[l])throw e[l];return e[t]}),s=new Promise(t=>{(a=()=>t(r)).r=0;var n=e=>e!==o&&!u.has(e)&&(u.add(e),e&&!e.d&&(a.r++,e.push(a)));d.map(t=>t[e](n))});return a.r?s:r()},e=>(e?c(p[l]=e):h(m),a(o))),o&&o.d<0&&(o.d=0)}})(),n.d=(e,t)=>{for(var l in t)n.o(t,l)&&!n.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,l)=>(n.f[l](e,t),t),[])),n.u=e=>"static/js/async/"+e+".js",n.miniCssF=e=>""+e+".css",n.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="@lynx-js/web-explorer:";n.l=function(l,a,i,r){if(e[l])return void e[l].push(a);if(void 0!==i)for(var s,o,d=document.getElementsByTagName("script"),h=0;h<d.length;h++){var c=d[h];if(c.getAttribute("src")==l||c.getAttribute("data-webpack")==t+i){s=c;break}}s||(o=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=l),e[l]=[a];var u=function(t,n){s.onerror=s.onload=null,clearTimeout(m);var a=e[l];if(delete e[l],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach(function(e){return e(n)}),t)return t(n)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),o&&document.head.appendChild(s)}})(),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.rv=()=>"1.3.11",(()=>{n.g.importScripts&&(e=n.g.location+"");var e,t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var l=t.getElementsByTagName("script");if(l.length)for(var a=l.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=l[a--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");n.p=(e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../"})(),(()=>{n.b=document.baseURI||self.location.href;var e={980:0};n.f.j=function(t,l){var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)l.push(a[2]);else{var i=new Promise((n,l)=>a=e[t]=[n,l]);l.push(a[2]=i);var r=n.p+n.u(t),s=Error();n.l(r,function(l){if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=l&&("load"===l.type?"missing":l.type),r=l&&l.target&&l.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,a[1](s)}},"chunk-"+t,t)}};var t=(t,l)=>{var a,i,[r,s,o]=l,d=0;if(r.some(t=>0!==e[t])){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);o&&o(n)}for(t&&t(l);d<r.length;d++)i=r[d],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},l=globalThis.webpackChunk_lynx_js_web_explorer=globalThis.webpackChunk_lynx_js_web_explorer||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})(),n.ruid="bundler=rspack@1.3.11",n(67)})();
|
|
307
|
+
></div>`)],W=[],$=HTMLElement,e=class extends ${static{z=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create($[Symbol.metadata]??null):void 0;i1(null,U={value:z},V,{kind:"class",name:z.name,metadata:t},null,W),e=z=U.value,t&&Object.defineProperty(z,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#ei;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.#ei),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#ei=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[su](){return this}static{i2(z,W)}},e=z;let sT=Symbol("__src"),sO=Symbol("__src"),sI={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},sL={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=l||(l={}))[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 sk=(K=[],J=[],Z=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;B=[sl("src",!0)],q=[sl("loop",!0)],Y=[sl("pause-on-hide",!0)],i1(this,X={value:i3(function(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#I.dispatchEvent(new CustomEvent("error",{...i5,detail:{code:l.SrcError,msg:"",from:"res loader",currentSrcID:this.#I[sT]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#I.dispatchEvent(new CustomEvent("error",{...i5,detail:{code:l.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#I[sT]?.id}})),this.#I[sT]=t,this.#I[sO]=void 0,this.#I.stop()},"#handleSrc")},B,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,K),i1(this,G={value:i3(function(e){null!==e?document.addEventListener("visibilitychange",this.#er,{passive:!0}):document.removeEventListener("visibilitychange",this.#er)},"#handlePauseOnHide")},Y,{kind:"method",name:"#handlePauseOnHide",static:!1,private:!0,access:{has:e=>#eo in e,get:e=>e.#eo},metadata:e},null,K),i1(null,null,q,{kind:"field",name:"#handleLoop",static:!1,private:!0,access:{has:e=>#ed in e,get:e=>e.#ed,set:(e,t)=>{e.#ed=t}},metadata:e},J,Z),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#I=i2(this,K);#ec=si(()=>this.#I.shadowRoot,"#audio");#eh=sC(this.#ec,"src");get #es(){return X.value}#ed=i2(this,J,sC(this.#ec,"loop"));#er=(i2(this,Z),()=>{"hidden"===document.visibilityState&&this.#I.pause()});get #eo(){return G.value}constructor(e){this.#I=e}});class sA{static observedAttributes=[];#I;#eu;#ec=si(()=>this.#I.shadowRoot,"#audio");#em=e=>{let t=Number(this.#I.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#eu=setInterval(()=>{this.#I.dispatchEvent(new CustomEvent("timeupdate",{...i5,detail:{currentTime:this.#ec().currentTime,currentSrcID:this.#I[sT]?.id}}))},n);let l=sL[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...i5,detail:{code:l?.code,type:l?.type,currentSrcID:this.#I[sT]?.id}}))};#ep=e=>{clearInterval(this.#eu);let t=sL[e.type];this.#I.dispatchEvent(new CustomEvent("playbackstatechanged",{...i5,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sT]?.id}}))};#ev=e=>{let t=sI[e.type];this.#I.dispatchEvent(new CustomEvent("loadingstatechanged",{...i5,detail:{code:t?.code,type:t?.type,currentSrcID:this.#I[sT]?.id}}))};#eb=e=>{this.#ev(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?l.PlayerLoadingError:l.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=l.PlayerLoadingError),this.#I.dispatchEvent(new CustomEvent("error",{...i5,detail:{code:n,msg:"",from:"player",currentSrcID:this.#I[sT]?.id}}))};#eg=()=>{let e=null!==this.#I.getAttribute("loop");this.#I.dispatchEvent(new CustomEvent("finished",{...i5,detail:{loop:e,currentSrcID:this.#I[sT]?.id}}))};constructor(e){this.#I=e}connectedCallback(){let e=this.#ec();e.addEventListener("play",this.#em,{passive:!0}),e.addEventListener("pause",this.#ep,{passive:!0}),e.addEventListener("ended",this.#eg,{passive:!0}),e.addEventListener("loadstart",this.#ev,{passive:!0}),e.addEventListener("canplay",this.#ev,{passive:!0}),e.addEventListener("stalled",this.#ev,{passive:!0}),e.addEventListener("error",this.#eb,{passive:!0})}}et=[i9("x-audio-tt",[sn,sk,sA],'<audio id="audio"></audio>')],en=[],el=HTMLElement,(class extends el{static{ee=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(el[Symbol.metadata]??null):void 0;i1(null,Q={value:ee},et,{kind:"class",name:ee.name,metadata:e},null,en),ee=Q.value,e&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ee,en)}#ef=si(()=>this.shadowRoot,"#audio");#ec=si(()=>this.shadowRoot,"#audio");#eh=sC(this.#ec,"src");[sT];[sO];#ey=()=>{let e,t=this[sT];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[sO]=new Promise(async(n,a)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...i5,detail:{code:0,type:"loading",currentSrcID:t.id}}));let i=await fetch(t.play_url,{headers:e});i.ok||(this.dispatchEvent(new CustomEvent("error",{...i5,detail:{code:l.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),a()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...i5,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await i.blob(),r=URL.createObjectURL(s);this.#eh(r),n()})}};play(){return this[sO]||this.#ey(),this[sO]?.then(()=>{let e=this.#ef();e.currentTime=0,e.play()}),{currentSrcID:this[sT]?.id,loadingSrcID:""}}stop(){let e=this.#ef(),t=sL.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...i5,detail:{code:t?.code,type:t?.type,currentSrcID:this[sT]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[sT]?.id}}pause(){return this.#ef().pause(),{currentSrcID:this[sT]?.id}}resume(){return this.#ef().play(),{currentSrcID:this[sT]?.id,loadingSrcID:""}}seek(e){return this.#ef().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...i5,detail:{seekresult:1,currentSrcID:this[sT]?.id}})),{currentSrcID:this[sT]?.id}}mute(e){return this.#ef().muted=e.mute,{currentSrcID:this[sT]?.id}}playerInfo(){var e;let t=this.#ef(),n=t.buffered,l=n.end(n.length-1);return{currentSrcID:this[sT]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:l}}prepare(){this[sO]||this.#ey()}setVolume(e){return this.#ef().volume=e.volume,{code:1}}}),ev=[i9("x-canvas",[sn,(er=[],eo=[],ed=[],ec=[],eh=[],eu=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ea=[sl("name",!0)],ei=[sl("height",!0)],es=[sl("width",!0)],i1(null,null,ea,{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},er,eo),i1(null,null,ei,{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},ed,ec),i1(null,null,es,{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},eh,eu),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#I;#k;#eE=si(()=>this.#I.shadowRoot,"#canvas");constructor(e){this.#I=e}handleName=i2(this,er,sC(this.#eE,"name"));handleHeight=(i2(this,eo),i2(this,ed,sC(this.#eE,"height")));handleWidth=(i2(this,ec),i2(this,eh,sC(this.#eE,"width")));#eS=(i2(this,eu),e=>{let{contentRect:t}=e[0],n=this.#I.shadowRoot.firstElementChild;if(n){let{height:e,width:l}=t;e*=window.devicePixelRatio,l*=window.devicePixelRatio;let a=new CustomEvent("resize",{...i5,detail:{height:e,width:l}});a.height=e,a.width=l,n.dispatchEvent(a)}});#ew(){this.#k||(this.#k=new ResizeObserver(this.#eS),this.#k.observe(this.#I))}#ex(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#ew()}dispose(){this.#ex()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],eb=[],eg=HTMLElement,class extends eg{static{ep=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eg[Symbol.metadata]??null):void 0;i1(null,em={value:ep},ev,{kind:"class",name:ep.name,metadata:e},null,eb),ep=em.value,e&&Object.defineProperty(ep,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ep,eb)}};let sP=(ew=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ef=[sl("granularity",!0)],eE=[se("offset")],i1(this,ey={value:i3(function(e){e&&""!==e?this.#eC=parseFloat(e):this.#eC=.01},"#handleGranularity")},ef,{kind:"method",name:"#handleGranularity",static:!1,private:!0,access:{has:e=>#eT in e,get:e=>e.#eT},metadata:e},null,ew),i1(this,eS={value:i3(function(e){e?this.#I.addEventListener("scroll",this.#Q,{passive:!0}):this.#I.removeEventListener("scroll",this.#Q)},"#enableOffsetEvent")},eE,{kind:"method",name:"#enableOffsetEvent",static:!1,private:!0,access:{has:e=>#eO in e,get:e=>e.#eO},metadata:e},null,ew),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i2(this,ew);#eC=.01;#eI=0;constructor(e){this.#I=e}static observedAttributes=["granularity"];get #eT(){return ey.value}get #eO(){return eS.value}#Q=()=>{let e=this.#I.scrollTop;(Math.abs(this.#eI-e)>this.#eC||0===this.#I.scrollTop||1>=Math.abs(this.#I.scrollHeight-this.#I.clientHeight-this.#I.scrollTop))&&(this.#eI=e,this.#I.dispatchEvent(new CustomEvent("offset",{...i5,detail:{offset:e,height:this.#I[sM]}})))}}),sM=Symbol("scrollableLength"),sR=Symbol("isHeaderShowing"),sN=Symbol("resizeObserver"),sD=Symbol("slotKid");eT=[i9("x-foldview-ng",[sn,sP])],eO=[],eI=HTMLElement,class extends eI{static{eC=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;i1(null,ex={value:eC},eT,{kind:"class",name:eC.name,metadata:e},null,eO),eC=ex.value,e&&Object.defineProperty(eC,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sD];[sN]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eL=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ek=t.contentRect.height);this[sD]&&(this[sD].style.top=`${this.#eL-this.#ek}px`)});#eL=0;#ek=0;get[sM](){return this.#eL-this.#ek}get[sR](){return this[sM]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sM]?e=this[sM]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,l=parseFloat(t);this.scrollTo({top:l,behavior:n?"smooth":"instant"})}get[su](){return this}disconnectedCallback(){this[sN]?.disconnect(),this[sN]=void 0}static{i2(eC,eO)}};let sF=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};eA=[i9("x-foldview-header-ng",[sn])],eP=[],eM=HTMLElement,(class extends eM{static{ek=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eM[Symbol.metadata]??null):void 0;i1(null,eL={value:ek},eA,{kind:"class",name:ek.name,metadata:e},null,eP),ek=eL.value,e&&Object.defineProperty(ek,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ek,eP)}#eA=void 0;connectedCallback(){let e=sF(this,"X-FOLDVIEW-NG");this.#eA=e?.[sN],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}}),eD=[i9("x-foldivew-slot-drag-ng",[sn])],eF=[],eH=HTMLElement,class extends eH{static{eN=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eH[Symbol.metadata]??null):void 0;i1(null,eR={value:eN},eD,{kind:"class",name:eN.name,metadata:e},null,eF),eN=eR.value,e&&Object.defineProperty(eN,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(eN,eF)}};class sH{#eP=0;#eM=new WeakMap;#eR;#eN=0;#eD=0;#eF=null;#eH;#ej=0;#I;static observedAttributes=[];constructor(e){this.#I=e,this.#I.addEventListener("touchmove",this.#e_,{passive:!1}),this.#I.addEventListener("touchstart",this.#eU,{passive:!0}),this.#I.addEventListener("touchend",this.#ez,{passive:!0})}#eV(e){return this.#eR?.find(t=>{if(t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,l=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||l}return!1})}#eW(e,t){let n=this.#eM.get(e)??0;n+=t,this.#eM.set(e,n),e.scrollTop=n}#e_=e=>{let t=this.#e$(),{pageY:n,pageX:l}=e.touches.item(0),a=this.#eN-n;if(null===this.#eF){let e=this.#eD-l;this.#eF=Math.abs(a)>Math.abs(e)}if(!1===this.#eF)return;let i=this.#eV(a);t&&(e.cancelable&&e.preventDefault(),t[sR]&&a>0||a<0&&!i||!t[sR]&&!i?(t.scrollBy({top:a,behavior:"smooth"}),this.#eP+=a,t.scrollTop=this.#eP,this.#eH=t):i&&(this.#eH=i,this.#eW(i,a))),this.#eN=n,this.#ej=a};#e$(){let e=this.#I.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#eU=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#eR=document.elementsFromPoint(t,n).filter(e=>this.#I.contains(e)),this.#eN=n,this.#eD=t,this.#eP=this.#e$()?.scrollTop??0,this.#eR))this.#eM.set(e,e.scrollTop);this.#eF=null,this.#eH=void 0};#ez=()=>{if(this.#eF=null,this.#eH){let e=this.#e$();(this.#eH!==e||e[sR])&&this.#eH.scrollBy({top:4*this.#ej,behavior:"smooth"})}}}eU=[i9("x-foldview-slot-ng",[sn,sH])],ez=[],eV=HTMLElement,(class extends eV{static{e_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eV[Symbol.metadata]??null):void 0;i1(null,ej={value:e_},eU,{kind:"class",name:e_.name,metadata:e},null,ez),e_=ej.value,e&&Object.defineProperty(e_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(e_,ez)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sD]=this)}}),eB=[i9("x-foldview-toolbar-ng",[sn])],eX=[],eq=HTMLElement,class extends eq{static{e$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eq[Symbol.metadata]??null):void 0;i1(null,eW={value:e$},eB,{kind:"class",name:e$.name,metadata:e},null,eX),e$=eW.value,e&&Object.defineProperty(e$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(e$,eX)}#eA=void 0;connectedCallback(){let e=sF(this,"X-FOLDVIEW-NG");this.#eA=e?.[sN],this.#eA?.observe(this)}dispose(){this.#eA?.unobserve(this)}};let sj=(e2=[],e3=[],e8=[],e4=[],e6=[],e9=[],e5=[],e7=[],te=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eK=[sl("src",!0)],eJ=[sl("placeholder",!0)],eQ=[sl("blur-radius",!0)],e0=[sl("crossorigin",!0)],e1=[sl("referrerpolicy",!0)],i1(this,eZ={value:i3(function(e){e&&(new Image().src=e)},"#preloadPlaceholder")},eJ,{kind:"method",name:"#preloadPlaceholder",static:!1,private:!0,access:{has:e=>#eB in e,get:e=>e.#eB},metadata:e},null,e2),i1(null,null,eK,{kind:"field",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es,set:(e,t)=>{e.#es=t}},metadata:e},e3,e8),i1(null,null,eQ,{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},e4,e6),i1(null,null,e0,{kind:"field",name:"#handleCrossorigin",static:!1,private:!0,access:{has:e=>#eq in e,get:e=>e.#eq,set:(e,t)=>{e.#eq=t}},metadata:e},e9,e5),i1(null,null,e1,{kind:"field",name:"#handleReferrerpolicy",static:!1,private:!0,access:{has:e=>#eY in e,get:e=>e.#eY,set:(e,t)=>{e.#eY=t}},metadata:e},e7,te),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#I=i2(this,e2);#eG=si(()=>this.#I.shadowRoot,"#img");#es=i2(this,e3,sC(this.#eG,"src",e=>e||this.#I.getAttribute("placeholder")));get #eB(){return eZ.value}#eX=(i2(this,e8),i2(this,e4,ss(this.#eG,"--blur-radius",void 0,!0)));#eq=(i2(this,e6),i2(this,e9,sC(this.#eG,"crossorigin")));#eY=(i2(this,e5),i2(this,e7,sC(this.#eG,"referrerpolicy")));#eK=(i2(this,te),()=>{let e=this.#eG().src,t=this.#I.getAttribute("placeholder");t&&e!==t&&(this.#eG().src=t)});constructor(e){this.#I=e,this.#eG().addEventListener("error",this.#eK)}connectedCallback(){(null===this.#I.getAttribute("src")||""===this.#I.getAttribute("src"))&&this.#es(null)}}),s_=(ti=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tt=[se("load")],tl=[se("error")],i1(this,tn={value:i3(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#enableLoadEvent")},tt,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,ti),i1(this,ta={value:i3(function(e){e?this.#eG().addEventListener("error",this.#eQ,{passive:!0}):this.#eG().removeEventListener("error",this.#eQ)},"#enableErrorEvent")},tl,{kind:"method",name:"#enableErrorEvent",static:!1,private:!0,access:{has:e=>#e0 in e,get:e=>e.#e0},metadata:e},null,ti),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i2(this,ti);#eG=si(()=>this.#I.shadowRoot,"#img");get #eZ(){return tn.value}get #e0(){return ta.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...i5,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};#eQ=()=>{this.#I.dispatchEvent(new CustomEvent("error",{...i5,detail:{}}))};constructor(e){this.#I=e}});to=[i9("filter-image",[sn,sj,(eY=[],eG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1(null,null,[sl("drop-shadow",!0)],{kind:"field",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX,set:(e,t)=>{e.#eX=t}},metadata:e},eY,eG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#I;#eG=si(()=>this.#I.shadowRoot,"#img");#eX=i2(this,eY,ss(this.#eG,"--drop-shadow",void 0,!0));constructor(e){i2(this,eG),this.#I=e}}),s_],sb({}))],td=[],tc=HTMLElement,(class extends tc{static{tr=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tc[Symbol.metadata]??null):void 0;i1(null,ts={value:tr},to,{kind:"class",name:tr.name,metadata:e},null,td),tr=ts.value,e&&Object.defineProperty(tr,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(tr,td)}}),tm=[i9("x-image",[sn,sj,s_],sb({}))],tp=[],tv=HTMLElement,class extends tv{static{tu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tv[Symbol.metadata]??null):void 0;i1(null,th={value:tu},tm,{kind:"class",name:tu.name,metadata:e},null,tp),tu=th.value,e&&Object.defineProperty(tu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(tu,tp)}};let sU={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};ne=[i9("x-input",[sn,(tF=[],tH=[],tj=[],t_=[],tU=[],tz=[],tV=[],tW=[],t$=[],tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tP=[sl("placeholder",!0)],tM=[sl("placeholder-color",!0)],tR=[sl("placeholder-font-family",!0)],tN=[sl("placeholder-font-size",!0)],tD=[sl("placeholder-font-weight",!0)],i1(null,null,tP,{kind:"field",name:"#handlerPlaceholder",static:!1,private:!0,access:{has:e=>#e1 in e,get:e=>e.#e1,set:(e,t)=>{e.#e1=t}},metadata:e},tF,tH),i1(null,null,tM,{kind:"field",name:"#handlerPlaceholderColor",static:!1,private:!0,access:{has:e=>#e2 in e,get:e=>e.#e2,set:(e,t)=>{e.#e2=t}},metadata:e},tj,t_),i1(null,null,tR,{kind:"field",name:"#handlerPlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#e3 in e,get:e=>e.#e3,set:(e,t)=>{e.#e3=t}},metadata:e},tU,tz),i1(null,null,tN,{kind:"field",name:"#handlerPlaceholderFontSize",static:!1,private:!0,access:{has:e=>#e8 in e,get:e=>e.#e8,set:(e,t)=>{e.#e8=t}},metadata:e},tV,tW),i1(null,null,tD,{kind:"field",name:"#handlerPlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#e4 in e,get:e=>e.#e4,set:(e,t)=>{e.#e4=t}},metadata:e},t$,tB),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"];#I;#e6=si(()=>this.#I.shadowRoot,"#input");#e1=i2(this,tF,sC(this.#e6,"placeholder"));#e2=(i2(this,tH),i2(this,tj,ss(this.#e6,"--placeholder-color",void 0,!0)));#e3=(i2(this,t_),i2(this,tU,ss(this.#e6,"--placeholder-font-family",void 0,!0)));#e8=(i2(this,tz),i2(this,tV,ss(this.#e6,"--placeholder-font-size",void 0,!0)));#e4=(i2(this,tW),i2(this,t$,ss(this.#e6,"--placeholder-font-weight",void 0,!0)));constructor(e){i2(this,tB),this.#I=e}}),(tK=[],tJ=[],tZ=[],tQ=[],t0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tX=[sl("value",!1)],tY=[sl("disabled",!0)],tG=[sl("autocomplete",!0)],i1(this,tq={value:i3(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#e6();t.value!==e&&(t.value=e)},"#handleValue")},tX,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,tK),i1(null,null,tY,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},tJ,tZ),i1(null,null,tG,{kind:"field",name:"#handleAutocomplete",static:!1,private:!0,access:{has:e=>#e7 in e,get:e=>e.#e7,set:(e,t)=>{e.#e7=t}},metadata:e},tQ,t0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#I=i2(this,tK);#e6=si(()=>this.#I.shadowRoot,"#input");get #e9(){return tq.value}#e5=i2(this,tJ,sC(this.#e6,"disabled",e=>null!==e?"":null));#e7=(i2(this,tZ),i2(this,tQ,sC(this.#e6,"autocomplete")));constructor(e){i2(this,t0),this.#I=e}}),(tw=[],tx=[],tC=[],tT=[],tO=[],tI=[],tL=[],tk=[],tA=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tb=[sl("confirm-type",!0)],tg=[sl("maxlength",!0)],tf=[sl("readonly",!0)],ty=[sl("type",!0)],tS=[sl("ios-spell-check",!0),sl("spell-check",!0)],i1(this,tE={value:i3(function(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.#te(t),this.#tt(n)},"#handleType")},ty,{kind:"method",name:"#handleType",static:!1,private:!0,access:{has:e=>#tn in e,get:e=>e.#tn},metadata:e},null,tw),i1(null,null,tb,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},tx,tC),i1(null,null,tg,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},tT,tO),i1(null,null,tf,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},tI,tL),i1(null,null,tS,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},tk,tA),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"];#I=i2(this,tw);#tr="text";#e6=si(()=>this.#I.shadowRoot,"#input");#tl=i2(this,tx,sC(this.#e6,"enterkeyhint",e=>null===e?"send":e));#ta=(i2(this,tC),i2(this,tT,sC(this.#e6,"maxlength",e=>null===e?"140":e)));#ti=(i2(this,tO),i2(this,tI,sC(this.#e6,"readonly",e=>null!==e?"":null)));#tt=(i2(this,tL),sC(this.#e6,"type"));#te=sC(this.#e6,"inputmode");get #tn(){return tE.value}#ts=i2(this,tk,sC(this.#e6,"spellcheck",e=>null===e?"false":"true"));constructor(e){i2(this,tA),this.#I=e}}),(t9=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t1=[sl("input-filter",!0),se("lynxinput")],t3=[sl("send-composing-input",!0)],t4=[se("selection")],i1(this,t2={value:i3(function(e){let t=this.#e6();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableInputEvent")},t1,{kind:"method",name:"#handleEnableInputEvent",static:!1,private:!0,access:{has:e=>#tc in e,get:e=>e.#tc},metadata:e},null,t9),i1(this,t8={value:i3(function(e){this.#th=null!==e},"#handleSendComposingInput")},t3,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,t9),i1(this,t6={value:i3(function(e){e?this.#e6().addEventListener("select",this.#tm,{passive:!0}):this.#e6().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},t4,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,t9),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i2(this,t9);#th=!1;#e6=si(()=>this.#I.shadowRoot,"#input");#tv=si(()=>this.#I.shadowRoot,"#form");get #tc(){return t2.value}get #tu(){return t8.value}#tb=e=>{let t=sU[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...i5,detail:{value:this.#e6().value}}))};#to=e=>{let t=this.#e6(),n=this.#I.getAttribute("input-filter"),l=n?t.value.replace(RegExp(n,"g"),""):t.value,a=e.isComposing;t.value=l,(!a||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...i5,detail:{value:l,textLength:l.length,cursor:t.selectionStart,isComposing:a,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#e6(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...i5,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return t6.value}#tm=()=>{let e=this.#e6();this.#I.dispatchEvent(new CustomEvent("selection",{...i5,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#e6()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#e6(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sg)],nt=[],nn=HTMLElement,(class extends nn{static{t7=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nn[Symbol.metadata]??null):void 0;i1(null,t5={value:t7},ne,{kind:"class",name:t7.name,metadata:e},null,nt),t7=t5.value,e&&Object.defineProperty(t7,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(t7,nt)}#tf=si(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#tf(),l=n.selectionStart;if(null===l)n.value=t;else{let e=n.value;n.value=e.slice(0,l)+t+e.slice(l)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#tf();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#tf();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,l=this.#tf();1===t&&(n=1);let a=l.selectionStart;if(null===a){let e=l.value;l.value=l.value.substring(0,e.length-n)}else{let e=l.value;l.value=e.slice(0,a-n)+e.slice(a)}}setInputFilter(e){this.#tf().setAttribute("pattern",e.pattern)}select(){let e=this.#tf();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#tf().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#tf().focus(e)}blur(){this.#tf().blur()}connectedCallback(){let e=this.#tf();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),nc=[i9("x-overlay-ng",[sn,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nl=[sl("events-pass-through",!0)],ni=[sl("visible",!1)],i1(this,na={value:i3(function(e){null!==e?(this.#ty().addEventListener("click",this.#tE,{passive:!1}),this.#I.addEventListener("click",this.#tE,{passive:!1})):(this.#ty().removeEventListener("click",this.#tE),this.#I.removeEventListener("click",this.#tE))},"#handleEventsPassThrough")},nl,{kind:"method",name:"#handleEventsPassThrough",static:!1,private:!0,access:{has:e=>#tS in e,get:e=>e.#tS},metadata:e},null,nr),i1(this,ns={value:i3(function(e){this.#tw=null!==e,this.#tx&&(this.#tw?(this.#ty().showModal(),this.#I.dispatchEvent(new CustomEvent("showoverlay",i5))):(this.#ty().close(),this.#I.dispatchEvent(new CustomEvent("dismissoverlay",i5))))},"#handleVisible")},ni,{kind:"method",name:"#handleVisible",static:!1,private:!0,access:{has:e=>#tC in e,get:e=>e.#tC},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#I=i2(this,nr);#tx=!!window.HTMLDialogElement;#tw=!1;constructor(e){this.#I=e}#ty=si(()=>this.#I.shadowRoot,"#dialog");get #tS(){return na.value}get #tC(){return ns.value}#tE=e=>{e.stopPropagation();let t=this.#ty();if(e.target===this.#I||e.target===t){t.close();let{clientX:n,clientY:l}=e,a=document.elementFromPoint(n,l);a?.tagName==="LYNX-VIEW"&&a.shadowRoot&&(a=a.shadowRoot.elementFromPoint(n,l)??a),a?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#tw&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#tx||(this.#ty().style.display="none")}})],sy)],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;i1(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}),i2(nd,nh)}get[st](){return this.shadowRoot.firstElementChild}};class sz extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sz.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sV{#I;static observedAttributes=[];#tT;constructor(e){this.#I=e}connectedCallback(){if(IntersectionObserver&&!this.#tT){let e=this.#I.parentElement;e&&(this.#tT=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#I.dispatchEvent(new sz(t,n)),n&&this.#I.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#tT.observe(this.#I))}}dispose(){this.#tT&&(this.#tT.disconnect(),this.#tT=void 0)}}function sW(e,t,n,l){let a=!1;return function(i){if(i!==a){let s=e.call(this);i?(i6(()=>s.addEventListener(t,n,l)),a=!0):(i6(()=>s.removeEventListener(t,n)),a=!1)}}}nv=[i9("x-refresh-footer",[sn,sV])],nb=[],ng=HTMLElement,(class extends ng{static{np=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ng[Symbol.metadata]??null):void 0;i1(null,nm={value:np},nv,{kind:"class",name:np.name,metadata:e},null,nb),np=nm.value,e&&Object.defineProperty(np,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(np,nb)}connectedCallback(){this.setAttribute("slot","footer")}}),nE=[i9("x-refresh-header",[sn,sV])],nS=[],nw=HTMLElement,(class extends nw{static{ny=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nw[Symbol.metadata]??null):void 0;i1(null,nf={value:ny},nE,{kind:"class",name:ny.name,metadata:e},null,nS),ny=nf.value,e&&Object.defineProperty(ny,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ny,nS)}connectedCallback(){this.setAttribute("slot","header")}}),nA=[i9("x-refresh-view",[sn,(nI=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nx=[se("headeroffset"),se("headershow"),se("footeroffset")],nT=[se("startrefresh"),se("headerreleased"),se("startloadmore"),se("footerreleased")],i1(this,nC={value:i3(function(e,t){this.#tO[t]=e;let{headeroffset:n,headershow:l,footeroffset:a}=this.#tO;n||l||a?this.#tI():this.#tL()},"#handleComplexEventEnableAttributes")},nx,{kind:"method",name:"#handleComplexEventEnableAttributes",static:!1,private:!0,access:{has:e=>#tk in e,get:e=>e.#tk},metadata:e},null,nI),i1(this,nO={value:i3(function(e,t){this.#tO[t]=e;let{startrefresh:n,headerreleased:l,startloadmore:a,footerreleased:i}=this.#tO;l||i||a||n?this.#tA():this.#tP()},"#handleXEnableHeaderOffsetEvent")},nT,{kind:"method",name:"#handleXEnableHeaderOffsetEvent",static:!1,private:!0,access:{has:e=>#tM in e,get:e=>e.#tM},metadata:e},null,nI),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#I=i2(this,nI);static observedAttributes=[];#tR=si(()=>this.#I,"x-refresh-view > x-refresh-header:first-of-type");#tN=si(()=>this.#I,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#I=e,this.#I.addEventListener(sz.EventName,this.#tD)}#tO={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};get #tk(){return nC.value}get #tM(){return nO.value}#tF=!1;#tH=!1;#tj=!1;#t_=!1;#tD=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tF=e.startShowing,this.#tH=e.fullyShowing):(this.#tj=e.startShowing,this.#t_=e.fullyShowing)};#tU=!1;#tA(){this.#tU||(this.#I.addEventListener("touchend",this.#tz),this.#tU=!0)}#tz=()=>{this.#tH?(this.#I.dispatchEvent(new CustomEvent("headerreleased",i5)),this.#I.dispatchEvent(new CustomEvent("startrefresh",{...i5,detail:{isManual:this.#I._nextRefreshIsManual}})),this.#I._nextRefreshIsManual=!0):("true"===this.#I.getAttribute("enable-auto-loadmore")&&this.#tj||this.#t_)&&(this.#I.dispatchEvent(new CustomEvent("footerreleased",i5)),this.#I.dispatchEvent(new CustomEvent("startloadmore",i5)))};#tP(){this.#tU&&this.#I.removeEventListener("touchend",this.#tz)}#tV=!1;#tW=!1;#tI(){this.#tW||(this.#I.addEventListener("touchstart",this.#t$),this.#I.addEventListener("touchend",this.#tB),this.#I.addEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").addEventListener("scroll",this.#Q))}#tB=()=>{this.#tV=!1};#t$=()=>{this.#tV=!0};#Q=()=>{if(this.#tF&&(this.#tO.headershow||this.#tO.headeroffset)){let e=this.#tR();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#I.shadowRoot.querySelector("#container").scrollTop;this.#I.dispatchEvent(new CustomEvent("headershow",{...i5,detail:{isDragging:this.#tV,offsetPercent:1-n/t}})),this.#I.dispatchEvent(new CustomEvent("headeroffset",{...i5,detail:{isDragging:this.#tV,offsetPercent:1-n/t}}))}}else if(this.#tj&&this.#tO.footeroffset){let e=this.#tN();if(e){let t=this.#I.shadowRoot.querySelector("#container"),n=t.scrollTop;t.scrollHeight;let l=parseFloat(getComputedStyle(e).height);this.#I.dispatchEvent(new CustomEvent("footeroffset",{...i5,detail:{isDragging:this.#tV,offsetPercent:1-n/l}}))}}};#tL(){this.#tW&&(this.#I.removeEventListener("touchstart",this.#t$),this.#I.removeEventListener("touchend",this.#tB),this.#I.removeEventListener("touchcancel",this.#tB),this.#I.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#Q))}dispose(){this.#tP(),this.#tL()}})],sE)],nP=[],nM=HTMLElement,(class extends nM{static{nk=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nM[Symbol.metadata]??null):void 0;i1(null,nL={value:nk},nA,{kind:"class",name:nk.name,metadata:e},null,nP),nk=nL.value,e&&Object.defineProperty(nk,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"})}#tX=si(()=>this.shadowRoot,"#container");#tq=si(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#tX(),t=this.#tq();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#tX(),n=this.#tq();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tq().scrollHeight}get[su](){return this}static{i2(nk,nP)}}),nV=[i9("x-svg",[sn,(n_=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nR=[sl("src",!0)],nD=[sl("content",!0)],nH=[se("load")],i1(this,nN={value:i3(function(e){e?this.#eG().src=e:this.#eG().src=""},"#handleSrc")},nR,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,n_),i1(this,nF={value:i3(function(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.#eG().src=n},"#handleContent")},nD,{kind:"method",name:"#handleContent",static:!1,private:!0,access:{has:e=>#tY in e,get:e=>e.#tY},metadata:e},null,n_),i1(this,nj={value:i3(function(e){e?this.#eG().addEventListener("load",this.#eJ,{passive:!0}):this.#eG().removeEventListener("load",this.#eJ)},"#enableLoadEvent")},nH,{kind:"method",name:"#enableLoadEvent",static:!1,private:!0,access:{has:e=>#eZ in e,get:e=>e.#eZ},metadata:e},null,n_),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#I=i2(this,n_);#n=null;#eG=si(()=>this.#I.shadowRoot,"#img");get #es(){return nN.value}get #tY(){return nF.value}get #eZ(){return nj.value}#eJ=()=>{this.#I.dispatchEvent(new CustomEvent("load",{...i5,detail:{width:this.#eG().naturalWidth,height:this.#eG().naturalHeight}}))};constructor(e){this.#I=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nW=[],n$=HTMLElement,(class extends n${static{nz=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n$[Symbol.metadata]??null):void 0;i1(null,nU={value:nz},nV,{kind:"class",name:nz.name,metadata:e},null,nW),nz=nU.value,e&&Object.defineProperty(nz,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(nz,nW)}}),nq=[i9("x-swiper-item",[sn])],nY=[],nG=HTMLElement,(class extends nG{static{nX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nG[Symbol.metadata]??null):void 0;i1(null,nB={value:nX},nq,{kind:"class",name:nX.name,metadata:e},null,nY),nX=nB.value,e&&Object.defineProperty(nX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(nX,nY)}}),ly=[i9("x-swiper",[sn,(lr=[],lo=[],ld=[],lc=[],lh=[],lu=[],lm=[],lp=[],lv=[],lb=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ln=[sl("indicator-color",!0)],ll=[sl("indicator-active-color",!0)],la=[sl("page-margin",!0)],li=[sl("previous-margin",!0)],ls=[sl("next-margin",!0)],i1(null,null,ln,{kind:"field",name:"#handleIndicatorColor",static:!1,private:!0,access:{has:e=>#tG in e,get:e=>e.#tG,set:(e,t)=>{e.#tG=t}},metadata:e},lr,lo),i1(null,null,ll,{kind:"field",name:"#handleIndicatorActiveColor",static:!1,private:!0,access:{has:e=>#tK in e,get:e=>e.#tK,set:(e,t)=>{e.#tK=t}},metadata:e},ld,lc),i1(null,null,la,{kind:"field",name:"#handlePageMargin",static:!1,private:!0,access:{has:e=>#tJ in e,get:e=>e.#tJ,set:(e,t)=>{e.#tJ=t}},metadata:e},lh,lu),i1(null,null,li,{kind:"field",name:"#handlePreviousMargin",static:!1,private:!0,access:{has:e=>#tZ in e,get:e=>e.#tZ,set:(e,t)=>{e.#tZ=t}},metadata:e},lm,lp),i1(null,null,ls,{kind:"field",name:"#handleNextMargin",static:!1,private:!0,access:{has:e=>#tQ in e,get:e=>e.#tQ,set:(e,t)=>{e.#tQ=t}},metadata:e},lv,lb),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"];#I;#t0=0;#t1=si(()=>this.#I.shadowRoot,"#indicator-container");#t2=si(()=>this.#I.shadowRoot,"#indicator-style");#t3;constructor(e){i2(this,lb),this.#I=e}#tG=i2(this,lr,ss(this.#t1,"--indicator-color",void 0,!0));#tK=(i2(this,lo),i2(this,ld,ss(this.#t1,"--indicator-active-color",void 0,!0)));#tJ=(i2(this,lc),i2(this,lh,ss(this.#t1,"--page-margin",void 0,!0)));#tZ=(i2(this,lu),i2(this,lm,ss(this.#t1,"--previous-margin",void 0,!0)));#tQ=(i2(this,lp),i2(this,lv,ss(this.#t1,"--next-margin",void 0,!0)));#t8(){let e=this.#I.childElementCount;if(e!==this.#t0){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#t1().innerHTML=t,e>5){for(let t=0;t<e;t++)this.#I.children.item(t)?.style.setProperty("view-timeline-name",`--x-swiper-item-${t}`);this.#t2().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#t0=e}connectedCallback(){this.#t8(),this.#t3=new MutationObserver(this.#t8.bind(this)),this.#t3.observe(this.#I,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),CSS.supports("timeline-scope","--a, --b")||(this.#I.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#I.childElementCount,l=this.#t1();for(let e=0;e<n;e++){let n=l.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this)),i6(()=>{this.#t1().children[this.#I.currentIndex]?.style.setProperty("background-color","var(--indicator-active-color)","important")}))}dispose(){this.#t3?.disconnect(),this.#t3=void 0}}),(nQ=[],n0=[],n1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nK=[se("transition")],nJ=[se("scrollstart"),se("lynxscrollend"),se("change"),se("change-event-for-indicator")],i1(this,nZ={value:i3(function(e,t){this.#tO[t]=e;let{lynxscrollend:n,scrollstart:l,change:a}=this.#tO,i=a||n||l||this.#tO["change-event-for-indicator"];this.#t4.forEach(e=>e(i))},"#enableScrollEventProcessor")},nJ,{kind:"method",name:"#enableScrollEventProcessor",static:!1,private:!0,access:{has:e=>#t6 in e,get:e=>e.#t6},metadata:e},null,nQ),i1(null,null,nK,{kind:"field",name:"#handleEnableTransitionEvent",static:!1,private:!0,access:{has:e=>#t9 in e,get:e=>e.#t9,set:(e,t)=>{e.#t9=t}},metadata:e},n0,n1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i2(this,nQ);#t5=0;#t7=0;#tV=!1;#W;#ne=!1;constructor(e){this.#I=e}#tq=si(()=>this.#I.shadowRoot,"#content").bind(this);#t9=i2(this,n0,sW(this.#tq,"scroll",this.#nt,{passive:!0}));#Q(){sc||(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#et()},100)),this.#ne||(this.#I.dispatchEvent(new CustomEvent("scrollstart",{...i5,detail:{current:this.#t5,isDragged:this.#tV}})),this.#ne=!0);let e=this.#tq(),t=this.#I.isVertical,n=t?e.scrollTop:e.scrollLeft,l=t?e.clientHeight:e.clientWidth,a=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#t7-n)>l/4||n<10||Math.abs(n-a)<=l){let e=this.#I.currentIndex;e!==this.#t5&&(this.#I.dispatchEvent(new CustomEvent("change",{...i5,detail:{current:e,isDragged:this.#tV}})),this.#t5=e),this.#t7=n}}#et(){this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...i5,detail:{current:this.#t5}})),this.#ne=!1}#nn(){this.#tV=!0}#nl(){this.#tV=!1}#nt(){this.#I.dispatchEvent(new CustomEvent("transition",{...i5,detail:{dx:this.#tq().scrollLeft,dy:this.#tq().scrollTop}}))}#t4=(i2(this,n1),[sW(this.#tq,"scroll",this.#Q.bind(this),{passive:!0}),sW(this.#tq,"touchstart",this.#nn.bind(this),{passive:!0}),sW(this.#tq,"touchend",this.#nl.bind(this),{passive:!0}),sW(this.#tq,"touchcancel",this.#nl.bind(this),{passive:!0}),sW(this.#tq,"scrollend",this.#et.bind(this),{passive:!0})]);#tO={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};get #t6(){return nZ.value}connectedCallback(){this.#t5=parseFloat(this.#I.getAttribute("current")??"0");let e=this.#I.isVertical;this.#t7=e?this.#tq().scrollTop:this.#tq().scrollLeft}}),(lt=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n9=[sl("circular",!1)],n7=[sl("vertical",!0)],i1(this,n5={value:i3(function(e){this.#t4.forEach(t=>t(null!=e)),null!==e&&this.#na({detail:{current:this.#I.currentIndex,isDragged:!1,__isFirstLayout:!0}})},"#handleCircular")},n9,{kind:"method",name:"#handleCircular",static:!1,private:!0,access:{has:e=>#ni in e,get:e=>e.#ni},metadata:e},null,lt),i1(this,le={value:i3(function(e){this.#ns=null!==e},"#handleVerticalChange")},n7,{kind:"method",name:"#handleVerticalChange",static:!1,private:!0,access:{has:e=>#nr in e,get:e=>e.#nr},metadata:e},null,lt),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#I=i2(this,lt);#ns=!1;#no;#nd=0;#tq=si(()=>this.#I.shadowRoot,"#content").bind(this);constructor(e){this.#I=e}#nc=si(()=>this.#I.shadowRoot,"#circular-start").bind(this);#nh=si(()=>this.#I.shadowRoot,"#circular-end").bind(this);#na(e){let t=this.#I.childElementCount;if(t>2){let{current:n,isDragged:l,__isFirstLayout:a}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,i=this.#tq(),s=this.#nc().assignedElements(),r=this.#nh().assignedElements(),o=this.#I.firstElementChild,d=this.#I.lastElementChild,c=this.#I.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.#I.children[n]),this.#ns){let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientHeight/2:i.clientHeight/2;this.#nd=e.offsetTop+e.offsetHeight/2-c-t,i.scrollTop=this.#nd}else{let t="carousel"===this.#I.getAttribute("mode")?.8*i.clientWidth/2:i.clientWidth/2;this.#nd=e.offsetLeft+e.offsetWidth/2-c-t,i.scrollLeft=this.#nd}if(!l){let e=this.#I.getAttribute("mode");if(a&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#nu(a?"instant":"smooth")}}}}#nu(e){let t=this.#tq(),n=this.#I.snapDistance;t.scrollBy({top:this.#ns?n:0,left:this.#ns?0:n,behavior:e??"smooth"})}#t4=[sW(()=>this.#I,"change",this.#na.bind(this),{passive:!0}),sW(()=>this.#I,"touchmove",this.#nm.bind(this),{passive:!1}),sW(()=>this.#I,"touchend",this.#np.bind(this),{passive:!1}),sW(()=>this.#I,"touchcancel",this.#np.bind(this),{passive:!1})];get #ni(){return n5.value}#nm(e){let t=e.touches.item(0);if(t){let e=this.#ns?t.pageY:t.pageX;if(void 0!==this.#no){this.#nv();let t=this.#no-e;this.#nd+=t}this.#no=e}}#np(e){this.#nb(),this.#nu(),this.#no=void 0}get #nr(){return le.value}#ng;#nv(){if(!this.#ng){let e=this.#tq();this.#nd=this.#ns?e.scrollTop:e.scrollLeft,this.#ng=setInterval(()=>{this.#ns?e.scrollTop=this.#nd:e.scrollLeft=this.#nd},10)}}#nb(){this.#ng&&(clearInterval(this.#ng),this.#ng=void 0)}dispose(){this.#nb()}}),(n6=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;n2=[sl("current",!1)],n8=[sl("interval",!1),sl("autoplay",!1)],i1(this,n3={value:i3(function(e){let t=Number(e);Number.isNaN(t)||(this.#I.currentIndex=t)},"#handleCurrentChange")},n2,{kind:"method",name:"#handleCurrentChange",static:!1,private:!0,access:{has:e=>#nf in e,get:e=>e.#nf},metadata:e},null,n6),i1(this,n4={value:i3(function(){if(null!==this.#I.getAttribute("autoplay")){let e=this.#I.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#ny(t)}},"#handleAutoplay")},n8,{kind:"method",name:"#handleAutoplay",static:!1,private:!0,access:{has:e=>#nE in e,get:e=>e.#nE},metadata:e},null,n6),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#I=i2(this,n6);constructor(e){this.#I=e}#nS(){this.#I.currentIndex===this.#I.childElementCount-1?this.#I.circularPlay&&(this.#I.currentIndex=0):this.#I.currentIndex+=1}get #nf(){return n3.value}#nw;#nx=(()=>{this.#nS()}).bind(this);#ny(e){this.#nC(),this.#nw=setInterval(this.#nx,e)}#nC(){this.#nw&&clearInterval(this.#nw)}get #nE(){return n4.value}dispose(){this.#nC()}})],sS)],lE=[],lS=HTMLElement,(class extends lS{static{lf=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lS[Symbol.metadata]??null):void 0;i1(null,lg={value:lf},ly,{kind:"class",name:lf.name,metadata:e},null,lE),lf=lg.value,e&&Object.defineProperty(lf,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tq=si(()=>this.shadowRoot,"#content").bind(this);#nT(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let l=this.#tq(),a=this.isVertical,i=this.childElementCount,s=a?l.scrollTop:l.scrollLeft,r=a?l.clientHeight:l.clientWidth,o=a?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let l=0;l<i;l++){let i=this.children[l];if(i){let s=(a?i.offsetTop:i.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=l,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#nT().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#nO(e,t?"smooth":"instant")}#nO(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,l=0;l="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tq().scrollTo({left:e?0:l,top:e?l:0,behavior:t})}}get snapDistance(){return this.#nT().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.#nO(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#nO(Number(e),"instant")}get[su](){return this}static{i2(lf,lE)}}),lI=[i9("inline-image",[(lC=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lw=[sl("src",!0)],i1(this,lx={value:i3(function(e){e?this.#nI().setAttribute("src",e):this.#nI().removeAttribute("src")},"#handleSrc")},lw,{kind:"method",name:"#handleSrc",static:!1,private:!0,access:{has:e=>#es in e,get:e=>e.#es},metadata:e},null,lC),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#I=i2(this,lC);constructor(e){this.#I=e}#nI=si(()=>this.#I.shadowRoot,"#img");get #es(){return lx.value}})],sb({}))],lL=[],lk=HTMLElement,(class extends lk{static{lO=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lk[Symbol.metadata]??null):void 0;i1(null,lT={value:lO},lI,{kind:"class",name:lO.name,metadata:e},null,lL),lO=lT.value,e&&Object.defineProperty(lO,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(lO,lL)}}),lM=[i9("inline-text",[])],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;i1(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}),i2(lP,lR)}}),lH=[i9("inline-truncation",[])],lj=[],l_=HTMLElement,n=class extends l_{static{lF=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l_[Symbol.metadata]??null):void 0;i1(null,lD={value:lF},lH,{kind:"class",name:lF.name,metadata:e},null,lj),n=lF=lD.value,e&&Object.defineProperty(lF,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{i2(lF,lj)}},n=lF,lB=[i9("raw-text",[(lV=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lU=[sl("text",!0)],i1(this,lz={value:i3(function(e){this.#nL?.remove(),e&&(this.#nL=new Text(e),this.#I.append(this.#nL))},"#handleText")},lU,{kind:"method",name:"#handleText",static:!1,private:!0,access:{has:e=>#nk in e,get:e=>e.#nk},metadata:e},null,lV),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#I=i2(this,lV);#nL;constructor(e){this.#I=e}get #nk(){return lz.value}})])],lX=[],lq=HTMLElement,class extends lq{static{l$=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lq[Symbol.metadata]??null):void 0;i1(null,lW={value:l$},lB,{kind:"class",name:l$.name,metadata:e},null,lX),l$=lW.value,e&&Object.defineProperty(l$,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(l$,lX)}};let s$=(lZ=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lY=[sl("text-maxlength",!0),sl("text-maxline",!0),sl("tail-color-convert",!0)],lK=[se("layout")],i1(this,lG={value:i3(function(){this.#nA=parseFloat(this.#I.getAttribute("text-maxlength")??""),this.#nP=parseFloat(this.#I.getAttribute("text-maxline")??""),this.#nM="false"!==this.#I.getAttribute("tail-color-convert"),this.#nA<0&&(this.#nA=NaN),this.#nP<1&&(this.#nP=NaN),isNaN(this.#nP)?this.#nR().style.removeProperty("-webkit-line-clamp"):this.#nR().style.webkitLineClamp=this.#nP.toString(),this.#nN()},"#handleAttributeChange")},lY,{kind:"method",name:"#handleAttributeChange",static:!1,private:!0,access:{has:e=>#nD in e,get:e=>e.#nD},metadata:e},null,lZ),i1(this,lJ={value:i3(function(e){this.#nF=e},"#handleEnableLayoutEvent")},lK,{kind:"method",name:"#handleEnableLayoutEvent",static:!1,private:!0,access:{has:e=>#nH in e,get:e=>e.#nH},metadata:e},null,lZ),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"];#nj=(i2(this,lZ),!1);#n_=!1;#nU=new Map;#nz;#k;#nV;#nW;#n$=!1;#nA=NaN;#nP=NaN;#nM=!0;#nF=!1;get #nB(){return!this.#nX&&!this.#nM}get #nX(){if(CSS.supports("selector(:has(inline-truncation))"))return this.#I.matches(":has(inline-truncation)");{let e=this.#I.querySelector("inline-truncation");if(e?.parentElement===this.#I)return!0}return!1}get #nq(){return!isNaN(this.#nP)&&(this.#nX||!this.#nM)}#I;constructor(e){this.#I=e}#nR=si(()=>this.#I.shadowRoot,"#inner-box");#nY(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#nU.delete(e)}),"characterData"===e.type&&void 0!==this.#nU.get(e.target)&&this.#nU.set(e.target,e.target.data)})}#nG(){for(let[t,n]of this.#nU)t.nodeType===Node.TEXT_NODE?void 0!==n&&(t.data=n):t.removeAttribute(e.exceedMathLengthAttribute);this.#I.removeAttribute(e.exceedMathLengthAttribute),this.#I.removeAttribute(e.showInlineTruncation)}#nK(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nN(){!this.#n_||this.#I.matches("x-text>x-text")||this.#nj||(this.#nj=!0,i6(async()=>{await this.#nJ(),this.#nZ(),this.#nj=!1}))}async #nJ(){if(this.#nV?.parentElement?.removeChild(this.#nV),this.#nG(),!this.#nq&&isNaN(this.#nA))return;await document.fonts.ready;let t=this.#nR().getBoundingClientRect();this.#nW=new sB(this.#I,t);let n=this.#nW,l=(isNaN(this.#nA)?void 0:n.getNodeInfoByCharIndex(this.#nA))?this.#nA:1/0,a=this.#nq&&n.getLineInfo(this.#nP)?n.getLineInfo(this.#nP-1):void 0,i=1/0,s=3;if(a){let{start:l,end:r}=a,o=r-l;if(this.#nX){this.#I.setAttribute(e.showInlineTruncation,"");let a=this.#I.querySelector("inline-truncation").getBoundingClientRect(),s=t.width,o=a.width;if(s>o){i=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(i),l=r-t.start;for(e.setEnd(t.node,l),e.setStart(t.node,l);e.getBoundingClientRect().width<o&&(i-=1)&&(t=n.getNodeInfoByCharIndex(i));)e.setStart(t.node,i-t.start)}else i=l,this.#I.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,i=l):i=r-3}let r=Math.min(l,i);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let l=r-t.start,a=t.node,i=[];a.nodeType===Node.TEXT_NODE?(this.#nU.set(a,a.data),a.data=a.data.substring(0,l)):i.push(a),i=i.concat(this.#nK(a));let o=a.parentElement;for(;o!==this.#I;)i=i.concat(this.#nK(o)),o=o.parentElement;if(i.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#nU.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#nU.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#nB){let e=(0===l?n.nodelist.at(t.nodeIndex-1)?.parentElement:a.parentElement)??a.parentElement;this.#nV=new Text(Array(s).fill(".").join("")),e.append(this.#nV)}this.#I.setAttribute(e.exceedMathLengthAttribute,"")}this.#nQ(r)}}#n0=e=>{this.#nY(e),this.#nN()};#n1=()=>{if(this.#n$){this.#n$=!1;return}this.#nN()};#nZ(){this.#n_&&((this.#nA||this.#nP)&&!this.#nz&&(this.#nz=new MutationObserver(this.#n0),this.#nz.observe(this.#I,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#nP&&!this.#k&&(this.#k=new ResizeObserver(this.#n1),this.#n$=!0,this.#k.observe(this.#nR(),{box:"content-box"})))}#n2(){this.#nz?.disconnect(),this.#nz=void 0,this.#k?.disconnect(),this.#k=void 0}get #nD(){return lG.value}get #nH(){return lJ.value}#nQ(e){if(!this.#nF)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#nW||(t.#nW=new sB(t.#I,t.#I.getBoundingClientRect())),t.#nW.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let l=parseFloat(n.toString());if(!isNaN(l)){t.#nW||(t.#nW=new sB(t.#I,t.#I.getBoundingClientRect()));let n=t.#nW.getLineInfo(l);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.#I.dispatchEvent(new CustomEvent("layout",{...i5,detail:t}))}dispose(){this.#n2()}connectedCallback(){this.#n_=!0,this.#nH(this.#nF),this.#nD(),i6(()=>{this.#nQ()})}});class sB{#n3=[{start:0}];#n8=[];#n4=[];#I;#n6;nodelist;constructor(e,t){this.#I=e,this.nodelist=new sX(this.#I),this.#n6=t}#n9(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,l=e.node,a=document.createRange();a.selectNode(l);for(let e=0;e<l.data.length;e++){a.setEnd(l,e);let i=a.getClientRects().item(n);if(i&&i.right===t.right)return e}return l.data.length}}#n5(e){if(this.#n8[e])return;let{left:t}=this.#n6,n=this.#n8[this.#n8.length-1],l=n?.[n.length-1],a=l?.nodeIndex?l?.nodeIndex+1:0;for(let n=a,l;(l=this.#n7(n))&&e>=this.#n8.length;n++){let e,{node:n}=l;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.#n8[this.#n8.length-1],a=e[0];if(.2>Math.abs(a.left-t)||!n?this.#n8.push([{...l,rect:a,rectIndex:0}]):n.push({...l,rect:a,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let i=e[n];(i.left!==a.left||i.bottom!==a.bottom)&&(.2>Math.abs(i.left-t)?this.#n8.push([{...l,rect:i,rectIndex:n}]):this.#n8[this.#n8.length-1].push({...l,rect:i,rectIndex:n}))}}}}getLineCount(){return this.#n5(1/0),this.#n8.length}getLineInfo(e){if(this.#n5(e+1),e<this.#n8.length){let t=e>0?this.#n3[e-1]??{}:void 0,n=this.#n3[e]??{},l=e<this.#n8.length-1?this.#n3[e+1]??{}:void 0;if(void 0===n.start){let l=this.#n8[e-1],a=l[l.length-1],i=this.#n9(a),s=a.start+i;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#n8[e],a=t[t.length-1];if(e===this.#n8.length-1){let e=a.node.nodeType===Node.TEXT_NODE?a.node.data.length:1;n.end=a.start+e}else{let e=this.#n9(a);n.end=a.start+e,l.start=n.end+1}}return n}}#n7(e){let t=this.#n4.length-1,n=this.#n4[t],l=n?n.start+n.length:0;for(let t=this.#n4.length,n;(n=this.nodelist.at(t))&&e>=this.#n4.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,a={node:n,length:e,start:l,nodeIndex:t};this.#n4.push(a)}return this.#n4[e]}getNodeInfoByCharIndex(e){let t,n=0,l=this.#n4.length-1;for(;n<=l;){let a=Math.floor((n+l)/2),i=this.#n4[a],s=i.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=i.start;if(e>=o&&e<o+r){t=i;break}e<o?l=a-1:n=a+1}if(t)return t;for(let t=this.#n4.length,n;n=this.#n7(t);t++)if(e<n.start+n.length)return n}}class sX{#le=[];#lt;constructor(e){this.#lt=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.#le[e]||this.#ln(e),this.#le[e]}#ln(e){let t=null;for(;e>=this.#le.length&&(t=this.#lt.nextNode());){this.#le.push(t);break}}}l1=[i9("x-text",[sn,s$],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],l2=[],l3=HTMLElement,(class extends l3{static{l0=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(l3[Symbol.metadata]??null):void 0;i1(null,lQ={value:l0},l1,{kind:"class",name:l0.name,metadata:e},null,l2),l0=lQ.value,e&&Object.defineProperty(l0,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(sp.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[st]=this;static{i2(l0,l2)}}),aq=[i9("x-textarea",[sn,(l7=[],ae=[],at=[],an=[],al=[],aa=[],ai=[],as=[],ar=[],ao=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l8=[sl("placeholder-color",!0)],l4=[sl("placeholder-font-size",!0)],l6=[sl("placeholder-font-weight",!0)],l9=[sl("placeholder-font-family",!0)],l5=[sl("placeholder",!0)],i1(null,null,l8,{kind:"field",name:"#updatePlaceholderColor",static:!1,private:!0,access:{has:e=>#ll in e,get:e=>e.#ll,set:(e,t)=>{e.#ll=t}},metadata:e},l7,ae),i1(null,null,l4,{kind:"field",name:"#updatePlaceholderFontSize",static:!1,private:!0,access:{has:e=>#la in e,get:e=>e.#la,set:(e,t)=>{e.#la=t}},metadata:e},at,an),i1(null,null,l6,{kind:"field",name:"#updatePlaceholderFontWeight",static:!1,private:!0,access:{has:e=>#li in e,get:e=>e.#li,set:(e,t)=>{e.#li=t}},metadata:e},al,aa),i1(null,null,l9,{kind:"field",name:"#updatePlaceholderFontFamily",static:!1,private:!0,access:{has:e=>#ls in e,get:e=>e.#ls,set:(e,t)=>{e.#ls=t}},metadata:e},ai,as),i1(null,null,l5,{kind:"field",name:"#handlePlaceholder",static:!1,private:!0,access:{has:e=>#lr in e,get:e=>e.#lr,set:(e,t)=>{e.#lr=t}},metadata:e},ar,ao),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"];#lo=si(()=>this.#I.shadowRoot,"#textarea");#ll=i2(this,l7,ss(this.#lo,"--placeholder-color",void 0,!0));#la=(i2(this,ae),i2(this,at,ss(this.#lo,"--placeholder-font-size",void 0,!0)));#li=(i2(this,an),i2(this,al,ss(this.#lo,"--placeholder-font-weight",void 0,!0)));#ls=(i2(this,aa),i2(this,ai,ss(this.#lo,"--placeholder-font-family",void 0,!0)));#lr=(i2(this,as),i2(this,ar,sC(this.#lo,"placeholder")));#I=i2(this,ao);constructor(e){this.#I=e}}),(ap=[],av=[],ab=[],ag=[],af=[],ay=[],aE=[],aS=[],aw=[],ax=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ad=[sl("confirm-type",!0)],ac=[sl("maxlength",!0)],ah=[sl("readonly",!0)],au=[sl("ios-spell-check",!0)],am=[sl("show-soft-input-onfocus",!0)],i1(null,null,ad,{kind:"field",name:"#handlerConfirmType",static:!1,private:!0,access:{has:e=>#tl in e,get:e=>e.#tl,set:(e,t)=>{e.#tl=t}},metadata:e},ap,av),i1(null,null,ac,{kind:"field",name:"#handlerMaxlength",static:!1,private:!0,access:{has:e=>#ta in e,get:e=>e.#ta,set:(e,t)=>{e.#ta=t}},metadata:e},ab,ag),i1(null,null,ah,{kind:"field",name:"#handleReadonly",static:!1,private:!0,access:{has:e=>#ti in e,get:e=>e.#ti,set:(e,t)=>{e.#ti=t}},metadata:e},af,ay),i1(null,null,au,{kind:"field",name:"#handleSpellCheck",static:!1,private:!0,access:{has:e=>#ts in e,get:e=>e.#ts,set:(e,t)=>{e.#ts=t}},metadata:e},aE,aS),i1(null,null,am,{kind:"field",name:"#handleShowSoftInputOnfocus",static:!1,private:!0,access:{has:e=>#ld in e,get:e=>e.#ld,set:(e,t)=>{e.#ld=t}},metadata:e},aw,ax),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"];#I;#lc=si(()=>this.#I.shadowRoot,"#textarea");#tl=i2(this,ap,sC(this.#lc,"enterkeyhint",e=>null===e?"send":e));#ta=(i2(this,av),i2(this,ab,sC(this.#lc,"maxlength",e=>null===e?"140":e)));#ti=(i2(this,ag),i2(this,af,sC(this.#lc,"readonly",e=>null!==e?"":null)));#ts=(i2(this,ay),i2(this,aE,sC(this.#lc,"spellcheck",e=>null===e?"false":"true")));#ld=(i2(this,aS),i2(this,aw,sC(this.#lc,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){i2(this,ax),this.#I=e}}),(aP=[],aM=[],aR=[],aN=[],aD=[],aF=[],aH=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aC=[sl("confirm-enter",!0)],aO=[sl("disabled",!0)],aI=[sl("max-height",!0)],aL=[sl("min-height",!0)],ak=[sl("value",!1)],i1(this,aT={value:i3(function(e){this.#lh=null!==e},"#handleConfirmEnter")},aC,{kind:"method",name:"#handleConfirmEnter",static:!1,private:!0,access:{has:e=>#lu in e,get:e=>e.#lu},metadata:e},null,aP),i1(this,aA={value:i3(function(e){if(e){let t=parseFloat(this.#I.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#lc();t.value!==e&&(t.value=e)},"#handleValue")},ak,{kind:"method",name:"#handleValue",static:!1,private:!0,access:{has:e=>#e9 in e,get:e=>e.#e9},metadata:e},null,aP),i1(null,null,aO,{kind:"field",name:"#handleDisabled",static:!1,private:!0,access:{has:e=>#e5 in e,get:e=>e.#e5,set:(e,t)=>{e.#e5=t}},metadata:e},aM,aR),i1(null,null,aI,{kind:"field",name:"#handleMaxHeight",static:!1,private:!0,access:{has:e=>#lm in e,get:e=>e.#lm,set:(e,t)=>{e.#lm=t}},metadata:e},aN,aD),i1(null,null,aL,{kind:"field",name:"#handleMinHeight",static:!1,private:!0,access:{has:e=>#lp in e,get:e=>e.#lp,set:(e,t)=>{e.#lp=t}},metadata:e},aF,aH),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#I=i2(this,aP);#lc=si(()=>this.#I.shadowRoot,"#textarea");#tv=si(()=>this.#I.shadowRoot,"#form");#lh=!1;get #lu(){return aT.value}#e5=i2(this,aM,sC(this.#lc,"disabled",e=>null!==e?"":null));#lm=(i2(this,aR),i2(this,aN,ss(this.#lc,"max-height")));#lp=(i2(this,aD),i2(this,aF,ss(this.#lc,"min-height")));get #e9(){return aA.value}#lv=(i2(this,aH),e=>{this.#lh&&"Enter"===e.key&&this.#tv().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#I=e,this.#lc().addEventListener("keyup",this.#lv)}}),(a$=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;aj=[sl("input-filter",!0),se("lynxinput")],aU=[sl("send-composing-input",!0)],aV=[se("selection")],i1(this,a_={value:i3(function(e){let t=this.#lc();e?(t.addEventListener("input",this.#to,{passive:!0}),t.addEventListener("compositionend",this.#td,{passive:!0})):(t.removeEventListener("input",this.#to),t.removeEventListener("compositionend",this.#td))},"#handleEnableConfirmEvent")},aj,{kind:"method",name:"#handleEnableConfirmEvent",static:!1,private:!0,access:{has:e=>#lb in e,get:e=>e.#lb},metadata:e},null,a$),i1(this,az={value:i3(function(e){this.#th=null!==e},"#handleSendComposingInput")},aU,{kind:"method",name:"#handleSendComposingInput",static:!1,private:!0,access:{has:e=>#tu in e,get:e=>e.#tu},metadata:e},null,a$),i1(this,aW={value:i3(function(e){e?this.#lc().addEventListener("select",this.#tm,{passive:!0}):this.#lc().removeEventListener("select",this.#tm)},"#handleEnableSelectionEvent")},aV,{kind:"method",name:"#handleEnableSelectionEvent",static:!1,private:!0,access:{has:e=>#tp in e,get:e=>e.#tp},metadata:e},null,a$),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#I=i2(this,a$);#th=!1;#lc=si(()=>this.#I.shadowRoot,"#textarea");#tv=si(()=>this.#I.shadowRoot,"#form");get #lb(){return a_.value}get #tu(){return az.value}#tb=e=>{let t=sU[e.type]??e.type;this.#I.dispatchEvent(new CustomEvent(t,{...i5,detail:{value:this.#lc().value}}))};#to=e=>{let t=this.#lc(),n=this.#I.getAttribute("input-filter"),l=n?t.value.replace(RegExp(n,"g"),""):t.value,a=e.isComposing;t.value=l,(!a||this.#th)&&this.#I.dispatchEvent(new CustomEvent("lynxinput",{...i5,detail:{value:l,textLength:l.length,cursor:t.selectionStart,isComposing:a,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#td=()=>{let e=this.#lc(),t=this.#I.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#th||this.#I.dispatchEvent(new CustomEvent("lynxinput",{...i5,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};get #tp(){return aW.value}#tm=()=>{let e=this.#lc();this.#I.dispatchEvent(new CustomEvent("selection",{...i5,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#tg=e=>{e.target===this.#lc()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#I=e;const t=this.#lc(),n=this.#tv();t.addEventListener("blur",this.#tb,{passive:!0}),t.addEventListener("focus",this.#tb,{passive:!0}),n.addEventListener("submit",this.#tb,{passive:!0}),n.addEventListener("input",this.#tg,{passive:!0})}})],sw)],aY=[],aG=HTMLElement,(class extends aG{static{aX=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aG[Symbol.metadata]??null):void 0;i1(null,aB={value:aX},aq,{kind:"class",name:aX.name,metadata:e},null,aY),aX=aB.value,e&&Object.defineProperty(aX,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(aX,aY)}#lo=si(()=>this.shadowRoot,"#textarea");get value(){return this.#lo().value}set value(e){this.#lo().value=e}addText(e){let{text:t}=e,n=this.#lo(),l=n.selectionStart;if(null===l)n.value=t;else{let e=n.value;n.value=e.slice(0,l)+t+e.slice(l)}}setValue(e){let t,n=this.#lo();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#lo();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,l=this.#lo();1===t&&(n=1);let a=l.selectionStart;if(null===a){let e=l.value;l.value=l.value.substring(0,e.length-n)}else{let e=l.value;l.value=e.slice(0,a-n)+e.slice(a)}}select(){let e=this.#lo();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#lo().setSelectionRange(e.selectionStart,e.selectionEnd)}}),aZ=[i9("x-view",[sn])],aQ=[],a0=HTMLElement,(class extends a0{static{aJ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a0[Symbol.metadata]??null):void 0;i1(null,aK={value:aJ},aZ,{kind:"class",name:aJ.name,metadata:e},null,aQ),aJ=aK.value,e&&Object.defineProperty(aJ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(aJ,aQ)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(sp.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[st]=this}),a6=[i9("x-blur-view",[sn,(a3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a1=[sl("blur-radius",!0)],i1(this,a2={value:i3(function(e){e?(e=`blur(${parseFloat(e)}px)`,this.#lg().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#lg().innerHTML=""},"#handleBlurRadius")},a1,{kind:"method",name:"#handleBlurRadius",static:!1,private:!0,access:{has:e=>#eX in e,get:e=>e.#eX},metadata:e},null,a3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#I=i2(this,a3);#lg=si(()=>this.#I.shadowRoot,"#dynamic-style");get #eX(){return a2.value}constructor(e){this.#I=e}})],'<style id="dynamic-style"></style><slot></slot>')],a9=[],a5=HTMLElement,(class extends a5{static{a4=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(a5[Symbol.metadata]??null):void 0;i1(null,a8={value:a4},a6,{kind:"class",name:a4.name,metadata:e},null,a9),a4=a8.value,e&&Object.defineProperty(a4,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(a4,a9)}}),ir=[i9("x-viewpager-ng",[sn,(ia=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a7=[se("change")],it=[se("offsetchange")],i1(this,ie={value:i3(function(e){this.#lf=e,this.#ly()},"#enableChangeEvent")},a7,{kind:"method",name:"#enableChangeEvent",static:!1,private:!0,access:{has:e=>#lE in e,get:e=>e.#lE},metadata:e},null,ia),i1(this,il={value:i3(function(e){this.#lf=e,this.#ly()},"#enableOffsetChangeEvent")},it,{kind:"method",name:"#enableOffsetChangeEvent",static:!1,private:!0,access:{has:e=>#lS in e,get:e=>e.#lS},metadata:e},null,ia),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#I=i2(this,ia);#lw=!1;#t=!1;#lx=0;#W;constructor(e){this.#I=e}#X=si(()=>this.#I.shadowRoot,"#content");#lC=()=>{if(!this.#t)return;let e=this.#X(),t=this.#I.clientWidth,n=e.scrollLeft;this.#lf&&!sc&&(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#lT()},100)),this.#I.dispatchEvent(new CustomEvent("offsetchange",{...i5,detail:{offset:n/t}}))};#lT=()=>{if(this.#t){let e=this.#X(),t=this.#I.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#lx&&(this.#I.dispatchEvent(new CustomEvent("change",{...i5,detail:{index:n,isDragged:this.#lw}})),this.#lx=n)}};#lO=()=>{this.#lw=!0};#lI=()=>{this.#lw=!1};#lf=!1;get #lE(){return ie.value}#lL=!1;get #lS(){return il.value}#ly(){let e=this.#X();this.#lL||this.#lf?e.addEventListener("scroll",this.#lC,{passive:!0}):e.removeEventListener("scroll",this.#lC),sc&&this.#lf?e.addEventListener("scrollend",this.#lT,{passive:!0}):e.removeEventListener("scrollend",this.#lT)}connectedCallback(){this.#t=!0;let e=this.#X();this.#I.addEventListener("touchstart",this.#lO,{passive:!0}),e.addEventListener("touchend",this.#lI,{passive:!0}),e.addEventListener("touchcancel",this.#lI,{passive:!0})}dispose(){let e=this.#X();e.removeEventListener("scroll",this.#lC),e.removeEventListener("scrollend",this.#lT)}})],sx)],io=[],id=HTMLElement,(class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;i1(null,ii={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),is=ii.value,e&&Object.defineProperty(is,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 l=this.shadowRoot.children.item(2),a=l.clientWidth*t;l.scrollTo({left:a,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),l=()=>{0===n.clientWidth?requestAnimationFrame(l):this.selectTab({index:t,smooth:!1})};i6(l)}}get[su](){return this}static{i2(is,io)}}),iu=[i9("x-viewpager-item-ng",[sn])],im=[],ip=HTMLElement,(class extends ip{static{ih=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ip[Symbol.metadata]??null):void 0;i1(null,ic={value:ih},iu,{kind:"class",name:ih.name,metadata:e},null,im),ih=ic.value,e&&Object.defineProperty(ih,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ih,im)}}),ig=[i9("list-item",[sn])],iy=[],iE=HTMLElement,class extends iE{static{ib=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(iE[Symbol.metadata]??null):void 0;i1(null,iv={value:ib},ig,{kind:"class",name:ib.name,metadata:e},null,iy),ib=iv.value,e&&Object.defineProperty(ib,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),i2(ib,iy)}};let sq=function(e,t,n){let l,a,i,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),l=null,s=e.apply(a,i),l||(a=i=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return a=this,i=arguments,c<=0||c>t?(l&&(clearTimeout(l),l=null),r=d,s=e.apply(a,i),l||(a=i=null)):l||n?.trailing===!1||(l=setTimeout(o,c)),s}},sY="waterfall-slot",sG="waterfall-style";iZ=[i9("x-list",[sn,(ix=[],iC=[],iT=[],iO=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iS=[sl("sticky-offset",!0)],iw=[sl("span-count",!0),sl("column-count",!0)],i1(null,null,iS,{kind:"field",name:"#handlerStickyOffset",static:!1,private:!0,access:{has:e=>#lk in e,get:e=>e.#lk,set:(e,t)=>{e.#lk=t}},metadata:e},ix,iC),i1(null,null,iw,{kind:"field",name:"#handlerCount",static:!1,private:!0,access:{has:e=>#lA in e,get:e=>e.#lA,set:(e,t)=>{e.#lA=t}},metadata:e},iT,iO),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"];#I;#lk=i2(this,ix,ss(()=>this.#I,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));#lA=(i2(this,iC),i2(this,iT,ss(()=>this.#I,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){i2(this,iO),this.#I=e}connectedCallback(){let e=this.#I.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#I.clientHeight?requestAnimationFrame(n):this.#I.scrollToPosition({position:t})};i6(n)}}}),(iF=[],iH=[],ij=[],i_=[],iU=[],iz=[],iV=[],iW=[],i$=[],iB=[],iX=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iI=[se("scrolltoupper")],iL=[sl("upper-threshold-item-count",!0)],iA=[se("scrolltolower")],iP=[sl("lower-threshold-item-count",!0)],iR=[se("lynxscroll"),se("lynxscrollend"),se("snap")],iN=[se("scrolltoupperedge")],iD=[se("scrolltoloweredge")],i1(this,ik={value:i3(function(e,t){let n=null!==t?parseFloat(t):0,l=0===n?this.#q():this.#I.children[n-1];l&&this.#lP?.unobserve(l);let a=null!==e?parseFloat(e):0,i=0===a?this.#q():this.#I.children[a-1];i&&this.#lP?.observe(i)},"#handleUpperThresholdItemCountChange")},iL,{kind:"method",name:"#handleUpperThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#lM in e,get:e=>e.#lM},metadata:e},null,iF),i1(this,iM={value:i3(function(e,t){let n=null!==t?parseFloat(t):0,l=0===n?this.#Y():this.#I.children[this.#I.children.length-n];l&&this.#lR?.unobserve(l);let a=null!==e?parseFloat(e):0,i=0===a?this.#Y():this.#I.children[this.#I.children.length-a];i&&this.#lR?.observe(i)},"#handleLowerThresholdItemCountChange")},iP,{kind:"method",name:"#handleLowerThresholdItemCountChange",static:!1,private:!0,access:{has:e=>#lN in e,get:e=>e.#lN},metadata:e},null,iF),i1(null,null,iI,{kind:"field",name:"#updateEventSwitches",static:!1,private:!0,access:{has:e=>#lD in e,get:e=>e.#lD,set:(e,t)=>{e.#lD=t}},metadata:e},iH,ij),i1(null,null,iA,{kind:"field",name:"#updateScrollToLowerEventSwitches",static:!1,private:!0,access:{has:e=>#lF in e,get:e=>e.#lF,set:(e,t)=>{e.#lF=t}},metadata:e},i_,iU),i1(null,null,iR,{kind:"field",name:"#handleScrollEventsSwitches",static:!1,private:!0,access:{has:e=>#el in e,get:e=>e.#el,set:(e,t)=>{e.#el=t}},metadata:e},iz,iV),i1(null,null,iN,{kind:"field",name:"#handleScrollToUpperEdgeEventEnable",static:!1,private:!0,access:{has:e=>#lH in e,get:e=>e.#lH,set:(e,t)=>{e.#lH=t}},metadata:e},iW,i$),i1(null,null,iD,{kind:"field",name:"#handleScrollToLowerEdgeEventEnable",static:!1,private:!0,access:{has:e=>#lj in e,get:e=>e.#lj,set:(e,t)=>{e.#lj=t}},metadata:e},iB,iX),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["upper-threshold-item-count","lower-threshold-item-count"];#I=i2(this,iF);#l_=si(()=>this.#I.shadowRoot,"#content");#lP;#lR;#lU;#$=0;#B=0;#lz=!1;#W;#q=si(()=>this.#I.shadowRoot,"#upper-threshold-observer");#Y=si(()=>this.#I.shadowRoot,"#lower-threshold-observer");#K(){let e=null!==this.#I.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:l,scrollWidth:a}=this.#l_(),i={scrollTop:t,scrollLeft:n,scrollHeight:l,scrollWidth:a,deltaX:n-this.#$,deltaY:t-this.#B,attachedCells:e?this.#I.getVisibleCells():void 0};return this.#$=n,this.#B=t,i}#lV=e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltoupper",{...i5,detail:this.#K()}))};#lD=i2(this,iH,e=>{if(e?this.#I.setAttribute("x-enable-scrolltoupper-event",""):this.#I.removeAttribute("x-enable-scrolltoupper-event"),this.#tO.scrolltoupper=e,e){this.#lP||(this.#lP=new IntersectionObserver(this.#lV,{root:this.#l_()})),this.#lU||(this.#lU=new MutationObserver(this.#lW));let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#lP.observe(n),this.#lU.observe(this.#I,{childList:!0})}else this.#lP&&(this.#lP.disconnect(),this.#lP=void 0),this.#lU&&(this.#lU.disconnect(),this.#lU=void 0)});get #lM(){return ik.value}#l$=(i2(this,ij),e=>{let{isIntersecting:t}=e[0];t&&this.#I.dispatchEvent(new CustomEvent("scrolltolower",{...i5,detail:this.#K()}))});#tO={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};#lF=i2(this,i_,e=>{if(this.#tO.scrolltolower=e,e?this.#I.setAttribute("x-enable-scrolltolower-event",""):this.#I.removeAttribute("x-enable-scrolltolower-event"),e){this.#lR||(this.#lR=new IntersectionObserver(this.#l$,{root:this.#l_()})),this.#lU||(this.#lU=new MutationObserver(this.#lW));let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#lR.observe(n),this.#lU.observe(this.#I,{childList:!0})}else this.#lR&&(this.#lR.disconnect(),this.#lR=void 0),this.#lU&&(this.#lU.disconnect(),this.#lU=void 0)});get #lN(){return iM.value}#lW=(i2(this,iU),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#tO.scrolltolower){this.#lR&&(this.#lR.disconnect(),this.#lR=void 0),this.#lR=new IntersectionObserver(this.#l$,{root:this.#l_()});let e=this.#I.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#Y():this.#I.children[this.#I.children.length-t];n&&this.#lR.observe(n)}if(null!==this.#I.getAttribute("x-enable-scrolltoupper-event")){this.#lP&&(this.#lP.disconnect(),this.#lP=void 0),this.#lP=new IntersectionObserver(this.#lV,{root:this.#l_()});let e=this.#I.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#q():this.#I.children[t-1];n&&this.#lP.observe(n)}}});#lB=null;#Q=()=>{this.#lz&&!sc&&(clearTimeout(this.#W),this.#W=setTimeout(()=>{this.#et()},100)),this.#I.dispatchEvent(new CustomEvent("lynxscroll",{...i5,detail:this.#K()}))};#el=i2(this,iz,(e,t)=>{this.#tO[t]=e;let{lynxscroll:n,lynxscrollend:l,snap:a}=this.#tO,i=this.#I.getAttribute("scroll-event-throttle");this.#lz=null!==l||null!==a;let s=this.#l_();if(this.#lB&&s.removeEventListener("scroll",this.#lB),null!==scroll||this.#lz){let e=null!==i?parseFloat(i):0,t=sq(this.#Q,e,{leading:!0,trailing:!1});this.#lB=t,s.addEventListener("scroll",this.#lB),this.#$=0,this.#B=0}sc&&this.#lz?s.addEventListener("scrollend",this.#et):s.removeEventListener("scrollend",this.#et)});#G=(i2(this,iV),e=>{let{isIntersecting:t,target:n}=e[0],l=n.id;t&&("upper-threshold-observer"===l?this.#I.dispatchEvent(new CustomEvent("scrolltoupperedge",{...i5,detail:this.#K()})):"lower-threshold-observer"===l&&this.#I.dispatchEvent(new CustomEvent("scrolltoloweredge",{...i5,detail:this.#K()})))});#lH=i2(this,iW,e=>{e?this.#I.setAttribute("x-enable-scrolltoupperedge-event",""):this.#I.removeAttribute("x-enable-scrolltoupperedge-event"),this.#lX(e)});#lX=(i2(this,i$),sd(this.#l_,this.#q,this.#G));#lj=i2(this,iB,e=>{e?this.#I.setAttribute("x-enable-scrolltoloweredge-event",""):this.#I.removeAttribute("x-enable-scrolltoloweredge-event"),this.#lq(e)});#lq=(i2(this,iX),sd(this.#l_,this.#Y,this.#G));#et=()=>{let e=this.#I.getAttribute("item-snap");if(this.#I.dispatchEvent(new CustomEvent("lynxscrollend",{...i5})),null!==e){let e=Array.from(this.#I.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#l_().scrollTop,n=this.#l_().scrollLeft,l=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#I.dispatchEvent(new CustomEvent("snap",{...i5,detail:{position:l&&e.indexOf(l),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#I=e}}),(iG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iq=[sl("list-type",!0)],i1(this,iY={value:i3(function(e){if("waterfall"===e)this.#lY(),this.#k||this.#lG(),this.#lU||(this.#lU=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#lG()}),this.#lU.observe(this.#I,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#lU?.disconnect(),this.#lU=void 0;for(let e=0;e<this.#I.children.length;e++)this.#I.children[e].removeAttribute("slot");this.#I.shadowRoot?.querySelector(`slot[name=${sY}]`)?.remove()}},"#handlerListType")},iq,{kind:"method",name:"#handlerListType",static:!1,private:!0,access:{has:e=>#lK in e,get:e=>e.#lK},metadata:e},null,iG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#I=i2(this,iG);#l_=si(()=>this.#I.shadowRoot,"#content");#lJ=si(()=>this.#I.shadowRoot,'div[part="lower-threshold-observer"]');#k;#lU;#lY=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sY}`),this.#I.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#lZ=()=>{let e=parseFloat(this.#I.getAttribute("span-count")||this.#I.getAttribute("column-count")||"")||1,t="vertical"===(this.#I.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let l=0;l<this.#I.children.length;l++){let a=this.#I.children[l],i=getComputedStyle(a).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(a).getPropertyValue("--list-cross-axis-gap"),r=t?a.getBoundingClientRect().height+parseFloat(i):a.getBoundingClientRect().width+parseFloat(i);if(null!==a.getAttribute("full-span")){let l=n[0];for(let t=1;t<e;t++)n[t]>l&&(l=n[t]);for(let t=0;t<e;t++)n[t]=l+r;t?(a.setAttribute(`${sG}-left`,"0"),a.setAttribute(`${sG}-top`,`${l}px`)):(a.setAttribute(`${sG}-left`,`${l}px`),a.setAttribute(`${sG}-top`,"0"))}else{let l=0,i=n[0];for(let t=1;t<e;t++)n[t]<i&&(l=t,i=n[t]);let o=`calc(${l} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,l)} * ${s})`;t?(a.setAttribute(`${sG}-left`,o),a.setAttribute(`${sG}-top`,`${i}px`)):(a.setAttribute(`${sG}-left`,`${i}px`),a.setAttribute(`${sG}-top`,o)),n[l]+=r}}for(let e=0;e<this.#I.children.length;e++){let t=this.#I.children[e];t.style.setProperty("left",t.getAttribute(`${sG}-left`)),t.style.setProperty("top",t.getAttribute(`${sG}-top`)),t.setAttribute("slot",sY)}let l=this.#I.getAttribute("x-enable-scrolltolower-event");if(null!==l&&"false"!==l){let e=this.#lJ(),t=this.#I.getAttribute("scroll-orientation")||"vertical",n=this.#l_();"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollHeight-1)}px`),e.style.setProperty("right","unset"))}};constructor(e){this.#I=e}#lG=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#lZ()})}),Array.from(this.#I.children).forEach(e=>{this.#k?.observe(e)})};get #lK(){return iY.value}})],sf)],iQ=[],i0=HTMLElement,class extends i0{static{iJ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(i0[Symbol.metadata]??null):void 0;i1(null,iK={value:iJ},iZ,{kind:"class",name:iJ.name,metadata:e},null,iQ),iJ=iK.value,e&&Object.defineProperty(iJ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#l_=si(()=>this.shadowRoot,"#content");#lQ={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#l0={};get scrollTop(){return this.#l_().scrollTop}set scrollTop(e){this.#l_().scrollTop=e}get scrollLeft(){return this.#l_().scrollTop}set scrollLeft(e){this.#l_().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.#l_().scrollTop=0,this.#l_().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.#l_().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#l1=e=>{if(!this.#lQ.isScrolling)return;this.#lQ.lastTimestamp||(this.#lQ.lastTimestamp=e);let t=this.#l_(),n=(e-this.#lQ.lastTimestamp)/1e3*this.#lQ.rate;t.scrollBy({left:n,top:n,behavior:"smooth"}),this.#lQ.lastTimestamp=e,t.scrollTop+t.clientHeight>=t.scrollHeight&&this.#lQ.autoStop?(t.scrollTop=t.scrollHeight-t.clientHeight,this.#lQ.isScrolling=!1):requestAnimationFrame(this.#l1)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#lQ={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop},requestAnimationFrame(this.#l1)}else this.#lQ.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#l0),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)}})};#l2=()=>Object.values(this.#l0).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#l3=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",l="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#l2();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...i5,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#l2()}}))},100);return}if(l){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#l0[n]&&delete this.#l0[n]:this.#l0[n]=e.target;return}};connectedCallback(){this.#l_().addEventListener("contentvisibilityautostatechange",this.#l3,{passive:!0})}static{i2(iJ,iQ)}}},198:function(e,t,n){n.a(e,async function(e,t){try{var l=n(506);n(244),n(766),n(569);var a=e([l]);l=(a.then?(await a)():a)[0];let s=document.getElementById("qr-scanner"),r=document.getElementById("lynx-view"),o=document.getElementById("back-button"),d=document.getElementById("nav"),c="preinstalled/homepage.json";o.addEventListener("click",()=>{i(c)});let h=new QrScanner(s,e=>{console.log("qr",e),r.style.visibility="visible",h.stop();let t=e.data;i(t)},{highlightScanRegion:!0,highlightCodeOutline:!0});function i(e){let t=window.matchMedia("(prefers-color-scheme: dark)").matches?"Dark":"Light";if(r.onNativeModulesCall=(e,t)=>{"openScan"===e?(r.style.visibility="hidden",h.start()):"openSchema"===e&&i(t)},r.globalProps={theme:t},e===c)d.style.display="none",r.url=e,d.style.setProperty("--bar-color",null);else{let{searchParams:t}=new URL(e);t.has("bar_color")&&d.style.setProperty("--bar-color",`#${t.get("bar_color")}`),t.has("fullscreen")&&"true"===t.get("fullscreen")?d.style.display="none":d.style.display="flex",r.url=e}}i(c),window.addEventListener("message",e=>{if(e.data&&"setLynxViewUrl"===e.data.method&&e.data.url){let t=r.parentElement;r.remove(),(r=document.createElement("lynx-view")).setAttribute("style","flex: 0 1 100vh; height:100vh;width:100vw;"),t.append(r),i(e.data.url)}}),t()}catch(e){t(e)}})}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,exports:{}};return l[e](n,n.exports,i),n.exports}i.m=l,s="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",r="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",o="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",d=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},i.a=(e,t,n)=>{n&&((l=[]).d=-1);var l,a,i,c,h=new Set,u=e.exports,m=new Promise((e,t)=>{c=t,i=e});m[r]=u,m[s]=e=>{l&&e(l),h.forEach(e),m.catch(function(){})},e.exports=m,t(e=>{a=e.map(e=>{if(null!==e&&"object"==typeof e){if(e[s])return e;if(e.then){var t=[];t.d=0,e.then(e=>{n[r]=e,d(t)},e=>{n[o]=e,d(t)});var n={};return n[s]=e=>e(t),n}}var l={};return l[s]=function(){},l[r]=e,l});var t,n=()=>a.map(e=>{if(e[o])throw e[o];return e[r]}),i=new Promise(e=>{(t=()=>e(n)).r=0;var i=e=>e!==l&&!h.has(e)&&(h.add(e),e&&!e.d&&(t.r++,e.push(t)));a.map(e=>e[s](i))});return t.r?i:n()},e=>(e?c(m[o]=e):i(u),d(l))),l&&l.d<0&&(l.d=0)},i.F={},i.E=e=>{Object.keys(i.F).map(t=>{i.F[t](e)})},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=(e,t)=>Promise.all(Object.keys(i.f).reduce((n,l)=>(i.f[l](e,n,t),n),[])),i.u=e=>"static/js/async/"+(({361:"web-core-main-thread-apis",8:"legacy-wasm-chunk"})[e]||e)+".js",i.miniCssF=e=>""+e+".css",i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c={},i.l=function(e,t,n,l,a){if(c[e])return void c[e].push(t);if(void 0!==n)for(var s,r,o=document.getElementsByTagName("script"),d=0;d<o.length;d++){var h=o[d];if(h.getAttribute("src")==e||h.getAttribute("data-webpack")=="@lynx-js/web-explorer:"+n){s=h;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack","@lynx-js/web-explorer:"+n),a&&s.setAttribute("fetchpriority",a),s.src=e),c[e]=[t];var u=function(t,n){s.onerror=s.onload=null,clearTimeout(m);var l=c[e];if(delete c[e],s.parentNode&&s.parentNode.removeChild(s),l&&l.forEach(function(e){return e(n)}),t)return t(n)},m=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),r&&document.head.appendChild(s)},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h=[],i.O=(e,t,n,l)=>{if(t){l=l||0;for(var a=h.length;a>0&&h[a-1][2]>l;a--)h[a]=h[a-1];h[a]=[t,n,l];return}for(var s=1/0,a=0;a<h.length;a++){for(var[t,n,l]=h[a],r=!0,o=0;o<t.length;o++)(!1&l||s>=l)&&Object.keys(i.O).every(e=>i.O[e](t[o]))?t.splice(o--,1):(r=!1,l<s&&(s=l));if(r){h.splice(a--,1);var d=n();void 0!==d&&(e=d)}}return e},i.v=function(e,t,n,l){var a=fetch(i.p+"static/wasm/"+n.slice(0,8)+".module.wasm"),s=function(){return a.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,l)}).then(function(t){return Object.assign(e,t.instance.exports)})};return a.then(function(t){return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(t,l).then(function(t){return Object.assign(e,t.instance.exports)},function(e){if("application/wasm"!==t.headers.get("Content-Type"))return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e),s();throw e}):s()})},i.g.importScripts&&(u=i.g.location+"");var s,r,o,d,c,h,u,m=i.g.document;if(!u&&m&&(m.currentScript&&"SCRIPT"===m.currentScript.tagName.toUpperCase()&&(u=m.currentScript.src),!u)){var p=m.getElementsByTagName("script");if(p.length)for(var v=p.length-1;v>-1&&(!u||!/^http(s?):/.test(u));)u=p[v--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");i.p=(u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"))+"../../",i.b=document.baseURI||self.location.href,e={410:0},i.f.j=function(t,n,l){var a=i.o(e,t)?e[t]:void 0;if(0!==a)if(a)n.push(a[2]);else{var s=new Promise((n,l)=>a=e[t]=[n,l]);n.push(a[2]=s);var r=i.p+i.u(t),o=Error();i.l(r,function(n){if(i.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var l=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+l+": "+s+")",o.name="ChunkLoadError",o.type=l,o.request=s,a[1](o)}},"chunk-"+t,t,l)}},i.F.j=t=>{if(!i.o(e,t)||void 0===e[t]){e[t]=null;var n=document.createElement("link");n.charset="utf-8",i.nc&&n.setAttribute("nonce",i.nc),n.rel="prefetch",n.as="script",n.href=i.p+i.u(t),document.head.appendChild(n)}},i.O.j=t=>0===e[t],t=(t,n)=>{var l,a,[s,r,o]=n,d=0;if(s.some(t=>0!==e[t])){for(l in r)i.o(r,l)&&(i.m[l]=r[l]);if(o)var c=o(i)}for(t&&t(n);d<s.length;d++)a=s[d],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return i.O(c)},(n=globalThis.webpackChunk_lynx_js_web_explorer=globalThis.webpackChunk_lynx_js_web_explorer||[]).forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n)),i.O(0,["410"],()=>{i.E("361")},5);var b=i(198);b=i.O(b)})();
|