@fewangsit/wangsvue-fats 1.0.0-alpha.79 → 1.0.0-alpha.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/wangsvue-fats.js CHANGED
@@ -6367,11 +6367,9 @@ let ik = (fr = class {
6367
6367
  */
6368
6368
  normalizePath(e) {
6369
6369
  const n = this.getNavigationBaseUrl();
6370
- debugger;
6371
6370
  if (!n)
6372
6371
  return e;
6373
6372
  const i = e.startsWith("/") ? e.slice(1) : e;
6374
- debugger;
6375
6373
  return `${n}${i}`;
6376
6374
  }
6377
6375
  /**
@@ -6417,7 +6415,6 @@ let ik = (fr = class {
6417
6415
  * Router.replace('/login', { reason: 'session expired' });
6418
6416
  */
6419
6417
  replace(e, n = {}, i = "") {
6420
- debugger;
6421
6418
  window.history.replaceState(n, i, e);
6422
6419
  }
6423
6420
  /**
@@ -6469,9 +6466,7 @@ let ik = (fr = class {
6469
6466
  const o = typeof e == "string" ? e : e.toString(), s = this.normalizePath(o);
6470
6467
  if (s === location.pathname)
6471
6468
  return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
6472
- this.dispatchBeforeNavigationEvent(s, n, i);
6473
- debugger;
6474
- n === "push" ? this.push(s, i, r) : this.replace(s, i, r), this.dispatchNavigationEvent(s, n, i);
6469
+ this.dispatchBeforeNavigationEvent(s, n, i), n === "push" ? this.push(s, i, r) : this.replace(s, i, r), this.dispatchNavigationEvent(s, n, i);
6475
6470
  }
6476
6471
  }, Zt(fr, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__"), fr);
6477
6472
  const Ud = new ik();
@@ -6796,11 +6791,9 @@ const ys = class ys {
6796
6791
  */
6797
6792
  normalizePath(e) {
6798
6793
  const n = this.getNavigationBaseUrl();
6799
- debugger;
6800
6794
  if (!n)
6801
6795
  return e;
6802
6796
  const i = e.startsWith("/") ? e.slice(1) : e;
6803
- debugger;
6804
6797
  return `${n}${i}`;
6805
6798
  }
6806
6799
  /**
@@ -6846,7 +6839,6 @@ const ys = class ys {
6846
6839
  * Router.replace('/login', { reason: 'session expired' });
6847
6840
  */
6848
6841
  replace(e, n = {}, i = "") {
6849
- debugger;
6850
6842
  window.history.replaceState(n, i, e);
6851
6843
  }
6852
6844
  /**
@@ -6898,9 +6890,7 @@ const ys = class ys {
6898
6890
  const o = typeof e == "string" ? e : e.toString(), s = this.normalizePath(o);
6899
6891
  if (s === location.pathname)
6900
6892
  return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");
6901
- this.dispatchBeforeNavigationEvent(s, n, i);
6902
- debugger;
6903
- n === "push" ? this.push(s, i, r) : this.replace(s, i, r), this.dispatchNavigationEvent(s, n, i);
6893
+ this.dispatchBeforeNavigationEvent(s, n, i), n === "push" ? this.push(s, i, r) : this.replace(s, i, r), this.dispatchNavigationEvent(s, n, i);
6904
6894
  }
6905
6895
  };
6906
6896
  Zt(ys, "SINGLETON_KEY", "__WANGS_UI_ROUTER_INSTANCE__");
@@ -6989,7 +6979,7 @@ var pk = { async install(t) {
6989
6979
  window.addEventListener("wangs-ui-core:before-navigation-event", s);
6990
6980
  const a = r.afterEach((l, u, c) => {
6991
6981
  const d = mg(c, 16), f = mg(c, 4), p = r.currentRoute.value, h = p.path, m = p.fullPath;
6992
- if (console.log("[Bridge] Router afterEach triggered:", { to: l, from: u, failure: c, isDuplicated: d, isAborted: f, locationPathname: location.pathname, currentRoute: p }), (d || f) && location.pathname !== h) {
6982
+ if (console.log("[Bridge] Router afterEach triggered:", JSON.stringify({ to: l, from: u, failure: c, isDuplicated: d, isAborted: f, locationPathname: location.pathname, currentRoute: p })), (d || f) && location.pathname !== h) {
6993
6983
  const v = ho.normalizePath(m);
6994
6984
  console.log("[Bridge] Replacing history state with:", v);
6995
6985
  try {
@@ -61,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
61
61
  Flattening is not supported for Stencil non-shadow slots.
62
62
  You can use \`.childNodes\` to nested slot fallback content.
63
63
  If you have a particular use case, please open an issue on the Stencil repo.
64
- `);const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:O8(s.childNodes)).forEach(l=>{o===Rf(l)&&r.push(l)}),n?r.filter(l=>l.nodeType===1):r}).bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function f1(t,e){if("__"+e in t){const n=t["__"+e];return typeof n!="function"?n:n.bind(t)}else return typeof t[e]!="function"?t[e]:t[e].bind(t)}var Sa=(t,e="")=>()=>{},pi=(t,e,...n)=>{let i=null,r=null,o=null,s=!1,a=!1;const l=[],u=d=>{for(let f=0;f<d.length;f++)i=d[f],Array.isArray(i)?u(i):i!=null&&typeof i!="boolean"&&((s=typeof t!="function"&&!Lf(i))&&(i=String(i)),s&&a?l[l.length-1].$text$+=i:l.push(s?Bf(null,i):i),a=s)};if(u(n),e){e.key&&(r=e.key),e.name&&(o=e.name);{const d=e.className||e.class;d&&(e.class=typeof d!="object"?d:Object.keys(d).filter(f=>d[f]).join(" "))}}const c=Bf(t,null);return c.$attrs$=e,l.length>0&&(c.$children$=l),c.$key$=r,c.$name$=o,c},Bf=(t,e)=>{const n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},Au={},x8=t=>t&&t.$tag$===Au,Nf=t=>{const e=A8(t);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Nf("::slotted"),Nf(":host"),Nf(":host-context");var p1=(t,e)=>t!=null&&!Lf(t)?e&4?t==="false"?!1:t===""||!!t:e&2?typeof t=="string"?parseFloat(t):typeof t=="number"?t:NaN:e&1?String(t):t:t,E8=t=>t,h1=(t,e,n)=>{const i=E8(t);return{emit:r=>m1(i,e,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},m1=(t,e,n)=>{const i=$n.ce(e,n);return t.dispatchEvent(i),i},wu=new WeakMap,g1=(t,e,n,i,r,o,s)=>{if(n===i)return;let a=i1(t,e),l=e.toLowerCase();if(e==="class"){const u=t.classList,c=v1(n);let d=v1(i);u.remove(...c.filter(f=>f&&!d.includes(f))),u.add(...d.filter(f=>f&&!c.includes(f)))}else if(e==="style"){for(const u in n)(!i||i[u]==null)&&(u.includes("-")?t.style.removeProperty(u):t.style[u]="");for(const u in i)(!n||i[u]!==n[u])&&(u.includes("-")?t.style.setProperty(u,i[u]):t.style[u]=i[u])}else if(e!=="key")if(e==="ref")i&&i(t);else if(!t.__lookupSetter__(e)&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"?e=e.slice(3):i1(Vn,l)?e=l.slice(2):e=l[2]+e.slice(3),n||i){const u=e.endsWith(y1);e=e.replace(I8,""),n&&$n.rel(t,e,n,u),i&&$n.ael(t,e,i,u)}}else{const u=Lf(i);if(a||u&&i!==null)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const d=i??"";e==="list"?a=!1:(n==null||t[e]!=d)&&(typeof t.__lookupSetter__(e)=="function"?t[e]=d:t.setAttribute(e,d))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(e=l,c=!0),i==null||i===!1?(i!==!1||t.getAttribute(e)==="")&&(c?t.removeAttributeNS(r1,e):t.removeAttribute(e)):(!a||o&4||r)&&!u&&t.nodeType===1&&(i=i===!0?"":i,c?t.setAttributeNS(r1,e,i):t.setAttribute(e,i))}},P8=/\s/,v1=t=>(typeof t=="object"&&t&&"baseVal"in t&&(t=t.baseVal),!t||typeof t!="string"?[]:t.split(P8)),y1="Capture",I8=new RegExp(y1+"$"),Vf=(t,e,n,i)=>{const r=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,o=t&&t.$attrs$||{},s=e.$attrs$||{};for(const a of b1(Object.keys(o)))a in s||g1(r,a,o[a],void 0,n,e.$flags$);for(const a of b1(Object.keys(s)))g1(r,a,o[a],s[a],n,e.$flags$)};function b1(t){return t.includes("ref")?[...t.filter(e=>e!=="ref"),"ref"]:t}var $f,zf,Ff=!1,Su=!1,Hf=!1,jf=!1,Cu=(t,e,n)=>{var i;const r=e.$children$[n];let o=0,s,a,l;if(Ff||(Hf=!0,r.$tag$==="slot"&&(r.$flags$|=r.$children$?2:1)),r.$text$!==null)s=r.$elm$=Vn.document.createTextNode(r.$text$);else if(r.$flags$&1)s=r.$elm$=Vn.document.createTextNode(""),Vf(null,r,jf);else{if(!Vn.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=r.$elm$=Vn.document.createElement(!Ff&&fs.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),Vf(null,r,jf),r.$children$)for(o=0;o<r.$children$.length;++o)a=Cu(t,r,o),a&&s.appendChild(a)}return s["s-hn"]=zf,r.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=$f,s["s-sn"]=r.$name$||"",s["s-rf"]=(i=r.$attrs$)==null?void 0:i.ref,M8(s),l=t&&t.$children$&&t.$children$[n],l&&l.$tag$===r.$tag$&&t.$elm$&&Ca(t.$elm$,!1)),s},Ca=(t,e)=>{$n.$flags$|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==zf&&r["s-ol"]&&(Lr(ka(r).parentNode,r,ka(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,Hf=!0),e&&Ca(r,e)}$n.$flags$&=-2},A1=(t,e,n,i,r,o)=>{let s=t["s-cr"]&&t["s-cr"].parentNode||t,a;for(;r<=o;++r)i[r]&&(a=Cu(null,n,r),a&&(i[r].$elm$=a,Lr(s,a,ka(e))))},w1=(t,e,n)=>{for(let i=e;i<=n;++i){const r=t[i];if(r){const o=r.$elm$;C1(r),o&&(Su=!0,o["s-ol"]?o["s-ol"].remove():Ca(o,!0),o.remove())}}},L8=(t,e,n,i,r=!1)=>{let o=0,s=0,a=0,l=0,u=e.length-1,c=e[0],d=e[u],f=i.length-1,p=i[0],h=i[f],m,v;for(;o<=u&&s<=f;)if(c==null)c=e[++o];else if(d==null)d=e[--u];else if(p==null)p=i[++s];else if(h==null)h=i[--f];else if(ku(c,p,r))ps(c,p,r),c=e[++o],p=i[++s];else if(ku(d,h,r))ps(d,h,r),d=e[--u],h=i[--f];else if(ku(c,h,r))(c.$tag$==="slot"||h.$tag$==="slot")&&Ca(c.$elm$.parentNode,!1),ps(c,h,r),Lr(t,c.$elm$,d.$elm$.nextSibling),c=e[++o],h=i[--f];else if(ku(d,p,r))(c.$tag$==="slot"||h.$tag$==="slot")&&Ca(d.$elm$.parentNode,!1),ps(d,p,r),Lr(t,d.$elm$,c.$elm$),d=e[--u],p=i[++s];else{for(a=-1,l=o;l<=u;++l)if(e[l]&&e[l].$key$!==null&&e[l].$key$===p.$key$){a=l;break}a>=0?(v=e[a],v.$tag$!==p.$tag$?m=Cu(e&&e[s],n,a):(ps(v,p,r),e[a]=void 0,m=v.$elm$),p=i[++s]):(m=Cu(e&&e[s],n,s),p=i[++s]),m&&Lr(ka(c.$elm$).parentNode,m,ka(c.$elm$))}o>u?A1(t,i[f+1]==null?null:i[f+1].$elm$,n,i,s,f):s>f&&w1(e,o,u)},ku=(t,e,n=!1)=>t.$tag$===e.$tag$?t.$tag$==="slot"?t.$name$===e.$name$:n?(n&&!t.$key$&&e.$key$&&(t.$key$=e.$key$),!0):t.$key$===e.$key$:!1,ka=t=>t&&t["s-ol"]||t,ps=(t,e,n=!1)=>{const i=e.$elm$=t.$elm$,r=t.$children$,o=e.$children$,s=e.$text$;let a;s===null?(Vf(t,e,jf),r!==null&&o!==null?L8(i,r,e,o,n):o!==null?(t.$text$!==null&&(i.textContent=""),A1(i,null,e,o,0,o.length-1)):!n&&fs.updatable&&r!==null&&w1(r,0,r.length-1)):(a=i["s-cr"])?a.parentNode.textContent=s:t.$text$!==s&&(i.data=s)},ar=[],S1=t=>{let e,n,i;const r=t.__childNodes||t.childNodes;for(const o of r){if(o["s-sr"]&&(e=o["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=o["s-sn"];for(i=n.length-1;i>=0;i--)if(e=n[i],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==o["s-hn"])if(d1(e,s)){let a=ar.find(l=>l.$nodeToRelocate$===e);Su=!0,e["s-sn"]=e["s-sn"]||s,a?(a.$nodeToRelocate$["s-sh"]=o["s-hn"],a.$slotRefNode$=o):(e["s-sh"]=o["s-hn"],ar.push({$slotRefNode$:o,$nodeToRelocate$:e})),e["s-sr"]&&ar.map(l=>{d1(l.$nodeToRelocate$,e["s-sn"])&&(a=ar.find(u=>u.$nodeToRelocate$===e),a&&!l.$slotRefNode$&&(l.$slotRefNode$=a.$slotRefNode$))})}else ar.some(a=>a.$nodeToRelocate$===e)||ar.push({$nodeToRelocate$:e})}o.nodeType===1&&S1(o)}},C1=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(C1)},Lr=(t,e,n)=>t==null?void 0:t.insertBefore(e,n),D8=(t,e,n=!1)=>{var i,r,o,s;const a=t.$hostElement$,l=t.$vnode$||Bf(null,null),c=x8(e)?e:pi(null,null,e);if(zf=a.tagName,n&&c.$attrs$)for(const d of Object.keys(c.$attrs$))a.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&(c.$attrs$[d]=a[d]);c.$tag$=null,c.$flags$|=4,t.$vnode$=c,c.$elm$=l.$elm$=a,Ff=m8,$f=a["s-cr"],Su=!1,ps(l,c,n);{if($n.$flags$|=1,Hf){S1(c.$elm$);for(const d of ar){const f=d.$nodeToRelocate$;if(!f["s-ol"]&&Vn.document){const p=Vn.document.createTextNode("");p["s-nr"]=f,Lr(f.parentNode,f["s-ol"]=p,f)}}for(const d of ar){const f=d.$nodeToRelocate$,p=d.$slotRefNode$;if(p){const h=p.parentNode;let m=p.nextSibling;{let w=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;w;){let k=(r=w["s-nr"])!=null?r:null;if(k&&k["s-sn"]===f["s-sn"]&&h===(k.__parentNode||k.parentNode)){for(k=k.nextSibling;k===f||k!=null&&k["s-sr"];)k=k==null?void 0:k.nextSibling;if(!k||!k["s-nr"]){m=k;break}}w=w.previousSibling}}const v=f.__parentNode||f.parentNode,S=f.__nextSibling||f.nextSibling;(!m&&h!==v||S!==m)&&f!==m&&(!f["s-hn"]&&f["s-ol"]&&(f["s-hn"]=f["s-ol"].parentNode.nodeName),Lr(h,f,m),f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(o=f["s-ih"])!=null?o:!1)),f&&typeof p["s-rf"]=="function"&&p["s-rf"](p)}else f.nodeType===1&&(n&&(f["s-ih"]=(s=f.hidden)!=null?s:!1),f.hidden=!0)}}Su&&u1(c.$elm$),$n.$flags$&=-2,ar.length=0}$f=void 0},k1=(t,e)=>{if(e&&!t.$onRenderResolve$&&e["s-p"]){const n=e["s-p"].push(new Promise(i=>t.$onRenderResolve$=()=>{e["s-p"].splice(n-1,1),i()}))}},Uf=(t,e)=>{if(t.$flags$|=16,t.$flags$&4){t.$flags$|=512;return}return k1(t,t.$ancestorComponent$),b8(()=>R8(t,e))},R8=(t,e)=>{const n=t.$hostElement$,i=Sa("scheduleUpdate",t.$cmpMeta$.$tagName$),r=n;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e?o=hs(r,"componentWillLoad",void 0,n):o=hs(r,"componentWillUpdate",void 0,n),o=O1(o,()=>hs(r,"componentWillRender",void 0,n)),i(),O1(o,()=>N8(t,r,e))},O1=(t,e)=>B8(t)?t.then(e).catch(n=>{console.error(n),e()}):e(),B8=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",N8=async(t,e,n)=>{var i;const r=t.$hostElement$,o=Sa("update",t.$cmpMeta$.$tagName$),s=r["s-rc"],a=Sa("render",t.$cmpMeta$.$tagName$);V8(t,e,r,n),s&&(s.map(l=>l()),r["s-rc"]=void 0),a(),o();{const l=(i=r["s-p"])!=null?i:[],u=()=>$8(t);l.length===0?u():(Promise.all(l).then(u),t.$flags$|=4,l.length=0)}},V8=(t,e,n,i)=>{try{e=e.render(),t.$flags$&=-17,t.$flags$|=2,D8(t,e,i)}catch(r){wa(r,t.$hostElement$)}return null},$8=t=>{const e=t.$cmpMeta$.$tagName$,n=t.$hostElement$,i=Sa("postUpdate",e),r=n,o=t.$ancestorComponent$;hs(r,"componentDidRender",void 0,n),t.$flags$&64?(hs(r,"componentDidUpdate",void 0,n),i()):(t.$flags$|=64,F8(n),hs(r,"componentDidLoad",void 0,n),i(),t.$onReadyResolve$(n),o||z8()),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),t.$flags$&512&&bu(()=>Uf(t,!1)),t.$flags$&=-517},z8=t=>{bu(()=>m1(Vn,"appload",{detail:{namespace:c8}}))},hs=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(r){wa(r,i)}},F8=t=>{var e;return t.classList.add((e=fs.hydratedSelectorName)!=null?e:"hydrated")},H8=(t,e)=>Co(t).$instanceValues$.get(e),T1=(t,e,n,i)=>{const r=Co(t),o=t,s=r.$instanceValues$.get(e),a=r.$flags$,l=o;n=p1(n,i.$members$[e][0]);const u=Number.isNaN(s)&&Number.isNaN(n);if(n!==s&&!u){r.$instanceValues$.set(e,n);{if(i.$watchers$&&a&128){const d=i.$watchers$[e];d&&d.map(f=>{try{l[f](n,s,e)}catch(p){wa(p,o)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,s,e)===!1)return;Uf(r,!1)}}}},j8=(t,e,n)=>{var i,r;const o=t.prototype;if(e.$members$||e.$watchers$||t.watchers){t.watchers&&!e.$watchers$&&(e.$watchers$=t.watchers);const s=Object.entries((i=e.$members$)!=null?i:{});s.map(([a,[l]])=>{if(l&31||l&32){const{get:u,set:c}=Object.getOwnPropertyDescriptor(o,a)||{};u&&(e.$members$[a][0]|=2048),c&&(e.$members$[a][0]|=4096),Object.defineProperty(o,a,{get(){return u?u.apply(this):H8(this,a)},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const f=Co(this);if(c){const p=l&32?this[a]:f.$hostElement$[a];typeof p>"u"&&f.$instanceValues$.get(a)?d=f.$instanceValues$.get(a):!f.$instanceValues$.get(a)&&p&&f.$instanceValues$.set(a,p),c.apply(this,[p1(d,l)]),d=l&32?this[a]:f.$hostElement$[a],T1(this,a,d,e);return}{T1(this,a,d,e);return}}})}});{const a=new Map;o.attributeChangedCallback=function(l,u,c){$n.jmp(()=>{var d;const f=a.get(l);if(!(this.hasOwnProperty(f)&&fs.lazyLoad)){if(o.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const h=Co(this),m=h==null?void 0:h.$flags$;if(m&&!(m&8)&&m&128&&c!==u){const S=this,w=(d=e.$watchers$)==null?void 0:d[l];w==null||w.forEach(k=>{S[k]!=null&&S[k].call(S,c,u,l)})}return}}const p=Object.getOwnPropertyDescriptor(o,f);c=c===null&&typeof this[f]=="boolean"?!1:c,c!==this[f]&&(!p.get||p.set)&&(this[f]=c)})},t.observedAttributes=Array.from(new Set([...Object.keys((r=e.$watchers$)!=null?r:{}),...s.filter(([l,u])=>u[0]&15).map(([l,u])=>{const c=u[1]||l;return a.set(c,l),c})]))}}return t},M1=async(t,e,n,i)=>{if((e.$flags$&32)===0){e.$flags$|=32;{const s=t.localName;customElements.whenDefined(s).then(()=>e.$flags$|=128)}}const r=e.$ancestorComponent$,o=()=>Uf(e,!0);r&&r["s-rc"]?r["s-rc"].push(o):o()},U8=(t,e)=>{},K8=t=>{if(($n.$flags$&1)===0){const e=Co(t),n=e.$cmpMeta$,i=Sa("connectedCallback",n.$tagName$);if(e.$flags$&1)x1(t,e,n.$listeners$),e!=null&&e.$lazyInstance$||e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>U8());else{e.$flags$|=1,n.$flags$&12&&W8(t);{let r=t;for(;r=r.parentNode||r.host;)if(r["s-p"]){k1(e,e.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[o]])=>{if(o&31&&t.hasOwnProperty(r)){const s=t[r];delete t[r],t[r]=s}}),fs.initializeNextTick?bu(()=>M1(t,e)):M1(t,e)}i()}},W8=t=>{if(!Vn.document)return;const e=t["s-cr"]=Vn.document.createComment("");e["s-cn"]=!0,Lr(t,e,t.firstChild)},X8=async t=>{if(($n.$flags$&1)===0){const e=Co(t);e.$rmListeners$&&(e.$rmListeners$.map(n=>n()),e.$rmListeners$=void 0)}wu.has(t)&&wu.delete(t),t.shadowRoot&&wu.has(t.shadowRoot)&&wu.delete(t.shadowRoot)},Kf=(t,e)=>{const n={$flags$:e[0],$tagName$:e[1]};n.$members$=e[2],n.$listeners$=e[3],n.$watchers$=t.$watchers$;const i=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){h8(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=Co(this);x1(this,o,n.$listeners$),this.__hasHostListenerAttached=!0}K8(this),i&&i.call(this)},disconnectedCallback(){X8(this),r&&r.call(this)},__attachShadow(){this.shadowRoot=this}}),t.is=n.$tagName$,j8(t,n)},x1=(t,e,n,i)=>{n&&Vn.document&&n.map(([r,o,s])=>{const a=G8(Vn.document,t,r),l=Z8(e,s),u=q8(r);$n.ael(a,o,l,u),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>$n.rel(a,o,l,u))})},Z8=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(i){wa(i,t.$hostElement$)}},G8=(t,e,n)=>n&8?Vn:e,q8=t=>g8?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0;const J8=Kf(class extends Ef{constructor(){super();Yt(this,"label");this.__registerHost()}render(){return pi(Au,{key:"31873a96a1ab92f193ceed22ea745a372cbbbdcf"},pi("slot",{key:"33a47c2402b2ed2c1af3360d3d871cff0ac5760a",name:"icon"}),pi("slot",{key:"eb91a4e9e2514fdcfbc2e99546d620da7ea82d62"},this.label))}},[4,"wangs-button",{label:[1]}]);function Y8(){if(typeof customElements>"u")return;["wangs-button"].forEach(e=>{switch(e){case"wangs-button":customElements.get(e)||customElements.define(e,J8);break}})}const _8=Y8,Q8=Kf(class extends Ef{constructor(){super();Yt(this,"icon");Yt(this,"severity");Yt(this,"class");Yt(this,"tooltipPos");Yt(this,"info");this.__registerHost()}getSeverityClass(){switch(this.severity){case"primary":return"text-primary-500";case"success":return"text-success-500";case"warning":return"text-warning-500";case"danger":return"text-danger-500";case"info":return"text-info-500";default:return"inherit"}}getIconClass(){return`icon ic-${this.icon} cursor-pointer !shrink-0`}render(){return pi(Au,{key:"f75b94ca5f672fd4c81b8b5af046ff3883d71a86",class:this.getIconClass()})}},[0,"wangs-icon",{icon:[1],severity:[1],class:[1],tooltipPos:[1,"tooltip-pos"],info:[1]}]);function E1(){if(typeof customElements>"u")return;["wangs-icon"].forEach(e=>{switch(e){case"wangs-icon":customElements.get(e)||customElements.define(e,Q8);break}})}const e7=E1;function P1(){window.WangsUI||(window.WangsUI={presets:{"WANGS-TABMENU":{}}})}function I1(t){return P1(),window.WangsUI.presets[t]}function t7(t,e){return{...I1(t),...e}}let n7=(Cr=class{constructor(){Yt(this,"_baseUrl","");if(globalThis[Cr.SINGLETON_KEY])return globalThis[Cr.SINGLETON_KEY];globalThis[Cr.SINGLETON_KEY]=this}setNavigationBaseUrl(e){this._baseUrl=this.normalizeBase(e)}getNavigationBaseUrl(){return this._baseUrl}normalizeBase(e){return e.replace(/\/+$/,"").concat("/")}normalizePath(e){const n=this.getNavigationBaseUrl();debugger;if(!n)return e;const i=e.startsWith("/")?e.slice(1):e;debugger;return`${n}${i}`}stripBase(e,n){return n||(n=this.getNavigationBaseUrl()),n!=="/"&&e.startsWith(n)?"/"+e.slice(n.length).replace(/^\/+/,""):e}push(e,n={},i=""){window.history.pushState(n,i,e)}replace(e,n={},i=""){debugger;window.history.replaceState(n,i,e)}dispatchBeforeNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:e,mode:n,state:i}}))}dispatchNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:e,mode:n,state:i}}))}navigateToRoute(e,n="push",i={},r=""){if(!e)return;const o=typeof e=="string"?e:e.toString(),s=this.normalizePath(o);if(s===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(s,n,i);debugger;n==="push"?this.push(s,i,r):this.replace(s,i,r),this.dispatchNavigationEvent(s,n,i)}},Yt(Cr,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__"),Cr);const Wf=new n7;class i7{constructor({tag:e,pt:n}){Yt(this,"preset");P1(),this.preset=t7(e,n),this.cx=this.cx.bind(this),this.sx=this.sx.bind(this),this.ptm=this.ptm.bind(this),this.ptmo=this.ptmo.bind(this)}getSection(e,n,i){const r=e[n];return typeof r=="function"?r(i):r}getPT(e){return I1(e)}transformClasses(e){switch(!0){case typeof e=="string":return e;case Array.isArray(e):return e.map(n=>typeof n=="string"?n:typeof n=="object"&&n!==null?Object.entries(n).filter(([i,r])=>!!r).map(([i])=>i).join(" "):"").filter(Boolean).join(" ");case(typeof e=="object"&&e!==null):return Object.entries(e).filter(([n,i])=>!!i).map(([n])=>n).join(" ");default:return""}}transformStyles(e){var n;if(typeof e=="string"){const i={};return e.split(";").map(r=>r.trim()).filter(Boolean).forEach(r=>{const[o,s]=r.split(":").map(a=>a.trim());if(o&&s){const a=o.replace(/-([a-z])/g,(l,u)=>u.toUpperCase());i[a]=s}}),i}if(typeof e=="object"&&e!==null){const i={};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r.replace(/-([a-z])/g,(s,a)=>a.toUpperCase());i[o]=(n=e[r])==null?void 0:n.toString()}return i}return{}}cx(e,n){var i;return this.transformClasses((i=this.getSection(this.preset,e,n))==null?void 0:i.class)}sx(e,n){var i;return this.transformStyles((i=this.getSection(this.preset,e,n))==null?void 0:i.style)}ptm(e,n){const i=this.getSection(this.preset,e,n);return i?{...i,class:this.transformClasses(i.class),style:this.transformStyles(i.style),"data-ui-section":e}:void 0}ptmo(e,n,i){const r=this.getSection(this.getPT(e),n,i);return r?{...r,class:this.transformClasses(r.class),style:this.transformStyles(r.style),"data-ui-section":n}:void 0}}const r7=Kf(class extends Ef{constructor(){super();Yt(this,"base");Yt(this,"navRef");Yt(this,"inkbarRef");Yt(this,"pt");Yt(this,"type","tab");Yt(this,"model");Yt(this,"activeIndex",0);Yt(this,"useTrailingLine",!0);Yt(this,"currentActiveIndex",this.activeIndex);Yt(this,"tabChange");Yt(this,"updateActiveIndex");this.__registerHost(),this.tabChange=h1(this,"tabChange"),this.updateActiveIndex=h1(this,"update:activeIndex"),this.base=new i7({tag:"WANGS-TABMENU",pt:this.pt})}get cx(){return this.base.cx}get ptm(){return this.base.ptm}get el(){return this}componentWillLoad(){this.setActiveIndex()}componentDidRender(){this.updateInkBar()}onUpdateActiveIndex(n){this.updateActiveIndex.emit(n)}onRoutePathChanged(){this.setActiveIndex()}onItemClick(n,i,r){var o;if(this.disabled(i))return n.preventDefault();r!==this.currentActiveIndex&&(this.currentActiveIndex=r),i.route&&Wf.navigateToRoute(i.route),(o=i.command)==null||o.call(i,{originalEvent:n,item:i}),this.tabChange.emit({originalEvent:n,index:r})}label(n){return typeof n.label=="function"?n.label():n.label}visible(n){return typeof n.visible=="function"?n.visible():n.visible!==!1}disabled(n){return typeof n.disabled=="function"?n.disabled():n.disabled===!0}updateInkBar(){var r;const n=(r=this.navRef)==null?void 0:r.children;if(!n)return;let i=!1;for(let o=0;o<n.length;o++){const s=n[o];if(s.dataset.pHighlight==="true"){const a=s.getBoundingClientRect(),l=this.navRef.getBoundingClientRect();this.inkbarRef.style.width=`${a.width}px`,this.inkbarRef.style.left=`${a.left-l.left}px`,i=!0;break}}i||(this.inkbarRef.style.width="0px",this.inkbarRef.style.left="0px")}setActiveIndex(){const n=window.location.pathname,i=o=>{var a;let s=(a=this.model)==null?void 0:a.findIndex(l=>l.route&&o===l.route);if(s===-1&&o.includes("/")){const l=o.substring(0,o.lastIndexOf("/"));s=i(l)}return s},r=i(Wf.stripBase(n));this.currentActiveIndex=r===-1?this.currentActiveIndex:r}getPtmo(n,i){const{activeIndex:r,model:o,type:s,useTrailingLine:a}=this,l={item:n,index:i,active:i!=null&&this.currentActiveIndex===i,disabled:n!=null&&this.disabled(n)};return{props:{activeIndex:r,model:o,type:s,useTrailingLine:a},state:{currentActiveIndex:this.currentActiveIndex},context:n?l:void 0}}render(){return pi(Au,{key:"b8611b0af61566a3922d60d4ebabf0471f7aa9e8",...this.ptm("root")},pi("ul",{key:"ac87c9a3fc95183eee4f9d168ce78c735cd26602",...this.ptm("menu"),role:"menubar",ref:n=>this.navRef=n},this.model.map((n,i)=>this.visible(n)?pi("li",{key:this.label(n)+"_"+i,class:this.cx("menuitem",this.getPtmo(n,i)),role:"presentation","data-ui-highlight":(this.currentActiveIndex===i).toString(),"data-ui-disabled":this.disabled(n).toString(),onClick:r=>this.onItemClick(r,n,i)},pi("a",{role:"menuitem",href:n.url??n.route?Wf.normalizePath(n.url??n.route):void 0,target:n.target,"aria-label":this.label(n),"aria-disabled":this.disabled(n)?"true":"false",tabIndex:-1,onClick:r=>n.route&&r.preventDefault(),...this.ptm("action",this.getPtmo(n,i))},n.icon&&pi("wangs-icon",{icon:n.icon}),pi("span",{class:this.cx("label")},this.label(n)))):null),pi("li",{key:"bd38f8711d1559a9e90b8ba92d5836330b8f7db8",ref:n=>this.inkbarRef=n,class:this.cx("inkbar",this.getPtmo()),role:"none"})))}static get watchers(){return{currentActiveIndex:["onUpdateActiveIndex"]}}},[0,"wangs-tabmenu",{pt:[16],type:[1],model:[16],activeIndex:[2,"active-index"],useTrailingLine:[4,"use-trailing-line"],currentActiveIndex:[32]},[[8,"wangs-ui-core:navigation-event","onRoutePathChanged"]],{currentActiveIndex:["onUpdateActiveIndex"]}]);function o7(){if(typeof customElements>"u")return;["wangs-tabmenu","wangs-icon"].forEach(e=>{switch(e){case"wangs-tabmenu":customElements.get(e)||customElements.define(e,r7);break;case"wangs-icon":customElements.get(e)||E1();break}})}const s7=o7;function a7(){window.WangsUI||(window.WangsUI={presets:{"WANGS-TABMENU":{}}})}function l7(t,e){a7(),window.WangsUI.presets[t]=e}const _s=class _s{constructor(){Yt(this,"_baseUrl","");if(globalThis[_s.SINGLETON_KEY])return globalThis[_s.SINGLETON_KEY];globalThis[_s.SINGLETON_KEY]=this}setNavigationBaseUrl(e){this._baseUrl=this.normalizeBase(e)}getNavigationBaseUrl(){return this._baseUrl}normalizeBase(e){return e.replace(/\/+$/,"").concat("/")}normalizePath(e){const n=this.getNavigationBaseUrl();debugger;if(!n)return e;const i=e.startsWith("/")?e.slice(1):e;debugger;return`${n}${i}`}stripBase(e,n){return n||(n=this.getNavigationBaseUrl()),n!=="/"&&e.startsWith(n)?"/"+e.slice(n.length).replace(/^\/+/,""):e}push(e,n={},i=""){window.history.pushState(n,i,e)}replace(e,n={},i=""){debugger;window.history.replaceState(n,i,e)}dispatchBeforeNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:e,mode:n,state:i}}))}dispatchNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:e,mode:n,state:i}}))}navigateToRoute(e,n="push",i={},r=""){if(!e)return;const o=typeof e=="string"?e:e.toString(),s=this.normalizePath(o);if(s===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(s,n,i);debugger;n==="push"?this.push(s,i,r):this.replace(s,i,r),this.dispatchNavigationEvent(s,n,i)}};Yt(_s,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__");let Xf=_s;const ko=new Xf,Ou="routerLink",L1="navManager",Oa=Symbol(),u7={default:Oa},D1=t=>(t==null?void 0:t.split(" "))||[],c7=(t,e,n=[])=>{var i;return[...Array.from(((i=t.value)==null?void 0:i.classList)||[]),...n].filter((r,o,s)=>!e.has(r)&&s.indexOf(r)===o)},Zf=(t,e,n=[],i=[],r,o,s)=>{e!==void 0&&e();const a=i,l=[Ou,...n].reduce((u,c)=>(u[c]=u7,u),{});return ke((u,{attrs:c,slots:d,emit:f})=>{var k;const p=re(),h=new Set(D1(c.class));ht(()=>{i.forEach(b=>{var A;(A=p.value)==null||A.addEventListener(b,y=>{f(b,y)})})});const m={created:b=>{(Array.isArray(o)?o:[o]).filter(Boolean).map(A=>A.replace(/-([a-z])/g,y=>y[1].toUpperCase())).forEach(A=>{b.addEventListener(A,y=>{y.target.tagName,b.tagName})}),s!=null&&s.length&&s.forEach(A=>{b.addEventListener(A,y=>{const O=y;O.target.tagName===b.tagName&&(y.stopImmediatePropagation(),f(A,O.detail))})})}},v=nr(),S=(k=v==null?void 0:v.appContext)==null?void 0:k.provides[L1],w=S?ot(L1):void 0;return()=>{u[r],D1(c.class).forEach(O=>{h.add(O)});const b=u.onClick,A={ref:p,class:c7(p,h),onClick:O=>{b!==void 0&&b(O),O.defaultPrevented||(I=>{const{routerLink:L}=u;if(L!==Oa)if(w!==void 0){I.preventDefault();let x={event:I};for(const D in u){const ne=u[D];u.hasOwnProperty(D)&&D.startsWith("router")&&ne!==Oa&&(x[D]=ne)}w.navigate(x)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")})(O)}};for(const O in u){const I=u[O];(u.hasOwnProperty(O)&&I!==Oa||O.startsWith("aria"))&&(A[O]=I);const L="on"+O.slice(0,1).toUpperCase()+O.slice(1),x=c[L];p.value&&c.hasOwnProperty(L)&&"addEventListener"in p.value&&p.value.addEventListener(O,x)}Ou in u&&u[Ou]!==Oa&&(A.href=u[Ou]);const y=Ti(t,A,d.default&&d.default());return s!=null&&s.length?nt(y,[[m]]):y}},{name:t,props:l,emits:a})};Zf("wangs-button",_8,["label"]),Zf("wangs-icon",e7,["icon","severity","class","tooltipPos","info"]);const d7=Zf("wangs-tabmenu",s7,["pt","type","model","activeIndex","useTrailingLine","tabChange","update:activeIndex"],["tabChange","update:activeIndex"],void 0,void 0,["update:activeIndex"]);var f7={async install(t){var e;console.log("[Bridge] Installing navigation bridge plugin..."),console.log("🚀 ~ install ~ app.onUnmount:",t.onUnmount),await At();const n=t.config.globalProperties.$router;if(!n)return void console.warn("[Bridge] Vue Router is not installed or not found. Please ensure Vue Router is installed before this plugin.");const{dispose:i}=function(r){const o=ko.normalizeBase(r.options.history.base);console.log("[Bridge] Normalized base URL:",o),ko.setNavigationBaseUrl(o);const s=l=>{const{route:u,mode:c,state:d}=l.detail;if(console.log("[Bridge] Received custom navigation event:",{route:u,mode:c,state:d}),!u)return void console.warn("[Bridge] Skipping navigation: route is missing");if(r.currentRoute.value.fullPath===u)return void console.log("[Bridge] Skipping navigation: already on route",u);const f=ko.stripBase(u);console.log("[Bridge] Navigation stripped path:",f);const p={path:f,state:d};console.log("[Bridge] Calling vueRouter."+c,p),r[c](p).catch(h=>{console.warn("[Bridge] vueRouter navigation error:",h)})};window.addEventListener("wangs-ui-core:before-navigation-event",s);const a=r.afterEach((l,u,c)=>{const d=Zd(c,16),f=Zd(c,4),p=r.currentRoute.value,h=p.path,m=p.fullPath;if(console.log("[Bridge] Router afterEach triggered:",{to:l,from:u,failure:c,isDuplicated:d,isAborted:f,locationPathname:location.pathname,currentRoute:p}),(d||f)&&location.pathname!==h){const v=ko.normalizePath(m);console.log("[Bridge] Replacing history state with:",v);try{ko.replace(v,history.state)}catch(S){console.error("[Bridge] Error during Router.replace:",S)}ko.dispatchNavigationEvent(m,"replace",history.state)}c||ko.dispatchNavigationEvent(m,"replace",history.state)});return{dispose(){console.log("[Bridge] Disposing navigation bridge."),window.removeEventListener("wangs-ui-core:before-navigation-event",s),a()}}}(n);(e=t.onUnmount)===null||e===void 0||e.call(t,i)}},In={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"};function R1(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=p7(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
64
+ `);const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:O8(s.childNodes)).forEach(l=>{o===Rf(l)&&r.push(l)}),n?r.filter(l=>l.nodeType===1):r}).bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function f1(t,e){if("__"+e in t){const n=t["__"+e];return typeof n!="function"?n:n.bind(t)}else return typeof t[e]!="function"?t[e]:t[e].bind(t)}var Sa=(t,e="")=>()=>{},pi=(t,e,...n)=>{let i=null,r=null,o=null,s=!1,a=!1;const l=[],u=d=>{for(let f=0;f<d.length;f++)i=d[f],Array.isArray(i)?u(i):i!=null&&typeof i!="boolean"&&((s=typeof t!="function"&&!Lf(i))&&(i=String(i)),s&&a?l[l.length-1].$text$+=i:l.push(s?Bf(null,i):i),a=s)};if(u(n),e){e.key&&(r=e.key),e.name&&(o=e.name);{const d=e.className||e.class;d&&(e.class=typeof d!="object"?d:Object.keys(d).filter(f=>d[f]).join(" "))}}const c=Bf(t,null);return c.$attrs$=e,l.length>0&&(c.$children$=l),c.$key$=r,c.$name$=o,c},Bf=(t,e)=>{const n={$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},Au={},x8=t=>t&&t.$tag$===Au,Nf=t=>{const e=A8(t);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};Nf("::slotted"),Nf(":host"),Nf(":host-context");var p1=(t,e)=>t!=null&&!Lf(t)?e&4?t==="false"?!1:t===""||!!t:e&2?typeof t=="string"?parseFloat(t):typeof t=="number"?t:NaN:e&1?String(t):t:t,E8=t=>t,h1=(t,e,n)=>{const i=E8(t);return{emit:r=>m1(i,e,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},m1=(t,e,n)=>{const i=$n.ce(e,n);return t.dispatchEvent(i),i},wu=new WeakMap,g1=(t,e,n,i,r,o,s)=>{if(n===i)return;let a=i1(t,e),l=e.toLowerCase();if(e==="class"){const u=t.classList,c=v1(n);let d=v1(i);u.remove(...c.filter(f=>f&&!d.includes(f))),u.add(...d.filter(f=>f&&!c.includes(f)))}else if(e==="style"){for(const u in n)(!i||i[u]==null)&&(u.includes("-")?t.style.removeProperty(u):t.style[u]="");for(const u in i)(!n||i[u]!==n[u])&&(u.includes("-")?t.style.setProperty(u,i[u]):t.style[u]=i[u])}else if(e!=="key")if(e==="ref")i&&i(t);else if(!t.__lookupSetter__(e)&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"?e=e.slice(3):i1(Vn,l)?e=l.slice(2):e=l[2]+e.slice(3),n||i){const u=e.endsWith(y1);e=e.replace(I8,""),n&&$n.rel(t,e,n,u),i&&$n.ael(t,e,i,u)}}else{const u=Lf(i);if(a||u&&i!==null)try{if(t.tagName.includes("-"))t[e]!==i&&(t[e]=i);else{const d=i??"";e==="list"?a=!1:(n==null||t[e]!=d)&&(typeof t.__lookupSetter__(e)=="function"?t[e]=d:t.setAttribute(e,d))}}catch{}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(e=l,c=!0),i==null||i===!1?(i!==!1||t.getAttribute(e)==="")&&(c?t.removeAttributeNS(r1,e):t.removeAttribute(e)):(!a||o&4||r)&&!u&&t.nodeType===1&&(i=i===!0?"":i,c?t.setAttributeNS(r1,e,i):t.setAttribute(e,i))}},P8=/\s/,v1=t=>(typeof t=="object"&&t&&"baseVal"in t&&(t=t.baseVal),!t||typeof t!="string"?[]:t.split(P8)),y1="Capture",I8=new RegExp(y1+"$"),Vf=(t,e,n,i)=>{const r=e.$elm$.nodeType===11&&e.$elm$.host?e.$elm$.host:e.$elm$,o=t&&t.$attrs$||{},s=e.$attrs$||{};for(const a of b1(Object.keys(o)))a in s||g1(r,a,o[a],void 0,n,e.$flags$);for(const a of b1(Object.keys(s)))g1(r,a,o[a],s[a],n,e.$flags$)};function b1(t){return t.includes("ref")?[...t.filter(e=>e!=="ref"),"ref"]:t}var $f,zf,Ff=!1,Su=!1,Hf=!1,jf=!1,Cu=(t,e,n)=>{var i;const r=e.$children$[n];let o=0,s,a,l;if(Ff||(Hf=!0,r.$tag$==="slot"&&(r.$flags$|=r.$children$?2:1)),r.$text$!==null)s=r.$elm$=Vn.document.createTextNode(r.$text$);else if(r.$flags$&1)s=r.$elm$=Vn.document.createTextNode(""),Vf(null,r,jf);else{if(!Vn.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=r.$elm$=Vn.document.createElement(!Ff&&fs.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),Vf(null,r,jf),r.$children$)for(o=0;o<r.$children$.length;++o)a=Cu(t,r,o),a&&s.appendChild(a)}return s["s-hn"]=zf,r.$flags$&3&&(s["s-sr"]=!0,s["s-cr"]=$f,s["s-sn"]=r.$name$||"",s["s-rf"]=(i=r.$attrs$)==null?void 0:i.ref,M8(s),l=t&&t.$children$&&t.$children$[n],l&&l.$tag$===r.$tag$&&t.$elm$&&Ca(t.$elm$,!1)),s},Ca=(t,e)=>{$n.$flags$|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==zf&&r["s-ol"]&&(Lr(ka(r).parentNode,r,ka(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,Hf=!0),e&&Ca(r,e)}$n.$flags$&=-2},A1=(t,e,n,i,r,o)=>{let s=t["s-cr"]&&t["s-cr"].parentNode||t,a;for(;r<=o;++r)i[r]&&(a=Cu(null,n,r),a&&(i[r].$elm$=a,Lr(s,a,ka(e))))},w1=(t,e,n)=>{for(let i=e;i<=n;++i){const r=t[i];if(r){const o=r.$elm$;C1(r),o&&(Su=!0,o["s-ol"]?o["s-ol"].remove():Ca(o,!0),o.remove())}}},L8=(t,e,n,i,r=!1)=>{let o=0,s=0,a=0,l=0,u=e.length-1,c=e[0],d=e[u],f=i.length-1,p=i[0],h=i[f],m,v;for(;o<=u&&s<=f;)if(c==null)c=e[++o];else if(d==null)d=e[--u];else if(p==null)p=i[++s];else if(h==null)h=i[--f];else if(ku(c,p,r))ps(c,p,r),c=e[++o],p=i[++s];else if(ku(d,h,r))ps(d,h,r),d=e[--u],h=i[--f];else if(ku(c,h,r))(c.$tag$==="slot"||h.$tag$==="slot")&&Ca(c.$elm$.parentNode,!1),ps(c,h,r),Lr(t,c.$elm$,d.$elm$.nextSibling),c=e[++o],h=i[--f];else if(ku(d,p,r))(c.$tag$==="slot"||h.$tag$==="slot")&&Ca(d.$elm$.parentNode,!1),ps(d,p,r),Lr(t,d.$elm$,c.$elm$),d=e[--u],p=i[++s];else{for(a=-1,l=o;l<=u;++l)if(e[l]&&e[l].$key$!==null&&e[l].$key$===p.$key$){a=l;break}a>=0?(v=e[a],v.$tag$!==p.$tag$?m=Cu(e&&e[s],n,a):(ps(v,p,r),e[a]=void 0,m=v.$elm$),p=i[++s]):(m=Cu(e&&e[s],n,s),p=i[++s]),m&&Lr(ka(c.$elm$).parentNode,m,ka(c.$elm$))}o>u?A1(t,i[f+1]==null?null:i[f+1].$elm$,n,i,s,f):s>f&&w1(e,o,u)},ku=(t,e,n=!1)=>t.$tag$===e.$tag$?t.$tag$==="slot"?t.$name$===e.$name$:n?(n&&!t.$key$&&e.$key$&&(t.$key$=e.$key$),!0):t.$key$===e.$key$:!1,ka=t=>t&&t["s-ol"]||t,ps=(t,e,n=!1)=>{const i=e.$elm$=t.$elm$,r=t.$children$,o=e.$children$,s=e.$text$;let a;s===null?(Vf(t,e,jf),r!==null&&o!==null?L8(i,r,e,o,n):o!==null?(t.$text$!==null&&(i.textContent=""),A1(i,null,e,o,0,o.length-1)):!n&&fs.updatable&&r!==null&&w1(r,0,r.length-1)):(a=i["s-cr"])?a.parentNode.textContent=s:t.$text$!==s&&(i.data=s)},ar=[],S1=t=>{let e,n,i;const r=t.__childNodes||t.childNodes;for(const o of r){if(o["s-sr"]&&(e=o["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=o["s-sn"];for(i=n.length-1;i>=0;i--)if(e=n[i],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==o["s-hn"])if(d1(e,s)){let a=ar.find(l=>l.$nodeToRelocate$===e);Su=!0,e["s-sn"]=e["s-sn"]||s,a?(a.$nodeToRelocate$["s-sh"]=o["s-hn"],a.$slotRefNode$=o):(e["s-sh"]=o["s-hn"],ar.push({$slotRefNode$:o,$nodeToRelocate$:e})),e["s-sr"]&&ar.map(l=>{d1(l.$nodeToRelocate$,e["s-sn"])&&(a=ar.find(u=>u.$nodeToRelocate$===e),a&&!l.$slotRefNode$&&(l.$slotRefNode$=a.$slotRefNode$))})}else ar.some(a=>a.$nodeToRelocate$===e)||ar.push({$nodeToRelocate$:e})}o.nodeType===1&&S1(o)}},C1=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(C1)},Lr=(t,e,n)=>t==null?void 0:t.insertBefore(e,n),D8=(t,e,n=!1)=>{var i,r,o,s;const a=t.$hostElement$,l=t.$vnode$||Bf(null,null),c=x8(e)?e:pi(null,null,e);if(zf=a.tagName,n&&c.$attrs$)for(const d of Object.keys(c.$attrs$))a.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&(c.$attrs$[d]=a[d]);c.$tag$=null,c.$flags$|=4,t.$vnode$=c,c.$elm$=l.$elm$=a,Ff=m8,$f=a["s-cr"],Su=!1,ps(l,c,n);{if($n.$flags$|=1,Hf){S1(c.$elm$);for(const d of ar){const f=d.$nodeToRelocate$;if(!f["s-ol"]&&Vn.document){const p=Vn.document.createTextNode("");p["s-nr"]=f,Lr(f.parentNode,f["s-ol"]=p,f)}}for(const d of ar){const f=d.$nodeToRelocate$,p=d.$slotRefNode$;if(p){const h=p.parentNode;let m=p.nextSibling;{let w=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;w;){let k=(r=w["s-nr"])!=null?r:null;if(k&&k["s-sn"]===f["s-sn"]&&h===(k.__parentNode||k.parentNode)){for(k=k.nextSibling;k===f||k!=null&&k["s-sr"];)k=k==null?void 0:k.nextSibling;if(!k||!k["s-nr"]){m=k;break}}w=w.previousSibling}}const v=f.__parentNode||f.parentNode,S=f.__nextSibling||f.nextSibling;(!m&&h!==v||S!==m)&&f!==m&&(!f["s-hn"]&&f["s-ol"]&&(f["s-hn"]=f["s-ol"].parentNode.nodeName),Lr(h,f,m),f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(o=f["s-ih"])!=null?o:!1)),f&&typeof p["s-rf"]=="function"&&p["s-rf"](p)}else f.nodeType===1&&(n&&(f["s-ih"]=(s=f.hidden)!=null?s:!1),f.hidden=!0)}}Su&&u1(c.$elm$),$n.$flags$&=-2,ar.length=0}$f=void 0},k1=(t,e)=>{if(e&&!t.$onRenderResolve$&&e["s-p"]){const n=e["s-p"].push(new Promise(i=>t.$onRenderResolve$=()=>{e["s-p"].splice(n-1,1),i()}))}},Uf=(t,e)=>{if(t.$flags$|=16,t.$flags$&4){t.$flags$|=512;return}return k1(t,t.$ancestorComponent$),b8(()=>R8(t,e))},R8=(t,e)=>{const n=t.$hostElement$,i=Sa("scheduleUpdate",t.$cmpMeta$.$tagName$),r=n;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return e?o=hs(r,"componentWillLoad",void 0,n):o=hs(r,"componentWillUpdate",void 0,n),o=O1(o,()=>hs(r,"componentWillRender",void 0,n)),i(),O1(o,()=>N8(t,r,e))},O1=(t,e)=>B8(t)?t.then(e).catch(n=>{console.error(n),e()}):e(),B8=t=>t instanceof Promise||t&&t.then&&typeof t.then=="function",N8=async(t,e,n)=>{var i;const r=t.$hostElement$,o=Sa("update",t.$cmpMeta$.$tagName$),s=r["s-rc"],a=Sa("render",t.$cmpMeta$.$tagName$);V8(t,e,r,n),s&&(s.map(l=>l()),r["s-rc"]=void 0),a(),o();{const l=(i=r["s-p"])!=null?i:[],u=()=>$8(t);l.length===0?u():(Promise.all(l).then(u),t.$flags$|=4,l.length=0)}},V8=(t,e,n,i)=>{try{e=e.render(),t.$flags$&=-17,t.$flags$|=2,D8(t,e,i)}catch(r){wa(r,t.$hostElement$)}return null},$8=t=>{const e=t.$cmpMeta$.$tagName$,n=t.$hostElement$,i=Sa("postUpdate",e),r=n,o=t.$ancestorComponent$;hs(r,"componentDidRender",void 0,n),t.$flags$&64?(hs(r,"componentDidUpdate",void 0,n),i()):(t.$flags$|=64,F8(n),hs(r,"componentDidLoad",void 0,n),i(),t.$onReadyResolve$(n),o||z8()),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),t.$flags$&512&&bu(()=>Uf(t,!1)),t.$flags$&=-517},z8=t=>{bu(()=>m1(Vn,"appload",{detail:{namespace:c8}}))},hs=(t,e,n,i)=>{if(t&&t[e])try{return t[e](n)}catch(r){wa(r,i)}},F8=t=>{var e;return t.classList.add((e=fs.hydratedSelectorName)!=null?e:"hydrated")},H8=(t,e)=>Co(t).$instanceValues$.get(e),T1=(t,e,n,i)=>{const r=Co(t),o=t,s=r.$instanceValues$.get(e),a=r.$flags$,l=o;n=p1(n,i.$members$[e][0]);const u=Number.isNaN(s)&&Number.isNaN(n);if(n!==s&&!u){r.$instanceValues$.set(e,n);{if(i.$watchers$&&a&128){const d=i.$watchers$[e];d&&d.map(f=>{try{l[f](n,s,e)}catch(p){wa(p,o)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,s,e)===!1)return;Uf(r,!1)}}}},j8=(t,e,n)=>{var i,r;const o=t.prototype;if(e.$members$||e.$watchers$||t.watchers){t.watchers&&!e.$watchers$&&(e.$watchers$=t.watchers);const s=Object.entries((i=e.$members$)!=null?i:{});s.map(([a,[l]])=>{if(l&31||l&32){const{get:u,set:c}=Object.getOwnPropertyDescriptor(o,a)||{};u&&(e.$members$[a][0]|=2048),c&&(e.$members$[a][0]|=4096),Object.defineProperty(o,a,{get(){return u?u.apply(this):H8(this,a)},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const f=Co(this);if(c){const p=l&32?this[a]:f.$hostElement$[a];typeof p>"u"&&f.$instanceValues$.get(a)?d=f.$instanceValues$.get(a):!f.$instanceValues$.get(a)&&p&&f.$instanceValues$.set(a,p),c.apply(this,[p1(d,l)]),d=l&32?this[a]:f.$hostElement$[a],T1(this,a,d,e);return}{T1(this,a,d,e);return}}})}});{const a=new Map;o.attributeChangedCallback=function(l,u,c){$n.jmp(()=>{var d;const f=a.get(l);if(!(this.hasOwnProperty(f)&&fs.lazyLoad)){if(o.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const h=Co(this),m=h==null?void 0:h.$flags$;if(m&&!(m&8)&&m&128&&c!==u){const S=this,w=(d=e.$watchers$)==null?void 0:d[l];w==null||w.forEach(k=>{S[k]!=null&&S[k].call(S,c,u,l)})}return}}const p=Object.getOwnPropertyDescriptor(o,f);c=c===null&&typeof this[f]=="boolean"?!1:c,c!==this[f]&&(!p.get||p.set)&&(this[f]=c)})},t.observedAttributes=Array.from(new Set([...Object.keys((r=e.$watchers$)!=null?r:{}),...s.filter(([l,u])=>u[0]&15).map(([l,u])=>{const c=u[1]||l;return a.set(c,l),c})]))}}return t},M1=async(t,e,n,i)=>{if((e.$flags$&32)===0){e.$flags$|=32;{const s=t.localName;customElements.whenDefined(s).then(()=>e.$flags$|=128)}}const r=e.$ancestorComponent$,o=()=>Uf(e,!0);r&&r["s-rc"]?r["s-rc"].push(o):o()},U8=(t,e)=>{},K8=t=>{if(($n.$flags$&1)===0){const e=Co(t),n=e.$cmpMeta$,i=Sa("connectedCallback",n.$tagName$);if(e.$flags$&1)x1(t,e,n.$listeners$),e!=null&&e.$lazyInstance$||e!=null&&e.$onReadyPromise$&&e.$onReadyPromise$.then(()=>U8());else{e.$flags$|=1,n.$flags$&12&&W8(t);{let r=t;for(;r=r.parentNode||r.host;)if(r["s-p"]){k1(e,e.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[o]])=>{if(o&31&&t.hasOwnProperty(r)){const s=t[r];delete t[r],t[r]=s}}),fs.initializeNextTick?bu(()=>M1(t,e)):M1(t,e)}i()}},W8=t=>{if(!Vn.document)return;const e=t["s-cr"]=Vn.document.createComment("");e["s-cn"]=!0,Lr(t,e,t.firstChild)},X8=async t=>{if(($n.$flags$&1)===0){const e=Co(t);e.$rmListeners$&&(e.$rmListeners$.map(n=>n()),e.$rmListeners$=void 0)}wu.has(t)&&wu.delete(t),t.shadowRoot&&wu.has(t.shadowRoot)&&wu.delete(t.shadowRoot)},Kf=(t,e)=>{const n={$flags$:e[0],$tagName$:e[1]};n.$members$=e[2],n.$listeners$=e[3],n.$watchers$=t.$watchers$;const i=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){h8(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=Co(this);x1(this,o,n.$listeners$),this.__hasHostListenerAttached=!0}K8(this),i&&i.call(this)},disconnectedCallback(){X8(this),r&&r.call(this)},__attachShadow(){this.shadowRoot=this}}),t.is=n.$tagName$,j8(t,n)},x1=(t,e,n,i)=>{n&&Vn.document&&n.map(([r,o,s])=>{const a=G8(Vn.document,t,r),l=Z8(e,s),u=q8(r);$n.ael(a,o,l,u),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>$n.rel(a,o,l,u))})},Z8=(t,e)=>n=>{try{t.$hostElement$[e](n)}catch(i){wa(i,t.$hostElement$)}},G8=(t,e,n)=>n&8?Vn:e,q8=t=>g8?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0;const J8=Kf(class extends Ef{constructor(){super();Yt(this,"label");this.__registerHost()}render(){return pi(Au,{key:"31873a96a1ab92f193ceed22ea745a372cbbbdcf"},pi("slot",{key:"33a47c2402b2ed2c1af3360d3d871cff0ac5760a",name:"icon"}),pi("slot",{key:"eb91a4e9e2514fdcfbc2e99546d620da7ea82d62"},this.label))}},[4,"wangs-button",{label:[1]}]);function Y8(){if(typeof customElements>"u")return;["wangs-button"].forEach(e=>{switch(e){case"wangs-button":customElements.get(e)||customElements.define(e,J8);break}})}const _8=Y8,Q8=Kf(class extends Ef{constructor(){super();Yt(this,"icon");Yt(this,"severity");Yt(this,"class");Yt(this,"tooltipPos");Yt(this,"info");this.__registerHost()}getSeverityClass(){switch(this.severity){case"primary":return"text-primary-500";case"success":return"text-success-500";case"warning":return"text-warning-500";case"danger":return"text-danger-500";case"info":return"text-info-500";default:return"inherit"}}getIconClass(){return`icon ic-${this.icon} cursor-pointer !shrink-0`}render(){return pi(Au,{key:"f75b94ca5f672fd4c81b8b5af046ff3883d71a86",class:this.getIconClass()})}},[0,"wangs-icon",{icon:[1],severity:[1],class:[1],tooltipPos:[1,"tooltip-pos"],info:[1]}]);function E1(){if(typeof customElements>"u")return;["wangs-icon"].forEach(e=>{switch(e){case"wangs-icon":customElements.get(e)||customElements.define(e,Q8);break}})}const e7=E1;function P1(){window.WangsUI||(window.WangsUI={presets:{"WANGS-TABMENU":{}}})}function I1(t){return P1(),window.WangsUI.presets[t]}function t7(t,e){return{...I1(t),...e}}let n7=(Cr=class{constructor(){Yt(this,"_baseUrl","");if(globalThis[Cr.SINGLETON_KEY])return globalThis[Cr.SINGLETON_KEY];globalThis[Cr.SINGLETON_KEY]=this}setNavigationBaseUrl(e){this._baseUrl=this.normalizeBase(e)}getNavigationBaseUrl(){return this._baseUrl}normalizeBase(e){return e.replace(/\/+$/,"").concat("/")}normalizePath(e){const n=this.getNavigationBaseUrl();if(!n)return e;const i=e.startsWith("/")?e.slice(1):e;return`${n}${i}`}stripBase(e,n){return n||(n=this.getNavigationBaseUrl()),n!=="/"&&e.startsWith(n)?"/"+e.slice(n.length).replace(/^\/+/,""):e}push(e,n={},i=""){window.history.pushState(n,i,e)}replace(e,n={},i=""){window.history.replaceState(n,i,e)}dispatchBeforeNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:e,mode:n,state:i}}))}dispatchNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:e,mode:n,state:i}}))}navigateToRoute(e,n="push",i={},r=""){if(!e)return;const o=typeof e=="string"?e:e.toString(),s=this.normalizePath(o);if(s===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(s,n,i),n==="push"?this.push(s,i,r):this.replace(s,i,r),this.dispatchNavigationEvent(s,n,i)}},Yt(Cr,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__"),Cr);const Wf=new n7;class i7{constructor({tag:e,pt:n}){Yt(this,"preset");P1(),this.preset=t7(e,n),this.cx=this.cx.bind(this),this.sx=this.sx.bind(this),this.ptm=this.ptm.bind(this),this.ptmo=this.ptmo.bind(this)}getSection(e,n,i){const r=e[n];return typeof r=="function"?r(i):r}getPT(e){return I1(e)}transformClasses(e){switch(!0){case typeof e=="string":return e;case Array.isArray(e):return e.map(n=>typeof n=="string"?n:typeof n=="object"&&n!==null?Object.entries(n).filter(([i,r])=>!!r).map(([i])=>i).join(" "):"").filter(Boolean).join(" ");case(typeof e=="object"&&e!==null):return Object.entries(e).filter(([n,i])=>!!i).map(([n])=>n).join(" ");default:return""}}transformStyles(e){var n;if(typeof e=="string"){const i={};return e.split(";").map(r=>r.trim()).filter(Boolean).forEach(r=>{const[o,s]=r.split(":").map(a=>a.trim());if(o&&s){const a=o.replace(/-([a-z])/g,(l,u)=>u.toUpperCase());i[a]=s}}),i}if(typeof e=="object"&&e!==null){const i={};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r.replace(/-([a-z])/g,(s,a)=>a.toUpperCase());i[o]=(n=e[r])==null?void 0:n.toString()}return i}return{}}cx(e,n){var i;return this.transformClasses((i=this.getSection(this.preset,e,n))==null?void 0:i.class)}sx(e,n){var i;return this.transformStyles((i=this.getSection(this.preset,e,n))==null?void 0:i.style)}ptm(e,n){const i=this.getSection(this.preset,e,n);return i?{...i,class:this.transformClasses(i.class),style:this.transformStyles(i.style),"data-ui-section":e}:void 0}ptmo(e,n,i){const r=this.getSection(this.getPT(e),n,i);return r?{...r,class:this.transformClasses(r.class),style:this.transformStyles(r.style),"data-ui-section":n}:void 0}}const r7=Kf(class extends Ef{constructor(){super();Yt(this,"base");Yt(this,"navRef");Yt(this,"inkbarRef");Yt(this,"pt");Yt(this,"type","tab");Yt(this,"model");Yt(this,"activeIndex",0);Yt(this,"useTrailingLine",!0);Yt(this,"currentActiveIndex",this.activeIndex);Yt(this,"tabChange");Yt(this,"updateActiveIndex");this.__registerHost(),this.tabChange=h1(this,"tabChange"),this.updateActiveIndex=h1(this,"update:activeIndex"),this.base=new i7({tag:"WANGS-TABMENU",pt:this.pt})}get cx(){return this.base.cx}get ptm(){return this.base.ptm}get el(){return this}componentWillLoad(){this.setActiveIndex()}componentDidRender(){this.updateInkBar()}onUpdateActiveIndex(n){this.updateActiveIndex.emit(n)}onRoutePathChanged(){this.setActiveIndex()}onItemClick(n,i,r){var o;if(this.disabled(i))return n.preventDefault();r!==this.currentActiveIndex&&(this.currentActiveIndex=r),i.route&&Wf.navigateToRoute(i.route),(o=i.command)==null||o.call(i,{originalEvent:n,item:i}),this.tabChange.emit({originalEvent:n,index:r})}label(n){return typeof n.label=="function"?n.label():n.label}visible(n){return typeof n.visible=="function"?n.visible():n.visible!==!1}disabled(n){return typeof n.disabled=="function"?n.disabled():n.disabled===!0}updateInkBar(){var r;const n=(r=this.navRef)==null?void 0:r.children;if(!n)return;let i=!1;for(let o=0;o<n.length;o++){const s=n[o];if(s.dataset.pHighlight==="true"){const a=s.getBoundingClientRect(),l=this.navRef.getBoundingClientRect();this.inkbarRef.style.width=`${a.width}px`,this.inkbarRef.style.left=`${a.left-l.left}px`,i=!0;break}}i||(this.inkbarRef.style.width="0px",this.inkbarRef.style.left="0px")}setActiveIndex(){const n=window.location.pathname,i=o=>{var a;let s=(a=this.model)==null?void 0:a.findIndex(l=>l.route&&o===l.route);if(s===-1&&o.includes("/")){const l=o.substring(0,o.lastIndexOf("/"));s=i(l)}return s},r=i(Wf.stripBase(n));this.currentActiveIndex=r===-1?this.currentActiveIndex:r}getPtmo(n,i){const{activeIndex:r,model:o,type:s,useTrailingLine:a}=this,l={item:n,index:i,active:i!=null&&this.currentActiveIndex===i,disabled:n!=null&&this.disabled(n)};return{props:{activeIndex:r,model:o,type:s,useTrailingLine:a},state:{currentActiveIndex:this.currentActiveIndex},context:n?l:void 0}}render(){return pi(Au,{key:"b8611b0af61566a3922d60d4ebabf0471f7aa9e8",...this.ptm("root")},pi("ul",{key:"ac87c9a3fc95183eee4f9d168ce78c735cd26602",...this.ptm("menu"),role:"menubar",ref:n=>this.navRef=n},this.model.map((n,i)=>this.visible(n)?pi("li",{key:this.label(n)+"_"+i,class:this.cx("menuitem",this.getPtmo(n,i)),role:"presentation","data-ui-highlight":(this.currentActiveIndex===i).toString(),"data-ui-disabled":this.disabled(n).toString(),onClick:r=>this.onItemClick(r,n,i)},pi("a",{role:"menuitem",href:n.url??n.route?Wf.normalizePath(n.url??n.route):void 0,target:n.target,"aria-label":this.label(n),"aria-disabled":this.disabled(n)?"true":"false",tabIndex:-1,onClick:r=>n.route&&r.preventDefault(),...this.ptm("action",this.getPtmo(n,i))},n.icon&&pi("wangs-icon",{icon:n.icon}),pi("span",{class:this.cx("label")},this.label(n)))):null),pi("li",{key:"bd38f8711d1559a9e90b8ba92d5836330b8f7db8",ref:n=>this.inkbarRef=n,class:this.cx("inkbar",this.getPtmo()),role:"none"})))}static get watchers(){return{currentActiveIndex:["onUpdateActiveIndex"]}}},[0,"wangs-tabmenu",{pt:[16],type:[1],model:[16],activeIndex:[2,"active-index"],useTrailingLine:[4,"use-trailing-line"],currentActiveIndex:[32]},[[8,"wangs-ui-core:navigation-event","onRoutePathChanged"]],{currentActiveIndex:["onUpdateActiveIndex"]}]);function o7(){if(typeof customElements>"u")return;["wangs-tabmenu","wangs-icon"].forEach(e=>{switch(e){case"wangs-tabmenu":customElements.get(e)||customElements.define(e,r7);break;case"wangs-icon":customElements.get(e)||E1();break}})}const s7=o7;function a7(){window.WangsUI||(window.WangsUI={presets:{"WANGS-TABMENU":{}}})}function l7(t,e){a7(),window.WangsUI.presets[t]=e}const _s=class _s{constructor(){Yt(this,"_baseUrl","");if(globalThis[_s.SINGLETON_KEY])return globalThis[_s.SINGLETON_KEY];globalThis[_s.SINGLETON_KEY]=this}setNavigationBaseUrl(e){this._baseUrl=this.normalizeBase(e)}getNavigationBaseUrl(){return this._baseUrl}normalizeBase(e){return e.replace(/\/+$/,"").concat("/")}normalizePath(e){const n=this.getNavigationBaseUrl();if(!n)return e;const i=e.startsWith("/")?e.slice(1):e;return`${n}${i}`}stripBase(e,n){return n||(n=this.getNavigationBaseUrl()),n!=="/"&&e.startsWith(n)?"/"+e.slice(n.length).replace(/^\/+/,""):e}push(e,n={},i=""){window.history.pushState(n,i,e)}replace(e,n={},i=""){window.history.replaceState(n,i,e)}dispatchBeforeNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:before-navigation-event",{detail:{route:e,mode:n,state:i}}))}dispatchNavigationEvent(e,n,i){window.dispatchEvent(new CustomEvent("wangs-ui-core:navigation-event",{detail:{route:e,mode:n,state:i}}))}navigateToRoute(e,n="push",i={},r=""){if(!e)return;const o=typeof e=="string"?e:e.toString(),s=this.normalizePath(o);if(s===location.pathname)return console.warn("[WangsUIRouter] Navigation aborted: target route is the same as the current route.");this.dispatchBeforeNavigationEvent(s,n,i),n==="push"?this.push(s,i,r):this.replace(s,i,r),this.dispatchNavigationEvent(s,n,i)}};Yt(_s,"SINGLETON_KEY","__WANGS_UI_ROUTER_INSTANCE__");let Xf=_s;const ko=new Xf,Ou="routerLink",L1="navManager",Oa=Symbol(),u7={default:Oa},D1=t=>(t==null?void 0:t.split(" "))||[],c7=(t,e,n=[])=>{var i;return[...Array.from(((i=t.value)==null?void 0:i.classList)||[]),...n].filter((r,o,s)=>!e.has(r)&&s.indexOf(r)===o)},Zf=(t,e,n=[],i=[],r,o,s)=>{e!==void 0&&e();const a=i,l=[Ou,...n].reduce((u,c)=>(u[c]=u7,u),{});return ke((u,{attrs:c,slots:d,emit:f})=>{var k;const p=re(),h=new Set(D1(c.class));ht(()=>{i.forEach(b=>{var A;(A=p.value)==null||A.addEventListener(b,y=>{f(b,y)})})});const m={created:b=>{(Array.isArray(o)?o:[o]).filter(Boolean).map(A=>A.replace(/-([a-z])/g,y=>y[1].toUpperCase())).forEach(A=>{b.addEventListener(A,y=>{y.target.tagName,b.tagName})}),s!=null&&s.length&&s.forEach(A=>{b.addEventListener(A,y=>{const O=y;O.target.tagName===b.tagName&&(y.stopImmediatePropagation(),f(A,O.detail))})})}},v=nr(),S=(k=v==null?void 0:v.appContext)==null?void 0:k.provides[L1],w=S?ot(L1):void 0;return()=>{u[r],D1(c.class).forEach(O=>{h.add(O)});const b=u.onClick,A={ref:p,class:c7(p,h),onClick:O=>{b!==void 0&&b(O),O.defaultPrevented||(I=>{const{routerLink:L}=u;if(L!==Oa)if(w!==void 0){I.preventDefault();let x={event:I};for(const D in u){const ne=u[D];u.hasOwnProperty(D)&&D.startsWith("router")&&ne!==Oa&&(x[D]=ne)}w.navigate(x)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")})(O)}};for(const O in u){const I=u[O];(u.hasOwnProperty(O)&&I!==Oa||O.startsWith("aria"))&&(A[O]=I);const L="on"+O.slice(0,1).toUpperCase()+O.slice(1),x=c[L];p.value&&c.hasOwnProperty(L)&&"addEventListener"in p.value&&p.value.addEventListener(O,x)}Ou in u&&u[Ou]!==Oa&&(A.href=u[Ou]);const y=Ti(t,A,d.default&&d.default());return s!=null&&s.length?nt(y,[[m]]):y}},{name:t,props:l,emits:a})};Zf("wangs-button",_8,["label"]),Zf("wangs-icon",e7,["icon","severity","class","tooltipPos","info"]);const d7=Zf("wangs-tabmenu",s7,["pt","type","model","activeIndex","useTrailingLine","tabChange","update:activeIndex"],["tabChange","update:activeIndex"],void 0,void 0,["update:activeIndex"]);var f7={async install(t){var e;console.log("[Bridge] Installing navigation bridge plugin..."),console.log("🚀 ~ install ~ app.onUnmount:",t.onUnmount),await At();const n=t.config.globalProperties.$router;if(!n)return void console.warn("[Bridge] Vue Router is not installed or not found. Please ensure Vue Router is installed before this plugin.");const{dispose:i}=function(r){const o=ko.normalizeBase(r.options.history.base);console.log("[Bridge] Normalized base URL:",o),ko.setNavigationBaseUrl(o);const s=l=>{const{route:u,mode:c,state:d}=l.detail;if(console.log("[Bridge] Received custom navigation event:",{route:u,mode:c,state:d}),!u)return void console.warn("[Bridge] Skipping navigation: route is missing");if(r.currentRoute.value.fullPath===u)return void console.log("[Bridge] Skipping navigation: already on route",u);const f=ko.stripBase(u);console.log("[Bridge] Navigation stripped path:",f);const p={path:f,state:d};console.log("[Bridge] Calling vueRouter."+c,p),r[c](p).catch(h=>{console.warn("[Bridge] vueRouter navigation error:",h)})};window.addEventListener("wangs-ui-core:before-navigation-event",s);const a=r.afterEach((l,u,c)=>{const d=Zd(c,16),f=Zd(c,4),p=r.currentRoute.value,h=p.path,m=p.fullPath;if(console.log("[Bridge] Router afterEach triggered:",JSON.stringify({to:l,from:u,failure:c,isDuplicated:d,isAborted:f,locationPathname:location.pathname,currentRoute:p})),(d||f)&&location.pathname!==h){const v=ko.normalizePath(m);console.log("[Bridge] Replacing history state with:",v);try{ko.replace(v,history.state)}catch(S){console.error("[Bridge] Error during Router.replace:",S)}ko.dispatchNavigationEvent(m,"replace",history.state)}c||ko.dispatchNavigationEvent(m,"replace",history.state)});return{dispose(){console.log("[Bridge] Disposing navigation bridge."),window.removeEventListener("wangs-ui-core:before-navigation-event",s),a()}}}(n);(e=t.onUnmount)===null||e===void 0||e.call(t,i)}},In={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"};function R1(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=p7(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(u){throw u},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
65
65
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function p7(t,e){if(t){if(typeof t=="string")return B1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B1(t,e)}}function B1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var N1={filter:function(e,n,i,r,o){var s=[];if(!e)return s;var a=R1(e),l;try{for(a.s();!(l=a.n()).done;){var u=l.value;if(typeof u=="string"){if(this.filters[r](u,i,o)){s.push(u);continue}}else{var c=R1(n),d;try{for(c.s();!(d=c.n()).done;){var f=d.value,p=be.resolveFieldData(u,f);if(this.filters[r](p,i,o)){s.push(u);break}}}catch(h){c.e(h)}finally{c.f()}}}}catch(h){a.e(h)}finally{a.f()}return s},filters:{startsWith:function(e,n,i){if(n==null||n==="")return!0;if(e==null)return!1;var r=be.removeAccents(n.toString()).toLocaleLowerCase(i),o=be.removeAccents(e.toString()).toLocaleLowerCase(i);return o.slice(0,r.length)===r},contains:function(e,n,i){if(n==null||n==="")return!0;if(e==null)return!1;var r=be.removeAccents(n.toString()).toLocaleLowerCase(i),o=be.removeAccents(e.toString()).toLocaleLowerCase(i);return o.indexOf(r)!==-1},notContains:function(e,n,i){if(n==null||n==="")return!0;if(e==null)return!1;var r=be.removeAccents(n.toString()).toLocaleLowerCase(i),o=be.removeAccents(e.toString()).toLocaleLowerCase(i);return o.indexOf(r)===-1},endsWith:function(e,n,i){if(n==null||n==="")return!0;if(e==null)return!1;var r=be.removeAccents(n.toString()).toLocaleLowerCase(i),o=be.removeAccents(e.toString()).toLocaleLowerCase(i);return o.indexOf(r,o.length-r.length)!==-1},equals:function(e,n,i){return n==null||n===""?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(i)==be.removeAccents(n.toString()).toLocaleLowerCase(i)},notEquals:function(e,n,i){return n==null||n===""?!1:e==null?!0:e.getTime&&n.getTime?e.getTime()!==n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(i)!=be.removeAccents(n.toString()).toLocaleLowerCase(i)},in:function(e,n){if(n==null||n.length===0)return!0;for(var i=0;i<n.length;i++)if(be.equals(e,n[i]))return!0;return!1},between:function(e,n){return n==null||n[0]==null||n[1]==null?!0:e==null?!1:e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]},lt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<n.getTime():e<n},lte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n},gt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>n.getTime():e>n},gte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n},dateIs:function(e,n){return n==null?!0:e==null?!1:e.toDateString()===n.toDateString()},dateIsNot:function(e,n){return n==null?!0:e==null?!1:e.toDateString()!==n.toDateString()},dateBefore:function(e,n){return n==null?!0:e==null?!1:e.getTime()<n.getTime()},dateAfter:function(e,n){return n==null?!0:e==null?!1:e.getTime()>n.getTime()}},register:function(e,n){this.filters[e]=n}};function Ta(t){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ta(t)}function V1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Gf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?V1(Object(n),!0).forEach(function(i){h7(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function h7(t,e,n){return e=m7(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m7(t){var e=g7(t,"string");return Ta(e)=="symbol"?e:String(e)}function g7(t,e){if(Ta(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Ta(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $1={ripple:!1,inputStyle:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},filterMatchModeOptions:{text:[In.STARTS_WITH,In.CONTAINS,In.NOT_CONTAINS,In.ENDS_WITH,In.EQUALS,In.NOT_EQUALS],numeric:[In.EQUALS,In.NOT_EQUALS,In.LESS_THAN,In.LESS_THAN_OR_EQUAL_TO,In.GREATER_THAN,In.GREATER_THAN_OR_EQUAL_TO],date:[In.DATE_IS,In.DATE_IS_NOT,In.DATE_BEFORE,In.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},unstyled:!1,csp:{nonce:void 0}},v7=Symbol();function y7(t,e,n,i){if(t!==e){var r=document.getElementById(n),o=r.cloneNode(!0),s=r.getAttribute("href").replace(t,e);o.setAttribute("id",n+"-clone"),o.setAttribute("href",s),o.addEventListener("load",function(){r.remove(),o.setAttribute("id",n),i&&i()}),r.parentNode&&r.parentNode.insertBefore(o,r.nextSibling)}}var b7={install:function(e,n){var i=n?Gf(Gf({},$1),n):Gf({},$1),r={config:Kt(i),changeTheme:y7};e.config.globalProperties.$primevue=r,e.provide(v7,r)}};const z1={locale:{global:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],monthNames:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],dayNames:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],dayNamesShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayNamesMin:["Mi","Se","Se","Ra","Ka","Ju","Sa"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",pm:"PM",am:"AM",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},components:{FieldWrapper:{labelOptional:"(opsional)",labelRequired:"*"},InputText:{urlFormatInvalidText:"Format URL tidak valid",emailFormatInvalidText:"Format email tidak valid",defaultPlaceholder:"Tulis {label}",alreadyExistInvalidText:"{label} sudah ada",emptyInvalidText:"{label} harus diisi",exceedMaxLengthInvalidText:"Maks. {maxLength} karakter",includeSpecialCharsInvalidText:"Tidak boleh berisi spesial karakter"},DialogConfirm:{nonActionableCloseButtonLabel:"Tutup",actionableCloseButtonLabel:"Batal",defaultConfirmMessage:"Apa kamu yakin?",defaultConfirmLabel:"Yakin"},CustomColumn:{resetDefaultText:"Atur Ulang ke Default"},ButtonSearch:{searchPlaceholder:"Cari"},FilterContainer:{applyText:"Terapkan",clearFieldText:"Bersihkan Field"},MultiSelect:{filterPlaceholder:"Cari",loadingPlaceholder:"Memuat...",inputPlaceholder:"Pilih {lowercaseLabel}",emptySelectionErrorMessage:"{label} harus dipilih"},Dropdown:{filterPlaceholder:"Cari",loadingPlaceholder:"Memuat...",inputPlaceholder:"Pilih {lowercaseLabel}",emptySelectionErrorMessage:"{label} harus dipilih"},InputCurrency:{emptyInputErrorMessage:"{label} harus diisi"},TextArea:{defaultPlaceholder:"Tulis {label}",emptyInvalidText:"{label} harus diisi",exceedMaxLengthInvalidText:"Maks. {maxLength} karakter"},InputRangeNumber:{minPlaceholder:"Tulis",maxPlaceholder:"Tulis"},DialogForm:{cancelBtnLabel:"Batal",clearBtnLabel:"Bersihkan Field",stayCheckboxLabel:"Tetap di halaman ini",submitBtnLabel:"Simpan",asideRightCollapsedButtonLabel:"Lihat data yang ada >",asideRightExpandedButtonLabel:"Tutup <"},InputPhoneNumber:{defaultPlaceholder:"Masukkan nomor telepon"},InputNumber:{defaultPlaceholder:"Tulis {label}",alreadyExistInvalidText:"{label} sudah ada",emptyInvalidText:"{label} harus diisi"},Calendar:{defaultPlaceholder:"Pilih tanggal",emptyInvalidText:"Tanggal tidak boleh kosong",cancelFooterButtonLabel:"Batal",applyFooterButtonLabel:"Terapkan"},Menu:{noOptionLabel:"Tidak ada aksi"},ButtonBulkAction:{allRecordSelected:"All {naming} Selected",selectAllRecords:"Select All ({totalRecords} data)",currentSelectionMessage:"{length} {naming} Selected"},UserName:{detailUserAnchorText:"User Detail"},DataTable:{downloadingMessage:"Downloading...",falseText:"No",trueText:"Yes"},ImageCompressor:{cropperCtrlScrollInfo:"Use Ctrl + Scroll to zoom the cropper",cropperTwoFingerInfo:"Use two fingers to move the cropper",cropDialogHeader:"Adjust Photo",imageTypeRequirement:"Must be image format",maxSizeRequirement:"Max. 1 MB",cancelCropLabel:"Cancel",applyCropLabel:"Apply",changeImageLabel:"Change Image"}}},defaultProps:{FieldWrapper:{showOptionalText:!0,showAsterisk:!1,tooltipPos:"top"},Tree:{type:"category",filter:""},InputText:{maxLength:30},InputURL:{maxLength:void 0},InputEmail:{maxLength:60},ButtonBulkAction:{selectMenuType:"overlay-panel",naming:"Data"},Animation:{libPath:"workspace"}}},F1=Symbol("WangsVue"),Vt=t=>{const e=ot(F1);if(!e)throw new Error("WangsVue is not installed!");return t?e.getComponentConfig(t):e.config},A7=(t,e)=>xg(t,e),w7=(t=z1,e=!0)=>{const n=e?A7(z1,t):t;return{install:(i,r)=>{var a;const o={...n,...r,preset:r.preset??r.pt,locale:{...n.locale,...r==null?void 0:r.locale,components:{...n.locale.components,...((a=r==null?void 0:r.locale)==null?void 0:a.components)||{}}},defaultProps:{...n.defaultProps,...(r==null?void 0:r.defaultProps)||{}},useToastConfig:n.useToastConfig},s={config:o,getComponentConfig:l=>({defaultProps:o.defaultProps[l]||{},locale:{...o.locale.components[l]||{},global:o.locale.global}})};i.config.globalProperties.$wangsvue=s,i.config.globalProperties.$preset=s.config.preset,i.provide(F1,s),i.provide("preset",o.preset),i.provide("useToastConfig",o.useToastConfig),i.use(b7,{unstyled:!0,pt:o.preset,locale:o.locale.global}),i.use(f7)}}};function Vi(t,e){const n={...e};for(const i in t)n[i]=t[i]??e[i];return n}const H1=t=>{if(!t)return"-";if(t.length<=8)return t;const e=t.split(" ");if(e.length===1)return`${e[0].slice(0,8)}..`;const n=e.slice(0,-1).join(" "),i=n.length>8?`${n.slice(0,8)}..`:n,r=e[e.length-1];return`${i} ${r.slice(0,1)}`},qf=t=>{if(!t)return"";const e=["a","e","i","o","h"],n=["a","e","i","o","u"],i=t.toLowerCase(),r=i[0],o=e.includes(r);if(r==="h"){const a=["hour","honest","heir","honor"].some(l=>i.includes(l));return!n.includes(i.slice(2,3))&&!a?`a ${t}`:`an ${t}`}return o||r==="u"&&!e.includes(i.slice(2,3))?`an ${t}`:`a ${t}`};var S7={root:function(e){var n=e.props,i=e.instance;return["p-badge p-component",{"p-badge-no-gutter":be.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":be.isEmpty(n.value)&&!i.$slots.default,"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warning":n.severity==="warning","p-badge-danger":n.severity==="danger","p-badge-secondary":n.severity==="secondary","p-badge-contrast":n.severity==="contrast"}]}},C7=Pt.extend({name:"badge",classes:S7});function Ma(t){"@babel/helpers - typeof";return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ma(t)}function j1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function k7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j1(Object(n),!0).forEach(function(i){O7(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function O7(t,e,n){return e=T7(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T7(t){var e=M7(t,"string");return Ma(e)=="symbol"?e:String(e)}function M7(t,e){if(Ma(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Ma(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Jf=Pt.extend({name:"common",loadGlobalStyle:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ov(e,k7({name:"global"},n))}});function xa(t){"@babel/helpers - typeof";return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xa(t)}function x7(t){return X1(t)||E7(t)||K1(t)||U1()}function E7(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Tu(t,e){return X1(t)||P7(t,e)||K1(t,e)||U1()}function U1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
66
66
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K1(t,e){if(t){if(typeof t=="string")return W1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W1(t,e)}}function W1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function P7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(c){u=!0,r=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}function X1(t){if(Array.isArray(t))return t}function Z1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Xt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z1(Object(n),!0).forEach(function(i){Mu(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z1(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Mu(t,e,n){return e=I7(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I7(t){var e=L7(t,"string");return xa(e)=="symbol"?e:String(e)}function L7(t,e){if(xa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(xa(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var wt={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){if(!e){var n,i;Jf.loadStyle({nonce:(n=this.$primevueConfig)===null||n===void 0||(n=n.csp)===null||n===void 0?void 0:n.nonce}),this.$options.style&&this.$style.loadStyle({nonce:(i=this.$primevueConfig)===null||i===void 0||(i=i.csp)===null||i===void 0?void 0:i.nonce})}}}},beforeCreate:function(){var e,n,i,r,o,s,a,l,u,c,d,f=(e=this.pt)===null||e===void 0?void 0:e._usept,p=f?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,h=f?(i=this.pt)===null||i===void 0||(i=i.value)===null||i===void 0?void 0:i[this.$.type.name]:this.pt;(r=h||p)===null||r===void 0||(r=r.hooks)===null||r===void 0||(o=r.onBeforeCreate)===null||o===void 0||o.call(r);var m=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,v=m?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,S=m?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(c=S||v)===null||c===void 0||(c=c[this.$.type.name])===null||c===void 0||(c=c.hooks)===null||c===void 0||(d=c.onBeforeCreate)===null||d===void 0||d.call(c)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;Pt.loadStyle({nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),i=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),i==null||i()}},_mergeProps:function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return be.isFunction(e)?e.apply(void 0,i):C.apply(void 0,i)},_loadGlobalStyles:function(){var e,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);be.isNotEmpty(n)&&Jf.loadGlobalStyle(n,{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce})},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=be.toFlatCase(n).split("."),o=r.shift();return o?be.isObject(e)?this._getOptionValue(be.getItemValue(e[Object.keys(e).find(function(s){return be.toFlatCase(s)===o})||""],i),r.join("."),i):void 0:be.getItemValue(e,i)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(i)&&!!r[i.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},l=a.mergeSections,u=l===void 0?!0:l,c=a.mergeProps,d=c===void 0?!1:c,f=o?s?this._useGlobalPT(this._getPTClassValue,i,r):this._useDefaultPT(this._getPTClassValue,i,r):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,i,Xt(Xt({},r),{},{global:f||{}})),h=this._getPTDatasets(i);return u||!u&&p?d?this._mergeProps(d,f,p,h):Xt(Xt(Xt({},f),p),h):Xt(Xt({},p),h)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return C(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(i)),this._usePT.apply(this,[this.$_attrsPT].concat(i)))},_getPTDatasets:function(){var e,n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r="data-pc-",o=i==="root"&&be.isNotEmpty((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return i!=="transition"&&Xt(Xt({},i==="root"&&Xt(Mu({},"".concat(r,"name"),be.toFlatCase(o?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),o&&Mu({},"".concat(r,"extend"),be.toFlatCase(this.$.type.name)))),{},Mu({},"".concat(r,"section"),be.toFlatCase(i)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return be.isString(e)||be.isArray(e)?{class:e}:e},_getPT:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(a){var l,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=r?r(a):a,d=be.toFlatCase(i),f=be.toFlatCase(n.$name);return(l=u?d!==f?c==null?void 0:c[d]:void 0:c==null?void 0:c[d])!==null&&l!==void 0?l:c};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e,!0)},_usePT:function(e,n,i,r){var o=function(m){return n(m,i,r)};if(e!=null&&e.hasOwnProperty("_usept")){var s,a=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},l=a.mergeSections,u=l===void 0?!0:l,c=a.mergeProps,d=c===void 0?!1:c,f=o(e.originalValue),p=o(e.value);return f===void 0&&p===void 0?void 0:be.isString(p)?p:be.isString(f)?f:u||!u&&p?d?this._mergeProps(d,f,p):Xt(Xt({},f),p):p}return o(e)},_useGlobalPT:function(e,n,i){return this._usePT(this.globalPT,e,n,i)},_useDefaultPT:function(e,n,i){return this._usePT(this.defaultPT,e,n,i)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Xt(Xt({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C(this.$_attrsNoPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Xt({instance:this},i),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Xt(Xt({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var r=this._getOptionValue(this.$style.inlineStyles,e,Xt(Xt({},this.$params),i)),o=this._getOptionValue(Jf.inlineStyles,e,Xt(Xt({},this.$params),i));return[o,r]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(i){return be.getItemValue(i,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(i){return n._getOptionValue(i,n.$name,Xt({},n.$params))||be.getItemValue(i,Xt({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs},parentInstance:e}},$style:function(){return Xt(Xt({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Tu(e,1),i=n[0];return i==null?void 0:i.startsWith("pt:")}).reduce(function(e,n){var i=Tu(n,2),r=i[0],o=i[1],s=r.split(":"),a=x7(s),l=a.slice(1);return l==null||l.reduce(function(u,c,d,f){return!u[c]&&(u[c]=d===f.length-1?o:{}),u[c]},e),e},{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Tu(e,1),i=n[0];return!(i!=null&&i.startsWith("pt:"))}).reduce(function(e,n){var i=Tu(n,2),r=i[0],o=i[1];return e[r]=o,e},{})}}},D7={name:"BaseBadge",extends:wt,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:C7,provide:function(){return{$parentInstance:this}}},Yf={name:"Badge",extends:D7,inheritAttrs:!1};function R7(t,e,n,i,r,o){return g(),T("span",C({class:t.cx("root")},t.ptmi("root")),[Y(t.$slots,"default",{},function(){return[at(te(t.value),1)]})],16)}Yf.render=R7;var B7=`
67
67
  .p-icon {