@lynx-js/web-rsbuild-server-middleware 0.19.9 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +3 -3
- package/www/static/css/index.css +1 -1
- package/www/static/js/async/legacy-wasm-js.js +2 -0
- package/www/static/js/async/lynx-core-chunk.js +3 -0
- package/www/static/js/async/web-core-main-chunk.js +1 -0
- package/www/static/js/async/web-core-template-loader-thread.js +6 -0
- package/www/static/js/async/web-core-worker-chunk.js +1 -0
- package/www/static/js/async/web-elements.js +309 -0
- package/www/static/js/index.js +3 -315
- package/www/static/wasm/ad79a345.module.wasm +0 -0
- package/www/static/wasm/b23de6ec.module.wasm +0 -0
- package/www/static/js/async/legacy-wasm-chunk.js +0 -1
- package/www/static/js/async/web-core-main-thread-apis.js +0 -1
- package/www/static/js/async/web-core-worker-runtime.js +0 -3
- package/www/static/js/async/web-worker-runtime-main-thread.js +0 -1
- package/www/static/wasm/38288526.module.wasm +0 -0
- package/www/static/wasm/754b96d8.module.wasm +0 -0
package/www/static/js/index.js
CHANGED
|
@@ -1,319 +1,7 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,n,i,l,a,s,r,o,d,c,h,u={1726(){},5020(){},3697(){},4234(e,t,n){n.d(t,{Yx:()=>ev.Y,Ke:()=>E,g:()=>D,mB:()=>K,SP:()=>"l-uid",er:()=>a,Gq:()=>r,pT:()=>z,im:()=>g,js:()=>i,HO:()=>en,gj:()=>P,jK:()=>B,tl:()=>o,Pb:()=>s,O4:()=>em,c1:()=>m,Uc:()=>eb,F6:()=>W,PC:()=>R,gI:()=>el,C6:()=>"l-dset",pP:()=>l,Gm:()=>h,pd:()=>y,Wx:()=>eu,hO:()=>T,eZ:()=>_,JW:()=>S,E_:()=>k,M$:()=>es,gx:()=>U,tf:()=>ea,iH:()=>A,Fw:()=>H,JA:()=>d,qz:()=>er,Sy:()=>$,oZ:()=>"l-part",Hf:()=>x,o2:()=>I,$4:()=>b,hh:()=>O,ZU:()=>N,F0:()=>et,vr:()=>V,Ve:()=>C,Is:()=>X,zk:()=>M,I7:()=>u,vQ:()=>v,yn:()=>Y,k3:()=>G,vn:()=>q,WS:()=>Z,BE:()=>J,y:()=>c,a$:()=>L,PM:()=>j,VK:()=>F,nk:()=>Q,hv:()=>ei,OE:()=>p,Zu:()=>w,o3:()=>ee});let i="l-css-id",l="l-comp-id",a="l-p-comp-uid",s="l-e-name",r="lynx-tag",o="l-comp-cfg",d="l-disposed",c="l-template",h="lynx-default-display-linear",u="__lynx_timing_flag",m={platform:"web",lynxSdkVersion:"3.0"},p=[` [lynx-default-display-linear="false"] * {
|
|
2
|
-
--lynx-display: flex;
|
|
3
|
-
--lynx-display-toggle: var(--lynx-display-flex);
|
|
4
|
-
}`,`[lynx-default-overflow-visible="true"] x-view{
|
|
5
|
-
overflow: visible;
|
|
6
|
-
}`],b={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},v={"X-INPUT":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"},"X-TEXTAREA":{blur:"lynxblur",focus:"lynxfocus",input:"lynxinput"}},g={tap:"click",scroll:"lynxscroll",scrollend:"lynxscrollend",touch:"overlaytouch"};function f(e,t,n=!0,i=!1,l){return{name:e,isSync:t,hasReturn:n,hasReturnTransfer:i,bufferSize:l}}let y=f("__postExposure",!1,!1),E=f("publicComponentEvent",!1,!1),S=f("publishEvent",!1,!1),w=f("postOffscreenEventEndpoint",!1,!1),_=f("switchExposureServiceEndpoint",!1,!1),x=f("mainThreadStart",!1,!1),C=f("updateData",!1,!0),T=f("sendGlobalEventEndpoint",!1,!1),O=f("dispose",!1,!0),L=f("start",!1,!0),I=f("reportError",!1,!1),k=f("flushElementTree",!1,!0),A=f("callLepusMethod",!1,!0),P=f("multiThreadExposureChangedEndpoint",!1,!1),M=f("__invokeUIMethod",!1,!0),R=f("__setNativeProps",!1,!0),N=f("__getPathInfo",!1,!0),D=f("nativeModulesCall",!1,!0),F=f("napiModulesCall",!1,!0,!0),H=f("getCustomSections",!1,!0),j=f("markTiming",!1,!1),W=f("postTimingFlags",!1,!1),z=f("__triggerComponentEvent",!1,!1),V=f("__selectComponent",!1,!0),U=f("dispatchLynxViewEvent",!1,!1),$=f("dispatchNapiModule",!1,!1),B=f("dispatchCoreContextOnBackground",!1,!1),X=f("dispatchJSContextOnMainThread",!1,!1),q=f("__triggerElementMethod",!1,!1),Y=f("updateGlobalProps",!1,!1),G=f("updateI18nResources",!1,!1),J=f("updateI18nResource",!1,!1),K=f("dispatchI18nResource",!1,!1),Q=f("queryComponent",!1,!0),Z=f("updateBTSTemplateCacheEndpoint",!1,!0),ee=f("loadTemplateMultiThread",!1,!0),et=f("reload",!1,!1);(eo=eu||(eu={}))[eo.ID_SELECTOR=0]="ID_SELECTOR",eo[eo.REF_ID=1]="REF_ID",eo[eo.UNIQUE_ID=2]="UNIQUE_ID",(ed=em||(em={}))[ed.SUCCESS=0]="SUCCESS",ed[ed.UNKNOWN=1]="UNKNOWN",ed[ed.NODE_NOT_FOUND=2]="NODE_NOT_FOUND",ed[ed.METHOD_NOT_FOUND=3]="METHOD_NOT_FOUND",ed[ed.PARAM_INVALID=4]="PARAM_INVALID",ed[ed.SELECTOR_NOT_SUPPORTED=5]="SELECTOR_NOT_SUPPORTED",ed[ed.NO_UI_FOR_NODE=6]="NO_UI_FOR_NODE",(ec=ep||(ep={}))[ec.UPDATE=0]="UPDATE",ec[ec.RESET=1]="RESET",(eh=eb||(eb={}))[eh.START=0]="START",eh[eh.PLAY=1]="PLAY",eh[eh.PAUSE=2]="PAUSE",eh[eh.CANCEL=3]="CANCEL",eh[eh.FINISH=4]="FINISH";let en=e=>`${e.locale}_${e.channel}_${e.fallback_url}`,ei="i18nResourceMissed";class el{data;constructor(e){this.data=e}setData(e){this.data=e}}class ea extends EventTarget{_config;constructor(e){super(),this._config=e}postMessage(...e){console.error("[lynx-web] postMessage not implemented, args:",...e)}dispatchEvent(e){let{rpc:t,sendEventEndpoint:n}=this._config;return t.invoke(n,[e]),3}__start(){let{rpc:e,receiveEventEndpoint:t}=this._config;e.registerHandler(t,({type:e,data:t})=>{super.dispatchEvent(new MessageEvent(e,{data:t??{}}))})}}let es=({timingKey:e,pipelineId:t,timeStamp:n,markTiming:i,cacheMarkTimings:l})=>{l.records.push({timingKey:e,pipelineId:t,timeStamp:n??performance.now()+performance.timeOrigin}),l.timeout||(l.timeout=setTimeout(()=>{i(l.records),l.records=[],l.timeout=null},500))},er=(e,t)=>{e(t.records),t.records=[],t.timeout&&(clearTimeout(t.timeout),t.timeout=null)};var eo,ed,ec,eh,eu,em,ep,eb,ev=n(6894)},6894(e,t,n){n.d(t,{Y:()=>s});let i=["navigator","postMessage","window"],l=[e=>(e.appType=e.appType??(e.lepusCode.root.startsWith("(function (globDynamicComponentEntry")?"lazy":"card"),e.version=2,e.lepusCode=Object.fromEntries(Object.entries(e.lepusCode).filter(([e,t])=>"string"==typeof t)),e)];async function a(e,t,n,l,a){return Promise.all(Object.entries(e).filter(([e,t])=>"string"==typeof t).map(async([e,s])=>{let r;return[e,await t((r=`${a}/${e.replaceAll("/","_")}.js`,[n?"//# allFunctionsCalledOnLoad":"",'\n(function() { "use strict"; const ',i.join("=void 0,"),"=void 0;\n","card"!==l?"module.exports=\n":"",s,"\n})()","\n//# sourceURL=",r].join("")),`${a}-${e.replaceAll("/","_")}.js`)]})).then(Object.fromEntries)}async function s(e,t,n){let i;if(e.version=e.version??1,e.version>2)throw Error("Unsupported template, please upgrade your web-platform dependencies");for(;e.version<2&&(i=l[e.version-1]);)e=i(e);return{...e,lepusCode:await a(e.lepusCode,t,!0,e.appType,n)}}},8687(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(4234),a=e([i]);i=(a.then?(await a)():a)[0];class s extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data"];static observedAttributes=s.observedAttributeAsProperties.map(e=>e.toLowerCase());#e;#t;get url(){return this.#t}set url(e){this.#t=e,this.#n()}#i={};get globalProps(){return this.#i}set globalProps(e){"string"==typeof e?this.#i=JSON.parse(e):this.#i=e}#l={};get initData(){return this.#l}set initData(e){"string"==typeof e?this.#l=JSON.parse(e):this.#l=e}#a=[];get initI18nResources(){return this.#a}set initI18nResources(e){"string"==typeof e?this.#a=JSON.parse(e):this.#a=e}updateI18nResources(e,t){this.#e?.updateI18nResources(e,t)}#s={page:"div"};get overrideLynxTagToHTMLTagMap(){return this.#s}set overrideLynxTagToHTMLTagMap(e){"string"==typeof e?this.#s=JSON.parse(e):this.#s=e}#r=[];#o;get onNativeModulesCall(){return this.#o}set onNativeModulesCall(e){for(let t of(this.#o=e,this.#r))t.resolve(e.apply(void 0,t.args));this.#r=[]}#d={};get nativeModulesMap(){return this.#d}set nativeModulesMap(e){this.#d=e}#c={};get napiModulesMap(){return this.#c}set napiModulesMap(e){this.#c=e}#h;get onNapiModulesCall(){return this.#h}set onNapiModulesCall(e){this.#h=(t,n,i,l)=>e(t,n,i,this,l)}get lynxGroupId(){return this.getAttribute("lynx-group-id")?Number(this.getAttribute("lynx-group-id")):void 0}set lynxGroupId(e){e?this.setAttribute("lynx-group-id",e.toString()):this.removeAttribute("lynx-group-id")}updateData(e,t,n){this.#e?.updateData(e,t,n)}updateGlobalProps(e){this.#e?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#e?.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#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.#i=JSON.parse(n);break;case"init-data":this.#l=JSON.parse(n)}}get threadStrategy(){return this.getAttribute("thread-strategy")}set threadStrategy(e){e?this.setAttribute("thread-strategy",e):this.removeAttribute("thread-strategy")}get injectHeadLinks(){return"false"!==this.getAttribute("inject-head-links")}set injectHeadLinks(e){e?this.setAttribute("inject-head-links","true"):this.removeAttribute("inject-head-links")}injectStyleRules=[];disconnectedCallback(){this.#e?.dispose(),this.#e=void 0,this.shadowRoot?.querySelector(`[${l.Gq}="page"]`)?.setAttribute(l.JA,""),this.shadowRoot&&(this.shadowRoot.innerHTML="")}customTemplateLoader;browserConfig;#u=!1;#n(){!this.#u&&this.isConnected&&(this.#u=!0,queueMicrotask(()=>{if(this.#u=!1,!this.isConnected)return;let e=this.getAttribute("ssr");if(this.#e&&this.disconnectedCallback(),this.#t){let t={page:"div",view:"x-view",text:"x-text",image:"x-image",list:"x-list",svg:"x-svg",input:"x-input","x-input-ng":"x-input",...this.overrideLynxTagToHTMLTagMap};this.shadowRoot||this.attachShadow({mode:"open"});let n=this.lynxGroupId,a=this.threadStrategy??"all-on-ui";"multi-thread"===a&&console.warn('[LynxView] multi-thread strategy is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.');let s=(0,i.P)({threadStrategy:a,tagMap:t,shadowRoot:this.shadowRoot,templateUrl:this.#t,globalProps:this.#i,initData:this.#l,nativeModulesMap:this.#d,napiModulesMap:this.#c,lynxGroupId:n,initI18nResources:this.#a,browserConfig:this.browserConfig,callbacks:{nativeModulesCall:(...e)=>this.onNativeModulesCall?this.onNativeModulesCall(...e):new Promise(t=>{this.#r.push({args:e,resolve:t})}),napiModulesCall:(...e)=>this.onNapiModulesCall?.(...e),onError:(e,t,n)=>{this.dispatchEvent(new CustomEvent("error",{detail:{sourceMap:{offset:{line:2,col:0}},error:e,release:t,fileName:n}}))},customTemplateLoader:this.customTemplateLoader,reload:()=>{this.reload()}},ssr:e?JSON.parse(decodeURI(e)):void 0});if(this.#e=s,!e){let e=document.createElement("style");this.shadowRoot.append(e);let t=e.sheet;for(let e of l.OE)t.insertRule(e);for(let e of this.injectStyleRules)t.insertRule(e);"false"!==this.getAttribute("inject-head-links")&&document.head.querySelectorAll('link[rel="stylesheet"]').forEach(e=>{let n=e.href;t.insertRule(`@import url("${n}");`)})}}}))}connectedCallback(){this.#n()}}customElements.get(s.tag)?console.warn(`[${s.tag}] has already been defined`):customElements.define(s.tag,s),t()}catch(e){t(e)}})},3379(e,t,n){n.a(e,async function(e,i){try{n.d(t,{P:()=>s});var l=n(7826),a=e([l]);l=(a.then?(await a)():a)[0];let r=window.devicePixelRatio,o=document.documentElement.clientWidth*r,d=document.documentElement.clientHeight*r;function s(e){let{shadowRoot:t,callbacks:n,templateUrl:i,globalProps:a,initData:s,nativeModulesMap:r,napiModulesMap:c,tagMap:h,lynxGroupId:u,threadStrategy:m="multi-thread",initI18nResources:p,ssr:b,browserConfig:v}=e;return(0,l.$)(i,{tagMap:h,initData:s,globalProps:a,nativeModulesMap:r,napiModulesMap:c,browserConfig:{pixelRatio:v?.pixelRatio??window.devicePixelRatio,pixelWidth:v?.pixelWidth??o,pixelHeight:v?.pixelHeight??d},initI18nResources:p},t,u,m,n,b)}i()}catch(e){i(e)}})},3493(e,t,n){n.a(e,async function(e,t){try{var i=n(3379),l=n(8687),a=e([i,l]);[i,l]=a.then?(await a)():a,t()}catch(e){t(e)}})},5969(e,t,n){n.d(t,{C:()=>r});var i=n(4234);class l{port;name;incId=0;#m=[];#p={};#b=new TextEncoder;#v=new TextDecoder;#g=new Map;constructor(e,t){this.port=e,this.name=t,e&&(e.onmessage=e=>this.#f(e.data))}setMessagePort(e){if(this.port)throw Error("Rpc port already set");for(let t of(this.port=e,this.#m))this.postMessage(t.message,t.detail);this.#m=[],e.onmessage=e=>this.#f(e.data)}postMessage(e,t){this.port?this.port.postMessage(e,t):this.#m.push({message:e,detail:t})}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,i=!e.sync&&e.retId?l.createRetEndpoint(e.retId):void 0;try{let l=await t(...e.data),a,s=[];if(e.sync?a=l:e.hasTransfer?{data:a,transfer:s}=l||{}:a=l,e.sync){if(e.buf){let t=JSON.stringify(a),n=new Uint32Array(e.buf,0,1),i=new Uint8Array(e.buf,4),l=new Uint8Array(e.buf.byteLength-4),{written:s}=this.#b.encodeInto(t,l);n[0]=s,i.set(l,0)}Atomics.store(n,0,1),Atomics.notify(n,0)}else e.retId&&this.invoke(i,[a,!1],s||[])}catch(t){console.error(t),e.sync?(Atomics.store(n,0,2),Atomics.notify(n,0),n[1]=2):this.invoke(i,[void 0,!0])}}else{let t=this.#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 i,l=this;Object.defineProperty(t,n,{get:()=>i,set(a){i=a,a&&l.registerHandlerRef(e,t,n)}})}}removeHandler(e){this.#g.delete(e.name)}invoke(e,t,n=[]){if(e.isSync){let i=e.bufferSize?new SharedArrayBuffer(e.bufferSize+4):void 0,l=new SharedArrayBuffer(4),a=new Int32Array(l);a[0]=0;let s={name:e.name,data:t,sync:!0,lock:l,buf:i};if(this.postMessage(s,{transfer:n}),Atomics.wait(a,0,0),2===a[0])throw null;if(!i)return;{let e=new Uint32Array(i,0,4)[0],t=new Uint8Array(i,4,e),n=new Uint8Array(e);return n.set(t,0),n?JSON.parse(this.#v.decode(n)):void 0}}if(e.hasReturn){let i,a,s;i=new Promise((e,t)=>{a=e,s=t});let r=l.createRetEndpoint(this.nextRetId);this.registerHandler(r,(e,t)=>{t&&s(),a(e)});let o={name:e.name,data:t,sync:!1,retId:r?.name,hasTransfer:e.hasReturnTransfer};return this.postMessage(o,{transfer:n}),i}{let i={name:e.name,data:t,sync:!1};this.postMessage(i,{transfer:n})}}createCallbackify(e,t){let n=this.createCall(e);return(...e)=>{let i=e.at(t);e.splice(t,1),n(...e).then(i)}}}let a=[],s=[];function r(e,t,n){var r,d,c;let h,u,m,p,b,v,g,f,y,E=(r=e,d=(y=t?{mainThreadRpc:new l((h=new MessageChannel).port1,"main-to-bg"),channelMainThreadWithBackground:h}:(u=new MessageChannel,m=new MessageChannel,p=o("lynx-main"),b={mode:"main",toUIThread:u.port2,toPeerThread:m.port1},p.postMessage(b,[u.port2,m.port1]),{mainThreadRpc:new l(u.port1,"ui-to-main"),mainThreadWorker:p,channelMainThreadWithBackground:m})).channelMainThreadWithBackground,c=n,g=new MessageChannel,r?(v=s[r]??o("lynx-bg"),s[r]=v):v=o("lynx-bg"),f={mode:"background",toUIThread:g.port2,toPeerThread:d.port2,systemInfo:{...i.c1,...c}},v.postMessage(f,[g.port2,d.port2]),{backgroundRpc:new l(g.port1,"ui-to-bg"),backgroundThreadWorker:v});return void 0!==e&&(a[e]?a[e]++:a[e]=1),{mainThreadRpc:y.mainThreadRpc,backgroundRpc:E.backgroundRpc,terminateWorkers:()=>{y.mainThreadWorker?.terminate(),void 0===e?E.backgroundThreadWorker.terminate():1===a[e]?(E.backgroundThreadWorker.terminate(),a[e]=0,s[e]=void 0):"number"==typeof a[e]&&a[e]>1&&a[e]--}}}function o(e){return new Worker(new URL(n.p+n.u("524"),n.b),Object.assign({},{type:"module",name:e},{type:void 0}))}},768(e,t,n){n.a(e,async function(e,i){try{n.d(t,{z:()=>o});var l=n(4234),a=n(6621),s=n(2244);let e=document.querySelector("script[nonce]"),d=e?.nonce||e?.getAttribute("nonce")||"",{prepareMainThreadAPIs:c}=await n.e("361","high").then(n.bind(n,7637));async function r(e){let t=document.createElement("iframe"),n=new Promise(e=>{let n=i=>{"lynx:mtsready"===i.data&&i.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc=`<!DOCTYPE html><html><head><script nonce="${d}">parent.postMessage("lynx:mtsready","*")</script></head><body style="display:none"></body></html>`,t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await n;let i=t.contentWindow,l=async e=>{let n=t.contentDocument.createElement("script");return n.fetchPriority="high",n.defer=!0,n.async=!1,n.nonce=d,t.contentDocument.head.appendChild(n),new Promise(async(t,l)=>{n.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},n.onerror=t=>l(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},n.src=e})};return{globalWindow:i,loadScript:l,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.nonce=d,e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let l=i?.module?.exports;return i.module={exports:void 0},l}throw Error(`Failed to load script: ${e}`,{cause:n})}}}function o(e,t,n,i,o,d,h){globalThis.module||Object.assign(globalThis,{module:{}});let u=new l.gI,{exposureChangedCallback:m}=(0,s.e)(t),p=r(t),{startMainThread:b,handleUpdatedData:v}=c(e,t,document,p,m,i,o,(e,t,n)=>{d.onError?.(e,n,"lepus.js")},e=>{(0,a.D)(t,l.hv,e)},e=>(u.setData(e),u),n,void 0,!0),g=async e=>{if(h){let n=[],i=t.querySelectorAll(`[${l.SP}]`),a=i.length;for(let e=0;e<a;e++){let t=i[e];n[Number(t.getAttribute(l.SP))]=new WeakRef(t)}let s=t.querySelector("style:nth-of-type(2)"),r=s?.sheet,o=[],d=r?.cssRules.length??0;for(let e=0;e<d;e++){let t=r?.cssRules[e];if(t?.constructor.name==="CSSStyleRule"){let n=parseFloat(t.selectorText.substring(l.SP.length+3));void 0===n||isNaN(n)||(o[n]=e)}}await b(e,{lynxUniqueIdToElement:n,lynxUniqueIdToStyleRulesIndex:o,...h,cardStyleElement:s})}else await b(e)},f=async(e,t)=>v(e,t);return{start:g,updateDataMainThread:f,updateI18nResourcesMainThread:e=>{u.setData(e)}}}i()}catch(e){i(e)}},1)},6865(e,t,n){n.d(t,{k:()=>h});var i=n(4234),l=n(6993);let a={CreateElement:1,SetAttribute:2,RemoveAttribute:3,Append:4,Remove:5,ReplaceWith:6,InsertBefore:7,EnableEvent:8,RemoveChild:9,StyleDeclarationSetProperty:10,StyleDeclarationRemoveProperty:11,SetTextContent:12,sheetInsertRule:13,sheetRuleUpdateCssText:14};function s(){}let r=["detail","keyCode","charCode","elapsedTime","propertyName","pseudoElement","animationName","touches","targetTouches","changedTouches","x","y"],o=new Set(["isTrusted","target","currentTarget","type","bubbles","window","self","view","srcElement","eventPhase"]);var d=n(2515),c=n(2244);function h(e,t,n,h){(0,l.m)(e,"lepus.js",h.onError),function(e,t){let{shadowRoot:n}=t,{decodeOperation:l}=function(e){let{shadowRoot:t,onEvent:n}=e,i=new Set,l=[new WeakRef(t)],d=new WeakMap;function c(e){let t=l[e]?.deref();if(t)return t;throw Error(`[lynx-web] cannot find element with uniqueId: ${e}`)}function h(e){if(e.eventPhase!==Event.CAPTURING_PHASE&&e.currentTarget!==t)return;let i=e.target;if(i&&d.has(i)){let t=d.get(i),l=e.type,a={};for(let t of r)t in e&&(a[t]=function e(t){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||null==t)return t;if(t[Symbol.iterator])return[...t].map(e);if("object"==typeof t&&!(t instanceof EventTarget)){let n={};for(let i in t)o.has(i)||(n[i]=e(t[i]));return n}}(e[t]));n(l,t,e.bubbles,a)}}return{decodeOperation:function(e){let n;if(0===e.length)return;let r=0,{CreateElement:o,SetAttribute:u,RemoveAttribute:m,Append:p,Remove:b,ReplaceWith:v,InsertBefore:g,EnableEvent:f,RemoveChild:y,StyleDeclarationSetProperty:E,StyleDeclarationRemoveProperty:S,SetTextContent:w,sheetInsertRule:_,sheetRuleUpdateCssText:x}=a;for(;n=e[r++];){let a=e[r++];if(n===o){let t=document.createElement(e[r++]);l[a]=new WeakRef(t),d.set(t,a)}else{let l=c(a);switch(n){case u:{let t=e[r++],n=e[r++];l.setAttribute(t,n)}break;case m:l.removeAttribute(e[r++]);break;case p:{let t=e[r++];for(let n=0;n<t;n++){let t=c(e[r++]);l.appendChild(t)}}break;case b:l.remove();break;case v:{let t=e[r++],n=e.slice(r,r+t).map(e=>c(e));r+=t,l.replaceWith(...n)}break;case g:{let t=c(e[r++]),n=e[r++],i=n?c(n):null;l.insertBefore(t,i)}break;case f:let o=e[r++];l.addEventListener(o,s,{passive:!0}),i.has(o)||(t.addEventListener(o,h,{passive:!0,capture:!0}),i.add(o));break;case y:{let t=c(e[r++]);l.removeChild(t)}break;case E:l.style.setProperty(e[r++],e[r++],e[r++]);break;case S:l.style.removeProperty(e[r++]);break;case w:l.textContent=e[r++];break;case _:{let t=e[r++],n=e[r++];l.sheet.insertRule(n,t)}break;case x:{let t=e[r++];l.sheet.cssRules[t].style.cssText=e[r++]}}}}}}}({shadowRoot:n,onEvent:e.createCall(i.Zu)});e.registerHandler(i.E_,e=>{l(e)})}(e,{shadowRoot:t}),(0,d.c)(e,t),(0,c.g)(e,t),e.registerHandler(i.o3,n);let u=e.createCall(i.Hf);return{start:u,updateDataMainThread:e.createCall(i.Ve),updateI18nResourcesMainThread:e.createCall(i.k3)}}},9791(e,t,n){n.d(t,{i:()=>l});var i=n(4234);function l(e,t){return async()=>{await e.invoke(i.hh,[]),t()}}},2244(e,t,n){function i(e,t,n){if(t){if((t=t.trim()).endsWith("px"))return Number(t.substring(0,t.length-2));if(t.endsWith("%")){let i=Number(t.substring(0,t.length-1)),{width:l,height:a}=e.getBoundingClientRect();return(n?l:a)*i/100}}return 0}n.d(t,{g:()=>r,e:()=>s});var l=n(4234);let a=Symbol.for("lynx-scroll-container-dom");function s(e){let t=new WeakMap,n=new WeakMap,l=new WeakSet,s=(e,t,n)=>{let i=e.getAttribute("exposure-scene")??"",l={exposureID:n,exposureScene:i,"exposure-id":n,"exposure-scene":i},a=new CustomEvent(t?"uiappear":"uidisappear",{bubbles:!1,composed:!1,cancelable:!0,detail:l}),s=new CustomEvent(t?"exposure":"disexposure",{bubbles:!0,composed:!1,cancelable:!1,detail:l});Object.assign(a,l),e.dispatchEvent(a),e.dispatchEvent(s)},r=e=>{e.forEach(({target:e,isIntersecting:t})=>{t&&!l.has(e)?(s(e,!0,e.getAttribute("exposure-id")),l.add(e)):!t&&l.has(e)&&(s(e,!1,e.getAttribute("exposure-id")),l.delete(e))})};return{exposureChangedCallback:o=>{o.forEach(o=>{let d=n.get(o)??null,c=o.getAttribute("exposure-id");null!==d&&s(o,!1,d),n.set(o,c),t.get(o)?.disconnect(),t.delete(o),l.delete(o),null!==o.getAttribute("exposure-id")&&(n=>{let l=parseFloat(n.getAttribute("exposure-area")??"0")/100,s=i(n,n.getAttribute("exposure-screen-margin-top")),o=i(n,n.getAttribute("exposure-screen-margin-right")),d=i(n,n.getAttribute("exposure-screen-margin-bottom")),c=i(n,n.getAttribute("exposure-screen-margin-left")),h=i(n,n.getAttribute("exposure-ui-margin-top")),u=i(n,n.getAttribute("exposure-ui-margin-right")),m=i(n,n.getAttribute("exposure-ui-margin-bottom")),p=i(n,n.getAttribute("exposure-ui-margin-left")),b=n.parentElement;for(;b;)if(b[a]){b=b[a];break}else b=b.parentElement;let v=new IntersectionObserver(r,{rootMargin:`${(m?-1:1)*(s-m)}px ${(p?-1:1)*(o-p)}px ${(h?-1:1)*(d-h)}px ${(u?-1:1)*(c-u)}px`,root:b??e.parentElement,threshold:l});v.observe(n),t.set(n,v)})(o)})}}}function r(e,t){let{exposureChangedCallback:n}=s(t);e.registerHandler(l.gj,e=>{n(e.map(e=>t.querySelector(`[${l.SP}="${e}"]`)).filter(e=>null!==e))})}},4729(e,t,n){n.d(t,{k:()=>i});function i(e){return(t,n,i)=>{e(t,{processorName:n}).then(()=>i?.())}}},2515(e,t,n){n.d(t,{c:()=>a});var i=n(4234),l=n(6621);function a(e,t){e.registerHandler(i.gx,(e,n)=>{(0,l.D)(t,e,n)})}},6993(e,t,n){n.d(t,{m:()=>l});var i=n(4234);function l(e,t,n){e.registerHandler(i.o2,(e,i,l)=>{n?.(e,l,t)})}},9174(e,t,n){n.d(t,{r:()=>o});var i=n(4234);function l(e,t,n,l,a,s,r,o){let d,c=e;if(s){let t=e.querySelector(`[${i.SP}="${s}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for root_unique_id: ${s}`),o?.(i.O4.NODE_NOT_FOUND);return}}else if(l){let t=e.querySelector(`[${i.pP}="${l}"]`);if(t)c=t;else{console.error(`[lynx-web] cannot find dom for component_id: ${l}`),o?.(i.O4.NODE_NOT_FOUND);return}}if(t===i.Wx.ID_SELECTOR)d=n;else if(t===i.Wx.UNIQUE_ID)d=`[${i.SP}="${n}"]`;else{console.error(`[lynx-web] NYI: setnativeprops type ${t}`),o?.(i.O4.UNKNOWN);return}if(a){let e=null;try{e=c.querySelector(d)}catch(e){console.error(`[lynx-web] cannot use selector: ${d}`),o?.(i.O4.SELECTOR_NOT_SUPPORTED);return}e?r(e):(console.error(`[lynx-web] cannot find from for selector ${n} under`,c),o?.(i.O4.NODE_NOT_FOUND))}else c.querySelectorAll(d).forEach(e=>{r(e)})}let a={boundingClientRect:e=>{let t=e.getBoundingClientRect();return{id:e.id,width:t.width,height:t.height,left:t.left,right:t.right,top:t.top,bottom:t.bottom}}};var s=n(2515),r=n(6993);function o(e,t,n){var o,d,c;let h,u,m,p,b;h=i.O4.UNKNOWN,e.registerHandler(i.zk,(e,n,s,r,o,d)=>(l(t,e,n,s,!0,d,e=>{try{let t=a[r],n="function"==typeof e[r];t||n?(u=t?t(e,o):e[r](o),h=i.O4.SUCCESS):h=i.O4.METHOD_NOT_FOUND}catch(t){console.error("[lynx-web] invokeUIMethod: apply method failed with",t,e),h=i.O4.PARAM_INVALID}},e=>{h=e}),{code:h,data:u})),e.registerHandler(i.PC,(e,n,i,a,s,r)=>{l(t,e,n,i,a,r,e=>{var t=e;for(let e in s){let n=s[e];"text"===e&&t?.tagName==="X-TEXT"&&t.firstElementChild&&"RAW-TEXT"==t.firstElementChild.tagName&&(t=t.firstElementChild),CSS.supports(e,n)&&t.style?t.style.setProperty(e,n):t.setAttribute(e,n)}})}),e.registerHandler(i.pT,(e,n)=>{let l=t.querySelector(`[${i.pP}="${n.componentId}"]`);l?.dispatchEvent(new CustomEvent(e,{...n.eventOption,detail:n.eventDetail}))}),e.registerHandler(i.vr,(e,n,a)=>(l(t,i.Wx.ID_SELECTOR,n,"card"===e?"0":e,a,void 0,e=>{m=e}),[m?.getAttribute(i.pP)??void 0])),o=n.nativeModulesCall,e.registerHandler(i.g,o),d=n.napiModulesCall,p=e.createCall(i.Sy),e.registerHandler(i.VK,(e,t,n)=>d(e,t,n,p)),e.registerHandler(i.ZU,(e,n,a,s,r)=>{let o,d=i.O4.UNKNOWN;return l(t,e,n,a,s,r,e=>{try{let n=[],l=e;for(;l;){let e=l.parentElement,a=e??t,s=Array.from(a.children),r=l.getAttribute(i.Gq),o="page"===r?0:s.indexOf(l),d=l.getAttribute("id")||void 0,c=l.getAttribute("class")||void 0,h=l.getAttribute(i.C6),u=h?JSON.parse(decodeURIComponent(h)):void 0;if(n.push({tag:r,id:d,class:c,dataSet:u,index:o}),"page"===r||l.parentNode===t)break;l=e}o={path:n},d=i.O4.SUCCESS}catch(t){console.error("[lynx-web] getPathInfo: failed with",t,e),d=i.O4.UNKNOWN}},e=>{d=e}),{code:d,data:o}}),(0,s.c)(e,t),b=new Map,e.registerHandler(i.vn,(e,n,l)=>{if("animate"===e)switch(l.operation){case i.Uc.START:b.set(l.id,t.querySelector(n)?.animate(l.keyframes,l.timingOptions));break;case i.Uc.PLAY:b.get(l.id)?.play();break;case i.Uc.PAUSE:b.get(l.id)?.pause();break;case i.Uc.CANCEL:b.get(l.id)?.cancel();break;case i.Uc.FINISH:b.get(l.id)?.finish()}}),(0,r.m)(e,"app-service.js",n.onError),c=n.reload,e.registerHandler(i.F0,c);let v=e.createCall(i.hO);return{sendGlobalEvent:v,markTiming:e.createCall(i.PM),updateI18nResourceBackground:(t,n)=>{let l=t.find(e=>(0,i.HO)(e.options)===(0,i.HO)(n));e.invoke(i.BE,[l?.resource])}}}},7826(e,t,n){n.a(e,async function(e,i){try{n.d(t,{$:()=>m});var l=n(5969),a=n(9791),s=n(4234),r=n(3893),o=n(4729),d=n(9174),c=n(6865),h=n(768),u=e([h]);function m(e,t,n,i,u,m,p){let b=performance.now()+performance.timeOrigin,v="all-on-ui"===u,{mainThreadRpc:g,backgroundRpc:f,terminateWorkers:y}=(0,l.C)(i,v,t.browserConfig),{markTiming:E,sendGlobalEvent:S,updateI18nResourceBackground:w}=(0,d.r)(f,n,m),_={records:[],timeout:null},x=(e,t,n)=>{(0,s.M$)({timingKey:e,pipelineId:t,timeStamp:n,markTiming:E,cacheMarkTimings:_})},C=()=>(0,s.qz)(E,_),T=(0,r._)(m.customTemplateLoader,x),{start:O,updateDataMainThread:L,updateI18nResourcesMainThread:I}=v?(0,h.z)(g,n,T,x,C,m,p):(0,c.k)(g,n,T,m);return x("create_lynx_start",void 0,b),T(e).then(e=>{C(),O({...t,template:e})}),{updateData:(0,o.k)(L),dispose:(0,a.i)(f,y),sendGlobalEvent:S,updateGlobalProps:f.createCall(s.yn),updateI18nResources:(...e)=>{I(e[0]),w(...e)}}}h=(u.then?(await u)():u)[0],i()}catch(e){i(e)}})},6621(e,t,n){n.d(t,{D:()=>i});let i=(e,t,n)=>{e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0,composed:!0}))}},3893(e,t,n){n.d(t,{_:()=>s});var i=n(4234);let l=new Map;function a(e){return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}function s(e,t){return async n=>{t("load_template_start");let s=l.get(n);if(s)return t("load_template_end"),s;{let s=new Promise(async(t,s)=>{try{let l=e?await e(n):await (await fetch(n,{method:"GET"})).json(),s=await (0,i.Yx)(l,a,encodeURIComponent(n));t(s)}catch(e){l.delete(n),s(e)}});return l.set(n,s),t("load_template_end"),s}}}},7849(){var e,t,n,i;let l,a,s,r,o,d,c,h,u,m,p,b,v,g,f,y,E,S,w,_,x,C,T,O,L,I,k,A,P,M,R,N,D,F,H,j,W,z,V,U,$,B,X,q,Y,G,J,K,Q,Z,ee,et,en,ei,el,ea,es,er,eo,ed,ec,eh,eu,em,ep,eb,ev,eg,ef,ey,eE,eS,ew,e_,ex,eC,eT,eO,eL,eI,ek,eA,eP,eM,eR,eN,eD,eF,eH,ej,eW,ez,eV,eU,e$,eB,eX,eq,eY,eG,eJ,eK,eQ,eZ,e0,e1,e2,e4,e3,e8,e6,e9,e7,e5,te,tt,tn,ti,tl,ta,ts,tr,to,td,tc,th,tu,tm,tp,tb,tv,tg,tf,ty,tE,tS,tw,t_,tx,tC,tT,tO,tL,tI,tk,tA,tP,tM,tR,tN,tD,tF,tH,tj,tW,tz,tV,tU,t$,tB,tX,tq,tY,tG,tJ,tK,tQ,tZ,t0,t1,t2,t4,t3,t8,t6,t9,t7,t5,ne,nt,nn,ni,nl,na,ns,nr,no,nd,nc,nh,nu,nm,np,nb,nv,ng,nf,ny,nE,nS,nw,n_,nx,nC,nT,nO,nL,nI,nk,nA,nP,nM,nR,nN,nD,nF,nH,nj,nW,nz,nV,nU,n$,nB,nX,nq,nY,nG,nJ,nK,nQ,nZ,n0,n1,n2,n4,n3,n8,n6,n9,n7,n5,ie,it,ii,il,ia,is,ir,io,id,ic,ih,iu,im,ip,ib,iv,ig,iy,iE,iS,iw,i_,ix,iC,iT,iO,iL,iI,ik,iA,iP,iM,iR,iN,iD,iF,iH,ij,iW,iz,iV,iU,i$,iB,iX,iq,iY,iG,iJ,iK,iQ,iZ,i0,i1,i2,i4,i3,i8,i6,i9,i7,i5,le,lt,ln,li,ll,la,ls,lr,lo,ld,lc,lh,lu,lm,lp,lb,lv,lg,lf,ly,lE,lS,lw,l_,lx,lC,lT,lO,lL,lI,lk,lA,lP,lM,lR,lN,lD,lF,lH,lj,lW,lz,lV,lU,l$,lB,lX,lq,lY,lG,lJ,lK,lQ,lZ,l0,l1,l2,l4,l3,l8,l6,l9,l7,l5,ae,at,an,ai,al,aa,as,ar,ao,ad,ac,ah,au,am,ap,ab,av,ag,af,ay,aE,aS,aw;function a_(e,t,n,i,l,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var r,o=i.kind,d="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?i.static?e:e.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,i.name):{}),u=!1,m=n.length-1;m>=0;m--){var p={};for(var b in i)p[b]="access"===b?{}:i[b];for(var b in i.access)p.access[b]=i.access[b];p.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var v=(0,n[m])("accessor"===o?{get:h.get,set:h.set}:h[d],p);if("accessor"===o){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(r=s(v.get))&&(h.get=r),(r=s(v.set))&&(h.set=r),(r=s(v.init))&&l.unshift(r)}else(r=s(v))&&("field"===o?l.unshift(r):h[d]=r)}c&&Object.defineProperty(c,i.name,h),u=!0}function ax(e,t,n){for(var i=arguments.length>2,l=0;l<t.length;l++)n=i?t[l].call(e,n):t[l].call(e);return i?n:void 0}let aC=[];function aT(){let e=aC;for(let[t,n]of(aC=[],e))n?t.call(n):t()}function aO(e,t){0===aC.length&&queueMicrotask(aT),aC.push([e,t])}function aL(e,t,n,i){let l=!1;return function(a){if(a!==l){let s=e.call(this);a?(aO(()=>s.addEventListener(t,n,i)),l=!0):(aO(()=>s.removeEventListener(t,n)),l=!1)}}}function aI(e,t,n){return function(i){n&&(i=n(i));let l=e.call(this);l.getAttribute(t)!==i&&(null!==i?aO(()=>{l.setAttribute(t,i)}):aO(()=>{l.removeAttribute(t)}))}}function ak(e,t,n,i){return function(l){l?(n&&(l=n(l)),aO(()=>e.call(this).style.setProperty(t,l,i?"important":void 0))):aO(()=>e.call(this).style.removeProperty(t))}}function aA(e,t){let n,i;return()=>(i||(i=e()),i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=i.querySelector(t)),n)}function aP(e,t,n){let i,l=t.filter(e=>!!e);return(t,{addInitializer:a})=>{let s=new Set([...l.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class r extends t{static registerPlugin(e){if(r.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)s.add(t);l.push(e)}static observedAttributes=[...t.observedAttributes??[],...l.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#y=[];constructor(){if(super(),n&&!i&&((i=document.createElement("template")).innerHTML=n,document.body.appendChild(i)),i&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=i.content.cloneNode(!0);e.append(t)}this.#y=l.map(e=>new e(this)),this.#E()}#S=!1;#w=new Map;#_(){!this.#S&&s.size&&(this.#S=!0,aO(this.#x,this))}#x(){let e=getComputedStyle(this);for(let n of s){var t;let i=e.getPropertyValue(n),l=e.getPropertyPriority(n),a=(t=i.trim(),l?t+" !important":t);if(this.#w.get(n)!==a)for(let e of this.#y)e.cssPropertyChangedHandler?.[n]?.call(e,a,n)}this.#S=!1}setAttribute(e,n){"false"!==n.toString()||t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,n):this.removeAttribute(e)}#E(){let e=this.attributes;for(let n=0,i;i=e.item(n);n++)"false"!==i.value||t.notToFilterFalseAttributes?.has(i.name)||i.name.startsWith("data-")||this.removeAttributeNode(i)}#C=!1;attributeChangedCallback(e,n,i){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,n,i),t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===n&&(n=null),"false"===i&&(i=null,this.removeAttribute(e))),n!==i){for(let t of(this.#C&&("class"===e||"style"===e)&&this.#_(),this.#y))if(t.attributeChangedHandler?.[e]){let{handler:l,noDomMeasure:a}=t.attributeChangedHandler[e];a?l.call(t,i,n,e):this.#C&&aO(()=>l.call(t,i,n,e))}}}#T(){this.getAttributeNames().forEach(e=>{for(let t of this.#y)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:i}=t.attributeChangedHandler[e];i||aO(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#y.forEach(e=>{e.connectedCallback?.()}),this.#_(),aO(this.#T,this),this.#C=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#y.forEach(e=>{e.dispose?.()})}#O={};enableEvent(e){this.#O[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let t=this.#O[e];if(0===t.count)for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}t.count++}disableEvent(e){let t=this.#O[e];if(t&&t.count>0&&(t.count--,0===t.count))for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}addEventListener(e,t,n){super.addEventListener(e,t,n),this.enableEvent(e);let i=this.#O[e],l=("object"==typeof n?n.capture:n)?i.captureListenerCount:i.listenerCount,a=l.get(t)??0;l.set(t,a+1)}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let i="object"==typeof n?n.capture:n,l=this.#O[e];if(l&&l.count>0){let n=i?l.captureListenerCount:l.listenerCount;1===n.get(t)&&(n.delete(t),this.disableEvent(e))}}}return a(()=>{customElements.define(e,r)}),r}}function aM(e,t){return function(n,...i){return function(l,a){if("method"===a.kind)a.addInitializer(function(){this[e]??={},this[e][n]=t(l,i)});else if("field"===a.kind)return function(l){return this[e]??={},this[e][n]=t(l,i),l};else throw Error(`[lynx-web-components] decorator type ${a.kind} is not supported`)}}}let aR=aM("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),aN=aM("cssPropertyChangedHandler",e=>e),aD=aM("eventStatusChangedHandler",e=>e);s=[aP("lynx-wrapper",[])],r=[],o=HTMLElement,class extends o{static{a=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;a_(null,l={value:a},s,{kind:"class",name:a.name,metadata:e},null,r),a=l.value,e&&Object.defineProperty(a,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(a,r)}};let aF={bubbles:!1,composed:!1,cancelable:!0},aH=Symbol("layoutChangeTarget"),aj=(d=[],c=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a_(null,null,[aD("layoutchange")],{kind:"field",name:"__handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"__handleScrollUpperThresholdEventEnabled"in e,get:e=>e.__handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e.__handleScrollUpperThresholdEventEnabled=t}},metadata:e},d,c),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L;constructor(e){ax(this,c),this.#L=e}#I=!1;#k;__handleScrollUpperThresholdEventEnabled=ax(this,d,e=>{e&&this.#L[aH]?!this.#k&&(this.#k=new ResizeObserver(([e])=>{if(e){let t=this.#L.id,{top:n,bottom:i,left:l,right:a,width:s,height:r}=e.target.getBoundingClientRect();this.#L.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:s,height:r,left:l,right:a,top:n,bottom:i,id:t},...aF}))}}),this.#I||(this.#k.observe(this.#L[aH]),this.#I=!0)):(this.#k?.disconnect(),this.#k=void 0,this.#I=!1)});dispose(){this.#k?.disconnect(),this.#k=void 0,this.#I=!1}}),aW=(u=[],m=[],p=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;h=[aR("fading-edge-length",!0)],a_(this,null,[aN("background"),aN("background-color")],{kind:"method",name:"_backgroundColorToVariable",static:!1,private:!1,access:{has:e=>"_backgroundColorToVariable"in e,get:e=>e._backgroundColorToVariable},metadata:e},null,u),a_(null,null,h,{kind:"field",name:"_handleFadingEdgeLength",static:!1,private:!1,access:{has:e=>"_handleFadingEdgeLength"in e,get:e=>e._handleFadingEdgeLength,set:(e,t)=>{e._handleFadingEdgeLength=t}},metadata:e},m,p),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=ax(this,u);#A=aA(()=>this.#L.shadowRoot,"#top-fade-mask");#P=aA(()=>this.#L.shadowRoot,"#bot-fade-mask");static observedAttributes=["fading-edge-length"];static observedCSSProperties=["background","background-color"];constructor(e){ax(this,p),this.#L=e}_handleFadingEdgeLength=ax(this,m,ak(()=>this.#L,"--scroll-view-fading-edge-length",e=>`${parseFloat(e)}px`));_backgroundColorToVariable(e){this.#A().style.setProperty("--scroll-view-bg-color",e),this.#P().style.setProperty("--scroll-view-bg-color",e)}connectedCallback(){}dispose(){}}),az=(g=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;b=[aR("scroll-top",!1),aR("scroll-left",!1),aR("initial-scroll-offset",!1)],v=[aR("scroll-to-index",!1),aR("initial-scroll-to-index",!1)],a_(this,null,b,{kind:"method",name:"_handleInitialScrollOffset",static:!1,private:!1,access:{has:e=>"_handleInitialScrollOffset"in e,get:e=>e._handleInitialScrollOffset},metadata:e},null,g),a_(this,null,v,{kind:"method",name:"_handleInitialScrollIndex",static:!1,private:!1,access:{has:e=>"_handleInitialScrollIndex"in e,get:e=>e._handleInitialScrollIndex},metadata:e},null,g),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=ax(this,g);static observedAttributes=["scroll-top","scroll-left","initial-scroll-offset","scroll-to-index","initial-scroll-to-index"];constructor(e){this.#L=e}_handleInitialScrollOffset(e,t,n){if(e){let t=parseFloat(e),i=this.#L.getAttribute("scroll-orientation"),l=this.#L.getAttribute("scroll-y"),a=this.#L.getAttribute("scroll-x"),s=("scroll-top"===n||"initial-scroll-offset"===n)&&(""===l||"true"===l||"vertical"===i||"both"===i),r=("scroll-left"===n||"initial-scroll-offset"===n)&&(""===a||"true"===a||"vertical"===i||"both"===i);requestAnimationFrame(()=>{s&&this.#L.scrollTo(0,t),r&&(this.#L.scrollLeft=t)})}}_handleInitialScrollIndex(e){if(e){let t=parseFloat(e),n=this.#L.children.item(t);if(n&&n instanceof HTMLElement){let e=null!==this.#L.getAttribute("scroll-x");requestAnimationFrame(()=>{e?this.#L.scrollLeft=n.offsetLeft:this.#L.scrollTop=n.offsetTop})}}}dispose(){}});function aV(e,t,n){let i;return l=>{null!==l?i||(i=new IntersectionObserver(n,{root:e()})).observe(t()):i&&(i.disconnect(),i=void 0)}}let aU="onscrollend"in document,a$=Symbol.for("lynx-scroll-container-dom"),aB=(x=[],C=[],T=[],O=[],L=[],I=[],k=[],A=[],P=[],M=[],R=[],N=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;f=[aD("scrolltoupper")],y=[aD("scrolltolower")],E=[aR("upper-threshold",!0)],S=[aR("lower-threshold",!0)],w=[aD("lynxscroll")],_=[aD("lynxscrollend")],a_(null,null,f,{kind:"field",name:"_handleScrollUpperThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollUpperThresholdEventEnabled"in e,get:e=>e._handleScrollUpperThresholdEventEnabled,set:(e,t)=>{e._handleScrollUpperThresholdEventEnabled=t}},metadata:e},x,C),a_(null,null,y,{kind:"field",name:"_handleScrollLowerThresholdEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollLowerThresholdEventEnabled"in e,get:e=>e._handleScrollLowerThresholdEventEnabled,set:(e,t)=>{e._handleScrollLowerThresholdEventEnabled=t}},metadata:e},T,O),a_(null,null,E,{kind:"field",name:"_updateUpperThreshold",static:!1,private:!1,access:{has:e=>"_updateUpperThreshold"in e,get:e=>e._updateUpperThreshold,set:(e,t)=>{e._updateUpperThreshold=t}},metadata:e},L,I),a_(null,null,S,{kind:"field",name:"_updateLowerThreshold",static:!1,private:!1,access:{has:e=>"_updateLowerThreshold"in e,get:e=>e._updateLowerThreshold,set:(e,t)=>{e._updateLowerThreshold=t}},metadata:e},k,A),a_(null,null,w,{kind:"field",name:"_handleScrollEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEventEnabled"in e,get:e=>e._handleScrollEventEnabled,set:(e,t)=>{e._handleScrollEventEnabled=t}},metadata:e},P,M),a_(null,null,_,{kind:"field",name:"_handleScrollEndEventEnabled",static:!1,private:!1,access:{has:e=>"_handleScrollEndEventEnabled"in e,get:e=>e._handleScrollEndEventEnabled,set:(e,t)=>{e._handleScrollEndEventEnabled=t}},metadata:e},R,N),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L;#M;#R=0;#N=0;constructor(e){ax(this,N),this.#L=e}#D=()=>this.#L;#F=aA(()=>this.#L.shadowRoot,"#upper-threshold-observer");#H=aA(()=>this.#L.shadowRoot,"#lower-threshold-observer");#j=e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...aF,detail:this.#W()})):"lower-threshold-observer"===i&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...aF,detail:this.#W()})))};static observedAttributes=["upper-threshold","lower-threshold"];_handleScrollUpperThresholdEventEnabled=ax(this,x,e=>{e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#z(e)});#z=(ax(this,C),aV(this.#D,this.#F,this.#j));_handleScrollLowerThresholdEventEnabled=ax(this,T,e=>{e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),this.#V(e)});#V=(ax(this,O),aV(this.#D,this.#H,this.#j));_updateUpperThreshold=ax(this,L,ak(this.#F,"flex-basis",e=>`${parseInt(e)}px`));_updateLowerThreshold=(ax(this,I),ax(this,k,ak(this.#H,"flex-basis",e=>`${parseInt(e)}px`)));#W(){let{scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i}=this.#D();0===e&&(e-=this.#L.scrollHeight/2-this.#L.scrollTop),0===t&&(t-=this.#L.scrollWidth/2-this.#L.scrollLeft);let l={scrollTop:e,scrollLeft:t,scrollHeight:n,scrollWidth:i,isDragging:!1,deltaX:t-this.#R,deltaY:e-this.#N};return this.#R=t,this.#N=e,l}#U=(ax(this,A),()=>{this.#$&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...aF,detail:this.#W()}))});#B=()=>{this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aF,detail:this.#W()}))};#X=!1;_handleScrollEventEnabled=ax(this,P,e=>{this.#X=e,this.#q()});#$=(ax(this,M),!1);_handleScrollEndEventEnabled=ax(this,R,e=>{this.#$=e,this.#q()});#q(){this.#X||this.#$?(this.#D().addEventListener("scroll",this.#U),this.#D().addEventListener("scrollend",this.#B),this.#L.addEventListener("scroll",this.#U),this.#L.addEventListener("scrollend",this.#B),this.#R=0,this.#N=0):(this.#L.removeEventListener("scroll",this.#U),this.#L.removeEventListener("scrollend",this.#B))}connectedCallback(){}dispose(){}});class aX{static eventName="__scrollIntoView";static observedAttributes=[];#L;#Y=e=>{e.stopPropagation();let t=e.composedPath().filter(e=>e instanceof HTMLElement),n=[],i=this.#L;for(let e of t){if(e===i)break;n.push(e)}let l=this.#L.getAttribute("scroll-orientation"),a=null!==this.#L.getAttribute("scroll-x")||"both"===l||"horizontal"===l,s=null!==this.#L.getAttribute("scroll-y")||"both"===l||"vertical"===l,r=0,o=0;for(let{offsetTop:e,offsetLeft:t}of n)a&&(o+=t),s&&(r+=e);if(a)switch(e.detail.inline){case"center":o+=(e.target.clientWidth-this.#L.clientWidth)/2;break;case"end":o+=e.target.clientWidth-this.#L.clientWidth}if(s)switch(e.detail.block){case"center":r+=(e.target.clientHeight-this.#L.clientHeight)/2;break;case"end":r+=e.target.clientHeight-this.#L.clientHeight}i.scrollTo({behavior:"smooth"===e.detail.behavior?"smooth":"instant",left:o,top:r})};constructor(e){this.#L=e,this.#L.addEventListener(aX.eventName,this.#Y,{passive:!1})}dispose(){this.#L.removeEventListener(aX.eventName,this.#Y)}}let aq=`<style>
|
|
7
|
-
.placeholder-dom {
|
|
8
|
-
display: none;
|
|
9
|
-
flex: 0 0 0;
|
|
10
|
-
align-self: stretch;
|
|
11
|
-
min-height: 0;
|
|
12
|
-
min-width: 0;
|
|
13
|
-
}
|
|
14
|
-
.mask {
|
|
15
|
-
z-index: 1;
|
|
16
|
-
position: sticky;
|
|
17
|
-
}
|
|
18
|
-
.observer-container {
|
|
19
|
-
flex-direction: inherit;
|
|
20
|
-
overflow: visible;
|
|
21
|
-
}
|
|
22
|
-
.observer {
|
|
23
|
-
display: flex;
|
|
24
|
-
}
|
|
25
|
-
::-webkit-scrollbar {
|
|
26
|
-
display: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@keyframes topFading {
|
|
30
|
-
0% {
|
|
31
|
-
box-shadow: transparent 0px 0px 0px 0px;
|
|
32
|
-
}
|
|
33
|
-
5% {
|
|
34
|
-
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
35
|
-
var(--scroll-view-fading-edge-length)
|
|
36
|
-
var(--scroll-view-fading-edge-length);
|
|
37
|
-
}
|
|
38
|
-
100% {
|
|
39
|
-
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
40
|
-
var(--scroll-view-fading-edge-length)
|
|
41
|
-
var(--scroll-view-fading-edge-length);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
@keyframes botFading {
|
|
45
|
-
0% {
|
|
46
|
-
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
47
|
-
var(--scroll-view-fading-edge-length)
|
|
48
|
-
var(--scroll-view-fading-edge-length);
|
|
49
|
-
}
|
|
50
|
-
95% {
|
|
51
|
-
box-shadow: var(--scroll-view-bg-color) 0px 0px
|
|
52
|
-
var(--scroll-view-fading-edge-length)
|
|
53
|
-
var(--scroll-view-fading-edge-length);
|
|
54
|
-
}
|
|
55
|
-
100% {
|
|
56
|
-
box-shadow: transparent 0px 0px 0px 0px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
</style>
|
|
60
|
-
<div
|
|
61
|
-
class="mask placeholder-dom"
|
|
62
|
-
id="top-fade-mask"
|
|
63
|
-
part="top-fade-mask"
|
|
64
|
-
></div>
|
|
65
|
-
<div
|
|
66
|
-
class="observer-container placeholder-dom"
|
|
67
|
-
part="upper-threshold-observer"
|
|
68
|
-
>
|
|
69
|
-
<div
|
|
70
|
-
class="observer placeholder-dom"
|
|
71
|
-
id="upper-threshold-observer"
|
|
72
|
-
></div>
|
|
73
|
-
</div>
|
|
74
|
-
<slot></slot>
|
|
75
|
-
<div
|
|
76
|
-
class="observer-container placeholder-dom"
|
|
77
|
-
part="lower-threshold-observer"
|
|
78
|
-
>
|
|
79
|
-
<div
|
|
80
|
-
class="observer placeholder-dom"
|
|
81
|
-
id="lower-threshold-observer"
|
|
82
|
-
></div>
|
|
83
|
-
</div>
|
|
84
|
-
<div
|
|
85
|
-
class="mask placeholder-dom"
|
|
86
|
-
id="bot-fade-mask"
|
|
87
|
-
part="bot-fade-mask"
|
|
88
|
-
></div>`,aY=/<\s*script/,aG=e=>{let{src:t}=e;if(t&&aY.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}"`:""}/> `},aJ=`<style>
|
|
89
|
-
#input:focus {
|
|
90
|
-
outline: none;
|
|
91
|
-
}
|
|
92
|
-
#form {
|
|
93
|
-
display: none;
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
96
|
-
<form id="form" part="form" method="dialog">
|
|
97
|
-
<input
|
|
98
|
-
id="input"
|
|
99
|
-
part="input"
|
|
100
|
-
step="any"
|
|
101
|
-
type="text"
|
|
102
|
-
inputmode="text"
|
|
103
|
-
spell-check="true"
|
|
104
|
-
/>
|
|
105
|
-
</form>`,aK=`<style>
|
|
106
|
-
.placeholder-dom {
|
|
107
|
-
display: none;
|
|
108
|
-
flex: 0 0 0;
|
|
109
|
-
align-self: stretch;
|
|
110
|
-
min-height: 0;
|
|
111
|
-
min-width: 0;
|
|
112
|
-
}
|
|
113
|
-
.observer-container {
|
|
114
|
-
flex-direction: inherit;
|
|
115
|
-
overflow: visible;
|
|
116
|
-
}
|
|
117
|
-
.observer {
|
|
118
|
-
display: flex;
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
121
|
-
<div id="content" part="content">
|
|
122
|
-
<div
|
|
123
|
-
class="observer-container placeholder-dom"
|
|
124
|
-
part="upper-threshold-observer"
|
|
125
|
-
>
|
|
126
|
-
<div
|
|
127
|
-
class="observer placeholder-dom"
|
|
128
|
-
id="upper-threshold-observer"
|
|
129
|
-
></div>
|
|
130
|
-
</div>
|
|
131
|
-
<slot part="slot"></slot>
|
|
132
|
-
<div
|
|
133
|
-
class="observer-container placeholder-dom"
|
|
134
|
-
part="lower-threshold-observer"
|
|
135
|
-
>
|
|
136
|
-
<div
|
|
137
|
-
class="observer placeholder-dom"
|
|
138
|
-
id="lower-threshold-observer"
|
|
139
|
-
></div>
|
|
140
|
-
</div>
|
|
141
|
-
</div>`,aQ=`<style>
|
|
142
|
-
#dialog[open] {
|
|
143
|
-
top: 0;
|
|
144
|
-
left: 0;
|
|
145
|
-
right: 0;
|
|
146
|
-
bottom: 0;
|
|
147
|
-
position: fixed;
|
|
148
|
-
overscroll-behavior: contain;
|
|
149
|
-
scrollbar-width: none;
|
|
150
|
-
}
|
|
151
|
-
#dialog[open]::-webkit-scrollbar {
|
|
152
|
-
display: none;
|
|
153
|
-
}
|
|
154
|
-
#dialog::backdrop {
|
|
155
|
-
background-color: transparent;
|
|
156
|
-
}
|
|
157
|
-
.overlay-inner {
|
|
158
|
-
position: sticky;
|
|
159
|
-
top: 0;
|
|
160
|
-
width: 100%;
|
|
161
|
-
height: 100%;
|
|
162
|
-
pointer-events: none;
|
|
163
|
-
}
|
|
164
|
-
.overlay-inner > * {
|
|
165
|
-
pointer-events: auto;
|
|
166
|
-
}
|
|
167
|
-
.overlay-placeholder {
|
|
168
|
-
width: 100%;
|
|
169
|
-
height: 1px;
|
|
170
|
-
}
|
|
171
|
-
</style>
|
|
172
|
-
<dialog id="dialog" part="dialog">
|
|
173
|
-
<div class="overlay-inner">
|
|
174
|
-
<slot></slot>
|
|
175
|
-
</div>
|
|
176
|
-
<div class="overlay-placeholder"></div>
|
|
177
|
-
</dialog>`,aZ=`<style>
|
|
178
|
-
.bounce-container {
|
|
179
|
-
overflow: scroll;
|
|
180
|
-
overscroll-behavior: contain;
|
|
181
|
-
scroll-snap-type: y mandatory;
|
|
182
|
-
scroll-behavior: smooth;
|
|
183
|
-
scrollbar-width: none;
|
|
184
|
-
}
|
|
185
|
-
.overflow-placeholder {
|
|
186
|
-
min-height: 30%;
|
|
187
|
-
min-width: 100%;
|
|
188
|
-
flex-shrink: 0;
|
|
189
|
-
scroll-snap-align: none;
|
|
190
|
-
}
|
|
191
|
-
.not-shrink {
|
|
192
|
-
height: 100%;
|
|
193
|
-
width: 100%;
|
|
194
|
-
min-height: 100%;
|
|
195
|
-
min-width: 100%;
|
|
196
|
-
flex-shrink: 0;
|
|
197
|
-
}
|
|
198
|
-
.vertical {
|
|
199
|
-
display: flex;
|
|
200
|
-
flex-direction: column;
|
|
201
|
-
}
|
|
202
|
-
#content {
|
|
203
|
-
scroll-snap-align: center;
|
|
204
|
-
}
|
|
205
|
-
</style>
|
|
206
|
-
<div id="container" part="container" class="bounce-container not-shrink vertical">
|
|
207
|
-
<div
|
|
208
|
-
id="placeholder-top"
|
|
209
|
-
class="overflow-placeholder bounce-item"
|
|
210
|
-
part="placeholder-top"
|
|
211
|
-
></div>
|
|
212
|
-
<slot name="header"></slot>
|
|
213
|
-
<div id="content" part="content" class="not-shrink vertical">
|
|
214
|
-
<slot part="slot"></slot>
|
|
215
|
-
</div>
|
|
216
|
-
<slot name="footer"></slot>
|
|
217
|
-
<div
|
|
218
|
-
id="placeholder-bot"
|
|
219
|
-
class="overflow-placeholder bounce-item"
|
|
220
|
-
part="placeholder-bot"
|
|
221
|
-
></div>
|
|
222
|
-
</div>`,a0=`<style>
|
|
223
|
-
#bounce-padding {
|
|
224
|
-
display: none;
|
|
225
|
-
flex: 0 0 0;
|
|
226
|
-
align-self: stretch;
|
|
227
|
-
scroll-snap-align: none;
|
|
228
|
-
flex-basis: 100%;
|
|
229
|
-
}
|
|
230
|
-
#content {
|
|
231
|
-
position: relative;
|
|
232
|
-
display: flex;
|
|
233
|
-
flex: 0 0 100%;
|
|
234
|
-
flex-direction: inherit;
|
|
235
|
-
flex-wrap: inherit;
|
|
236
|
-
align-self: stretch;
|
|
237
|
-
justify-content: inherit;
|
|
238
|
-
align-items: inherit;
|
|
239
|
-
overflow: inherit;
|
|
240
|
-
scrollbar-width: none;
|
|
241
|
-
scroll-snap-align: start;
|
|
242
|
-
scroll-snap-type: inherit;
|
|
243
|
-
}
|
|
244
|
-
div::-webkit-scrollbar {
|
|
245
|
-
display: none;
|
|
246
|
-
}
|
|
247
|
-
#indicator-container {
|
|
248
|
-
display: none;
|
|
249
|
-
}
|
|
250
|
-
#indicator-container > div {
|
|
251
|
-
animation-name: indicator-dot;
|
|
252
|
-
animation-duration: 100ms;
|
|
253
|
-
}
|
|
254
|
-
@keyframes indicator-dot {
|
|
255
|
-
30%,
|
|
256
|
-
70% {
|
|
257
|
-
background-color: var(--indicator-color);
|
|
258
|
-
}
|
|
259
|
-
31%,
|
|
260
|
-
69% {
|
|
261
|
-
background-color: var(--indicator-active-color);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
</style>
|
|
265
|
-
<style id="indicator-style"></style>
|
|
266
|
-
<div id="bounce-padding" part="bounce-padding"></div>
|
|
267
|
-
<div id="indicator-container" part="indicator-container"></div>
|
|
268
|
-
<div id="content" part="content">
|
|
269
|
-
<slot part="slot-start" name="circular-start" id="circular-start"></slot>
|
|
270
|
-
<slot part="slot"></slot>
|
|
271
|
-
<slot part="slot-end" name="circular-end" id="circular-end"></slot>
|
|
272
|
-
</div>`,a1=`<style>
|
|
273
|
-
#textarea:focus,
|
|
274
|
-
#textarea:focus-visible {
|
|
275
|
-
border: inherit;
|
|
276
|
-
outline: inherit;
|
|
277
|
-
}
|
|
278
|
-
</style>
|
|
279
|
-
<form id="form" part="form" method="dialog">
|
|
280
|
-
<textarea id="textarea" part="textarea"></textarea>
|
|
281
|
-
</form>`,a2=`<style>
|
|
282
|
-
#bounce-padding {
|
|
283
|
-
display: none;
|
|
284
|
-
flex: 0 0 0;
|
|
285
|
-
align-self: stretch;
|
|
286
|
-
scroll-snap-align: none;
|
|
287
|
-
flex-basis: 100%;
|
|
288
|
-
}
|
|
289
|
-
#content {
|
|
290
|
-
flex: 0 0 100%;
|
|
291
|
-
flex-direction: row;
|
|
292
|
-
align-self: stretch;
|
|
293
|
-
display: inherit;
|
|
294
|
-
justify-content: inherit;
|
|
295
|
-
align-items: inherit;
|
|
296
|
-
overflow: inherit;
|
|
297
|
-
scrollbar-width: none;
|
|
298
|
-
scroll-snap-type: inherit;
|
|
299
|
-
}
|
|
300
|
-
#content::-webkit-scrollbar {
|
|
301
|
-
display: none;
|
|
302
|
-
}
|
|
303
|
-
</style>
|
|
304
|
-
<div id="bounce-padding" part="bounce-padding"></div>
|
|
305
|
-
<div id="content" part="content">
|
|
306
|
-
<slot></slot>
|
|
307
|
-
</div>`,a4=`<style>
|
|
308
|
-
iframe {
|
|
309
|
-
width: 100%;
|
|
310
|
-
height: 100%;
|
|
311
|
-
border: none;
|
|
312
|
-
}
|
|
313
|
-
</style>
|
|
314
|
-
<iframe id="webview" part="webview"></iframe>`,a3=CSS.supports("-webkit-box-reflect: above")&&CSS.supports("transition-behavior:allow-discrete")&&CSS.supports("content-visibility: auto");class a8{static observedAttributes=[];static observedCSSProperties=["--lynx-display","--lynx-linear-orientation"];#L;constructor(e){this.#L=e,this.cssPropertyChangedHandler={"--lynx-display":this.#G,"--lynx-linear-orientation":this.#J}}#G=aI(()=>this.#L,"lynx-computed-display");#J=aI(()=>this.#L,"lynx-linear-orientation")}let a6=a3?void 0:a8;H=[aP("scroll-view",[a6,aj,az,aW,aB,aX],aq)],j=[],W=HTMLElement,e=class extends W{static{F=this}static{const t="function"==typeof Symbol&&Symbol.metadata?Object.create(W[Symbol.metadata]??null):void 0;a_(null,D={value:F},H,{kind:"class",name:F.name,metadata:t},null,j),e=F=D.value,t&&Object.defineProperty(F,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);static scrollInterval=100;#K;scrollTo(...e){let t;if("string"==typeof e[0].offset){let n=parseFloat(e[0].offset);t={left:n,top:n}}else"number"==typeof e[0].offset&&(t={left:e[0].offset,top:e[0].offset});if("number"==typeof e[0].index){let n=e[0].index;if(0===n)this.scrollTop=0,this.scrollLeft=0;else if(n>0&&n<this.childElementCount){let e=this.children.item(n);e instanceof HTMLElement&&(t=t?{left:e.offsetLeft+t.left,top:e.offsetTop+t.top}:{left:e.offsetLeft,top:e.offsetTop})}}t?this.scrollTo({...t,behavior:e[0].smooth?"smooth":"auto"}):super.scrollTo(...e)}autoScroll(t){if(clearInterval(this.#K),t.start){let n=("number"==typeof t.rate?t.rate:parseFloat(t.rate))*e.scrollInterval/1e3;this.#K=setInterval(e=>{e.scrollBy({left:n,top:n,behavior:"smooth"})},e.scrollInterval,this)}}get[a$](){return this}static{ax(F,j)}},e=F;let a9=Symbol("__src"),a7=Symbol("__src"),a5={loadstart:{code:0,type:"init"},canplay:{code:1,type:"playable"},stalled:{code:2,type:"stalled"},error:{code:3,type:"error"}},se={stop:{code:0,type:"stopped"},play:{code:1,type:"playing"},pause:{code:2,type:"paused"}};(t=i||(i={}))[t.SrcError=-1]="SrcError",t[t.SrcJsonError=-2]="SrcJsonError",t[t.DownloadError=-3]="DownloadError",t[t.PlayerFinishedError=-4]="PlayerFinishedError",t[t.PlayerLoadingError=-5]="PlayerLoadingError",t[t.PlayerPlaybackError=-6]="PlayerPlaybackError";let st=($=[],B=[],X=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;z=[aR("src",!0)],V=[aR("loop",!0)],U=[aR("pause-on-hide",!0)],a_(this,null,z,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,$),a_(this,null,U,{kind:"method",name:"_handlePauseOnHide",static:!1,private:!1,access:{has:e=>"_handlePauseOnHide"in e,get:e=>e._handlePauseOnHide},metadata:e},null,$),a_(null,null,V,{kind:"field",name:"_handleLoop",static:!1,private:!1,access:{has:e=>"_handleLoop"in e,get:e=>e._handleLoop,set:(e,t)=>{e._handleLoop=t}},metadata:e},B,X),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","loop","pause-on-hide"];#L=ax(this,$);#Q=aA(()=>this.#L.shadowRoot,"#audio");_handleSrc(e){let t;try{t=JSON.parse(e||"")||{}}catch(e){console.error(`JSON.parse src error: ${e}`),t={}}null===e?this.#L.dispatchEvent(new CustomEvent("error",{...aF,detail:{code:i.SrcError,msg:"",from:"res loader",currentSrcID:this.#L[a9]?.id}})):(t?.id===void 0||t?.play_url===void 0)&&this.#L.dispatchEvent(new CustomEvent("error",{...aF,detail:{code:i.SrcJsonError,msg:"",from:"res loader",currentSrcID:this.#L[a9]?.id}})),this.#L[a9]=t,this.#L[a7]=void 0,this.#L.stop()}_handleLoop=ax(this,B,aI(this.#Q,"loop"));#Z=(ax(this,X),()=>{"hidden"===document.visibilityState&&this.#L.pause()});_handlePauseOnHide(e){null!==e?document.addEventListener("visibilitychange",this.#Z,{passive:!0}):document.removeEventListener("visibilitychange",this.#Z)}constructor(e){this.#L=e}});class sn{static observedAttributes=[];#L;#ee;#Q=aA(()=>this.#L.shadowRoot,"#audio");#et=e=>{let t=Number(this.#L.getAttribute("interval")),n=Number.isNaN(t)?0:t;this.#ee=setInterval(()=>{this.#L.dispatchEvent(new CustomEvent("timeupdate",{...aF,detail:{currentTime:this.#Q().currentTime,currentSrcID:this.#L[a9]?.id}}))},n);let i=se[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...aF,detail:{code:i?.code,type:i?.type,currentSrcID:this.#L[a9]?.id}}))};#en=e=>{clearInterval(this.#ee);let t=se[e.type];this.#L.dispatchEvent(new CustomEvent("playbackstatechanged",{...aF,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[a9]?.id}}))};#ei=e=>{let t=a5[e.type];this.#L.dispatchEvent(new CustomEvent("loadingstatechanged",{...aF,detail:{code:t?.code,type:t?.type,currentSrcID:this.#L[a9]?.id}}))};#el=e=>{this.#ei(e);let t=e.target?.error?.code,n=t===MediaError.MEDIA_ERR_DECODE?i.PlayerLoadingError:i.PlayerPlaybackError;t===MediaError.MEDIA_ERR_DECODE&&(n=i.PlayerLoadingError),this.#L.dispatchEvent(new CustomEvent("error",{...aF,detail:{code:n,msg:"",from:"player",currentSrcID:this.#L[a9]?.id}}))};#ea=()=>{let e=null!==this.#L.getAttribute("loop");this.#L.dispatchEvent(new CustomEvent("finished",{...aF,detail:{loop:e,currentSrcID:this.#L[a9]?.id}}))};constructor(e){this.#L=e}connectedCallback(){let e=this.#Q();e.addEventListener("play",this.#et,{passive:!0}),e.addEventListener("pause",this.#en,{passive:!0}),e.addEventListener("ended",this.#ea,{passive:!0}),e.addEventListener("loadstart",this.#ei,{passive:!0}),e.addEventListener("canplay",this.#ei,{passive:!0}),e.addEventListener("stalled",this.#ei,{passive:!0}),e.addEventListener("error",this.#el,{passive:!0})}}G=[aP("x-audio-tt",[aj,st,sn],'<audio id="audio"></audio>')],J=[],K=HTMLElement,(class extends K{static{Y=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(K[Symbol.metadata]??null):void 0;a_(null,q={value:Y},G,{kind:"class",name:Y.name,metadata:e},null,J),Y=q.value,e&&Object.defineProperty(Y,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(Y,J)}#es=aA(()=>this.shadowRoot,"#audio");#Q=aA(()=>this.shadowRoot,"#audio");#er=aI(this.#Q,"src");[a9];[a7];#eo=()=>{let e,t=this[a9];if(t&&t.id&&t.play_url){try{e=JSON.parse(this.getAttribute("headers")||"{}")||{}}catch(t){console.error(`JSON.parse headers error: ${t}`),e={}}this[a7]=new Promise(async(n,l)=>{this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aF,detail:{code:0,type:"loading",currentSrcID:t.id}}));let a=await fetch(t.play_url,{headers:e});a.ok||(this.dispatchEvent(new CustomEvent("error",{...aF,detail:{code:i.DownloadError,msg:"",from:"res loader",currentSrcID:t.id}})),l()),this.dispatchEvent(new CustomEvent("srcloadingstatechanged",{...aF,detail:{code:1,type:"success",currentSrcID:t.id}}));let s=await a.blob(),r=URL.createObjectURL(s);this.#er(r),n()})}};play(){return this[a7]||this.#eo(),this[a7]?.then(()=>{let e=this.#es();e.currentTime=0,e.play()}),{currentSrcID:this[a9]?.id,loadingSrcID:""}}stop(){let e=this.#es(),t=se.stop;return this.dispatchEvent(new CustomEvent("playbackstatechanged",{...aF,detail:{code:t?.code,type:t?.type,currentSrcID:this[a9]?.id}})),e.currentTime=0,e.pause(),{currentSrcID:this[a9]?.id}}pause(){return this.#es().pause(),{currentSrcID:this[a9]?.id}}resume(){return this.#es().play(),{currentSrcID:this[a9]?.id,loadingSrcID:""}}seek(e){return this.#es().currentTime=(e.currentTime||0)/1e3,this.dispatchEvent(new CustomEvent("seek",{...aF,detail:{seekresult:1,currentSrcID:this[a9]?.id}})),{currentSrcID:this[a9]?.id}}mute(e){return this.#es().muted=e.mute,{currentSrcID:this[a9]?.id}}playerInfo(){var e;let t=this.#es(),n=t.buffered,i=n.end(n.length-1);return{currentSrcID:this[a9]?.id,duration:1e3*t.duration,playbackState:(e=t)?e.paused?2*!e.ended:e.currentTime>0?1:3:-1,currentTime:t.currentTime,cacheTime:i}}prepare(){this[a7]||this.#eo()}setVolume(e){return this.#es().volume=e.volume,{code:1}}}),ed=[aP("x-canvas",[aj,(et=[],en=[],ei=[],el=[],ea=[],es=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;Q=[aR("name",!0)],Z=[aR("height",!0)],ee=[aR("width",!0)],a_(null,null,Q,{kind:"field",name:"handleName",static:!1,private:!1,access:{has:e=>"handleName"in e,get:e=>e.handleName,set:(e,t)=>{e.handleName=t}},metadata:e},et,en),a_(null,null,Z,{kind:"field",name:"handleHeight",static:!1,private:!1,access:{has:e=>"handleHeight"in e,get:e=>e.handleHeight,set:(e,t)=>{e.handleHeight=t}},metadata:e},ei,el),a_(null,null,ee,{kind:"field",name:"handleWidth",static:!1,private:!1,access:{has:e=>"handleWidth"in e,get:e=>e.handleWidth,set:(e,t)=>{e.handleWidth=t}},metadata:e},ea,es),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["name","height","width"];#L;#k;#ed=aA(()=>this.#L.shadowRoot,"#canvas");constructor(e){this.#L=e}handleName=ax(this,et,aI(this.#ed,"name"));handleHeight=(ax(this,en),ax(this,ei,aI(this.#ed,"height")));handleWidth=(ax(this,el),ax(this,ea,aI(this.#ed,"width")));#ec=(ax(this,es),e=>{let{contentRect:t}=e[0],n=this.#L.shadowRoot.firstElementChild;if(n){let{height:e,width:i}=t;e*=window.devicePixelRatio,i*=window.devicePixelRatio;let l=new CustomEvent("resize",{...aF,detail:{height:e,width:i}});l.height=e,l.width=i,n.dispatchEvent(l)}});#eh(){this.#k||(this.#k=new ResizeObserver(this.#ec),this.#k.observe(this.#L))}#eu(){this.#k?.disconnect(),this.#k=void 0}connectedCallback(){this.#eh()}dispose(){this.#eu()}})],((e,...t)=>String.raw({raw:e},...t))`<canvas id="canvas" part="canvas"></canvas>`)],ec=[],eh=HTMLElement,class extends eh{static{eo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eh[Symbol.metadata]??null):void 0;a_(null,er={value:eo},ed,{kind:"class",name:eo.name,metadata:e},null,ec),eo=er.value,e&&Object.defineProperty(eo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(eo,ec)}};let si=(ep=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eu=[aR("granularity",!0)],em=[aD("offset")],a_(this,null,eu,{kind:"method",name:"_handleGranularity",static:!1,private:!1,access:{has:e=>"_handleGranularity"in e,get:e=>e._handleGranularity},metadata:e},null,ep),a_(this,null,em,{kind:"method",name:"_enableOffsetEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetEvent"in e,get:e=>e._enableOffsetEvent},metadata:e},null,ep),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=ax(this,ep);#em=.01;#ep=0;constructor(e){this.#L=e}static observedAttributes=["granularity"];_handleGranularity(e){e&&""!==e?this.#em=parseFloat(e):this.#em=.01}_enableOffsetEvent(e){e?this.#L.addEventListener("scroll",this.#U,{passive:!0}):this.#L.removeEventListener("scroll",this.#U)}#U=()=>{let e=this.#L.scrollTop;(Math.abs(this.#ep-e)>this.#em||0===this.#L.scrollTop||1>=Math.abs(this.#L.scrollHeight-this.#L.clientHeight-this.#L.scrollTop))&&(this.#ep=e,this.#L.dispatchEvent(new CustomEvent("offset",{...aF,detail:{offset:e,height:this.#L[sl]}})))}}),sl=Symbol("scrollableLength"),sa=Symbol("isHeaderShowing"),ss=Symbol("resizeObserver"),sr=Symbol("slotKid");eg=[aP("x-foldview-ng",[a6,aj,si])],ef=[],ey=HTMLElement,class extends ey{static{ev=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ey[Symbol.metadata]??null):void 0;a_(null,eb={value:ev},eg,{kind:"class",name:ev.name,metadata:e},null,ef),ev=eb.value,e&&Object.defineProperty(ev,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["scroll-enable"]);[sr];[ss]=new ResizeObserver(e=>{for(let t of e)"X-FOLDVIEW-HEADER-NG"===t.target.tagName?this.#eb=t.contentRect.height:"X-FOLDVIEW-TOOLBAR-NG"===t.target.tagName&&(this.#ev=t.contentRect.height);this[sr]&&(this[sr].style.top=`${this.#eb-this.#ev}px`)});#eb=0;#ev=0;get[sl](){return this.#eb-this.#ev}get[sa](){return this[sl]-this.scrollTop>=1}get scrollTop(){return super.scrollTop}set scrollTop(e){e>this[sl]?e=this[sl]:e<0&&(e=0),super.scrollTop=e}setFoldExpanded(e){let{offset:t,smooth:n=!0}=e,i=parseFloat(t);this.scrollTo({top:i,behavior:n?"smooth":"instant"})}get[a$](){return this}disconnectedCallback(){this[ss]?.disconnect(),this[ss]=void 0}static{ax(ev,ef)}};let so=(e,t)=>{let n=e.parentElement;if(n?.tagName==="LYNX-WRAPPER"&&(n=n.parentElement),n?.tagName===t)return n};ew=[aP("x-foldview-header-ng",[a6,aj])],e_=[],ex=HTMLElement,(class extends ex{static{eS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ex[Symbol.metadata]??null):void 0;a_(null,eE={value:eS},ew,{kind:"class",name:eS.name,metadata:e},null,e_),eS=eE.value,e&&Object.defineProperty(eS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(eS,e_)}#eg=void 0;connectedCallback(){let e=so(this,"X-FOLDVIEW-NG");this.#eg=e?.[ss],this.#eg?.observe(this)}dispose(){this.#eg?.unobserve(this)}}),eO=[aP("x-foldview-slot-drag-ng",[a6,aj])],eL=[],eI=HTMLElement,class extends eI{static{eT=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eI[Symbol.metadata]??null):void 0;a_(null,eC={value:eT},eO,{kind:"class",name:eT.name,metadata:e},null,eL),eT=eC.value,e&&Object.defineProperty(eT,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(eT,eL)}};class sd{#ef=0;#ey=new WeakMap;#eE;#eS=0;#ew=0;#e_=null;#ex;#eC=0;#L;static observedAttributes=[];constructor(e){this.#L=e,this.#L.addEventListener("touchmove",this.#eT,{passive:!1}),this.#L.addEventListener("touchstart",this.#eO,{passive:!0}),this.#L.addEventListener("touchend",this.#eL,{passive:!0}),this.#L.addEventListener("wheel",this.#eI,{passive:!1})}#ek(e){let t;if("function"==typeof e.computedStyleMap)try{t=e.computedStyleMap().get("overflow-y")?.toString()??"visible"}catch{t=getComputedStyle(e).overflowY||"visible"}else t=getComputedStyle(e).overflowY||"visible";return"auto"===t||"scroll"===t||"hidden"===t||"overlay"===t}#eA(e){return this.#eE?.find(t=>{if(this.#ek(t)&&t.scrollHeight>t.clientHeight){let n=e<0&&0!==t.scrollTop,i=e>0&&Math.abs(t.scrollHeight-t.clientHeight-t.scrollTop)>1;return n||i}return!1})}#eP(e,t){let n=this.#ey.get(e)??0;n+=t,this.#ey.set(e,n),e.scrollTop=n}#eT=e=>{let t=this.#eM();if(!t)return;let{pageY:n,pageX:i}=e.touches.item(0),l=this.#eS-n;if(null===this.#e_){let e=this.#ew-i;this.#e_=Math.abs(l)>Math.abs(e)}!1!==this.#e_&&(e.cancelable&&e.preventDefault(),this.#eR(l,t),this.#eS=n)};#eI=e=>{let t=this.#eM();if(!t||Math.abs(e.deltaY)<=Math.abs(e.deltaX))return;let n=e.composedPath().filter(e=>e instanceof Element&&this.#L.contains(e)&&e!==this.#L),{clientX:i,clientY:l}=e,a=document.elementsFromPoint(i,l).filter(e=>this.#L.contains(e));if(this.#eE=[...new Set([...n,...a])],this.#ef=t.scrollTop,this.#eE)for(let e of this.#eE)this.#ey.set(e,e.scrollTop);e.cancelable&&e.preventDefault(),this.#eR(e.deltaY,t)};#eM(){let e=this.#L.parentElement;if(e&&"X-FOLDVIEW-NG"===e.tagName)return e}#eO=e=>{let{pageX:t,pageY:n}=e.touches.item(0);for(let e of(this.#eE=document.elementsFromPoint(t,n).filter(e=>this.#L.contains(e)&&e!==this.#L),this.#eS=n,this.#ew=t,this.#ef=this.#eM()?.scrollTop??0,this.#eE))this.#ey.set(e,e.scrollTop);this.#e_=null,this.#ex=void 0};#eL=()=>{if(this.#e_=null,this.#ex){let e=this.#eM();(this.#ex!==e||e[sa])&&this.#ex.scrollBy({top:4*this.#eC,behavior:"smooth"})}};#eR(e,t){let n=this.#eA(e);t[sa]&&e>0||e<0&&!n||!t[sa]&&!n?(t.scrollBy({top:e,behavior:"smooth"}),this.#ef+=e,t.scrollTop=this.#ef,this.#ex=t):n&&(this.#ex=n,this.#eP(n,e)),this.#eC=e}}eP=[aP("x-foldview-slot-ng",[a6,aj,sd])],eM=[],eR=HTMLElement,(class extends eR{static{eA=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(eR[Symbol.metadata]??null):void 0;a_(null,ek={value:eA},eP,{kind:"class",name:eA.name,metadata:e},null,eM),eA=ek.value,e&&Object.defineProperty(eA,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(eA,eM)}connectedCallback(){this.matches("x-foldview-ng>x-foldview-slot-ng:first-of-type")&&(this.parentElement[sr]=this)}}),eF=[aP("x-foldview-toolbar-ng",[a6,aj])],eH=[],ej=HTMLElement,class extends ej{static{eD=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ej[Symbol.metadata]??null):void 0;a_(null,eN={value:eD},eF,{kind:"class",name:eD.name,metadata:e},null,eH),eD=eN.value,e&&Object.defineProperty(eD,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(eD,eH)}#eg=void 0;connectedCallback(){let e=so(this,"X-FOLDVIEW-NG");this.#eg=e?.[ss],this.#eg?.observe(this)}dispose(){this.#eg?.unobserve(this)}};let sc=(eq=[],eY=[],eG=[],eJ=[],eK=[],eQ=[],eZ=[],e0=[],e1=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;eV=[aR("src",!0)],eU=[aR("placeholder",!0)],e$=[aR("blur-radius",!0)],eB=[aR("crossorigin",!0)],eX=[aR("referrerpolicy",!0)],a_(this,null,eU,{kind:"method",name:"_preloadPlaceholder",static:!1,private:!1,access:{has:e=>"_preloadPlaceholder"in e,get:e=>e._preloadPlaceholder},metadata:e},null,eq),a_(null,null,eV,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},eY,eG),a_(null,null,e$,{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eJ,eK),a_(null,null,eB,{kind:"field",name:"_handleCrossorigin",static:!1,private:!1,access:{has:e=>"_handleCrossorigin"in e,get:e=>e._handleCrossorigin,set:(e,t)=>{e._handleCrossorigin=t}},metadata:e},eQ,eZ),a_(null,null,eX,{kind:"field",name:"_handleReferrerpolicy",static:!1,private:!1,access:{has:e=>"_handleReferrerpolicy"in e,get:e=>e._handleReferrerpolicy,set:(e,t)=>{e._handleReferrerpolicy=t}},metadata:e},e0,e1),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","placeholder","blur-radius","crossorigin","referrerpolicy"];#L=ax(this,eq);#eN=aA(()=>this.#L.shadowRoot,"#img");_handleSrc=ax(this,eY,aI(this.#eN,"src",e=>e||this.#L.getAttribute("placeholder")));_preloadPlaceholder(e){e&&(new Image().src=e)}_handleBlurRadius=(ax(this,eG),ax(this,eJ,ak(this.#eN,"--blur-radius",void 0,!0)));_handleCrossorigin=(ax(this,eK),ax(this,eQ,aI(this.#eN,"crossorigin")));_handleReferrerpolicy=(ax(this,eZ),ax(this,e0,aI(this.#eN,"referrerpolicy")));#eD=(ax(this,e1),()=>{let e=this.#eN().src,t=this.#L.getAttribute("placeholder");t&&e!==t&&(this.#eN().src=t)});constructor(e){this.#L=e,this.#eN().addEventListener("error",this.#eD)}connectedCallback(){(null===this.#L.getAttribute("src")||""===this.#L.getAttribute("src"))&&this._handleSrc(null)}}),sh=(e3=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;e2=[aD("load")],e4=[aD("error")],a_(this,null,e2,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,e3),a_(this,null,e4,{kind:"method",name:"_enableErrorEvent",static:!1,private:!1,access:{has:e=>"_enableErrorEvent"in e,get:e=>e._enableErrorEvent},metadata:e},null,e3),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=ax(this,e3);#eN=aA(()=>this.#L.shadowRoot,"#img");_enableLoadEvent(e){e?this.#eN().addEventListener("load",this.#eF,{passive:!0}):this.#eN().removeEventListener("load",this.#eF)}_enableErrorEvent(e){e?this.#eN().addEventListener("error",this.#eH,{passive:!0}):this.#eN().removeEventListener("error",this.#eH)}#eF=()=>{this.#L.dispatchEvent(new CustomEvent("load",{...aF,detail:{width:this.#eN().naturalWidth,height:this.#eN().naturalHeight}}))};#eH=()=>{this.#L.dispatchEvent(new CustomEvent("error",{...aF,detail:{}}))};constructor(e){this.#L=e}});e9=[aP("filter-image",[aj,sc,(eW=[],ez=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a_(null,null,[aR("drop-shadow",!0)],{kind:"field",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius,set:(e,t)=>{e._handleBlurRadius=t}},metadata:e},eW,ez),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["drop-shadow"];#L;#eN=aA(()=>this.#L.shadowRoot,"#img");_handleBlurRadius=ax(this,eW,ak(this.#eN,"--drop-shadow",void 0,!0));constructor(e){ax(this,ez),this.#L=e}}),sh],aG({}))],e7=[],e5=HTMLElement,(class extends e5{static{e6=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(e5[Symbol.metadata]??null):void 0;a_(null,e8={value:e6},e9,{kind:"class",name:e6.name,metadata:e},null,e7),e6=e8.value,e&&Object.defineProperty(e6,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(e6,e7)}}),tn=[aP("x-image",[aj,sc,sh],aG({}))],ti=[],tl=HTMLElement,class extends tl{static{tt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tl[Symbol.metadata]??null):void 0;a_(null,te={value:tt},tn,{kind:"class",name:tt.name,metadata:e},null,ti),tt=te.value,e&&Object.defineProperty(tt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(tt,ti)}};let su={submit:"confirm",blur:"lynxblur",focus:"lynxfocus"};tY=[aP("x-input",[aj,(tx=[],tC=[],tT=[],tO=[],tL=[],tI=[],tk=[],tA=[],tP=[],tM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ty=[aR("placeholder",!0)],tE=[aR("placeholder-color",!0)],tS=[aR("placeholder-font-family",!0)],tw=[aR("placeholder-font-size",!0)],t_=[aR("placeholder-font-weight",!0)],a_(null,null,ty,{kind:"field",name:"_handlerPlaceholder",static:!1,private:!1,access:{has:e=>"_handlerPlaceholder"in e,get:e=>e._handlerPlaceholder,set:(e,t)=>{e._handlerPlaceholder=t}},metadata:e},tx,tC),a_(null,null,tE,{kind:"field",name:"_handlerPlaceholderColor",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderColor"in e,get:e=>e._handlerPlaceholderColor,set:(e,t)=>{e._handlerPlaceholderColor=t}},metadata:e},tT,tO),a_(null,null,tS,{kind:"field",name:"_handlerPlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontFamily"in e,get:e=>e._handlerPlaceholderFontFamily,set:(e,t)=>{e._handlerPlaceholderFontFamily=t}},metadata:e},tL,tI),a_(null,null,tw,{kind:"field",name:"_handlerPlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontSize"in e,get:e=>e._handlerPlaceholderFontSize,set:(e,t)=>{e._handlerPlaceholderFontSize=t}},metadata:e},tk,tA),a_(null,null,t_,{kind:"field",name:"_handlerPlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_handlerPlaceholderFontWeight"in e,get:e=>e._handlerPlaceholderFontWeight,set:(e,t)=>{e._handlerPlaceholderFontWeight=t}},metadata:e},tP,tM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-family","placeholder-font-size","placeholder-font-weight"];#L;#ej=aA(()=>this.#L.shadowRoot,"#input");_handlerPlaceholder=ax(this,tx,aI(this.#ej,"placeholder"));_handlerPlaceholderColor=(ax(this,tC),ax(this,tT,ak(this.#ej,"--placeholder-color",void 0,!0)));_handlerPlaceholderFontFamily=(ax(this,tO),ax(this,tL,ak(this.#ej,"--placeholder-font-family",void 0,!0)));_handlerPlaceholderFontSize=(ax(this,tI),ax(this,tk,ak(this.#ej,"--placeholder-font-size",void 0,!0)));_handlerPlaceholderFontWeight=(ax(this,tA),ax(this,tP,ak(this.#ej,"--placeholder-font-weight",void 0,!0)));constructor(e){ax(this,tM),this.#L=e}}),(tF=[],tH=[],tj=[],tW=[],tz=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tR=[aR("value",!1)],tN=[aR("disabled",!0)],tD=[aR("autocomplete",!0)],a_(this,null,tR,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,tF),a_(null,null,tN,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},tH,tj),a_(null,null,tD,{kind:"field",name:"_handleAutocomplete",static:!1,private:!1,access:{has:e=>"_handleAutocomplete"in e,get:e=>e._handleAutocomplete,set:(e,t)=>{e._handleAutocomplete=t}},metadata:e},tW,tz),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["value","disabled","autocomplete"];#L=ax(this,tF);#ej=aA(()=>this.#L.shadowRoot,"#input");_handleValue(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#ej();t.value!==e&&(t.value=e)}_handleDisabled=ax(this,tH,aI(this.#ej,"disabled",e=>null!==e?"":null));_handleAutocomplete=(ax(this,tj),ax(this,tW,aI(this.#ej,"autocomplete")));constructor(e){ax(this,tz),this.#L=e}}),(tc=[],th=[],tu=[],tm=[],tp=[],tb=[],tv=[],tg=[],tf=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;ta=[aR("confirm-type",!0)],ts=[aR("maxlength",!0)],tr=[aR("readonly",!0)],to=[aR("type",!0)],td=[aR("ios-spell-check",!0),aR("spell-check",!0)],a_(this,null,to,{kind:"method",name:"_handleType",static:!1,private:!1,access:{has:e=>"_handleType"in e,get:e=>e._handleType},metadata:e},null,tc),a_(null,null,ta,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},th,tu),a_(null,null,ts,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},tm,tp),a_(null,null,tr,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},tb,tv),a_(null,null,td,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},tg,tf),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check"];#L=ax(this,tc);#ej=aA(()=>this.#L.shadowRoot,"#input");_handlerConfirmType=ax(this,th,aI(this.#ej,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(ax(this,tu),ax(this,tm,aI(this.#ej,"maxlength",e=>null===e?"140":e)));_handleReadonly=(ax(this,tp),ax(this,tb,aI(this.#ej,"readonly",e=>null!==e?"":null)));#eW=(ax(this,tv),aI(this.#ej,"type"));#ez=aI(this.#ej,"inputmode");_handleType(e){let t="text",n="text";"digit"===e?t="numeric":"number"===e?t="decimal":"email"===e?t="email":"tel"===e?t="tel":n=e,this.#ez(t),this.#eW(n)}_handleSpellCheck=ax(this,tg,aI(this.#ej,"spellcheck",e=>null===e?"false":"true"));constructor(e){ax(this,tf),this.#L=e}}),(tB=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tV=[aR("input-filter",!0),aD("lynxinput")],tU=[aR("send-composing-input",!0)],t$=[aD("selection")],a_(this,null,tV,{kind:"method",name:"_handleEnableInputEvent",static:!1,private:!1,access:{has:e=>"_handleEnableInputEvent"in e,get:e=>e._handleEnableInputEvent},metadata:e},null,tB),a_(this,null,tU,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,tB),a_(this,null,t$,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,tB),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#L=ax(this,tB);#eV=!1;#eU=/[^0-9.]|\.(?=.*\.)/g;#ej=aA(()=>this.#L.shadowRoot,"#input");#e$=aA(()=>this.#L.shadowRoot,"#form");_handleEnableInputEvent(e){let t=this.#ej();e?(t.addEventListener("input",this.#eB,{passive:!0}),t.addEventListener("compositionend",this.#eX,{passive:!0})):(t.removeEventListener("input",this.#eB),t.removeEventListener("compositionend",this.#eX))}_handleSendComposingInput(e){this.#eV=null!==e}#eq=e=>{let t=su[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...aF,detail:{value:this.#ej().value}}))};#eB=e=>{let t=this.#ej(),n=this.#eY(t.value),i=e.isComposing;t.value=n,(!i||this.#eV)&&this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aF,detail:{value:n,textLength:n.length,cursor:t.selectionStart,isComposing:i,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#eX=()=>{let e=this.#ej(),t=this.#eY(e.value);e.value=t,this.#eV||this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aF,detail:{value:t,textLength:t.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eY(e){let t=e;"number"===this.#L.getAttribute("type")&&(t=t.replace(this.#eU,""));let n=this.#L.getAttribute("input-filter");return n&&(t=t.replace(RegExp(n,"g"),"")),t}_handleEnableSelectionEvent(e){e?this.#ej().addEventListener("select",this.#eG,{passive:!0}):this.#ej().removeEventListener("select",this.#eG)}#eG=()=>{let e=this.#ej();this.#L.dispatchEvent(new CustomEvent("selection",{...aF,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eJ=e=>{e.target===this.#ej()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;const t=this.#ej(),n=this.#e$();t.addEventListener("blur",this.#eq,{passive:!0}),t.addEventListener("focus",this.#eq,{passive:!0}),n.addEventListener("submit",this.#eq,{passive:!0}),n.addEventListener("input",this.#eJ,{passive:!0})}})],aJ)],tG=[],tJ=HTMLElement,(class extends tJ{static{tq=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(tJ[Symbol.metadata]??null):void 0;a_(null,tX={value:tq},tY,{kind:"class",name:tq.name,metadata:e},null,tG),tq=tX.value,e&&Object.defineProperty(tq,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(tq,tG)}#eK=aA(()=>this.shadowRoot,"#input");addText(e){let{text:t}=e,n=this.#eK(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}controlKeyBoard(e){let{action:t}=e;0===t||1===t?this.focus():(2===t||3===t)&&this.blur()}setValue(e){let t,n=this.#eK();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#eK();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#eK();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}setInputFilter(e){this.#eK().setAttribute("pattern",e.pattern)}select(){let e=this.#eK();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#eK().setSelectionRange(e.selectionStart,e.selectionEnd)}focus(e){this.#eK().focus(e)}blur(){this.#eK().blur()}connectedCallback(){let e=this.#eK();null===this.getAttribute("confirm-type")&&e.setAttribute("confirm-type","send"),null===this.getAttribute("maxlength")&&e.setAttribute("maxlength","140")}}),t2=[aP("x-overlay-ng",[aj,(tZ=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;tK=[aR("events-pass-through",!0)],tQ=[aR("visible",!1)],a_(this,null,tK,{kind:"method",name:"_handleEventsPassThrough",static:!1,private:!1,access:{has:e=>"_handleEventsPassThrough"in e,get:e=>e._handleEventsPassThrough},metadata:e},null,tZ),a_(this,null,tQ,{kind:"method",name:"_handleVisible",static:!1,private:!1,access:{has:e=>"_handleVisible"in e,get:e=>e._handleVisible},metadata:e},null,tZ),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["visible","events-pass-through"];#L=ax(this,tZ);#eQ=!!window.HTMLDialogElement;#eZ=!1;constructor(e){this.#L=e}#e0=aA(()=>this.#L.shadowRoot,"#dialog");_handleEventsPassThrough(e){null!==e?(this.#e0().addEventListener("click",this.#e1,{passive:!1}),this.#L.addEventListener("click",this.#e1,{passive:!1})):(this.#e0().removeEventListener("click",this.#e1),this.#L.removeEventListener("click",this.#e1))}_handleVisible(e){this.#eZ=null!==e,this.#eQ&&(this.#eZ?(this.#e0().showModal(),this.#L.dispatchEvent(new CustomEvent("showoverlay",aF))):(this.#e0().close(),this.#L.dispatchEvent(new CustomEvent("dismissoverlay",aF))))}#e1=e=>{e.stopPropagation();let t=this.#e0();if(e.target===this.#L||e.target===t){t.close();let{clientX:n,clientY:i}=e,l=document.elementFromPoint(n,i);l?.tagName==="LYNX-VIEW"&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(n,i)??l),l?.dispatchEvent(new MouseEvent("click",e)),requestAnimationFrame(()=>{this.#eZ&&t.isConnected&&t.showModal()})}};connectedCallback(){this.#eQ||(this.#e0().style.display="none")}})],aQ)],t4=[],t3=HTMLElement,class extends t3{static{t1=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t3[Symbol.metadata]??null):void 0;a_(null,t0={value:t1},t2,{kind:"class",name:t1.name,metadata:e},null,t4),t1=t0.value,e&&Object.defineProperty(t1,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(t1,t4)}get[aH](){return this.shadowRoot.firstElementChild}};class sm extends Event{startShowing;fullyShowing;static EventName="x-refresh-view-intersecting";constructor(e,t){super(sm.EventName,{composed:!1,cancelable:!0,bubbles:!0}),this.startShowing=e,this.fullyShowing=t}}class sp{#L;static observedAttributes=[];#e2;constructor(e){this.#L=e}connectedCallback(){if(IntersectionObserver&&!this.#e2){let e=this.#L.parentElement;e&&(this.#e2=new IntersectionObserver(e=>{let t=!1,n=!1;e.forEach(e=>{t=e.intersectionRatio>0,n=e.intersectionRatio>.9}),this.#L.dispatchEvent(new sm(t,n)),n&&this.#L.setAttribute("x-magnet-enable","")},{root:e,threshold:[.1,.9]}),this.#e2.observe(this.#L))}}dispose(){this.#e2&&(this.#e2.disconnect(),this.#e2=void 0)}}t9=[aP("x-refresh-footer",[a6,aj,sp])],t7=[],t5=HTMLElement,(class extends t5{static{t6=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(t5[Symbol.metadata]??null):void 0;a_(null,t8={value:t6},t9,{kind:"class",name:t6.name,metadata:e},null,t7),t6=t8.value,e&&Object.defineProperty(t6,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(t6,t7)}connectedCallback(){this.setAttribute("slot","footer")}}),nn=[aP("x-refresh-header",[a6,aj,sp])],ni=[],nl=HTMLElement,(class extends nl{static{nt=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nl[Symbol.metadata]??null):void 0;a_(null,ne={value:nt},nn,{kind:"class",name:nt.name,metadata:e},null,ni),nt=ne.value,e&&Object.defineProperty(nt,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(nt,ni)}connectedCallback(){this.setAttribute("slot","header")}}),nc=[aP("x-refresh-view",[a6,aj,(nr=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;na=[aD("headeroffset"),aD("headershow"),aD("footeroffset")],ns=[aD("startrefresh"),aD("headerreleased"),aD("startloadmore"),aD("footerreleased")],a_(this,null,na,{kind:"method",name:"_handleComplexEventEnableAttributes",static:!1,private:!1,access:{has:e=>"_handleComplexEventEnableAttributes"in e,get:e=>e._handleComplexEventEnableAttributes},metadata:e},null,nr),a_(this,null,ns,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,nr),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}#L=ax(this,nr);static observedAttributes=[];#e4=aA(()=>this.#L,"x-refresh-view > x-refresh-header:first-of-type");#e3=aA(()=>this.#L,"x-refresh-view > x-refresh-footer:first-of-type");constructor(e){this.#L=e,this.#L.addEventListener(sm.EventName,this.#e8)}#e6={headeroffset:!1,headerreleased:!1,startrefresh:!1,footeroffset:!1,headershow:!1,footerreleased:!1,startloadmore:!1};_handleComplexEventEnableAttributes(e,t){this.#e6[t]=e;let{headeroffset:n,headershow:i,footeroffset:l}=this.#e6;n||i||l?this.#e9():this.#e7()}_handleXEnableHeaderOffsetEvent(e,t){this.#e6[t]=e;let{startrefresh:n,headerreleased:i,startloadmore:l,footerreleased:a}=this.#e6;i||a||l||n?this.#e5():this.#te()}#tt=!1;#tn=!1;#ti=!1;#tl=!1;#e8=e=>{e.stopPropagation(),"X-REFRESH-HEADER"===e.target.tagName?(this.#tt=e.startShowing,this.#tn=e.fullyShowing):(this.#ti=e.startShowing,this.#tl=e.fullyShowing)};#ta=!1;#e5(){this.#ta||(this.#L.addEventListener("touchend",this.#ts),this.#ta=!0)}#ts=()=>{this.#tn?(this.#L.dispatchEvent(new CustomEvent("headerreleased",aF)),this.#L.dispatchEvent(new CustomEvent("startrefresh",{...aF,detail:{isManual:this.#L._nextRefreshIsManual}})),this.#L._nextRefreshIsManual=!0):("true"===this.#L.getAttribute("enable-auto-loadmore")&&this.#ti||this.#tl)&&(this.#L.dispatchEvent(new CustomEvent("footerreleased",aF)),this.#L.dispatchEvent(new CustomEvent("startloadmore",aF)))};#te(){this.#ta&&this.#L.removeEventListener("touchend",this.#ts)}#tr=!1;#to=!1;#e9(){this.#to||(this.#L.addEventListener("touchstart",this.#td),this.#L.addEventListener("touchend",this.#tc),this.#L.addEventListener("touchcancel",this.#tc),this.#L.shadowRoot.querySelector("#container").addEventListener("scroll",this.#U))}#tc=()=>{this.#tr=!1};#td=()=>{this.#tr=!0};#U=()=>{if(this.#tt&&(this.#e6.headershow||this.#e6.headeroffset)){let e=this.#e4();if(e){let t=parseFloat(getComputedStyle(e).height),n=this.#L.shadowRoot.querySelector("#container").scrollTop;this.#L.dispatchEvent(new CustomEvent("headershow",{...aF,detail:{isDragging:this.#tr,offsetPercent:1-n/t}})),this.#L.dispatchEvent(new CustomEvent("headeroffset",{...aF,detail:{isDragging:this.#tr,offsetPercent:1-n/t}}))}}else if(this.#ti&&this.#e6.footeroffset){let e=this.#e3();if(e){let t=this.#L.shadowRoot.querySelector("#container").scrollTop,n=parseFloat(getComputedStyle(e).height);this.#L.dispatchEvent(new CustomEvent("footeroffset",{...aF,detail:{isDragging:this.#tr,offsetPercent:1-t/n}}))}}};#e7(){this.#to&&(this.#L.removeEventListener("touchstart",this.#td),this.#L.removeEventListener("touchend",this.#tc),this.#L.removeEventListener("touchcancel",this.#tc),this.#L.shadowRoot.querySelector("#container").removeEventListener("scroll",this.#U))}dispose(){this.#te(),this.#e7()}})],aZ)],nh=[],nu=HTMLElement,(class extends nu{static{nd=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nu[Symbol.metadata]??null):void 0;a_(null,no={value:nd},nc,{kind:"class",name:nd.name,metadata:e},null,nh),nd=no.value,e&&Object.defineProperty(nd,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-refresh","enable-loadmore","enable-auto-loadmore"]);_nextRefreshIsManual=!0;finishRefresh(){this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.removeAttribute("x-magnet-enable")}finishLoadMore(){this.querySelector("x-refresh-view > x-refresh-footer:first-of-type")?.removeAttribute("x-magnet-enable")}autoStartRefresh(){let e=this.shadowRoot.querySelector("#container");this.querySelector("x-refresh-view > x-refresh-header:first-of-type")?.setAttribute("x-magnet-enable",""),this._nextRefreshIsManual=!1,e.scroll({top:0,behavior:"smooth"})}#th=aA(()=>this.shadowRoot,"#container");#tu=aA(()=>this.shadowRoot,"#content");get scrollTop(){let e=this.#th(),t=this.#tu();return t.scrollTop+t.offsetTop-e.scrollTop}set scrollTop(e){console.log(e);let t=this.#th(),n=this.#tu();e>0?n.scrollTop=e:t.scrollTop=n.offsetTop+e}get scrollHeight(){return this.#tu().scrollHeight}get[a$](){return this}static{ax(nd,nh)}}),ny=[aP("x-svg",[aj,(nv=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nm=[aR("src",!0)],np=[aR("content",!0)],nb=[aD("load")],a_(this,null,nm,{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,nv),a_(this,null,np,{kind:"method",name:"_handleContent",static:!1,private:!1,access:{has:e=>"_handleContent"in e,get:e=>e._handleContent},metadata:e},null,nv),a_(this,null,nb,{kind:"method",name:"_enableLoadEvent",static:!1,private:!1,access:{has:e=>"_enableLoadEvent"in e,get:e=>e._enableLoadEvent},metadata:e},null,nv),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","content"];#L=ax(this,nv);#t=null;#eN=aA(()=>this.#L.shadowRoot,"#img");_handleSrc(e){e?this.#eN().src=e:this.#eN().src=""}_handleContent(e){if(this.#t&&URL.revokeObjectURL(this.#t),!e){this.#t="";return}let t=new Blob([e],{type:"image/svg+xml;charset=UTF-8"}),n=URL.createObjectURL(t);this.#t=n,this.#eN().src=n}_enableLoadEvent(e){e?this.#eN().addEventListener("load",this.#eF,{passive:!0}):this.#eN().removeEventListener("load",this.#eF)}#eF=()=>{this.#L.dispatchEvent(new CustomEvent("load",{...aF,detail:{width:this.#eN().naturalWidth,height:this.#eN().naturalHeight}}))};constructor(e){this.#L=e}})],'<img part="img" alt="" loading="lazy" id="img" /> ')],nE=[],nS=HTMLElement,(class extends nS{static{nf=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nS[Symbol.metadata]??null):void 0;a_(null,ng={value:nf},ny,{kind:"class",name:nf.name,metadata:e},null,nE),nf=ng.value,e&&Object.defineProperty(nf,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(nf,nE)}}),nx=[aP("x-swiper-item",[a6,aj])],nC=[],nT=HTMLElement,(class extends nT{static{n_=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(nT[Symbol.metadata]??null):void 0;a_(null,nw={value:n_},nx,{kind:"class",name:n_.name,metadata:e},null,nC),n_=nw.value,e&&Object.defineProperty(n_,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(n_,nC)}}),n0=[aP("x-swiper",[aj,(nV=[],nU=[],n$=[],nB=[],nX=[],nq=[],nY=[],nG=[],nJ=[],nK=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nF=[aR("indicator-color",!0)],nH=[aR("indicator-active-color",!0)],nj=[aR("page-margin",!0)],nW=[aR("previous-margin",!0)],nz=[aR("next-margin",!0)],a_(null,null,nF,{kind:"field",name:"_handleIndicatorColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorColor"in e,get:e=>e._handleIndicatorColor,set:(e,t)=>{e._handleIndicatorColor=t}},metadata:e},nV,nU),a_(null,null,nH,{kind:"field",name:"_handleIndicatorActiveColor",static:!1,private:!1,access:{has:e=>"_handleIndicatorActiveColor"in e,get:e=>e._handleIndicatorActiveColor,set:(e,t)=>{e._handleIndicatorActiveColor=t}},metadata:e},n$,nB),a_(null,null,nj,{kind:"field",name:"_handlePageMargin",static:!1,private:!1,access:{has:e=>"_handlePageMargin"in e,get:e=>e._handlePageMargin,set:(e,t)=>{e._handlePageMargin=t}},metadata:e},nX,nq),a_(null,null,nW,{kind:"field",name:"_handlePreviousMargin",static:!1,private:!1,access:{has:e=>"_handlePreviousMargin"in e,get:e=>e._handlePreviousMargin,set:(e,t)=>{e._handlePreviousMargin=t}},metadata:e},nY,nG),a_(null,null,nz,{kind:"field",name:"_handleNextMargin",static:!1,private:!1,access:{has:e=>"_handleNextMargin"in e,get:e=>e._handleNextMargin,set:(e,t)=>{e._handleNextMargin=t}},metadata:e},nJ,nK),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["indicator-color","indicator-active-color","page-margin","previous-margin","next-margin"];#L;#tm=0;#tp=aA(()=>this.#L.shadowRoot,"#indicator-container");#tb=aA(()=>this.#L.shadowRoot,"#indicator-style");#tv;constructor(e){ax(this,nK),this.#L=e}_handleIndicatorColor=ax(this,nV,ak(this.#tp,"--indicator-color",void 0,!0));_handleIndicatorActiveColor=(ax(this,nU),ax(this,n$,ak(this.#tp,"--indicator-active-color",void 0,!0)));_handlePageMargin=(ax(this,nB),ax(this,nX,ak(this.#tp,"--page-margin",void 0,!0)));_handlePreviousMargin=(ax(this,nq),ax(this,nY,ak(this.#tp,"--previous-margin",void 0,!0)));_handleNextMargin=(ax(this,nG),ax(this,nJ,ak(this.#tp,"--next-margin",void 0,!0)));#tg(){let e=this.#L.childElementCount;if(e!==this.#tm){let t="";for(let n=0;n<e;n++)t+=`<div style="animation-timeline:--x-swiper-item-${n};" part="indicator-item"></div>`;if(this.#tp().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.#tb().innerHTML=`:host { timeline-scope: ${Array.from({length:e},(e,t)=>`--x-swiper-item-${t}`).join(",")} !important; }`}}this.#tm=e}connectedCallback(){if(this.#tg(),this.#tv=new MutationObserver(this.#tg.bind(this)),this.#tv.observe(this.#L,{attributes:!1,characterData:!1,childList:!0,subtree:!1}),!CSS.supports("timeline-scope","--a, --b")){this.#L.addEventListener("change",(({detail:e})=>{let t=e.current,n=this.#L.childElementCount,i=this.#tp();for(let e=0;e<n;e++){let n=i.children[e];n&&(e===t?n.style.setProperty("background-color","var(--indicator-active-color)","important"):n.style.removeProperty("background-color"))}}).bind(this));let e=parseFloat(this.#L.getAttribute("current")??"0");this.#tp().children[e]?.style.setProperty("background-color","var(--indicator-active-color)","important")}}dispose(){this.#tv?.disconnect(),this.#tv=void 0}}),(nL=[],nI=[],nk=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nO=[aD("transition")],a_(this,null,[aD("scrollstart"),aD("lynxscrollend"),aD("change"),aD("change-event-for-indicator")],{kind:"method",name:"_enableScrollEventProcessor",static:!1,private:!1,access:{has:e=>"_enableScrollEventProcessor"in e,get:e=>e._enableScrollEventProcessor},metadata:e},null,nL),a_(null,null,nO,{kind:"field",name:"_handleEnableTransitionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableTransitionEvent"in e,get:e=>e._handleEnableTransitionEvent,set:(e,t)=>{e._handleEnableTransitionEvent=t}},metadata:e},nI,nk),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=ax(this,nL);#tf=0;#ty=0;#tr=!1;#M;#tE=!1;constructor(e){this.#L=e}#tu=aA(()=>this.#L.shadowRoot,"#content").bind(this);_handleEnableTransitionEvent=ax(this,nI,aL(this.#tu,"scroll",this.#tS,{passive:!0}));#U(){aU||(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#tE||(this.#L.dispatchEvent(new CustomEvent("scrollstart",{...aF,detail:{current:this.#tf,isDragged:this.#tr}})),this.#tE=!0);let e=this.#tu(),t=this.#L.isVertical,n=t?e.scrollTop:e.scrollLeft,i=t?e.clientHeight:e.clientWidth,l=t?e.scrollHeight:e.scrollWidth;if(Math.abs(this.#ty-n)>i/4||n<10||Math.abs(n-l)<=i){let e=this.#L.currentIndex;e!==this.#tf&&(this.#L.dispatchEvent(new CustomEvent("change",{...aF,detail:{current:e,isDragged:this.#tr}})),this.#tf=e),this.#ty=n}}#B(){this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aF,detail:{current:this.#tf}})),this.#tE=!1}#tw(){this.#tr=!0}#t_(){this.#tr=!1}#tS(){this.#L.dispatchEvent(new CustomEvent("transition",{...aF,detail:{dx:this.#tu().scrollLeft,dy:this.#tu().scrollTop}}))}#tx=(ax(this,nk),[aL(this.#tu,"scroll",this.#U.bind(this),{passive:!0}),aL(this.#tu,"touchstart",this.#tw.bind(this),{passive:!0}),aL(this.#tu,"touchend",this.#t_.bind(this),{passive:!0}),aL(this.#tu,"touchcancel",this.#t_.bind(this),{passive:!0}),aL(this.#tu,"scrollend",this.#B.bind(this),{passive:!0})]);#e6={scrollstart:!1,lynxscrollend:!1,change:!1,"change-event-for-indicator":!1};_enableScrollEventProcessor(e,t){this.#e6[t]=e;let{lynxscrollend:n,scrollstart:i,change:l}=this.#e6,a=l||n||i||this.#e6["change-event-for-indicator"];this.#tx.forEach(e=>e(a))}connectedCallback(){this.#tf=parseFloat(this.#L.getAttribute("current")??"0");let e=this.#L.isVertical;this.#ty=e?this.#tu().scrollTop:this.#tu().scrollLeft}}),(nD=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nR=[aR("circular",!1)],nN=[aR("vertical",!0)],a_(this,null,nR,{kind:"method",name:"_handleCircular",static:!1,private:!1,access:{has:e=>"_handleCircular"in e,get:e=>e._handleCircular},metadata:e},null,nD),a_(this,null,nN,{kind:"method",name:"_handleVerticalChange",static:!1,private:!1,access:{has:e=>"_handleVerticalChange"in e,get:e=>e._handleVerticalChange},metadata:e},null,nD),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["circular","vertical"];#L=ax(this,nD);#tC=!1;#tT;#tO=0;#tu=aA(()=>this.#L.shadowRoot,"#content").bind(this);constructor(e){this.#L=e}#tL=aA(()=>this.#L.shadowRoot,"#circular-start").bind(this);#tI=aA(()=>this.#L.shadowRoot,"#circular-end").bind(this);#tk(e){let t=this.#L.childElementCount;if(t>2){let{current:n,isDragged:i,__isFirstLayout:l}=e.detail;if(0===n||n===t-1||2===n||n===t-2){let e,a=this.#tu(),s=this.#tL().assignedElements(),r=this.#tI().assignedElements(),o=this.#L.firstElementChild,d=this.#L.lastElementChild,c=this.#L.snapDistance;if(0===n?(r.forEach(e=>e.removeAttribute("slot")),d.setAttribute("slot","circular-start"),e=o):n===t-1?(s.forEach(e=>e.removeAttribute("slot")),o.setAttribute("slot","circular-end"),e=d):(s.forEach(e=>e.removeAttribute("slot")),r.forEach(e=>e.removeAttribute("slot")),e=this.#L.children[n]),this.#tC){let t="carousel"===this.#L.getAttribute("mode")?.8*a.clientHeight/2:a.clientHeight/2;this.#tO=e.offsetTop+e.offsetHeight/2-c-t,a.scrollTop=this.#tO}else{let t="carousel"===this.#L.getAttribute("mode")?.8*a.clientWidth/2:a.clientWidth/2;this.#tO=e.offsetLeft+e.offsetWidth/2-c-t,a.scrollLeft=this.#tO}if(!i){let e=this.#L.getAttribute("mode");if(l&&(null===e||"normal"===e||"carousel"===e||"carry"===e))return;this.#tA(l?"instant":"smooth")}}}}#tA(e){let t=this.#tu(),n=this.#L.snapDistance;t.scrollBy({top:this.#tC?n:0,left:this.#tC?0:n,behavior:e??"smooth"})}#tx=[aL(()=>this.#L,"change",this.#tk.bind(this),{passive:!0}),aL(()=>this.#L,"touchmove",this.#tP.bind(this),{passive:!1}),aL(()=>this.#L,"touchend",this.#tM.bind(this),{passive:!1}),aL(()=>this.#L,"touchcancel",this.#tM.bind(this),{passive:!1})];_handleCircular(e){this.#tx.forEach(t=>t(null!=e)),null!==e&&this.#tk({detail:{current:this.#L.currentIndex,isDragged:!1,__isFirstLayout:!0}})}#tP(e){let t=e.touches.item(0);if(t){let e=this.#tC?t.pageY:t.pageX;if(void 0!==this.#tT){this.#tR();let t=this.#tT-e;this.#tO+=t}this.#tT=e}}#tM(e){this.#tN(),this.#tA(),this.#tT=void 0}_handleVerticalChange(e){this.#tC=null!==e}#tD;#tR(){if(!this.#tD){let e=this.#tu();this.#tO=this.#tC?e.scrollTop:e.scrollLeft,this.#tD=setInterval(()=>{this.#tC?e.scrollTop=this.#tO:e.scrollLeft=this.#tO},10)}}#tN(){this.#tD&&(clearInterval(this.#tD),this.#tD=void 0)}dispose(){this.#tN()}}),(nM=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;nA=[aR("current",!1)],nP=[aR("interval",!1),aR("autoplay",!1)],a_(this,null,nA,{kind:"method",name:"_handleCurrentChange",static:!1,private:!1,access:{has:e=>"_handleCurrentChange"in e,get:e=>e._handleCurrentChange},metadata:e},null,nM),a_(this,null,nP,{kind:"method",name:"_handleAutoplay",static:!1,private:!1,access:{has:e=>"_handleAutoplay"in e,get:e=>e._handleAutoplay},metadata:e},null,nM),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["current","interval","autoplay"];#L=ax(this,nM);constructor(e){this.#L=e}#tF(){this.#L.currentIndex===this.#L.childElementCount-1?this.#L.circularPlay&&(this.#L.currentIndex=0):this.#L.currentIndex+=1}_handleCurrentChange(e){let t=Number(e);Number.isNaN(t)||(this.#L.currentIndex=t)}#tH;#tj=(()=>{this.#tF()}).bind(this);#tW(e){this.#tz(),this.#tH=setInterval(this.#tj,e)}#tz(){this.#tH&&clearInterval(this.#tH)}_handleAutoplay(){if(null!==this.#L.getAttribute("autoplay")){let e=this.#L.getAttribute("interval"),t=e?parseFloat(e):5e3;Number.isNaN(t)&&(t=5e3),this.#tW(t)}}dispose(){this.#tz()}})],a0)],n1=[],n2=HTMLElement,(class extends n2{static{nZ=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n2[Symbol.metadata]??null):void 0;a_(null,nQ={value:nZ},n0,{kind:"class",name:nZ.name,metadata:e},null,n1),nZ=nQ.value,e&&Object.defineProperty(nZ,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["smooth-scroll","indicator-dots"]);#tu=aA(()=>this.shadowRoot,"#content").bind(this);#tV(){let e=0,t=Number.MAX_SAFE_INTEGER,n=0;if(this.childElementCount>0){let i=this.#tu(),l=this.isVertical,a=this.childElementCount,s=l?i.scrollTop:i.scrollLeft,r=l?i.clientHeight:i.clientWidth,o=l?this.firstElementChild.offsetHeight:this.firstElementChild.offsetWidth,d=s+("carousel"===this.getAttribute("mode")?.8*r/2:r/2);for(let i=0;i<a;i++){let a=this.children[i];if(a){let s=(l?a.offsetTop:a.offsetLeft)+o/2-d,r=Math.abs(s);r<t&&(e=i,t=r,n=s)}}}return{current:e,minDistanceToMid:t,minOffsetToMid:n}}get currentIndex(){return this.#tV().current}set currentIndex(e){if(this.currentIndex===e)return;let t=null===this.getAttribute("smooth-scroll");this.#tU(e,t?"smooth":"instant")}#tU(e,t){let n=this.children.item(e);if(n){let e=this.isVertical,i=0;i="flat-coverflow"===this.getAttribute("mode")?e?n.offsetTop-n.offsetHeight/3:n.offsetLeft-n.offsetWidth/3:e?n.offsetTop:n.offsetLeft,this.#tu().scrollTo({left:e?0:i,top:e?i:0,behavior:t})}}get snapDistance(){return this.#tV().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.#tU(t,n?"smooth":"instant")}super.scrollTo(...e)}connectedCallback(){let e=this.getAttribute("current");null!==e&&this.#tU(Number(e),"instant")}get[a$](){return this}static{ax(nZ,n1)}}),n6=[aP("inline-image",[(n4=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a_(this,null,[aR("src",!0)],{kind:"method",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc},metadata:e},null,n4),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src"];#L=ax(this,n4);constructor(e){this.#L=e}#t$=aA(()=>this.#L.shadowRoot,"#img");_handleSrc(e){e?this.#t$().setAttribute("src",e):this.#t$().removeAttribute("src")}})],aG({}))],n9=[],n7=HTMLElement,(class extends n7{static{n8=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(n7[Symbol.metadata]??null):void 0;a_(null,n3={value:n8},n6,{kind:"class",name:n8.name,metadata:e},null,n9),n8=n3.value,e&&Object.defineProperty(n8,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(n8,n9)}}),it=[aP("inline-text",[])],ii=[],il=HTMLElement,(class extends il{static{ie=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(il[Symbol.metadata]??null):void 0;a_(null,n5={value:ie},it,{kind:"class",name:ie.name,metadata:e},null,ii),ie=n5.value,e&&Object.defineProperty(ie,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(ie,ii)}}),ir=[aP("inline-truncation",[])],io=[],id=HTMLElement,n=class extends id{static{is=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(id[Symbol.metadata]??null):void 0;a_(null,ia={value:is},ir,{kind:"class",name:is.name,metadata:e},null,io),n=is=ia.value,e&&Object.defineProperty(is,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static XEnableCustomTruncation="x-text-custom-overflow";connectedCallback(){CSS.supports("selector(:has(>inline-truncation))")||this.parentElement?.tagName!=="X-TEXT"||this.matches("inline-truncation ~ inline-truncation")||this.parentElement.setAttribute(n.XEnableCustomTruncation,""),this.setAttribute("slot","inline-truncation")}disconnectedCallback(){this.parentElement?.removeAttribute(n.XEnableCustomTruncation)}static{ax(is,io)}},n=is;let sb=(ic=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a_(this,null,[aR("text",!0)],{kind:"method",name:"_handleText",static:!1,private:!1,access:{has:e=>"_handleText"in e,get:e=>e._handleText},metadata:e},null,ic),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["text"];#L=ax(this,ic);#tB;constructor(e){this.#L=e}_handleText(e){this.#tB?.remove(),e&&(this.#tB=new Text(e),this.#L.append(this.#tB))}});im=[aP("raw-text",[sb])],ip=[],ib=HTMLElement,class extends ib{static{iu=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ib[Symbol.metadata]??null):void 0;a_(null,ih={value:iu},im,{kind:"class",name:iu.name,metadata:e},null,ip),iu=ih.value,e&&Object.defineProperty(iu,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(iu,ip)}};let sv=(iy=[],class e{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iv=[aR("text-maxlength",!0),aR("text-maxline",!0),aR("tail-color-convert",!0)],ig=[aD("layout")],a_(this,null,iv,{kind:"method",name:"_handleAttributeChange",static:!1,private:!1,access:{has:e=>"_handleAttributeChange"in e,get:e=>e._handleAttributeChange},metadata:e},null,iy),a_(this,null,ig,{kind:"method",name:"_handleEnableLayoutEvent",static:!1,private:!1,access:{has:e=>"_handleEnableLayoutEvent"in e,get:e=>e._handleEnableLayoutEvent},metadata:e},null,iy),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static exceedMathLengthAttribute="x-text-clipped";static showInlineTruncation="x-show-inline-truncation";static observedAttributes=["text-maxlength","text-maxline","tail-color-convert"];#tX=(ax(this,iy),!1);#tq=!1;#tY=new Map;#tG;#k;#tJ;#tK;#tQ=!1;#tZ=NaN;#t0=NaN;#t1=!0;#t2=!1;get #t4(){return!this.#t3&&!this.#t1}get #t3(){return!!this.#t8()}#t8(){return this.#L.querySelector(":scope > inline-truncation")}get #t6(){return!isNaN(this.#t0)&&(this.#t3||!this.#t1)}#L;constructor(e){this.#L=e}#t9=aA(()=>this.#L.shadowRoot,"#inner-box");#t7(e){e.forEach(e=>{e.removedNodes.forEach(e=>{this.#tY.delete(e)}),"characterData"===e.type&&void 0!==this.#tY.get(e.target)&&this.#tY.set(e.target,e.target.data)})}#t5(){for(let[t,n]of this.#tY)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)}#ne(e){let t=[],n=e;for(;n=n.nextSibling;)(n.nodeType===Node.TEXT_NODE||n.nodeType===Node.ELEMENT_NODE)&&t.push(n);return t}#nt(){!this.#tq||this.#L.matches("x-text>x-text")||this.#tX||(this.#tX=!0,aO(async()=>{await this.#nn(),this.#ni(),this.#tX=!1}))}async #nn(){if(this.#tJ?.parentElement?.removeChild(this.#tJ),this.#t5(),!this.#t6&&isNaN(this.#tZ))return;await document.fonts.ready;let t=this.#t9().getBoundingClientRect();this.#tK=new sg(this.#L,t);let n=this.#tK,i=(isNaN(this.#tZ)?void 0:n.getNodeInfoByCharIndex(this.#tZ))?this.#tZ:1/0,l=this.#t6&&n.getLineInfo(this.#t0)?n.getLineInfo(this.#t0-1):void 0,a=1/0,s=3;if(l){let{start:i,end:r}=l,o=r-i;if(this.#t3){this.#L.setAttribute(e.showInlineTruncation,"");let l=this.#t8().getBoundingClientRect(),s=t.width,o=l.width;if(s>o){a=r-1;let e=document.createRange(),t=n.getNodeInfoByCharIndex(a),i=r-t.start;for(e.setEnd(t.node,i),e.setStart(t.node,i);e.getBoundingClientRect().width<o&&(a-=1)&&(t=n.getNodeInfoByCharIndex(a));)e.setStart(t.node,a-t.start)}else a=i,this.#L.removeAttribute(e.showInlineTruncation)}else o<3?(s=o,a=i):a=r-3}let r=Math.min(i,a);if(r<1/0){let t=n.getNodeInfoByCharIndex(r);if(t){let i=r-t.start,l=t.node,a=[];l.nodeType===Node.TEXT_NODE?(this.#tY.set(l,l.data),l.data=l.data.substring(0,i)):a.push(l),a=a.concat(this.#ne(l));let o=l.parentElement;for(;o!==this.#L;)a=a.concat(this.#ne(o)),o=o.parentElement;if(a.forEach(t=>{t.nodeType===Node.TEXT_NODE&&0!==t.data.length?(this.#tY.set(t,t.data),t.data=""):t.nodeType===Node.ELEMENT_NODE&&(this.#tY.set(t,""),t.setAttribute(e.exceedMathLengthAttribute,""))}),this.#t4){let e=(0===i?n.nodelist.at(t.nodeIndex-1)?.parentElement:l.parentElement)??l.parentElement;this.#tJ=new Text(Array(s).fill(".").join("")),e.append(this.#tJ)}this.#L.setAttribute(e.exceedMathLengthAttribute,"")}this.#nl(r)}}#na=e=>{this.#t7(e),this.#nt()};#ns=()=>{if(this.#tQ){this.#tQ=!1;return}this.#nt()};#ni(){this.#tq&&((this.#tZ||this.#t0)&&!this.#tG&&(this.#tG=new MutationObserver(this.#na),this.#tG.observe(this.#L,{subtree:!0,childList:!0,attributes:!1,characterData:!0})),this.#t0&&!this.#k&&(this.#k=new ResizeObserver(this.#ns),this.#tQ=!0,this.#k.observe(this.#t9(),{box:"content-box"})))}#nr(){this.#tG?.disconnect(),this.#tG=void 0,this.#k?.disconnect(),this.#k=void 0}_handleAttributeChange(){this.#tZ=parseFloat(this.#L.getAttribute("text-maxlength")??""),this.#t0=parseFloat(this.#L.getAttribute("text-maxline")??""),this.#t1="false"!==this.#L.getAttribute("tail-color-convert"),this.#tZ<0&&(this.#tZ=NaN),this.#t0<1&&(this.#t0=NaN),isNaN(this.#t0)?this.#t9().style.removeProperty("-webkit-line-clamp"):this.#t9().style.webkitLineClamp=this.#t0.toString(),this.#nt()}_handleEnableLayoutEvent(e){this.#t2=e}#nl(e){if(!this.#t2)return;let t=new Proxy(this,{get:(t,n)=>"lineCount"===n?(t.#tK||(t.#tK=new sg(t.#L,t.#L.getBoundingClientRect())),t.#tK.getLineCount()):"lines"===n?new Proxy(t,{get(t,n){let i=parseFloat(n.toString());if(!isNaN(i)){t.#tK||(t.#tK=new sg(t.#L,t.#L.getBoundingClientRect()));let n=t.#tK.getLineInfo(i);if(n)return new Proxy(n,{get(t,n){switch(n){case"start":case"end":return t[n];case"ellipsisCount":if(void 0!==e&&e>=t.start&&e<t.end)return t.end-e;return 0}}})}}}):void 0});this.#L.dispatchEvent(new CustomEvent("layout",{...aF,detail:t}))}dispose(){this.#nr()}connectedCallback(){this.#tq=!0,this._handleEnableLayoutEvent(this.#t2),this._handleAttributeChange(),aO(()=>{this.#nl()})}});class sg{#no=[{start:0}];#nd=[];#nc=[];#L;#nh;nodelist;constructor(e,t){this.#L=e,this.nodelist=new sf(this.#L),this.#nh=t}#nu(e){if(e.node.nodeType!==Node.TEXT_NODE)return 1;{let{rect:t,rectIndex:n}=e,i=e.node,l=document.createRange();l.selectNode(i);for(let e=0;e<i.data.length;e++){l.setEnd(i,e);let a=l.getClientRects().item(n);if(a&&a.right===t.right)return e}return i.data.length}}#nm(e){if(this.#nd[e])return;let{left:t}=this.#nh,n=this.#nd[this.#nd.length-1],i=n?.[n.length-1],l=i?.nodeIndex?i?.nodeIndex+1:0;for(let n=l,i;(i=this.#np(n))&&e>=this.#nd.length;n++){let e,{node:n}=i;if(n.nodeType===Node.ELEMENT_NODE)e=n.getClientRects();else{let t=document.createRange();t.selectNode(n),e=t.getClientRects()}if(e.length>0){let n=this.#nd[this.#nd.length-1],l=e[0];if(.2>Math.abs(l.left-t)||!n?this.#nd.push([{...i,rect:l,rectIndex:0}]):n.push({...i,rect:l,rectIndex:0}),e.length>1)for(let n=1;n<e.length;n++){let a=e[n];(a.left!==l.left||a.bottom!==l.bottom)&&(.2>Math.abs(a.left-t)?this.#nd.push([{...i,rect:a,rectIndex:n}]):this.#nd[this.#nd.length-1].push({...i,rect:a,rectIndex:n}))}}}}getLineCount(){return this.#nm(1/0),this.#nd.length}getLineInfo(e){if(this.#nm(e+1),e<this.#nd.length){let t=e>0?this.#no[e-1]??{}:void 0,n=this.#no[e]??{},i=e<this.#nd.length-1?this.#no[e+1]??{}:void 0;if(void 0===n.start){let i=this.#nd[e-1],l=i[i.length-1],a=this.#nu(l),s=l.start+a;t&&(t.end=s),n.start=s+1}if(void 0===n.end){let t=this.#nd[e],l=t[t.length-1];if(e===this.#nd.length-1){let e=l.node.nodeType===Node.TEXT_NODE?l.node.data.length:1;n.end=l.start+e}else{let e=this.#nu(l);n.end=l.start+e,i.start=n.end+1}}return n}}#np(e){let t=this.#nc.length-1,n=this.#nc[t],i=n?n.start+n.length:0;for(let t=this.#nc.length,n;(n=this.nodelist.at(t))&&e>=this.#nc.length;t++){let e=n.nodeType===Node.ELEMENT_NODE?1:n.data.length,l={node:n,length:e,start:i,nodeIndex:t};this.#nc.push(l)}return this.#nc[e]}getNodeInfoByCharIndex(e){let t,n=0,i=this.#nc.length-1;for(;n<=i;){let l=Math.floor((n+i)/2),a=this.#nc[l],s=a.node,r=s.nodeType===Node.TEXT_NODE?s.data.length:1,o=a.start;if(e>=o&&e<o+r){t=a;break}e<o?i=l-1:n=l+1}if(t)return t;for(let t=this.#nc.length,n;n=this.#np(t);t++)if(e<n.start+n.length)return n}}class sf{#nb=[];#nv;constructor(e){this.#nv=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.#nb[e]||this.#ng(e),this.#nb[e]}#ng(e){let t=null;for(;e>=this.#nb.length&&(t=this.#nv.nextNode());){this.#nb.push(t);break}}}iw=[aP("x-text",[aj,sv,sb],'<div id="inner-box" part="inner-box"><slot part="slot"></slot><slot name="inline-truncation"></slot></div>')],i_=[],ix=HTMLElement,(class extends ix{static{iS=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ix[Symbol.metadata]??null):void 0;a_(null,iE={value:iS},iw,{kind:"class",name:iS.name,metadata:e},null,i_),iS=iE.value,e&&Object.defineProperty(iS,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["tail-color-convert"]);superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aX.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aH]=this;static{ax(iS,i_)}}),ld=[aP("x-textarea",[aj,(ik=[],iA=[],iP=[],iM=[],iR=[],iN=[],iD=[],iF=[],iH=[],ij=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iC=[aR("placeholder-color",!0)],iT=[aR("placeholder-font-size",!0)],iO=[aR("placeholder-font-weight",!0)],iL=[aR("placeholder-font-family",!0)],iI=[aR("placeholder",!0)],a_(null,null,iC,{kind:"field",name:"_updatePlaceholderColor",static:!1,private:!1,access:{has:e=>"_updatePlaceholderColor"in e,get:e=>e._updatePlaceholderColor,set:(e,t)=>{e._updatePlaceholderColor=t}},metadata:e},ik,iA),a_(null,null,iT,{kind:"field",name:"_updatePlaceholderFontSize",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontSize"in e,get:e=>e._updatePlaceholderFontSize,set:(e,t)=>{e._updatePlaceholderFontSize=t}},metadata:e},iP,iM),a_(null,null,iO,{kind:"field",name:"_updatePlaceholderFontWeight",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontWeight"in e,get:e=>e._updatePlaceholderFontWeight,set:(e,t)=>{e._updatePlaceholderFontWeight=t}},metadata:e},iR,iN),a_(null,null,iL,{kind:"field",name:"_updatePlaceholderFontFamily",static:!1,private:!1,access:{has:e=>"_updatePlaceholderFontFamily"in e,get:e=>e._updatePlaceholderFontFamily,set:(e,t)=>{e._updatePlaceholderFontFamily=t}},metadata:e},iD,iF),a_(null,null,iI,{kind:"field",name:"_handlePlaceholder",static:!1,private:!1,access:{has:e=>"_handlePlaceholder"in e,get:e=>e._handlePlaceholder,set:(e,t)=>{e._handlePlaceholder=t}},metadata:e},iH,ij),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["placeholder","placeholder-color","placeholder-font-size","placeholder-font-weight","placeholder-font-family"];#nf=aA(()=>this.#L.shadowRoot,"#textarea");_updatePlaceholderColor=ax(this,ik,ak(this.#nf,"--placeholder-color",void 0,!0));_updatePlaceholderFontSize=(ax(this,iA),ax(this,iP,ak(this.#nf,"--placeholder-font-size",void 0,!0)));_updatePlaceholderFontWeight=(ax(this,iM),ax(this,iR,ak(this.#nf,"--placeholder-font-weight",void 0,!0)));_updatePlaceholderFontFamily=(ax(this,iN),ax(this,iD,ak(this.#nf,"--placeholder-font-family",void 0,!0)));_handlePlaceholder=(ax(this,iF),ax(this,iH,aI(this.#nf,"placeholder")));#L=ax(this,ij);constructor(e){this.#L=e}}),(iB=[],iX=[],iq=[],iY=[],iG=[],iJ=[],iK=[],iQ=[],iZ=[],i0=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;iW=[aR("confirm-type",!0)],iz=[aR("maxlength",!0)],iV=[aR("readonly",!0)],iU=[aR("ios-spell-check",!0)],i$=[aR("show-soft-input-onfocus",!0)],a_(null,null,iW,{kind:"field",name:"_handlerConfirmType",static:!1,private:!1,access:{has:e=>"_handlerConfirmType"in e,get:e=>e._handlerConfirmType,set:(e,t)=>{e._handlerConfirmType=t}},metadata:e},iB,iX),a_(null,null,iz,{kind:"field",name:"_handlerMaxlength",static:!1,private:!1,access:{has:e=>"_handlerMaxlength"in e,get:e=>e._handlerMaxlength,set:(e,t)=>{e._handlerMaxlength=t}},metadata:e},iq,iY),a_(null,null,iV,{kind:"field",name:"_handleReadonly",static:!1,private:!1,access:{has:e=>"_handleReadonly"in e,get:e=>e._handleReadonly,set:(e,t)=>{e._handleReadonly=t}},metadata:e},iG,iJ),a_(null,null,iU,{kind:"field",name:"_handleSpellCheck",static:!1,private:!1,access:{has:e=>"_handleSpellCheck"in e,get:e=>e._handleSpellCheck,set:(e,t)=>{e._handleSpellCheck=t}},metadata:e},iK,iQ),a_(null,null,i$,{kind:"field",name:"_handleShowSoftInputOnfocus",static:!1,private:!1,access:{has:e=>"_handleShowSoftInputOnfocus"in e,get:e=>e._handleShowSoftInputOnfocus,set:(e,t)=>{e._handleShowSoftInputOnfocus=t}},metadata:e},iZ,i0),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-type","maxlength","readonly","type","ios-spell-check","spell-check","show-soft-input-onfocus"];#L;#ny=aA(()=>this.#L.shadowRoot,"#textarea");_handlerConfirmType=ax(this,iB,aI(this.#ny,"enterkeyhint",e=>null===e?"send":e));_handlerMaxlength=(ax(this,iX),ax(this,iq,aI(this.#ny,"maxlength",e=>null===e?"140":e)));_handleReadonly=(ax(this,iY),ax(this,iG,aI(this.#ny,"readonly",e=>null!==e?"":null)));_handleSpellCheck=(ax(this,iJ),ax(this,iK,aI(this.#ny,"spellcheck",e=>null===e?"false":"true")));_handleShowSoftInputOnfocus=(ax(this,iQ),ax(this,iZ,aI(this.#ny,"virtualkeyboardpolicy",e=>null===e?"manual":"auto")));constructor(e){ax(this,i0),this.#L=e}}),(i6=[],i9=[],i7=[],i5=[],le=[],lt=[],ln=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;i1=[aR("confirm-enter",!0)],i2=[aR("disabled",!0)],i4=[aR("max-height",!0)],i3=[aR("min-height",!0)],i8=[aR("value",!1)],a_(this,null,i1,{kind:"method",name:"_handleConfirmEnter",static:!1,private:!1,access:{has:e=>"_handleConfirmEnter"in e,get:e=>e._handleConfirmEnter},metadata:e},null,i6),a_(this,null,i8,{kind:"method",name:"_handleValue",static:!1,private:!1,access:{has:e=>"_handleValue"in e,get:e=>e._handleValue},metadata:e},null,i6),a_(null,null,i2,{kind:"field",name:"_handleDisabled",static:!1,private:!1,access:{has:e=>"_handleDisabled"in e,get:e=>e._handleDisabled,set:(e,t)=>{e._handleDisabled=t}},metadata:e},i9,i7),a_(null,null,i4,{kind:"field",name:"_handleMaxHeight",static:!1,private:!1,access:{has:e=>"_handleMaxHeight"in e,get:e=>e._handleMaxHeight,set:(e,t)=>{e._handleMaxHeight=t}},metadata:e},i5,le),a_(null,null,i3,{kind:"field",name:"_handleMinHeight",static:!1,private:!1,access:{has:e=>"_handleMinHeight"in e,get:e=>e._handleMinHeight,set:(e,t)=>{e._handleMinHeight=t}},metadata:e},lt,ln),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["confirm-enter","disabled","max-height","min-height","value"];#L=ax(this,i6);#ny=aA(()=>this.#L.shadowRoot,"#textarea");#e$=aA(()=>this.#L.shadowRoot,"#form");#nE=!1;_handleConfirmEnter(e){this.#nE=null!==e}_handleDisabled=ax(this,i9,aI(this.#ny,"disabled",e=>null!==e?"":null));_handleMaxHeight=(ax(this,i7),ax(this,i5,ak(this.#ny,"max-height")));_handleMinHeight=(ax(this,le),ax(this,lt,ak(this.#ny,"min-height")));_handleValue(e){if(e){let t=parseFloat(this.#L.getAttribute("maxlength")??"");isNaN(t)||(e=e.substring(0,t))}else e="";let t=this.#ny();t.value!==e&&(t.value=e)}#nS=(ax(this,ln),e=>{this.#nE&&"Enter"===e.key&&this.#e$().dispatchEvent(new SubmitEvent("submit"))});constructor(e){this.#L=e,this.#ny().addEventListener("keyup",this.#nS)}}),(ls=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;li=[aR("input-filter",!0),aD("lynxinput")],ll=[aR("send-composing-input",!0)],la=[aD("selection")],a_(this,null,li,{kind:"method",name:"_handleEnableConfirmEvent",static:!1,private:!1,access:{has:e=>"_handleEnableConfirmEvent"in e,get:e=>e._handleEnableConfirmEvent},metadata:e},null,ls),a_(this,null,ll,{kind:"method",name:"_handleSendComposingInput",static:!1,private:!1,access:{has:e=>"_handleSendComposingInput"in e,get:e=>e._handleSendComposingInput},metadata:e},null,ls),a_(this,null,la,{kind:"method",name:"_handleEnableSelectionEvent",static:!1,private:!1,access:{has:e=>"_handleEnableSelectionEvent"in e,get:e=>e._handleEnableSelectionEvent},metadata:e},null,ls),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["send-composing-input","input-filter"];#L=ax(this,ls);#eV=!1;#ny=aA(()=>this.#L.shadowRoot,"#textarea");#e$=aA(()=>this.#L.shadowRoot,"#form");_handleEnableConfirmEvent(e){let t=this.#ny();e?(t.addEventListener("input",this.#eB,{passive:!0}),t.addEventListener("compositionend",this.#eX,{passive:!0})):(t.removeEventListener("input",this.#eB),t.removeEventListener("compositionend",this.#eX))}_handleSendComposingInput(e){this.#eV=null!==e}#eq=e=>{let t=su[e.type]??e.type;this.#L.dispatchEvent(new CustomEvent(t,{...aF,detail:{value:this.#ny().value}}))};#eB=e=>{let t=this.#ny(),n=this.#L.getAttribute("input-filter"),i=n?t.value.replace(RegExp(n,"g"),""):t.value,l=e.isComposing;t.value=i,(!l||this.#eV)&&this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aF,detail:{value:i,textLength:i.length,cursor:t.selectionStart,isComposing:l,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}))};#eX=()=>{let e=this.#ny(),t=this.#L.getAttribute("input-filter"),n=t?e.value.replace(RegExp(t,"g"),""):e.value;e.value=n,this.#eV||this.#L.dispatchEvent(new CustomEvent("lynxinput",{...aF,detail:{value:n,textLength:n.length,cursor:e.selectionStart,isComposing:!1,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};_handleEnableSelectionEvent(e){e?this.#ny().addEventListener("select",this.#eG,{passive:!0}):this.#ny().removeEventListener("select",this.#eG)}#eG=()=>{let e=this.#ny();this.#L.dispatchEvent(new CustomEvent("selection",{...aF,detail:{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}))};#eJ=e=>{e.target===this.#ny()&&"number"==typeof e.detail&&e.stopImmediatePropagation()};constructor(e){this.#L=e;const t=this.#ny(),n=this.#e$();t.addEventListener("blur",this.#eq,{passive:!0}),t.addEventListener("focus",this.#eq,{passive:!0}),n.addEventListener("submit",this.#eq,{passive:!0}),n.addEventListener("input",this.#eJ,{passive:!0})}})],a1)],lc=[],lh=HTMLElement,(class extends lh{static{lo=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lh[Symbol.metadata]??null):void 0;a_(null,lr={value:lo},ld,{kind:"class",name:lo.name,metadata:e},null,lc),lo=lr.value,e&&Object.defineProperty(lo,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(lo,lc)}#nf=aA(()=>this.shadowRoot,"#textarea");get value(){return this.#nf().value}set value(e){this.#nf().value=e}addText(e){let{text:t}=e,n=this.#nf(),i=n.selectionStart;if(null===i)n.value=t;else{let e=n.value;n.value=e.slice(0,i)+t+e.slice(i)}}setValue(e){let t,n=this.#nf();n.value=e.value,(t=e.index)&&n.setSelectionRange(t,t)}getValue(){let e=this.#nf();return{value:e.value,selectionBegin:e.selectionStart,selectionEnd:e.selectionEnd}}sendDelEvent(e){let{action:t,length:n}=e,i=this.#nf();1===t&&(n=1);let l=i.selectionStart;if(null===l){let e=i.value;i.value=i.value.substring(0,e.length-n)}else{let e=i.value;i.value=e.slice(0,l-n)+e.slice(l)}}select(){let e=this.#nf();e.setSelectionRange(0,e.value.length)}setSelectionRange(e){this.#nf().setSelectionRange(e.selectionStart,e.selectionEnd)}}),lp=[aP("x-view",[a6,aj])],lb=[],lv=HTMLElement,(class extends lv{static{lm=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lv[Symbol.metadata]??null):void 0;a_(null,lu={value:lm},lp,{kind:"class",name:lm.name,metadata:e},null,lb),lm=lu.value,e&&Object.defineProperty(lm,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(lm,lb)}superScrollIntoView(e){super.scrollIntoView(e)}scrollIntoView(e){"object"==typeof e&&e.scrollIntoViewOptions?this.dispatchEvent(new CustomEvent(aX.eventName,{bubbles:!0,composed:!0,detail:e.scrollIntoViewOptions})):super.scrollIntoView(e)}[aH]=this}),lE=[aP("x-blur-view",[aj,(lg=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a_(this,null,[aR("blur-radius",!0)],{kind:"method",name:"_handleBlurRadius",static:!1,private:!1,access:{has:e=>"_handleBlurRadius"in e,get:e=>e._handleBlurRadius},metadata:e},null,lg),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["blur-radius"];#L=ax(this,lg);#nw=aA(()=>this.#L.shadowRoot,"#dynamic-style");_handleBlurRadius(e){e?(e=`blur(${parseFloat(e)}px)`,this.#nw().innerHTML=`:host { backdrop-filter: ${e}; -webkit-backdrop-filter: ${e}}`):this.#nw().innerHTML=""}constructor(e){this.#L=e}})],'<style id="dynamic-style"></style><slot></slot>')],lS=[],lw=HTMLElement,(class extends lw{static{ly=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lw[Symbol.metadata]??null):void 0;a_(null,lf={value:ly},lE,{kind:"class",name:ly.name,metadata:e},null,lS),ly=lf.value,e&&Object.defineProperty(ly,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(ly,lS)}}),lI=[aP("x-viewpager-ng",[a6,aj,(lT=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l_=[aD("change")],lx=[aD("willchange")],lC=[aD("offsetchange")],a_(this,null,l_,{kind:"method",name:"_enableChangeEvent",static:!1,private:!1,access:{has:e=>"_enableChangeEvent"in e,get:e=>e._enableChangeEvent},metadata:e},null,lT),a_(this,null,lx,{kind:"method",name:"_enableWillChangeEvent",static:!1,private:!1,access:{has:e=>"_enableWillChangeEvent"in e,get:e=>e._enableWillChangeEvent},metadata:e},null,lT),a_(this,null,lC,{kind:"method",name:"_enableOffsetChangeEvent",static:!1,private:!1,access:{has:e=>"_enableOffsetChangeEvent"in e,get:e=>e._enableOffsetChangeEvent},metadata:e},null,lT),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#L=ax(this,lT);#n_=!1;#C=!1;#nx=0;#M;constructor(e){this.#L=e}#D=aA(()=>this.#L.shadowRoot,"#content");#nC=()=>{if(!this.#C)return;let e=this.#D(),t=this.#L.clientWidth,n=e.scrollLeft;this.#nT&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#nO()},100)),this.#L.dispatchEvent(new CustomEvent("offsetchange",{...aF,detail:{offset:n/t}}))};#nO=()=>{if(this.#C){let e=this.#D(),t=this.#L.clientWidth,n=Math.floor(e.scrollLeft/t);n!==this.#nx&&(this.#L.dispatchEvent(new CustomEvent("change",{...aF,detail:{index:n,isDragged:this.#n_}})),this.#nx=n)}};#nL=()=>{this.#n_=!0};#nI=()=>{if(this.#n_=!1,this.#nk){let e=this.#D(),t=this.#L.clientWidth;if(t>0){let n=Math.round(e.scrollLeft/t);n=Math.max(0,Math.min(n,this.#L.children.length-1)),this.#L.dispatchEvent(new CustomEvent("willchange",{...aF,detail:{index:n}}))}}};#nT=!1;_enableChangeEvent(e){this.#nT=e,this.#nA()}#nk=!1;_enableWillChangeEvent(e){this.#nk=e}#nP=!1;_enableOffsetChangeEvent(e){this.#nP=e,this.#nA()}#nA(){let e=this.#D();this.#nP||this.#nT?e.addEventListener("scroll",this.#nC,{passive:!0}):e.removeEventListener("scroll",this.#nC),aU&&this.#nT?e.addEventListener("scrollend",this.#nO,{passive:!0}):e.removeEventListener("scrollend",this.#nO)}connectedCallback(){this.#C=!0;let e=this.#D();this.#L.addEventListener("touchstart",this.#nL,{passive:!0}),e.addEventListener("touchend",this.#nI,{passive:!0}),e.addEventListener("touchcancel",this.#nI,{passive:!0})}dispose(){let e=this.#D();e.removeEventListener("scroll",this.#nC),e.removeEventListener("scrollend",this.#nO)}})],a2)],lk=[],lA=HTMLElement,(class extends lA{static{lL=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lA[Symbol.metadata]??null):void 0;a_(null,lO={value:lL},lI,{kind:"class",name:lL.name,metadata:e},null,lk),lL=lO.value,e&&Object.defineProperty(lL,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["allow-horizontal-gesture","enable-scroll"]);selectTab(e){let{index:t,smooth:n}=e;void 0===n&&(n=!0);let i=this.shadowRoot.children.item(2),l=i.clientWidth*t;i.scrollTo({left:l,behavior:n?"smooth":"instant"})}connectedCallback(){let e=this.getAttribute("select-index")||this.getAttribute("initial-select-index");if(null!==e){let t=Number(e),n=this.shadowRoot.children.item(2),i=()=>{0===n.clientWidth?requestAnimationFrame(i):this.selectTab({index:t,smooth:!1})};aO(i)}}get[a$](){return this}static{ax(lL,lk)}}),lR=[aP("x-viewpager-item-ng",[a6,aj])],lN=[],lD=HTMLElement,(class extends lD{static{lM=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lD[Symbol.metadata]??null):void 0;a_(null,lP={value:lM},lR,{kind:"class",name:lM.name,metadata:e},null,lN),lM=lP.value,e&&Object.defineProperty(lM,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(lM,lN)}}),lz=[aP("list-item",[aj,(lF=[],lH=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;a_(null,null,[aR("estimated-main-axis-size-px",!0)],{kind:"field",name:"_handlerEstimatedMainAxisSizePx",static:!1,private:!1,access:{has:e=>"_handlerEstimatedMainAxisSizePx"in e,get:e=>e._handlerEstimatedMainAxisSizePx,set:(e,t)=>{e._handlerEstimatedMainAxisSizePx=t}},metadata:e},lF,lH),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["estimated-main-axis-size-px"];#L;_handlerEstimatedMainAxisSizePx=ax(this,lF,ak(()=>this.#L,"--estimated-main-axis-size-px",e=>`${parseFloat(e)}px`));constructor(e){ax(this,lH),this.#L=e}})])],lV=[],lU=HTMLElement,class extends lU{static{lW=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(lU[Symbol.metadata]??null):void 0;a_(null,lj={value:lW},lz,{kind:"class",name:lW.name,metadata:e},null,lV),lW=lj.value,e&&Object.defineProperty(lW,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["recyclable"]);static{ax(lW,lV)}};let sy=function(e,t,n){let i,l,a,s,r=0;var o=function(){r=n?.leading===!1?0:new Date().getTime(),i=null,s=e.apply(l,a),i||(l=a=null)};return function(){var d=new Date().getTime();r||n?.leading!==!1||(r=d);var c=t-(d-r);return l=this,a=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),r=d,s=e.apply(l,a),i||(l=a=null)):i||n?.trailing===!1||(i=setTimeout(o,c)),s}},sE="waterfall-slot",sS="waterfall-style";ad=[aP("x-list",[aj,(lX=[],lq=[],lY=[],lG=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;l$=[aR("sticky-offset",!0)],lB=[aR("span-count",!0),aR("column-count",!0)],a_(null,null,l$,{kind:"field",name:"_handlerStickyOffset",static:!1,private:!1,access:{has:e=>"_handlerStickyOffset"in e,get:e=>e._handlerStickyOffset,set:(e,t)=>{e._handlerStickyOffset=t}},metadata:e},lX,lq),a_(null,null,lB,{kind:"field",name:"_handlerCount",static:!1,private:!1,access:{has:e=>"_handlerCount"in e,get:e=>e._handlerCount,set:(e,t)=>{e._handlerCount=t}},metadata:e},lY,lG),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["sticky-offset","initial-scroll-index","span-count","column-count"];#L;_handlerStickyOffset=ax(this,lX,ak(()=>this.#L,"--list-item-sticky-offset",e=>`${parseFloat(e)}px`));_handlerCount=(ax(this,lq),ax(this,lY,ak(()=>this.#L,"--list-item-span-count",e=>`${parseFloat(e)}`)));constructor(e){ax(this,lG),this.#L=e}connectedCallback(){let e=this.#L.getAttribute("initial-scroll-index");if(null!==e){let t=parseFloat(e),n=()=>{0===this.#L.clientHeight?requestAnimationFrame(n):this.#L.scrollToPosition({position:t})};aO(n)}}}),(l4=[],l3=[],l8=[],l6=[],l9=[],l7=[],l5=[],ae=[],at=[],an=[],ai=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;lJ=[aD("scrolltoupper")],lK=[aR("upper-threshold-item-count",!0)],lQ=[aD("scrolltolower")],lZ=[aR("lower-threshold-item-count",!0)],l0=[aD("lynxscroll"),aD("lynxscrollend"),aD("snap")],l1=[aD("scrolltoupperedge")],l2=[aD("scrolltoloweredge")],a_(this,null,lK,{kind:"method",name:"_handleUpperThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleUpperThresholdItemCountChange"in e,get:e=>e._handleUpperThresholdItemCountChange},metadata:e},null,l4),a_(this,null,lZ,{kind:"method",name:"_handleLowerThresholdItemCountChange",static:!1,private:!1,access:{has:e=>"_handleLowerThresholdItemCountChange"in e,get:e=>e._handleLowerThresholdItemCountChange},metadata:e},null,l4),a_(null,null,lJ,{kind:"field",name:"_updateEventSwitches",static:!1,private:!1,access:{has:e=>"_updateEventSwitches"in e,get:e=>e._updateEventSwitches,set:(e,t)=>{e._updateEventSwitches=t}},metadata:e},l3,l8),a_(null,null,lQ,{kind:"field",name:"_updateScrollToLowerEventSwitches",static:!1,private:!1,access:{has:e=>"_updateScrollToLowerEventSwitches"in e,get:e=>e._updateScrollToLowerEventSwitches,set:(e,t)=>{e._updateScrollToLowerEventSwitches=t}},metadata:e},l6,l9),a_(null,null,l0,{kind:"field",name:"_handleScrollEventsSwitches",static:!1,private:!1,access:{has:e=>"_handleScrollEventsSwitches"in e,get:e=>e._handleScrollEventsSwitches,set:(e,t)=>{e._handleScrollEventsSwitches=t}},metadata:e},l7,l5),a_(null,null,l1,{kind:"field",name:"_handleScrollToUpperEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToUpperEdgeEventEnable"in e,get:e=>e._handleScrollToUpperEdgeEventEnable,set:(e,t)=>{e._handleScrollToUpperEdgeEventEnable=t}},metadata:e},ae,at),a_(null,null,l2,{kind:"field",name:"_handleScrollToLowerEdgeEventEnable",static:!1,private:!1,access:{has:e=>"_handleScrollToLowerEdgeEventEnable"in e,get:e=>e._handleScrollToLowerEdgeEventEnable,set:(e,t)=>{e._handleScrollToLowerEdgeEventEnable=t}},metadata:e},an,ai),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=ax(this,l4);#nM=aA(()=>this.#L.shadowRoot,"#content");#nR;#nN;#nD;#R=0;#N=0;#nF=!1;#M;#F=aA(()=>this.#L.shadowRoot,"#upper-threshold-observer");#H=aA(()=>this.#L.shadowRoot,"#lower-threshold-observer");#W(){let e=null!==this.#L.getAttribute("need-visible-item-info"),{scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l}=this.#nM(),a={scrollTop:t,scrollLeft:n,scrollHeight:i,scrollWidth:l,deltaX:n-this.#R,deltaY:t-this.#N,attachedCells:e?this.#L.getVisibleCells():void 0};return this.#R=n,this.#N=t,a}#nH=e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltoupper",{...aF,detail:this.#W()}))};_updateEventSwitches=ax(this,l3,e=>{if(e?this.#L.setAttribute("x-enable-scrolltoupper-event",""):this.#L.removeAttribute("x-enable-scrolltoupper-event"),this.#e6.scrolltoupper=e,e){this.#nR||(this.#nR=new IntersectionObserver(this.#nH,{root:this.#nM()})),this.#nD||(this.#nD=new MutationObserver(this.#nj));let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#L.children[t-1];n&&this.#nR.observe(n),this.#nD.observe(this.#L,{childList:!0})}else this.#nR&&(this.#nR.disconnect(),this.#nR=void 0),this.#nD&&(this.#nD.disconnect(),this.#nD=void 0)});_handleUpperThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#F():this.#L.children[n-1];i&&this.#nR?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#F():this.#L.children[l-1];a&&this.#nR?.observe(a)}#nW=(ax(this,l8),e=>{let{isIntersecting:t}=e[0];t&&this.#L.dispatchEvent(new CustomEvent("scrolltolower",{...aF,detail:this.#W()}))});#e6={lynxscroll:!1,lynxscrollend:!1,snap:!1,scrolltolower:!1,scrolltoupper:!1};_updateScrollToLowerEventSwitches=ax(this,l6,e=>{if(this.#e6.scrolltolower=e,e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),e){this.#nN||(this.#nN=new IntersectionObserver(this.#nW,{root:this.#nM()})),this.#nD||(this.#nD=new MutationObserver(this.#nj));let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#L.children[this.#L.children.length-t];n&&this.#nN.observe(n),this.#nD.observe(this.#L,{childList:!0})}else this.#nN&&(this.#nN.disconnect(),this.#nN=void 0),this.#nD&&(this.#nD.disconnect(),this.#nD=void 0)});_handleLowerThresholdItemCountChange(e,t){let n=null!==t?parseFloat(t):0,i=0===n?this.#H():this.#L.children[this.#L.children.length-n];i&&this.#nN?.unobserve(i);let l=null!==e?parseFloat(e):0,a=0===l?this.#H():this.#L.children[this.#L.children.length-l];a&&this.#nN?.observe(a)}#nj=(ax(this,l9),e=>{let t=e?.[0];if(t?.type==="childList"){if(this.#e6.scrolltolower){this.#nN&&(this.#nN.disconnect(),this.#nN=void 0),this.#nN=new IntersectionObserver(this.#nW,{root:this.#nM()});let e=this.#L.getAttribute("lower-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#H():this.#L.children[this.#L.children.length-t];n&&this.#nN.observe(n)}if(null!==this.#L.getAttribute("x-enable-scrolltoupper-event")){this.#nR&&(this.#nR.disconnect(),this.#nR=void 0),this.#nR=new IntersectionObserver(this.#nH,{root:this.#nM()});let e=this.#L.getAttribute("upper-threshold-item-count"),t=null!==e?parseFloat(e):0,n=0===t?this.#F():this.#L.children[t-1];n&&this.#nR.observe(n)}}});#nz=null;#U=()=>{this.#nF&&!aU&&(clearTimeout(this.#M),this.#M=setTimeout(()=>{this.#B()},100)),this.#L.dispatchEvent(new CustomEvent("lynxscroll",{...aF,detail:this.#W()}))};_handleScrollEventsSwitches=ax(this,l7,(e,t)=>{this.#e6[t]=e;let{lynxscroll:n,lynxscrollend:i,snap:l}=this.#e6,a=this.#L.getAttribute("scroll-event-throttle");this.#nF=null!==i||null!==l;let s=this.#nM();if(this.#nz&&s.removeEventListener("scroll",this.#nz),null!==n||this.#nF){let e=null!==a?parseFloat(a):0,t=sy(this.#U,e,{leading:!0,trailing:!1});this.#nz=t,s.addEventListener("scroll",this.#nz),this.#R=0,this.#N=0}aU&&this.#nF?s.addEventListener("scrollend",this.#B):s.removeEventListener("scrollend",this.#B)});#j=(ax(this,l5),e=>{let{isIntersecting:t,target:n}=e[0],i=n.id;t&&("upper-threshold-observer"===i?this.#L.dispatchEvent(new CustomEvent("scrolltoupperedge",{...aF,detail:this.#W()})):"lower-threshold-observer"===i&&this.#L.dispatchEvent(new CustomEvent("scrolltoloweredge",{...aF,detail:this.#W()})))});_handleScrollToUpperEdgeEventEnable=ax(this,ae,e=>{e?this.#L.setAttribute("x-enable-scrolltoupperedge-event",""):this.#L.removeAttribute("x-enable-scrolltoupperedge-event"),this.#nV(e)});#nV=(ax(this,at),aV(this.#nM,this.#F,this.#j));_handleScrollToLowerEdgeEventEnable=ax(this,an,e=>{e?this.#L.setAttribute("x-enable-scrolltoloweredge-event",""):this.#L.removeAttribute("x-enable-scrolltoloweredge-event"),this.#nU(e)});#nU=(ax(this,ai),aV(this.#nM,this.#H,this.#j));#B=()=>{let e=this.#L.getAttribute("item-snap");if(this.#L.dispatchEvent(new CustomEvent("lynxscrollend",{...aF})),null!==e){let e=Array.from(this.#L.children).filter(e=>"LIST-ITEM"===e.tagName),t=this.#nM().scrollTop,n=this.#nM().scrollLeft,i=e.find(e=>t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight);this.#L.dispatchEvent(new CustomEvent("snap",{...aF,detail:{position:i&&e.indexOf(i),scrollTop:t,scrollLeft:n}}))}};constructor(e){this.#L=e}}),(as=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;al=[aD("scrolltolower")],aa=[aR("list-type",!0)],a_(this,null,al,{kind:"method",name:"_handleXEnableHeaderOffsetEvent",static:!1,private:!1,access:{has:e=>"_handleXEnableHeaderOffsetEvent"in e,get:e=>e._handleXEnableHeaderOffsetEvent},metadata:e},null,as),a_(this,null,aa,{kind:"method",name:"_handlerListType",static:!1,private:!1,access:{has:e=>"_handlerListType"in e,get:e=>e._handlerListType},metadata:e},null,as),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["list-type"];#L=ax(this,as);#nM=aA(()=>this.#L.shadowRoot,"#content");#n$=aA(()=>this.#L.shadowRoot,'div[part="lower-threshold-observer"]');#k;#nD;_handleXEnableHeaderOffsetEvent(e){if(e?this.#L.setAttribute("x-enable-scrolltolower-event",""):this.#L.removeAttribute("x-enable-scrolltolower-event"),e){let e=this.#n$(),t=this.#L.getAttribute("scroll-orientation")||"vertical",n=this.#nM();setTimeout(()=>{"vertical"===t?(e.style.setProperty("top",`${String(n.scrollHeight-1)}px`,"important"),e.style.setProperty("bottom","unset","important")):(e.style.setProperty("left",`${String(n.scrollWidth-1)}px`,"important"),e.style.setProperty("right","unset","important"))},100)}}#nB=()=>{let e=document.createElement("slot");e.setAttribute("name",`${sE}`),this.#L.shadowRoot?.querySelector("[part=upper-threshold-observer]")?.insertAdjacentElement("afterend",e)};#nX=()=>{let e=parseFloat(this.#L.getAttribute("span-count")||this.#L.getAttribute("column-count")||"")||1,t="vertical"===(this.#L.getAttribute("scroll-orientation")||"vertical"),n=Array(e).fill(0);for(let i=0;i<this.#L.children.length;i++){let l=this.#L.children[i],a=getComputedStyle(l).getPropertyValue("--list-main-axis-gap"),s=getComputedStyle(l).getPropertyValue("--list-cross-axis-gap"),r=t?l.getBoundingClientRect().height+parseFloat(a):l.getBoundingClientRect().width+parseFloat(a);if(null!==l.getAttribute("full-span")){let i=n[0];for(let t=1;t<e;t++)n[t]>i&&(i=n[t]);for(let t=0;t<e;t++)n[t]=i+r;t?(l.setAttribute(`${sS}-left`,"0"),l.setAttribute(`${sS}-top`,`${i}px`)):(l.setAttribute(`${sS}-left`,`${i}px`),l.setAttribute(`${sS}-top`,"0"))}else{let i=0,a=n[0];for(let t=1;t<e;t++)n[t]<a&&(i=t,a=n[t]);let o=`calc(${i} * (100% - ${s} * (${e} - 1))/ ${e} + ${Math.max(0,i)} * ${s})`;t?(l.setAttribute(`${sS}-left`,o),l.setAttribute(`${sS}-top`,`${a}px`)):(l.setAttribute(`${sS}-left`,`${a}px`),l.setAttribute(`${sS}-top`,o)),n[i]+=r}}for(let e=0;e<this.#L.children.length;e++){let t=this.#L.children[e];t.style.setProperty("left",t.getAttribute(`${sS}-left`)),t.style.setProperty("top",t.getAttribute(`${sS}-top`)),t.setAttribute("slot",sE)}};constructor(e){this.#L=e}#nq=()=>{this.#k?.disconnect(),this.#k=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.#nX()})}),Array.from(this.#L.children).forEach(e=>{this.#k?.observe(e)})};_handlerListType(e){if("waterfall"===e)this.#nB(),this.#k||this.#nq(),this.#nD||(this.#nD=new MutationObserver(e=>{let t=e?.[0];t?.type==="childList"&&this.#nq()}),this.#nD.observe(this.#L,{childList:!0}));else{this.#k?.disconnect(),this.#k=void 0,this.#nD?.disconnect(),this.#nD=void 0;for(let e=0;e<this.#L.children.length;e++)this.#L.children[e].removeAttribute("slot");this.#L.shadowRoot?.querySelector(`slot[name=${sE}]`)?.remove()}}})],aK)],ac=[],ah=HTMLElement,(class extends ah{static{ao=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(ah[Symbol.metadata]??null):void 0;a_(null,ar={value:ao},ad,{kind:"class",name:ao.name,metadata:e},null,ac),ao=ar.value,e&&Object.defineProperty(ao,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static notToFilterFalseAttributes=new Set(["enable-scroll"]);#nM=aA(()=>this.shadowRoot,"#content");#nY={rate:0,lastTimestamp:0,autoStop:!0,isScrolling:!1};#nG={};get scrollTop(){return this.#nM().scrollTop}set scrollTop(e){this.#nM().scrollTop=e}get scrollLeft(){return this.#nM().scrollTop}set scrollLeft(e){this.#nM().scrollLeft=e}get scrollHeight(){return this.#nM().scrollHeight}get scrollWidth(){return this.#nM().scrollWidth}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.#nM().scrollTop=0,this.#nM().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.#nM().scrollTo({...t,behavior:e.smooth?"smooth":"auto"})}#nJ=e=>{if(!this.#nY.isScrolling)return;if(!this.#nY.lastTimestamp){this.#nY.lastTimestamp=e,requestAnimationFrame(this.#nJ);return}let t=this.#nM(),n=(e-this.#nY.lastTimestamp)/1e3*this.#nY.rate;t.scrollBy({left:n,top:n,behavior:"auto"}),this.#nY.lastTimestamp=e;let i="vertical"===(this.getAttribute("scroll-orientation")||"vertical");(i?t.scrollTop+t.clientHeight>=t.scrollHeight:t.scrollLeft+t.clientWidth>=t.scrollWidth)&&this.#nY.autoStop?(i?t.scrollTop=t.scrollHeight-t.clientHeight:t.scrollLeft=t.scrollWidth-t.clientWidth,this.#nY.isScrolling=!1):requestAnimationFrame(this.#nJ)};autoScroll(e){if(e.start){let t="number"==typeof e.rate?e.rate:parseFloat(e.rate);this.#nY={rate:t,lastTimestamp:0,isScrolling:!0,autoStop:!1!==e.autoStop};let n=this.#nM(),i="vertical"===(this.getAttribute("scroll-orientation")||"vertical")?n.clientHeight<=n.scrollHeight:n.clientWidth<=n.scrollWidth;this.#nY.lastTimestamp=0,i?setTimeout(()=>requestAnimationFrame(this.#nJ),0):requestAnimationFrame(this.#nJ)}else this.#nY.isScrolling=!1}getScrollContainerInfo(){return{scrollTop:this.scrollTop,scrollLeft:this.scrollLeft,scrollHeight:this.scrollHeight,scrollWidth:this.scrollWidth}}getVisibleCells=()=>{let e=Object.values(this.#nG),t=Array.from(this.children).filter(e=>"LIST-ITEM"===e.tagName);if(0===e.length){let n=this.#nM().getBoundingClientRect();e=t.filter(e=>{let t=e.getBoundingClientRect();return t.bottom>=n.top&&t.top<=n.bottom&&t.right>=n.left&&t.left<=n.right})}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)}})};#nK=()=>Object.values(this.#nG).map(e=>{let t=e.getBoundingClientRect();return{height:t.height,width:t.width,itemKey:e.getAttribute("item-key"),originX:t.x,originY:t.y}});#nQ=e=>{if(!e.target||!(e.target instanceof HTMLElement))return;let t=e.skipped,n=e.target?.getAttribute("id")==="content"&&e.target?.getAttribute("part")==="content",i="LIST-ITEM"===e.target.tagName;if(n&&!t){let e=this.#nK();setTimeout(()=>{this.dispatchEvent(new CustomEvent("layoutcomplete",{...aF,detail:{visibleItemBeforeUpdate:e,visibleItemAfterUpdate:this.#nK()}}))},100);return}if(i){let n=e.target?.getAttribute("item-key");if(!n)return;t?this.#nG[n]&&delete this.#nG[n]:this.#nG[n]=e.target;return}};connectedCallback(){this.#nM().addEventListener("contentvisibilityautostatechange",this.#nQ,{passive:!0})}static{ax(ao,ac)}}),aE=[aP("x-webview",[aj,(ap=[],ab=[],av=[],ag=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;au=[aR("src",!0)],am=[aR("html",!0)],a_(null,null,au,{kind:"field",name:"_handleSrc",static:!1,private:!1,access:{has:e=>"_handleSrc"in e,get:e=>e._handleSrc,set:(e,t)=>{e._handleSrc=t}},metadata:e},ap,ab),a_(null,null,am,{kind:"field",name:"_handleHtml",static:!1,private:!1,access:{has:e=>"_handleHtml"in e,get:e=>e._handleHtml,set:(e,t)=>{e._handleHtml=t}},metadata:e},av,ag),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=["src","html"];#L;#nZ=aA(()=>this.#L.shadowRoot,"#webview");constructor(e){ax(this,ag),this.#L=e}_handleSrc=ax(this,ap,aI(this.#nZ,"src"));_handleHtml=(ax(this,ab),ax(this,av,aI(this.#nZ,"srcdoc")))})],a4)],aS=[],aw=HTMLElement,class extends aw{static{ay=this}static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(aw[Symbol.metadata]??null):void 0;a_(null,af={value:ay},aE,{kind:"class",name:ay.name,metadata:e},null,aS),ay=af.value,e&&Object.defineProperty(ay,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e}),ax(ay,aS)}#nZ=aA(()=>this.shadowRoot,"#webview");#n0=()=>{this.dispatchEvent(new CustomEvent("load",{bubbles:!0,composed:!0,detail:{url:this.#nZ().src}})),this.dispatchEvent(new CustomEvent("bindload",{bubbles:!0,composed:!0,detail:{url:this.#nZ().src}}))};#n1=e=>{this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}})),this.dispatchEvent(new CustomEvent("binderror",{bubbles:!0,composed:!0,detail:{errorMsg:e.message||"unknown error"}}))};#n2=e=>{e.source===this.#nZ().contentWindow&&(this.dispatchEvent(new CustomEvent("message",{bubbles:!0,composed:!0,detail:{msg:e.data,data:e.data}})),this.dispatchEvent(new CustomEvent("bindmessage",{bubbles:!0,composed:!0,detail:{msg:e.data}})))};connectedCallback(){this.#nZ().addEventListener("load",this.#n0),this.#nZ().addEventListener("error",this.#n1),window.addEventListener("message",this.#n2)}disconnectedCallback(){this.#nZ().removeEventListener("load",this.#n0),this.#nZ().removeEventListener("error",this.#n1),window.removeEventListener("message",this.#n2)}get src(){return this.getAttribute("src")}set src(e){null===e?this.removeAttribute("src"):this.setAttribute("src",e)}get html(){return this.getAttribute("html")}set html(e){null===e?this.removeAttribute("html"):this.setAttribute("html",e)}reload(){this.#nZ().src=this.#nZ().src}}},7075(e,t,n){n.a(e,async function(e,t){try{var i=n(3493);n(7849),n(1726),n(5020),n(3697);var l=e([i]);i=(l.then?(await l)():l)[0];let d="lynx-web-core-init-data",c="lynx-web-core-global-props",h=document.createElement("lynx-view");document.body.appendChild(h);let u=new URLSearchParams(document.location.search).get("casename");function a(){if(u){let e={};try{let t=localStorage.getItem(d);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(c);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}h.globalProps=t,h.initData=e,h.url=u}}function s(e){localStorage.setItem(d,JSON.stringify(e)),a()}function r(e){localStorage.setItem(c,JSON.stringify(e)),a()}function o(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
|
|
1
|
+
(()=>{"use strict";var e,t,n,r,i,s,o,a,_,l,c,d={9099(e,t,n){e.exports=n.p+"static/wasm/ad79a345.module.wasm"},8331(e,t,n){e.exports=n.p+"static/wasm/b23de6ec.module.wasm"},9883(e,t,n){let r;n.r(t),n.d(t,{EventInfo:()=>i,MainThreadWasmContext:()=>s,RawStyleInfo:()=>o,Rule:()=>a,RulePrelude:()=>_,Selector:()=>l,StyleSheetResource:()=>c,add_inline_style_raw_string_key:()=>d,decode_style_info:()=>u,default:()=>Y,encode_legacy_json_generated_raw_style_info:()=>h,get_font_face_content:()=>b,get_style_content:()=>g,initSync:()=>Q,set_inline_styles_in_key_value_vec:()=>f,set_inline_styles_in_str:()=>p,set_inline_styles_number_key:()=>w});class i{static __wrap(e){e>>>=0;let t=Object.create(i.prototype);return t.__wbg_ptr=e,y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,y.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_eventinfo_free(e,0)}get event_handler(){return r.__wbg_get_eventinfo_event_handler(this.__wbg_ptr)}get event_name(){let e,t;try{let n=r.__wbg_get_eventinfo_event_name(this.__wbg_ptr);return e=n[0],t=n[1],j(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get event_type(){let e,t;try{let n=r.__wbg_get_eventinfo_event_type(this.__wbg_ptr);return e=n[0],t=n[1],j(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set event_handler(e){r.__wbg_set_eventinfo_event_handler(this.__wbg_ptr,e)}set event_name(e){let t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=$;r.__wbg_set_eventinfo_event_name(this.__wbg_ptr,t,n)}set event_type(e){let t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=$;r.__wbg_set_eventinfo_event_type(this.__wbg_ptr,t,n)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_mainthreadwasmcontext_free(e,0)}add_cross_thread_event(e,t,n,i){let s=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=$,a=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),_=$;var l=D(i)?0:z(i,r.__wbindgen_malloc,r.__wbindgen_realloc),c=$;r.mainthreadwasmcontext_add_cross_thread_event(this.__wbg_ptr,e,s,o,a,_,l,c)}add_dataset(e,t,n){let i=r.mainthreadwasmcontext_add_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw B(i[0])}add_run_worklet_event(e,t,n,i){let s=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=$,a=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),_=$;r.mainthreadwasmcontext_add_run_worklet_event(this.__wbg_ptr,e,s,o,a,_,D(i)?0:E(i))}common_event_handler(e,t,n,i){let s=W(t,r.__wbindgen_malloc),o=$,a=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),_=$;r.mainthreadwasmcontext_common_event_handler(this.__wbg_ptr,e,s,o,a,_,i)}create_element_common(e,t,n,i){var s=D(i)?0:z(i,r.__wbindgen_malloc,r.__wbindgen_realloc),o=$;return r.mainthreadwasmcontext_create_element_common(this.__wbg_ptr,e,t,D(n)?0x100000001:0|n,s,o)>>>0}dispatch_event_by_path(e,t,n,i){let s=W(e,r.__wbindgen_malloc),o=$,a=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=$;return 0!==r.mainthreadwasmcontext_dispatch_event_by_path(this.__wbg_ptr,s,o,a,_,n,i)}dispatch_global_bind_event(e,t,n){let i=W(e,r.__wbindgen_malloc),s=$,o=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=$;r.mainthreadwasmcontext_dispatch_global_bind_event(this.__wbg_ptr,i,s,o,a,n)}get_component_id(e){let t,n=r.mainthreadwasmcontext_get_component_id(this.__wbg_ptr,e);if(n[3])throw B(n[2]);return 0!==n[0]&&(t=j(n[0],n[1]).slice(),r.__wbindgen_free(n[0],+n[1],1)),t}get_config(e){let t=r.mainthreadwasmcontext_get_config(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_css_id_by_unique_id(e){let t=r.mainthreadwasmcontext_get_css_id_by_unique_id(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}get_data_by_key(e,t){let n=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=$,s=r.mainthreadwasmcontext_get_data_by_key(this.__wbg_ptr,e,n,i);if(s[2])throw B(s[1]);return B(s[0])}get_dataset(e){let t=r.mainthreadwasmcontext_get_dataset(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_dom_by_unique_id(e){return r.mainthreadwasmcontext_get_dom_by_unique_id(this.__wbg_ptr,e)}get_element_config(e){let t=r.mainthreadwasmcontext_get_element_config(this.__wbg_ptr,e);if(t[2])throw B(t[1]);return B(t[0])}get_event(e,t,n){let i=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=$,o=z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=$;return r.mainthreadwasmcontext_get_event(this.__wbg_ptr,e,i,s,o,a)}get_events(e){let t=r.mainthreadwasmcontext_get_events(this.__wbg_ptr,e);var n=A(t[0],t[1]).slice();return r.__wbindgen_free(t[0],4*t[1],4),n}get_unique_id_by_component_id(e){let t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=$,i=r.mainthreadwasmcontext_get_unique_id_by_component_id(this.__wbg_ptr,t,n);return 0x100000001===i?void 0:i}constructor(e,t,n){const i=r.mainthreadwasmcontext_new(e,t,n);return this.__wbg_ptr=i>>>0,v.register(this,this.__wbg_ptr,this),this}push_style_sheet(e,t){O(e,c);var n=D(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=$;let s=r.mainthreadwasmcontext_push_style_sheet(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[1])throw B(s[0])}set_config(e,t){let n=r.mainthreadwasmcontext_set_config(this.__wbg_ptr,e,t);if(n[1])throw B(n[0])}set_css_id(e,t,n){let i=W(e,r.__wbindgen_malloc),s=$;var o=D(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=$;let _=r.mainthreadwasmcontext_set_css_id(this.__wbg_ptr,i,s,t,o,a);if(_[1])throw B(_[0])}set_dataset(e,t,n){let i=r.mainthreadwasmcontext_set_dataset(this.__wbg_ptr,e,t,n);if(i[1])throw B(i[0])}set_page_element_unique_id(e){r.mainthreadwasmcontext_set_page_element_unique_id(this.__wbg_ptr,e)}take_timing_flags(){let e=r.mainthreadwasmcontext_take_timing_flags(this.__wbg_ptr);var t=A(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}update_component_id(e,t){var n=D(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=$;let s=r.mainthreadwasmcontext_update_component_id(this.__wbg_ptr,e,n,i);if(s[1])throw B(s[0])}update_css_og_style(e,t){var n=D(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=$;let s=r.mainthreadwasmcontext_update_css_og_style(this.__wbg_ptr,e,n,i);if(s[1])throw B(s[0])}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,S.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rawstyleinfo_free(e,0)}append_import(e,t){r.rawstyleinfo_append_import(this.__wbg_ptr,e,t)}constructor(){const e=r.rawstyleinfo_new();return this.__wbg_ptr=e>>>0,S.register(this,this.__wbg_ptr,this),this}push_rule(e,t){O(t,a);var n=t.__destroy_into_raw();r.rawstyleinfo_push_rule(this.__wbg_ptr,e,n)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class a{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,x.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_rule_free(e,0)}constructor(e){const t=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=$,i=r.rule_new(t,n);if(i[2])throw B(i[1]);return this.__wbg_ptr=i[0]>>>0,x.register(this,this.__wbg_ptr,this),this}push_declaration(e,t){let n=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=$,s=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=$;r.rule_push_declaration(this.__wbg_ptr,n,i,s,o)}push_rule_children(e){O(e,a);var t=e.__destroy_into_raw();r.rule_push_rule_children(this.__wbg_ptr,t)}set_prelude(e){O(e,_);var t=e.__destroy_into_raw();r.rule_set_prelude(this.__wbg_ptr,t)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class _{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_ruleprelude_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,k.register(this,this.__wbg_ptr,this),this}push_selector(e){O(e,l);var t=e.__destroy_into_raw();r.ruleprelude_push_selector(this.__wbg_ptr,t)}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class l{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_selector_free(e,0)}constructor(){const e=r.ruleprelude_new();return this.__wbg_ptr=e>>>0,C.register(this,this.__wbg_ptr,this),this}push_one_selector_section(e,t){let n=z(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=$,s=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),o=$,a=r.selector_push_one_selector_section(this.__wbg_ptr,n,i,s,o);if(a[1])throw B(a[0])}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class c{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_stylesheetresource_free(e,0)}constructor(e,t){const n=r.stylesheetresource_new(e,t);if(n[2])throw B(n[1]);return this.__wbg_ptr=n[0]>>>0,R.register(this,this.__wbg_ptr,this),this}}function d(e,t,n){let i=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=$;var o=D(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=$;r.add_inline_style_raw_string_key(e,i,s,o,a)}function u(e,t,n,i,s,o){var a=D(t)?0:z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=$;let l=r.decode_style_info(e,a,_,n,i,s,o);if(l[2])throw B(l[1]);return B(l[0])}function h(e,t,n,i,s,a){O(e,o);var _=e.__destroy_into_raw(),l=D(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=$;let d=r.encode_legacy_json_generated_raw_style_info(_,t,l,c,i,s,a);if(d[2])throw B(d[1]);return B(d[0])}function b(e){let t,n;try{let o=r.get_font_face_content(e);var i=o[0],s=o[1];if(o[3])throw i=0,s=0,B(o[2]);return t=i,n=s,j(i,s)}finally{r.__wbindgen_free(t,n,1)}}function g(e){let t,n;try{let o=r.get_style_content(e);var i=o[0],s=o[1];if(o[3])throw i=0,s=0,B(o[2]);return t=i,n=s,j(i,s)}finally{r.__wbindgen_free(t,n,1)}}function f(e,t,n,i,s){let o=F(t,r.__wbindgen_malloc),a=$;r.set_inline_styles_in_key_value_vec(e,o,a,n,i,s)}function p(e,t,n,i,s){let o=z(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=$;return 0!==r.set_inline_styles_in_str(e,o,a,n,i,s)}function w(e,t,n){var i=D(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=$;r.set_inline_styles_number_key(e,t,i,s)}function m(){return{__proto__:null,"./client_bg.js":{__proto__:null,__wbg_Error_8c4e43fe74559d73:function(e,t){return Error(j(e,t))},__wbg___wbindgen_debug_string_0bc8482c6e3508ae:function(e,t){let n=z(function e(t){let n,r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){let e=t.description;return null==e?"Symbol":`Symbol(${e})`}if("function"==r){let e=t.name;return"string"==typeof e&&e.length>0?`Function(${e})`:"Function"}if(Array.isArray(t)){let n=t.length,r="[";n>0&&(r+=e(t[0]));for(let i=1;i<n;i++)r+=", "+e(t[i]);return r+"]"}let i=/\[object ([^\]]+)\]/.exec(toString.call(t));if(!i||!(i.length>1))return toString.call(t);if("Object"==(n=i[1]))try{return"Object("+JSON.stringify(t)+")"}catch(e){return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
+
${t.stack}`:n}(t),r.__wbindgen_malloc,r.__wbindgen_realloc),i=$;T().setInt32(e+4,i,!0),T().setInt32(e+0,n,!0)},__wbg___wbindgen_is_null_ac34f5003991759a:function(e){return null===e},__wbg___wbindgen_is_undefined_9e4d92534c42d778:function(e){return void 0===e},__wbg___wbindgen_jsval_eq_11888390b0186270:function(e,t){return e===t},__wbg___wbindgen_string_get_72fb696202c56729:function(e,t){let n="string"==typeof t?t:void 0;var i=D(n)?0:z(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=$;T().setInt32(e+4,s,!0),T().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_be289d5034ed271b:function(e,t){throw Error(j(e,t))},__wbg_addEventListener_70320335c937cd3c:function(e,t,n){e.addEventListener(j(t,n))},__wbg_appendChild_dea38765a26d346d:function(){return U(function(e,t){return e.appendChild(t)},arguments)},__wbg_cloneNode_b85e9102a9a31b29:function(){return U(function(e,t){return e.cloneNode(0!==t)},arguments)},__wbg_createElement_49f60fdcaae809c8:function(){return U(function(e,t,n){return e.createElement(j(t,n))},arguments)},__wbg_cssRules_554f47f3049cf066:function(){return U(function(e){return e.cssRules},arguments)},__wbg_disableElementEvent_19576bb4ec5bab1a:function(e,t,n,r){e.disableElementEvent(t,j(n,r))},__wbg_enableElementEvent_f5b290b91f181b72:function(e,t,n,r){e.enableElementEvent(t,j(n,r))},__wbg_eventinfo_new:function(e){return i.__wrap(e)},__wbg_getClassList_8927bd6db940592b:function(e,t,n){let i=F(t.getClassList(n),r.__wbindgen_malloc),s=$;T().setInt32(e+4,s,!0),T().setInt32(e+0,i,!0)},__wbg_get_9b94d73e6221f75c:function(e,t){return e[t>>>0]},__wbg_get_b3ed3ad4be2bc8ac:function(){return U(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_has_d4e53238966c12b6:function(){return U(function(e,t){return Reflect.has(e,t)},arguments)},__wbg_insertRule_736c2f80782185c7:function(){return U(function(e,t,n,r){return e.insertRule(j(t,n),r>>>0)},arguments)},__wbg_item_ca823df8214b9e2b:function(e,t){let n=e.item(t>>>0);return D(n)?0:E(n)},__wbg_keys_b50a709a76add04e:function(e){return Object.keys(e)},__wbg_length_32ed9a279acd054c:function(e){return e.length},__wbg_length_35a7bace40f36eac:function(e){return e.length},__wbg_length_edae0cd13a8d3b71:function(e){return e.length},__wbg_new_361308b2356cecd0:function(){return{}},__wbg_new_from_slice_a3d2629dc1826784:function(e,t){return new Uint8Array(P(e,t))},__wbg_ownerDocument_9347874c5cad87d7:function(e){let t=e.ownerDocument;return D(t)?0:E(t)},__wbg_parentElement_75863410a8617953:function(e){let t=e.parentElement;return D(t)?0:E(t)},__wbg_prototypesetcall_bdcdcc5842e4d77d:function(e,t,n){Uint8Array.prototype.set.call(P(e,t),n)},__wbg_publishEvent_746b6a9f0c4d4e11:function(e,t,n,r,i,s,o,a,_,l){e.publishEvent(j(t,n),0===r?void 0:j(r,i),s,o>>>0,a,_>>>0,l)},__wbg_removeAttribute_87259aab06d9f286:function(){return U(function(e,t,n){e.removeAttribute(j(t,n))},arguments)},__wbg_removeProperty_a0d2ff8a76ffd2b1:function(){return U(function(e,t,n,i){let s=z(t.removeProperty(j(n,i)),r.__wbindgen_malloc,r.__wbindgen_realloc),o=$;T().setInt32(e+4,o,!0),T().setInt32(e+0,s,!0)},arguments)},__wbg_runWorklet_0a8c4179fd6c84f4:function(e,t,n,r,i,s,o){e.runWorklet(t,n,r>>>0,i,s>>>0,o)},__wbg_setAttribute_cc8e4c8a2a008508:function(){return U(function(e,t,n,r,i){e.setAttribute(j(t,n),j(r,i))},arguments)},__wbg_setProperty_cbb25c4e74285b39:function(){return U(function(e,t,n,r,i){e.setProperty(j(t,n),j(r,i))},arguments)},__wbg_set_6cb8631f80447a67:function(){return U(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_cssText_18380c97092caefa:function(e,t,n){e.cssText=j(t,n)},__wbg_set_textContent_3e87dba095d9cdbc:function(e,t,n){e.textContent=0===t?void 0:j(t,n)},__wbg_sheet_47ea0f14607eb161:function(e){let t=e.sheet;return D(t)?0:E(t)},__wbg_style_0b7c9bd318f8b807:function(e){return e.style},__wbg_style_fa56cf251a93275a:function(e){return e.style},__wbindgen_cast_0000000000000001:function(e,t){return j(e,t)},__wbindgen_init_externref_table:function(){let e=r.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},__wbindgen_object_is_undefined:function(e){return void 0===e}}}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);let y="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventinfo_free(e>>>0,1)),v="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_mainthreadwasmcontext_free(e>>>0,1)),S="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rawstyleinfo_free(e>>>0,1)),x="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rule_free(e>>>0,1)),k="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ruleprelude_free(e>>>0,1)),C="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_selector_free(e>>>0,1)),R="u"<typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_stylesheetresource_free(e>>>0,1));function E(e){let t=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(t,e),t}function O(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function A(e,t){e>>>=0;let n=T(),i=[];for(let s=e;s<e+4*t;s+=4)i.push(r.__wbindgen_externrefs.get(n.getUint32(s,!0)));return r.__externref_drop_slice(e,t),i}function P(e,t){return e>>>=0,I().subarray(e/1,e/1+t)}let M=null;function T(){return(null===M||!0===M.buffer.detached||void 0===M.buffer.detached&&M.buffer!==r.memory.buffer)&&(M=new DataView(r.memory.buffer)),M}function j(e,t){var n,r;return n=e>>>=0,(V+=r=t)>=0x7ff00000&&((H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),V=r),H.decode(I().subarray(n,n+r))}let L=null,N=null;function I(){return(null===N||0===N.byteLength)&&(N=new Uint8Array(r.memory.buffer)),N}function U(e,t){try{return e.apply(this,t)}catch(t){let e=E(t);r.__wbindgen_exn_store(e)}}function D(e){return null==e}function W(e,t){let n=t(4*e.length,4)>>>0;return((null===L||0===L.byteLength)&&(L=new Uint32Array(r.memory.buffer)),L).set(e,n/4),$=e.length,n}function F(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=E(e[t]);T().setUint32(n+4*t,r,!0)}return $=e.length,n}function z(e,t,n){if(void 0===n){let n=q.encode(e),r=t(n.length,1)>>>0;return I().subarray(r,r+n.length).set(n),$=n.length,r}let r=e.length,i=t(r,1)>>>0,s=I(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;s[i+o]=t}if(o!==r){0!==o&&(e=e.slice(o)),i=n(i,r,r=o+3*e.length,1)>>>0;let t=I().subarray(i+o,i+r);o+=q.encodeInto(e,t).written,i=n(i,r,o,1)>>>0}return $=o,i}function B(e){let t=r.__wbindgen_externrefs.get(e);return r.__externref_table_dealloc(e),t}let H=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});H.decode();let V=0,q=new TextEncoder;"encodeInto"in q||(q.encodeInto=function(e,t){let n=q.encode(e);return t.set(n),{read:e.length,written:n.length}});let $=0;function J(e,t){return r=e.exports,M=null,L=null,N=null,r.__wbindgen_start(),r}async function G(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&function(e){switch(e){case"basic":case"cors":case"default":return!0}return!1}(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function Q(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=m();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),J(new WebAssembly.Instance(e,t),e)}async function Y(e){if(void 0!==r)return r;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL(n(9099),n.b));let t=m();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:i,module:s}=await G(await e,t);return J(i,s)}},5306(e,t,n){n.d(t,{Q:()=>o});var r=n(6396);let i=Promise.resolve().then(n.bind(n,3585));class s{#e=new Map;#t=new Map;#n=new Map;#r=new Map;#i=new Map;#s=null;#o=null;#a=null;constructor(){this.#_()}fetchBundle(e,t,n,r,i,s){if(this.#e.has(e)&&!s)return(async()=>{let n=this.#e.get(e),r=n?.config||{},i=await t;i.backgroundThread.markTiming("decode_start"),i.onPageConfigReady(r),i.onStyleInfoReady(e),i.onMTSScriptsLoaded(e,"true"===r.isLazy),i.onBTSScriptsLoaded(e)})();{if(this.#n.has(e))return this.#n.get(e).then(async()=>{let n=this.#e.get(e),r=n?.config||{},i=await t;i.backgroundThread.markTiming("decode_start"),i.onPageConfigReady(r),i.onStyleInfoReady(e),i.onMTSScriptsLoaded(e,"true"===r.isLazy),i.onBTSScriptsLoaded(e)});this.createBundle(e);let o=this.#l(e,t,n,r,i,s);return this.#n.set(e,o),o}}async #l(e,t,n,r,i,s){let o=performance.now()+performance.timeOrigin;t.then(e=>{e.backgroundThread.markTiming("fetch_start",void 0,o)}),this.#r.set(e,t),await this.#_();let a={type:"load",url:e,fetchUrl:new URL(e,location.href).toString(),transformVW:n,transformVH:r,transformREM:i,overrideConfig:s};return this.#s.postMessage(a),new Promise((t,n)=>{this.#i.set(e,{resolve:t,reject:n})})}#c(e){let t=this.#i.get(e);t&&(t.resolve(),this.#i.delete(e))}#d(e,t){let n=this.#i.get(e);n&&(n.reject(t),this.#i.delete(e))}#_(){return this.#s?this.#o?this.#o:void 0:(this.#o=new Promise(e=>{this.#a=e}),this.#s=new Worker(new URL(n.p+n.u("350"),n.b),Object.assign({},{type:"module"},{type:void 0})),this.#s.onmessage=this.#u.bind(this),this.#o.then(()=>{i.then(({wasmModule:e})=>{this.#s.postMessage({type:"init",wasmModule:e})})}),this.#o)}#u(e){let t=e.data;if("ready"===t.type){this.#a&&(this.#a(),this.#a=null,this.#o=null);return}let{url:n}=t,r=this.#r.get(n);if(r)switch(t.type){case"section":this.#h(t,r);break;case"error":console.error(`Error decoding bundle ${n}:`,t.error),this.#b(n),this.#g(n),this.#d(n,Error(t.error)),this.#n.delete(n);break;case"done":this.#b(n);let i=this.#t.get(n);i&&(this.#e.set(n,i),this.#t.delete(n)),this.#c(n),this.#n.delete(n),r.then(e=>{e.backgroundThread.markTiming("decode_end"),e.backgroundThread.markTiming("load_template_start")})}}async #h(e,t){let[n,s]=await Promise.all([t,i.then(e=>e.wasmInstance.StyleSheetResource)]),{label:o,data:a,url:_,config:l}=e;switch(o){case r.eC.Configurations:n.backgroundThread.markTiming("decode_start"),this.#f(_,a),n.onPageConfigReady(a);break;case r.eC.StyleInfo:{let e=new s(new Uint8Array(a),document),t=this.#t.get(_);t&&(t.styleSheet=e),n.onStyleInfoReady(_);break}case r.eC.LepusCode:this.#p(_,a),n.onMTSScriptsLoaded(_,"true"===l.isLazy);break;case r.eC.CustomSections:this.#w(_,a);break;case r.eC.Manifest:this.#m(_,a),n.onBTSScriptsLoaded(_);break;default:throw Error(`Unknown section label: ${o}`)}}#b(e){this.#r.delete(e)}createBundle(e){if(this.#e.has(e)){let t=this.#e.get(e);if(t){if(t.lepusCode)for(let e of Object.values(t.lepusCode))URL.revokeObjectURL(e);if(t.backgroundCode)for(let e of Object.values(t.backgroundCode))URL.revokeObjectURL(e);t.styleSheet&&t.styleSheet.free()}this.#e.delete(e)}if(this.#t.has(e)){let t=this.#t.get(e);if(t){if(t.lepusCode)for(let e of Object.values(t.lepusCode))URL.revokeObjectURL(e);if(t.backgroundCode)for(let e of Object.values(t.backgroundCode))URL.revokeObjectURL(e);t.styleSheet&&t.styleSheet.free()}this.#t.delete(e)}this.#t.set(e,{})}#g(e){this.createBundle(e),this.#t.delete(e)}#f(e,t){let n=this.#t.get(e);n&&(n.config=t)}#p(e,t){let n=this.#t.get(e);n&&(n.lepusCode=t)}#w(e,t){let n=this.#t.get(e);n&&(n.customSections=t)}#m(e,t){let n=this.#t.get(e);n&&(n.backgroundCode=t)}getBundle(e){return this.#e.get(e)||this.#t.get(e)}getStyleSheet(e){return this.getBundle(e)?.styleSheet}}let o=new s},3585(e,t,n){n.a(e,async function(e,r){try{n.r(t),n.d(t,{wasmInstance:()=>o,wasmModule:()=>a});var i=n(480);let e="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,s=Promise.all([(0,i.rO)(),(0,i.oR)()]).then(([t,r])=>t&&r?Promise.all([Promise.resolve().then(n.bind(n,9883)),e?void 0:WebAssembly.compileStreaming(fetch(new URL(n(9099),n.b)))]):Promise.all([n.e("778","low").then(n.bind(n,6149)),e?void 0:WebAssembly.compileStreaming(fetch(new URL(n(8331),n.b)))])),[o,a]=await s;e||o.initSync({module:a}),r()}catch(e){r(e)}},1)},6396(e,t,n){var r,i,s,o,a,_;n.d(t,{$4:()=>m,Fd:()=>p,Gm:()=>h,H1:()=>S,JA:()=>c,O4:()=>r,Pb:()=>l,RM:()=>w,Uc:()=>s,Wx:()=>i,eC:()=>v,f7:()=>b,hv:()=>f,im:()=>y,li:()=>k,oZ:()=>u,u9:()=>C,vh:()=>x,xW:()=>g,y:()=>d});let l="l-e-name",c="l-disposed",d="l-template",u="dirtyID",h="lynx-default-display-linear",b="lynx-default-overflow-visible",g="__lynx_timing_flag",f="i18nResourceMissed",p=Symbol("uniqueId"),w={platform:"web",lynxSdkVersion:"3.0"},m={click:"tap",lynxscroll:"scroll",lynxscrollend:"scrollend",overlaytouch:"touch",lynxfocus:"focus",lynxblur:"blur",lynxinput:"input"},y=Object.fromEntries(Object.entries(m).map(([e,t])=>[t,e])),v={Manifest:1,StyleInfo:2,LepusCode:3,CustomSections:4,ElementTemplates:5,Configurations:6};(o=r||(r={}))[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";let S=Object.freeze(Object.assign(Object.create(null),{view:"x-view",text:"x-text",image:"x-image","raw-text":"raw-text","scroll-view":"x-scroll-view",wrapper:"lynx-wrapper",list:"x-list",page:"div",input:"x-input","x-input-ng":"x-input",svg:"x-svg"})),x=Object.freeze(Object.assign(Object.create(null),Object.fromEntries(Object.entries(S).map(([e,t])=>[t,e]))));Object.assign(Object.create(null),{list:0,"x-swiper":1,"x-input":2,"x-input-ng":2,input:2,"x-textarea":3,"x-audio-tt":4,"x-foldview-ng":5,"x-foldview-header-ng":5,"x-foldview-slot-drag-ng":5,"x-foldview-slot-ng":5,"x-foldview-toolbar-ng":5,"x-refresh-view":6,"x-refresh-header":6,"x-refresh-footer":6,"x-overlay-ng":7,"x-viewpager-ng":8,"x-viewpager-item-ng":8});let k=Symbol.for("lynx-scroll-container-dom"),C="loadUnknownElement";(a=i||(i={}))[a.ID_SELECTOR=0]="ID_SELECTOR",a[a.REF_ID=1]="REF_ID",a[a.UNIQUE_ID=2]="UNIQUE_ID",(_=s||(s={}))[_.START=0]="START",_[_.PLAY=1]="PLAY",_[_.PAUSE=2]="PAUSE",_[_.CANCEL=3]="CANCEL",_[_.FINISH=4]="FINISH"},1034(e,t,n){n.d(t,{_y:()=>h,ZR:()=>g,h3:()=>b,_8:()=>_,uA:()=>c,Ut:()=>l,H$:()=>a,LB:()=>o,JS:()=>s,qy:()=>d});let r=[];function i(){let e=r;for(let[t,n]of(r=[],e))n?t.call(n):t()}function s(e,t){0===r.length&&queueMicrotask(i),r.push([e,t])}function o(e,t,n,r){let i=!1;return function(o){if(o!==i){let a=e.call(this);o?(s(()=>a.addEventListener(t,n,r)),i=!0):(s(()=>a.removeEventListener(t,n)),i=!1)}}}function a(e,t,n){return function(r){n&&(r=n(r));let i=e.call(this);i.getAttribute(t)!==r&&(null!==r?s(()=>{i.setAttribute(t,r)}):s(()=>{i.removeAttribute(t)}))}}function _(e,t,n,r){return function(i){i?(n&&(i=n(i)),s(()=>e.call(this).style.setProperty(t,i,r?"important":void 0))):s(()=>e.call(this).style.removeProperty(t))}}function l(e,t){let n,r;return()=>(r||(r=e()),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&n||(n=r.querySelector(t)),n)}function c(e,t,n){let r,i=t.filter(e=>!!e);return(t,{addInitializer:o})=>{let a=new Set([...i.filter(e=>e.observedCSSProperties).map(e=>e.observedCSSProperties).reduce((e,t)=>e.concat(t),[])]);class _ extends t{static registerPlugin(e){if(_.observedAttributes.push(...e.observedAttributes),e.observedCSSProperties)for(let t of e.observedCSSProperties)a.add(t);i.push(e)}static observedAttributes=[...t.observedAttributes??[],...i.map(e=>e.observedAttributes).reduce((e,t)=>e.concat(t),[]),"class"];#y=[];constructor(){if(super(),n&&!r&&((r=document.createElement("template")).innerHTML=n,document.body.appendChild(r)),r&&!this.shadowRoot){const e=this.attachShadow({mode:"open",delegatesFocus:!0}),t=r.content.cloneNode(!0);e.append(t)}this.#y=i.map(e=>new e(this)),this.#v()}#S=!1;#x=new Map;#k(){!this.#S&&a.size&&(this.#S=!0,s(this.#C,this))}#C(){let e=getComputedStyle(this);for(let n of a){var t;let r=e.getPropertyValue(n),i=e.getPropertyPriority(n),s=(t=r.trim(),i?t+" !important":t);if(this.#x.get(n)!==s)for(let e of this.#y)e.cssPropertyChangedHandler?.[n]?.call(e,s,n)}this.#S=!1}setAttribute(e,n){"false"!==n.toString()||t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")?super.setAttribute(e,n):this.removeAttribute(e)}#v(){let e=this.attributes;for(let n=0,r;r=e.item(n);n++)"false"!==r.value||t.notToFilterFalseAttributes?.has(r.name)||r.name.startsWith("data-")||this.removeAttributeNode(r)}#R=!1;attributeChangedCallback(e,n,r){if(super.attributeChangedCallback&&super.attributeChangedCallback(e,n,r),t.notToFilterFalseAttributes?.has(e)||e.startsWith("data-")||("false"===n&&(n=null),"false"===r&&(r=null,this.removeAttribute(e))),n!==r){for(let t of(this.#R&&("class"===e||"style"===e)&&this.#k(),this.#y))if(t.attributeChangedHandler?.[e]){let{handler:i,noDomMeasure:o}=t.attributeChangedHandler[e];o?i.call(t,r,n,e):this.#R&&s(()=>i.call(t,r,n,e))}}}#E(){this.getAttributeNames().forEach(e=>{for(let t of this.#y)if(t.attributeChangedHandler?.[e]){let{handler:n,noDomMeasure:r}=t.attributeChangedHandler[e];r||s(()=>n.call(t,this.getAttribute(e),null,e))}})}connectedCallback(){super.connectedCallback?.(),this.#y.forEach(e=>{e.connectedCallback?.()}),this.#k(),s(this.#E,this),this.#R=!0}disconnectedCallback(){super.disconnectedCallback?.(),this.#y.forEach(e=>{e.dispose?.()})}#O={};enableEvent(e){this.#O[e]??={count:0,listenerCount:new WeakMap,captureListenerCount:new WeakMap};let t=this.#O[e];if(0===t.count)for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!0,e)}t.count++}disableEvent(e){let t=this.#O[e];if(t&&t.count>0&&(t.count--,0===t.count))for(let t of this.#y){let n=t.eventStatusChangedHandler?.[e];n&&n.call(t,!1,e)}}addEventListener(e,t,n){super.addEventListener(e,t,n),this.enableEvent(e);let r=this.#O[e],i=("object"==typeof n?n.capture:n)?r.captureListenerCount:r.listenerCount,s=i.get(t)??0;i.set(t,s+1)}removeEventListener(e,t,n){super.removeEventListener(e,t,n);let r="object"==typeof n?n.capture:n,i=this.#O[e];if(i&&i.count>0){let n=r?i.captureListenerCount:i.listenerCount;1===n.get(t)&&(n.delete(t),this.disableEvent(e))}}}return o(()=>{customElements.define(e,_)}),_}}let d=(e,...t)=>String.raw({raw:e},...t);function u(e,t){return function(n,...r){return function(i,s){if("method"===s.kind)s.addInitializer(function(){this[e]??={},this[e][n]=t(i,r)});else if("field"===s.kind)return function(i){return this[e]??={},this[e][n]=t(i,r),i};else throw Error(`[lynx-web-components] decorator type ${s.kind} is not supported`)}}}let h=u("attributeChangedHandler",(e,[t])=>({handler:e,noDomMeasure:t})),b=u("cssPropertyChangedHandler",e=>e),g=u("eventStatusChangedHandler",e=>e)},9678(e,t,n){let r,i,s;n.d(t,{O:()=>c,v:()=>l});var o=n(2198),a=n(6946),_=n(1034);let l=Symbol("layoutChangeTarget"),c=(i=[],s=[],class{static{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;r=[(0,_.ZR)("layoutchange")],(0,o.G4)(null,null,r,{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},i,s),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}static observedAttributes=[];#A;constructor(e){(0,o.zF)(this,s),this.#A=e}#P=!1;#M;__handleScrollUpperThresholdEventEnabled=(0,o.zF)(this,i,e=>{e&&this.#A[l]?!this.#M&&(this.#M=new ResizeObserver(([e])=>{if(e){let t=this.#A.id,{top:n,bottom:r,left:i,right:s,width:o,height:_}=e.target.getBoundingClientRect();this.#A.dispatchEvent(new CustomEvent("layoutchange",{detail:{width:o,height:_,left:i,right:s,top:n,bottom:r,id:t},...a.$}))}}),this.#P||(this.#M.observe(this.#A[l]),this.#P=!0)):(this.#M?.disconnect(),this.#M=void 0,this.#P=!1)});dispose(){this.#M?.disconnect(),this.#M=void 0,this.#P=!1}})},6946(e,t,n){n.d(t,{$:()=>r});let r={bubbles:!1,composed:!1,cancelable:!0}},4366(e,t,n){n.d(t,{k:()=>r,l:()=>i});let r="onscrollend"in document,i=Symbol.for("lynx-scroll-container-dom")},2198(e,t,n){n.d(t,{G4:()=>r,zF:()=>i});function r(e,t,n,r,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,_=r.kind,l="getter"===_?"get":"setter"===_?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),u=!1,h=n.length-1;h>=0;h--){var b={};for(var g in r)b[g]="access"===g?{}:r[g];for(var g in r.access)b.access[g]=r.access[g];b.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var f=(0,n[h])("accessor"===_?{get:d.get,set:d.set}:d[l],b);if("accessor"===_){if(void 0===f)continue;if(null===f||"object"!=typeof f)throw TypeError("Object expected");(a=o(f.get))&&(d.get=a),(a=o(f.set))&&(d.set=a),(a=o(f.init))&&i.unshift(a)}else(a=o(f))&&("field"===_?i.unshift(a):d[l]=a)}c&&Object.defineProperty(c,r.name,d),u=!0}function i(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}},480(e,t,n){n.d(t,{oR:()=>i,rO:()=>r});let r=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,7,1,5,0,208,112,26,11])),i=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))}},u={};function h(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={id:e,exports:{}};return d[e](n,n.exports,h),n.exports}h.m=d,t=(e="function"==typeof Symbol)?Symbol("rspack queues"):"__rspack_queues",n=h.aE=e?Symbol("rspack exports"):"__webpack_exports__",r=e?Symbol("rspack error"):"__rspack_error",i=e?Symbol("rspack done"):"__rspack_done",s=h.zS=e?Symbol("rspack defer"):"__rspack_defer",o=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},h.a=(e,a,_)=>{_&&((l=[]).d=-1);var l,c,d,b,g=new Set,f=e.exports,p=new Promise((e,t)=>{b=t,d=e});p[n]=f,p[t]=e=>{l&&e(l),g.forEach(e),p.catch(()=>{})},e.exports=p,a(e=>{c=e.map(e=>{if(null!==e&&"object"==typeof e){if(!e[t]&&e[s]){var a=e[s];if(!a.some(e=>{var t=u[e];return!t||!1===t[i]}))return e;var _=e;e={then(e){Promise.all(a.map(h)).then(()=>e(_))}}}if(e[t])return e;if(e.then){var l=[];l.d=0,e.then(e=>{c[n]=e,o(l)},e=>{c[r]=e,o(l)});var c={};return c[s]=!1,c[t]=e=>e(l),c}}var d={};return d[t]=()=>{},d[n]=e,d});var a,_=()=>c.map(e=>{if(e[s])return e;if(e[r])throw e[r];return e[n]}),d=new Promise(e=>{(a=()=>e(_)).r=0;var n=e=>e!==l&&!g.has(e)&&(g.add(e),e&&!e.d&&(a.r++,e.push(a)));c.map(e=>e[s]||e[t](n))});return a.r?d:_()},e=>(e?b(p[r]=e):d(f),o(l),p[i]=!0)),l&&l.d<0&&(l.d=0)},h.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=(e,t)=>Promise.all(Object.keys(h.f).reduce((n,r)=>(h.f[r](e,n,t),n),[])),h.u=e=>"static/js/async/"+({350:"web-core-template-loader-thread",724:"web-elements",778:"legacy-wasm-js",894:"web-core-main-chunk",97:"web-core-worker-chunk"})[e]+".js",h.miniCssF=e=>""+e+".css",h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a={},h.l=function(e,t,n,r,i){if(a[e])return void a[e].push(t);if(void 0!==n)for(var s,o,_=document.getElementsByTagName("script"),l=0;l<_.length;l++){var c=_[l];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@lynx-js/web-rsbuild-server-middleware:"+n){s=c;break}}s||(o=!0,(s=document.createElement("script")).timeout=120,h.nc&&s.setAttribute("nonce",h.nc),s.setAttribute("data-rspack","@lynx-js/web-rsbuild-server-middleware:"+n),i&&s.setAttribute("fetchpriority",i),s.src=e),a[e]=[t];var d=function(t,n){s.onerror=s.onload=null,clearTimeout(u);var r=a[e];if(delete a[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach(function(e){return e(n)}),t)return t(n)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),o&&document.head.appendChild(s)},h.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.p="http://lynx-web-core-mocked.localhost/",h.b=document.baseURI||self.location.href,_={410:0},h.f.j=function(e,t,n){var r=h.o(_,e)?_[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((t,n)=>r=_[e]=[t,n]);t.push(r[2]=i);var s=h.p+h.u(e),o=Error();h.l(s,function(t){if(h.o(_,e)&&(0!==(r=_[e])&&(_[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+i+")",o.name="ChunkLoadError",o.type=n,o.request=i,r[1](o)}},"chunk-"+e,e,n)}},l=(e,t)=>{var n,r,[i,s,o]=t,a=0;if(i.some(e=>0!==_[e])){for(n in s)h.o(s,n)&&(h.m[n]=s[n]);o&&o(h)}for(e&&e(t);a<i.length;a++)r=i[a],h.o(_,r)&&_[r]&&_[r][0](),_[r]=0},(c=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware=globalThis.webpackChunk_lynx_js_web_rsbuild_server_middleware||[]).forEach(l.bind(null,0)),c.push=l.bind(null,c.push.bind(c)),(()=>{var e=h(6396);let t=document.querySelector("script[nonce]"),n=t?.nonce||t?.getAttribute("nonce");async function r(e){let t=document.createElement("iframe"),r=new Promise(e=>{let n=r=>{"lynx:mtsready"===r.data&&r.source===t.contentWindow&&(e(),globalThis.removeEventListener("message",n))};globalThis.addEventListener("message",n)});t.style.display="none",t.srcdoc='<!DOCTYPE html><html><head><script nonce="'+n+'">parent.postMessage("lynx:mtsready","*")<\/script></head><body style="display:none"></body></html>',t.sandbox="allow-same-origin allow-scripts",t.loading="eager",e.appendChild(t),await r;let i=t.contentWindow,s=async e=>{let r=t.contentDocument.createElement("script");return r.fetchPriority="high",r.defer=!0,r.async=!1,r.nonce=n||"",t.contentDocument.head.appendChild(r),new Promise(async(t,n)=>{r.onload=()=>{let e=i?.module?.exports;i.module={exports:void 0},t(e)},r.onerror=t=>n(Error(`Failed to load script: ${e}`,{cause:t})),i.module={exports:void 0},r.src=e})};return{globalWindow:i,loadScript:s,loadScriptSync:e=>{let n=new XMLHttpRequest;if(n.open("GET",e,!1),n.send(null),200===n.status){let e=t.contentDocument.createElement("script");e.textContent=n.responseText,i.module={exports:void 0},t.contentDocument.head.appendChild(e);let r=i?.module?.exports;return i.module={exports:void 0},r}throw Error(`Failed to load script: ${e}`,{cause:n})}}}var i=h(5306);h.e("894","high").then(h.bind(h,9052));class s extends HTMLElement{static lynxViewCount=0;static tag="lynx-view";static observedAttributeAsProperties=["url","global-props","init-data","browser-config","transform-vw","transform-vh","transform-rem"];static observedAttributes=s.observedAttributeAsProperties.map(e=>e.toLowerCase());#T;#R=!1;#j;nativeModulesMap;napiModulesMap;onNapiModulesCall;#L;get browserConfig(){return this.#L}set browserConfig(e){if("string"==typeof e)try{this.#L=JSON.parse(e)}catch(e){console.error("Invalid browser-config",e)}else this.#L=e}#N=!1;get transformVW(){return this.#N}set transformVW(e){this.#N=e,e?this.setAttribute("transform-vw",""):this.removeAttribute("transform-vw")}#I=!1;get transformVH(){return this.#I}set transformVH(e){this.#I=e,e?this.setAttribute("transform-vh",""):this.removeAttribute("transform-vh")}#U=!1;get transformREM(){return this.#U}set transformREM(e){this.#U=e,e?this.setAttribute("transform-rem",""):this.removeAttribute("transform-rem")}constructor(){super(),this.onNativeModulesCall||(this.onNativeModulesCall=(e,t,n)=>new Promise(r=>{this.#D.push({args:[e,t,n],resolve:r})}))}get url(){return this.#j}set url(e){this.#j=e,this.#W()}#F={};get globalProps(){return this.#F}set globalProps(e){"string"==typeof e?this.#F=JSON.parse(e):this.#F=e}#z={};get initData(){return this.#z}set initData(e){"string"==typeof e?this.#z=JSON.parse(e):this.#z=e}#B=[];get initI18nResources(){return this.#B}set initI18nResources(e){"string"==typeof e?this.#B=JSON.parse(e):this.#B=e}updateI18nResources(e,t){this.#T?.i18nManager.updateData(e,t)}#D=[];#H;get onNativeModulesCall(){return this.#H}set onNativeModulesCall(e){for(let t of(this.#H=e,this.#D))t.resolve(e.apply(void 0,t.args));this.#D=[]}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.#T?.updateData(e,t).then(()=>{n?.()})}updateGlobalProps(e){this.#T?.updateGlobalProps(e),this.globalProps=e}sendGlobalEvent(e,t){this.#T?.backgroundThread.sendGlobalEvent(e,t)}reload(){this.removeAttribute("ssr"),this.#W()}setAttribute(e,t){"false"===t?this.removeAttribute(e):super.setAttribute(e,t)}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"url":this.#j=n;break;case"global-props":this.#F=JSON.parse(n);break;case"browser-config":this.browserConfig=JSON.parse(n);break;case"init-data":this.#z=JSON.parse(n);break;case"transform-vw":this.transformVW="false"!==n&&null!==n;break;case"transform-vh":this.transformVH="false"!==n&&null!==n;break;case"transform-rem":this.transformREM="false"!==n&&null!==n}}injectStyleRules;disconnectedCallback(){this.shadowRoot?.querySelector('[part="page"]')?.setAttribute(e.JA,""),this.#T?.[Symbol.asyncDispose](),this.shadowRoot&&(this.shadowRoot.innerHTML=""),this.#T=void 0}#V=!1;#W(){if(!this.#V&&this.#R){this.#V=!0,this.shadowRoot||this.attachShadow({mode:"open"}),this.#T&&this.disconnectedCallback();let e=r(this.shadowRoot);queueMicrotask(async()=>{if(this.injectStyleRules&&this.injectStyleRules.length>0){let e=new CSSStyleSheet;for(let t of this.injectStyleRules)e.insertRule(t);this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.concat(e)}let t=await e;if(this.#j){let e=h.e("894","high").then(h.bind(h,9052)).then(({LynxViewInstance:e})=>{let r=this.hasAttribute("ssr");return r&&this.removeAttribute("ssr"),new e(this,this.initData,this.globalProps,this.#j,this.shadowRoot,t,r,n,this.nativeModulesMap,this.napiModulesMap,this.#B,this.transformVW,this.transformVH,this.transformREM,this.browserConfig)});i.Q.fetchBundle(this.#j,e,this.transformVW,this.transformVH,this.transformREM,void 0);let n=this.lynxGroupId;this.#T=await e,this.#V=!1}})}}#q(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}connectedCallback(){this.#q("browserConfig"),this.#q("transformVW"),this.#q("transformVH"),this.#q("transformREM"),this.url&&(this.#j=this.url),this.#R=!0,this.#W()}}customElements.get(s.tag)?console.error(`[${s.tag}] has already been defined`):customElements.define(s.tag,s),h(1034),h(9678),h(6946),h(4366);let o="lynx-web-core-init-data",a="lynx-web-core-global-props",_=document.createElement("lynx-view");document.body.appendChild(_);let l=new URLSearchParams(document.location.search).get("casename");function c(){if(l){let e={};try{let t=localStorage.getItem(o);t&&(e=JSON.parse(t))}catch{console.error("Failed to parse initData from localStorage, use empty object instead.")}let t={};try{let e=localStorage.getItem(a);e&&(t=JSON.parse(e))}catch{console.error("Failed to parse globalProps from localStorage, use empty object instead.")}_.globalProps=t,_.initData=e,_.url=l}}function d(e){localStorage.setItem(o,JSON.stringify(e)),c()}function u(e){localStorage.setItem(a,JSON.stringify(e)),c()}function b(){console.info(` _ __ ___ ___ __ __ ________ ____ _____ _ _______ ______ ____ _____ __ __
|
|
315
3
|
| | \\ \\ / / \\ | \\ \\ / / \\ \\ / / ____| _ \\ | __ \\| | /\\|__ __| ____/ __ \\| __ \\| \\/ |
|
|
316
4
|
| | \\ \\_/ /| \\| |\\ V / \\ \\ /\\ / /| |__ | |_) | | |__) | | / \\ | | | |__ | | | | |__) | \\ / |
|
|
317
5
|
| | \\ / | . \\ | > < \\ \\/ \\/ / | __| | _ < | ___/| | / /\\ \\ | | | __|| | | | _ /| |\\/| |
|
|
318
6
|
| |____| | | |\\ |/ . \\ \\ /\\ / | |____| |_) | | | | |____ / ____ \\| | | | | |__| | | \\ \\| | | |
|
|
319
|
-
|______|_| |_| \\_/_/ \\_\\ \\/ \\/ |______|____/ |_| |______/_/ \\_\\_| |_| \\____/|_| \\_\\_| |_|`),console.table(Object.entries(
|
|
7
|
+
|______|_| |_| \\_/_/ \\_\\ \\/ \\/ |______|____/ |_| |______/_/ \\_\\_| |_| \\____/|_| \\_\\_| |_|`),console.table(Object.entries(g).map(([e,t])=>({Method:e+"()",Description:t.description||"No description available"}),["Method","Description"]))}d.description="Set the initData for lynx-view, which will be used when the page loads.",u.description="Set the globalProps for lynx-view, which will be used when the page loads.",b.description="Print all available methods and their descriptions.";let g={setInitData:d,setGlobalProps:u,help:b};Object.assign(globalThis,g),b(),c()})()})();
|