compelem 0.28.0 → 0.28.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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * compelem v0.28.0.1788669366
2
+ * compelem v0.28.1.1788782074
3
3
  * A modern, reactive, fast, lightweight and flexible lib for building web components
4
4
  * @holyhigh2
5
5
  * git+https://github.com/holyhigh2/compelem.git
6
6
  */
7
- import e,{some as t,isString as n,isUndefined as r,isBlank as s,assign as o,kebabCase as i,camelCase as a,isArray as l,each as c,flatMap as u,test as d,isSymbol as h,isFunction as p,isObject as f,concat as g,startsWith as m,get as _,toArray as v,defaults as w,merge as y,clone as E,has as b,set as S,closest as N,remove as T,size as M,includes as C,noop as k,isEmpty as x,find as R,debounce as A,throttle as L,once as P,map as V,first as I,walkTree as O,filter as D,isNil as W,isNull as H,isDefined as $,trim as U,isBoolean as j,parseJSON as B,cloneDeep as K,keys as F,groupBy as z,last as G,reject as X,initial as q,except as Q,toString as Z,reduce as J,compact as Y,snakeCase as ee,range as te,replace as ne,bind as re,isPlainObject as se,isNumeric as oe,isNumber as ie,isElement as ae,toPath as le,split as ce,findIndex as ue,join as de}from"myfx";const he="default",pe=/\s+\.?key\s*=/;var fe,ge;!function(e){e[e.RENDER=1]="RENDER",e[e.COMPUTED=2]="COMPUTED",e[e.DIRECTIVE=3]="DIRECTIVE"}(fe||(fe={})),function(e){e.Prod="prod",e.Dev="dev"}(ge||(ge={}));const me={boolean:Boolean,string:String,number:Number,object:Object,array:Array,function:Function,undefined:Object},_e=new Map,ve=new WeakMap,we={},ye={},Ee=new WeakMap,be=new WeakMap,Se=new WeakMap,Ne=new WeakMap,Te=new Map,Me=new Map,Ce=new Map,ke=new WeakMap,xe=new WeakMap,Re=new WeakMap,Ae=new WeakMap,Le=new WeakMap,Pe=new WeakMap,Ve=new WeakMap,Ie=new WeakMap,Oe=new WeakMap,De=new WeakMap,We=new WeakMap,He=new WeakMap,$e=new WeakMap,Ue=new WeakMap,je=new WeakMap,Be=new WeakMap,Ke=new WeakMap,Fe=new WeakMap,ze=new Map,Ge=new WeakMap,Xe=new WeakMap,qe=new WeakMap,Qe=new WeakMap,Ze="__data_",Je="⟬Ċ⟭";class Ye{strings;vars;cssText;constructor(e,t){this.strings=e,this.vars=t}getCssText(){if(this.cssText)return this.cssText;let e="",t=this.strings.length-1;for(let n=0;n<=t;n++){const t=this.strings[n];let r=this.vars[n]??"";r instanceof Ye&&(r=r.getCssText()),e=e+t+r}return this.cssText=e,e}}function et(e){console.error("[CompElem]",e)}function tt(e,t){console.error(`[CompElem <${e}>]`,t)}function nt(...e){console.warn("[CompElem]",...e)}function rt(e,t){console.warn(`[CompElem <${e}>]`,t)}function st(e){return Object.getPrototypeOf(e)}function ot(e){return e===Boolean||t(e,(e=>e===Boolean))}function it(e){let t=e;return n(e)&&/(?:^true$)|(?:^false$)/.test(t)?t="true"===t:(r(t)||s(t))&&(t=!0),t}const at={getNodes(e,t){let n=e.nextSibling;if(!t)return[n];let r=[];for(;n&&n!==t;)r.push(n),n=n?.nextSibling;return r},insertBefore:function(e,t){if(!e.parentNode)return;let n=document.createDocumentFragment();n.append(...t),e.parentNode.insertBefore(n,e)},remove:function(e,t){if(e===t)return void e?.parentNode?.removeChild(e);let n=e.nextSibling;for(;n&&n!==t;)n?.parentNode?.removeChild(n),n=e.nextSibling},clear(e){if(!e)return;let t=[],n=e=>{let r=e.childNodes;for(let e=0,s=r.length;e<s;e++){let s=r[e];s.nodeType===Node.ELEMENT_NODE&&(s instanceof Vn&&t.push(s),n(s))}};n(e);for(let e=0,n=t.length;e<n;e++)t[e].destroy()}};function lt(e){return!!ye[e.tagName?.toLowerCase()]}function ct(e,t,n){let r=Xe.get(e);r||(r=new Map,Xe.set(e,r));let s=r.get(t)??{};r.set(t,o(s,n))}function ut(e,t){let n=Fe.get(e);n||(n=new Map,Fe.set(e,n));let r=n.get(t);return void 0===r&&(r="--"+i(t).replace(/^-+/,""),n.set(t,r)),r}const dt=new Map;function ht(e){let t=dt.get(e);return void 0!==t||(dt.size>1024&&dt.clear(),t=a(e),dt.set(e,t)),t}const pt=new WeakMap;function ft(e){let t=pt.get(e);return void 0===t&&(t=(e.name||"").toLowerCase(),pt.set(e,t)),t}var gt;function mt(...e){return(t,n,r)=>{let s=r.get();return(l(s)?s:[s]).forEach((n=>{let r;if(n instanceof Ye){if(r=je.get(n.strings),!r){let e=n.getCssText();r=new CSSStyleSheet,r.replaceSync(e),je.set(n.strings,r)}}else n instanceof CSSStyleSheet&&(r=n);if(!r)return;let s=Be.get(t);s||(s=new Map,Be.set(t,s)),c(e,(e=>{if(e===gt.GLOBAL)return void(document.adoptedStyleSheets.includes(r)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]));let t=s.get(e);t||(t=[],s.set(e,t)),t.push(r)}))})),r}}!function(e){e.INNER="inner",e.HOST="host",e.GLOBAL="global"}(gt||(gt={}));let _t=[],vt={},wt={};function yt(e){_t=u(e.css,(e=>{if(n(e)){let t=new CSSStyleSheet;return t.replaceSync(e),t}return e instanceof CSSStyleSheet?e:[]})),vt=e.global,c(e,((e,t)=>{d(t[0],/[A-Z]/)&&(wt[t]=e)})),Et.clear()}const Et=new Map;function bt(e){let t=Et.get(e);return t||(t=[...St(),...Be.get(e)?.get(gt.INNER)??[]],Et.set(e,t)),t}const St=()=>_t,Nt=()=>vt,Tt=()=>wt;function Mt(e,t){let n=t,r=Reflect.get(n[Ze],e);if(Pt&&Lt.push(e),null===r||"object"!=typeof r&&"function"!=typeof r)return r;let s=Ht.get(r);if(s||$t.get(r)){let o=Ut.get(r);o||(o=new Set,Ut.set(r,o));let i=s??r;if($t.get(i)?.deref()!==t){let n=Dt.get(t);n||(n={},Dt.set(t,n));let r=Wt.get(i);r&&(n[r[0]]=e)}return o.add(n.__thisRef),i}if(f(r)&&!p(r)&&!(r instanceof Node)&&!Object.isFrozen(r)){let t=Ie.get(n.constructor),s=t?.has(e);s||(t=Oe.get(n.constructor),s=t?.has(e)),r=s||"slots"===e?r:jt(r,n,e)}return r}function Ct(e,t,n){let r=n;if(!r.__inited)return void Reflect.set(r[Ze],e,t);let s=r[Ze][e],o=De.get(r.constructor),i=o?.get(e),a=Ht.get(s);if(i){if(!i.call(r,t,s,[e],t,s))return!0}else{if(Object.is(s,t))return!0;if(f(t)&&a===t)return!0}Reflect.set(r[Ze],e,t),Ft(n,t,s,[e])}function kt(e,t,n,r,s,o){let i=function(e){let t=Ve.get(e);if(void 0!==t)return t;let n=Object.getPrototypeOf(e),r=Re.get(e)??Re.get(n);return t=r?{rootMap:r,watchKeysDeep:xe.get(e)??xe.get(n),watchDeepUpdateMap:Le.get(e)??Le.get(n),watchUpdateMap:Ae.get(e)??Ae.get(n),onceMap:ke.get(e)??ke.get(n)}:null,Ve.set(e,t),t}(e.constructor);if(!i)return;let{rootMap:a,watchKeysDeep:l,watchDeepUpdateMap:c,watchUpdateMap:u,onceMap:d}=i,h=r.split(".")[0],p=a?.get(h);p?.forEach((i=>{(r===i||m(i,r+".")&&!Object.is(_(e._getPrivateData(),i),_(t,i))||m(r,i+".")&&l?.includes(i)&&!Object.is(_(e._getPrivateData(),i),_(t,i)))&&g(v(u[i]),v(c[i])).forEach((a=>{a&&!0!==d.get(i)&&(e._watchUpdateArgsInNextTick?.set(a,{newValue:t,oldValue:n,chain:r.split("."),rootObjNew:s,rootObjOld:o,fullMatch:i===r}),e._watchUpdateSetInNextTick?.add(a),d.has(i)&&d.set(i,!0))}))}))}function xt(e,t){let n=He.get(e.constructor);n?.has(t)&&n.get(t)?.forEach((t=>{e._computedUpdateSetInNextTick.add(t)}))}function Rt(e,t){let n=$e.get(e.constructor);if(!n)return;let r=t.split("."),s="";r.forEach((t=>{s=s?s+"."+t:t,n.has(s)&&(e._cssUpdateInNextTick=!0)}))}const At=new Set;let Lt=[],Pt=!1,Vt=null;const It={popDirectiveQ(){let e=[],t=Lt;for(let n=0;n<t.length;n++){let r=t[n];At.has(r)||(At.add(r),e.push(r))}return At.clear(),e},start(e){Pt=!0,Lt=[],Vt=e},end(e,t){e&&t&&e._regSubViewDeps(It.popVarPathList(),t),Pt=!1,Vt=null},popVarPathList(){let e=Array.from(new Set(Lt));return Lt=[],e},getVarPathList:()=>Lt,isCollection:()=>Pt};function Ot(){return Vt}const Dt=new WeakMap,Wt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Ut=new WeakMap;function jt(e,n,r){if(Ht.has(e))return Ht.get(e);if($t.has(e)){if(r){let r=Ut.get(e);r||(r=new Set,Ut.set(e,r)),t(r.values(),(e=>e.deref()===n))||r.add(new WeakRef(n))}return e}const s=new Proxy(e,{get(e,t,r){if(!t)return;const s=Reflect.get(e,t,r);if(h(t))return s;const o=l(e);if(p(s))return s;if("length"===t&&o)return s;if(95===t.charCodeAt(0)&&95===t.charCodeAt(1))return s;let i=Wt.get(r);if(Pt){let e=i?g(i):[];e.push(t),Lt.push(e.join("."))}if(null!==s&&"object"==typeof s&&Ht.has(s))return Ht.get(s);let a=s;if(f(s)&&!p(s)&&!(s instanceof Node)&&!Object.isFrozen(s)){let e=i?g(i):[];a=jt(s,n),e.push(t),Wt.set(a,e),Ht.set(s,a)}return a},set(e,t,r,s){if(!t)return!1;let o=e[t],i=Wt.get(s)??[],a=g(i,[t]),l=De.get(n.constructor),c=l?.get(a[0]),u=a.length>1,d=r,h=o;if(u&&(h=d=n._getPrivateData()[a[0]]),c){if(!c.call(n,d,h,a,r,o))return!0}else if(Object.is(o,r))return!0;let p=r,f=Reflect.set(e,t,p);Ft(n,p,o,a);let m=Ut.get(s),_=[];return m?.forEach((e=>{let t=e.deref();if(!t)return;if(t===n)return;if(t.isDestroyed)return void _.push(e);let r=(Dt.get(t)??{})[a[0]];if(void 0===r)return;let s=a.join(".");s=s.replace(a[0],r),Ft(t,p,o,s.split("."),d,h)})),_.forEach((e=>{let t=e.deref();Dt.delete(t),m.delete(e)})),f}});return Wt.has(s)||Wt.set(s,r?[r]:[]),Ht.set(e,s),r&&$t.set(s,new WeakRef(n)),s}function Bt(e,t,n,r,s,o){e._notify(t,n,r,s,o)}function Kt(e,t,n,r){let s=r.join(".");kt(e,t,n,s,t,n),xt(e,s),Rt(e,s)}function Ft(e,t,n,r,s,o){s=s??t,o=o??n,r.length>1&&(o=s=e._getPrivateData()[r[0]]);let i=r.join(".");kt(e,t,n,i,s,o),xt(e,i),Rt(e,i),Bt(e,s,o,r,t,n)}class zt{static nextSet=new Set;static nextPending=!1;static next;static flush(){zt.nextPending=!1;let e=Array.from(zt.nextSet);zt.nextSet.clear(),e.forEach((e=>e())),e=null}static pushNext(e){zt.nextSet.add(e),zt.nextPending||(zt.nextPending=!0,zt.next())}}function Gt(e){if(1===arguments.length)return(t,n,r)=>{e.required=e.required||!1,e.attribute=!1!==e.attribute,Xt(t,n,e)};let t=arguments[0],n=arguments[1],r=arguments[2];e={type:void 0,required:!1,attribute:!0},r&&"function"==typeof r.type&&(e=w(r,e),r=void 0),e.shallow=e.shallow||!1,Xt(t,n,e)}function Xt(e,t,n,r){let s;if(!Se.has(e.constructor)){const t={};let n=e.constructor;for(;(n=st(n))!==Vn;)y(t,E(Se.get(n)??{}));s=new Set,c(t,((e,t)=>{if(e.attribute){let e=i(t);s?.add(e)}})),Me.set(e.constructor,s),Se.set(e.constructor,t)}if(n.attribute){s||(s=Me.get(e.constructor));let n=i(t);s?.add(n)}if(n.model){let n=Ne.get(e.constructor);n||(n=[],Ne.set(e.constructor,n)),n.includes(t)||n.push(t)}if(b(e.constructor,"observedAttributes")||(e.constructor.observedAttributes=[]),s&&(e.constructor.observedAttributes=v(s)),S(Se.get(e.constructor),t,n),n.hasChanged){let r=De.get(e.constructor);r||(r=new Map,De.set(e.constructor,r)),r.set(t,n.hasChanged)}if(n.shallow){let n=Oe.get(e.constructor);n||(n=new Set,Oe.set(e.constructor,n)),n.add(t)}Reflect.defineProperty(e,t,{get(){return Mt(t,this)},set(n){Ne.get(e.constructor)?.includes(t)&&function(e,t,n){n.emit("update:"+e,{value:t})}(t,n,this)}})}(()=>{const e=Promise.resolve(),t=zt.flush;zt.next=()=>{e.then(t)}})();const qt=new Set;function Qt(e){return Me.get(e)??Me.get(st(e))??qt}const Zt=["resize","outside","mutate"],Jt=new WeakMap,Yt=[],en=[],tn=[],nn=new WeakSet,rn="undefined"!=typeof ResizeObserver?new ResizeObserver((e=>{for(const t of e){const e=Array.isArray(t.contentBoxSize)?t.contentBoxSize[0]:t.contentBoxSize,n=Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize;if(!nn.has(t.target)){nn.add(t.target);continue}let r=Jt.get(t.target);r&&r.forEach((r=>{r({target:t.target,contentBoxSize:e,borderBoxSize:n,type:"resize"})}))}})):void 0;var sn;!function(e){e.Child="child",e.Tree="tree",e.Attr="attr",e.Char="char"}(sn||(sn={}));const on=new WeakMap,an="undefined"!=typeof MutationObserver?new MutationObserver((e=>{for(let t=0;t<e.length;t++){const n=e[t];let r=on.get(n.target);if(!r)return;let s={target:n.target},o=null;switch(n.type){case"subtree":s.type=sn.Tree,o=r[sn.Tree];break;case"childList":s.type=sn.Child,s.addedNodes=n.addedNodes,s.removedNodes=n.removedNodes,o=r[sn.Child];break;case"attributes":s.type=sn.Attr,s.attributeName=n.attributeName,s.oldValue=n.oldValue,o=r[sn.Attr];break;case"characterData":s.type=sn.Char,s.oldValue=n.oldValue,o=r[sn.Char]}o&&(s.type="mutate",o(s))}})):void 0;function ln(t,n,r,s,o,i){if("resize"===t)return function(e,t,n,r){if(!rn)return;let s=Jt.get(e);s||(s=[],Jt.set(e,s));let o=rn;if(r){let n=t;t=(...r)=>{n(...r),T(s,(e=>e===t)),M(s)<1&&(o.unobserve(e),Jt.delete(e))}}return s.push(t),rn.observe(e),(n=!1)=>{T(s,(e=>e===t)),M(s)<1&&(o.unobserve(e),Jt.delete(e),n&&(o=e=null))}}(n,r,0,i);if("outside"===t)switch(s[0]){case"mousedown":return function(t,n){return Yt.push([t,n]),(r=!1)=>{e.remove(Yt,(e=>e[0]===t&&e[1]===n))}}(n,r);case"dblclick":return function(t,n){return tn.push([t,n]),(r=!1)=>{e.remove(tn,(e=>e[0]===t&&e[1]===n))}}(n,r);default:return function(t,n){return en.push([t,n]),(r=!1)=>{e.remove(en,(e=>e[0]===t&&e[1]===n))}}(n,r)}else if("mutate"===t)return function(e,t,n){if(!an)return;let r=C(n,"child"),s=C(n,"attr"),o=C(n,"char"),i=C(n,"tree"),a=on.get(e);return a?void 0:(a={},on.set(e,a),r&&(a[sn.Child]=t),s&&(a[sn.Attr]=t),o&&(a[sn.Char]=t),i&&(a[sn.Tree]=t),an.observe(e,{childList:r,attributes:s,characterData:o,subtree:i}),(t=!1)=>{on.delete(e),t&&(e=null)})}(n,r,s)}"undefined"!=typeof document&&(document.addEventListener("mousedown",(e=>{let t=_(e.composedPath(),0,e.target);Yt.forEach((([n,r])=>{n.contains(t)||n.contains(N(t,(e=>e instanceof ShadowRoot),"parentNode")?.host)||r({type:"outside",target:n,modifier:"mousedown",event:e})}))}),!1),document.addEventListener("click",(e=>{let t=_(e.composedPath(),0,e.target);en.forEach((([n,r])=>{n.contains(t)||n.contains(N(t,(e=>e instanceof ShadowRoot),"parentNode")?.host)||r({type:"outside",target:n,modifier:"click",event:e})}))}),!1),document.addEventListener("dblclick",(e=>{let t=_(e.composedPath(),0,e.target);tn.forEach((([n,r])=>{n.contains(t)||n.contains(N(t,(e=>e instanceof ShadowRoot),"parentNode")?.host)||r({type:"outside",target:n,modifier:"dblclick",event:e})}))}),!1));const cn=/,|^(debounce:.+)|(debounce$)/,un=/,|^(throttle:.+)|(throttle$)/,dn="once",hn={esc:"escape"},pn=()=>{},fn=new WeakMap;function gn(e){let t=fn.get(e);return void 0===t&&(t=_(globalThis,e.name)!==e,fn.set(e,t)),t}function mn(e,t){let n,r=e??pn;if(n=R(t,(e=>cn.test(e)))){let e=n.split(":");r=A(r,parseInt(e[1])||100)}if(n=R(t,(e=>un.test(e)))){let e=n.split(":");r=L(r,parseInt(e[1])||100)}return t.includes(dn)&&(r=P(r)),r}function _n(e,t,n=!1){return function(e,t,n=!1){let r=t.includes("capture")||!1,s=t.includes("passive")||!1;return{handler:r=>{if(t.includes("prevent")&&r.preventDefault(),t.includes("stop")&&r.stopPropagation(),n||!t.includes("self")||r.target===r.currentTarget){if(r instanceof MouseEvent){if(t.includes("left")&&0!=r.button)return;if(t.includes("right")&&2!=r.button)return;if(t.includes("middle")&&1!=r.button)return}else if(r instanceof KeyboardEvent){let e=t.slice();if(T(e,(e=>"ctrl"==e))[0]&&!r.ctrlKey)return;if(T(e,(e=>"alt"==e))[0]&&!r.altKey)return;if(T(e,(e=>"shift"==e))[0]&&!r.shiftKey)return;if(T(e,(e=>"meta"==e))[0]&&!r.metaKey)return;let n=V(e,(e=>hn[e]||e));if(M(n)>0&&!n.includes(r.key.toLowerCase()))return}e(r)}},options:{capture:r,once:t.includes(dn)||!1,passive:s}}}(mn(e,t),t,n)}function vn(e,t,n,r){let s=_(e,"__c_emit_event_")??t._subComponentEventSn++;S(e,"__c_emit_event_",s);let o=t._subComponentEventMap.get(s);o||(o={},t._subComponentEventMap.set(s,o)),o[n]=r}const wn=new Set(["focus","blur","visibilitychange","wheel"]),yn=new Set(["mouseenter","mouseleave","pointerenter","pointerleave"]),En=new Set(["load","error","abort","play","pause","playing","waiting","canplay","canplaythrough","loadedmetadata","loadeddata","ended","timeupdate","volumechange","seeking","seeked","progress","stalled","suspend","emptied","ratechange","durationchange","loadstart","transitionstart","transitionrun","transitionend","transitioncancel","animationstart","animationend","animationcancel","animationiteration","scroll","slotchange"]),bn=new WeakMap;function Sn(e){let t=bn.get(e);return t||(t={bindList:[],docoEventMap:new Map,handlerMap:new WeakMap,releaseList:[],delegationKeySet:new Set,abortController:void 0,dispatch:t=>function(e,t){let n=e.renderRoot;if(!n)return;let r=t.type;const s=t.composedPath();let o=s.indexOf(n);if(o<0)return;let i=Sn(e);e:for(let e=0;e<=o;e++){const n=s[e];if(!(n instanceof HTMLElement))continue;let o=i.handlerMap.get(n)?.get(r);if(!x(o))for(let e=0;e<o.length;e++){let s=o[e];if((!s.parts.includes("self")||t.target===n)&&(s.parts.includes("once")&&(o.splice(e,1),e--,o.length<1&&i.handlerMap.get(n)?.delete(r)),s.handler(t),s.parts.includes("stop")))break e}}}(e,t)},bn.set(e,t)),t}function Nn(e){return Sn(e).bindList}function Tn(e){let t=Sn(e);t.abortController||(t.abortController=new AbortController)}function Mn(e){let t=Sn(e);const n=t.bindList;if(n.length>0){t.bindList=[];for(let t=0;t<n.length;t++){let r=n[t],s=r[0],o=r[1],i=r[2];if(!i)continue;if(r[3])continue;let a=o&&gn(o)?o.bind(e):o;Cn(e,s,a,i),r[3]=k}}let r=_e.get(e.constructor)??_e.get(st(e.constructor));r&&M(r)>0&&c(r,(({name:n,targetFn:r,fnName:s})=>{let o=n+"@"+s;if(t.docoEventMap.has(o))return;let i=r?r(e):e,a=_(e,s),l=a&&gn(a)?a.bind(e):a;Cn(e,n,l,i),t.docoEventMap.set(o,l)}))}function Cn(e,t,n,r){let{evName:s,parts:o}=function(e){let t=e.split(".");return{evName:t.shift(),parts:t}}(t);if(r instanceof Element){let t=ye[r.tagName?.toLowerCase()];if(t){let i=function(e,t){let n=e;for(;n&&n!==Vn;){let e=ve.get(n);if(e){if(e.has(t))return!0;for(let n of e)if(n.endsWith(":*")&&t.startsWith(n.slice(0,-1)))return!0}n=st(n)}return!1}(t,s);if(i)return void vn(r,e,s,mn(n,o))}}if(function(e){return Zt.includes(e)}(s)){let t=ln(s,r,mn(n,o),o,0,o.includes("once"));return void(t&&Sn(e).releaseList.push(t))}let i=function(e,t){if(!(t instanceof Element))return!1;let n=e.renderRoot;return!!n&&(t===n||n.contains(t))}(e,r)&&!En.has(s)&&!yn.has(s);if(i){let t=o.includes("capture")||wn.has(s);!function(e,t,n,r,s,o){if(!function(e,t,n){let r=e.renderRoot;if(!r)return!1;Tn(e);let s=Sn(e),o=(n?"c:":"b:")+t;return s.delegationKeySet.has(o)||(r.addEventListener(t,s.dispatch,{capture:n,signal:s.abortController.signal}),s.delegationKeySet.add(o)),!0}(e,t,o))return void kn(e,t,n,r,s);let{handler:i}=_n(n,r,!0),a=Sn(e),l=a.handlerMap.get(s);l||(l=new Map,a.handlerMap.set(s,l));let c=l.get(t);c||(c=[],l.set(t,c));c.push({handler:i,parts:r})}(e,s,n,o,r,t)}else kn(e,s,n,o,r)}function kn(e,t,n,r,s){Tn(e);let{handler:o,options:i}=_n(n,r);s.addEventListener(t,o,{capture:i.capture,once:i.once,passive:i.passive,signal:Sn(e).abortController.signal})}let xn=0;const Rn=new WeakMap,An={},Ln="slots",Pn={};class Vn extends HTMLElement{#e;#t={};__data_={};#n={};#r;__updateTree;__updateSubViewDeps;_cssUpdateInNextTick=!1;_cssVarOldValueMap;_watchUpdateSetInNextTick;_watchUpdateArgsInNextTick;_computedUpdateSetInNextTick;_subComponentEventSn=0;_subComponentEventMap=new Map;get[Symbol.toStringTag](){return this.constructor.name}get cid(){return this.#e}get attrs(){return this.#s}get props(){return this.#o}get renderRoot(){return this.#i?.deref()}get renderRoots(){return this.#a.flatMap((e=>e.deref()??[]))}get parentComponent(){return this.#l?.deref()}get wrapperComponent(){return this.#c?.deref()}get slots(){return An}get slotHooks(){return this.#u}get cssSheets(){return Be.get(this.constructor)?.get(gt.INNER)}get isMounted(){return this.#d}#s;#o;#i;#a;#l;#c;#h={};#u={};#p={};#d=!1;#f=!1;#g;#m;get cssVars(){return{}}__inited=!1;#_=!1;#v;__thisRef;__superComp;constructor(...e){super(),this.#e=xn++,this.__updateTree=[],this.__thisRef=new WeakRef(this),this.__superComp=st(this.constructor),this.#v=this.#w.bind(this),1===M(e)&&(this.#o={},o(this.#o,I(e))),Reflect.getOwnPropertyDescriptor(this.constructor.prototype,"slots")||Reflect.defineProperty(this.constructor.prototype,"slots",{get(){return Mt("slots",this)},set(e){Ct("slots",e,this)}});let t=Te.get(this.constructor)??Te.get(this.__superComp);t&&t.sort(((e,t)=>t.priority-e.priority)).forEach((e=>e.create(this))),this.#y=this.#E.bind(this)}insertStyleSheet(e){if(!this.#r)return null;let t;if(e instanceof Ye){if(t=Ke.get(e),!t){let n=e.getCssText();t=new CSSStyleSheet;try{t.replaceSync(n)}catch(e){}Ke.set(e,t)}}else if(e instanceof CSSStyleSheet){if(this.#r.adoptedStyleSheets.includes(e))return e;t=e}return t&&!this.#r.adoptedStyleSheets.includes(t)&&(this.#r.adoptedStyleSheets=[...this.#r.adoptedStyleSheets,t]),t}get rootComponent(){let e=this;for(;e.parentComponent;)e=e.parentComponent;return e}#y;connectedCallback(){let e=N(this.parentNode,(e=>e instanceof Vn||e.host instanceof Vn),"parentNode");this.#l=e?e instanceof Vn?new WeakRef(e):new WeakRef(e.host):void 0;let t=Qe.get(this);t&&(this.#c=new WeakRef(t),Qe.delete(this));let n=Be.get(this.constructor)?.get(gt.HOST);if(n){let e=this.#c?.deref()?.shadowRoot??this.#l?.deref()?.shadowRoot;e&&e.contains(this)||(e=this.ownerDocument),c(n,(t=>{e.adoptedStyleSheets.includes(t)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}))}this.setup()}disconnectedCallback(){}beforeDestroyed(){}destroyed(){}get isDestroyed(){return this.#b}#b=!1;destroy(){if(this.#b)return;this.#b=!0;let e=Te.get(this.constructor)??Te.get(this.__superComp);if(e?.forEach((e=>{e.destroy(this)})),this.beforeDestroyed(),function(e){let t=Sn(e);t.abortController?.abort(),t.abortController=void 0,c(t.releaseList,(e=>{"function"==typeof e&&e(!0)})),t.releaseList=[],t.docoEventMap.clear(),t.handlerMap=new WeakMap,t.delegationKeySet.clear(),t.bindList.length=0}(this),Ge.get(this)?.clear(),Ge.delete(this),this._watchUpdateArgsInNextTick?.clear(),this._watchUpdateSetInNextTick?.clear(),this._computedUpdateSetInNextTick?.clear(),this._computedUpdateSetInNextTick=null,this.__updateSubViewDeps?.clear(),this.#l){let e=this.#l.deref();e&&O(e.__updateTree,(t=>{t.__destroyed||t.node===this&&(t.destroy(e),T(t.parent?t.parent.children:e.__updateTree,(e=>e===t)))}))}this.#r&&at.clear(this.#r),c(this.__updateTree,(e=>e?.destroy(this))),c(this.#h,(e=>{Rn.delete(e),e.remove()})),c(this.#p,(e=>{c(e,(e=>e.remove()))})),c(this.__data_.slots,((e,t)=>{c(e,(e=>e.remove()))})),this.#S.clear(),this.#v=this.__thisRef=this.#p=this.#h=this.#S=this.#t=this.__data_.slots=null,this.remove(),this.#i=this.#a=this.#r=this.#n=this.#s=this.#o=this.#i=this.#a=this.#u=this.#y=this.__data_=this.__updateTree=this.#l=this._asyncDirectives=this.#c=null,this.#m=null,this.destroyed()}setup(){if(this.__inited)return;if(this.#_)return;this.#_=!0;const e=this.#N();this.#o={},o(this.#o,e),this.propsReady(e);for(const t in e){const n=e[t];this.__data_[t]=n}this.#T(),this.__data_.slots={},Reflect.defineProperty(this.__data_,"__isData",{enumerable:!1,value:!0});let t=this.__superComp;if(Re.get(this.constructor)??Re.get(t)){this._watchUpdateSetInNextTick=new Set,this._watchUpdateArgsInNextTick=new Map;let e=ke.get(this.constructor)??ke.get(t),n=Pe.get(this.constructor)??Pe.get(t);c(n,((t,n)=>{let r=_(this,n);t.forEach((e=>{e.call(this,r,void 0,n)})),e.has(n)&&e.set(n,!0)}))}let n=We.get(this.constructor);if(void 0===n&&(n=o({},Ee.get(this.constructor),Ee.get(t)),We.set(this.constructor,n)),n){this._computedUpdateSetInNextTick=new Set;let e=He.get(this.constructor);e?c(n,((e,t)=>{this[Ze][t]=e.call(this)})):(e=new Map,He.set(this.constructor,e),c(n,((t,n)=>{S(t,"key",n),It.start(this),this[Ze][n]=t.call(this),It.end(),It.popVarPathList().forEach((n=>{let r=e.get(n);r||(r=new Set,e.set(n,r)),r.add(t)}))})))}It.start(this);let r=this.render();It.end();let i,a=It.popVarPathList();Ce.has(this.constructor)||Ce.set(this.constructor,new Set(a)),null===r?(this.#a=[],this.#i=void 0):(this.#r=this.attachShadow({mode:"open"}),this.#r.adoptedStyleSheets=bt(this.constructor),i=function(e,t){let n,r=[];yr.has(t.constructor)?(n=yr.get(t.constructor),r=Sr(t,e)):(n=new ir(e,t,r),yr.set(t.constructor,n));let[s,o]=Cr(t,n,r);return t.__updateTree=o,s}(r,this),i&&M(i.children)>0&&(this.#a=D(i.children,(e=>e.nodeType===Node.ELEMENT_NODE)).map((e=>new WeakRef(e))),this.#i=this.#a[0])),this.__inited=!0,this.#M();let l=qe.get(this);l&&(this.#u=l,qe.delete(this)),c(this.#u,((e,t)=>{this.#C(t)}));const u=this;let d=Te.get(this.constructor)??Te.get(this.__superComp);if(d?.forEach((e=>{e.beforeMount(this,((e,t)=>(u.__data_[e]=t,u.__data_[e])))})),this.beforeMount(),this.isDestroyed)return;this.#d=!0,It.start(this);let h=this.cssVars;if(It.end(),!x(h)){this._cssVarOldValueMap={};let e=$e.get(this.constructor);e||(e=new Set(It.popVarPathList()),$e.set(this.constructor,e));let t="";c(h,((e,n)=>{let r=ut(this.constructor,n);(s(e)||W(e))&&(e="initial"),this._cssVarOldValueMap[r]=e,t+=";"+r+":"+e})),this.style.cssText+=t}i&&M(i.children)>0&&(this.#r.append(i),Xe.delete(this)),d&&d.forEach((e=>{e.mounted(this,((e,t)=>(u.__data_[e]=t,u.__data_[e])))})),this.#g&&this.#g.forEach((e=>zt.pushNext(e))),this.#f&&zt.pushNext(this.#y),Mn(this),this.mounted()}propsReady(e){}render(){return null}beforeMount(){}mounted(){}#w(e){let t=e.currentTarget,n="";c(this.#h,((e,r)=>{if(e===t)return n=r,!1})),this.__inited&&this.#k(t,n===he?"":n)}#k(e,t){this.#M();let n=_(this.#t[t],"props");n&&c(this.slots,((e,t)=>{e.filter((e=>e.nodeType===Node.ELEMENT_NODE)).forEach((e=>{e instanceof Vn?e.updateProps(n):c(n,((t,n)=>{if(e instanceof HTMLSlotElement){let r=Rn.get(e);if(r){let s=e.name||he,o=r.#t[s];o||(o=r.#t[s]={props:{}}),o.props||(o.props={}),o.props[n]=t,r.#k(e,s)}}else e.setAttribute(n,t)}))}))})),this.slotChange(e,t)}slotChange(e,t){}attributeChangedCallback(e,t,n){if(!this.__inited)return;if(Object.is(n,t))return;"undefined"===n&&(n=null);let r=ht(e),s=Se.get(this.constructor)??Se.get(this.__superComp);if(ot(_(s,r).type)){let e=!H(n)&&it(n);if(_(this,r)===e)return}this.#x(e,t,n)}shouldUpdate(e){return!0}updated(e){}_notify(e=void 0,t,n,r,s){let o=[],i=this,a="";for(let l=0;l<n.length;l++){const c=n[l];o.push(c),i=null==i?i:i[c];let u=i??e;a=0===l?c:a+"."+c,this.#n[a]={value:u,chain:a===Ln?[Ln]:o,oldValue:t,end:o.length===n.length,subNewValue:r,subOldValue:s}}this.isMounted?zt.pushNext(this.#y):this.#f=!0}requestUpdate(e,t,n,r,s){Bt(this,e,t,n,r,s)}#E(){if(M(this.#n)<1)return;if(!this.isMounted)return;const e=this.#n;if(this.#n={},!this.shouldUpdate(e))return;let t=Te.get(this.constructor)??Te.get(this.__superComp);t?.forEach((t=>{t.updated(this,e)})),this._watchUpdateSetInNextTick?.forEach((e=>{let{newValue:t,oldValue:n,chain:r,rootObjNew:s,rootObjOld:o,fullMatch:i}=this._watchUpdateArgsInNextTick.get(e),a=i?t:s,l=i?n:o;e.call(this,a,l,r,t,n)})),this._watchUpdateSetInNextTick?.clear(),this._watchUpdateArgsInNextTick?.clear();let n=0;for(;this._computedUpdateSetInNextTick?.size>0&&n<10;){n++;let t=Array.from(this._computedUpdateSetInNextTick);this._computedUpdateSetInNextTick.clear(),t.forEach((t=>{let n=_(t,"key"),r=this.__data_[n],s=t.call(this);(f(s)||s!==r)&&(this.__data_[n]=s,Kt(this,s,r,[n]),e[n]={value:s,chain:[n],oldValue:r,end:!0})}))}if(this._cssUpdateInNextTick){let e=this.cssVars;c(e,((e,t)=>{let n=ut(this.constructor,t);this._cssVarOldValueMap[n]!=e&&((s(e)||W(e))&&(e="initial"),this._cssVarOldValueMap[n]=e,this.style.setProperty(n,e+""))}))}let r,o=!1,i=Ce.get(this.constructor);if(c(e,((e,t)=>{if(!o&&i?.has(t)&&(o=!0),this.__updateSubViewDeps?.has(t)){let e=this.__updateSubViewDeps.get(t);e&&(r||(r=new Set),e.forEach((e=>{r.add(e)})))}})),this.#i?.deref()){if(o){let t=Sr(this,this.render()),n=this.#m;if(this.#m=t,xr(t,this,this.__updateTree,r,e,n),n)for(let e=0;e<n.length;e++){let t=n[e];null!==t&&"object"==typeof t&&(n[e]=void 0)}}r&&r.size>0&&r.forEach((t=>{!function(e,t,n,r){if(!e||e.__destroyed)return;let s=e.node;const[o,i,a,l]=e.value;let c,u=e.getSlotComponent(t);if(!n){let n=o(s,e.value[1],i,{renderComponent:t,slotComponent:u,varChain:l,updatedMap:r,pointType:_(ze.get(a),[0],Jn.TEXT)});if(!n)return;if(n[0]!==Yn.REFRESH)return;c=p(n[1])?Sr(t,n[1].call(t,e.value[1][0])):n[1]}if(!c)return;xr(c,t,e.children,void 0,r)}(t,this,void 0,e)}))}this.#S.forEach((e=>{this.#C(e)})),this.updated(e)}#N(){let e,t=Se.get(this.constructor)??Se.get(this.__superComp),n=this.attributes,s=this.tagName,a=Xe.get(this.wrapperComponent)?.get(this)??null;e=null==this.#o?a??Pn:null==a?this.#o:y(this.#o,a);let c={};for(let e=0,r=n.length;e<r;e++){let{name:r,value:s}=n[e];if(r[0]===ur||r[0]===dr||r[0]===hr||r===gr||"slot"===r)continue;let o=ht(r);t&&!t[o]&&(c[r]=s)}this.#s=this.#s?o(this.#s,c):c;let u={};if(!t)return u;let d=Object.keys(t),h=d.length;for(let o=0;o<h;o++){const a=d[o],c=i(a),h=this.hasAttribute(c);let p,g=t[a],m=b(e,a),v=_(this,a);if(!("_defaultValue"in g)&&(g._defaultValue=v,!g.type)){r(v)&&tt(s,"Prop '"+a+"' has neither propType nor defaultValue be used for type inference");let e=typeof v;l(v)&&(e="array");let t=me[e];g.type=t}if(m)p=W(e[a])?v:e[a];else{p=v;let e=n.getNamedItem(c)||n.getNamedItem(dr+c)||n.getNamedItem(c+dr);e&&(m=!0,p=e.value)}if(g.required&&!m){tt(s,"Prop '"+a+"' is required");break}p=this.#R(t,a,p,h),g.attribute&&$(p)&&!f(p)&&this.#A(g,a,p),this.__data_[a]=p,h&&(u[a]=p),delete this[a]}return u}#A(e,t,n){let r=i(t),s=U(n);ot(e.type)?(s=it(n),j(s)?s&&!this.hasAttribute(r)?this.toggleAttribute(r,!0):!s&&this.hasAttribute(r)&&this.toggleAttribute(r,!1):this.getAttribute(r)!==s&&this.setAttribute(r,s)):this.getAttribute(r)!==s&&this.setAttribute(r,s)}#L(e,t){let n=e;try{for(let r=0;r<t.length;r++){const s=t[r];n=s===Boolean?it(e):s===Number?Number(e):s===String?String(e):s===Object||s===Array?B(e):s===Date?new Date(e):new s(e)}}catch(t){tt(this.tagName,"Convert attribute error with "+e)}return n}#R(e,r,s,o){let i=e[r];if(!i)return s;let a=i.isValid,c=i.type,u=l(c)?c:[c],d=i.converter,h=s;if(!t(u,(e=>e===String))&&n(h)&&!H(h))try{h=d?d(h):this.#L(h,u)}catch(e){tt(this.tagName,`Convert attribute '${r}' error with `+h)}for(let e=0;e<u.length;e++){"Boolean"===u[e].name&&o&&(h=it(h))}if(W(h))return h;let p=typeof h,f=!$(h);for(let e=0;e<u.length;e++){const t=u[e];if(p===ft(t)||h instanceof t||Object.prototype.toString.call(h)===Object.prototype.toString.call(t.prototype)){f=!0;break}}return f||tt(this.tagName,`Invalid prop '${r}'. expected '${u.map((e=>e.name||e))}' but got '${p}'`),a&&(a.call(this,h,this.__data_)||tt(this.tagName,`Invalid prop '${r}'. IsValid() check failed`)),h}#T(){let e=be.get(this.constructor)??be.get(this.__superComp);e&&c(e,((t,n)=>{let r=e[n],s=_(this,n);if(r){let e=r.prop;s=e?K(this.__data_[e]):_(this,n)}this.__data_[n]=s,delete this[n]}))}updateProps(e,t=!1){let n=Se.get(this.constructor)??Se.get(this.__superComp);if(!n)return;if(!this.__inited)return void o(this.#o,e);let r=[];c(e,((s,o)=>{let i=ht(o),a=n[i];if(!a)return;s=this.#R(n,i,s);let l=this.__data_[i];if(!t){let e=De.get(this.constructor),t=e?.get(i);if(t){if(!t.call(this,s,l,[i],s,l))return!0}else if(f(s)){let e=Oe.get(this.constructor);if(e?.has(i)&&Object.is(l,s))return!0}else if(Object.is(l,s))return!0}a.attribute&&$(s)&&!f(s)&&r.push([a,i,s]),S(this.__data_,i,s),e[i]=s,Ft(this,s,l,[i])})),o(this.#o,e),r.forEach((([e,t,n])=>{this.#A(e,t,n)}))}_initProps(e,t){this.#o=y(this.#o||{},e),this.#s=y(this.#s||{},t),c(e,((e,t)=>{if(f(e)){let n=Wt.get(e);if(n){let e=this.wrapperComponent?be.get(this.wrapperComponent?.constructor):null,r=n[0];if(e&&e[r]){let n=Se.get(this.constructor);S(n,[t,"shallow"],e[r].shallow)}}}}))}_bindSlot(e,t,n){this.#h[t]||(this.#h[t]=e,Rn.set(e,this));if(Cn(this,"slotchange",this.#v,e),!x(n)){let e=this.#t[t];e||(e=this.#t[t]={}),e.props=n}}#S=new Set;_updateSlot(e,t,n){let r=this.#h[e],s=this.#u[e];if(!s&&!r)return;let o=this.#t[e];if(t&&(o.props||(o.props={}),o.props[t]=n),s)this.#S.add(e);else{let e=r.assignedElements({flatten:!0});for(let r=0;r<e.length;r++){e[r].setAttribute(t,n+"")}}}#M(){if(!this.#i)return;let e=F(this.#h);if(x(e))return;const t=u(this.childNodes,(e=>e.nodeType===Node.COMMENT_NODE||e.nodeType===Node.TEXT_NODE&&s(e.textContent)?[]:e instanceof HTMLSlotElement?e.assignedNodes({flatten:!0}):e));let n=z(t,(t=>{if(t.nodeType===Node.TEXT_NODE&&e.includes(he))return he;if(t instanceof Element){let n=t.getAttribute("slot")||he;if(e.includes(n))return n}}));if(x(n))return void(this.slots={});c(n,((e,t)=>{if(t){for(;e.length>0;){let t=e[0];if(!(t.nodeType===Node.TEXT_NODE&&s(t.textContent)||t instanceof HTMLSlotElement&&x(t.assignedNodes({flatten:!0}))))break;e.shift()}for(;e.length>0;){let t=G(e);if(!(t.nodeType===Node.TEXT_NODE&&s(t.textContent)||t instanceof HTMLSlotElement&&x(t.assignedNodes({flatten:!0}))))break;e.pop()}}}));let r={};c(n,((e,t)=>{x(e)||(r[t]=e)})),this.slots=r}#C(e){let t=this.#u[e];if(!t)return;let n=this.#t[e];if(!this.__data_.slots)return;if(!this.__data_.slots[e])return;this.renderAsync(t,_(n,"props"));const r=this._asyncDirectives.get(t);let s=r?.buildView(t(_(n,"props"))),o=X(v(s),(e=>e.nodeType===Node.COMMENT_NODE));if(o){let t=this.#p[e];if(!x(t))for(let e=0;e<t.length;e++){const n=t[e];n.parentNode?.removeChild(n)}this.#p[e]=o,this.append(...o),this.#S.clear()}}_asyncDirectives=new WeakMap;renderAsync(e,...t){}#x(e,t,n){if(!this.__inited)return;if(Qt(this.constructor).has(e)){let t=ht(e);if(H(n)){let e=Se.get(this.constructor)??Se.get(this.__superComp);e&&(n=e[t]._defaultValue)}this.updateProps({[t]:n})}}_regSubViewDeps(e,t){this.__updateSubViewDeps||(this.__updateSubViewDeps=new Map),e.forEach((e=>{let n=this.__updateSubViewDeps.get(e);n||(n=new Set,this.__updateSubViewDeps.set(e,n)),n.add(t)}))}_getPrivateData(){return this.__data_}emit(e,t={},n){if(n&&(t.event=n),t.target=this,b(this.#s,"emit-native"))this.dispatchEvent(new CustomEvent(e,{bubbles:!1,composed:!1,cancelable:!0,detail:t}));else{let n=_(this,"__c_emit_event_");if(!this.wrapperComponent)return;!function(e,t,n,r){let s=e._subComponentEventMap.get(t),o=_(s,n);p(o)&&o.call(e,r)}(this.wrapperComponent,n,e,t)}}nextTick(e){if(!this.isMounted)return this.#g||(this.#g=[]),void this.#g.push(e);zt.pushNext(e)}forceUpdate(){let e=Ce.get(this.constructor);e&&e.size>0?e.forEach((e=>{this.#n[e]={value:void 0,chain:void 0}})):this.#n.__force__={value:void 0,chain:void 0},this.#E()}}function In(e){requestAnimationFrame((()=>requestAnimationFrame(e)))}function On(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Dn(e,t){for(;e.length<t.length;)e=e.concat(e);let n=0;return t.forEach(((t,r)=>{n=Math.max(n,On(t)+On(e[r]??"0s"))})),n}function Wn(e,t,n){if(null!=t.duration)return void setTimeout(n,t.duration);const r=function(e){const t=getComputedStyle(e),n=e=>(t[e]||"").split(", "),r=n("transitionDelay"),s=n("transitionDuration"),o=Dn(r,s);if(o>0)return{endEvent:"transitionend",timeout:o,propCount:s.length};const i=n("animationDelay"),a=n("animationDuration"),l=Dn(i,a);return l>0?{endEvent:"animationend",timeout:l,propCount:a.length}:null}(e);if(!r)return void n();let s=0,o=!1;const i=()=>{o||(o=!0,clearTimeout(l),e.removeEventListener(r.endEvent,a),n())},a=t=>{t.target===e&&++s>=r.propCount&&i()},l=setTimeout(i,r.timeout+1);e.addEventListener(r.endEvent,a)}function Hn(e,t,n,r,s){if(!t.length)return s(),()=>{};const o=`${r.name}-${n}`,i=r.hooks??{},a="enter"===n?i["before-enter"]:i["before-leave"],l="enter"===n?i.enter:i.leave,u="enter"===n?i["after-enter"]:i["after-leave"],d="enter"===n?i["enter-cancelled"]:i["leave-cancelled"];let h=!1,p=t.length;const f=t=>{h||(t.classList.remove(`${o}-active`,`${o}-to`),u?.call(e,t),0==--p&&(h=!0,s()))};return c(t,(t=>a?.call(e,t))),c(t,(e=>{e.classList.add(`${o}-from`,`${o}-active`)})),In((()=>{h||(c(t,(e=>{e.classList.remove(`${o}-from`),e.classList.add(`${o}-to`)})),c(t,(t=>{l?l.call(e,t,(()=>f(t))):Wn(t,r,(()=>f(t)))})))})),function(){h||(h=!0,c(t,(t=>{t.classList.remove(`${o}-from`,`${o}-active`,`${o}-to`),d?.call(e,t)})))}}function $n(e,t){e&&(Array.isArray(e)?c(e,(e=>t.push(e))):c(e,(e=>{Array.isArray(e)?c(e,(e=>t.push(e))):t.push(e)})))}function Un(e,t){if(!e)return;if(!t)return{name:e};const{onBeforeEnter:n,onEnter:r,onAfterEnter:s,onEnterCancelled:o,onBeforeLeave:i,onLeave:a,onAfterLeave:l,onLeaveCancelled:c,...u}=t,d={onBeforeEnter:n,onEnter:r,onAfterEnter:s,onEnterCancelled:o,onBeforeLeave:i,onLeave:a,onAfterLeave:l,onLeaveCancelled:c};return{name:e,mode:u.mode,appear:u.appear,duration:u.duration,hooks:n||r||s||o||i||a||l||c?d:void 0}}function jn(e){return e.__transition??e.__resolvedTransition??e.metaInfo?.transitionCfg}function Bn(e,t,n){const r=e.metaInfo?.transitionCfg;if(!r?.hooks)return;const s=e.varIndex;null==s||s<0||(e.__resolvedTransition={...r,hooks:r?.hooks})}function Kn(e){const t=[];return $n(e,t),t.filter((e=>e instanceof Element))}function Fn(e,t,n){if(!t.length)return;const r=`${n.name}-enter`;c(t,(t=>n.hooks?.onBeforeEnter?.call(e,t))),c(t,(e=>e.classList.add(`${r}-from`,`${r}-active`)))}function zn(e,t,n,r){if(!t.length)return r?.(),()=>{};const s=`${n.name}-enter`,o=n.hooks;let i=!1,a=t.length;const l=t=>{i||(t.classList.remove(`${s}-active`,`${s}-to`),o?.onAfterEnter?.call(e,t),0==--a&&(i=!0,r?.()))};return In((()=>{i||(c(t,(e=>{e.classList.remove(`${s}-from`),e.classList.add(`${s}-to`)})),c(t,(t=>{o?.onEnter?o.onEnter.call(e,t,(()=>l(t))):Wn(t,n,(()=>l(t)))})))})),function(){i||(i=!0,c(t,(t=>{t.classList.remove(`${s}-from`,`${s}-active`,`${s}-to`),o?.onEnterCancelled?.call(e,t)})))}}const Gn=new WeakMap;function Xn(e,t,n){c(e,(e=>{e.remove(),e instanceof Vn&&e.destroy()})),c(t,(e=>e.destroy(n)))}function qn(e){const t=Gn.get(e);t&&(Gn.delete(e),t.cancel(),t.commit())}function Qn(e,t,n,r,s,o){const i=t.filter((e=>e instanceof Element));if(!s||0===i.length)return Xn(t,n,r),void o?.onAfter?.();!1!==o?.forceFinish&&qn(e),c(i,(e=>{e.classList.remove(`${s.name}-enter-from`,`${s.name}-enter-active`,`${s.name}-enter-to`)}));let a=!1;const l={cancel:()=>{},commit:()=>{a||(a=!0,Gn.get(e)===l&&Gn.delete(e),Xn(t,n,r))}};l.cancel=Hn(r,i,"leave",s,(()=>{l.commit(),o?.onAfter?.()})),Gn.set(e,l)}function Zn(e,t,n,r){const s=`${r.name}-move`,o=[],i=t=>{if(!(t instanceof Element))return;if(n.has(t))return;const r=e.get(t);if(!r)return;const i=t.getBoundingClientRect(),a=r.left-i.left,l=r.top-i.top;if(!a&&!l)return;const c=t.style;o.push({el:t,prev:c.transform}),t.classList.add(s),c.transitionDuration="0s",c.transform=`translate(${a}px, ${l}px)`};Array.isArray(t)?c(t,i):c(t,(e=>{Array.isArray(e)?c(e,i):i(e)})),o.length&&(document.body.offsetWidth,In((()=>{c(o,(({el:e})=>{e.style.removeProperty("transition-duration"),e.style.removeProperty("transform"),Wn(e,r,(()=>e.classList.remove(s)))}))})))}var Jn,Yn,er;function tr(e,t,n,r,s,o,i,a,u,d){let h,f=ze.get(e),g=f?f[0]:"";if(g===Jn.TEXT||g===Jn.SLOT?(It.start(o),h=s(t,n,r,{renderComponent:o,slotComponent:i,varChain:a,updatedMap:d,pointType:g}),It.end(o,u)):h=s(t,n,r,{renderComponent:o,slotComponent:i,varChain:a,updatedMap:d,pointType:g}),!h)return;let[w,y,E,b,N,T]=h;if(h.length>6&&(u.__transition=h[6]),w===Yn.NONE)return;if(w===Yn.REFRESH){let e=h[1],t=p(e)?Sr(o,e.call(o,n[0])):e;return t&&xr(t,o,u.children,void 0,d),!0}let M=T;l(T)||(M=V(T,((e,t)=>e)));let C=u.__subViewId;void 0===C&&(C=u.__subViewId=_(t,"__anchor__"));let k=u.__parentViewsIdMap;void 0===k&&(k=u.__parentViewsIdMap={},c(F(t),(e=>{"__anchor__"!==e&&m(e,"__c-")&&(k[e]=_(t,[e]))})));let R=u.subViewRootNodes,A=u.children;if(w===Yn.REMOVE){let e=jn(u),t=[];c(R,(e=>{l(e)?c(e,(e=>t.push(e))):t.push(e)}));let n=A?v(A):[];u.subViewRootNodes=l(R)?[]:{},u.children=[],Qn(u,t,n,o,e)}else if(w===Yn.REPLACE){let e=jn(u),n=[];c(R,(e=>n.push(e)));let r=A?v(A):[];u.children=[],u.subViewRootNodes=l(R)?[]:{};let[,s,i]=h;u.__transitionSn=(u.__transitionSn??0)+1;let a=u.__transitionSn;if("in-out"===e?.mode)kr(t,u,s,i,o,void 0,void 0,e,(()=>{u.__transitionSn===a?Qn(u,n,r,o,e):Qn(u,n,r,o,void 0)}));else{const l=()=>kr(t,u,s,i,o,void 0,void 0,e);"out-in"===e?.mode?Qn(u,n,r,o,e,{onAfter:()=>{u.__transitionSn===a&&l()}}):(Qn(u,n,r,o,e),l())}}else if(w===Yn.UPDATE){let e=jn(u);if(x(R))return void kr(t,u,N,y,o,T,((e,t,n)=>E[n]),e);let n={},r={},s=t.parentElement.childNodes,i="__c-"+C;for(let e=0;e<s.length;e++){let t=s[e],r=t[i];if(null!=r){let e=n[r];e||(e=n[r]=[]),e.push(t)}}u.children?.forEach((e=>{r[e.key]?r[e.key].push(e):r[e.key]=[e]}));let a=b,l=E,h=new Map,p=new Map;a.forEach(((e,t)=>{h.set(e,t)})),l.forEach(((e,t)=>{p.set(e,t)}));const f=new Uint8Array(a.length),g=[];for(let e=0;e<l.length;e++){const t=h.get(l[e]);void 0!==t&&(f[t]=1,g.push(l[e]))}const m=[];for(let e=0;e<a.length;e++)f[e]||m.push(a[e]);let _;e&&(_=new Map,c(n,(e=>{c(e,(e=>{e instanceof Element&&_.set(e,e.getBoundingClientRect())}))})));let w,L=[],P=[],V=!1;if(!x(l)){let e=-1,t=[],r=[],s=0,o=0;for(;o<l.length;o++){const i=l[o];let a=h.get(i)??-1;if(a<0){let e=l[o-1];n[i]=[],L.push({refKey:e,newKey:i}),s++}else if(a>-1&&a!==o-s){if(e<0||1===Math.abs(e-a)){let e=G(t),r=0===o?er.AFTER_BEGIN:e?e.newKey:l[o-1],s=!1;0!==o&&x(n[r])&&(s=!0),t.push({newKey:i,refKey:r,refNew:s})}else{r.push({moveGroup:t,moveIndex:o+t.length});let e=l[o-1],s=!1;x(n[e])&&(s=!0),t=[],t.push({newKey:i,refKey:e,refNew:s})}e=a}}if(t.length>0&&r.push({moveGroup:t,moveIndex:o+t.length}),r.length>0){V=!0;let e=r.sort(((e,t)=>e.moveGroup.length-t.moveGroup.length));if(e.length<2){let{moveGroup:t}=e[0];if(t.length>1){let e=G(t).refKey;t[t.length-2].newKey===e&&(t=q(t))}nr(t,n,b)}else e.forEach((({moveGroup:e})=>{e[0].refNew?P.push(e):nr(e,n,b)}))}}let O=[];L.length>0&&(L.forEach((e=>{let t=p.get(e.newKey)??-1,r=M[t],s=Sr(o,N.call(o,r,e.newKey,t)),[i,a]=Cr(o,y,s);e.fragment=i,c(a,(t=>{t.key=e.newKey,u.children?.push(t)}));let l=v(i.childNodes),d=n[e.newKey],h=e.newKey+"";c(l,(e=>{d.push(e),S(e,"__c-"+C,h),c(k,((t,n)=>S(e,n,t))),e instanceof Element&&O.push(e)}))})),e&&O.length>0&&Fn(o,O,e),Mn(o),w=function(e){let t,n=[];return e.forEach((e=>{let r=G(n);r&&t===e.refKey?(r.group||(r.group=[r.fragment]),r.group.push(e.fragment)):n.push(e),t=e.newKey})),n}(L),w.forEach(((e,r)=>{let s=e.fragment,o=n[e.refKey??b[0]],i=I(o),a=G(o);if(e.group){let t=document.createDocumentFragment();t.append(...e.group),s=t}i===t?i.before(s):e.refKey?"string"==typeof i||a.after(s):i.before(s)}))),c(P,(e=>{nr(e,n,b)}));let D=e?new Set:void 0,W=[],H=[];if(m.forEach((t=>{let s=n[t]||[],o=r[t]||[];e?(c(s,(e=>{delete e["__c-"+C]})),c(o,(e=>{let t=A.indexOf(e);t>-1&&A.splice(t,1)})),c(s,(e=>{W.push(e),e instanceof Element&&D.add(e)})),c(o,(e=>H.push(e)))):(c(s,(e=>{e.parentNode?.removeChild(e)})),c(o,(e=>{e.destroy()})))})),W.length>0&&Qn(u,W,H,o,e,{forceFinish:!1}),e&&_&&(V||m.length>0||w)&&Zn(_,n,D,e),e&&O.length>0&&zn(o,O,e),V||m.length>0||w){const e=z(A,(e=>e.key));let t=[],n=0;l.forEach((r=>{e[r]&&e[r].forEach((e=>{e.varIndex=n++,t.push(e)}))})),Q(A,t).forEach((e=>e.destroy(o))),u.children=t}if(V||m.length>0||w){let e={};c(M,((t,r)=>{let s=E[r],o=n[s];e[s]=o})),u.subViewRootNodes=e}if(g.length>0){let e=[];c(T,((t,n,r,s)=>{let i=t,a=Sr(o,N.call(o,i,n,s));for(let t=0;t<a.length;t++)e.push(a[t])})),xr(e,o,u.children,void 0,d)}}return!0}function nr(e,t,n){e.forEach((({refKey:e,newKey:r})=>{let s=t[r];if(e===er.AFTER_BEGIN){let e=t[n[0]];I(e).before(...s)}else if(t[e]){let n=t[e],r=G(n);r?.after(...s)}}))}function rr(e,t){return ze.set(e,t),(...t)=>[e(...t),t,e,It.popDirectiveQ()]}function sr(e,t,n){ze.get(e)}!function(e){e.ATTR="attr",e.PROP="prop",e.TEXT="text",e.SLOT="slot",e.TAG="tag"}(Jn||(Jn={})),function(e){e.NONE="NONE",e.REFRESH="REFRESH",e.REMOVE="REMOVE",e.REPLACE="REPLACE",e.UPDATE="UPDATE",e.INIT="INIT"}(Yn||(Yn={})),function(e){e.AFTER_BEGIN="afterbegin"}(er||(er={}));const or=new RegExp(`([a-z0-9"'${Je}])\\s*>\\s*<`,"img");class ir{updatePointMetas;fragment;emptyEvents;upmMap;slotNodeMap;skipVarIndexSet;constructor(e,t,n){let[r,u]=this.parseTemplate(e);n&&o(n,u),this.updatePointMetas=[],this.emptyEvents={},this.skipVarIndexSet=new Set,this.fragment=function(e,t,n,r,o,u){const d=document.createElement("template");d.innerHTML=t;const h=new Map;t.includes("<transition")&&(!function(e,t,n,r){const s=e.querySelectorAll("transition");for(let e=0;e<s.length;e++){const o=s[e],i=Tr(o,n,r);i&&v(o.childNodes).forEach((e=>{e.nodeType===Node.TEXT_NODE&&(e.nodeValue||"").includes(Je)&&t.set(e,i)}));const a=o.parentNode;a&&v(o.childNodes).forEach((e=>a.insertBefore(e,o))),o.remove()}}(d.content,h,n,u),n=Y(n));const f=document.createNodeIterator(d.content,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT);let g,m,_=0,w=-1,y=-1;for(;g=f.nextNode();)if(w++,m&&!m.contains(g)&&(m=void 0,y=-1),g instanceof HTMLElement||g instanceof SVGElement){lt(g)&&(m=g,y=w);let t={};const c=g.attributes,u=[];for(let d=0;d<c.length;d++){let h=c[d].name,f=c[d].value;if(h!==wr)if(mr.test(h)){let t=n[_];if(l(t)&&p(t[0])){let[,,n,s]=t;sr(n,Jn.TAG,r.tagName);let o=new cr(_);o.isDirective=!0,o.directiveType=Jn.TAG,o.nodeSn=w,o.directiveVarChain=s,m&&(o.slotNodeSn=y),e.push(o),_++}u.push(h)}else if(h[0]!==ur)if(h!==gr)if(G(h)!==dr){if(f.includes(Je)){let t=new cr(_);if(t.attrName=h.replace(/\.|\?|@/,""),t.nodeSn=w,m&&(t.slotNodeSn=y),h[0]===dr||h[0]===hr||h[0]===pr){if(h[0]===hr)t.isToggleProp=!0,t.attrName=h.substring(1);else if(h[0]===pr){t.isRefAttr=!0;let e=h.substring(1);const[n,r]=e.split(fr);let s=n;switch(r){case"camel":s=a(s);break;case"kebab":s=i(s);break;case"snake":s=ee(s)}t.attrName=s}else{let e=ye[g.tagName.toLowerCase()];Se.get(e);{let e=a(h.substring(1));t.isProp=!0,t.attrName=e}}u.push(h)}else t.attrTmpl=f,t.isPureTmpl=f===Je+_;e.push(t),_++}}else{t[h.substring(0,h.length-1)]=f,u.push(h);let e=new cr(_);e.attrName=h.substring(0,h.length-1),e.nodeSn=w,e.isPropPerfix=!0}else{if(mr.test(f)){n[_];let t=new cr(_);t.isRef=!0,t.nodeSn=w,e.push(t),_++}u.push(h)}else{let t=h.substring(1);if(mr.test(f)){let r=new cr(_);r.isEvent=!0,r.attrName=t,r.nodeSn=w,e.push(r),n[_],_++}else if(s(f)){let e=o[w];e||(e=o[w]=[]),e.push(t)}u.push(h)}}for(let e=0;e<u.length;e++)g.removeAttribute(u[e])}else{let t=U(g.nodeValue).split(mr);if(t.length<2)continue;c(te(t.length-1),(o=>{let i=U(t[o]);if(!s(i)){let e=document.createTextNode(i);g.parentNode.insertBefore(e,g),w++}let a=document.createTextNode("");g.parentNode.insertBefore(a,g);let c=new cr(_);c.isText=!0,c.nodeSn=w,e.push(c);let u=n[_];if(l(u)&&p(u[0])){let e=m?Jn.SLOT:Jn.TEXT;c.isDirective=!0,c.directiveType=e,m&&(c.slotNodeSn=y);const t=h.get(g);t&&(c.transitionCfg=t);let[,,n]=u;sr(n,0,r.tagName),u=void 0}_++,w++})),w--;let o=U(G(t));if(s(o)){let e=g.previousSibling;g.parentNode.removeChild(g),g=e}else g.nodeValue=o,w++}return d.content}(this.updatePointMetas,r,u,t,this.emptyEvents,this.skipVarIndexSet),this.upmMap={},this.slotNodeMap={},this.updatePointMetas.forEach(((e,t)=>{this.upmMap[e.nodeSn]||(this.upmMap[e.nodeSn]=[]),this.upmMap[e.nodeSn].push(e),e.slotNodeSn>-1&&(this.slotNodeMap[e.slotNodeSn]=null)}))}parseTemplate(e){let t="",n=g(e.vars),r=e.strings.length-1,s=e.vars.length-1,o=0;for(let i=0;i<=r;i++){const r=e.strings[i];let a=o<n.length?n[o]:"";if(a instanceof ar){let[e,t]=this.parseTemplate(a);a=e,n.splice(o,1,...t),o+=t.length-1}else a=i>s?"":Je+o;o++,t=t+r+a}return t=t.replace(or,"$1><").trim(),t=br(t),[t,n]}}class ar{strings;vars;constructor(e,t){this.strings=e,this.vars=t}getKey(){let e=this.vars,t="";return c(this.strings,((n,r)=>{if(pe.test(n))return t=Z(e[r]),!1})),t}getKeys(){let e=this.vars,t=[];for(let n=0;n<this.strings.length;n++){const r=this.strings[n];if(pe.test(r)){let r=Z(e[n]);t.push(r)}}return x(t)&&e.forEach((e=>{if(e instanceof ar){let n=e.getKey();t.push(n)}})),t}append(e){this.strings=g(this.strings);let t=G(this.strings);return e.strings.forEach(((e,n)=>{0!=n?this.strings.push(e):this.strings[this.strings.length-1]=t+e})),this.vars=g(this.vars,e.vars),this}insert(e,t){this.strings=g(this.strings);let n=t.strings[0];return this.strings[e]+=n,this.strings.splice(e+1,0,...t.strings.slice(1)),this.vars.splice(e,0,...t.vars),this}getHTML(e){let t=[],n=new ir(this,e,t),[r,s]=Cr(e,n,t);return J(r.childNodes,((e,t)=>e+(t.nodeType==Node.TEXT_NODE?t.nodeValue:t.outerHTML??"")),"")}destroy(){this.strings=this.vars=null}}class lr{metaInfo;key;varIndex;value;node;subViewRootNodes;__destroyed=!1;children;parent;__slotCompResolved=!1;__slotComp=null;__subViewId;__parentViewsIdMap;__transition;__resolvedTransition;__transitionSn;constructor(e){this.varIndex=e}getSlotComponent(e){if(!this.__slotCompResolved&&(this.__slotCompResolved=!0,this.node)){let t=N(this.node,(e=>e.host&&e.host instanceof Vn),"parentNode");t&&t.host!==e&&(this.__slotComp=t.host)}return this.__slotComp}static createFrom(e){let t=new lr(e.varIndex);return t.metaInfo=e,t}destroy(e){if(this.__destroyed)return;this.__destroyed=!0;let t=this.node,n=this.children;if(this.node=this.value=this.children=this.parent=this.metaInfo=null,this.__slotComp=null,this.__parentViewsIdMap=void 0,this.__subViewId=void 0,!t)return;let r=n;r?.forEach(((t,n)=>{t.destroy(e)})),t instanceof Vn&&t.destroy(),e&&t instanceof Element&&at.clear(t),t?.remove()}insert(e){e.parent=this,this.children||(this.children=[]),this.children.push(e)}}class cr{varIndex;attrName;attrTmpl;isPureTmpl=!1;isText=!1;isDirective=!1;directiveType;directiveVarChain;isProp=!1;isPropPerfix=!1;isToggleProp=!1;isPlaceholder=!1;isEvent=!1;isRef=!1;isKey=!1;isRefAttr=!1;isComponent=!1;isSlot=!1;nodeSn=-1;slotNodeSn=-1;transitionCfg;constructor(e){this.varIndex=e}}const ur="@",dr=".",hr="?",pr="*",fr=":",gr="ref",mr=new RegExp(`${Je}\\d+`),_r=/(<\/?)\s*([A-Z][A-Za-z0-9]*)([\s>])/gm,vr=/\s+([\.?@*])?((?:[a-zA-Z]*[A-Z][^\s<>="']+))(?=[\s=>])/gm,wr="slot-props",yr=new Map;let Er=0;function br(e){return n(e)?e=(e=e.replace(vr,((e,t,n)=>` ${t??""}${i(n)}`))).replace(_r,((e,t,n,r)=>t+we[n]+r)):e+""}function Sr(e,t){const n=[],r=[t],s=yr.get(e.constructor)?.skipVarIndexSet;for(;r.length;){const e=r.pop(),t=e.strings.length-1;for(let o=0;o<t;o++){if(s?.has(o))continue;const t=e.vars[o];t instanceof ar?r.push(t):n.push(t??"")}}return n}const Nr=new RegExp(`${Je}(\\d+)`);function Tr(e,t,n){let r,s,o,i,a;return c(e.attributes,(e=>{let l=e.nodeValue;if(mr.test(l??"")){const r=Nr.exec(e.value.trim());let s=parseInt(r[1]);l=t[s],t[s]=null,n.add(s)}let c=e.nodeName;if(c[0]===ur)return a||(a={}),void(a[c.substring(1)]=l);switch(c){case"name":r=l;break;case"mode":s=l;break;case"appear":o="true"===l||""===l;break;case"duration":if(l){const e=parseFloat(l);!isNaN(e)&&e>=0&&(i=e)}}})),r?{name:r,mode:s,appear:o,duration:i,hooks:a}:void 0}function Mr(e,t){let n=e.childNodes;for(let e=0,r=n.length;e<r;e++){let r=n[e],s=r.nodeType;s===Node.ELEMENT_NODE?(t.push(r),Mr(r,t)):s===Node.TEXT_NODE&&t.push(r)}}function Cr(e,t,n){const{fragment:r,updatePointMetas:s,emptyEvents:o,upmMap:i,slotNodeMap:a}=t;let l,c=r.cloneNode(!0),u=[];t.skipVarIndexSet?.size&&(n=n.filter(((e,n)=>!t.skipVarIndexSet?.has(n))));let d=[],h=[],p=Nn(e);const f=[];Mr(c,f);let g=-1,m=0;for(let t=0;t<f.length;t++){l=f[t],g++,null===a[g]&&(a[g]=l);let r,s=o[g];s&&s.forEach((e=>{p.push([e,k,l])}));const c=i[g];c&&c.forEach((e=>{let t=n[m++],s=lr.createFrom(e);if(s.node=l,s.value=t,e.isProp||e.isPropPerfix)(r??(r={}))[e.attrName]=t;else if(e.isRef)t.__setRef(new WeakRef(l));else if(e.isEvent)p.push([e.attrName,t,l]);else if(e.isToggleProp)s.value=!!t,l.toggleAttribute(e.attrName,s.value);else if(e.isRefAttr)l.setAttribute(e.attrName,t);else if(e.isText)if(e.isDirective){let n=e.attrName,r=a[e.slotNodeSn],[o,i,,c]=t;d.push([l,n,r,o,i,c,s])}else e.isPlaceholder||(l.textContent=t);else if(e.isDirective){let n=a[e.slotNodeSn],[r,s,,o]=t,i=e.attrName;x(o)&&M(e.directiveVarChain)>0&&(o=e.directiveVarChain),h.push([l,i,n,r,s,o,e.directiveType])}else l.setAttribute(e.attrName,e.attrTmpl.replace(mr,t));u.push(s)})),l instanceof HTMLSlotElement?e._bindSlot(l,l.name||"default",r):l instanceof HTMLElement&&lt(l)&&(Qe.set(l,e),r&&ct(e,l,r))}return d.forEach((([t,n,r,s,o,i,a])=>{t.__anchor__=Er++,It.start(e);let l=s(t,o,void 0,{renderComponent:e,slotComponent:r,varChain:i,attrName:n,pointType:a.directiveType});if(It.end(e,a),l&&l.length>6&&(a.__transition=l[6]),l&&l.length>1&&l[1]&&l[2]){let[,n,r,s,o]=l;Bn(a);const i=jn(a);kr(t,a,n,r,e,s,o,i?.appear?i:void 0)}})),h.forEach((([t,n,r,s,o,i,a])=>{s(t,o,void 0,{renderComponent:e,slotComponent:r,varChain:i,attrName:n,pointType:a})})),[c,u]}function kr(e,t,n,r,s,o,i,a,l){let u=[],d=i?{}:void 0;o=o??[0];let h=i?document.createDocumentFragment():void 0,p=_(e,"__anchor__");c(o,((e,o,a,l)=>{It.start(s);let c=Sr(s,n.call(s,e,o,l));It.end(s);let[f,g]=Cr(s,r,c),m=v(f.childNodes);if(i){let t=i.call(s,e,o,l)+"";m.forEach((e=>{e["__c-"+p]=t})),d[t]=m;for(let e=0;e<g.length;e++)g[e].key=t,u.push(g[e]);h.append(f)}else h=f,t.subViewRootNodes=m,g.forEach((e=>{t.insert(e)}))})),d&&(t.subViewRootNodes=d,u.forEach(((e,n)=>{e.varIndex=n,t.insert(e)}))),(h?h.childNodes.length:0)>0&&(a&&Fn(s,Kn(t.subViewRootNodes),a),Mn(s),e.parentNode.insertBefore(h,e)),a?zn(s,Kn(t.subViewRootNodes),a,l):l?.()}function xr(e,t,n,r,o,i){if(s(e))return;if(!n)return;let a;if(i&&i.length===e.length){a=new Uint8Array(e.length);for(let t=0;t<e.length;t++){const n=e[t];n===i[t]&&"object"!=typeof n&&(a[t]=1)}}for(let s=0;s<n.length;s++){const i=n[s];let c=i.varIndex;if(c<0)continue;let u=i.metaInfo;if(u.isPlaceholder||u.isPropPerfix||u.isRef||u.isEvent||u.isRefAttr||u.isKey)continue;if(i.__destroyed)continue;if(a&&a[c])continue;let d,h=i.value,p=i.node;if(!p)continue;if(d=e[c],!f(h)&&h===d)continue;let g=p;if(u.isDirective){let[e,n,s,a]=i.value;if(!l(d))continue;let c=i.getSlotComponent(t),[,u]=d;tr(s,p,u,n,e,t,c,a,i,o)&&r?.delete(i)}else if(u.isToggleProp){if(!!d===h)continue;g.toggleAttribute(u.attrName,!!d),g instanceof Vn&&g.updateProps({[u.attrName]:!!d})}else if(u.isProp){if(!f(d)&&d===h)continue;p instanceof Vn?p.updateProps({[u.attrName]:d}):p instanceof HTMLSlotElement&&t._updateSlot(p.getAttribute("name")||"default",u.attrName,d)}else if(u.attrName)h!=d&&("value"===u.attrName&&p instanceof HTMLInputElement?p.value=d:u.isPureTmpl?p.setAttribute(u.attrName,d+""):p.setAttribute(u.attrName,ne(u.attrTmpl,mr,d+"")));else if(u.isText){let e=Z(d??"");e!==p.textContent&&(p.textContent=e)}i.value=d}}function Rr(e,...t){return new ar(n(e)?[e]:e,t)}function Ar(e,...t){if(Ue.has(e))return Ue.get(e);let n=new Ye(e,t),r=e.join("");return x(r)||Ue.set(e,n),n}class Lr{__ref;get current(){return this.__ref?.deref()}__setRef(e){this.__ref=e}}function Pr(){return new Lr}var Vr;!function(e){e.CLASS="class",e.FIELD="field",e.METHOD="method"}(Vr||(Vr={}));class Ir{static get priority(){return 0}created(e,...t){}beforeMount(e,t,...n){}mounted(e,t,...n){}updated(e,t){}beforeDestroy(e,...t){}}class Or{metadata;decorator;key;priority=0;constructor(e,t,n){this.metadata=t,this.decorator=new n(...e),this.priority=_(n,"priority",0)}dispose(){this.metadata=null,this.decorator=null}create(e){let t,n=this.decorator.targets,s=this.metadata[1];f(s)&&$(_(s,"configurable"))?t=Vr.METHOD:r(this.metadata[1])&&(t=Vr.FIELD),!x(n)&&t&&n.includes(t)?this.decorator.created(e,...this.metadata):et(`Decorator '${this.decorator.constructor.name}' is out of targets, expect '${n.join(",")}' bug got '${t}'`)}beforeMount(e,t){this.decorator.beforeMount(e,t,...this.metadata)}mounted(e,t){this.decorator.mounted(e,t,...this.metadata)}updated(e,t){this.decorator.updated(e,t)}destroy(e){this.decorator.beforeDestroy(e,...this.metadata)}}function Dr(e){return(...t)=>(...n)=>{let r=n[0].constructor,s=Te.get(r);if(!Te.has(r)){let e=Object.getPrototypeOf(r);s=e?g(Te.get(e)??[]):[],Te.set(r,s)}let o=new Or(t,n.splice(1),e);return s?.push(o),s?.sort(((e,t)=>t.priority-e.priority)),o}}function Wr(e){return(...t)=>{if(!t||t.length<1)return;let n=t[0].constructor,r=Te.get(n);if(!Te.has(n)){let e=Object.getPrototypeOf(n);r=e?g(Te.get(e)??[]):[],Te.set(n,r)}let s=new Or([],t.splice(1),e);return r?.push(s),r?.sort(((e,t)=>t.priority-e.priority)),s}}function Hr(e,t,n){return Ee.has(e.constructor)||Ee.set(e.constructor,{}),Ee.get(e.constructor)[t]=n.get,delete e[t],Reflect.defineProperty(e,t,{get(){return It.isCollection()&&It.getVarPathList().push(t),Reflect.get(this[Ze],t)}}),Reflect.getOwnPropertyDescriptor(e,t)}const $r=Dr(class extends Ir{static get priority(){return Number.MAX_VALUE}created(e,t,...n){let r=_(e,t);S(e,t,A(r,this.wait,this.immediate)),S(e,t+"_$__",r)}beforeDestroy(e,t){S(e,t,null),S(e,t+"_$__",null)}get targets(){return[Vr.METHOD]}wait;immediate;constructor(e,t=!1){super(),this.wait=e,this.immediate=t}});function Ur(...e){return t=>{let n=ve.get(t);n||(n=new Set,ve.set(t,n)),e.forEach((e=>n.add(e)))}}function jr(e,t){return(n,r,s)=>{if(!_e.has(n.constructor)){let e=[],t=n.constructor;for(;(t=st(t))!==Vn;)e=g(e,_e.get(t)??[]);_e.set(n.constructor,e)}_e.get(n.constructor)?.push({name:e,targetFn:t,fnName:r})}}const Br=Dr(class extends Ir{static get priority(){return Number.MAX_VALUE}created(e,t,n,...r){let s=re(_(e,n),e);S(e,n,P(s)),S(e,n+"_$__",s)}beforeDestroy(e,t){S(e,t,null),S(e,t+"_$__",null)}get targets(){return[Vr.METHOD]}});var Kr;!function(e){e.ONCE="once"}(Kr||(Kr={}));const Fr=new WeakMap;class zr extends Ir{static get priority(){return Number.MAX_VALUE}get targets(){return[Vr.FIELD]}selector;cache;constructor(e,t){super(),this.selector=e,this.cache=t}static getKey(e){return e}getter(e){let t=e?.shadowRoot?.querySelector(this.selector),n=Fr.get(e);n||(n=new Map,Fr.set(e,n)),n.set(this.selector,t)}mounted(e,t,n,...r){const s=this;let o=new WeakRef(e);Reflect.defineProperty(e,n,{configurable:!0,get(){let e=o.deref();return Fr.has(e)&&Fr.get(e)?.has(s.selector)&&s.cache===Kr.ONCE||s.getter(e),Fr.get(e)?.get(s.selector)}})}beforeDestroy(e,t){Fr.get(e)?.clear(),Fr.delete(e)}updated(e,t){this.cache!==Kr.ONCE&&this.getter(e)}}const Gr=Dr(zr),Xr=Dr(class extends zr{getter(e){let t=e.shadowRoot?.querySelectorAll(this.selector),n=Fr.get(e);n||(n=new Map,Fr.set(e,n)),n.set(this.selector,t)}});function qr(e){if(1===arguments.length)return(t,n)=>{Qr(t,n,e)};Qr(arguments[0],arguments[1],{prop:""})}function Qr(e,t,n){if(!be.has(e.constructor)){const t={};let n=e.constructor;for(;(n=st(n))!==Vn;)y(t,be.get(n)??{});be.set(e.constructor,t)}if(n.shallow=n.shallow||!1,S(be.get(e.constructor),t,n),n.hasChanged){let r=De.get(e.constructor);r||(r=new Map,De.set(e.constructor,r)),r.set(t,n.hasChanged)}if(n.shallow){let n=Ie.get(e.constructor);n||(n=new Set,Ie.set(e.constructor,n)),n.add(t)}Reflect.defineProperty(e,t,{get(){return Mt(t,this)},set(e){Ct(t,e,this)}})}function Zr(e,t,n){Qr(e.prototype,t,n||{prop:""})}function Jr(e,t=!1){return n=>{n&&(t?customElements.define(e,n):(we[n.name]=e,ye[e]=n))}}const Yr=Dr(class extends Ir{static get priority(){return Number.MAX_VALUE}created(e,t,...n){let r=_(e,t);S(e,t,L(r,this.wait)),S(e,t+"_$__",r)}beforeDestroy(e,t){S(e,t,null),S(e,t+"_$__",null)}get targets(){return[Vr.METHOD]}wait;constructor(e){super(),this.wait=e}});function es(e,t){return(n,r)=>{let s=Le.get(n.constructor),i=Ae.get(n.constructor),a=ke.get(n.constructor),c=xe.get(n.constructor),u=Re.get(n.constructor),d=Pe.get(n.constructor);if(!u){u=new Map,Re.set(n.constructor,u),c=[],xe.set(n.constructor,c),a=new Map,ke.set(n.constructor,a),s={},Le.set(n.constructor,s),i={},Ae.set(n.constructor,i),d={},Pe.set(n.constructor,d);let e=st(n.constructor);for(;e;)Re.has(e)&&(Re.get(e)?.forEach(((e,t)=>{u.set(t,e)})),c.push(...xe.get(e)),ke.get(e)?.forEach(((e,t)=>{a.set(t,e)})),o(s,Le.get(e)),o(i,Ae.get(e)),o(d,Pe.get(e))),e=st(e)}(l(e)?e:[e]).forEach((e=>{let o=n[r];_(t,"once",!1)&&a.set(e,!1);let l=_(t,"deep",!1),h=e.split(".")[0],p=u.get(h);if(p||(p=[],u.set(h,p)),p.includes(e)||p.push(e),l?(s[e]=s[e]??new Set,s[e].add(o),c.push(e)):(i[e]=i[e]??new Set,i[e].add(o)),_(t,"immediate",!1)){let t=d[e];t||(t=d[e]=new Set),t.add(o)}}))}}const ts=new WeakMap;function ns(e){if("string"==typeof e)return e.trim();if(se(e)){let t="";return c(e,((e,n)=>{e&&(t+=(t?" ":"")+n)})),t}if(Array.isArray(e)){let t="";return c(e,(e=>{const n=ns(e);n&&(t+=(t?" ":"")+n)})),t}return""}const rs=rr((function(e){return(e,[t],n)=>{const r=e,s=ns(t),o=ts.get(r)??"";s!==o&&(o&&r.classList.remove(...o.split(" ").filter(Boolean)),s&&r.classList.add(...s.split(" ").filter(Boolean)),ts.set(r,s))}}),[Jn.TAG]),ss=new Map,os=new WeakMap,is=new WeakMap,as=new Set(["width","height","min-width","max-width","min-height","max-height","padding","padding-top","padding-right","padding-bottom","padding-left","margin","margin-top","margin-right","margin-bottom","margin-left","border-width","border-radius","outline-width","outline-offset","top","right","bottom","left","inset","inset-block","inset-inline","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","font-size","letter-spacing","word-spacing","text-indent","gap","row-gap","column-gap","grid-gap","grid-row-gap","grid-column-gap"]);function ls(e){if(x(e))return;let t={value:""};if(f(e))t=e;else{if(!n(e)&&!ie(e))return;t.value=e,t.important=!1}return t}function cs(e){let t={};if(n(e)){const n=e.trim();return n&&n.split(";").filter((e=>e.trim())).forEach((e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n).trim();let s=ls(e.slice(n+1).trim());s&&(t[r]=s)}})),t}let r={};if(Array.isArray(e))for(const t of e){const e=cs(t);Object.assign(r,e)}else f(e)&&(r=e);return c(r,((e,n)=>{let r=function(e){if(e.startsWith("--"))return e;if(ss.has(e))return ss.get(e);const t=i(e);return ss.set(e,t),t}(n),s=ls(e);s&&(as.has(r)&&!r.startsWith("--")&&oe(s.value)&&(s.value=s.value+"px"),t[r]=s)})),t}const us=rr((function(e){return(e,t,n)=>{let r=e;const s=cs(t[0]),o=new Set(Object.keys(s)),i=os.get(r);let a=is.get(r);a||(a={},is.set(r,a)),c(i,(e=>{o.has(e)||(r.style.removeProperty(e),delete a[e])})),c(s,((e,t)=>{const n=e.value+""+(e.important?" !important":"");a[t]!==n&&(r.style.setProperty(t,e.value+"",e.important?"important":""),a[t]=n)})),os.set(r,o)}}),[Jn.TAG]),ds=["key","ref","emit-native"],hs=new WeakMap,ps=new WeakMap,fs=new WeakMap,gs=new WeakMap,ms="class",_s="style";const vs=rr((function(e){return(e,[t],n,{renderComponent:r})=>{let s=e;if(function(e,t,n){const r=n?ns(t):"",s=ps.get(e)??"";r!==s&&(s&&e.classList.remove(...s.split(" ").filter(Boolean)),r&&e.classList.add(...r.split(" ").filter(Boolean)),ps.set(e,r))}(s,t[ms],ms in t),function(e,t,n){const r=n?cs(t):{},s=new Set(Object.keys(r)),o=fs.get(e);let i=gs.get(e);i||(i={},gs.set(e,i)),o&&o.forEach((t=>{s.has(t)||(e.style.removeProperty(t),delete i[t])})),c(r,((t,n)=>{const r=t.value+""+(t.important?" !important":"");i[n]!==r&&(e.style.setProperty(n,t.value+"",t.important?"important":""),i[n]=r)})),fs.set(e,s)}(s,t[_s],_s in t),n){let e=hs.get(s);return e||(e={},hs.set(s,e)),void c(t,((t,n)=>{ds.includes(n)||n===ms||n===_s||(e[n]!==t||null!==t&&"object"==typeof t)&&(s.setAttribute(n,t),e[n]=t)}))}if(lt(s)){let e={},n=Se.get(s.constructor),o={};hs.set(s,o),c(t,((t,r)=>{if(ds.includes(r)||r===ms||r===_s)return;let i=a(r);(n?n[i]:void 0)?e[r]=t:(s.setAttribute(r,t+""),o[r]=t)})),ct(r,s,e)}else{let e={};hs.set(s,e),c(t,((t,n)=>{ds.includes(n)||n===ms||n===_s||(s.setAttribute(n,t),e[n]=t)}))}}}),[Jn.TAG]),ws=new WeakMap,ys=new WeakMap,Es=new WeakMap;function bs(e,t){let n=Wt.get(e);if(!n||0===n.length)return null;let r=n.join("."),s=Dt.get(t),o=s?.[n[0]];return{proxyRoot:r,ctxRoot:void 0!==o?[o,...n.slice(1)].join("."):r}}function Ss(e,t,n){let r=It.getVarPathList(),s=t+"."+n;for(let n=e;n<r.length;n++){let e=r[n];if(e===t||m(e,t+".")&&e!==s&&!m(e,s+"."))return!0}return!1}function Ns(e,t,n,r,s,o){let i=[],a=[],l=!1,u=void 0!==r&&It.isCollection(),d=0;return c(e,((e,s)=>{let o=u?It.getVarPathList().length:0,c=Sr(n,t.call(n,e,s));u&&!l&&(l=Ss(o,r,d)),a.push(c);for(let e=0;e<c.length;e++)i.push(c[e]);d++})),void 0!==o&&void 0!==r&&void 0!==s&&(u?Es.set(o,{keys:ws.get(o),varsPerItem:a,cross:l}):Es.delete(o)),i}const Ts=rr((function(e,t,n){return(e,s,o,{renderComponent:i,updatedMap:a})=>{let l=s[0];if(x(l)&&r(o))return[Yn.INIT];let u=ws.get(e);if(o&&u&&!x(l)&&o[0]===l){let r=bs(l,i);if(r){let s=function(e,t){if(!e)return null;let n=Object.keys(e);if(0===n.length)return null;let r=t+".",s=new Set;for(let o=0;o<n.length;o++){let i=n[o];if(i===t||m(t,i+".")){if(e[i].end)return null;continue}if(!m(i,r))return null;let a=i.slice(r.length),l=a.indexOf("."),c=l<0?a:a.slice(0,l),u=Number(c);if(!Number.isInteger(u)||u<0||String(u)!==c)return null;s.add(u)}return s}(a,r.ctxRoot);if(s){let o=l,a=!1;for(let e of s){if(e>=o.length){a=!0;break}let n=t(o[e],e,e);if((W(n)?null:"string"==typeof n?n:String(n))!==u[e]){a=!0;break}}if(!a){let t=Es.get(e);if(t&&t.keys===u&&!t.cross&&t.varsPerItem.length===u.length){let e=It.isCollection(),a=!1;for(let l of s){let s=e?It.getVarPathList().length:0;if(t.varsPerItem[l]=Sr(i,n.call(i,o[l],l)),e&&!t.cross&&Ss(s,r.proxyRoot,l)){t.cross=!0,a=!0;break}}if(!a){let e=[];for(let n=0;n<t.varsPerItem.length;n++){let r=t.varsPerItem[n];for(let t=0;t<r.length;t++)e.push(r[t])}return[Yn.REFRESH,e]}}return[Yn.REFRESH,Ns(l,n,i,r.proxyRoot,r.ctxRoot,e)]}}}}const d=[],h=new Set;let p,f=0;if(c(l,((e,n)=>{let r=t(e,n,f++);if(W(r))return;const s="string"==typeof r?r:String(r);h.has(s)?et(`forEach - duplicate key in '${d}'`):(h.add(s),d.push(s))})),ws.set(e,d),o){if(x(d))return[Yn.REMOVE];if(u&&d.length===u.length&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(d,u)){let t=bs(l,i);return[Yn.REFRESH,t?Ns(l,n,i,t.proxyRoot,t.ctxRoot,e):Ns(l,n,i)]}}Es.delete(e);let g=s[2];if(ys.has(e))p=ys.get(e);else{let t=F(l)[0],n=l[t],r=g.call(i,n,t,0);p=new ir(r,i),ys.set(e,p)}return o?[Yn.UPDATE,p,d,u,g,l]:[Yn.INIT,n,p,l,t]}}),[Jn.TEXT,Jn.SLOT]);let Ms=document.createElement("template"),Cs=new WeakMap;const ks=rr((function(e){return(e,t,n,{renderComponent:r})=>{if(!(n&&t[0]==n[0]||W(t[0])))if(ae(e))e.innerHTML=br(t[0]);else{let r=Cs.get(e);r||(r=document.createTextNode(""),e.parentNode?.insertBefore(r,e),Cs.set(e,r)),Ms.innerHTML=br(t[0]),s(n)||at.remove(r,e),e.before(Ms.content.cloneNode(!0))}}}),[Jn.TAG,Jn.TEXT,Jn.SLOT]),xs=new WeakMap,Rs=new WeakMap,As=new WeakMap,Ls=rr((function(e,t,n){return(e,[t,n,r],s,{renderComponent:o})=>{let i;if(s){if(!!t==!!s[0]){let t=xs.get(e);return[Yn.REFRESH,t]}let a=t?n:r;return t?(i=Rs.get(e),i||(i=new ir(a.call(o,t),o),Rs.set(e,i))):(i=As.get(e),i||(i=new ir(a.call(o,t),o),As.set(e,i))),[Yn.REPLACE,a,i]}let a=t?n:r;return t?(i=Rs.get(e),i||(i=new ir(a.call(o,t),o),Rs.set(e,i))):(i=As.get(e),i||(i=new ir(a.call(o,t),o),As.set(e,i))),xs.set(e,a),[Yn.INIT,a,i]}}),[Jn.TEXT,Jn.SLOT]),Ps=new WeakMap,Vs=rr((function(e,t){return(e,[t,n],r,{renderComponent:s})=>{let o=Ps.get(e);return t&&!Ps.has(e)&&(o=new ir(n.call(s),s),Ps.set(e,o)),r?r[0]?t?[Yn.REFRESH,n]:[Yn.REMOVE]:t?[Yn.REPLACE,n,o]:[Yn.NONE]:[Yn.INIT,...t?[n,o]:[]]}}),[Jn.TEXT,Jn.SLOT]);var Is;!function(e){e.CHANGE="change",e.INPUT="input"}(Is||(Is={}));const Os=rr((function(e,t="value",r){return(e,[t,r,s],o,{varChain:i,renderComponent:a})=>{r=r??"value";const l=e;if(o){const e=o[0],n=t;if(!f(n)&&Object.is(n,e))return;if(l instanceof Vn)l.updateProps({[r]:n});else if(l instanceof HTMLTextAreaElement||l instanceof HTMLSelectElement){if(l.setAttribute(r,n+""),l instanceof HTMLSelectElement){let e=R(l.querySelectorAll("option"),(e=>e.value==n));e&&(e.selected=!0)}}else if(l instanceof HTMLInputElement){if(l.value==n)return;switch(l.type){case"checkbox":case"radio":n?l.setAttribute("checked",""):l.removeAttribute("checked");break;case"text":case"email":case"number":case"password":case"search":case"tel":case"url":l.setAttribute(r,n+""),S(l,r,n);break;default:l.setAttribute(r,n+"")}}return}let c;c=n(s)?le(s)[0]:G(i);const u=ce(c,".")[0];let d=Dt.get(a),h="";d&&(h=d[u]),u in a||!h||h in a||et(`model - property '${u}' is not defined on the instance of `+a.tagName);let p=Nn(a);if(f(t)||U(t)||(t=""),ye[l.tagName.toLowerCase()]){ct(a,l,{[r]:t}),vn(l,a,"update:"+r,(function(e){let t=this,n=(Dt.get(t)??{})[u];!(u in t)&&n&&_(t.wrapperComponent,u)===_(t,n)&&(t=t.wrapperComponent||t),S(t,c,e.value)}))}else if(l instanceof HTMLTextAreaElement){l.setAttribute(r,t+"");let e="input";p.push([e,function(e){let t=e.target;S(this,c,t.value)},l])}else if(l instanceof HTMLInputElement){let e="",n="";switch(l.type){case"checkbox":case"radio":e="checked",n="change";break;default:e="value",n="input"}l.setAttribute(r??e,t+""),p.push([n,function(e){let t=e.target;S(this,c,t.value)},l])}else l instanceof HTMLSelectElement&&(l.setAttribute(r,t+""),p.push(["change",function(e){let t=e.target,n=this,r=(Dt.get(n)??{})[u];!(u in n)&&r&&_(n.wrapperComponent,u)===_(n,r)&&(n=n.wrapperComponent||n),S(n,c,t.value)},l]))}}),[Jn.TAG]),Ds=new WeakMap,Ws=rr((function(e,t){return(e,[t,n],r)=>{if(r&&t===r[0])return;let s=e;if(!Ds.has(s)){let e=s.style.display;Ds.set(s,"none"==e?"unset":e)}s.style.display=t?Ds.get(s):"none",n&&n(s,t)}}),[Jn.TAG]),Hs=rr((function(e,t){return(e,[t,n],r,{renderComponent:s,slotComponent:o})=>{if(r)return;t=t.bind(s);let i=qe.get(o);i||(i={},qe.set(o,i)),i[n||"default"]=t}}),[Jn.SLOT]),$s=new WeakMap,Us=new WeakMap,js=rr((function(e,t){return(e,[t,n],r,{renderComponent:s})=>{let o=()=>Rr``,i=[],a=[];c(n,((e,t)=>{if(p(e))i.push(t),a.push(e);else{let t=e[0],n=e[1];i.push(t),a.push(n)}"default"===t&&(o=e)}));let l=ue(i,(e=>p(e)?e(t):e==t)),u=$s.get(e);$s.set(e,l);let d=Us.get(e);if(d||(d=[],Us.set(e,d)),!d[l]){let e=new ir((a[l]??o).call(s),s);d[l]=e}return r?u==l?[Yn.REFRESH,a[l]??o]:[Yn.REPLACE,a[l]??o,d[l]]:[Yn.INIT,a[l]??o,d[l]]}}),[Jn.TEXT,Jn.SLOT]);function Bs(e){const t="undefined"!=typeof document?document:void 0;if("function"==typeof t?.startViewTransition){return t.startViewTransition((()=>Promise.resolve(e()))).finished}e()}class Ks{static getCssText(e,t=!1){return n(e)?e:de(V(e,((e,n)=>n.startsWith("--")?n+":"+e+(t?" !important":""):i(n)+":"+e+(t?" !important":""))),";")+";"}static setStyle(e,t){if(n(e)&&!U(e))return;let r=Ks.getCssText(e);t.style.cssText=r}}function Fs(){c(ye,((e,t)=>{customElements.get(t)||customElements.define(t,e)}))}export{Vn as CompElem,Ks as CssHelper,gt as Csscope,Ir as Decorator,Vr as DecoratorType,Or as DecoratorWrapper,Yn as DirectiveUpdateTag,at as DomUtil,Jn as EnterPointType,Is as ModelTriggerType,Kr as QueryCache,ar as Template,Qt as _getObservedAttrs,st as _getSuper,ct as addUninitializedSubComponentProp,Fn as beginEnter,vs as bind,Un as buildTransitionCfg,ht as camelCaseCached,rs as classes,Kn as collectElementRoots,$n as collectRootNodes,Hr as computed,jt as createReactiveState,Pr as createRef,Ar as css,mt as csscope,$r as debounced,Dr as decorator,Wr as decoratorWithNoArgs,Fs as defineComponents,rr as directive,sr as directiveScopeChecker,Ur as emits,jr as event,Ts as forEach,qn as forceFinishLeave,bt as getBaseSheets,it as getBooleanValue,Tt as getComponentDefaultProps,ut as getCssVarKey,Ot as getCurrentRenderComponent,St as getDefaultCss,Nt as getGlobalDefaultProps,jn as getTransitionCfg,Rr as h,ks as html,Ls as ifElse,Vs as ifTrue,ot as isBooleanProp,lt as isCompElemNode,Zr as makeState,Os as model,ns as normalizeClass,cs as normalizeStyle,Br as onced,Zn as playMove,Gt as prop,Gr as query,Xr as queryAll,Qn as removeNodesAnimated,Bn as resolveAnchorHooks,Hn as runTransition,yt as setDefaults,zn as settleEnter,Ws as show,et as showError,tt as showTagError,rt as showTagWarn,nt as showWarn,Hs as slot,Bs as startViewTransition,qr as state,us as styles,Jr as tag,Yr as throttled,ft as typeNameLower,tr as updateDirective,es as watch,js as when};
7
+ import e,{some as t,isString as n,isUndefined as r,isBlank as s,assign as o,kebabCase as i,camelCase as a,isArray as l,each as c,flatMap as u,test as d,isSymbol as h,isFunction as p,isObject as f,concat as g,startsWith as m,get as _,toArray as v,defaults as w,merge as y,clone as E,has as b,set as S,closest as N,remove as T,size as M,includes as C,noop as k,isEmpty as x,find as R,debounce as A,throttle as L,once as P,map as V,first as I,walkTree as O,filter as D,isNil as W,isNull as H,isDefined as $,trim as U,isBoolean as j,parseJSON as B,cloneDeep as K,keys as F,groupBy as z,last as G,reject as X,initial as q,except as Q,toString as Z,reduce as J,compact as Y,snakeCase as ee,range as te,replace as ne,bind as re,isPlainObject as se,isNumeric as oe,isNumber as ie,isElement as ae,toPath as le,split as ce,findIndex as ue,join as de}from"myfx";const he="default",pe=/\s+\.?key\s*=/;var fe,ge;!function(e){e[e.RENDER=1]="RENDER",e[e.COMPUTED=2]="COMPUTED",e[e.DIRECTIVE=3]="DIRECTIVE"}(fe||(fe={})),function(e){e.Prod="prod",e.Dev="dev"}(ge||(ge={}));const me={boolean:Boolean,string:String,number:Number,object:Object,array:Array,function:Function,undefined:Object},_e=new Map,ve=new WeakMap,we={},ye={},Ee=new WeakMap,be=new WeakMap,Se=new WeakMap,Ne=new WeakMap,Te=new Map,Me=new Map,Ce=new Map,ke=new WeakMap,xe=new WeakMap,Re=new WeakMap,Ae=new WeakMap,Le=new WeakMap,Pe=new WeakMap,Ve=new WeakMap,Ie=new WeakMap,Oe=new WeakMap,De=new WeakMap,We=new WeakMap,He=new WeakMap,$e=new WeakMap,Ue=new WeakMap,je=new WeakMap,Be=new WeakMap,Ke=new WeakMap,Fe=new WeakMap,ze=new Map,Ge=new WeakMap,Xe=new WeakMap,qe=new WeakMap,Qe=new WeakMap,Ze="__data_",Je="⟬Ċ⟭";class Ye{strings;vars;cssText;constructor(e,t){this.strings=e,this.vars=t}getCssText(){if(this.cssText)return this.cssText;let e="",t=this.strings.length-1;for(let n=0;n<=t;n++){const t=this.strings[n];let r=this.vars[n]??"";r instanceof Ye&&(r=r.getCssText()),e=e+t+r}return this.cssText=e,e}}function et(e){console.error("[CompElem]",e)}function tt(e,t){console.error(`[CompElem <${e}>]`,t)}function nt(...e){console.warn("[CompElem]",...e)}function rt(e,t){console.warn(`[CompElem <${e}>]`,t)}function st(e){return Object.getPrototypeOf(e)}function ot(e){return e===Boolean||t(e,(e=>e===Boolean))}function it(e){let t=e;return n(e)&&/(?:^true$)|(?:^false$)/.test(t)?t="true"===t:(r(t)||s(t))&&(t=!0),t}const at={getNodes(e,t){let n=e.nextSibling;if(!t)return[n];let r=[];for(;n&&n!==t;)r.push(n),n=n?.nextSibling;return r},insertBefore:function(e,t){if(!e.parentNode)return;let n=document.createDocumentFragment();n.append(...t),e.parentNode.insertBefore(n,e)},remove:function(e,t){if(e===t)return void e?.parentNode?.removeChild(e);let n=e.nextSibling;for(;n&&n!==t;)n?.parentNode?.removeChild(n),n=e.nextSibling},clear(e){if(!e)return;let t=[],n=e=>{let r=e.childNodes;for(let e=0,s=r.length;e<s;e++){let s=r[e];s.nodeType===Node.ELEMENT_NODE&&(s instanceof Vn&&t.push(s),n(s))}};n(e);for(let e=0,n=t.length;e<n;e++)t[e].destroy()}};function lt(e){return!!ye[e.tagName?.toLowerCase()]}function ct(e,t,n){let r=Xe.get(e);r||(r=new Map,Xe.set(e,r));let s=r.get(t)??{};r.set(t,o(s,n))}function ut(e,t){let n=Fe.get(e);n||(n=new Map,Fe.set(e,n));let r=n.get(t);return void 0===r&&(r="--"+i(t).replace(/^-+/,""),n.set(t,r)),r}const dt=new Map;function ht(e){let t=dt.get(e);return void 0!==t||(dt.size>1024&&dt.clear(),t=a(e),dt.set(e,t)),t}const pt=new WeakMap;function ft(e){let t=pt.get(e);return void 0===t&&(t=(e.name||"").toLowerCase(),pt.set(e,t)),t}var gt;function mt(...e){return(t,n,r)=>{let s=r.get();return(l(s)?s:[s]).forEach((n=>{let r;if(n instanceof Ye){if(r=je.get(n.strings),!r){let e=n.getCssText();r=new CSSStyleSheet,r.replaceSync(e),je.set(n.strings,r)}}else n instanceof CSSStyleSheet&&(r=n);if(!r)return;let s=Be.get(t);s||(s=new Map,Be.set(t,s)),c(e,(e=>{if(e===gt.GLOBAL)return void(document.adoptedStyleSheets.includes(r)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]));let t=s.get(e);t||(t=[],s.set(e,t)),t.push(r)}))})),r}}!function(e){e.INNER="inner",e.HOST="host",e.GLOBAL="global"}(gt||(gt={}));let _t=[],vt={},wt={};function yt(e){_t=u(e.css,(e=>{if(n(e)){let t=new CSSStyleSheet;return t.replaceSync(e),t}return e instanceof CSSStyleSheet?e:[]})),vt=e.global,c(e,((e,t)=>{d(t[0],/[A-Z]/)&&(wt[t]=e)})),Et.clear()}const Et=new Map;function bt(e){let t=Et.get(e);return t||(t=[...St(),...Be.get(e)?.get(gt.INNER)??[]],Et.set(e,t)),t}const St=()=>_t,Nt=()=>vt,Tt=()=>wt;function Mt(e,t){let n=t,r=Reflect.get(n[Ze],e);if(Pt&&Lt.push(e),null===r||"object"!=typeof r&&"function"!=typeof r)return r;let s=Ht.get(r);if(s||$t.get(r)){let o=Ut.get(r);o||(o=new Set,Ut.set(r,o));let i=s??r;if($t.get(i)?.deref()!==t){let n=Dt.get(t);n||(n={},Dt.set(t,n));let r=Wt.get(i);r&&(n[r[0]]=e)}return o.add(n.__thisRef),i}if(f(r)&&!p(r)&&!(r instanceof Node)&&!Object.isFrozen(r)){let t=Ie.get(n.constructor),s=t?.has(e);s||(t=Oe.get(n.constructor),s=t?.has(e)),r=s||"slots"===e?r:jt(r,n,e)}return r}function Ct(e,t,n){let r=n;if(r.isDestroyed)return;if(!r.__inited)return void Reflect.set(r[Ze],e,t);let s=r[Ze][e],o=De.get(r.constructor),i=o?.get(e),a=Ht.get(s);if(i){if(!i.call(r,t,s,[e],t,s))return!0}else{if(Object.is(s,t))return!0;if(f(t)&&a===t)return!0}Reflect.set(r[Ze],e,t),Ft(n,t,s,[e])}function kt(e,t,n,r,s,o){let i=function(e){let t=Ve.get(e);if(void 0!==t)return t;let n=Object.getPrototypeOf(e),r=Re.get(e)??Re.get(n);return t=r?{rootMap:r,watchKeysDeep:xe.get(e)??xe.get(n),watchDeepUpdateMap:Le.get(e)??Le.get(n),watchUpdateMap:Ae.get(e)??Ae.get(n),onceMap:ke.get(e)??ke.get(n)}:null,Ve.set(e,t),t}(e.constructor);if(!i)return;let{rootMap:a,watchKeysDeep:l,watchDeepUpdateMap:c,watchUpdateMap:u,onceMap:d}=i,h=r.split(".")[0],p=a?.get(h);p?.forEach((i=>{(r===i||m(i,r+".")&&!Object.is(_(e._getPrivateData(),i),_(t,i))||m(r,i+".")&&l?.includes(i)&&!Object.is(_(e._getPrivateData(),i),_(t,i)))&&g(v(u[i]),v(c[i])).forEach((a=>{a&&!0!==d.get(i)&&(e._watchUpdateArgsInNextTick?.set(a,{newValue:t,oldValue:n,chain:r.split("."),rootObjNew:s,rootObjOld:o,fullMatch:i===r}),e._watchUpdateSetInNextTick?.add(a),d.has(i)&&d.set(i,!0))}))}))}function xt(e,t){let n=He.get(e.constructor);n?.has(t)&&n.get(t)?.forEach((t=>{e._computedUpdateSetInNextTick.add(t)}))}function Rt(e,t){let n=$e.get(e.constructor);if(!n)return;let r=t.split("."),s="";r.forEach((t=>{s=s?s+"."+t:t,n.has(s)&&(e._cssUpdateInNextTick=!0)}))}const At=new Set;let Lt=[],Pt=!1,Vt=null;const It={popDirectiveQ(){let e=[],t=Lt;for(let n=0;n<t.length;n++){let r=t[n];At.has(r)||(At.add(r),e.push(r))}return At.clear(),e},start(e){Pt=!0,Lt=[],Vt=e},end(e,t){e&&t&&e._regSubViewDeps(It.popVarPathList(),t),Pt=!1,Vt=null},popVarPathList(){let e=Array.from(new Set(Lt));return Lt=[],e},getVarPathList:()=>Lt,isCollection:()=>Pt};function Ot(){return Vt}const Dt=new WeakMap,Wt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Ut=new WeakMap;function jt(e,n,r){if(Ht.has(e))return Ht.get(e);if($t.has(e)){if(r){let r=Ut.get(e);r||(r=new Set,Ut.set(e,r)),t(r.values(),(e=>e.deref()===n))||r.add(new WeakRef(n))}return e}const s=new Proxy(e,{get(e,t,r){if(!t)return;const s=Reflect.get(e,t,r);if(h(t))return s;const o=l(e);if(p(s))return s;if("length"===t&&o)return s;if(95===t.charCodeAt(0)&&95===t.charCodeAt(1))return s;let i=Wt.get(r);if(Pt){let e=i?g(i):[];e.push(t),Lt.push(e.join("."))}if(null!==s&&"object"==typeof s&&Ht.has(s))return Ht.get(s);let a=s;if(f(s)&&!p(s)&&!(s instanceof Node)&&!Object.isFrozen(s)){let e=i?g(i):[];a=jt(s,n),e.push(t),Wt.set(a,e),Ht.set(s,a)}return a},set(e,t,r,s){if(!t)return!1;let o=e[t],i=Wt.get(s)??[],a=g(i,[t]),l=De.get(n.constructor),c=l?.get(a[0]),u=a.length>1,d=r,h=o;if(u&&(h=d=n._getPrivateData()[a[0]]),c){if(!c.call(n,d,h,a,r,o))return!0}else if(Object.is(o,r))return!0;let p=r,f=Reflect.set(e,t,p);Ft(n,p,o,a);let m=Ut.get(s),_=[];return m?.forEach((e=>{let t=e.deref();if(!t)return;if(t===n)return;if(t.isDestroyed)return void _.push(e);let r=(Dt.get(t)??{})[a[0]];if(void 0===r)return;let s=a.join(".");s=s.replace(a[0],r),Ft(t,p,o,s.split("."),d,h)})),_.forEach((e=>{let t=e.deref();Dt.delete(t),m.delete(e)})),f}});return Wt.has(s)||Wt.set(s,r?[r]:[]),Ht.set(e,s),r&&$t.set(s,new WeakRef(n)),s}function Bt(e,t,n,r,s,o){e._notify(t,n,r,s,o)}function Kt(e,t,n,r){let s=r.join(".");kt(e,t,n,s,t,n),xt(e,s),Rt(e,s)}function Ft(e,t,n,r,s,o){s=s??t,o=o??n,r.length>1&&(o=s=e._getPrivateData()[r[0]]);let i=r.join(".");kt(e,t,n,i,s,o),xt(e,i),Rt(e,i),Bt(e,s,o,r,t,n)}class zt{static nextSet=new Set;static nextPending=!1;static next;static flush(){zt.nextPending=!1;let e=Array.from(zt.nextSet);zt.nextSet.clear(),e.forEach((e=>e())),e=null}static pushNext(e){zt.nextSet.add(e),zt.nextPending||(zt.nextPending=!0,zt.next())}}function Gt(e){if(1===arguments.length)return(t,n,r)=>{e.required=e.required||!1,e.attribute=!1!==e.attribute,Xt(t,n,e)};let t=arguments[0],n=arguments[1],r=arguments[2];e={type:void 0,required:!1,attribute:!0},r&&"function"==typeof r.type&&(e=w(r,e),r=void 0),e.shallow=e.shallow||!1,Xt(t,n,e)}function Xt(e,t,n,r){let s;if(!Se.has(e.constructor)){const t={};let n=e.constructor;for(;(n=st(n))!==Vn;)y(t,E(Se.get(n)??{}));s=new Set,c(t,((e,t)=>{if(e.attribute){let e=i(t);s?.add(e)}})),Me.set(e.constructor,s),Se.set(e.constructor,t)}if(n.attribute){s||(s=Me.get(e.constructor));let n=i(t);s?.add(n)}if(n.model){let n=Ne.get(e.constructor);n||(n=[],Ne.set(e.constructor,n)),n.includes(t)||n.push(t)}if(b(e.constructor,"observedAttributes")||(e.constructor.observedAttributes=[]),s&&(e.constructor.observedAttributes=v(s)),S(Se.get(e.constructor),t,n),n.hasChanged){let r=De.get(e.constructor);r||(r=new Map,De.set(e.constructor,r)),r.set(t,n.hasChanged)}if(n.shallow){let n=Oe.get(e.constructor);n||(n=new Set,Oe.set(e.constructor,n)),n.add(t)}Reflect.defineProperty(e,t,{get(){return Mt(t,this)},set(n){Ne.get(e.constructor)?.includes(t)&&function(e,t,n){n.emit("update:"+e,{value:t})}(t,n,this)}})}(()=>{const e=Promise.resolve(),t=zt.flush;zt.next=()=>{e.then(t)}})();const qt=new Set;function Qt(e){return Me.get(e)??Me.get(st(e))??qt}const Zt=["resize","outside","mutate"],Jt=new WeakMap,Yt=[],en=[],tn=[],nn=new WeakSet,rn="undefined"!=typeof ResizeObserver?new ResizeObserver((e=>{for(const t of e){const e=Array.isArray(t.contentBoxSize)?t.contentBoxSize[0]:t.contentBoxSize,n=Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize;if(!nn.has(t.target)){nn.add(t.target);continue}let r=Jt.get(t.target);r&&r.forEach((r=>{r({target:t.target,contentBoxSize:e,borderBoxSize:n,type:"resize"})}))}})):void 0;var sn;!function(e){e.Child="child",e.Tree="tree",e.Attr="attr",e.Char="char"}(sn||(sn={}));const on=new WeakMap,an="undefined"!=typeof MutationObserver?new MutationObserver((e=>{for(let t=0;t<e.length;t++){const n=e[t];let r=on.get(n.target);if(!r)return;let s={target:n.target},o=null;switch(n.type){case"subtree":s.type=sn.Tree,o=r[sn.Tree];break;case"childList":s.type=sn.Child,s.addedNodes=n.addedNodes,s.removedNodes=n.removedNodes,o=r[sn.Child];break;case"attributes":s.type=sn.Attr,s.attributeName=n.attributeName,s.oldValue=n.oldValue,o=r[sn.Attr];break;case"characterData":s.type=sn.Char,s.oldValue=n.oldValue,o=r[sn.Char]}o&&(s.type="mutate",o(s))}})):void 0;function ln(t,n,r,s,o,i){if("resize"===t)return function(e,t,n,r){if(!rn)return;let s=Jt.get(e);s||(s=[],Jt.set(e,s));let o=rn;if(r){let n=t;t=(...r)=>{n(...r),T(s,(e=>e===t)),M(s)<1&&(o.unobserve(e),Jt.delete(e))}}return s.push(t),rn.observe(e),(n=!1)=>{T(s,(e=>e===t)),M(s)<1&&(o.unobserve(e),Jt.delete(e),n&&(o=e=null))}}(n,r,0,i);if("outside"===t)switch(s[0]){case"mousedown":return function(t,n){return Yt.push([t,n]),(r=!1)=>{e.remove(Yt,(e=>e[0]===t&&e[1]===n))}}(n,r);case"dblclick":return function(t,n){return tn.push([t,n]),(r=!1)=>{e.remove(tn,(e=>e[0]===t&&e[1]===n))}}(n,r);default:return function(t,n){return en.push([t,n]),(r=!1)=>{e.remove(en,(e=>e[0]===t&&e[1]===n))}}(n,r)}else if("mutate"===t)return function(e,t,n){if(!an)return;let r=C(n,"child"),s=C(n,"attr"),o=C(n,"char"),i=C(n,"tree"),a=on.get(e);return a?void 0:(a={},on.set(e,a),r&&(a[sn.Child]=t),s&&(a[sn.Attr]=t),o&&(a[sn.Char]=t),i&&(a[sn.Tree]=t),an.observe(e,{childList:r,attributes:s,characterData:o,subtree:i}),(t=!1)=>{on.delete(e),t&&(e=null)})}(n,r,s)}"undefined"!=typeof document&&(document.addEventListener("mousedown",(e=>{let t=_(e.composedPath(),0,e.target);Yt.forEach((([n,r])=>{n.contains(t)||n.contains(N(t,(e=>e instanceof ShadowRoot),"parentNode")?.host)||r({type:"outside",target:n,modifier:"mousedown",event:e})}))}),!1),document.addEventListener("click",(e=>{let t=_(e.composedPath(),0,e.target);en.forEach((([n,r])=>{n.contains(t)||n.contains(N(t,(e=>e instanceof ShadowRoot),"parentNode")?.host)||r({type:"outside",target:n,modifier:"click",event:e})}))}),!1),document.addEventListener("dblclick",(e=>{let t=_(e.composedPath(),0,e.target);tn.forEach((([n,r])=>{n.contains(t)||n.contains(N(t,(e=>e instanceof ShadowRoot),"parentNode")?.host)||r({type:"outside",target:n,modifier:"dblclick",event:e})}))}),!1));const cn=/,|^(debounce:.+)|(debounce$)/,un=/,|^(throttle:.+)|(throttle$)/,dn="once",hn={esc:"escape"},pn=()=>{},fn=new WeakMap;function gn(e){let t=fn.get(e);return void 0===t&&(t=_(globalThis,e.name)!==e,fn.set(e,t)),t}function mn(e,t){let n,r=e??pn;if(n=R(t,(e=>cn.test(e)))){let e=n.split(":");r=A(r,parseInt(e[1])||100)}if(n=R(t,(e=>un.test(e)))){let e=n.split(":");r=L(r,parseInt(e[1])||100)}return t.includes(dn)&&(r=P(r)),r}function _n(e,t,n=!1){return function(e,t,n=!1){let r=t.includes("capture")||!1,s=t.includes("passive")||!1;return{handler:r=>{if(t.includes("prevent")&&r.preventDefault(),t.includes("stop")&&r.stopPropagation(),n||!t.includes("self")||r.target===r.currentTarget){if(r instanceof MouseEvent){if(t.includes("left")&&0!=r.button)return;if(t.includes("right")&&2!=r.button)return;if(t.includes("middle")&&1!=r.button)return}else if(r instanceof KeyboardEvent){let e=t.slice();if(T(e,(e=>"ctrl"==e))[0]&&!r.ctrlKey)return;if(T(e,(e=>"alt"==e))[0]&&!r.altKey)return;if(T(e,(e=>"shift"==e))[0]&&!r.shiftKey)return;if(T(e,(e=>"meta"==e))[0]&&!r.metaKey)return;let n=V(e,(e=>hn[e]||e));if(M(n)>0&&!n.includes(r.key.toLowerCase()))return}e(r)}},options:{capture:r,once:t.includes(dn)||!1,passive:s}}}(mn(e,t),t,n)}function vn(e,t,n,r){let s=_(e,"__c_emit_event_")??t._subComponentEventSn++;S(e,"__c_emit_event_",s);let o=t._subComponentEventMap.get(s);o||(o={},t._subComponentEventMap.set(s,o)),o[n]=r}const wn=new Set(["focus","blur","visibilitychange","wheel"]),yn=new Set(["mouseenter","mouseleave","pointerenter","pointerleave"]),En=new Set(["load","error","abort","play","pause","playing","waiting","canplay","canplaythrough","loadedmetadata","loadeddata","ended","timeupdate","volumechange","seeking","seeked","progress","stalled","suspend","emptied","ratechange","durationchange","loadstart","transitionstart","transitionrun","transitionend","transitioncancel","animationstart","animationend","animationcancel","animationiteration","scroll","slotchange"]),bn=new WeakMap;function Sn(e){let t=bn.get(e);return t||(t={bindList:[],docoEventMap:new Map,handlerMap:new WeakMap,releaseList:[],delegationKeySet:new Set,abortController:void 0,dispatch:t=>function(e,t){let n=e.renderRoot;if(!n)return;let r=t.type;const s=t.composedPath();let o=s.indexOf(n);if(o<0)return;let i=Sn(e);e:for(let e=0;e<=o;e++){const n=s[e];if(!(n instanceof HTMLElement))continue;let o=i.handlerMap.get(n)?.get(r);if(!x(o))for(let e=0;e<o.length;e++){let s=o[e];if((!s.parts.includes("self")||t.target===n)&&(s.parts.includes("once")&&(o.splice(e,1),e--,o.length<1&&i.handlerMap.get(n)?.delete(r)),s.handler(t),s.parts.includes("stop")))break e}}}(e,t)},bn.set(e,t)),t}function Nn(e){return Sn(e).bindList}function Tn(e){let t=Sn(e);t.abortController||(t.abortController=new AbortController)}function Mn(e){let t=Sn(e);const n=t.bindList;if(n.length>0){t.bindList=[];for(let t=0;t<n.length;t++){let r=n[t],s=r[0],o=r[1],i=r[2];if(!i)continue;if(r[3])continue;let a=o&&gn(o)?o.bind(e):o;Cn(e,s,a,i),r[3]=k}}let r=_e.get(e.constructor)??_e.get(st(e.constructor));r&&M(r)>0&&c(r,(({name:n,targetFn:r,fnName:s})=>{let o=n+"@"+s;if(t.docoEventMap.has(o))return;let i=r?r(e):e,a=_(e,s),l=a&&gn(a)?a.bind(e):a;Cn(e,n,l,i),t.docoEventMap.set(o,l)}))}function Cn(e,t,n,r){let{evName:s,parts:o}=function(e){let t=e.split(".");return{evName:t.shift(),parts:t}}(t);if(r instanceof Element){let t=ye[r.tagName?.toLowerCase()];if(t){let i=function(e,t){let n=e;for(;n&&n!==Vn;){let e=ve.get(n);if(e){if(e.has(t))return!0;for(let n of e)if(n.endsWith(":*")&&t.startsWith(n.slice(0,-1)))return!0}n=st(n)}return!1}(t,s);if(i)return void vn(r,e,s,mn(n,o))}}if(function(e){return Zt.includes(e)}(s)){let t=ln(s,r,mn(n,o),o,0,o.includes("once"));return void(t&&Sn(e).releaseList.push(t))}let i=function(e,t){if(!(t instanceof Element))return!1;let n=e.renderRoot;return!!n&&(t===n||n.contains(t))}(e,r)&&!En.has(s)&&!yn.has(s);if(i){let t=o.includes("capture")||wn.has(s);!function(e,t,n,r,s,o){if(!function(e,t,n){let r=e.renderRoot;if(!r)return!1;Tn(e);let s=Sn(e),o=(n?"c:":"b:")+t;return s.delegationKeySet.has(o)||(r.addEventListener(t,s.dispatch,{capture:n,signal:s.abortController.signal}),s.delegationKeySet.add(o)),!0}(e,t,o))return void kn(e,t,n,r,s);let{handler:i}=_n(n,r,!0),a=Sn(e),l=a.handlerMap.get(s);l||(l=new Map,a.handlerMap.set(s,l));let c=l.get(t);c||(c=[],l.set(t,c));c.push({handler:i,parts:r})}(e,s,n,o,r,t)}else kn(e,s,n,o,r)}function kn(e,t,n,r,s){Tn(e);let{handler:o,options:i}=_n(n,r);s.addEventListener(t,o,{capture:i.capture,once:i.once,passive:i.passive,signal:Sn(e).abortController.signal})}let xn=0;const Rn=new WeakMap,An={},Ln="slots",Pn={};class Vn extends HTMLElement{#e;#t={};__data_={};#n={};#r;__updateTree;__updateSubViewDeps;_cssUpdateInNextTick=!1;_cssVarOldValueMap;_watchUpdateSetInNextTick;_watchUpdateArgsInNextTick;_computedUpdateSetInNextTick;_subComponentEventSn=0;_subComponentEventMap=new Map;get[Symbol.toStringTag](){return this.constructor.name}get cid(){return this.#e}get attrs(){return this.#s}get props(){return this.#o}get renderRoot(){return this.#i?.deref()}get renderRoots(){return this.#a.flatMap((e=>e.deref()??[]))}get parentComponent(){return this.#l?.deref()}get wrapperComponent(){return this.#c?.deref()}get slots(){return An}get slotHooks(){return this.#u}get cssSheets(){return Be.get(this.constructor)?.get(gt.INNER)}get isMounted(){return this.#d}#s;#o;#i;#a;#l;#c;#h={};#u={};#p={};#d=!1;#f=!1;#g;#m;get cssVars(){return{}}__inited=!1;#_=!1;#v;__thisRef;__superComp;constructor(...e){super(),this.#e=xn++,this.__updateTree=[],this.__thisRef=new WeakRef(this),this.__superComp=st(this.constructor),this.#v=this.#w.bind(this),1===M(e)&&(this.#o={},o(this.#o,I(e))),Reflect.getOwnPropertyDescriptor(this.constructor.prototype,"slots")||Reflect.defineProperty(this.constructor.prototype,"slots",{get(){return Mt("slots",this)},set(e){Ct("slots",e,this)}});let t=Te.get(this.constructor)??Te.get(this.__superComp);t&&t.sort(((e,t)=>t.priority-e.priority)).forEach((e=>e.create(this))),this.#y=this.#E.bind(this)}insertStyleSheet(e){if(!this.#r)return null;let t;if(e instanceof Ye){if(t=Ke.get(e),!t){let n=e.getCssText();t=new CSSStyleSheet;try{t.replaceSync(n)}catch(e){}Ke.set(e,t)}}else if(e instanceof CSSStyleSheet){if(this.#r.adoptedStyleSheets.includes(e))return e;t=e}return t&&!this.#r.adoptedStyleSheets.includes(t)&&(this.#r.adoptedStyleSheets=[...this.#r.adoptedStyleSheets,t]),t}get rootComponent(){let e=this;for(;e.parentComponent;)e=e.parentComponent;return e}#y;connectedCallback(){let e=N(this.parentNode,(e=>e instanceof Vn||e.host instanceof Vn),"parentNode");this.#l=e?e instanceof Vn?new WeakRef(e):new WeakRef(e.host):void 0;let t=Qe.get(this);t&&(this.#c=new WeakRef(t),Qe.delete(this));let n=Be.get(this.constructor)?.get(gt.HOST);if(n){let e=this.#c?.deref()?.shadowRoot??this.#l?.deref()?.shadowRoot;e&&e.contains(this)||(e=this.ownerDocument),c(n,(t=>{e.adoptedStyleSheets.includes(t)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}))}this.setup()}disconnectedCallback(){}beforeDestroyed(){}destroyed(){}get isDestroyed(){return this.#b}#b=!1;destroy(){if(this.#b)return;this.#b=!0;let e=Te.get(this.constructor)??Te.get(this.__superComp);if(e?.forEach((e=>{e.destroy(this)})),this.beforeDestroyed(),function(e){let t=Sn(e);t.abortController?.abort(),t.abortController=void 0,c(t.releaseList,(e=>{"function"==typeof e&&e(!0)})),t.releaseList=[],t.docoEventMap.clear(),t.handlerMap=new WeakMap,t.delegationKeySet.clear(),t.bindList.length=0}(this),Ge.get(this)?.clear(),Ge.delete(this),this._watchUpdateArgsInNextTick?.clear(),this._watchUpdateSetInNextTick?.clear(),this._computedUpdateSetInNextTick?.clear(),this._computedUpdateSetInNextTick=null,this.__updateSubViewDeps?.clear(),this.#l){let e=this.#l.deref();e&&O(e.__updateTree,(t=>{t.__destroyed||t.node===this&&(t.destroy(e),T(t.parent?t.parent.children:e.__updateTree,(e=>e===t)))}))}this.#r&&at.clear(this.#r),c(this.__updateTree,(e=>e?.destroy(this))),c(this.#h,(e=>{Rn.delete(e),e.remove()})),c(this.#p,(e=>{c(e,(e=>e.remove()))})),c(this.__data_.slots,((e,t)=>{c(e,(e=>e.remove()))})),this.#S.clear(),this.#v=this.__thisRef=this.#p=this.#h=this.#S=this.#t=this.__data_.slots=null,this.remove(),this.#i=this.#a=this.#r=this.#n=this.#s=this.#o=this.#i=this.#a=this.#u=this.#y=this.__data_=this.__updateTree=this.#l=this._asyncDirectives=this.#c=null,this.#m=null,this.destroyed()}setup(){if(this.__inited)return;if(this.#_)return;this.#_=!0;const e=this.#N();this.#o={},o(this.#o,e),this.propsReady(e);for(const t in e){const n=e[t];this.__data_[t]=n}this.#T(),this.__data_.slots={},Reflect.defineProperty(this.__data_,"__isData",{enumerable:!1,value:!0});let t=this.__superComp;if(Re.get(this.constructor)??Re.get(t)){this._watchUpdateSetInNextTick=new Set,this._watchUpdateArgsInNextTick=new Map;let e=ke.get(this.constructor)??ke.get(t),n=Pe.get(this.constructor)??Pe.get(t);c(n,((t,n)=>{let r=_(this,n);t.forEach((e=>{e.call(this,r,void 0,n)})),e.has(n)&&e.set(n,!0)}))}let n=We.get(this.constructor);if(void 0===n&&(n=o({},Ee.get(this.constructor),Ee.get(t)),We.set(this.constructor,n)),n){this._computedUpdateSetInNextTick=new Set;let e=He.get(this.constructor);e?c(n,((e,t)=>{this[Ze][t]=e.call(this)})):(e=new Map,He.set(this.constructor,e),c(n,((t,n)=>{S(t,"key",n),It.start(this),this[Ze][n]=t.call(this),It.end(),It.popVarPathList().forEach((n=>{let r=e.get(n);r||(r=new Set,e.set(n,r)),r.add(t)}))})))}It.start(this);let r=this.render();It.end();let i,a=It.popVarPathList();Ce.has(this.constructor)||Ce.set(this.constructor,new Set(a)),null===r?(this.#a=[],this.#i=void 0):(this.#r=this.attachShadow({mode:"open"}),this.#r.adoptedStyleSheets=bt(this.constructor),i=function(e,t){let n,r=[];yr.has(t.constructor)?(n=yr.get(t.constructor),r=Sr(t,e)):(n=new ir(e,t,r),yr.set(t.constructor,n));let[s,o]=Cr(t,n,r);return t.__updateTree=o,s}(r,this),i&&M(i.children)>0&&(this.#a=D(i.children,(e=>e.nodeType===Node.ELEMENT_NODE)).map((e=>new WeakRef(e))),this.#i=this.#a[0])),this.__inited=!0,this.#M();let l=qe.get(this);l&&(this.#u=l,qe.delete(this)),c(this.#u,((e,t)=>{this.#C(t)}));const u=this;let d=Te.get(this.constructor)??Te.get(this.__superComp);if(d?.forEach((e=>{e.beforeMount(this,((e,t)=>(u.__data_[e]=t,u.__data_[e])))})),this.beforeMount(),this.isDestroyed)return;this.#d=!0,It.start(this);let h=this.cssVars;if(It.end(),!x(h)){this._cssVarOldValueMap={};let e=$e.get(this.constructor);e||(e=new Set(It.popVarPathList()),$e.set(this.constructor,e));let t="";c(h,((e,n)=>{let r=ut(this.constructor,n);(s(e)||W(e))&&(e="initial"),this._cssVarOldValueMap[r]=e,t+=";"+r+":"+e})),this.style.cssText+=t}i&&M(i.children)>0&&(this.#r.append(i),Xe.delete(this)),d&&d.forEach((e=>{e.mounted(this,((e,t)=>(u.__data_[e]=t,u.__data_[e])))})),this.#g&&this.#g.forEach((e=>zt.pushNext(e))),this.#f&&zt.pushNext(this.#y),Mn(this),this.mounted()}propsReady(e){}render(){return null}beforeMount(){}mounted(){}#w(e){let t=e.currentTarget,n="";c(this.#h,((e,r)=>{if(e===t)return n=r,!1})),this.__inited&&this.#k(t,n===he?"":n)}#k(e,t){this.#M();let n=_(this.#t[t],"props");n&&c(this.slots,((e,t)=>{e.filter((e=>e.nodeType===Node.ELEMENT_NODE)).forEach((e=>{e instanceof Vn?e.updateProps(n):c(n,((t,n)=>{if(e instanceof HTMLSlotElement){let r=Rn.get(e);if(r){let s=e.name||he,o=r.#t[s];o||(o=r.#t[s]={props:{}}),o.props||(o.props={}),o.props[n]=t,r.#k(e,s)}}else e.setAttribute(n,t)}))}))})),this.slotChange(e,t)}slotChange(e,t){}attributeChangedCallback(e,t,n){if(!this.__inited)return;if(Object.is(n,t))return;"undefined"===n&&(n=null);let r=ht(e),s=Se.get(this.constructor)??Se.get(this.__superComp);if(ot(_(s,r).type)){let e=!H(n)&&it(n);if(_(this,r)===e)return}this.#x(e,t,n)}shouldUpdate(e){return!0}updated(e){}_notify(e=void 0,t,n,r,s){let o=[],i=this,a="";for(let l=0;l<n.length;l++){const c=n[l];o.push(c),i=null==i?i:i[c];let u=i??e;a=0===l?c:a+"."+c,this.#n[a]={value:u,chain:a===Ln?[Ln]:o,oldValue:t,end:o.length===n.length,subNewValue:r,subOldValue:s}}this.isMounted?zt.pushNext(this.#y):this.#f=!0}requestUpdate(e,t,n,r,s){Bt(this,e,t,n,r,s)}#E(){if(M(this.#n)<1)return;if(!this.isMounted)return;const e=this.#n;if(this.#n={},!this.shouldUpdate(e))return;let t=Te.get(this.constructor)??Te.get(this.__superComp);t?.forEach((t=>{t.updated(this,e)})),this._watchUpdateSetInNextTick?.forEach((e=>{let{newValue:t,oldValue:n,chain:r,rootObjNew:s,rootObjOld:o,fullMatch:i}=this._watchUpdateArgsInNextTick.get(e),a=i?t:s,l=i?n:o;e.call(this,a,l,r,t,n)})),this._watchUpdateSetInNextTick?.clear(),this._watchUpdateArgsInNextTick?.clear();let n=0;for(;this._computedUpdateSetInNextTick?.size>0&&n<10;){n++;let t=Array.from(this._computedUpdateSetInNextTick);this._computedUpdateSetInNextTick.clear(),t.forEach((t=>{let n=_(t,"key"),r=this.__data_[n],s=t.call(this);(f(s)||s!==r)&&(this.__data_[n]=s,Kt(this,s,r,[n]),e[n]={value:s,chain:[n],oldValue:r,end:!0})}))}if(this._cssUpdateInNextTick){let e=this.cssVars;c(e,((e,t)=>{let n=ut(this.constructor,t);this._cssVarOldValueMap[n]!=e&&((s(e)||W(e))&&(e="initial"),this._cssVarOldValueMap[n]=e,this.style.setProperty(n,e+""))}))}let r,o=!1,i=Ce.get(this.constructor);if(c(e,((e,t)=>{if(!o&&i?.has(t)&&(o=!0),this.__updateSubViewDeps?.has(t)){let e=this.__updateSubViewDeps.get(t);e&&(r||(r=new Set),e.forEach((e=>{r.add(e)})))}})),this.#i?.deref()){if(o){let t=Sr(this,this.render()),n=this.#m;if(this.#m=t,xr(t,this,this.__updateTree,r,e,n),n)for(let e=0;e<n.length;e++){let t=n[e];null!==t&&"object"==typeof t&&(n[e]=void 0)}}r&&r.size>0&&r.forEach((t=>{!function(e,t,n,r){if(!e||e.__destroyed)return;let s=e.node;const[o,i,a,l]=e.value;let c,u=e.getSlotComponent(t);if(!n){let n=o(s,e.value[1],i,{renderComponent:t,slotComponent:u,varChain:l,updatedMap:r,pointType:_(ze.get(a),[0],Jn.TEXT)});if(!n)return;if(n[0]!==Yn.REFRESH)return;c=p(n[1])?Sr(t,n[1].call(t,e.value[1][0])):n[1]}if(!c)return;xr(c,t,e.children,void 0,r)}(t,this,void 0,e)}))}this.#S.forEach((e=>{this.#C(e)})),this.updated(e)}#N(){let e,t=Se.get(this.constructor)??Se.get(this.__superComp),n=this.attributes,s=this.tagName,a=Xe.get(this.wrapperComponent)?.get(this)??null;e=null==this.#o?a??Pn:null==a?this.#o:y(this.#o,a);let c={};for(let e=0,r=n.length;e<r;e++){let{name:r,value:s}=n[e];if(r[0]===ur||r[0]===dr||r[0]===hr||r===gr||"slot"===r)continue;let o=ht(r);t&&!t[o]&&(c[r]=s)}this.#s=this.#s?o(this.#s,c):c;let u={};if(!t)return u;let d=Object.keys(t),h=d.length;for(let o=0;o<h;o++){const a=d[o],c=i(a),h=this.hasAttribute(c);let p,g=t[a],m=b(e,a),v=_(this,a);if(!("_defaultValue"in g)&&(g._defaultValue=v,!g.type)){r(v)&&tt(s,"Prop '"+a+"' has neither propType nor defaultValue be used for type inference");let e=typeof v;l(v)&&(e="array");let t=me[e];g.type=t}if(m)p=W(e[a])?v:e[a];else{p=v;let e=n.getNamedItem(c)||n.getNamedItem(dr+c)||n.getNamedItem(c+dr);e&&(m=!0,p=e.value)}if(g.required&&!m){tt(s,"Prop '"+a+"' is required");break}p=this.#R(t,a,p,h),g.attribute&&$(p)&&!f(p)&&this.#A(g,a,p),this.__data_[a]=p,h&&(u[a]=p),delete this[a]}return u}#A(e,t,n){let r=i(t),s=U(n);ot(e.type)?(s=it(n),j(s)?s&&!this.hasAttribute(r)?this.toggleAttribute(r,!0):!s&&this.hasAttribute(r)&&this.toggleAttribute(r,!1):this.getAttribute(r)!==s&&this.setAttribute(r,s)):this.getAttribute(r)!==s&&this.setAttribute(r,s)}#L(e,t){let n=e;try{for(let r=0;r<t.length;r++){const s=t[r];n=s===Boolean?it(e):s===Number?Number(e):s===String?String(e):s===Object||s===Array?B(e):s===Date?new Date(e):new s(e)}}catch(t){tt(this.tagName,"Convert attribute error with "+e)}return n}#R(e,r,s,o){let i=e[r];if(!i)return s;let a=i.isValid,c=i.type,u=l(c)?c:[c],d=i.converter,h=s;if(!t(u,(e=>e===String))&&n(h)&&!H(h))try{h=d?d(h):this.#L(h,u)}catch(e){tt(this.tagName,`Convert attribute '${r}' error with `+h)}for(let e=0;e<u.length;e++){"Boolean"===u[e].name&&o&&(h=it(h))}if(W(h))return h;let p=typeof h,f=!$(h);for(let e=0;e<u.length;e++){const t=u[e];if(p===ft(t)||h instanceof t||Object.prototype.toString.call(h)===Object.prototype.toString.call(t.prototype)){f=!0;break}}return f||tt(this.tagName,`Invalid prop '${r}'. expected '${u.map((e=>e.name||e))}' but got '${p}'`),a&&(a.call(this,h,this.__data_)||tt(this.tagName,`Invalid prop '${r}'. IsValid() check failed`)),h}#T(){let e=be.get(this.constructor)??be.get(this.__superComp);e&&c(e,((t,n)=>{let r=e[n],s=_(this,n);if(r){let e=r.prop;s=e?K(this.__data_[e]):_(this,n)}this.__data_[n]=s,delete this[n]}))}updateProps(e,t=!1){let n=Se.get(this.constructor)??Se.get(this.__superComp);if(!n)return;if(!this.__inited)return void o(this.#o,e);let r=[];c(e,((s,o)=>{let i=ht(o),a=n[i];if(!a)return;s=this.#R(n,i,s);let l=this.__data_[i];if(!t){let e=De.get(this.constructor),t=e?.get(i);if(t){if(!t.call(this,s,l,[i],s,l))return!0}else if(f(s)){let e=Oe.get(this.constructor);if(e?.has(i)&&Object.is(l,s))return!0}else if(Object.is(l,s))return!0}a.attribute&&$(s)&&!f(s)&&r.push([a,i,s]),S(this.__data_,i,s),e[i]=s,Ft(this,s,l,[i])})),o(this.#o,e),r.forEach((([e,t,n])=>{this.#A(e,t,n)}))}_initProps(e,t){this.#o=y(this.#o||{},e),this.#s=y(this.#s||{},t),c(e,((e,t)=>{if(f(e)){let n=Wt.get(e);if(n){let e=this.wrapperComponent?be.get(this.wrapperComponent?.constructor):null,r=n[0];if(e&&e[r]){let n=Se.get(this.constructor);S(n,[t,"shallow"],e[r].shallow)}}}}))}_bindSlot(e,t,n){this.#h[t]||(this.#h[t]=e,Rn.set(e,this));if(Cn(this,"slotchange",this.#v,e),!x(n)){let e=this.#t[t];e||(e=this.#t[t]={}),e.props=n}}#S=new Set;_updateSlot(e,t,n){let r=this.#h[e],s=this.#u[e];if(!s&&!r)return;let o=this.#t[e];if(t&&(o.props||(o.props={}),o.props[t]=n),s)this.#S.add(e);else{let e=r.assignedElements({flatten:!0});for(let r=0;r<e.length;r++){e[r].setAttribute(t,n+"")}}}#M(){if(!this.#i)return;let e=F(this.#h);if(x(e))return;const t=u(this.childNodes,(e=>e.nodeType===Node.COMMENT_NODE||e.nodeType===Node.TEXT_NODE&&s(e.textContent)?[]:e instanceof HTMLSlotElement?e.assignedNodes({flatten:!0}):e));let n=z(t,(t=>{if(t.nodeType===Node.TEXT_NODE&&e.includes(he))return he;if(t instanceof Element){let n=t.getAttribute("slot")||he;if(e.includes(n))return n}}));if(x(n))return void(this.slots={});c(n,((e,t)=>{if(t){for(;e.length>0;){let t=e[0];if(!(t.nodeType===Node.TEXT_NODE&&s(t.textContent)||t instanceof HTMLSlotElement&&x(t.assignedNodes({flatten:!0}))))break;e.shift()}for(;e.length>0;){let t=G(e);if(!(t.nodeType===Node.TEXT_NODE&&s(t.textContent)||t instanceof HTMLSlotElement&&x(t.assignedNodes({flatten:!0}))))break;e.pop()}}}));let r={};c(n,((e,t)=>{x(e)||(r[t]=e)})),this.slots=r}#C(e){let t=this.#u[e];if(!t)return;let n=this.#t[e];if(!this.__data_.slots)return;if(!this.__data_.slots[e])return;this.renderAsync(t,_(n,"props"));const r=this._asyncDirectives.get(t);let s=r?.buildView(t(_(n,"props"))),o=X(v(s),(e=>e.nodeType===Node.COMMENT_NODE));if(o){let t=this.#p[e];if(!x(t))for(let e=0;e<t.length;e++){const n=t[e];n.parentNode?.removeChild(n)}this.#p[e]=o,this.append(...o),this.#S.clear()}}_asyncDirectives=new WeakMap;renderAsync(e,...t){}#x(e,t,n){if(!this.__inited)return;if(Qt(this.constructor).has(e)){let t=ht(e);if(H(n)){let e=Se.get(this.constructor)??Se.get(this.__superComp);e&&(n=e[t]._defaultValue)}this.updateProps({[t]:n})}}_regSubViewDeps(e,t){this.__updateSubViewDeps||(this.__updateSubViewDeps=new Map),e.forEach((e=>{let n=this.__updateSubViewDeps.get(e);n||(n=new Set,this.__updateSubViewDeps.set(e,n)),n.add(t)}))}_getPrivateData(){return this.__data_}emit(e,t={},n){if(n&&(t.event=n),t.target=this,b(this.#s,"emit-native"))this.dispatchEvent(new CustomEvent(e,{bubbles:!1,composed:!1,cancelable:!0,detail:t}));else{let n=_(this,"__c_emit_event_");if(!this.wrapperComponent)return;!function(e,t,n,r){let s=e._subComponentEventMap.get(t),o=_(s,n);p(o)&&o.call(e,r)}(this.wrapperComponent,n,e,t)}}nextTick(e){if(!this.isMounted)return this.#g||(this.#g=[]),void this.#g.push(e);zt.pushNext(e)}forceUpdate(){let e=Ce.get(this.constructor);e&&e.size>0?e.forEach((e=>{this.#n[e]={value:void 0,chain:void 0}})):this.#n.__force__={value:void 0,chain:void 0},this.#E()}}function In(e){requestAnimationFrame((()=>requestAnimationFrame(e)))}function On(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Dn(e,t){for(;e.length<t.length;)e=e.concat(e);let n=0;return t.forEach(((t,r)=>{n=Math.max(n,On(t)+On(e[r]??"0s"))})),n}function Wn(e,t,n){if(null!=t.duration)return void setTimeout(n,t.duration);const r=function(e){const t=getComputedStyle(e),n=e=>(t[e]||"").split(", "),r=n("transitionDelay"),s=n("transitionDuration"),o=Dn(r,s);if(o>0)return{endEvent:"transitionend",timeout:o,propCount:s.length};const i=n("animationDelay"),a=n("animationDuration"),l=Dn(i,a);return l>0?{endEvent:"animationend",timeout:l,propCount:a.length}:null}(e);if(!r)return void n();let s=0,o=!1;const i=()=>{o||(o=!0,clearTimeout(l),e.removeEventListener(r.endEvent,a),n())},a=t=>{t.target===e&&++s>=r.propCount&&i()},l=setTimeout(i,r.timeout+1);e.addEventListener(r.endEvent,a)}function Hn(e,t,n,r,s){if(!t.length)return s(),()=>{};const o=`${r.name}-${n}`,i=r.hooks??{},a="enter"===n?i["before-enter"]:i["before-leave"],l="enter"===n?i.enter:i.leave,u="enter"===n?i["after-enter"]:i["after-leave"],d="enter"===n?i["enter-cancelled"]:i["leave-cancelled"];let h=!1,p=t.length;const f=t=>{h||(t.classList.remove(`${o}-active`,`${o}-to`),u?.call(e,t),0==--p&&(h=!0,s()))};return c(t,(t=>a?.call(e,t))),c(t,(e=>{e.classList.add(`${o}-from`,`${o}-active`)})),In((()=>{h||(c(t,(e=>{e.classList.remove(`${o}-from`),e.classList.add(`${o}-to`)})),c(t,(t=>{l?l.call(e,t,(()=>f(t))):Wn(t,r,(()=>f(t)))})))})),function(){h||(h=!0,c(t,(t=>{t.classList.remove(`${o}-from`,`${o}-active`,`${o}-to`),d?.call(e,t)})))}}function $n(e,t){e&&(Array.isArray(e)?c(e,(e=>t.push(e))):c(e,(e=>{Array.isArray(e)?c(e,(e=>t.push(e))):t.push(e)})))}function Un(e,t){if(!e)return;if(!t)return{name:e};const{onBeforeEnter:n,onEnter:r,onAfterEnter:s,onEnterCancelled:o,onBeforeLeave:i,onLeave:a,onAfterLeave:l,onLeaveCancelled:c,...u}=t,d={onBeforeEnter:n,onEnter:r,onAfterEnter:s,onEnterCancelled:o,onBeforeLeave:i,onLeave:a,onAfterLeave:l,onLeaveCancelled:c};return{name:e,mode:u.mode,appear:u.appear,duration:u.duration,hooks:n||r||s||o||i||a||l||c?d:void 0}}function jn(e){return e.__transition??e.__resolvedTransition??e.metaInfo?.transitionCfg}function Bn(e,t,n){const r=e.metaInfo?.transitionCfg;if(!r?.hooks)return;const s=e.varIndex;null==s||s<0||(e.__resolvedTransition={...r,hooks:r?.hooks})}function Kn(e){const t=[];return $n(e,t),t.filter((e=>e instanceof Element))}function Fn(e,t,n){if(!t.length)return;const r=`${n.name}-enter`;c(t,(t=>n.hooks?.onBeforeEnter?.call(e,t))),c(t,(e=>e.classList.add(`${r}-from`,`${r}-active`)))}function zn(e,t,n,r){if(!t.length)return r?.(),()=>{};const s=`${n.name}-enter`,o=n.hooks;let i=!1,a=t.length;const l=t=>{i||(t.classList.remove(`${s}-active`,`${s}-to`),o?.onAfterEnter?.call(e,t),0==--a&&(i=!0,r?.()))};return In((()=>{i||(c(t,(e=>{e.classList.remove(`${s}-from`),e.classList.add(`${s}-to`)})),c(t,(t=>{o?.onEnter?o.onEnter.call(e,t,(()=>l(t))):Wn(t,n,(()=>l(t)))})))})),function(){i||(i=!0,c(t,(t=>{t.classList.remove(`${s}-from`,`${s}-active`,`${s}-to`),o?.onEnterCancelled?.call(e,t)})))}}const Gn=new WeakMap;function Xn(e,t,n){c(e,(e=>{e.remove(),e instanceof Vn&&e.destroy()})),c(t,(e=>e.destroy(n)))}function qn(e){const t=Gn.get(e);t&&(Gn.delete(e),t.cancel(),t.commit())}function Qn(e,t,n,r,s,o){const i=t.filter((e=>e instanceof Element));if(!s||0===i.length)return Xn(t,n,r),void o?.onAfter?.();!1!==o?.forceFinish&&qn(e),c(i,(e=>{e.classList.remove(`${s.name}-enter-from`,`${s.name}-enter-active`,`${s.name}-enter-to`)}));let a=!1;const l={cancel:()=>{},commit:()=>{a||(a=!0,Gn.get(e)===l&&Gn.delete(e),Xn(t,n,r))}};l.cancel=Hn(r,i,"leave",s,(()=>{l.commit(),o?.onAfter?.()})),Gn.set(e,l)}function Zn(e,t,n,r){const s=`${r.name}-move`,o=[],i=t=>{if(!(t instanceof Element))return;if(n.has(t))return;const r=e.get(t);if(!r)return;const i=t.getBoundingClientRect(),a=r.left-i.left,l=r.top-i.top;if(!a&&!l)return;const c=t.style;o.push({el:t,prev:c.transform}),t.classList.add(s),c.transitionDuration="0s",c.transform=`translate(${a}px, ${l}px)`};Array.isArray(t)?c(t,i):c(t,(e=>{Array.isArray(e)?c(e,i):i(e)})),o.length&&(document.body.offsetWidth,In((()=>{c(o,(({el:e})=>{e.style.removeProperty("transition-duration"),e.style.removeProperty("transform"),Wn(e,r,(()=>e.classList.remove(s)))}))})))}var Jn,Yn,er;function tr(e,t,n,r,s,o,i,a,u,d){let h,f=ze.get(e),g=f?f[0]:"";if(g===Jn.TEXT||g===Jn.SLOT?(It.start(o),h=s(t,n,r,{renderComponent:o,slotComponent:i,varChain:a,updatedMap:d,pointType:g}),It.end(o,u)):h=s(t,n,r,{renderComponent:o,slotComponent:i,varChain:a,updatedMap:d,pointType:g}),!h)return;let[w,y,E,b,N,T]=h;if(h.length>6&&(u.__transition=h[6]),w===Yn.NONE)return;if(w===Yn.REFRESH){let e=h[1],t=p(e)?Sr(o,e.call(o,n[0])):e;return t&&xr(t,o,u.children,void 0,d),!0}let M=T;l(T)||(M=V(T,((e,t)=>e)));let C=u.__subViewId;void 0===C&&(C=u.__subViewId=_(t,"__anchor__"));let k=u.__parentViewsIdMap;void 0===k&&(k=u.__parentViewsIdMap={},c(F(t),(e=>{"__anchor__"!==e&&m(e,"__c-")&&(k[e]=_(t,[e]))})));let R=u.subViewRootNodes,A=u.children;if(w===Yn.REMOVE){let e=jn(u),t=[];c(R,(e=>{l(e)?c(e,(e=>t.push(e))):t.push(e)}));let n=A?v(A):[];u.subViewRootNodes=l(R)?[]:{},u.children=[],Qn(u,t,n,o,e)}else if(w===Yn.REPLACE){let e=jn(u),n=[];c(R,(e=>n.push(e)));let r=A?v(A):[];u.children=[],u.subViewRootNodes=l(R)?[]:{};let[,s,i]=h;u.__transitionSn=(u.__transitionSn??0)+1;let a=u.__transitionSn;if("in-out"===e?.mode)kr(t,u,s,i,o,void 0,void 0,e,(()=>{u.__transitionSn===a?Qn(u,n,r,o,e):Qn(u,n,r,o,void 0)}));else{const l=()=>kr(t,u,s,i,o,void 0,void 0,e);"out-in"===e?.mode?Qn(u,n,r,o,e,{onAfter:()=>{u.__transitionSn===a&&l()}}):(Qn(u,n,r,o,e),l())}}else if(w===Yn.UPDATE){let e=jn(u);if(x(R))return void kr(t,u,N,y,o,T,((e,t,n)=>E[n]),e);let n={},r={},s=t.parentElement.childNodes,i="__c-"+C;for(let e=0;e<s.length;e++){let t=s[e],r=t[i];if(null!=r){let e=n[r];e||(e=n[r]=[]),e.push(t)}}u.children?.forEach((e=>{r[e.key]?r[e.key].push(e):r[e.key]=[e]}));let a=b,l=E,h=new Map,p=new Map;a.forEach(((e,t)=>{h.set(e,t)})),l.forEach(((e,t)=>{p.set(e,t)}));const f=new Uint8Array(a.length),g=[];for(let e=0;e<l.length;e++){const t=h.get(l[e]);void 0!==t&&(f[t]=1,g.push(l[e]))}const m=[];for(let e=0;e<a.length;e++)f[e]||m.push(a[e]);let _;e&&(_=new Map,c(n,(e=>{c(e,(e=>{e instanceof Element&&_.set(e,e.getBoundingClientRect())}))})));let w,L=[],P=[],V=!1;if(!x(l)){let e=-1,t=[],r=[],s=0,o=0;for(;o<l.length;o++){const i=l[o];let a=h.get(i)??-1;if(a<0){let e=l[o-1];n[i]=[],L.push({refKey:e,newKey:i}),s++}else if(a>-1&&a!==o-s){if(e<0||1===Math.abs(e-a)){let e=G(t),r=0===o?er.AFTER_BEGIN:e?e.newKey:l[o-1],s=!1;0!==o&&x(n[r])&&(s=!0),t.push({newKey:i,refKey:r,refNew:s})}else{r.push({moveGroup:t,moveIndex:o+t.length});let e=l[o-1],s=!1;x(n[e])&&(s=!0),t=[],t.push({newKey:i,refKey:e,refNew:s})}e=a}}if(t.length>0&&r.push({moveGroup:t,moveIndex:o+t.length}),r.length>0){V=!0;let e=r.sort(((e,t)=>e.moveGroup.length-t.moveGroup.length));if(e.length<2){let{moveGroup:t}=e[0];if(t.length>1){let e=G(t).refKey;t[t.length-2].newKey===e&&(t=q(t))}nr(t,n,b)}else e.forEach((({moveGroup:e})=>{e[0].refNew?P.push(e):nr(e,n,b)}))}}let O=[];L.length>0&&(L.forEach((e=>{let t=p.get(e.newKey)??-1,r=M[t],s=Sr(o,N.call(o,r,e.newKey,t)),[i,a]=Cr(o,y,s);e.fragment=i,c(a,(t=>{t.key=e.newKey,u.children?.push(t)}));let l=v(i.childNodes),d=n[e.newKey],h=e.newKey+"";c(l,(e=>{d.push(e),S(e,"__c-"+C,h),c(k,((t,n)=>S(e,n,t))),e instanceof Element&&O.push(e)}))})),e&&O.length>0&&Fn(o,O,e),Mn(o),w=function(e){let t,n=[];return e.forEach((e=>{let r=G(n);r&&t===e.refKey?(r.group||(r.group=[r.fragment]),r.group.push(e.fragment)):n.push(e),t=e.newKey})),n}(L),w.forEach(((e,r)=>{let s=e.fragment,o=n[e.refKey??b[0]],i=I(o),a=G(o);if(e.group){let t=document.createDocumentFragment();t.append(...e.group),s=t}i===t?i.before(s):e.refKey?"string"==typeof i||a.after(s):i.before(s)}))),c(P,(e=>{nr(e,n,b)}));let D=e?new Set:void 0,W=[],H=[];if(m.forEach((t=>{let s=n[t]||[],o=r[t]||[];e?(c(s,(e=>{delete e["__c-"+C]})),c(o,(e=>{let t=A.indexOf(e);t>-1&&A.splice(t,1)})),c(s,(e=>{W.push(e),e instanceof Element&&D.add(e)})),c(o,(e=>H.push(e)))):(c(s,(e=>{e.parentNode?.removeChild(e)})),c(o,(e=>{e.destroy()})))})),W.length>0&&Qn(u,W,H,o,e,{forceFinish:!1}),e&&_&&(V||m.length>0||w)&&Zn(_,n,D,e),e&&O.length>0&&zn(o,O,e),V||m.length>0||w){const e=z(A,(e=>e.key));let t=[],n=0;l.forEach((r=>{e[r]&&e[r].forEach((e=>{e.varIndex=n++,t.push(e)}))})),Q(A,t).forEach((e=>e.destroy(o))),u.children=t}if(V||m.length>0||w){let e={};c(M,((t,r)=>{let s=E[r],o=n[s];e[s]=o})),u.subViewRootNodes=e}if(g.length>0){let e=[];c(T,((t,n,r,s)=>{let i=t,a=Sr(o,N.call(o,i,n,s));for(let t=0;t<a.length;t++)e.push(a[t])})),xr(e,o,u.children,void 0,d)}}return!0}function nr(e,t,n){e.forEach((({refKey:e,newKey:r})=>{let s=t[r];if(e===er.AFTER_BEGIN){let e=t[n[0]];I(e).before(...s)}else if(t[e]){let n=t[e],r=G(n);r?.after(...s)}}))}function rr(e,t){return ze.set(e,t),(...t)=>[e(...t),t,e,It.popDirectiveQ()]}function sr(e,t,n){ze.get(e)}!function(e){e.ATTR="attr",e.PROP="prop",e.TEXT="text",e.SLOT="slot",e.TAG="tag"}(Jn||(Jn={})),function(e){e.NONE="NONE",e.REFRESH="REFRESH",e.REMOVE="REMOVE",e.REPLACE="REPLACE",e.UPDATE="UPDATE",e.INIT="INIT"}(Yn||(Yn={})),function(e){e.AFTER_BEGIN="afterbegin"}(er||(er={}));const or=new RegExp(`([a-z0-9"'${Je}])\\s*>\\s*<`,"img");class ir{updatePointMetas;fragment;emptyEvents;upmMap;slotNodeMap;skipVarIndexSet;constructor(e,t,n){let[r,u]=this.parseTemplate(e);n&&o(n,u),this.updatePointMetas=[],this.emptyEvents={},this.skipVarIndexSet=new Set,this.fragment=function(e,t,n,r,o,u){const d=document.createElement("template");d.innerHTML=t;const h=new Map;t.includes("<transition")&&(!function(e,t,n,r){const s=e.querySelectorAll("transition");for(let e=0;e<s.length;e++){const o=s[e],i=Tr(o,n,r);i&&v(o.childNodes).forEach((e=>{e.nodeType===Node.TEXT_NODE&&(e.nodeValue||"").includes(Je)&&t.set(e,i)}));const a=o.parentNode;a&&v(o.childNodes).forEach((e=>a.insertBefore(e,o))),o.remove()}}(d.content,h,n,u),n=Y(n));const f=document.createNodeIterator(d.content,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT);let g,m,_=0,w=-1,y=-1;for(;g=f.nextNode();)if(w++,m&&!m.contains(g)&&(m=void 0,y=-1),g instanceof HTMLElement||g instanceof SVGElement){lt(g)&&(m=g,y=w);let t={};const c=g.attributes,u=[];for(let d=0;d<c.length;d++){let h=c[d].name,f=c[d].value;if(h!==wr)if(mr.test(h)){let t=n[_];if(l(t)&&p(t[0])){let[,,n,s]=t;sr(n,Jn.TAG,r.tagName);let o=new cr(_);o.isDirective=!0,o.directiveType=Jn.TAG,o.nodeSn=w,o.directiveVarChain=s,m&&(o.slotNodeSn=y),e.push(o),_++}u.push(h)}else if(h[0]!==ur)if(h!==gr)if(G(h)!==dr){if(f.includes(Je)){let t=new cr(_);if(t.attrName=h.replace(/\.|\?|@/,""),t.nodeSn=w,m&&(t.slotNodeSn=y),h[0]===dr||h[0]===hr||h[0]===pr){if(h[0]===hr)t.isToggleProp=!0,t.attrName=h.substring(1);else if(h[0]===pr){t.isRefAttr=!0;let e=h.substring(1);const[n,r]=e.split(fr);let s=n;switch(r){case"camel":s=a(s);break;case"kebab":s=i(s);break;case"snake":s=ee(s)}t.attrName=s}else{let e=ye[g.tagName.toLowerCase()];Se.get(e);{let e=a(h.substring(1));t.isProp=!0,t.attrName=e}}u.push(h)}else t.attrTmpl=f,t.isPureTmpl=f===Je+_;e.push(t),_++}}else{t[h.substring(0,h.length-1)]=f,u.push(h);let e=new cr(_);e.attrName=h.substring(0,h.length-1),e.nodeSn=w,e.isPropPerfix=!0}else{if(mr.test(f)){n[_];let t=new cr(_);t.isRef=!0,t.nodeSn=w,e.push(t),_++}u.push(h)}else{let t=h.substring(1);if(mr.test(f)){let r=new cr(_);r.isEvent=!0,r.attrName=t,r.nodeSn=w,e.push(r),n[_],_++}else if(s(f)){let e=o[w];e||(e=o[w]=[]),e.push(t)}u.push(h)}}for(let e=0;e<u.length;e++)g.removeAttribute(u[e])}else{let t=U(g.nodeValue).split(mr);if(t.length<2)continue;c(te(t.length-1),(o=>{let i=U(t[o]);if(!s(i)){let e=document.createTextNode(i);g.parentNode.insertBefore(e,g),w++}let a=document.createTextNode("");g.parentNode.insertBefore(a,g);let c=new cr(_);c.isText=!0,c.nodeSn=w,e.push(c);let u=n[_];if(l(u)&&p(u[0])){let e=m?Jn.SLOT:Jn.TEXT;c.isDirective=!0,c.directiveType=e,m&&(c.slotNodeSn=y);const t=h.get(g);t&&(c.transitionCfg=t);let[,,n]=u;sr(n,0,r.tagName),u=void 0}_++,w++})),w--;let o=U(G(t));if(s(o)){let e=g.previousSibling;g.parentNode.removeChild(g),g=e}else g.nodeValue=o,w++}return d.content}(this.updatePointMetas,r,u,t,this.emptyEvents,this.skipVarIndexSet),this.upmMap={},this.slotNodeMap={},this.updatePointMetas.forEach(((e,t)=>{this.upmMap[e.nodeSn]||(this.upmMap[e.nodeSn]=[]),this.upmMap[e.nodeSn].push(e),e.slotNodeSn>-1&&(this.slotNodeMap[e.slotNodeSn]=null)}))}parseTemplate(e){let t="",n=g(e.vars),r=e.strings.length-1,s=e.vars.length-1,o=0;for(let i=0;i<=r;i++){const r=e.strings[i];let a=o<n.length?n[o]:"";if(a instanceof ar){let[e,t]=this.parseTemplate(a);a=e,n.splice(o,1,...t),o+=t.length-1}else a=i>s?"":Je+o;o++,t=t+r+a}return t=t.replace(or,"$1><").trim(),t=br(t),[t,n]}}class ar{strings;vars;constructor(e,t){this.strings=e,this.vars=t}getKey(){let e=this.vars,t="";return c(this.strings,((n,r)=>{if(pe.test(n))return t=Z(e[r]),!1})),t}getKeys(){let e=this.vars,t=[];for(let n=0;n<this.strings.length;n++){const r=this.strings[n];if(pe.test(r)){let r=Z(e[n]);t.push(r)}}return x(t)&&e.forEach((e=>{if(e instanceof ar){let n=e.getKey();t.push(n)}})),t}append(e){this.strings=g(this.strings);let t=G(this.strings);return e.strings.forEach(((e,n)=>{0!=n?this.strings.push(e):this.strings[this.strings.length-1]=t+e})),this.vars=g(this.vars,e.vars),this}insert(e,t){this.strings=g(this.strings);let n=t.strings[0];return this.strings[e]+=n,this.strings.splice(e+1,0,...t.strings.slice(1)),this.vars.splice(e,0,...t.vars),this}getHTML(e){let t=[],n=new ir(this,e,t),[r,s]=Cr(e,n,t);return J(r.childNodes,((e,t)=>e+(t.nodeType==Node.TEXT_NODE?t.nodeValue:t.outerHTML??"")),"")}destroy(){this.strings=this.vars=null}}class lr{metaInfo;key;varIndex;value;node;subViewRootNodes;__destroyed=!1;children;parent;__slotCompResolved=!1;__slotComp=null;__subViewId;__parentViewsIdMap;__transition;__resolvedTransition;__transitionSn;constructor(e){this.varIndex=e}getSlotComponent(e){if(!this.__slotCompResolved&&(this.__slotCompResolved=!0,this.node)){let t=N(this.node,(e=>e.host&&e.host instanceof Vn),"parentNode");t&&t.host!==e&&(this.__slotComp=t.host)}return this.__slotComp}static createFrom(e){let t=new lr(e.varIndex);return t.metaInfo=e,t}destroy(e){if(this.__destroyed)return;this.__destroyed=!0;let t=this.node,n=this.children;if(this.node=this.value=this.children=this.parent=this.metaInfo=null,this.__slotComp=null,this.__parentViewsIdMap=void 0,this.__subViewId=void 0,!t)return;let r=n;r?.forEach(((t,n)=>{t.destroy(e)})),t instanceof Vn&&t.destroy(),e&&t instanceof Element&&at.clear(t),t?.remove()}insert(e){e.parent=this,this.children||(this.children=[]),this.children.push(e)}}class cr{varIndex;attrName;attrTmpl;isPureTmpl=!1;isText=!1;isDirective=!1;directiveType;directiveVarChain;isProp=!1;isPropPerfix=!1;isToggleProp=!1;isPlaceholder=!1;isEvent=!1;isRef=!1;isKey=!1;isRefAttr=!1;isComponent=!1;isSlot=!1;nodeSn=-1;slotNodeSn=-1;transitionCfg;constructor(e){this.varIndex=e}}const ur="@",dr=".",hr="?",pr="*",fr=":",gr="ref",mr=new RegExp(`${Je}\\d+`),_r=/(<\/?)\s*([A-Z][A-Za-z0-9]*)([\s>])/gm,vr=/\s+([\.?@*])?((?:[a-zA-Z]*[A-Z][^\s<>="']+))(?=[\s=>])/gm,wr="slot-props",yr=new Map;let Er=0;function br(e){return n(e)?e=(e=e.replace(vr,((e,t,n)=>` ${t??""}${i(n)}`))).replace(_r,((e,t,n,r)=>t+we[n]+r)):e+""}function Sr(e,t){const n=[],r=yr.get(e.constructor)?.skipVarIndexSet,s=e=>{const t=e.strings.length-1;for(let o=0;o<t;o++){if(r?.has(o))continue;const t=e.vars[o];t instanceof ar?s(t):n.push(t??"")}};return s(t),n}const Nr=new RegExp(`${Je}(\\d+)`);function Tr(e,t,n){let r,s,o,i,a;return c(e.attributes,(e=>{let l=e.nodeValue;if(mr.test(l??"")){const r=Nr.exec(e.value.trim());let s=parseInt(r[1]);l=t[s],t[s]=null,n.add(s)}let c=e.nodeName;if(c[0]===ur)return a||(a={}),void(a[c.substring(1)]=l);switch(c){case"name":r=l;break;case"mode":s=l;break;case"appear":o="true"===l||""===l;break;case"duration":if(l){const e=parseFloat(l);!isNaN(e)&&e>=0&&(i=e)}}})),r?{name:r,mode:s,appear:o,duration:i,hooks:a}:void 0}function Mr(e,t){let n=e.childNodes;for(let e=0,r=n.length;e<r;e++){let r=n[e],s=r.nodeType;s===Node.ELEMENT_NODE?(t.push(r),Mr(r,t)):s===Node.TEXT_NODE&&t.push(r)}}function Cr(e,t,n){const{fragment:r,updatePointMetas:s,emptyEvents:o,upmMap:i,slotNodeMap:a}=t;let l,c=r.cloneNode(!0),u=[];t.skipVarIndexSet?.size&&(n=n.filter(((e,n)=>!t.skipVarIndexSet?.has(n))));let d=[],h=[],p=Nn(e);const f=[];Mr(c,f);let g=-1,m=0;for(let t=0;t<f.length;t++){l=f[t],g++,null===a[g]&&(a[g]=l);let r,s=o[g];s&&s.forEach((e=>{p.push([e,k,l])}));const c=i[g];c&&c.forEach((e=>{let t=n[m++],s=lr.createFrom(e);if(s.node=l,s.value=t,e.isProp||e.isPropPerfix)(r??(r={}))[e.attrName]=t;else if(e.isRef)t.__setRef(new WeakRef(l));else if(e.isEvent)p.push([e.attrName,t,l]);else if(e.isToggleProp)s.value=!!t,l.toggleAttribute(e.attrName,s.value);else if(e.isRefAttr)l.setAttribute(e.attrName,t);else if(e.isText)if(e.isDirective){let n=e.attrName,r=a[e.slotNodeSn],[o,i,,c]=t;d.push([l,n,r,o,i,c,s])}else e.isPlaceholder||(l.textContent=t);else if(e.isDirective){let n=a[e.slotNodeSn],[r,s,,o]=t,i=e.attrName;x(o)&&M(e.directiveVarChain)>0&&(o=e.directiveVarChain),h.push([l,i,n,r,s,o,e.directiveType])}else l.setAttribute(e.attrName,e.attrTmpl.replace(mr,t));u.push(s)})),l instanceof HTMLSlotElement?e._bindSlot(l,l.name||"default",r):l instanceof HTMLElement&&lt(l)&&(Qe.set(l,e),r&&ct(e,l,r))}return d.forEach((([t,n,r,s,o,i,a])=>{t.__anchor__=Er++,It.start(e);let l=s(t,o,void 0,{renderComponent:e,slotComponent:r,varChain:i,attrName:n,pointType:a.directiveType});if(It.end(e,a),l&&l.length>6&&(a.__transition=l[6]),l&&l.length>1&&l[1]&&l[2]){let[,n,r,s,o]=l;Bn(a);const i=jn(a);kr(t,a,n,r,e,s,o,i?.appear?i:void 0)}})),h.forEach((([t,n,r,s,o,i,a])=>{s(t,o,void 0,{renderComponent:e,slotComponent:r,varChain:i,attrName:n,pointType:a})})),[c,u]}function kr(e,t,n,r,s,o,i,a,l){let u=[],d=i?{}:void 0;o=o??[0];let h=i?document.createDocumentFragment():void 0,p=_(e,"__anchor__");c(o,((e,o,a,l)=>{It.start(s);let c=Sr(s,n.call(s,e,o,l));It.end(s);let[f,g]=Cr(s,r,c),m=v(f.childNodes);if(i){let t=i.call(s,e,o,l)+"";m.forEach((e=>{e["__c-"+p]=t})),d[t]=m;for(let e=0;e<g.length;e++)g[e].key=t,u.push(g[e]);h.append(f)}else h=f,t.subViewRootNodes=m,g.forEach((e=>{t.insert(e)}))})),d&&(t.subViewRootNodes=d,u.forEach(((e,n)=>{e.varIndex=n,t.insert(e)}))),(h?h.childNodes.length:0)>0&&(a&&Fn(s,Kn(t.subViewRootNodes),a),Mn(s),e.parentNode.insertBefore(h,e)),a?zn(s,Kn(t.subViewRootNodes),a,l):l?.()}function xr(e,t,n,r,o,i){if(s(e))return;if(!n)return;let a;if(i&&i.length===e.length){a=new Uint8Array(e.length);for(let t=0;t<e.length;t++){const n=e[t];n===i[t]&&"object"!=typeof n&&(a[t]=1)}}for(let s=0;s<n.length;s++){const i=n[s];let c=i.varIndex;if(c<0)continue;let u=i.metaInfo;if(u.isPlaceholder||u.isPropPerfix||u.isRef||u.isEvent||u.isRefAttr||u.isKey)continue;if(i.__destroyed)continue;if(a&&a[c])continue;let d,h=i.value,p=i.node;if(!p)continue;if(d=e[c],!f(h)&&h===d)continue;let g=p;if(u.isDirective){let[e,n,s,a]=i.value;if(!l(d))continue;let c=i.getSlotComponent(t),[,u]=d;tr(s,p,u,n,e,t,c,a,i,o)&&r?.delete(i)}else if(u.isToggleProp){if(!!d===h)continue;g.toggleAttribute(u.attrName,!!d),g instanceof Vn&&g.updateProps({[u.attrName]:!!d})}else if(u.isProp){if(!f(d)&&d===h)continue;p instanceof Vn?p.updateProps({[u.attrName]:d}):p instanceof HTMLSlotElement&&t._updateSlot(p.getAttribute("name")||"default",u.attrName,d)}else if(u.attrName)h!=d&&("value"===u.attrName&&p instanceof HTMLInputElement?p.value=d:u.isPureTmpl?p.setAttribute(u.attrName,d+""):p.setAttribute(u.attrName,ne(u.attrTmpl,mr,d+"")));else if(u.isText){let e=Z(d??"");e!==p.textContent&&(p.textContent=e)}i.value=d}}function Rr(e,...t){return new ar(n(e)?[e]:e,t)}function Ar(e,...t){if(Ue.has(e))return Ue.get(e);let n=new Ye(e,t),r=e.join("");return x(r)||Ue.set(e,n),n}class Lr{__ref;get current(){return this.__ref?.deref()}__setRef(e){this.__ref=e}}function Pr(){return new Lr}var Vr;!function(e){e.CLASS="class",e.FIELD="field",e.METHOD="method"}(Vr||(Vr={}));class Ir{static get priority(){return 0}created(e,...t){}beforeMount(e,t,...n){}mounted(e,t,...n){}updated(e,t){}beforeDestroy(e,...t){}}class Or{metadata;decorator;key;priority=0;constructor(e,t,n){this.metadata=t,this.decorator=new n(...e),this.priority=_(n,"priority",0)}dispose(){this.metadata=null,this.decorator=null}create(e){let t,n=this.decorator.targets,s=this.metadata[1];f(s)&&$(_(s,"configurable"))?t=Vr.METHOD:r(this.metadata[1])&&(t=Vr.FIELD),!x(n)&&t&&n.includes(t)?this.decorator.created(e,...this.metadata):et(`Decorator '${this.decorator.constructor.name}' is out of targets, expect '${n.join(",")}' bug got '${t}'`)}beforeMount(e,t){this.decorator.beforeMount(e,t,...this.metadata)}mounted(e,t){this.decorator.mounted(e,t,...this.metadata)}updated(e,t){this.decorator.updated(e,t)}destroy(e){this.decorator.beforeDestroy(e,...this.metadata)}}function Dr(e){return(...t)=>(...n)=>{let r=n[0].constructor,s=Te.get(r);if(!Te.has(r)){let e=Object.getPrototypeOf(r);s=e?g(Te.get(e)??[]):[],Te.set(r,s)}let o=new Or(t,n.splice(1),e);return s?.push(o),s?.sort(((e,t)=>t.priority-e.priority)),o}}function Wr(e){return(...t)=>{if(!t||t.length<1)return;let n=t[0].constructor,r=Te.get(n);if(!Te.has(n)){let e=Object.getPrototypeOf(n);r=e?g(Te.get(e)??[]):[],Te.set(n,r)}let s=new Or([],t.splice(1),e);return r?.push(s),r?.sort(((e,t)=>t.priority-e.priority)),s}}function Hr(e,t,n){return Ee.has(e.constructor)||Ee.set(e.constructor,{}),Ee.get(e.constructor)[t]=n.get,delete e[t],Reflect.defineProperty(e,t,{get(){return It.isCollection()&&It.getVarPathList().push(t),Reflect.get(this[Ze],t)}}),Reflect.getOwnPropertyDescriptor(e,t)}const $r=Dr(class extends Ir{static get priority(){return Number.MAX_VALUE}created(e,t,...n){let r=_(e,t);S(e,t,A(r,this.wait,this.immediate)),S(e,t+"_$__",r)}beforeDestroy(e,t){S(e,t,null),S(e,t+"_$__",null)}get targets(){return[Vr.METHOD]}wait;immediate;constructor(e,t=!1){super(),this.wait=e,this.immediate=t}});function Ur(...e){return t=>{let n=ve.get(t);n||(n=new Set,ve.set(t,n)),e.forEach((e=>n.add(e)))}}function jr(e,t){return(n,r,s)=>{if(!_e.has(n.constructor)){let e=[],t=n.constructor;for(;(t=st(t))!==Vn;)e=g(e,_e.get(t)??[]);_e.set(n.constructor,e)}_e.get(n.constructor)?.push({name:e,targetFn:t,fnName:r})}}const Br=Dr(class extends Ir{static get priority(){return Number.MAX_VALUE}created(e,t,n,...r){let s=re(_(e,n),e);S(e,n,P(s)),S(e,n+"_$__",s)}beforeDestroy(e,t){S(e,t,null),S(e,t+"_$__",null)}get targets(){return[Vr.METHOD]}});var Kr;!function(e){e.ONCE="once"}(Kr||(Kr={}));const Fr=new WeakMap;class zr extends Ir{static get priority(){return Number.MAX_VALUE}get targets(){return[Vr.FIELD]}selector;cache;constructor(e,t){super(),this.selector=e,this.cache=t}static getKey(e){return e}getter(e){let t=e?.shadowRoot?.querySelector(this.selector),n=Fr.get(e);n||(n=new Map,Fr.set(e,n)),n.set(this.selector,t)}mounted(e,t,n,...r){const s=this;let o=new WeakRef(e);Reflect.defineProperty(e,n,{configurable:!0,get(){let e=o.deref();return Fr.has(e)&&Fr.get(e)?.has(s.selector)&&s.cache===Kr.ONCE||s.getter(e),Fr.get(e)?.get(s.selector)}})}beforeDestroy(e,t){Fr.get(e)?.clear(),Fr.delete(e)}updated(e,t){this.cache!==Kr.ONCE&&this.getter(e)}}const Gr=Dr(zr),Xr=Dr(class extends zr{getter(e){let t=e.shadowRoot?.querySelectorAll(this.selector),n=Fr.get(e);n||(n=new Map,Fr.set(e,n)),n.set(this.selector,t)}});function qr(e){if(1===arguments.length)return(t,n)=>{Qr(t,n,e)};Qr(arguments[0],arguments[1],{prop:""})}function Qr(e,t,n){if(!be.has(e.constructor)){const t={};let n=e.constructor;for(;(n=st(n))!==Vn;)y(t,be.get(n)??{});be.set(e.constructor,t)}if(n.shallow=n.shallow||!1,S(be.get(e.constructor),t,n),n.hasChanged){let r=De.get(e.constructor);r||(r=new Map,De.set(e.constructor,r)),r.set(t,n.hasChanged)}if(n.shallow){let n=Ie.get(e.constructor);n||(n=new Set,Ie.set(e.constructor,n)),n.add(t)}Reflect.defineProperty(e,t,{get(){return Mt(t,this)},set(e){Ct(t,e,this)}})}function Zr(e,t,n){Qr(e.prototype,t,n||{prop:""})}function Jr(e,t=!1){return n=>{n&&(t?customElements.define(e,n):(we[n.name]=e,ye[e]=n))}}const Yr=Dr(class extends Ir{static get priority(){return Number.MAX_VALUE}created(e,t,...n){let r=_(e,t);S(e,t,L(r,this.wait)),S(e,t+"_$__",r)}beforeDestroy(e,t){S(e,t,null),S(e,t+"_$__",null)}get targets(){return[Vr.METHOD]}wait;constructor(e){super(),this.wait=e}});function es(e,t){return(n,r)=>{let s=Le.get(n.constructor),i=Ae.get(n.constructor),a=ke.get(n.constructor),c=xe.get(n.constructor),u=Re.get(n.constructor),d=Pe.get(n.constructor);if(!u){u=new Map,Re.set(n.constructor,u),c=[],xe.set(n.constructor,c),a=new Map,ke.set(n.constructor,a),s={},Le.set(n.constructor,s),i={},Ae.set(n.constructor,i),d={},Pe.set(n.constructor,d);let e=st(n.constructor);for(;e;)Re.has(e)&&(Re.get(e)?.forEach(((e,t)=>{u.set(t,e)})),c.push(...xe.get(e)),ke.get(e)?.forEach(((e,t)=>{a.set(t,e)})),o(s,Le.get(e)),o(i,Ae.get(e)),o(d,Pe.get(e))),e=st(e)}(l(e)?e:[e]).forEach((e=>{let o=n[r];_(t,"once",!1)&&a.set(e,!1);let l=_(t,"deep",!1),h=e.split(".")[0],p=u.get(h);if(p||(p=[],u.set(h,p)),p.includes(e)||p.push(e),l?(s[e]=s[e]??new Set,s[e].add(o),c.push(e)):(i[e]=i[e]??new Set,i[e].add(o)),_(t,"immediate",!1)){let t=d[e];t||(t=d[e]=new Set),t.add(o)}}))}}const ts=new WeakMap;function ns(e){if("string"==typeof e)return e.trim();if(se(e)){let t="";return c(e,((e,n)=>{e&&(t+=(t?" ":"")+n)})),t}if(Array.isArray(e)){let t="";return c(e,(e=>{const n=ns(e);n&&(t+=(t?" ":"")+n)})),t}return""}const rs=rr((function(e){return(e,[t],n)=>{const r=e,s=ns(t),o=ts.get(r)??"";s!==o&&(o&&r.classList.remove(...o.split(" ").filter(Boolean)),s&&r.classList.add(...s.split(" ").filter(Boolean)),ts.set(r,s))}}),[Jn.TAG]),ss=new Map,os=new WeakMap,is=new WeakMap,as=new Set(["width","height","min-width","max-width","min-height","max-height","padding","padding-top","padding-right","padding-bottom","padding-left","margin","margin-top","margin-right","margin-bottom","margin-left","border-width","border-radius","outline-width","outline-offset","top","right","bottom","left","inset","inset-block","inset-inline","inset-block-start","inset-block-end","inset-inline-start","inset-inline-end","font-size","letter-spacing","word-spacing","text-indent","gap","row-gap","column-gap","grid-gap","grid-row-gap","grid-column-gap"]);function ls(e){if(x(e))return;let t={value:""};if(f(e))t=e;else{if(!n(e)&&!ie(e))return;t.value=e,t.important=!1}return t}function cs(e){let t={};if(n(e)){const n=e.trim();return n&&n.split(";").filter((e=>e.trim())).forEach((e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n).trim();let s=ls(e.slice(n+1).trim());s&&(t[r]=s)}})),t}let r={};if(Array.isArray(e))for(const t of e){const e=cs(t);Object.assign(r,e)}else f(e)&&(r=e);return c(r,((e,n)=>{let r=function(e){if(e.startsWith("--"))return e;if(ss.has(e))return ss.get(e);const t=i(e);return ss.set(e,t),t}(n),s=ls(e);s&&(as.has(r)&&!r.startsWith("--")&&oe(s.value)&&(s.value=s.value+"px"),t[r]=s)})),t}const us=rr((function(e){return(e,t,n)=>{let r=e;const s=cs(t[0]),o=new Set(Object.keys(s)),i=os.get(r);let a=is.get(r);a||(a={},is.set(r,a)),c(i,(e=>{o.has(e)||(r.style.removeProperty(e),delete a[e])})),c(s,((e,t)=>{const n=e.value+""+(e.important?" !important":"");a[t]!==n&&(r.style.setProperty(t,e.value+"",e.important?"important":""),a[t]=n)})),os.set(r,o)}}),[Jn.TAG]),ds=["key","ref","emit-native"],hs=new WeakMap,ps=new WeakMap,fs=new WeakMap,gs=new WeakMap,ms="class",_s="style";const vs=rr((function(e){return(e,[t],n,{renderComponent:r})=>{let s=e;if(function(e,t,n){const r=n?ns(t):"",s=ps.get(e)??"";r!==s&&(s&&e.classList.remove(...s.split(" ").filter(Boolean)),r&&e.classList.add(...r.split(" ").filter(Boolean)),ps.set(e,r))}(s,t[ms],ms in t),function(e,t,n){const r=n?cs(t):{},s=new Set(Object.keys(r)),o=fs.get(e);let i=gs.get(e);i||(i={},gs.set(e,i)),o&&o.forEach((t=>{s.has(t)||(e.style.removeProperty(t),delete i[t])})),c(r,((t,n)=>{const r=t.value+""+(t.important?" !important":"");i[n]!==r&&(e.style.setProperty(n,t.value+"",t.important?"important":""),i[n]=r)})),fs.set(e,s)}(s,t[_s],_s in t),n){let e=hs.get(s);return e||(e={},hs.set(s,e)),void c(t,((t,n)=>{ds.includes(n)||n===ms||n===_s||(e[n]!==t||null!==t&&"object"==typeof t)&&(s.setAttribute(n,t),e[n]=t)}))}if(lt(s)){let e={},n=Se.get(s.constructor),o={};hs.set(s,o),c(t,((t,r)=>{if(ds.includes(r)||r===ms||r===_s)return;let i=a(r);(n?n[i]:void 0)?e[r]=t:(s.setAttribute(r,t+""),o[r]=t)})),ct(r,s,e)}else{let e={};hs.set(s,e),c(t,((t,n)=>{ds.includes(n)||n===ms||n===_s||(s.setAttribute(n,t),e[n]=t)}))}}}),[Jn.TAG]),ws=new WeakMap,ys=new WeakMap,Es=new WeakMap;function bs(e,t){let n=Wt.get(e);if(!n||0===n.length)return null;let r=n.join("."),s=Dt.get(t),o=s?.[n[0]];return{proxyRoot:r,ctxRoot:void 0!==o?[o,...n.slice(1)].join("."):r}}function Ss(e,t,n){let r=It.getVarPathList(),s=t+"."+n;for(let n=e;n<r.length;n++){let e=r[n];if(e===t||m(e,t+".")&&e!==s&&!m(e,s+"."))return!0}return!1}function Ns(e,t,n,r,s,o){let i=[],a=[],l=!1,u=void 0!==r&&It.isCollection(),d=0;return c(e,((e,s)=>{let o=u?It.getVarPathList().length:0,c=Sr(n,t.call(n,e,s));u&&!l&&(l=Ss(o,r,d)),a.push(c);for(let e=0;e<c.length;e++)i.push(c[e]);d++})),void 0!==o&&void 0!==r&&void 0!==s&&(u?Es.set(o,{keys:ws.get(o),varsPerItem:a,cross:l}):Es.delete(o)),i}const Ts=rr((function(e,t,n){return(e,s,o,{renderComponent:i,updatedMap:a})=>{let l=s[0];if(x(l)&&r(o))return[Yn.INIT];let u=ws.get(e);if(o&&u&&!x(l)&&o[0]===l){let r=bs(l,i);if(r){let s=function(e,t){if(!e)return null;let n=Object.keys(e);if(0===n.length)return null;let r=t+".",s=new Set;for(let o=0;o<n.length;o++){let i=n[o];if(i===t||m(t,i+".")){if(e[i].end)return null;continue}if(!m(i,r))return null;let a=i.slice(r.length),l=a.indexOf("."),c=l<0?a:a.slice(0,l),u=Number(c);if(!Number.isInteger(u)||u<0||String(u)!==c)return null;s.add(u)}return s}(a,r.ctxRoot);if(s){let o=l,a=!1;for(let e of s){if(e>=o.length){a=!0;break}let n=t(o[e],e,e);if((W(n)?null:"string"==typeof n?n:String(n))!==u[e]){a=!0;break}}if(!a){let t=Es.get(e);if(t&&t.keys===u&&!t.cross&&t.varsPerItem.length===u.length){let e=It.isCollection(),a=!1;for(let l of s){let s=e?It.getVarPathList().length:0;if(t.varsPerItem[l]=Sr(i,n.call(i,o[l],l)),e&&!t.cross&&Ss(s,r.proxyRoot,l)){t.cross=!0,a=!0;break}}if(!a){let e=[];for(let n=0;n<t.varsPerItem.length;n++){let r=t.varsPerItem[n];for(let t=0;t<r.length;t++)e.push(r[t])}return[Yn.REFRESH,e]}}return[Yn.REFRESH,Ns(l,n,i,r.proxyRoot,r.ctxRoot,e)]}}}}const d=[],h=new Set;let p,f=0;if(c(l,((e,n)=>{let r=t(e,n,f++);if(W(r))return;const s="string"==typeof r?r:String(r);h.has(s)?et(`forEach - duplicate key in '${d}'`):(h.add(s),d.push(s))})),ws.set(e,d),o){if(x(d))return[Yn.REMOVE];if(u&&d.length===u.length&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(d,u)){let t=bs(l,i);return[Yn.REFRESH,t?Ns(l,n,i,t.proxyRoot,t.ctxRoot,e):Ns(l,n,i)]}}Es.delete(e);let g=s[2];if(ys.has(e))p=ys.get(e);else{let t=F(l)[0],n=l[t],r=g.call(i,n,t,0);p=new ir(r,i),ys.set(e,p)}return o?[Yn.UPDATE,p,d,u,g,l]:[Yn.INIT,n,p,l,t]}}),[Jn.TEXT,Jn.SLOT]);let Ms=document.createElement("template"),Cs=new WeakMap;const ks=rr((function(e){return(e,t,n,{renderComponent:r})=>{if(!(n&&t[0]==n[0]||W(t[0])))if(ae(e))e.innerHTML=br(t[0]);else{let r=Cs.get(e);r||(r=document.createTextNode(""),e.parentNode?.insertBefore(r,e),Cs.set(e,r)),Ms.innerHTML=br(t[0]),s(n)||at.remove(r,e),e.before(Ms.content.cloneNode(!0))}}}),[Jn.TAG,Jn.TEXT,Jn.SLOT]),xs=new WeakMap,Rs=new WeakMap,As=new WeakMap,Ls=rr((function(e,t,n){return(e,[t,n,r],s,{renderComponent:o})=>{let i;if(s){if(!!t==!!s[0]){let t=xs.get(e);return[Yn.REFRESH,t]}let a=t?n:r;return t?(i=Rs.get(e),i||(i=new ir(a.call(o,t),o),Rs.set(e,i))):(i=As.get(e),i||(i=new ir(a.call(o,t),o),As.set(e,i))),[Yn.REPLACE,a,i]}let a=t?n:r;return t?(i=Rs.get(e),i||(i=new ir(a.call(o,t),o),Rs.set(e,i))):(i=As.get(e),i||(i=new ir(a.call(o,t),o),As.set(e,i))),xs.set(e,a),[Yn.INIT,a,i]}}),[Jn.TEXT,Jn.SLOT]),Ps=new WeakMap,Vs=rr((function(e,t){return(e,[t,n],r,{renderComponent:s})=>{let o=Ps.get(e);return t&&!Ps.has(e)&&(o=new ir(n.call(s),s),Ps.set(e,o)),r?r[0]?t?[Yn.REFRESH,n]:[Yn.REMOVE]:t?[Yn.REPLACE,n,o]:[Yn.NONE]:[Yn.INIT,...t?[n,o]:[]]}}),[Jn.TEXT,Jn.SLOT]);var Is;!function(e){e.CHANGE="change",e.INPUT="input"}(Is||(Is={}));const Os=rr((function(e,t="value",r){return(e,[t,r,s],o,{varChain:i,renderComponent:a})=>{r=r??"value";const l=e;if(o){const e=o[0],n=t;if(!f(n)&&Object.is(n,e))return;if(l instanceof Vn)l.updateProps({[r]:n});else if(l instanceof HTMLTextAreaElement||l instanceof HTMLSelectElement){if(l.setAttribute(r,n+""),l instanceof HTMLSelectElement){let e=R(l.querySelectorAll("option"),(e=>e.value==n));e&&(e.selected=!0)}}else if(l instanceof HTMLInputElement){if(l.value==n)return;switch(l.type){case"checkbox":case"radio":n?l.setAttribute("checked",""):l.removeAttribute("checked");break;case"text":case"email":case"number":case"password":case"search":case"tel":case"url":l.setAttribute(r,n+""),S(l,r,n);break;default:l.setAttribute(r,n+"")}}return}let c;c=n(s)?le(s)[0]:G(i);const u=ce(c,".")[0];let d=Dt.get(a),h="";d&&(h=d[u]),u in a||!h||h in a||et(`model - property '${u}' is not defined on the instance of `+a.tagName);let p=Nn(a);if(f(t)||U(t)||(t=""),ye[l.tagName.toLowerCase()]){ct(a,l,{[r]:t}),vn(l,a,"update:"+r,(function(e){let t=this,n=(Dt.get(t)??{})[u];!(u in t)&&n&&_(t.wrapperComponent,u)===_(t,n)&&(t=t.wrapperComponent||t),S(t,c,e.value)}))}else if(l instanceof HTMLTextAreaElement){l.setAttribute(r,t+"");let e="input";p.push([e,function(e){let t=e.target;S(this,c,t.value)},l])}else if(l instanceof HTMLInputElement){let e="",n="";switch(l.type){case"checkbox":case"radio":e="checked",n="change";break;default:e="value",n="input"}l.setAttribute(r??e,t+""),p.push([n,function(e){let t=e.target;S(this,c,t.value)},l])}else l instanceof HTMLSelectElement&&(l.setAttribute(r,t+""),p.push(["change",function(e){let t=e.target,n=this,r=(Dt.get(n)??{})[u];!(u in n)&&r&&_(n.wrapperComponent,u)===_(n,r)&&(n=n.wrapperComponent||n),S(n,c,t.value)},l]))}}),[Jn.TAG]),Ds=new WeakMap,Ws=rr((function(e,t){return(e,[t,n],r)=>{if(r&&t===r[0])return;let s=e;if(!Ds.has(s)){let e=s.style.display;Ds.set(s,"none"==e?"unset":e)}s.style.display=t?Ds.get(s):"none",n&&n(s,t)}}),[Jn.TAG]),Hs=rr((function(e,t){return(e,[t,n],r,{renderComponent:s,slotComponent:o})=>{if(r)return;t=t.bind(s);let i=qe.get(o);i||(i={},qe.set(o,i)),i[n||"default"]=t}}),[Jn.SLOT]),$s=new WeakMap,Us=new WeakMap,js=rr((function(e,t){return(e,[t,n],r,{renderComponent:s})=>{let o=()=>Rr``,i=[],a=[];c(n,((e,t)=>{if(p(e))i.push(t),a.push(e);else{let t=e[0],n=e[1];i.push(t),a.push(n)}"default"===t&&(o=e)}));let l=ue(i,(e=>p(e)?e(t):e==t)),u=$s.get(e);$s.set(e,l);let d=Us.get(e);if(d||(d=[],Us.set(e,d)),!d[l]){let e=new ir((a[l]??o).call(s),s);d[l]=e}return r?u==l?[Yn.REFRESH,a[l]??o]:[Yn.REPLACE,a[l]??o,d[l]]:[Yn.INIT,a[l]??o,d[l]]}}),[Jn.TEXT,Jn.SLOT]);function Bs(e){const t="undefined"!=typeof document?document:void 0;if("function"==typeof t?.startViewTransition){return t.startViewTransition((()=>Promise.resolve(e()))).finished}e()}class Ks{static getCssText(e,t=!1){return n(e)?e:de(V(e,((e,n)=>n.startsWith("--")?n+":"+e+(t?" !important":""):i(n)+":"+e+(t?" !important":""))),";")+";"}static setStyle(e,t){if(n(e)&&!U(e))return;let r=Ks.getCssText(e);t.style.cssText=r}}function Fs(){c(ye,((e,t)=>{customElements.get(t)||customElements.define(t,e)}))}export{Vn as CompElem,Ks as CssHelper,gt as Csscope,Ir as Decorator,Vr as DecoratorType,Or as DecoratorWrapper,Yn as DirectiveUpdateTag,at as DomUtil,Jn as EnterPointType,Is as ModelTriggerType,Kr as QueryCache,ar as Template,Qt as _getObservedAttrs,st as _getSuper,ct as addUninitializedSubComponentProp,Fn as beginEnter,vs as bind,Un as buildTransitionCfg,ht as camelCaseCached,rs as classes,Kn as collectElementRoots,$n as collectRootNodes,Hr as computed,jt as createReactiveState,Pr as createRef,Ar as css,mt as csscope,$r as debounced,Dr as decorator,Wr as decoratorWithNoArgs,Fs as defineComponents,rr as directive,sr as directiveScopeChecker,Ur as emits,jr as event,Ts as forEach,qn as forceFinishLeave,bt as getBaseSheets,it as getBooleanValue,Tt as getComponentDefaultProps,ut as getCssVarKey,Ot as getCurrentRenderComponent,St as getDefaultCss,Nt as getGlobalDefaultProps,jn as getTransitionCfg,Rr as h,ks as html,Ls as ifElse,Vs as ifTrue,ot as isBooleanProp,lt as isCompElemNode,Zr as makeState,Os as model,ns as normalizeClass,cs as normalizeStyle,Br as onced,Zn as playMove,Gt as prop,Gr as query,Xr as queryAll,Qn as removeNodesAnimated,Bn as resolveAnchorHooks,Hn as runTransition,yt as setDefaults,zn as settleEnter,Ws as show,et as showError,tt as showTagError,rt as showTagWarn,nt as showWarn,Hs as slot,Bs as startViewTransition,qr as state,us as styles,Jr as tag,Yr as throttled,ft as typeNameLower,tr as updateDirective,es as watch,js as when};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compelem",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "A modern, reactive, fast, lightweight and flexible lib for building web components",
5
5
  "main": "index.js",
6
6
  "module": "index.js",