PageSourceSearch

http://aquagroup.ru/admin/assets/FieldsView-CYLq4VuU.js

js aquagroup.ru collected 2026-10-04 13:27:54 UTC 197,880 bytes, 69 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/revo-grid.entry-BPYl_CLa.js","assets/viewport.helpers-CoCAvmZs-BklLoqZc.js","assets/events-BvSmBueA-k9NlCA2M.js","assets/index-DBAIXX39.js","assets/index-C2Lx0yOL.css","assets/PumpCurveEditor-Cr5Ivi2g.js","assets/PumpCurveEditor-xmKGeSSA.css","assets/VDialog-BVJy90fW.js","assets/index-CvneU2GP.js","assets/index-OXCqpEHP.css","assets/VOverlay-BxLjFlP9.js","assets/VOverlay-9cZWVgxj.css","assets/VDialog-CrIbY8jS.css","assets/VTextarea-DSPwrNKO.js","assets/VTextField-DZnb8Qtf.js","assets/index-Daolnky5.js","assets/VTextField-7oHxCNVM.css","assets/VTextarea-f6vTjzFy.css","assets/VSelect-BTvj6afo.js","assets/VMenu-BaeoiIwK.js","assets/VMenu-DrUaI9p_.css","assets/VSelect-CplLSKBo.css","assets/VSwitch-CFBcCL5H.js","assets/VProgressCircular-BkqYBa4z.js","assets/VProgressCircular-lMEJvbix.css","assets/VSwitch-C6REVr_Y.css","assets/revogr-filter-panel.entry-GwKR9pJp.js","assets/revogr-attribution_7.entry-wHVXgszw.js","assets/edit.utils-Dnnbd0xG-BGu4dvTZ.js","assets/throttle-CaUDyxyU-CVbHz2LF.js","assets/revogr-clipboard_3.entry-CO3M7KuD.js","assets/revogr-data_4.entry-DAr6h4e2.js"])))=>i.map(i=>d[i]);
2var Na=Object.defineProperty;var Fa=(e,t,n)=>t in e?Na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var un=(e,t,n)=>Fa(e,typeof t!="symbol"?t+"":t,n);import{aH as lt,aI as Ma,d as Zs,aJ as Ba,aK as Ha,aL as Ua,n as U,s as Ga,av as Va,N as jr,E as Je,J as ut,aw as Wa,v as Ka,a as k,V as Ie,H as le,p as Lt,aM as qa,ax as Nr,z as Xa,S as Ja,aN as Ya,az as Qa,b as ne,aA as Za,F as Mt,aB as el,x as tl,y as nl,j as ye,U as sl,e as Ee,f as Y,t as Be,c as De,m as Ze,r as et,o as ee,_ as Gi,u as rl,K as il,w as ol,a7 as qe,q as al,a3 as ll,i as cl}from"./index-DBAIXX39.js";import{P as ul}from"./PumpCurveEditor-Cr5Ivi2g.js";import{V as Vi,b as Wi,c as Ki,d as qi,a as Xi}from"./VDialog-BVJy90fW.js";import{V as Fr}from"./VTextarea-DSPwrNKO.js";import{u as dl,a as fl,V as Sn,m as hl}from"./VTextField-DZnb8Qtf.js";import{u as pl,a as gl,b as vl,m as ml,c as $l,V as yl,d as bl,h as Sl,e as _l,f as Mr,g as Cl,i as xl,j as El}from"./VSelect-BTvj6afo.js";import{o as wl,p as Ol,n as Br,V as Tl}from"./index-CvneU2GP.js";import{g as Rl,t as zt,V as Il,d as Al,e as Hr,f as Dl,h as Ll}from"./VMenu-BaeoiIwK.js";import{r as Ur,s as zl}from"./VOverlay-BxLjFlP9.js";import{V as Pl}from"./VSwitch-CFBcCL5H.js";const _n="revo-grid",u={allRenderFn:!1,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,constructableCSS:!0,cssAnnotations:!0,deserializer:!1,devTools:!1,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!0,hostListenerTarget:!0,hostListenerTargetBody:!1,hostListenerTargetDocument:!0,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!0,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!0,invisiblePrehydration:!1,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propChangeCallback:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,serializer:!1,shadowDelegatesFocus:!1,shadowDom:!1,shadowSlotAssignmentManual:!1,slot:!0,slotChildNodesFix:!1,slotRelocation:!0,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!0},kl={};var Es={isDev:!!u.isDev,isBrowser:!0,isServer:!1,isTesting:!!u.isTesting},jl="http://www.w3.org/2000/svg",Nl="http://www.w3.org/1999/xhtml",Ji=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(Ji||{}),Yi=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(Yi||{}),rs="type",is="value",ws="serialized:";function Qi(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}}var Zi=(e,t)=>{var n;const s=t.$cmpMeta$;Object.entries((n=s.$members$)!=null?n:{}).map(([i,[o]])=>{if((u.state||u.prop)&&(o&31||o&32)){const a=e[i],l=Qi(Object.getPrototypeOf(e),i,!0)||Object.getOwnPropertyDescriptor(e,i);l&&Object.defineProperty(e,i,{get(){return l.get.call(this)},set(c){l.set.call(this,c)},configurable:!0,enumerable:!0}),t.$instanceValues$.has(i)?e[i]=t.$instanceValues$.get(i):a!==void 0&&(e[i]=a)}})},V=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Fl=(e,t)=>{t&&(e.__stencil__getHostRef=()=>t,t.$lazyInstance$=e,t.$cmpMeta$.$flags$&512&&(u.state||u.prop)&&Zi(e,t))},er=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map,$serializerValues$:new Map};u.isDev&&(n.$renderCount$=0),u.method&&u.lazyLoad&&(n.$onInstancePromise$=new Promise(r=>n.$onInstanceResolve$=r)),u.asyncLoading&&(n.$onReadyPromise$=new Promise(r=>
2n.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[]),u.lazyLoad&&(n.$fetchedCbList$=[]);const s=n;return e.__stencil__getHostRef=()=>s,!u.lazyLoad&&t.$flags$&512&&(u.state||u.prop)&&Zi(e,n),s},Os=(e,t)=>t in e,eo,oe=(e,t)=>(eo||console.error)(e,t),Bn=u.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],Ut=(...e)=>console.error(...Bn,...e),$t=(...e)=>console.warn(...Bn,...e),Ml=(...e)=>console.info(...Bn,...e),Bl=e=>eo=e,pn=new Map,to=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(u.isDev&&typeof r!="string"){Ut(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}else if(!r)return;const i=u.hotModuleReplacement?!1:pn.get(r);if(i)return i[s];if(!n||!u.hotModuleReplacement){const o=a=>(pn.set(r,a),a[s]);switch(r){case"revo-grid":return lt(()=>import("./revo-grid.entry-BPYl_CLa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then(o,oe);case"revogr-filter-panel":return lt(()=>import("./revogr-filter-panel.entry-GwKR9pJp.js"),__vite__mapDeps([26,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then(o,oe);case"revogr-attribution_7":return lt(()=>import("./revogr-attribution_7.entry-wHVXgszw.js"),__vite__mapDeps([27,2,28,1,29,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then(o,oe);case"revogr-clipboard_3":return lt(()=>import("./revogr-clipboard_3.entry-CO3M7KuD.js"),__vite__mapDeps([30,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then(o,oe);case"revogr-data_4":return lt(()=>import("./revogr-data_4.entry-DAr6h4e2.js"),__vite__mapDeps([31,29,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then(o,oe)}}return lt(()=>import(`./${r}.entry.js${u.hotModuleReplacement&&n?"?s-hmr="+n:""}`),[]).then(o=>(u.hotModuleReplacement||pn.set(r,o),o[s]),o=>{oe(o,t.$hostElement$)})},yt=new Map,tr=[],Hl=e=>{},Ul=()=>!1,no="r",so="o",Cn="s",nr="t",ro="c",bt="s-id",pt="sty-id",St="c-id",Gl="{visibility:hidden}.hydrated{visibility:inherit}",Gr="_stencilDocData",Vl={hostIds:0,rootLevelIds:0,staticComponents:new Set},io="slot-fb{display:contents}slot-fb[hidden]{display:none}",Vr="http://www.w3.org/1999/xlink",Wl=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],z=typeof window<"u"?window:{},Wr=z.HTMLElement||class{},L={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},Kl=e=>{Object.assign(L,e)},Pe=u.shadowDom,oo=(()=>{var e;let t=!1;try{(e=z.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ao=e=>Promise.resolve(e),Hn=u.constructableCSS?(()=>{try{return z.document.adoptedStyleSheets?(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"):!1}catch{}return!1})():!1,xn=Hn?!!z.document&&Object.getOwnPropertyDescriptor(z.document.adoptedStyleSheets,"length").writable:!1,os=0,En=!1,gn=[],Ye=[],as=[],lo=(e,t)=>n=>{e.push(n),En||(En=!0,t&&L.$flags$&4?Zt(wn):L.raf(wn))},Kr=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){oe(n)}e.length=0},qr=(e,t)=>{let n=0,s=0;for(;n<e.length&&(s=performance.now())<t;)try{e[n++](s)}catch(r){oe(r)}n===e.length?e.length=0:n!==0&&e.splice(0,n)},wn=()=>{if(u.asyncQueue&&os++,Kr(gn),u.asyncQueue){const e=(L.$flags$&6)===2?performance.now()+14*Math.ceil(os*.1):1/0;qr(Ye,e),qr(as,e),Ye.length>0&&(as.push(...Ye),Ye.length=0),(En=gn.length+Ye.length+as.length>0)?L.raf(wn):os=0}else Kr(Ye),(En=gn.length>0)&&L.raf(wn)},Zt=e=>ao().then(e),ql=lo(gn,!1),sr=lo(Ye,!0),Xl=e=>{const t=new URL(e,L.$resourcesUrl$);return t.origin!==z.location.origin?t.href:t.pathname},Jl=e=>L.$resourcesUrl$=e;var Pt;function co(e){var t;const n={mode:"open"};u.shadowDelegatesFocus&&(n.delegatesFocus=!!(e.$flags$&16)),u.shadowSlotAssignmentManual&&e.$flags$&1024&&(n.slotAssignment="manual");const s=this.attachShadow(n);Pt===void 0&&(Pt=(t=void 0)!=null?t:null),Pt&&(xn?s.adoptedStyleSheets.push(Pt):s.adoptedStyleSheets=[...s.adoptedStyleSheets,Pt])}var Un=e=>{const t=se(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&en(t,e.tagName).forEach(s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(rr(s,Ot(s),!1).length?s.hidden=!0:s.hidden=!1)});let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&se(s,"childNodes").length&&Un(s)}},Gt=e=>{const t=[];for(let n=0;n<e.length;n++){const s=e[n]["s-nr"]||void 0;s&&s.isConnected&&t.push(s)}return t};
2function en(e,t,n){let s=0,r=[],i;for(;s<e.length;s++){if(i=e[s],i["s-sr"]&&(!t||i["s-hn"]===t)&&(n===void 0||Ot(i)===n)&&(r.push(i),typeof n<"u"))return r;r=[...r,...en(i.childNodes,t,n)]}return r}var rr=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let r=e;for(;r=r.nextSibling;)Ot(r)===t&&(n||!r["s-sr"])&&s.push(r);return s},Xr=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Gn=(e,t,n,s)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const r=document.createTextNode("");if(r["s-nr"]=e,!t["s-cr"]||!t["s-cr"].parentNode)return;const i=t["s-cr"].parentNode,o=n?se(i,"prepend"):se(i,"appendChild");if(u.hydrateClientSide&&typeof s<"u"){r["s-oo"]=s;const a=se(i,"childNodes"),l=[r];a.forEach(c=>{c["s-nr"]&&l.push(c)}),l.sort((c,d)=>!c["s-oo"]||c["s-oo"]<(d["s-oo"]||0)?-1:!d["s-oo"]||d["s-oo"]<c["s-oo"]?1:0),l.forEach(c=>o.call(i,c))}else o.call(i,r);e["s-ol"]=r,e["s-sh"]=t["s-hn"]},Ot=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function uo(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=n=>(function(s){const r=[],i=this["s-sn"];s!=null&&s.flatten&&console.error(`
3          Flattening is not supported for Stencil non-shadow slots.
4          You can use \`.childNodes\` to nested slot fallback content.
5          If you have a particular use case, please open an issue on the Stencil repo.
6        `);const o=this["s-cr"].parentElement;return(o.__childNodes?o.childNodes:Gt(o.childNodes)).forEach(l=>{i===Ot(l)&&r.push(l)}),n?r.filter(l=>l.nodeType===1):r}).bind(e);e.assignedElements=t(!0),e.assignedNodes=t(!1)}function Vn(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function ir(e,t){var n;if(t=t||((n=e["s-ol"])==null?void 0:n.parentElement),!t)return{slotNode:null,slotName:""};const s=e["s-sn"]=Ot(e)||"",r=se(t,"childNodes");return{slotNode:en(r,t.tagName,s)[0],slotName:s}}var fo=e=>{Vt(e),or(e),Zl(e),Ql(e),sc(e),ec(e),tc(e),nc(e),ar(e),lr(e),Yl(e)},Vt=e=>{if(e.__cloneNode)return;const t=e.__cloneNode=e.cloneNode;e.cloneNode=function(n){const s=this,r=u.shadowDom?s.shadowRoot&&Pe:!1,i=t.call(s,r?n:!1);if(u.slot&&!r&&n){let o=0,a,l;const c=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],d=this.__childNodes||this.childNodes;for(;o<d.length;o++)a=d[o]["s-nr"],l=c.every(f=>!d[o][f]),a&&(u.appendChildSlotFix&&i.__appendChild?i.__appendChild(a.cloneNode(!0)):i.appendChild(a.cloneNode(!0))),l&&i.appendChild(d[o].cloneNode(!0))}return i}},or=e=>{e.__appendChild||(e.__appendChild=e.appendChild,e.appendChild=function(t){const{slotName:n,slotNode:s}=ir(t,this);if(s){Gn(t,s);const r=rr(s,n),i=r[r.length-1],o=se(i,"parentNode"),a=se(o,"insertBefore")(t,i.nextSibling);return Vn(s),Un(this),a}return this.__appendChild(t)})},Yl=e=>{e.__removeChild||(e.__removeChild=e.removeChild,e.removeChild=function(t){if(t&&typeof t["s-sn"]<"u"){const n=this.__childNodes||this.childNodes;if(en(n,this.tagName,t["s-sn"])&&t.isConnected){t.remove(),Un(this);return}}return this.__removeChild(t)})},Ql=e=>{e.__prepend||(e.__prepend=e.prepend,e.prepend=function(...t){t.forEach(n=>{typeof n=="string"&&(n=this.ownerDocument.createTextNode(n));const s=(n["s-sn"]=Ot(n))||"",r=se(this,"childNodes"),i=en(r,this.tagName,s)[0];if(i){Gn(n,i,!0);const a=rr(i,s)[0],l=se(a,"parentNode"),c=se(l,"insertBefore")(n,se(a,"nextSibling"));return Vn(i),c}return n.nodeType===1&&n.getAttribute("slot")&&(n.hidden=!0),e.__prepend(n)})})},Zl=e=>{e.__append||(e.__append=e.append,e.append=function(...t){t.forEach(n=>{typeof n=="string"&&(n=this.ownerDocument.createTextNode(n)),this.appendChild(n)})})},ec=e=>{if(e.__insertAdjacentHTML)return;const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(n,s){if(n!=="afterbegin"&&n!=="beforeend")return t.call(this,n,s);const r=this.ownerDocument.createElement("_");let i;if(r.innerHTML=s,n==="afterbegin")for(;i=r.firstChild;)this.prepend(i);else if(n==="beforeend")for(;i=r.firstChild;)this.append(i)}},tc=e=>{e.insertAdjacentText=function(t,n){this.insertAdjacentHTML(t,n)}},nc=e=>{if(e.__insertBefore)return;const t=e;t.__insertBefore||(t.__insertBefore=e.insertBefore,e.insertBefore=function(n,s){const{slotName:r,slotNode:i}=ir(n,this),o=this.__childNodes?this.childNodes:Gt(this.childNodes);if(i){let l=!1;
6if(o.forEach(c=>{if(c===s||s===null){if(l=!0,s===null||r!==s["s-sn"]){this.appendChild(n);return}if(r===s["s-sn"]){Gn(n,i);const d=se(s,"parentNode");se(d,"insertBefore")(n,s),Vn(i)}return}}),l)return n}const a=s==null?void 0:s.__parentNode;return a&&!this.isSameNode(a)?this.appendChild(n):this.__insertBefore(n,s)})},sc=e=>{if(e.__insertAdjacentElement)return;const t=e.insertAdjacentElement;e.insertAdjacentElement=function(n,s){return n!=="afterbegin"&&n!=="beforeend"?t.call(this,n,s):n==="afterbegin"?(this.prepend(s),s):(n==="beforeend"&&this.append(s),s)}},ar=e=>{Oe("textContent",e),Object.defineProperty(e,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:Gt(this.childNodes)).forEach(s=>t+=s.textContent||""),t},set:function(t){(this.__childNodes?this.childNodes:Gt(this.childNodes)).forEach(s=>{s["s-ol"]&&s["s-ol"].remove(),s.remove()}),this.insertAdjacentHTML("beforeend",t)}})},lr=e=>{class t extends Array{item(s){return this[s]}}Oe("children",e),Object.defineProperty(e,"children",{get(){return this.childNodes.filter(n=>n.nodeType===1)}}),Object.defineProperty(e,"childElementCount",{get(){return this.children.length}}),Oe("firstChild",e),Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}}),Oe("lastChild",e),Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Oe("childNodes",e),Object.defineProperty(e,"childNodes",{get(){const n=new t;return n.push(...Gt(this.__childNodes)),n}})},rc=e=>{!e||e.__nextSibling!==void 0||!globalThis.Node||(ic(e),ac(e),ho(e),e.nodeType===Node.ELEMENT_NODE&&(oc(e),lc(e)))},ic=e=>{!e||e.__nextSibling||(Oe("nextSibling",e),Object.defineProperty(e,"nextSibling",{get:function(){var t;const n=(t=this["s-ol"])==null?void 0:t.parentNode.childNodes,s=n==null?void 0:n.indexOf(this);return n&&s>-1?n[s+1]:this.__nextSibling}}))},oc=e=>{!e||e.__nextElementSibling||(Oe("nextElementSibling",e),Object.defineProperty(e,"nextElementSibling",{get:function(){var t;const n=(t=this["s-ol"])==null?void 0:t.parentNode.children,s=n==null?void 0:n.indexOf(this);return n&&s>-1?n[s+1]:this.__nextElementSibling}}))},ac=e=>{!e||e.__previousSibling||(Oe("previousSibling",e),Object.defineProperty(e,"previousSibling",{get:function(){var t;const n=(t=this["s-ol"])==null?void 0:t.parentNode.childNodes,s=n==null?void 0:n.indexOf(this);return n&&s>-1?n[s-1]:this.__previousSibling}}))},lc=e=>{!e||e.__previousElementSibling||(Oe("previousElementSibling",e),Object.defineProperty(e,"previousElementSibling",{get:function(){var t;const n=(t=this["s-ol"])==null?void 0:t.parentNode.children,s=n==null?void 0:n.indexOf(this);return n&&s>-1?n[s-1]:this.__previousElementSibling}}))},ho=e=>{!e||e.__parentNode||(Oe("parentNode",e),Object.defineProperty(e,"parentNode",{get:function(){var t;return((t=this["s-ol"])==null?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},cc=["children","nextElementSibling","previousElementSibling"],uc=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Oe(e,t){if(!globalThis.Node||!globalThis.Element)return;let n;cc.includes(e)?n=Object.getOwnPropertyDescriptor(Element.prototype,e):uc.includes(e)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,e)),n||(n=Object.getOwnPropertyDescriptor(t,e)),n&&Object.defineProperty(t,"__"+e,n)}function se(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}else return typeof e[t]!="function"?e[t]:e[t].bind(e)}var dc=0,Te=(e,t="")=>{if(u.profile&&performance.mark){const n=`st:${e}:${t}:${dc++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}else return()=>{}},fc=(e,t)=>u.profile&&performance.mark?(performance.getEntriesByName(e,"mark").length===0&&performance.mark(e),()=>{performance.getEntriesByName(t,"measure").length===0&&performance.measure(t,e)}):()=>{},hc=e=>{const t=V(e);if(!t)return;const n=t.$flags$,s=t.$hostElement$;return{renderCount:t.$renderCount$,flags:{hasRendered:!!(n&2),hasConnected:!!(n&1),isWaitingForChildren:!!(n&4),isConstructingInstance:!!(n&8),isQueuedForUpdate:!!(n&16),hasInitializedComponent:!!(n&32),hasLoadedComponent:!!(n&64),isWatchReady:!!(n&128),isListenReady:!!(n&256),needsRerender:!!(n&512)},instanceValues:t.$instanceValues$,serializerValues:t.$serializerValues$,ancestorComponent:t.$ancestorComponent$,hostElement:s,lazyInstance:t.$lazyInstance$,vnode:t.$vnode$,modeName:t.$modeName$,fetchedCbList:t.$fetchedCbList$,onReadyPromise:t.$onReadyPromise$,onReadyResolve:t.$onReadyResolve$,onInstancePromise:t.$onInstancePromise$,onInstanceResolve:t.$onInstanceResolve$,onRenderResolve:t.$onRenderResolve$,queuedListeners:t.$queuedListeners$,rmListeners:t.$rmListeners$,"s-id":s["s-id"],"s-cr":s["s-cr"],"s-lr":s["s-lr"],"s-p":s["s-p"],"s-rc":s["s-rc"],"s-sc":s["s-sc"]}},pc=()=>
6{if(u.devTools){const e=z.stencil=z.stencil||{},t=e.inspect;e.inspect=n=>{let s=hc(n);return!s&&typeof t=="function"&&(s=t(n)),s}}};function po(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Ue=new WeakMap,cr=(e,t,n)=>{let s=yt.get(e);Hn&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,yt.set(e,s)},Ts=(e,t,n)=>{var s,r,i;const o=tn(t,n),a=yt.get(o);if(!u.attachStyles||!z.document)return o;if(e=e.nodeType===11?e:z.document,a){if(typeof a=="string"){e=e.head||e;let l=Ue.get(e),c;l||Ue.set(e,l=new Set);const d=(u.hydrateClientSide||u.hotModuleReplacement)&&e.querySelector(`[${pt}="${o}"]`);if(d)d.textContent=a;else if(!l.has(o)){c=z.document.createElement("style"),c.textContent=a;const f=(s=L.$nonce$)!=null?s:po(z.document);if(f!=null&&c.setAttribute("nonce",f),(u.hydrateServerSide||u.hotModuleReplacement)&&(t.$flags$&2||t.$flags$&128||t.$flags$&1)&&c.setAttribute(pt,o),!(t.$flags$&1))if(e.nodeName==="HEAD"){const h=e.querySelectorAll("link[rel=preconnect]"),g=h.length>0?h[h.length-1].nextSibling:e.querySelector("style");e.insertBefore(c,(g==null?void 0:g.parentNode)===e?g:null)}else if("host"in e)if(Hn){const h=(r=e.defaultView)!=null?r:e.ownerDocument.defaultView,g=new h.CSSStyleSheet;g.replaceSync(a),xn?e.adoptedStyleSheets.unshift(g):e.adoptedStyleSheets=[g,...e.adoptedStyleSheets]}else{const h=e.querySelector("style");h&&!u.hotModuleReplacement?h.textContent=a+h.textContent:e.prepend(c)}else e.append(c);t.$flags$&1&&e.insertBefore(c,null),t.$flags$&4&&(c.textContent+=io),l&&l.add(o)}}else if(u.constructableCSS){let l=Ue.get(e);if(l||Ue.set(e,l=new Set),!l.has(o)){const c=(i=e.defaultView)!=null?i:e.ownerDocument.defaultView;let d;if(a.constructor===c.CSSStyleSheet)d=a;else{d=new c.CSSStyleSheet;for(let f=0;f<a.cssRules.length;f++)d.insertRule(a.cssRules[f].cssText,f)}if(xn?e.adoptedStyleSheets.push(d):e.adoptedStyleSheets=[...e.adoptedStyleSheets,d],l.add(o),u.hydrateClientSide&&"host"in e){const f=e.querySelector(`[${pt}="${o}"]`);f&&sr(()=>f.remove())}}}}return o},go=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=Te("attachStyles",t.$tagName$),i=Ts(u.shadowDom&&Pe&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);(u.shadowDom||u.scoped)&&u.cssAnnotations&&s&10&&(n["s-sc"]=i,n.classList.add(i+"-h")),r()},tn=(e,t)=>"sc-"+(u.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),gc=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),vo=()=>{if(!z.document)return;const e=z.document.querySelectorAll(`[${pt}]`);let t=0;for(;t<e.length;t++)cr(e[t].getAttribute(pt),gc(e[t].innerHTML),!0)},vc=e=>e!=null&&e!==void 0,ur=e=>(e=typeof e,e==="object"||e==="function"),H=(e,t,...n)=>{typeof e=="string"&&(e=sn(e));let s=null,r=null,i=null,o=!1,a=!1;const l=[],c=f=>{for(let h=0;h<f.length;h++)s=f[h],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof e!="function"&&!ur(s))?s=String(s):u.isDev&&typeof e!="function"&&s.$flags$===void 0&&Ut(`vNode passed as children has unexpected type.
7Make sure it's using the correct h() function.
8Empty objects can also be the cause, look for JSX comments that became objects.`),o&&a?l[l.length-1].$text$+=s:l.push(o?_t(null,s):s),a=o)};if(c(n),t&&(u.isDev&&e==="input"&&yc(t),u.vdomKey&&t.key&&(r=t.key),u.slotRelocation&&t.name&&(i=t.name),u.vdomClass)){const f=t.className||t.class;f&&(t.class=typeof f!="object"?f:Object.keys(f).filter(h=>f[h]).join(" "))}if(u.isDev&&l.some(Rs)&&Ut(`The <Host> must be the single root component. Make sure:
9- You are NOT using hostData() and <Host> in the same component.
10- <Host> is used once, and it's the single root component of the render() function.`),u.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,l,mc);const d=_t(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),u.vdomKey&&(d.$key$=r),u.slotRelocation&&(d.$name$=i),d},_t=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t??null,$elm$:null,$children$:null};return u.vdomAttribute&&(n.$attrs$=null),u.vdomKey&&(n.$key$=null),u.slotRelocation&&(n.$name$=null),n},mo={},Rs=e=>e&&e.$tag$===mo,mc={forEach:(e,t)=>e.map(Jr).forEach(t),map:(e,t)=>e.map(Jr).map(t).map($c)},Jr=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),$c=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};
10return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),H(e.vtag,n,...e.vchildren||[])}const t=_t(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},yc=e=>{const t=Object.keys(e),n=t.indexOf("value");if(n===-1)return;const s=t.indexOf("type"),r=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("step");(n<s||n<r||n<i||n<o)&&$t('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},bc=(e,t,n,s)=>{var r,i,o,a;const l=Te("hydrateClient",t),c=e.shadowRoot,d=[],f=[],h=[],g=u.shadowDom&&c?[]:null,p=_t(t,null);p.$elm$=e;let $;if(u.scoped){const F=s.$cmpMeta$;F&&F.$flags$&10&&e["s-sc"]?($=e["s-sc"],e.classList.add($+"-h")):e["s-sc"]&&delete e["s-sc"]}z.document&&(!L.$orgLocNodes$||!L.$orgLocNodes$.size)&&As(z.document.body,L.$orgLocNodes$=new Map),e[bt]=n,e.removeAttribute(bt),s.$vnode$=Is(p,d,f,g,e,e,n,h);let y=0;const I=d.length;let T;for(y;y<I;y++){T=d[y];const F=T.$hostId$+"."+T.$nodeId$,W=L.$orgLocNodes$.get(F),K=T.$elm$;if(!c)K["s-hn"]=sn(t).toUpperCase(),T.$tag$==="slot"&&(K["s-cr"]=e["s-cr"]);else if((r=T.$tag$)!=null&&r.toString().includes("-")&&T.$tag$!=="slot-fb"&&!T.$elm$.shadowRoot){const re=V(T.$elm$);if(re){const Ne=tn(re.$cmpMeta$,u.mode?T.$elm$.getAttribute("s-mode"):void 0),Fe=z.document.querySelector(`style[sty-id="${Ne}"]`);Fe&&g.unshift(Fe.cloneNode(!0))}}T.$tag$==="slot"&&(T.$name$=T.$elm$["s-sn"]||T.$elm$.name||null,T.$children$?(T.$flags$|=2,T.$elm$.childNodes.length||T.$children$.forEach(re=>{T.$elm$.appendChild(re.$elm$)})):T.$flags$|=1),W&&W.isConnected&&(W.parentElement.shadowRoot&&W["s-en"]===""&&W.parentNode.insertBefore(K,W.nextSibling),W.parentNode.removeChild(W),c||(K["s-oo"]=parseInt(T.$nodeId$))),W&&!W["s-id"]&&L.$orgLocNodes$.delete(F)}const b=[],E=h.length;let m=0,_,C,A,P,B=0;for(m;m<E;m++)if(_=h[m],!(!_||!_.length))for(A=_.length,C=0,C;C<A;C++){if(P=_[C],b[P.hostId]||(b[P.hostId]=L.$orgLocNodes$.get(P.hostId)),!b[P.hostId])continue;const F=b[P.hostId];F.shadowRoot&&P.node.parentElement!==F&&F.insertBefore(P.node,(o=(i=_[C-1])==null?void 0:i.node)==null?void 0:o.nextSibling),(!F.shadowRoot||!c)&&(P.slot["s-cr"]||(P.slot["s-cr"]=F["s-cr"],!P.slot["s-cr"]&&F.shadowRoot?P.slot["s-cr"]=F:P.slot["s-cr"]=(F.__childNodes||F.childNodes)[0]),Gn(P.node,P.slot,!1,P.node["s-oo"]||B),(a=P.node.parentElement)!=null&&a.shadowRoot&&P.node.getAttribute&&P.node.getAttribute("slot")&&P.node.removeAttribute("slot"),u.experimentalSlotFixes&&rc(P.node)),B=(P.node["s-oo"]||B)+1}if(u.scoped&&$&&f.length&&f.forEach(F=>{F.$elm$.parentElement.classList.add($+"-s")}),u.shadowDom&&c&&!c.childNodes.length){let F=0;const W=g.length;if(W){for(F;F<W;F++){const K=g[F];K&&c.appendChild(K)}Array.from(e.childNodes).forEach(K=>{typeof K["s-en"]!="string"&&typeof K["s-sn"]!="string"&&(K.nodeType===1&&K.slot&&K.hidden?K.removeAttribute("hidden"):K.nodeType===8&&!K.nodeValue&&K.parentNode.removeChild(K))})}}s.$hostElement$=e,l()},Is=(e,t,n,s,r,i,o,a=[])=>{let l,c,d,f;const h=r["s-sc"];if(i.nodeType===1){if(l=i.getAttribute(St),l&&(c=l.split("."),c[0]===o||c[0]==="0")){d=Yr({$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:{class:i.className||""}}),t.push(d),i.removeAttribute(St),e.$children$||(e.$children$=[]),u.scoped&&h&&c[0]===o&&(i["s-si"]=h,d.$attrs$.class+=" "+h);const p=d.$elm$.getAttribute("s-sn");typeof p=="string"&&(d.$tag$==="slot-fb"&&(Qr(p,c[2],d,i,e,t,n,s,a),u.scoped&&h&&i.classList.add(h)),d.$elm$["s-sn"]=p,d.$elm$.removeAttribute("s-sn")),d.$index$!==void 0&&(e.$children$[d.$index$]=d),e=d,s&&d.$depth$==="0"&&(s[d.$index$]=d.$elm$)}if(i.shadowRoot)for(f=i.shadowRoot.childNodes.length-1;f>=0;f--)Is(e,t,n,s,r,i.shadowRoot.childNodes[f],o,a);const g=i.__childNodes||i.childNodes;for(f=g.length-1;f>=0;f--)Is(e,t,n,s,r,g[f],o,a)}else if(i.nodeType===8){if(c=i.nodeValue.split("."),c[1]===o||c[1]==="0"){if(l=c[0],d=Yr({$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4]||"0",$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),l===nr)d.$elm$=ei(i,3),d.$elm$&&d.$elm$.nodeType===3&&(d.$text$=d.$elm$.textContent,t.push(d),i.remove(),o===d.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d),s&&d.$depth$==="0"&&(s[d.$index$]=d.$elm$));else if(l===ro)d.$elm$=ei(i,8),d.$elm$&&d.$elm$.nodeType===8&&(t.push(d),i.remove());else if(d.$hostId$===o)if(l===Cn){const g=i["s-sn"]=c[5]||"";Qr(g,c[2],d,i,e,t,n,s,a)}else l===no&&(u.shadowDom&&s?i.remove():u.slotRelocation&&(r["s-cr"]=i,i["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){const g=_t(null,i.textContent);g.$elm$=i,g.$index$="0",e.$children$=[g]}return e},As=(e,t)=>{if(e.nodeType===1){const n=e[bt]||e.getAttribute(bt);n&&t.set(n,e);let s=0;if(e.shadowRoot)for(;s<e.shadowRoot.childNodes.length;s++)As(e.shadowRoot.childNodes[s],t);const r=e.__childNodes||e.childNodes;for(s=0;s<r.length;s++)As(r[s],t)}else if(e.nodeType===8){const n=e.nodeValue.split(".");n[0]===so&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},Yr=e=>({...{$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},...e});function Qr(e,t,n,s,r,i,o,a,l){s["s-sr"]=!0,n.$name$=e||null,n.$tag$="slot";const c=r!=null&&r.$elm$?r.$elm$["s-id"]||r.$elm$.getAttribute("s-id"):"";if(u.shadowDom&&a&&z.document){const d=n.$elm$=z.document.createElement(n.$tag$);n.$name$&&n.$elm$.setAttribute("name",e),r.$elm$.shadowRoot&&c&&c!==n.$hostId$?se(r.$elm$,"insertBefore")(d,se(r.$elm$,"children")[0]):se(se(s,"parentNode"),"insertBefore")(d,s),Zr(l,t,e,s,n.$hostId$),s.remove(),n.$depth$==="0"&&(a[n.$index$]=n.$elm$)}else{const d=n.$elm$,f=c&&c!==n.$hostId$&&r.$elm$.shadowRoot;Zr(l,t,e,s,f?c:n.$hostId$),uo(s),f&&r.$elm$.insertBefore(d,r.$elm$.children[0])}i.push(n),o.push(n),r.$children$||(r.$children$=[]),r.$children$[n.$index$]=n}var Zr=(e,t,n,s,r)=>{var i,o;let a=s.nextSibling;if(e[t]=e[t]||[],!(!a||(i=a.nodeValue)!=null&&i.startsWith(Cn+".")))do a&&((a.getAttribute&&a.getAttribute("slot")||a["s-sn"])===n||n===""&&!a["s-sn"]&&(!a.getAttribute||!a.getAttribute("slot"))&&(a.nodeType===8||a.nodeType===3))&&(a["s-sn"]=n,e[t].push({slot:s,node:a,hostId:r})),a=a==null?void 0:a.nextSibling;while(a&&!((o=a.nodeValue)!=null&&o.startsWith(Cn+".")))},ei=(e,t)=>{let n=e;do n=n.nextSibling;while(n&&(n.nodeType!==t||!n.nodeValue));return n},$o=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");/**
11 * @license
12 * Copyright Google Inc. All Rights Reserved.
13 *
14 * Use of this source code is governed by an MIT-style license that can be
15 * found in the LICENSE file at https://angular.io/license
16 *
17 * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
18 * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
19 * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
20 */var Sc=e=>{const t=[];let n=0;return e=e.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g,(i,o)=>{const a=`__part-${n}__`;return t.push(o),n++,a}
vendor: 4,454 bytes, line 20
20),e=e.replace(/(\[[^\]]*\])/g,(i,o)=>{const a=`__ph-${n}__`;return t.push(o),n++,a}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(i,o,a)=>{const l=`__ph-${n}__`;return t.push(a),n++,o+l}),placeholders:t}},_c=(e,t)=>(t=t.replace(/__part-(\d+)__/g,(n,s)=>e[+s]),t.replace(/__ph-(\d+)__/g,(n,s)=>e[+s])),nn="-shadowcsshost",yo="-shadowcssslotted",bo="-shadowcsscontext",dr=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Cc=new RegExp("("+nn+dr,"gim"),xc=new RegExp("("+bo+dr,"gim"),Ec=new RegExp("("+yo+dr,"gim"),tt=nn+"-no-combinator",wc=/-shadowcsshost-no-combinator([^\s]*)/,Oc=[/::shadow/g,/::content/g],Tc=/__part-(\d+)__/g,Rc="([>\\s~+[.,{:][\\s\\S]*)?$",vn=/-shadowcsshost/gim,ls=e=>{const t=$o(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")},Ic=/\/\*\s*[\s\S]*?\*\//g,Ac=e=>e.replace(Ic,""),Dc=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Lc=e=>e.match(Dc)||[],zc=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Pc=/([{}])/g,kc=/(^.*?[^\\])??((:+)(.*)|$)/,jc="{",Nc="}",On="%BLOCK%",Tn=(e,t)=>{const n=Fc(e);let s=0;return n.escapedString.replace(zc,(...r)=>{const i=r[2];let o="",a=r[4],l="";a&&a.startsWith("{"+On)&&(o=n.blocks[s++],a=a.substring(On.length+1),l="{");const d=t({selector:i,content:o});return`${r[1]}${d.selector}${r[3]}${l}${d.content}${a}`})},Fc=e=>{const t=e.split(Pc),n=[],s=[];let r=0,i=[];for(let a=0;a<t.length;a++){const l=t[a];l===Nc&&r--,r>0?i.push(l):(i.length>0&&(s.push(i.join("")),n.push(On),i=[]),n.push(l)),l===jc&&r++}return i.length>0&&(s.push(i.join("")),n.push(On)),{escapedString:n.join(""),blocks:s}},Mc=e=>{const t=[];e=e.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g,(i,o)=>{const a=`__supports_${t.length}__`;return t.push(o),`@supports selector(${a})`});const n=ls("::slotted"),s=ls(":host"),r=ls(":host-context");return e=e.replace(r,`$1${bo}`).replace(s,`$1${nn}`).replace(n,`$1${yo}`),t.forEach((i,o)=>{e=e.replace(`__supports_${o}__`,i)}),e},So=(e,t,n)=>e.replace(t,(...s)=>{if(s[2]){const r=s[2].split(","),i=[];for(let o=0;o<r.length;o++){const a=r[o].trim();if(!a)break;i.push(n(tt,a,s[3]))}return i.join(",")}else return tt+s[3]}),_o=(e,t,n)=>e+t.replace(nn,"")+n,Bc=e=>So(e,Cc,_o),Hc=(e,t,n)=>t.indexOf(nn)>-1?_o(e,t,n):e+t+n+", "+t+" "+e+n,Uc=(e,t)=>{const n="."+t+" > ",s=[];return e=e.replace(Ec,(...r)=>{if(r[2]){const i=r[2].trim(),o=r[3],a=n+i+o;let l="";for(let f=r[4]-1;f>=0;f--){const h=r[5][f];if(h==="}"||h===",")break;l=h+l}const c=(l+a).trim(),d=`${l.trimEnd()}${a.trim()}`.trim();if(c!==d){const f=`${d}, ${c}`;s.push({orgSelector:c,updatedSelector:f})}return a}else return tt+r[3]}),{selectors:s,cssText:e}},Gc=e=>So(e,xc,Hc),Vc=e=>Oc.reduce((t,n)=>t.replace(n," "),e),Wc=e=>{const t=/\[/g,n=/\]/g;return e=e.replace(t,"\\[").replace(n,"\\]"),new RegExp("^("+e+")"+Rc,"m")},Kc=(e,t)=>!Wc(t).test(e),Co=(e,t)=>e.replace(kc,(n,s="",r,i="",o="")=>s+t+i+o),qc=(e,t,n)=>{if(vn.lastIndex=0,vn.test(e)){const s=`.${n}`;return e.replace(wc,(r,i)=>Co(i,s)).replace(vn,s+" ")}return t+" "+e},Xc=(e,t,n)=>{const s=/\[is=([^\]]*)\]/g;t=t.replace(s,(p,...$)=>$[0]);const r="."+t,i=p=>{let $=p.trim();if(!$)return"";if(p.indexOf(tt)>-1)$=qc(p,t,n);else{const y=p.replace(vn,"");y.length>0&&($=Co(y,r))}return $},o=Sc(e);e=o.content;let a="",l=0,c;const d=/( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;let h=!(e.indexOf(tt)>-1);for(;(c=d.exec(e))!==null;){const p=c[1],$=e.slice(l,c.index).trim();h=h||$.indexOf(tt)>-1;const y=h?i($):$;a+=`${y} ${p} `,l=d.lastIndex}const g=e.substring(l);return h=!g.match(Tc)&&(h||g.indexOf(tt)>-1),a+=h?i(g):g,_c(o.placeholders,a)},Jc=(e,t,n,s)=>e.split(",").map(r=>s&&r.indexOf("."+s)>-1?r.trim():Kc(r,t)?Xc(r,t,n).trim():r.trim()).join(", "),xo=(e,t,n,s,r)=>Tn(e,i=>{let o=i.selector,a=i.content;return i.selector[0]!=="@"?o=Jc(i.selector,t,n,s):(i.selector.startsWith("@media")||i.selector.startsWith("@supports")||i.selector.startsWith("@page")||i.selector.startsWith("@document"))&&(a=xo(i.content,t,n,s)),{selector:o.replace(/\s{2,}/g," ").trim(),content:a}}),Yc=(e,t,n,s,r)=>{e=Mc(e),e=Bc(e),e=Gc(e);const i=Uc(e,s);return e=i.cssText,e=Vc(e),t&&(e=xo(e,t,n,s)),e=cs(e,n),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:i.selectors.map(o=>({orgSelector:cs(o.orgSelector,n),updatedSelector:cs(o.updatedSelector,n)}))}},cs=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),Qc=e=>{const t=/([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)
20/g;return Tn(e,n=>{if(n.selector[0]==="@")return n;const s=n.selector.split(",").map(r=>{const i=[r.trim()];let o;for(;(o=t.exec(r))!==null;){const a=o[1].trimEnd(),l=o[2].trim().split(/\s+/),c=o[3]||"",d=l.flatMap(h=>n.selector.includes(`[part~="${h}"]`)?[]:[`[part~="${h}"]`]).join(""),f=`${a} ${d}${c}`;d&&f!==r.trim()&&i.push(f)}return i.join(", ")});return n.selector=s.join(", "),n})},Zc=(e,t,n)=>{const s=t+"-h",r=t+"-s",i=Lc(e);e=Ac(e);const o=[];{const l=c=>{const d=`/*!@___${o.length}___*/`,f=`/*!@${c.selector}*/`;return o.push({placeholder:d,comment:f}),c.selector=d+c.selector,c};e=Tn(e,c=>c.selector[0]!=="@"?l(c):((c.selector.startsWith("@media")||c.selector.startsWith("@supports")||c.selector.startsWith("@page")||c.selector.startsWith("@document"))&&(c.content=Tn(c.content,l)),c))}const a=Yc(e,t,s,r);return e=[a.cssText,...i].join(`
21`),o.forEach(({placeholder:l,comment:c})=>{e=e.replace(l,c)}),a.slottedSelectors.forEach(l=>{const c=new RegExp($o(l.orgSelector)+"(?=\\s*[,{]|$)","g");e=e.replace(c,l.updatedSelector)}),e=Qc(e),e},Eo=e=>tr.map(t=>t(e)).find(t=>!!t),wo=e=>tr.push(e),eu=e=>{var t;return(t=V(e))==null?void 0:t.$modeName$},tu=class Qe{static fromLocalValue(t){const n=t[rs],s=is in t?t[is]:void 0;switch(n){case"string":return s;case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return s==="NaN"?NaN:s==="-0"?-0:s==="Infinity"?1/0:s==="-Infinity"?-1/0:s;case"array":return s.map(c=>Qe.fromLocalValue(c));case"date":return new Date(s);case"map":const r=new Map;for(const[c,d]of s){const f=typeof c=="object"&&c!==null?Qe.fromLocalValue(c):c,h=Qe.fromLocalValue(d);r.set(f,h)}return r;case"object":const i={};for(const[c,d]of s)i[c]=Qe.fromLocalValue(d);return i;case"regexp":const{pattern:o,flags:a}=s;return new RegExp(o,a);case"set":const l=new Set;for(const c of s)l.add(Qe.fromLocalValue(c));return l;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${n}`)}}static fromLocalValueArray(t){return t.map(n=>Qe.fromLocalValue(n))}static isLocalValueObject(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(rs))return!1;const n=t[rs];return Object.values({...Ji,...Yi}).includes(n)?n!=="null"&&n!=="undefined"?t.hasOwnProperty(is):!0:!1}};function nu(e){return typeof e!="string"||!e.startsWith(ws)?e:tu.fromLocalValue(JSON.parse(atob(e.slice(ws.length))))}var Rn=(e,t,n)=>(u.hydrateClientSide||u.hydrateServerSide)&&typeof e=="string"&&e.startsWith(ws)?(e=nu(e),e):e!=null&&!ur(e)?u.propBoolean&&t&4?u.formAssociated&&n&&typeof e=="string"?e===""||!!e:e==="false"?!1:e===""||!!e:u.propNumber&&t&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:u.propString&&t&1?String(e):e:e,Oo=e=>{var t;return u.lazyLoad?(t=V(e))==null?void 0:t.$hostElement$:e},su=(e,t,n)=>{const s=Oo(e);return{emit:r=>(u.isDev&&!s.isConnected&&$t(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),fr(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r}))}},fr=(e,t,n)=>{const s=L.ce(t,n);return e.dispatchEvent(s),s},ti=(e,t,n,s,r,i,o)=>{if(n===s)return;let a=Os(e,t),l=t.toLowerCase();if(u.vdomClass&&t==="class"){const c=e.classList,d=ni(n);let f=ni(s);if(u.hydrateClientSide&&(e["s-si"]||e["s-sc"])&&o){const h=e["s-sc"]||e["s-si"];f.push(h),d.forEach(g=>{g.startsWith(h)&&f.push(g)}),f=[...new Set(f)].filter(g=>g),c.add(...f)}else c.remove(...d.filter(h=>h&&!f.includes(h))),c.add(...f.filter(h=>h&&!d.includes(h)))}else if(u.vdomStyle&&t==="style"){if(u.updatable)for(const c in n)(!s||s[c]==null)&&(!u.hydrateServerSide&&c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(const c in s)(!n||s[c]!==n[c])&&(!u.hydrateServerSide&&c.includes("-")?e.style.setProperty(c,s[c]):e.style[c]=s[c])}else if(!(u.vdomKey&&t==="key")){if(u.vdomRef&&t==="ref")s&&au(s,e);else if(u.vdomListener&&(u.lazyLoad?!a:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):Os(z,l)?t=l.slice(2):t=l[2]+t.slice(3),n||s){const c=t.endsWith(To);t=t.replace(iu,""),n&&L.rel(e,t,n,c),s&&L.ael(e,t,s,c)}}else if(u.vdomPropOrAttr&&t[0]==="a"&&t.startsWith("attr:")){const c=t.slice(5);let d;if(u.member){const f=V(e);if(f&&f.$cmpMeta$&&f.$cmpMeta$.$members$){const h=f.$cmpMeta$.$members$[c];h&&h[1]&&(d=h[1])}}d||(d=c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),s==null||s===!1?(s!==!1||e.getAttribute(d)==="")&&e.removeAttribute(d):e.setAttribute(d,s===!0?"":s);return}else if(u.vdomPropOrAttr&&t[0]==="p"&&t.startsWith("prop:")){const c=t.slice(5);try{e[c]=s}catch{}return}else if(u.vdomPropOrAttr){const c=ur(s);if((a||c&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const f=s??"";t==="list"?a=!1:(n==null||e[t]!==f)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch{}let d=!1;u.vdomXlink&&l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,d=!0),s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&(u.vdomXlink&&d?e.removeAttributeNS(Vr,t):e.removeAttribute(t)):(!a||i&4||r)&&!c&&e.nodeType===1&&(s=s===!0?"":s,u.vdomXlink&&d?e.setAttributeNS(Vr,t,s):e.setAttribute(t,s))}}},ru=/\s/,ni=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(ru)),To="Capture",iu=new RegExp(To+"$"),Ds=(e,t,n,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||{},o=t.$attrs$||{};if(u.updatable)for(const a of si(Object.keys(i)))a in o||ti(r,a,i[a],void 0,n,t.$flags$,s);for(const a of si(Object.keys(o)))ti(r,a,i[a],o[a],n,t.$flags$,s)};function si(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var mn,In,Le,gt=!1,An=!1,Wn=!1,fe=!1,Ls=[],zs=[],Dn=(e,t,n)=>{var s;const r=t.$children$[n];let i=0,o,a,l;if(u.slotRelocation&&!gt&&(Wn=!0,r.$tag$==="slot"&&(r.$flags$|=r.$children$?2:1)),u.isDev&&r.$elm$&&Ut(`The JSX ${r.$text$!==null?`"${r.$text$}" text`:`"${r.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),u.vdomText&&r.$text$!=null)o=r.$elm$=z.document.createTextNode(r.$text$);else if(u.slotRelocation&&r.$flags$&1)o=r.$elm$=u.isDebug||u.hydrateServerSide?cu(r):z.document.createTextNode(""),u.vdomAttribute&&Ds(null,r,fe);else{if(u.svg&&!fe&&(fe=r.$tag$==="svg"),!z.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
21if(o=r.$elm$=u.svg?z.document.createElementNS(fe?jl:Nl,!gt&&u.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$):z.document.createElement(!gt&&u.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),u.svg&&fe&&r.$tag$==="foreignObject"&&(fe=!1),u.vdomAttribute&&Ds(null,r,fe),(u.scoped||u.hydrateServerSide)&&vc(mn)&&o["s-si"]!==mn&&o.classList.add(o["s-si"]=mn),r.$children$){const c=r.$tag$==="template"?o.content:o;for(i=0;i<r.$children$.length;++i)a=Dn(e,r,i),a&&c.appendChild(a)}u.svg&&(r.$tag$==="svg"?fe=!1:o.tagName==="foreignObject"&&(fe=!0))}return o["s-hn"]=Le,u.slotRelocation&&r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=In,o["s-sn"]=r.$name$||"",o["s-rf"]=(s=r.$attrs$)==null?void 0:s.ref,uo(o),l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===r.$tag$&&e.$elm$&&Ro(e.$elm$),(u.scoped||u.hydrateServerSide)&&zo(In,o,t.$elm$,e==null?void 0:e.$elm$)),o},Ro=e=>{L.$flags$|=1;const t=e.closest(Le.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find(r=>r["s-cr"]),s=Array.from(e.__childNodes||e.childNodes);for(const r of n?s.reverse():s)r["s-sh"]!=null&&(he(t,r,n??null),r["s-sh"]=void 0,Wn=!0)}L.$flags$&=-2},Ln=(e,t)=>{L.$flags$|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===Le&&n.push(s)}for(let s=n.length-1;s>=0;s--){const r=n[s];r["s-hn"]!==Le&&r["s-ol"]&&(he(Wt(r).parentNode,r,Wt(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,Wn=!0),t&&Ln(r,t)}L.$flags$&=-2},Io=(e,t,n,s,r,i)=>{let o=u.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,a;for(u.shadowDom&&o.shadowRoot&&o.tagName===Le&&(o=o.shadowRoot),n.$tag$==="template"&&(o=o.content);r<=i;++r)s[r]&&(a=Dn(null,n,r),a&&(s[r].$elm$=a,he(o,a,u.slotRelocation?Wt(t):t)))},Ao=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;Lo(r),i&&(u.slotRelocation&&(An=!0,i["s-ol"]?i["s-ol"].remove():Ln(i,!0)),i.remove())}}},ou=(e,t,n,s,r=!1)=>{let i=0,o=0,a=0,l=0,c=t.length-1,d=t[0],f=t[c],h=s.length-1,g=s[0],p=s[h],$,y;const I=n.$tag$==="template"?e.content:e;for(;i<=c&&o<=h;)if(d==null)d=t[++i];else if(f==null)f=t[--c];else if(g==null)g=s[++o];else if(p==null)p=s[--h];else if(dn(d,g,r))dt(d,g,r),d=t[++i],g=s[++o];else if(dn(f,p,r))dt(f,p,r),f=t[--c],p=s[--h];else if(dn(d,p,r))u.slotRelocation&&(d.$tag$==="slot"||p.$tag$==="slot")&&Ln(d.$elm$.parentNode,!1),dt(d,p,r),he(I,d.$elm$,f.$elm$.nextSibling),d=t[++i],p=s[--h];else if(dn(f,g,r))u.slotRelocation&&(d.$tag$==="slot"||p.$tag$==="slot")&&Ln(f.$elm$.parentNode,!1),dt(f,g,r),he(I,f.$elm$,d.$elm$),f=t[--c],g=s[++o];else{if(a=-1,u.vdomKey){for(l=i;l<=c;
21++l)if(t[l]&&t[l].$key$!==null&&t[l].$key$===g.$key$){a=l;break}}u.vdomKey&&a>=0?(y=t[a],y.$tag$!==g.$tag$?$=Dn(t&&t[o],n,a):(dt(y,g,r),t[a]=void 0,$=y.$elm$),g=s[++o]):($=Dn(t&&t[o],n,o),g=s[++o]),$&&(u.slotRelocation?he(Wt(d.$elm$).parentNode,$,Wt(d.$elm$)):he(d.$elm$.parentNode,$,d.$elm$))}i>c?Io(e,s[h+1]==null?null:s[h+1].$elm$,n,s,o,h):u.updatable&&o>h&&Ao(t,i,c)},dn=(e,t,n=!1)=>e.$tag$===t.$tag$?u.slotRelocation&&e.$tag$==="slot"?e.$name$===t.$name$:u.vdomKey&&!n?e.$key$===t.$key$:(n&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):!1,Wt=e=>e&&e["s-ol"]||e,dt=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,a=t.$text$;let l;!u.vdomText||a==null?(u.svg&&(fe=o==="svg"?!0:o==="foreignObject"?!1:fe),(u.vdomAttribute||u.reflect)&&(u.slot&&o==="slot"&&!gt&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",Ro(t.$elm$.parentElement)),Ds(e,t,fe,n)),u.updatable&&r!==null&&i!==null?ou(s,r,t,i,n):i!==null?(u.updatable&&u.vdomText&&e.$text$!==null&&(s.textContent=""),Io(s,null,t,i,0,i.length-1)):!n&&u.updatable&&r!==null?Ao(r,0,r.length-1):u.hydrateClientSide&&n&&u.updatable&&r!==null&&i===null&&(t.$children$=r),u.svg&&fe&&o==="svg"&&(fe=!1)):u.vdomText&&u.slotRelocation&&(l=s["s-cr"])?l.parentNode.textContent=a:u.vdomText&&e.$text$!==a&&(s.data=a)},Ae=[],Do=e=>{let t,n,s;const r=e.__childNodes||e.childNodes;for(const i of r){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const o=i["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==i["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==i["s-hn"]))if(Xr(t,o)){let a=Ae.find(l=>l.$nodeToRelocate$===t);An=!0,t["s-sn"]=t["s-sn"]||o,a?(a.$nodeToRelocate$["s-sh"]=i["s-hn"],a.$slotRefNode$=i):(t["s-sh"]=i["s-hn"],Ae.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&Ae.map(l=>{Xr(l.$nodeToRelocate$,t["s-sn"])&&(a=Ae.find(c=>c.$nodeToRelocate$===t),a&&!l.$slotRefNode$&&(l.$slotRefNode$=a.$slotRefNode$))})}else Ae.some(a=>a.$nodeToRelocate$===t)||Ae.push({$nodeToRelocate$:t})}i.nodeType===1&&Do(i)}},Lo=e=>{u.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&Ls.push(()=>e.$attrs$.ref(null)),e.$children$&&e.$children$.map(Lo))},au=(e,t)=>{u.vdomRef&&zs.push(()=>e(t))},lu=()=>{u.vdomRef&&(Ls.forEach(e=>e()),Ls.length=0,zs.forEach(e=>e()),zs.length=0)},he=(e,t,n,s)=>{if(u.slotRelocation){if(u.scoped&&typeof t["s-sn"]=="string"&&t["s-sr"]&&t["s-cr"])zo(t["s-cr"],t,e,t.parentElement);else if(typeof t["s-sn"]=="string"){u.experimentalSlotFixes&&e.getRootNode().nodeType!==11&&ho(t),e.insertBefore(t,n);const{slotNode:r}=ir(t);return r&&!s&&Vn(r),t}}return e.__insertBefore?e.__insertBefore(t,n):e==null?void 0:e.insertBefore(t,n)};function zo(e,t,n,s){var r,i;let o;if(e&&typeof t["s-sn"]=="string"&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(o=t["s-si"]||e.parentNode["s-sc"])){const a=t["s-sn"],l=t["s-hn"];if((r=n.classList)==null||r.add(o+"-s"),s&&((i=s.classList)!=null&&i.contains(o+"-s"))){let c=(s.__childNodes||s.childNodes)[0],d=!1;for(;c;){if(c["s-sn"]!==a&&c["s-hn"]===l&&c["s-sr"]){d=!0;break}c=c.nextSibling}d||s.classList.remove(o+"-s")}}}var zn=(e,t,n=!1)=>{var s,r,i,o,a;const l=e.$hostElement$,c=e.$cmpMeta$,d=e.$vnode$||_t(null,null),h=Rs(t)?t:H(null,null,t);if(Le=l.tagName,u.isDev&&Array.isArray(t)&&t.some(Rs))throw new Error(`The <Host> must be the single root component.
22Looks like the render() function of "${Le.toLowerCase()}" is returning an array that contains the <Host>.
23
24The render() function should look like this instead:
25
26render() {
27  // Do not return an array
28  return (
29    <Host>{content}</Host>
30  );
31}
32  `);if(u.reflect&&c.$attrsToReflect$&&(h.$attrs$=h.$attrs$||{},c.$attrsToReflect$.forEach(([g,p])=>{u.serializer&&e.$serializerValues$.has(g)?h.$attrs$[p]=e.$serializerValues$.get(g):h.$attrs$[p]=l[g]})),n&&h.$attrs$)for(const g of Object.keys(h.$attrs$))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.$attrs$[g]=l[g]);if(h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=d.$elm$=u.shadowDom&&l.shadowRoot||l,(u.scoped||u.shadowDom)&&(mn=l["s-sc"]),gt=Pe&&!!(c.$flags$&1)&&!(c.$flags$&128),u.slotRelocation&&(In=l["s-cr"],An=!1),dt(d,h,n),u.slotRelocation){if(L.$flags$|=1,Wn){Do(h.$elm$);for(const g of Ae){const p=g.$nodeToRelocate$;if(!p["s-ol"]&&z.document){const $=u.isDebug||u.hydrateServerSide?uu(p):z.document.createTextNode("");$["s-nr"]=p,he(p.parentNode,p["s-ol"]=$,p,n)}}for(const g of Ae){const p=g.$nodeToRelocate$,$=g.$slotRefNode$;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null?s:!1),$){const y=$.parentNode;let I=$.nextSibling;if(!u.hydrateServerSide&&I&&I.nodeType===1){let E=(r=p["s-ol"])==null?void 0:r.previousSibling;for(;E;){let m=(i=E["s-nr"])!=null?i:null;if(m&&m["s-sn"]===p["s-sn"]&&y===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m!=null&&m["s-sr"];)m=m==null?void 0:m.nextSibling;if(!m||!m["s-nr"]){I=m;break}}E=E.previousSibling}}const T=p.__parentNode||p.parentNode,b=p.__nextSibling||p.nextSibling;if((!I&&y!==T||b!==I)&&p!==I){if(he(y,p,I,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const E=z.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));
32E["s-hn"]=p["s-hn"],E["s-sn"]=p["s-sn"],E["s-sh"]=p["s-sh"],E["s-sr"]=p["s-sr"],E["s-ol"]=p["s-ol"],E["s-ol"]["s-nr"]=E,he(p.parentNode,E,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(o=p["s-ih"])!=null?o:!1)}p&&typeof $["s-rf"]=="function"&&$["s-rf"]($)}else p.nodeType===1&&(p.hidden=!0)}}An&&Un(h.$elm$),L.$flags$&=-2,Ae.length=0}if(u.slotRelocation&&!gt&&!(c.$flags$&1)&&l["s-cr"]){const g=h.$elm$.__childNodes||h.$elm$.childNodes;for(const p of g)if(p["s-hn"]!==Le&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(a=p.hidden)!=null?a:!1),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const $=z.document.createComment("s-nt-"+p.nodeValue);$["s-sn"]=p["s-sn"],he(p.parentNode,$,p,n),p.parentNode.removeChild(p)}}}In=void 0,lu()},cu=e=>{var t;return(t=z.document)==null?void 0:t.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${Le.toLowerCase()})`)},uu=e=>{var t;return(t=z.document)==null?void 0:t.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`))},Po=(e,t)=>{if(u.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]){const n=t["s-p"].push(new Promise(s=>e.$onRenderResolve$=()=>{t["s-p"].splice(n-1,1),s()}))}},Kn=(e,t)=>{if(u.taskQueue&&u.updatable&&(e.$flags$|=16),u.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}Po(e,e.$ancestorComponent$);const n=()=>du(e,t);if(t){queueMicrotask(()=>{n()});return}return u.taskQueue?sr(n):n()},du=(e,t)=>{const n=e.$hostElement$,s=Te("scheduleUpdate",e.$cmpMeta$.$tagName$),r=u.lazyLoad?e.$lazyInstance$: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 i;return t?(u.lazyLoad&&(u.slotRelocation&&e.$deferredConnectedCallback$&&(e.$deferredConnectedCallback$=!1,we(r,"connectedCallback",void 0,n)),u.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([o,a])=>we(r,o,a,n)),e.$queuedListeners$=void 0)),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(o=>o(n))),vt(n,"componentWillLoad"),i=we(r,"componentWillLoad",void 0,n)):(vt(n,"componentWillUpdate"),i=we(r,"componentWillUpdate",void 0,n)),vt(n,"componentWillRender"),i=ri(i,()=>we(r,"componentWillRender",void 0,n)),s(),ri(i,()=>hu(e,r,t))},ri=(e,t)=>fu(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),fu=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",hu=async(e,t,n)=>{var s;const r=e.$hostElement$,i=Te("update",e.$cmpMeta$.$tagName$),o=r["s-rc"];u.style&&n&&go(e);const a=Te("render",e.$cmpMeta$.$tagName$);if(u.isDev&&(e.$flags$|=1024),u.hydrateServerSide?await ii(e,t,r,n):ii(e,t,r,n),u.isDev&&(e.$renderCount$=e.$renderCount$===void 0?1:e.$renderCount$+1,e.$flags$&=-1025),u.hydrateServerSide)try{jo(r),n&&(e.$cmpMeta$.$flags$&1?r["s-en"]="":e.$cmpMeta$.$flags$&2&&(r["s-en"]="c"))}catch(l){oe(l,r)}if(u.asyncLoading&&o&&(o.map(l=>l()),r["s-rc"]=void 0),a(),i(),u.asyncLoading){const l=(s=r["s-p"])!=null?s:[],c=()=>ks(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.$flags$|=4,l.length=0)}else ks(e)},Ps=null,ii=(e,t,n,s)=>{const r=!!u.allRenderFn,i=!!u.lazyLoad,o=!!u.taskQueue,a=!!u.updatable;try{if(Ps=t,t=(r||t.render)&&t.render(),a&&o&&(e.$flags$&=-17),(a||i)&&(e.$flags$|=2),u.hasRenderFn||u.reflect)if(u.vdomRender||u.reflect){if(u.hydrateServerSide)return Promise.resolve(t).then(l=>zn(e,l,s));zn(e,t,s)}else{const l=n.shadowRoot;e.$cmpMeta$.$flags$&1?l.textContent=t:n.textContent=t}}catch(l){oe(l,e.$hostElement$)}return Ps=null,null},pu=()=>Ps,ks=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=Te("postUpdate",t),r=u.lazyLoad?e.$lazyInstance$:n,i=e.$ancestorComponent$;u.isDev&&(e.$flags$|=1024),we(r,"componentDidRender",void 0,n),u.isDev&&(e.$flags$&=-1025),vt(n,"componentDidRender"),e.$flags$&64?(u.isDev&&(e.$flags$|=1024),we(r,"componentDidUpdate",void 0,n),u.isDev&&(e.$flags$&=-1025),vt(n,"componentDidUpdate"),s()):(e.$flags$|=64,u.asyncLoading&&u.cssAnnotations&&gu(n),u.isDev&&(e.$flags$|=2048),we(r,"componentDidLoad",void 0,n),u.isDev&&(e.$flags$&=-2049),vt(n,"componentDidLoad"),s(),u.asyncLoading&&(e.$onReadyResolve$(n),i||js(t))),u.method&&u.lazyLoad&&e.$onInstanceResolve$(n),u.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Zt(()=>Kn(e,!1)),e.$flags$&=-517)},ko=e=>{var t;if(u.updatable&&(Es.isBrowser||Es.isTesting)){const n=V(e),s=(t=n==null?void 0:n.$hostElement$)==null?void 0:t.isConnected;return s&&(n.$flags$&18)===2&&Kn(n,!1),s}return!1},js=e=>{var t;u.asyncQueue&&(L.$flags$|=2),Zt(()=>fr(z,"appload",{detail:{namespace:_n}})),u.hydrateClientSide&&(t=L.$orgLocNodes$)!=null&&t.size&&L.$orgLocNodes$.clear(),u.profile&&performance.measure&&performance.measure(`[Stencil] ${_n} initial load (by ${e})`,"st:app:start")},we=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(r){oe(r,s)}},vt=(e,t)=>{u.lifecycleDOMEvents&&fr(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:_n}})},gu=e=>{var t,n;return u.hydratedClass?e.classList.add((t=u.hydratedSelectorName)!=null?t:"hydrated"):u.hydratedAttribute?e.setAttribute((n=u.hydratedSelectorName)!=null?n:"hydrated",""):void 0},jo=e=>{const t=e.children;if(t!=null)for(let n=0,s=t.length;n<s;n++){const r=t[n];typeof r.connectedCallback=="function"&&r.connectedCallback(),jo(r)}},Ns=(e,t)=>V(e).$instanceValues$.get(t),jt=(e,t,n,s)=>{const r=V(e);if(!r)return;if(u.lazyLoad&&!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stencil
32js/core/issues/5457).`);if(u.serializer&&r.$serializerValues$.has(t)&&r.$serializerValues$.get(t)===n)return;const i=u.lazyLoad?r.$hostElement$:e,o=r.$instanceValues$.get(t),a=r.$flags$,l=u.lazyLoad?r.$lazyInstance$:i;n=Rn(n,s.$members$[t][0],u.formAssociated&&!!(s.$flags$&64));const c=Number.isNaN(o)&&Number.isNaN(n),d=n!==o&&!c;if((!u.lazyLoad||!(a&8)||o===void 0)&&d){if(r.$instanceValues$.set(t,n),u.serializer&&u.reflect&&s.$attrsToReflect$&&s.$serializers$&&s.$serializers$[t]){const f=h=>{let g=n;for(const p of s.$serializers$[t]){const[[$]]=Object.entries(p);g=h[$](g,t)}r.$serializerValues$.set(t,g)};l?f(l):r.$fetchedCbList$.push(()=>{f(r.$lazyInstance$)})}if(u.isDev&&(r.$flags$&1024?$t(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,`
33Element`,i,`
34New value`,n,`
35Old value`,o):r.$flags$&2048&&$t(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,`
36Element`,i,`
37New value`,n,`
38Old value`,o)),u.propChangeCallback&&s.$watchers$){const f=s.$watchers$[t];f&&f.map(h=>{try{const[[g,p]]=Object.entries(h);(a&128||p&1)&&(l?l[g](n,o,t):r.$fetchedCbList$.push(()=>{r.$lazyInstance$[g](n,o,t)}))}catch(g){oe(g,i)}})}if(u.updatable&&a&2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1&&!(a&16))return;a&16||Kn(r,!1)}}},qn=(e,t,n)=>{var s,r;const i=e.prototype;if(u.isTesting){if(i.__stencilAugmented)return;i.__stencilAugmented=!0}if(u.formAssociated&&t.$flags$&64&&n&1&&Wl.forEach(o=>{const a=i[o];Object.defineProperty(i,o,{value(...l){var c;const d=V(this),f=u.lazyLoad?d==null?void 0:d.$lazyInstance$:this;if(!f)(c=d==null?void 0:d.$onReadyPromise$)==null||c.then(h=>{const g=h[o];typeof g=="function"&&g.call(h,...l)});else{const h=u.lazyLoad?f[o]:a;typeof h=="function"&&h.call(f,...l)}}})}),u.member&&t.$members$||u.propChangeCallback){u.propChangeCallback&&(e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers),e.deserializers&&!t.$deserializers$&&(t.$deserializers$=e.deserializers),e.serializers&&!t.$serializers$&&(t.$serializers$=e.serializers));const o=Object.entries((s=t.$members$)!=null?s:{});if(o.map(([a,[l]])=>{if((u.prop||u.state)&&(l&31||(!u.lazyLoad||n&2)&&l&32)){const{get:c,set:d}=Qi(i,a)||{};c&&(t.$members$[a][0]|=2048),d&&(t.$members$[a][0]|=4096),(n&1||!c)&&Object.defineProperty(i,a,{get(){if(u.lazyLoad){if((t.$members$[a][0]&2048)===0)return Ns(this,a);const f=V(this),h=f?f.$lazyInstance$:i;return h?h[a]:void 0}if(!u.lazyLoad)return c?c.apply(this):Ns(this,a)},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(f){const h=V(this);if(h){if(u.isDev&&(n&1)===0&&(t.$members$[a][0]&4096)===0&&(h&&h.$flags$&8)===0&&(l&31)!==0&&(l&1024)===0&&$t(`@Prop() "${a}" on <${t.$tagName$}> is immutable but was modified from within the component.
39More information: https://stenciljs.com/docs/properties#prop-mutability`),d){typeof(l&32?this[a]:h.$hostElement$[a])>"u"&&h.$instanceValues$.get(a)&&(f=h.$instanceValues$.get(a)),d.apply(this,[Rn(f,l,u.formAssociated&&!!(t.$flags$&64))]),f=l&32?this[a]:h.$hostElement$[a],jt(this,a,f,t);return}if(!u.lazyLoad){jt(this,a,f,t);return}if(u.lazyLoad){if((n&1)===0||(t.$members$[a][0]&4096)===0){jt(this,a,f,t),n&1&&!h.$lazyInstance$&&h.$fetchedCbList$.push(()=>{t.$members$[a][0]&4096&&h.$lazyInstance$[a]!==h.$instanceValues$.get(a)&&(h.$lazyInstance$[a]=f)});return}const g=()=>{const p=h.$lazyInstance$[a];!h.$instanceValues$.get(a)&&p&&h.$instanceValues$.set(a,p),h.$lazyInstance$[a]=Rn(f,l,u.formAssociated&&!!(t.$flags$&64)),jt(this,a,h.$lazyInstance$[a],t)};h.$lazyInstance$?g():h.$fetchedCbList$.push(()=>{g()})}}}})}else u.lazyLoad&&u.method&&n&1&&l&64&&Object.defineProperty(i,a,{value(...c){var d;const f=V(this);return(d=f==null?void 0:f.$onInstancePromise$)==null?void 0:d.then(()=>{var h;return(h=f.$lazyInstance$)==null?void 0:h[a](...c)})}})}),u.observeAttribute&&(!u.lazyLoad||n&1)){const a=new Map;i.attributeChangedCallback=function(l,c,d){L.jmp(()=>{var f;const h=a.get(l),g=V(this);if(u.serializer&&g.$serializerValues$.has(h)&&g.$serializerValues$.get(h)===d)return;if(this.hasOwnProperty(h)&&u.lazyLoad&&(d=this[h],delete this[h]),u.deserializer&&t.$de
39serializers$&&t.$deserializers$[h]){const y=(I,T)=>{const b=T==null?void 0:T[I](d,h);b!==this[h]&&(this[h]=b)};for(const I of t.$deserializers$[h]){const[[T]]=Object.entries(I);u.lazyLoad?g.$lazyInstance$?y(T,g.$lazyInstance$):g.$fetchedCbList$.push(()=>{y(T,g.$lazyInstance$)}):y(T,this)}return}else{if(i.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==d)return;if(h==null){const y=g==null?void 0:g.$flags$;if(g&&y&&!(y&8)&&d!==c){const I=u.lazyLoad?g.$hostElement$:this,T=u.lazyLoad?g.$lazyInstance$:I,b=(f=t.$watchers$)==null?void 0:f[l];b==null||b.forEach(E=>{const[[m,_]]=Object.entries(E);T[m]!=null&&(y&128||_&1)&&T[m].call(T,d,c,l)})}return}}const p=o.find(([y])=>y===h);p&&p[1][0]&4&&(d=!(d===null||d==="false"));const $=Object.getOwnPropertyDescriptor(i,h);d!=this[h]&&(!$.get||$.set)&&(this[h]=d)})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...o.filter(([l,c])=>c[0]&31).map(([l,c])=>{var d;const f=c[1]||l;return a.set(f,l),u.reflect&&c[0]&512&&((d=t.$attrsToReflect$)==null||d.push([l,f])),f})]))}}return e},Fs=async(e,t,n,s)=>{let r;try{if((t.$flags$&32)===0){t.$flags$|=32;const a=n.$lazyBundleId$;if(u.lazyLoad&&a){const l=to(n,t,s);if(l&&"then"in l){const f=fc(`st:load:${n.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${n.$tagName$}>`);r=await l,f()}else r=l;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);u.member&&!r.isProxied&&(u.propChangeCallback&&(n.$watchers$=r.watchers,n.$serializers$=r.serializers,n.$deserializers$=r.deserializers),qn(r,n,2),r.isProxied=!0);const c=Te("createInstance",n.$tagName$);u.member&&(t.$flags$|=8);try{new r(t)}catch(f){oe(f,e)}u.member&&(t.$flags$&=-9),u.propChangeCallback&&(t.$flags$|=128),c(),u.slotRelocation&&n.$flags$&4?t.$deferredConnectedCallback$=!0:Ms(t.$lazyInstance$,e)}else{r=e.constructor;const l=e.localName;customElements.whenDefined(l).then(()=>t.$flags$|=128)}if(u.style&&r&&r.style){let l;typeof r.style=="string"?l=r.style:u.mode&&typeof r.style!="string"&&(t.$modeName$=Eo(e),t.$modeName$&&(l=r.style[t.$modeName$]),u.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const c=tn(n,t.$modeName$);if(!yt.has(c)||u.hotModuleReplacement&&s){const d=Te("registerStyles",n.$tagName$);u.hydrateServerSide&&u.shadowDom&&n.$flags$&128&&(l=Zc(l,c)),cr(c,l,!!(n.$flags$&1)),d()}}}const i=t.$ancestorComponent$,o=()=>Kn(t,!0);u.asyncLoading&&i&&i["s-rc"]?i["s-rc"].push(o):o()}catch(i){oe(i,e),u.asyncLoading&&t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),u.asyncLoading&&t.$onReadyResolve$&&t.$onReadyResolve$(e)}},Ms=(e,t)=>{u.lazyLoad&&we(e,"connectedCallback",void 0,t)},hr=e=>{if((L.$flags$&1)===0){const t=V(e);if(!t)return;const n=t.$cmpMeta$,s=Te("connectedCallback",n.$tagName$);if(u.hostListenerTargetParent&&Kt(e,t,n.$listeners$,!0),t.$flags$&1)Kt(e,t,n.$listeners$,!1),t!=null&&t.$lazyInstance$?Ms(t.$lazyInstance$,e):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ms(t.$lazyInstance$,e));else{t.$flags$|=1;let r;if(u.hydrateClientSide&&(r=e.getAttribute(bt),r)){if(u.shadowDom&&Pe&&n.$flags$&1){const i=u.mode?Ts(e.shadowRoot,n,e.getAttribute("s-mode")):Ts(e.shadowRoot,n);e.classList.remove(i+"-h",i+"-s")}else if(u.scoped&&n.$flags$&2){const i=tn(n,u.mode?e.getAttribute("s-mode"):void 0);e["s-sc"]=i}bc(e,n.$tagName$,r,t)}if(u.slotRelocation&&!r&&(u.hydrateServerSide||(u.slot||u.shadowDom)&&n.$flags$&12)&&vu(e),u.asyncLoading){let i=e;for(;i=i.parentNode||i.host;)if(u.hydrateClientSide&&i.nodeType===1&&i.hasAttribute("s-id")&&i["s-p"]||i["s-p"]){Po(t,t.$ancestorComponent$=i);break}}u.prop&&!u.hydrateServerSide&&n.$members$&&Object.entries(n.$members$).map(([i,[o]])=>{if(o&31&&Object.prototype.hasOwnProperty.call(e,i)){const a=e[i];delete e[i],e[i]=a}}),u.initializeNextTick?Zt(()=>Fs(e,t,n)):Fs(e,t,n)}s()}},vu=e=>{if(!z.document)return;const t=e["s-cr"]=z.document.createComment(u.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,he(e,t,e.firstChild)},us=(e,t)=>{u.lazyLoad&&we(e,"disconnectedCallback",void 0,t||e)},pr=async e=>{if((L.$flags$&1)===0){const t=V(e);u.hostListener&&t!=null&&t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0),u.lazyLoad?t!=null&&t.$lazyInstance$?us(t.$lazyInstance$,e):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>
39us(t.$lazyInstance$,e)):us(e)}Ue.has(e)&&Ue.delete(e),e.shadowRoot&&Ue.has(e.shadowRoot)&&Ue.delete(e.shadowRoot)},mu=(e,t)=>{customElements.define(sn(t[1]),No(e,t))},No=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};try{u.member&&(n.$members$=t[2]),u.hostListener&&(n.$listeners$=t[3]),u.propChangeCallback&&(n.$watchers$=e.$watchers$,n.$deserializers$=e.$deserializers$,n.$serializers$=e.$serializers$),u.reflect&&(n.$attrsToReflect$=[]),u.shadowDom&&!Pe&&n.$flags$&1&&(n.$flags$|=8),!(n.$flags$&1)&&n.$flags$&256?u.experimentalSlotFixes?fo(e.prototype):(u.slotChildNodesFix&&lr(e.prototype),u.cloneNodeFix&&Vt(e.prototype),u.appendChildSlotFix&&or(e.prototype),u.scopedSlotTextContentFix&&n.$flags$&2&&ar(e.prototype)):u.cloneNodeFix&&Vt(e.prototype),u.hydrateClientSide&&u.shadowDom&&vo();const s=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){er(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=V(this);if(!i)return;Kt(this,i,n.$listeners$,!1),this.__hasHostListenerAttached=!0}hr(this),s&&s.call(this)},disconnectedCallback(){pr(this),r&&r.call(this)},__attachShadow(){if(Pe){if(!this.shadowRoot)co.call(this,n);else if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.shadowRoot=this}}),Object.defineProperty(e,"is",{value:n.$tagName$,configurable:!0}),qn(e,n,3)}catch(s){return oe(s),e}},$u=e=>{if(u.style&&u.mode&&!u.lazyLoad){const t=Eo(e),n=V(e);if(n&&n.$modeName$!==t){const s=n.$cmpMeta$,r=e["s-sc"],i=tn(s,t),o=e.constructor.style[t],a=s.$flags$;o&&(yt.has(i)||cr(i,o,!!(a&1)),n.$modeName$=t,e.classList.remove(r+"-h",r+"-s"),go(n),ko(e))}}},yu=(e,t,n)=>{const s=V(e);s&&(s.$flags$=1,Fs(e,s,t,n))},Fo=(e,t={})=>{var n;if(u.profile&&performance.mark&&performance.mark("st:app:start"),pc(),!z.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const s=Te("bootstrapLazy"),r=[],i=t.exclude||[],o=z.customElements,a=z.document.head,l=a.querySelector("meta[charset]"),c=z.document.createElement("style"),d=[];let f,h=!0;Object.assign(L,t),L.$resourcesUrl$=new URL(t.resourcesUrl||"./",z.document.baseURI).href,u.asyncQueue&&t.syncQueue&&(L.$flags$|=4),u.hydrateClientSide&&(L.$flags$|=2),u.hydrateClientSide&&u.shadowDom&&vo();let g=!1;if(e.map(p=>{p[1].map($=>{var y,I,T;const b={$flags$:$[0],$tagName$:$[1],$members$:$[2],$listeners$:$[3]};b.$flags$&4&&(g=!0),u.member&&(b.$members$=$[2]),u.hostListener&&(b.$listeners$=$[3]),u.reflect&&(b.$attrsToReflect$=[]),u.propChangeCallback&&(b.$watchers$=(y=$[4])!=null?y:{},b.$serializers$=(I=$[5])!=null?I:{},b.$deserializers$=(T=$[6])!=null?T:{}),u.shadowDom&&!Pe&&b.$flags$&1&&(b.$flags$|=8);const E=u.transformTagName&&t.transformTagName?t.transformTagName(b.$tagName$):sn(b.$tagName$),m=class extends HTMLElement{constructor(C){super(C);un(this,"s-p");un(this,"s-rc");un(this,"hasRegisteredEventListeners",!1);if(C=this,er(C,b),u.shadowDom&&b.$flags$&1)if(Pe){if(!C.shadowRoot)co.call(C,b);else if(C.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${b.$tagName$}! Mode is set to ${C.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else!u.hydrateServerSide&&!("shadowRoot"in C)&&(C.shadowRoot=C)}connectedCallback(){const C=V(this);C&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Kt(this,C,b.$listeners$,!1)),f&&(clearTimeout(f),f=null),h?d.push(this):L.jmp(()=>hr(this)))}disconnectedCallback(){L.jmp(()=>pr(this)),L.raf(()=>{var C;const A=V(this);if(!A)return;const P=d.findIndex(B=>B===this);P>-1&&d.splice(P,1),((C=A==null?void 0:A.$vnode$)==null?void 0:C.$elm$)instanceof Node&&!A.$vnode$.$elm$.isConnected&&delete A.$vnode$.$elm$})}componentOnReady(){var C;return(C=V(this))==null?void 0:C.$onReadyPromise$}};!(b.$flags$&1)&&b.$flags$&256?u.experimentalSlotFixes?fo(m.prototype):(u.slotChildNodesFix&&lr(m.prototype),u.cloneNodeFix&&Vt(m.prototype),u.appendChildSlotFix&&or(m.prototype),u.scopedSlotTextContentFix&&b.$flags$&2&&ar(m.prototype)):u.cloneNodeFix&&Vt(m.prototype),u.formAssociated&&b.$flags$&64&&(m.formAssociated=!0),u.hotModuleReplacement&&(m.prototype["s-hmr"]=function(_){yu(this,b,_)}),b.$lazyBundleId$=p[0],!i.includes(E)&&!o.get(E)&&(r.push(E),o.define(E,qn(m,b,1)))})}),r.length>0&&(u.slotRelocation&&g&&(c.textContent+=io),u.invisiblePrehydration&&(u.hydratedClass||u.hydratedAttribute)&&(c.textContent+=r.sort()+Gl),c.innerHTML.length)){c.setAttribute("data-styles","");const p=(n=L.$nonce$)!=null?n:po(z.document);p!=null&&c.setAttribute("nonce",p),a.insertBefore(c,l?l.nextSibling:a.firstChild)}h=!1,d.length?d.map(p=>p.connectedCallback()):u.profile?L.jmp(()=>f=setTimeout(js,30,"timeout")):L.jmp(()=>f=setTimeout(js,30)),s()},bu=(e,t)=>
39t,Kt=(e,t,n,s)=>{u.hostListener&&n&&z.document&&(u.hostListenerTargetParent&&(s?n=n.filter(([r])=>r&32):n=n.filter(([r])=>!(r&32))),n.map(([r,i,o])=>{const a=u.hostListenerTarget?_u(z.document,e,r):e,l=Su(t,o),c=Cu(r);L.ael(a,i,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>L.rel(a,i,l,c))}))},Su=(e,t)=>n=>{var s;try{u.lazyLoad?e.$flags$&256?(s=e.$lazyInstance$)==null||s[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(r){oe(r,e.$hostElement$)}},_u=(e,t,n)=>u.hostListenerTargetDocument&&n&4?e:u.hostListenerTargetWindow&&n&8?z:u.hostListenerTargetBody&&n&16?e.body:u.hostListenerTargetParent&&n&32&&t.parentElement?t.parentElement:t,Cu=e=>oo?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,xu=u.lazyLoad?class{}:globalThis.HTMLElement||class{};function Eu(...e){return e.reduceRight((t,n)=>n(t),xu)}var wu=e=>L.$nonce$=e,Ou=e=>Object.assign(L,e);function Tu(e,t){const s={$cmpMeta$:{$flags$:0,$tagName$:t.tagName},$hostElement$:t};zn(s,e)}var Pn=void 0;function sn(e){return Pn?Pn(e):e}function Ru(e){Pn&&console.warn(`
40      A tagTransformer has already been set. 
41      Overwriting it may lead to error and unexpected results if your components have already been defined.
42    `),Pn=e}function Iu(e,t,n,s,r,i){const o=t||{},{children:a,...l}=o;let c=l;return n!==void 0&&!("key"in l)&&(c={...l,key:n}),c&&Object.keys(c).length===0&&(c=null),a!==void 0?Array.isArray(a)?H(e,c,...a):(typeof a=="object"&&a!==null&&"$flags$"in a,H(e,c,a)):H(e,c)}function Mo(e,t,n){const s=t||{},{children:r,...i}=s;let o=i;return n!==void 0&&!("key"in i)&&(o={...i,key:n}),o&&Object.keys(o).length===0&&(o=null),r!==void 0?Array.isArray(r)?H(e,o,...r):(typeof r=="object"&&r!==null&&"$flags$"in r,H(e,o,r)):H(e,o)}function Au(e,t,n){return Mo(e,t,n)}var Du=(e,t)=>{if(e!=null){const n=Gr in e?e[Gr]:{...Vl};n.staticComponents=new Set(t);const s=[];Bo(e,e.body,n,s),s.forEach(r=>{var i;if(r!=null&&r["s-nr"]){const o=r["s-nr"];let a=o["s-host-id"],l=o["s-node-id"],c=`${a}.${l}`;if(a==null){if(a=0,n.rootLevelIds++,l=n.rootLevelIds,c=`${a}.${l}`,o.nodeType===1)o.setAttribute(St,c),typeof o["s-sn"]=="string"&&!o.getAttribute("slot")&&o.setAttribute("s-sn",o["s-sn"]);else if(o.nodeType===3){if(a===0&&((i=o.nodeValue)==null?void 0:i.trim())===""){r.remove();return}const h=e.createComment(c);h.nodeValue=`${nr}.${c}`,he(o.parentNode,h,o)}else if(o.nodeType===8){const h=e.createComment(c);h.nodeValue=`${ro}.${c}`,o.parentNode.insertBefore(h,o)}}let d=`${so}.${c}`;const f=r.parentElement;f&&(f["s-en"]===""?d+=".":f["s-en"]==="c"&&(d+=".c")),r.nodeValue=d}})}},Bo=(e,t,n,s)=>{var r;t!=null&&(t["s-nr"]!=null&&s.push(t),t.nodeType===1&&[...Array.from(t.childNodes),...Array.from(((r=t.shadowRoot)==null?void 0:r.childNodes)||[])].forEac
42h(o=>{const a=V(o);if(a!=null&&!n.staticComponents.has(o.nodeName.toLowerCase())){const l={nodeIds:0};Lu(e,o,a.$vnode$,n,l)}Bo(e,o,n,s)}))},Lu=(e,t,n,s,r)=>{if(n!=null){const i=++s.hostIds;if(t.setAttribute(bt,i),t["s-cr"]!=null&&(t["s-cr"].nodeValue=`${no}.${i}`),n.$children$!=null&&n.$children$.forEach((a,l)=>{Ho(e,a,r,i,0,l)}),t&&n&&n.$elm$&&!t.hasAttribute(St)){const o=t.parentElement;if(o&&o.childNodes){const a=Array.from(o.childNodes),l=a.find(c=>c.nodeType===8&&c["s-sr"]);if(l){const c=a.indexOf(t)-1;n.$elm$.setAttribute(St,`${l["s-host-id"]}.${l["s-node-id"]}.0.${c}`)}}}}},Ho=(e,t,n,s,r,i)=>{const o=t.$elm$;if(o==null)return;const a=n.nodeIds++,l=`${s}.${a}.${r}.${i}`;if(o["s-host-id"]=s,o["s-node-id"]=a,o.nodeType===1)o.setAttribute(St,l),typeof o["s-sn"]=="string"&&!o.getAttribute("slot")&&o.setAttribute("s-sn",o["s-sn"]);else if(o.nodeType===3){const c=o.parentNode,d=c==null?void 0:c.nodeName;if(d!=="STYLE"&&d!=="SCRIPT"){const f=`${nr}.${l}`,h=e.createComment(f);he(c,h,o)}}else if(o.nodeType===8&&o["s-sr"]){const c=o["s-sn"]||"",d=`${Cn}.${l}.${c}`;o.nodeValue=d}if(t.$children$!=null){const c=r+1;t.$children$.forEach((d,f)=>{Ho(e,d,n,s,c,f)})}},zu=Object.freeze({__proto__:null,BUILD:u,Build:Es,Env:kl,Fragment:bu,H:Wr,HTMLElement:Wr,HYDRATED_STYLE_ID:pt,Host:mo,Mixin:Eu,NAMESPACE:_n,STENCIL_DEV_MODE:Bn,addHostEventListeners:Kt,bootstrapLazy:Fo,cmpModules:pn,connectedCallback:hr,consoleDevError:Ut,consoleDevInfo:Ml,consoleDevWarn:$t,consoleError:oe,createEvent:su,defineCustomElement:mu,disconnectedCallback:pr,forceModeUpdate:$u,forceUpdate:ko,getAssetPath:Xl,getElement:Oo,getHostRef:V,getMode:eu,getRenderingRef:pu,getValue:Ns,h:H,insertVdomAnnotations:Du,isMemberInElement:Os,jsx:Mo,jsxDEV:Iu,jsxs:Au,loadModule:to,modeResolutionChain:tr,needsScopedSSR:Ul,nextTick:Zt,parsePropertyValue:Rn,plt:L,postUpdateComponent:ks,promiseResolve:ao,proxyComponent:qn,proxyCustomElement:No,readTask:ql,registerHost:er,registerInstance:Fl,render:Tu,renderVdom:zn,setAssetPath:Jl,setErrorHandler:Bl,setMode:wo,setNonce:wu,setPlatformHelpers:Kl,setPlatformOptions:Ou,setScopedSSR:Hl,setTagTransformer:Ru,setValue:jt,styles:yt,supportsConstructableStylesheets:Hn,supportsListenerOptions:oo,supportsMutableAdoptedStyleSheets:xn,supportsShadow:Pe,transformTag:sn,win:z,writeTask:sr});/*!
43 * Built by Revolist OU ❤️
44 */class Pu{constructor(){this.defaultRowSize=32}}class ku{constructor(){this.defaultRowSize=27}}class ju{constructor(){this.defaultRowSize=42}}const Uo="default",Nu=[Uo,"material","compact","darkMaterial","darkCompact"];class im{get theme(){return this.currentTheme}get rowSize(){return this.customRowSize||this.currentTheme.defaultRowSize}set rowSize(t){this.customRowSize=t}constructor(t){this.customRowSize=0,this.customRowSize=t.rowSize,this.register("default")}register(t){switch(Go(t)){case"material":case"darkMaterial":this.currentTheme=new ju;break;case"compact":case"darkCompact":this.currentTheme=new Pu;break;default:this.currentTheme=new ku;break}}}function Go(e){return e&&Nu.indexOf(e)>-1?e:Uo}/*!
45 * Built by Revolist OU ❤️
46 */function Fu(){wo(e=>{let t=e.theme||e.getAttribute("theme");typeof t=="string"&&(t=t.trim());const n=Go(t);return n!==t&&e.setAttribute("theme",n),n})}const Mu=Fu||(()=>{}),Bu=Mu;/*!
47 * Built by Revolist OU ❤️
48 */const ds=async(e,t)=>{if(!(typeof window>"u"))return await Bu(),Fo([["revo-grid",[[260,"revo-grid",{rowHeaders:[4,"row-headers"],frameSize:[2,"frame-size"],rowSize:[2,"row-size"],colSize:[2,"col-size"],range:[4],readonly:[4],resize:[4],noHorizontalScrollTransfer:[4,"no-horizontal-scroll-transfer"],canFocus:[4,"can-focus"],useClipboard:[4,"use-clipboard"],columns:[16],source:[16],pinnedTopSource:[16],pinnedBottomSource:[16],rowDefinitions:[16],editors:[16],applyOnClose:[4,"apply-on-close"],plugins:[16],columnTypes:[16],theme:[1537],rowClass:[513,"row-class"],autoSizeColumn:[4,"auto-size-column"],filter:[4],sorting:[16],focusTemplate:[16],canMoveColumns:[4,"can-move-columns"],trimmedRows:[16],exporting:[4],grouping:[16],stretch:[8],additionalData:[16],disableVirtualX:[4,"disable-virtual-x"],disableVirtualY:[4,"disable-virtual-y"],hideAttribution:[4,"hide-attribution"],jobsBeforeRender:[16],registerVNode:[16],accessible:[4],rtl:[4],canDrag:[4,"can-drag"],refresh:[64],setDataAt:[64],scrollToRow:[64],scrollToColumnIndex:[64],scrollToColumnProp:[64],updateColumns:[64],addTrimmed:[64],scrollToCoordinate:[64],setCellEdit:[64],setCellsFocus:[64],getSource:[64],getVisibleSource:[64],getSourceStore:[64],getColumnStore:[64],updateColumnSorting:[64],clearSorting:[64],getColumns:[64],clearFocus:[64],getPlugins:[64],getFocused:[64],getContentSize:[64],getSelectedRange:[64],refreshExtraElements:[64],getProviders:[64]},[[5,"touchstart","mousedownHandle"],[5,"mousedown","mousedownHandle"],[5,"touchend","mouseupHandle"],[5,"mouseup","mouseupHandle"],[0,"rowdragstartinit","onRowDragStarted"],[0,"rowdragendinit","onRowDragEnd"],[0,"roworderchange","onRowOrderChange"],[0,"rowdragmoveinit","onRowDrag"],[0,"rowdragmousemove","onRowMouseMove"],[0,"celleditapply","onCellEdit"],[0,"rangeeditapply","onRangeEdit"],[0,"selectionchangeinit","onRangeChanged"],[0,"rowdropinit","onRowDropped"],[0,"beforeheaderclick","onHeaderClick"],[0,"beforecellfocusinit","onCellFocus"]],{columnTypes:[{columnTypesChanged:0}
48],columns:[{columnChanged:0}],disableVirtualX:[{disableVirtualXChanged:0}],rowSize:[{rowSizeChanged:0}],theme:[{themeChanged:0}],source:[{dataSourceChanged:0}],pinnedBottomSource:[{dataSourceChanged:0}],pinnedTopSource:[{dataSourceChanged:0}],disableVirtualY:[{disableVirtualYChanged:0}],rowDefinitions:[{rowDefChanged:0}],trimmedRows:[{trimmedRowsChanged:0}],grouping:[{groupingChanged:0}],stretch:[{applyStretch:0}],filter:[{applyFilter:0}],sorting:[{applySorting:0}],rowHeaders:[{rowHeadersChange:0}],registerVNode:[{registerOutsideVNodes:0}],additionalData:[{additionalDataChanged:0}],rtl:[{rtlChanged:0}],plugins:[{pluginsChanged:0}]}]]],["revogr-filter-panel",[[260,"revogr-filter-panel",{filterNames:[16],filterEntities:[16],filterCaptions:[16],disableDynamicFiltering:[4,"disable-dynamic-filtering"],closeOnOutsideClick:[4,"close-on-outside-click"],isFilterIdSet:[32],filterId:[32],currentFilterId:[32],currentFilterType:[32],changes:[32],filterItems:[32],draggedFilterId:[32],dragOverFilterId:[32],show:[64],getChanges:[64]},[[5,"mousedown","onMouseDown"]]]]],["revogr-clipboard_3",[[0,"revogr-clipboard",{readonly:[4],doCopy:[64]},[[4,"paste","onPaste"],[4,"copy","copyStarted"],[4,"cut","cutStarted"]]],[0,"revogr-edit",{editCell:[16],column:[16],editor:[16],saveOnClose:[4,"save-on-close"],additionalData:[8,"additional-data"],cancelChanges:[64],beforeDisconnect:[64]}],[0,"revogr-order-editor",{parent:[16],dimensionRow:[16],dimensionCol:[16],dataStore:[16],rowType:[1,"row-type"],dragStart:[64],endOrder:[64],clearOrder:[64]}]]],["revogr-data_4",[[260,"revogr-data",{readonly:[4],range:[4],rowClass:[1,"row-class"],additionalData:[8,"additional-data"],rowSelectionStore:[16],viewportRow:[16],viewportCol:[16],dimensionRow:[16],colData:[16],dataStore:[16],type:[513],colType:[513,"col-type"],jobsBeforeRender:[16],providers:[32],updateCell:[64]},null,{dataStore:[{onDataStoreChange:0}],colData:[{onColDataChange:0}]}],[0,"revogr-header",{viewportCol:[16],dimensionCol:[16],selectionStore:[16],groups:[16],groupingDepth:[2,"grouping-depth"],readonly:[4],canResize:[4,"can-resize"],resizeHandler:[16],colData:[16],columnFilter:[4,"column-filter"],type:[1],additionalData:[8,"additional-data"]}],[260,"revogr-viewport-scroll",{rowHeader:[4,"row-header"],contentWidth:[2,"content-width"],contentHeight:[2,"content-height"],colType:[1,"col-type"],noHorizontalScrollTransfer:[4,"no-horizontal-scroll-transfer"],setScroll:[64],changeScroll:[64],applyScroll:[64]},[[0,"mousewheel-vertical","mousewheelVertical"],[0,"mousewheel-horizontal","mousewheelHorizontal"],[0,"scroll-coordinate","scrollApply"]]],[0,"vnode-html",{redraw:[16]}]]],["revogr-attribution_7",[[0,"revogr-row-headers",{height:[2],dataPorts:[16],headerProp:[16],rowClass:[1,"row-class"],resize:[4],rowHeaderColumn:[16],additionalData:[8,"additional-data"],jobsBeforeRender:[16]}],[260,"revogr-overlay-selection",{readonly:[4],range:[4],canDrag:[4,"can-drag"],useClipboard:[4,"use-clipboard"],selectionStore:[16],dimensionRow:[16],dimensionCol:[16],dataStore:[16],colData:[16],lastCell:[16],editors:[16],applyChangesOnClose:[4,"apply-changes-on-close"],additionalData:[8,"additional-data"],isMobileDevice:[4,"is-mobile-device"]},[[5,"touchmove","onMouseMove"],[5,"mousemove","onMouseMove"],[5,"touchend","onMouseUp"],[5,"mouseup","onMouseUp"],[5,"mouseleave","onMouseUp"],[0,"dragstartcell","onCellDrag"],[4,"keyup","onKeyUp"],[4,"keydown","onKeyDown"]],{selectionStore:[{selectionServiceSet:0}],dimensionRow:[{createAutoFillService:0}],dimensionCol:[{createAutoFillService:0}],dataStore:[{columnServiceSet:0}],colData:[{columnServiceSet:0}]}],[0,"revogr-attribution"],[260,"revogr-focus",{colType:[1,"col-type"],rowType:[1,"row-type"],selectionStore:[16],dimensionRow:[16],dimensionCol:[16],dataStore:[16],colData:[16],focusTemplate:[16]}],[0,"revogr-scroll-virtual",{dimension:[1],realSize:[2,"real-size"],virtualSize:[2,"virtual-size"],clientSize:[2,"client-size"],setScroll:[64],changeScroll:[64]}],[0,"revogr-temp-range",{selectionStore:[16],dimensionRow:[16],dimensionCol:[16]}],[0,"revogr-extra",{nodes:[16],update:[32],refresh:[64]}]]]],t)};/*!
49 * Built by Revolist OU ❤️
50 */(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();/*!
51 * Built by Revolist OU ❤️
52 */var Vo=typeof global=="object"&&global&&global.Object===Object&&global,Hu=typeof self=="object"&&self&&self.Object===Object&&self,Re=Vo||Hu||Function("return this")(),Ge=Re.Symbol,Wo=Object.prototype,Uu=Wo.hasOwnProperty,Gu=Wo.toString,kt=Ge?Ge.toStringTag:void 0;function Vu(e){var t=Uu.call(e,kt),n=e[kt];try{e[kt]=void 0;var s=!0}catch{}var r=Gu.call(e);return s&&(t?e[kt]=n:delete e[kt]),r}var Wu=Object.prototype,Ku=Wu.toString;function qu(e){return Ku.call(e)}
52var Xu="[object Null]",Ju="[object Undefined]",oi=Ge?Ge.toStringTag:void 0;function Tt(e){return e==null?e===void 0?Ju:Xu:oi&&oi in Object(e)?Vu(e):qu(e)}function st(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ct(e){return e!=null&&typeof e=="object"}var Yu="[object Symbol]";function rt(e){return typeof e=="symbol"||Ct(e)&&Tt(e)==Yu}var Qu=/\s/;function Zu(e){for(var t=e.length;t--&&Qu.test(e.charAt(t)););return t}var ed=/^\s+/;function td(e){return e&&e.slice(0,Zu(e)+1).replace(ed,"")}var ai=NaN,nd=/^[-+]0x[0-9a-f]+$/i,sd=/^0b[01]+$/i,rd=/^0o[0-7]+$/i,id=parseInt;function Bs(e){if(typeof e=="number")return e;if(rt(e))return ai;if(st(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=st(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=td(e);var n=sd.test(e);return n||rd.test(e)?id(e.slice(2),n?2:8):nd.test(e)?ai:+e}var fs=function(){return Re.Date.now()},od="Expected a function",ad=Math.max,ld=Math.min;function Ko(e,t,n){var s,r,i,o,a,l,c=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(od);t=Bs(t)||0,st(n)&&(d=!!n.leading,f="maxWait"in n,i=f?ad(Bs(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function g(_){var C=s,A=r;return s=r=void 0,c=_,o=e.apply(A,C),o}function p(_){return c=_,a=setTimeout(I,t),d?g(_):o}function $(_){var C=_-l,A=_-c,P=t-C;return f?ld(P,i-A):P}function y(_){var C=_-l,A=_-c;return l===void 0||C>=t||C<0||f&&A>=i}function I(){var _=fs();if(y(_))return T(_);a=setTimeout(I,$(_))}function T(_){return a=void 0,h&&s?g(_):(s=r=void 0,o)}function b(){a!==void 0&&clearTimeout(a),c=0,s=l=r=a=void 0}function E(){return a===void 0?o:T(fs())}function m(){var _=fs(),C=y(_);if(s=arguments,r=this,l=_,C){if(a===void 0)return p(l);if(f)return clearTimeout(a),a=setTimeout(I,t),g(l)}return a===void 0&&(a=setTimeout(I,t)),o}return m.cancel=b,m.flush=E,m}/*!
53 * Built by Revolist OU ❤️
54 */const cd=e=>({set(t,n){if(t!=="proxyItems")return;const s=e.get("items").reduce((i,o)=>(i.add(o),i),new Set),r=n.reduce((i,o)=>(s.has(o)&&i.push(o),i),[]);e.set("items",r)}});function ud(e,t,n,s){for(var r=e.length,i=n+-1;++i<r;)if(t(e[i],i,e))return i;return-1}function dd(){this.__data__=[],this.size=0}function gr(e,t){return e===t||e!==e&&t!==t}function Xn(e,t){for(var n=e.length;n--;)if(gr(e[n][0],t))return n;return-1}var fd=Array.prototype,hd=fd.splice;function pd(e){var t=this.__data__,n=Xn(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():hd.call(t,n,1),--this.size,!0}function gd(e){var t=this.__data__,n=Xn(t,e);return n<0?void 0:t[n][1]}function vd(e){return Xn(this.__data__,e)>-1}function md(e,t){var n=this.__data__,s=Xn(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}ke.prototype.clear=dd;ke.prototype.delete=pd;ke.prototype.get=gd;ke.prototype.has=vd;ke.prototype.set=md;function $d(){this.__data__=new ke,this.size=0}function yd(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function bd(e){return this.__data__.get(e)}function Sd(e){return this.__data__.has(e)}var _d="[object AsyncFunction]",Cd="[object Function]",xd="[object GeneratorFunction]",Ed="[object Proxy]";function qo(e){if(!st(e))return!1;var t=Tt(e);return t==Cd||t==xd||t==_d||t==Ed}var hs=Re["__core-js_shared__"],li=(function(){var e=/[^.]+$/.exec(hs&&hs.keys&&hs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function wd(e){return!!li&&li in e}var Od=Function.prototype,Td=Od.toString;function ot(e){if(e!=null){try{return Td.call(e)}catch{}try{return e+""}catch{}}return""}var Rd=/[\\^$.*+?()[\]{}|]/g,Id=/^\[object .+?Constructor\]$/,Ad=Function.prototype,Dd=Object.prototype,Ld=Ad.toString,zd=Dd.hasOwnProperty,Pd=RegExp("^"+Ld.call(zd).replace(Rd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kd(e){if(!st(e)||wd(e))return!1;var t=qo(e)?Pd:Id;return t.test(ot(e))}function jd(e,t){return e==null?void 0:e[t]}function Rt(e,t){var n=jd(e,t);return kd(n)?n:void 0}var qt=Rt(Re,"Map"),Xt=Rt(Object,"create");function Nd(){this.__data__=Xt?Xt(null):{},this.size=0}function Fd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Md="__lodash_hash_undefined__",Bd=Object.prototype,Hd=Bd.hasOwnProperty;function Ud(e){var t=this.__data__;if(Xt){var n=t[e];return n===Md?void 0:n}return Hd.call(t,e)?t[e]:void 0}var Gd=Object.prototype,Vd=Gd.hasOwnProperty;function Wd(e){var t=this.__data__;return Xt?t[e]!==void 0:Vd.call(t,e)}var Kd="__lodash_hash_undefined__";function qd(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xt&&t===void 0?Kd:t,this}function it(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}it.prototype.clear=Nd;it.prototype.delete=Fd;it.prototype.get=Ud;it.prototype.has=Wd;it.prototype.set=qd;function Xd(){this.size=0,this.__data__={hash:new it,map:new(qt||ke),string:new it}}function Jd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jn(e,t){var n=e.__data__;
vendor: 7,728 bytes, line 54
54return Jd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Yd(e){var t=Jn(this,e).delete(e);return this.size-=t?1:0,t}function Qd(e){return Jn(this,e).get(e)}function Zd(e){return Jn(this,e).has(e)}function ef(e,t){var n=Jn(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}function je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}je.prototype.clear=Xd;je.prototype.delete=Yd;je.prototype.get=Qd;je.prototype.has=Zd;je.prototype.set=ef;var tf=200;function nf(e,t){var n=this.__data__;if(n instanceof ke){var s=n.__data__;if(!qt||s.length<tf-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new je(s)}return n.set(e,t),this.size=n.size,this}function ze(e){var t=this.__data__=new ke(e);this.size=t.size}ze.prototype.clear=$d;ze.prototype.delete=yd;ze.prototype.get=bd;ze.prototype.has=Sd;ze.prototype.set=nf;var sf="__lodash_hash_undefined__";function rf(e){return this.__data__.set(e,sf),this}function of(e){return this.__data__.has(e)}function kn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new je;++t<n;)this.add(e[t])}kn.prototype.add=kn.prototype.push=rf;kn.prototype.has=of;function af(e,t){for(var n=-1,s=e==null?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}function lf(e,t){return e.has(t)}var cf=1,uf=2;function Xo(e,t,n,s,r,i){var o=n&cf,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,g=n&uf?new kn:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var p=e[f],$=t[f];if(s)var y=o?s($,p,f,t,e,i):s(p,$,f,e,t,i);if(y!==void 0){if(y)continue;h=!1;break}if(g){if(!af(t,function(I,T){if(!lf(g,T)&&(p===I||r(p,I,n,s,i)))return g.push(T)})){h=!1;break}}else if(!(p===$||r(p,$,n,s,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var ci=Re.Uint8Array;function df(e){var t=-1,n=Array(e.size);return e.forEach(function(s,r){n[++t]=[r,s]}),n}function ff(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var hf=1,pf=2,gf="[object Boolean]",vf="[object Date]",mf="[object Error]",$f="[object Map]",yf="[object Number]",bf="[object RegExp]",Sf="[object Set]",_f="[object String]",Cf="[object Symbol]",xf="[object ArrayBuffer]",Ef="[object DataView]",ui=Ge?Ge.prototype:void 0,ps=ui?ui.valueOf:void 0;function wf(e,t,n,s,r,i,o){switch(n){case Ef:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xf:return!(e.byteLength!=t.byteLength||!i(new ci(e),new ci(t)));case gf:case vf:case yf:return gr(+e,+t);case mf:return e.name==t.name&&e.message==t.message;case bf:case _f:return e==t+"";case $f:var a=df;case Sf:var l=s&hf;if(a||(a=ff),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;s|=pf,o.set(e,t);var d=Xo(a(e),a(t),s,r,i,o);return o.delete(e),d;case Cf:if(ps)return ps.call(e)==ps.call(t)}return!1}function Of(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}var $e=Array.isArray;function Tf(e,t,n){var s=t(e);return $e(e)?s:Of(s,n(e))}function Rf(e,t){for(var n=-1,s=e==null?0:e.length,r=0,i=[];++n<s;){var o=e[n];t(o,n,e)&&(i[r++]=o)}return i}function If(){return[]}var Af=Object.prototype,Df=Af.propertyIsEnumerable,di=Object.getOwnPropertySymbols,Lf=di?function(e){return e==null?[]:(e=Object(e),Rf(di(e),function(t){return Df.call(e,t)}))}:If;function zf(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var Pf="[object Arguments]";function fi(e){return Ct(e)&&Tt(e)==Pf}var Jo=Object.prototype,kf=Jo.hasOwnProperty,jf=Jo.propertyIsEnumerable,Yo=fi((function(){return arguments})())?fi:function(e){return Ct(e)&&kf.call(e,"callee")&&!jf.call(e,"callee")};function Nf(){return!1}var Qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hi=Qo&&typeof module=="object"&&module&&!module.nodeType&&module,Ff=hi&&hi.exports===Qo,pi=Ff?Re.Buffer:void 0,Mf=pi?pi.isBuffer:void 0,Hs=Mf||Nf,Bf=9007199254740991,Hf=/^(?:0|[1-9]\d*)$/;function vr(e,t){var n=typeof e;return t=t??Bf,!!t&&(n=="number"||n!="symbol"&&Hf.test(e))&&e>-1&&e%1==0&&e<t}var Uf=9007199254740991;function mr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Uf}var Gf="[object Arguments]",Vf="[object Array]",Wf="[object Boolean]",Kf="[object Date]",qf="[object Error]",Xf="[object Function]",Jf="[object Map]",Yf="[object Number]",Qf="[object Object]",Zf="[object RegExp]",eh="[object Set]",th="[object String]",nh="[object WeakMap]",sh="[object ArrayBuffer]",rh="[object DataView]",ih="[object Float32Array]",oh="[object Float64Array]",ah="[object Int8Array]",lh="[object Int16Array]",ch="[object Int32Array]",uh="[object Uint8Array]",dh="[object Uint8ClampedArray]",fh="[object Uint16Array]",hh="[object Uint32Array]",G={};G[ih]=G[oh]=G[ah]=G[lh]=G[ch]=G[uh]=G[dh]=G[fh]=G[hh]=!0;G[Gf]=G[Vf]=G[sh]=G[Wf]=G[rh]=G[Kf]=G[qf]=G[Xf]=G[Jf]=G[Yf]=G[Qf]=G[Zf]=G[eh]=G[th]=G[nh]=!1;function ph(e){return Ct(e)&&mr(e.length)&&!!G[Tt(e)]}function gh(e){return function(t){return e(t)}}var Zo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bt=Zo&&typeof module=="object"&&module&&!module.nodeType&&module,vh=Bt&&Bt.exports===Zo,gs=vh&&Vo.process,gi=(function(){try{var e=Bt&&Bt.require&&Bt.require("util").types;return e||gs&&gs.binding&&gs.binding("util")}catch{}})(),vi=gi&&gi.isTypedArray,ea=vi?gh(vi):ph,mh=Object.prototype,$h=mh.hasOwnProperty;function yh(e,t){var n=$e(e),s=!n&&Yo(e),r=!n&&!s&&Hs(e),i=!n&&!s&&!r&&ea(e),o=n||s||r||i,a=o?zf(e.length,String):[],l=a.length;for(var c in e)$h.call(e,c)&&!(o&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||vr(c,l)))&&a.push(c);return a}var bh=Object.prototype;function Sh(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bh;return e===n}function _h(e,t){return function(n){return e(t(n))}}var Ch=_h(Object.keys,Object),xh=Object.prototype,Eh=xh.hasOwnProperty;function wh(e){if(!Sh(e))return Ch(e);var t=[];for(var n in Object(e))Eh.call(e,n)&&n!="constructor"&&t.push(n);return t}function $r(e){return e!=null&&mr(e.length)&&!qo(e)}function yr(e){return $r(e)?yh(e):wh(e)}function mi(e){return Tf(e,yr,Lf)}var Oh=1,Th=Object.prototype,Rh=Th.hasOwnProperty;function Ih(e,t,n,s,r,i){var o=n&Oh,a=mi(e),l=a.length,c=mi(t),d=c.length;if(l!=d&&!o)return!1;for(var f=l;f--;){var h=a[f];if(!(o?h in t:Rh.call(t,h)))return!1}var g=i.get(e),p=i.get(t);if(g&&p)return g==t&&p==e;var $=!0;i.set(e,t),i.set(t,e);for(var y=o;++f<l;){h=a[f];var I=e[h],T=t[h];if(s)var b=o?s(T,I,h,t,e,i):s(I,T,h,e,t,i);if(!(b===void 0?I===T||r(I,T,n,s,i):b)){$=!1;break}y||(y=h=="constructor")}if($&&!y){var E=e.constructor,m=t.constructor;E!=m&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof m=="function"&&m instanceof m)&&($=!1)}return i.delete(e),i.delete(t),$}var Us=Rt(Re,"DataView"),Gs=Rt(Re,"Promise"),Vs=Rt(Re,"Set"),Ws=Rt(Re,"WeakMap"),$i="[object Map]",Ah="[object Object]",yi="[object Promise]",bi="[object Set]",Si="[object WeakMap]",_i="[object DataView]",Dh=ot(Us),Lh=ot(qt),zh=ot(Gs),Ph=ot(Vs),kh=ot(Ws),He=Tt;(Us&&He(new Us(new ArrayBuffer(1)))!=_i||qt&&He(new qt)!=$i||Gs&&He(Gs.resolve())!=yi||Vs&&He(new Vs)!=bi||Ws&&He(new Ws)!=Si)&&(He=function(e){var t=Tt(e),n=t==Ah?e.constructor:void 0,s=n?ot(n):"";if(s)switch(s){case Dh:return _i;case Lh:return $i;case zh:return yi;case Ph:return bi;case kh:return Si}return t});var jh=1,Ci="[object Arguments]",xi="[object Array]",fn="[object Object]",Nh=Object.prototype,Ei=Nh.hasOwnProperty;function Fh(e,t,n,s,r,i){var o=$e(e),a=$e(t),l=o?xi:He(e),c=a?xi:He(t);l=l==Ci?fn:l,c=c==Ci?fn:c;var d=l==fn,f=c==fn,h=l==c;if(h&&Hs(e)){if(!Hs(t))return!1;o=!0,d=!1}if(h&&!d)return i||(i=new ze),o||ea(e)?Xo(e,t,n,s,r,i):wf(e,t,l,n,s,r,i);if(!(n&jh)){var g=d&&Ei.call(e,"__wrapped__"),p=f&&Ei.call(t,"__wrapped__");
vendor: 1,679 bytes, line 54
54if(g||p){var $=g?e.value():e,y=p?t.value():t;return i||(i=new ze),r($,y,n,s,i)}}return h?(i||(i=new ze),Ih(e,t,n,s,r,i)):!1}function br(e,t,n,s,r){return e===t?!0:e==null||t==null||!Ct(e)&&!Ct(t)?e!==e&&t!==t:Fh(e,t,n,s,br,r)}var Mh=1,Bh=2;function Hh(e,t,n,s){var r=n.length,i=r;if(e==null)return!i;for(e=Object(e);r--;){var o=n[r];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<i;){o=n[r];var a=o[0],l=e[a],c=o[1];if(o[2]){if(l===void 0&&!(a in e))return!1}else{var d=new ze,f;if(!(f===void 0?br(c,l,Mh|Bh,s,d):f))return!1}}return!0}function ta(e){return e===e&&!st(e)}function Uh(e){for(var t=yr(e),n=t.length;n--;){var s=t[n],r=e[s];t[n]=[s,r,ta(r)]}return t}function na(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Gh(e){var t=Uh(e);return t.length==1&&t[0][2]?na(t[0][0],t[0][1]):function(n){return n===e||Hh(n,e,t)}}var Vh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wh=/^\w*$/;function Sr(e,t){if($e(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rt(e)?!0:Wh.test(e)||!Vh.test(e)||t!=null&&e in Object(t)}var Kh="Expected a function";function _r(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kh);var n=function(){var s=arguments,r=t?t.apply(this,s):s[0],i=n.cache;if(i.has(r))return i.get(r);var o=e.apply(this,s);return n.cache=i.set(r,o)||i,o};return n.cache=new(_r.Cache||je),n}_r.Cache=je;var qh=500;function Xh(e){var t=_r(e,function(s){return n.size===qh&&n.clear(),s}),n=t.cache;return t}var Jh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yh=/\\(\\)?/g,Qh=Xh(function(e){var t=[];
54return e.charCodeAt(0)===46&&t.push(""),e.replace(Jh,function(n,s,r,i){t.push(r?i.replace(Yh,"$1"):s||n)}),t});function Zh(e,t){for(var n=-1,s=e==null?0:e.length,r=Array(s);++n<s;)r[n]=t(e[n],n,e);return r}var wi=Ge?Ge.prototype:void 0,Oi=wi?wi.toString:void 0;function sa(e){if(typeof e=="string")return e;if($e(e))return Zh(e,sa)+"";if(rt(e))return Oi?Oi.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ep(e){return e==null?"":sa(e)}function ra(e,t){return $e(e)?e:Sr(e,t)?[e]:Qh(ep(e))}function Yn(e){if(typeof e=="string"||rt(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ia(e,t){t=ra(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[Yn(t[n++])];return n&&n==s?e:void 0}function tp(e,t,n){var s=e==null?void 0:ia(e,t);return s===void 0?n:s}function np(e,t){return e!=null&&t in Object(e)}function sp(e,t,n){t=ra(t,e);for(var s=-1,r=t.length,i=!1;++s<r;){var o=Yn(t[s]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++s!=r?i:(r=e==null?0:e.length,!!r&&mr(r)&&vr(o,r)&&($e(e)||Yo(e)))}function rp(e,t){return e!=null&&sp(e,t,np)}var ip=1,op=2;function ap(e,t){return Sr(e)&&ta(t)?na(Yn(e),t):function(n){var s=tp(n,e);return s===void 0&&s===t?rp(n,e):br(t,s,ip|op)}}function Cr(e){return e}function lp(e){return function(t){return t==null?void 0:t[e]}}function cp(e){return function(t){return ia(t,e)}}function up(e){return Sr(e)?lp(Yn(e)):cp(e)}function oa(e){return typeof e=="function"?e:e==null?Cr:typeof e=="object"?$e(e)?ap(e[0],e[1]):Gh(e):up(e)}var Ti=1/0,dp=17976931348623157e292;function $n(e){if(!e)return e===0?e:0;if(e=Bs(e),e===Ti||e===-Ti){var t=e<0?-1:1;return t*dp}return e===e?e:0}function fp(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var r=0;return ud(e,oa(t),r)}var hp=Math.ceil,pp=Math.max;function gp(e,t,n,s){for(var r=-1,i=pp(hp((t-e)/(n||1)),0),o=Array(i);i--;)o[++r]=e,e+=n;return o}function aa(e,t,n){if(!st(n))return!1;var s=typeof t;return(s=="number"?$r(n)&&vr(t,n.length):s=="string"&&t in n)?gr(n[t],e):!1}function vp(e){return function(t,n,s){return s&&typeof s!="number"&&aa(t,n,s)&&(n=s=void 0),t=$n(t),n===void 0?(n=t,t=0):n=$n(n),s=s===void 0?t<n?1:-1:$n(s),gp(t,n,s)}}var mp=vp();const $p=(e,t,n)=>{let s=e.get(t);s||(s=[],e.set(t,s)),s.some(r=>r.deref()===n)||s.push(new WeakRef(n))},yp=(e,t)=>{let n;return(...s)=>{n&&clearTimeout(n),n=setTimeout(()=>{n=0,e(...s)},t)}},bp=e=>!("isConnected"in e)||e.isConnected,Ri=yp(e=>{for(let t of e.keys()){const n=e.get(t).filter(s=>{const r=s.deref();return r&&bp(r)});e.set(t,n)}},2e3),la=zu,Ii=la.forceUpdate,Ai=la.getRenderingRef,Sp=()=>{if(typeof Ai!="function"||typeof Ii!="function")return{};const e=Ii,t=Ai,n=new Map;return{dispose:()=>n.clear(),get:s=>{const r=t();r&&$p(n,s,r)},set:s=>{const r=n.get(s);if(r){const i=r.filter(o=>{const a=o.deref();return a?e(a):!1});n.set(s,i)}Ri(n)},reset:()=>{n.forEach(s=>{s.forEach(r=>{const i=r.deref();i&&e(i)})}),Ri(n)}}},_p=e=>typeof e=="function"?e():e,Cp=(e,t=(n,s)=>n!==s)=>{const n=()=>_p(e)??{},s=n();let r=new Map(Object.entries(s));const i=typeof Proxy<"u",o=i?null:{},a={dispose:[],get:[],set:[],reset:[]},l=new Map,c=()=>{r=new Map(Object.entries(n())),i||E(),a.reset.forEach(m=>m())},d=()=>{a.dispose.forEach(m=>m()),c()},f=m=>(a.get.forEach(_=>_(m)),r.get(m)),h=(m,_)=>{const C=r.get(m);t(_,C,m)&&(r.set(m,_),i||b(m),a.set.forEach(A=>A(m,_,C)))},g=i?new Proxy(s,{get(m,_){return f(_)},ownKeys(m){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(m,_){return r.has(_)},set(m,_,C){return h(_,C),!0}}):(E(),o),p=(m,_)=>(a[m].push(_),()=>{vs(a[m],_)}),$=(m,_)=>{const C=(F,W)=>{F===m&&_(W)},A=()=>{const F=n();_(F[m])},P=p("set",C),B=p("reset",A);return l.set(_,{setHandler:C,resetHandler:A,propName:m}),()=>{P(),B(),l.delete(_)}},y=(...m)=>{const _=m.reduce((C,A)=>(A.set&&C.push(p("set",A.set)),A.get&&C.push(p("get",A.get)),A.reset&&C.push(p("reset",A.reset)),A.dispose&&C.push(p("dispose",A.dispose)),C),[]);return()=>_.forEach(C=>C())},I=m=>{const _=r.get(m);a.set.forEach(C=>C(m,_,_))},T=(m,_)=>{const C=l.get(_);C&&C.propName===m&&(vs(a.set,C.setHandler),vs(a.reset,C.resetHandler),l.delete(_))};function b(m){i||!o||Object.prototype.hasOwnProperty.call(o,m)||Object.defineProperty(o,m,{configurable:!0,enumerable:!0,get(){return f(m)},set(_){h(m,_)}})}
54function E(){if(i||!o)return;const m=new Set(r.keys());for(const _ of Object.keys(o))m.has(_)||delete o[_];for(const _ of m)b(_)}return{state:g,get:f,set:h,on:p,onChange:$,use:y,dispose:d,reset:c,forceUpdate:I,removeListener:T}},vs=(e,t)=>{const n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.length--)},Qn=(e,t)=>{const n=Cp(e,t);return n.use(Sp()),n},xp=e=>({set(t,n){switch(t){case"trimmed":{const s=e.get("proxyItems"),r=ca(n),i=s.filter(o=>!r[o]);e.set("items",i);break}}}});function ca(e){const t={};for(let n in e)for(let s in e[n])t[s]=t[s]||e[n][s];return t}function Q(e,t){for(const n of Object.keys(t))e.set(n,t[n])}const om=30,am=40,lm="data-rgCol",cm="data-rgRow",Ep="disabled",wp="rgCell",um="rowHeaders",dm="rgHeaderCell",fm="sortable",hm="header-rgRow",pm="actual-rgRow",gm="revo-drag-icon",vm="revo-draggable",mm="focused-cell",$m="selection-border-range",ym="mobile-handler",bm="temp-bg-range",Sm="autofill-handle",_m="edit-input-wrapper",Cm="Draggable item",Ve="__rvgr",xm="focused-rgRow";var Di;(function(e){e[e.MOUSE_LEFT=1]="MOUSE_LEFT",e[e.MOUSE_RIGHT=3]="MOUSE_RIGHT",e[e.MOUSE_MIDDLE=2]="MOUSE_MIDDLE",e[e.BACKSPACE=8]="BACKSPACE",e[e.COMMA=188]="COMMA",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.END=35]="END",e[e.ENTER=13]="ENTER",e[e.ESCAPE=27]="ESCAPE",e[e.CONTROL=17]="CONTROL",e[e.COMMAND_LEFT=91]="COMMAND_LEFT",e[e.COMMAND_RIGHT=93]="COMMAND_RIGHT",e[e.COMMAND_FIREFOX=224]="COMMAND_FIREFOX",e[e.ALT=18]="ALT",e[e.HOME=36]="HOME",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.PAGE_UP=33]="PAGE_UP",e[e.PERIOD=190]="PERIOD",e[e.SPACE=32]="SPACE",e[e.SHIFT=16]="SHIFT",e[e.CAPS_LOCK=20]="CAPS_LOCK",e[e.TAB=9]="TAB",e[e.ARROW_RIGHT=39]="ARROW_RIGHT",e[e.ARROW_LEFT=37]="ARROW_LEFT",e[e.ARROW_UP=38]="ARROW_UP",e[e.ARROW_DOWN=40]="ARROW_DOWN",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.A=65]="A",e[e.C=67]="C",e[e.D=68]="D",e[e.F=70]="F",e[e.L=76]="L",e[e.O=79]="O",e[e.P=80]="P",e[e.S=83]="S",e[e.V=86]="V",e[e.X=88]="X"})(Di||(Di={}));var Li;(function(e){e.ENTER="Enter",e.ENTER_NUM="NumpadEnter",e.A="KeyA",e.C="KeyC",e.X="KeyX",e.V="KeyV",e.ESCAPE="Escape",e.TAB="Tab",e.BACKSPACE="Backspace",e.DELETE="Delete",e.ARROW_RIGHT="ArrowRight",e.ARROW_LEFT="ArrowLeft",e.ARROW_UP="ArrowUp",e.ARROW_DOWN="ArrowDown",e.SHIFT="Shift"})(Li||(Li={}));var zi;(function(e){e.ENTER="Enter",e.TAB="Tab"})(zi||(zi={}));var Pi;(function(e){e.mac="Mac"})(Pi||(Pi={}));class Em{get store(){return this.dataStore}constructor(t,n){const s=this.dataStore=Qn(Object.assign({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{},groupingCustomRenderer:void 0},n));s.use(cd(s)),s.use(xp(s))}updateData(t,n,s=!1,r=!1){const i=this.store.get("trimmed"),o=s&&r?ca(i):null;s||this.store.set("trimmed",{}),this.store.set("items",[]);const a=mp(0,(t==null?void 0:t.length)||0);Q(this.store,{source:t,proxyItems:[...a]}),this.store.set("items",o?a.filter(l=>!o[l]):a),n&&Q(this.store,{groupingDepth:n.depth,groups:n.groups,groupingCustomRenderer:n.customRenderer})}addTrimmed(t){let n=this.store.get("trimmed");n=Object.assign(Object.assign({},n),t),Q(this.store,{trimmed:n})}setSourceData(t,n=!0){Ip(this.store,t,n)}setData(t){const n=Object.assign({},t);Q(this.store,n)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function Op(e,t){return e.get("items")[t]}function Tp(e){const t=e.get("source");return e.get("items").map(n=>t[n])}const ft=(e,t)=>e.get("source")[Rp(e,t)],Rp=(e,t)=>e.get("items")[t];function Ip(e,t,n=!0){const s=e.get("items"),r=e.get("source");for(let i in t){const o=s[i],a=t[i];r[o]=a}n&&e.set("source",[...r])}function wm(e,t,n=!0){const s=e.get("source");for(let r in t)s[r]=t[r];n&&e.set("source",[...s])}function Ap(e,t){e.set("items",t)}function Om(e,t){const n=e.get("items"),s=e.get("source"),r=fp(s,{prop:t});return n.indexOf(r)}var Dp=4294967295,Lp=Dp-1,zp=Math.floor,Pp=Math.min;function kp(e,t,n,s){var r=0,i=e==null?0:e.length;if(i===0)return 0;t=n(t);for(var o=t!==t,a=t===null,l=rt(t),c=t===void 0;r<i;){var d=zp((r+i)/2),f=n(e[d]),h=f!==void 0,g=f===null,p=f===f,$=rt(f);if(o)var y=p;else c?y=p&&h:a?y=p&&h&&!g:l?y=p&&h&&!g&&!$:g||$?y=!1:y=f<t;y?r=d+1:i=d}return Pp(i,Lp)}var jp=4294967295,Np=jp>>>1;function Fp(e,t,n){var s=0,r=e==null?s:e.length;if(typeof t=="number"&&t===t&&r<=Np){for(;s<r;){var i=s+r>>>1,o=e[i];o!==null&&!rt(o)&&o<t?s=i+1:r=i}return r}return kp(e,t,Cr)}function ua(e,t){return Fp(e,t)}function Mp(e,t={}){const n=[],s={},r={},i=Object.keys(t).map(Number).sort((a,l)=>a-l);let o;for(let a=0;a<i.length;a++){const l=i[a],c={itemIndex:l,start:0,end:0};if(o){const d=(l-o.itemIndex-1)*e;c.start=d+o.end}else c.start=l*e;c.end=c.start+t[l],n.push(c.start),r[l]=s[a]=c,o=c}return{indexes:i,positionIndexes:[...n],positionIndexToItem:Object.assign({},s),indexToItem:r}}const yn=({indexes:e,positionIndexes:t,originItemSize:n,positionIndexToItem:s},r)=>{const i={itemIndex:0,start:0,end:0},o=e.length?ua(t,r):0;if(!o)return i.itemIndex=Math.floor(r/n),i.start=i.itemIndex*n,i.end=i.start+n,i;const a=s[o-1];if(a.end>r)return a;const l=r-a.end,c=Math.floor(l/n);return i.itemIndex=a.itemIndex+1+c,i.start=a.end+c*n,i.end=i.start+n,i};function Tm(e,t){let n={itemIndex:t,start:0,end:0};if(e.indexToItem[t])return e.indexToItem[t];const s=e.indexes.length?ua(e.indexes,t):0;if(!s)return n.start=n.itemIndex*e.originItemSize,n.end=n.start+e.originItemSize,n;const r=e.indexToItem[e.indexes[s-1]];return n.start=r.end+(t-r.itemIndex-1)*e.originItemSize,n.end=n.start+e.originItemSize,n}/*!
55 * Built by Revolist OU ❤️
56 */function Jt(e){var t=$n(e),n=t%1;return t===t?n?t-n:t:0}function Bp(e,t,n,s){var r=-1,i=e==null?0:e.length;for(s&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function Hp(e){return function(t,n,s){for(var r=-1,i=Object(t),o=s(t),a=o.length;a--;){var l=o[++r];if(n(i[l],l,i)===!1)break}return t}}var Up=Hp();function Gp(e,t){return e&&Up(e,t,yr)}function Vp(e,t){return function(n,s){if(n==null)return n;if(!$r(n))return e(n,s);for(var r=n.length,i=-1,o=Object(n);++i<r&&s(o[i],i,o)!==!1;);return n}}var da=Vp(Gp);function Wp(e,t,n,s,r){return r(e,function(i,o,a){n=s?(s=!1,i):t(n,i,o,a)}),n}function Ht(e,t,n){var s=$e(e)?Bp:Wp,r=arguments.length<3;return s(e,oa(t),n,r,da)}function fa(e){return typeof e>"u"||e===null?"":e}function Yt(e={},t){if(t)return t.cellParser?t.cellParser(e,t):e[t.prop]}function Kp(e,t){return fa(Yt(e,t))}function qp(e){return e.pin?e.pin:"rgCol"}function Rm(e){const t={};for(const[n,s]of e.entries())s.size&&(t[n]=s.size);return t}function xr(e){return!!e.children}function Xp(e,t=0,n,s){return Ht(e,(i,o)=>{var a;if(xr(o))return i=Jp(i,o,Xp(o.children,t+1,n,i),s==null?void 0:s.columns,t),i;const l=o.columnType&&(n==null?void 0:n[o.columnType]),c=Object.assign(Object.assign({},l),o);return c.pin?i.columns[c.pin].push(c):i.columns.rgCol.push(c),c.order&&(i.sort[c.prop]=c),i.columnByProp[c.prop]||(i.columnByProp[c.prop]=[]),i.columnByProp[c.prop].push(c),(a=c.beforeSetup)===null||a===void 0||a.call(c,c),i},{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnByProp:{},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},sort:{},maxLevel:t})}function Jp(e,t,n,s,r=0){const i=Object.assign(Object.assign({},t),{level:r,indexes:[]});nt.forEach(o=>{const a=e.columns[o],l=n.columns[o];if($e(a)&&$e(l)){const c=l.length;if(c){const d=[...(s==null?void 0:s[o])||[],...a].length;a.push(...l),e.columnGrouping[o].push(Object.assign(Object.assign({},i),{indexes:Array(c).fill(d).map((f,h)=>f+h)}))}}});for(let o in n.columnGrouping){const a=o,l=n.columnGrouping[a],c=((s==null?void 0:s[a])||[]).length,d=c>0?l.map(f=>Object.assign(Object.assign({},f),{indexes:f.indexes.map(h=>h+c)})):l;e.columnGrouping[a].push(...d)}return e.maxLevel=Math.max(e.maxLevel,n.maxLevel),e.sort=Object.assign(Object.assign({},e.sort),n.sort),e.columnByProp=Object.assign(Object.assign({},e.columnByProp),n.columnByProp),e}function ha(e,t){for(const n of e)if(xr(n)){const s=ha(n.children,t);
56if(s)return s}else if(n.prop===t)return n}function Yp(e,t){return ha(e,t)}function Im(e,t){const n={};let s=["x","y"];for(let r of s)if(e[r]<0)return n[r]=e[r],n;for(let r of s)if(e[r]>=t[r])return n[r]=e[r]-t[r],n;return null}function Am(e,t){const n=Object.assign({},e),s=["x","y"];for(const r of s)e[r]<0?n[r]=0:e[r]>=t[r]&&(n[r]=t[r]-1);return n}function Ks(e,t){return e&&t?{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x1:Math.max(e.x,t.x),y1:Math.max(e.y,t.y)}:null}function Dm(e){return e.x===e.x1&&e.y===e.y1}const Er=["rowPinStart","rgRow","rowPinEnd"],nt=["colPinStart","rgCol","colPinEnd"];function Lm(e){return Er.indexOf(e)>-1}const xt=`${Ve}-depth`,wr=`${Ve}-name`,Or=`${Ve}-id`,jn=`${Ve}-value`,qs=`${Ve}-column`,Qt=`${Ve}-expanded`,Nn=`${Ve}-prop`,pa=`${Ve}-original-index`,zm="group-expand",Qp="groupexpandclick",ms="rgRow";function Zp(e,t){return e[t]||null}function ga(e){return e!=null}function ct(e,t,n=!1){let s=0;const r={source:[],prevExpanded:{},oldNewIndexes:{}};return t.forEach(i=>{const o=e[i];if(!n){r.source.push(o);return}if(ue(o))va(o)&&(r.prevExpanded[o[jn]]=!0);
56else if(ga(o))r.source.push(o),r.oldNewIndexes[i]=s,s++;else return}),r}function va(e={}){return e[Qt]}function ma({groupedValues:e,parentIds:t,isExpanded:n,itemIndex:s,expandedAll:r,prevExpanded:i,columnProps:o}){const a=t.length,l=[];let c={},d={};return e.forEach((f,h)=>{const g=[...t,h],p=g.join(","),$=n&&(!!r||!!i[p]);if(l.push({[wr]:h,[xt]:a,[Or]:JSON.stringify(g),[jn]:p,[Qt]:$,[Nn]:o[a],[o[a]]:h}),s+=1,!n&&a&&(c[s]=!0),Array.isArray(f))f.forEach(y=>{s+=1,$||(c[s]=!0),d[y[pa]]=s}),l.push(...f);else{const y=ma({groupedValues:f,parentIds:g,isExpanded:$,itemIndex:s,expandedAll:r,prevExpanded:i,columnProps:o});l.push(...y.source),c=Object.assign(Object.assign({},y.trimmed),c),d=Object.assign(Object.assign({},y.oldNewIndexMap),d),s=y.itemIndex}}),{source:l,oldNewIndexMap:d,trimmed:c,itemIndex:s}}function ki(e,t,{prevExpanded:n={},expandedAll:s=!1,getGroupValue:r=Zp}){const i=new Map;e.forEach((d,f)=>{if(!ga(d))return;const h=t.map(y=>r(d,y)),g=h.pop();let p=i;if(h.forEach(y=>{p.has(y)||p.set(y,new Map),p=p.get(y)}),!p.has(g)){const y=[];p.set(g,y)}p.get(g).push(Object.assign(Object.assign({},d),{[pa]:f}))});const o=t.length,{source:a,trimmed:l,oldNewIndexMap:c}=ma({groupedValues:i,parentIds:[],isExpanded:!0,itemIndex:-1,expandedAll:s,prevExpanded:n,columnProps:t});return{sourceWithGroups:a,depth:o,trimmed:l,oldNewIndexMap:c}}function eg(e){return e==null?void 0:e[wr]}function ue(e){return typeof(e==null?void 0:e[wr])<"u"}function $a(e){return typeof(e==null?void 0:e[qs])<"u"}function tg(e,t){const n=e.length;let s=0;for(;s<n;s++)if(e[s]!==t[s])return s;return s}function ya(e){const t=JSON.parse(e);return Array.isArray(t)?t:null}function ng(e,t,n){const s=ya(n[Or]);if(!s)return!1;const r=tg(e,s);return t[xt]<r}function sg(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++s<r;)i[s]=e[s+t];return i}function rg(e,t,n){var s=e==null?0:e.length;return s?(n&&typeof n!="number"&&aa(e,t,n)?(t=0,n=s):(t=t==null?0:Jt(t),n=n===void 0?s:Jt(n)),sg(e,t,n)):[]}function Pm(e,t={}){const n=e==null?void 0:e.editor;if(n)return typeof n=="string"?t[n]:n}class km{get columns(){return Tp(this.source)}constructor(t,n){this.dataStore=t,this.source=n,this.unsubscribe=[],this.hasGrouping=!1,this.unsubscribe.push(n.onChange("source",s=>this.checkGrouping(s))),this.checkGrouping(n.get("source")),this.type=n.get("type")}checkGrouping(t){for(let n of t){if($a(n)){this.hasGrouping=!0;return}this.hasGrouping=!1}}isReadOnly(t,n){var s;const r=(s=this.columns[n])===null||s===void 0?void 0:s.readonly;if(typeof r=="function"){const i=this.rowDataModel(t,n);return r(i)}return!!r}mergeProperties(t,n,s,r){var i,o;const a=Object.assign({},s);a.class=Object.assign(Object.assign({},typeof a.class=="string"?{[a.class]:!0}:a.class),{[wp]:!0,[Ep]:this.isReadOnly(t,n)});const l=(o=(i=r.column)===null||i===void 0?void 0:i.cellProperties)===null||o===void 0?void 0:o.call(i,r);return l?ba(a,l):a}getRowClass(t,n){return(ft(this.dataStore,t)||{})[n]||""}getSaveData(t,n,s){const r=this.rowDataModel(t,n);return typeof s>"u"&&(s=fa(r.value)),Object.assign(Object.assign({},r),{val:s})}rowDataModel(t,n){const s=this.columns[n],r=s==null?void 0:s.prop,i=ft(this.dataStore,t)||{},o=this.dataStore.get("type");return{prop:r,model:i,data:this.dataStore.get("source"),column:s,rowIndex:t,colIndex:n,colType:this.type,type:o,value:Yt(i,s)}}getRangeData(t,n){var s;const r={},i=t.oldRange.x1-t.oldRange.x+1,o=t.oldRange.y1-t.oldRange.y+1,a={};for(let l=t.newRange.y,c=0;l<t.newRange.y1+1;l++,c++){const d=t.oldRange.y+c%o,f=ft(this.dataStore,d)||{};for(let h=t.newRange.x,g=0;h<t.newRange.x1+1;h++,g++){if(l>=t.oldRange.y&&l<=t.oldRange.y1&&h>=t.oldRange.x&&h<=t.oldRange.x1||!this.columns[h])continue;const p=(s=this.columns[h])===null||s===void 0?void 0:s.prop,$=t.oldRange.x+g%i,y=n[$].prop;this.isReadOnly(l,h)||(r[l]||(r[l]={}),r[l][p]=f[y],a[l]||(a[l]={}),a[l][p]={colIndex:$,colProp:y,rowIndex:d})}}return{changed:r,mapping:a}}getTransformedDataToApply({start:t,data:n,targetRange:s}){const r={},i=n.length;if(!i)return{changed:r,range:null};const o=this.columns.length,a=this.dataStore.get("items").length,l=this.getDataApplyBounds(t,s,i,a,o);if(!l)return{changed:r,range:null};const{startRow:c,startCol:d,endRow:f}=l;let h=d-1,g=c-1;for(let p=c,$=0;p<=f;p++,$++){const y=n[$%i],I=(y==null?void 0:y.length)||0;I&&(h=Math.max(h,this.applyClipboardRow(r,{bounds:l,copyColLength:I,copyRow:y,rowIndex:p,start:t,targetRange:s})),g=p)}return{changed:r,range:this.getAppliedRange(l,g,h)}}getDataApplyBounds(t,n,s,r,i){var o,a,l;const c=(o=n==null?void 0:n.y)!==null&&o!==void 0?o:t.y,d=(a=n==null?void 0:n.x)!==null&&a!==void 0?a:t.x,f=Math.min(r-1,(l=n==null?void 0:n.y1)!==null&&l!==void 0?l:t.y+s-1);return f<c||d>=i?null:{startRow:c,startCol:d,endRow:f,colLength:i}}applyClipboardRow(t,{bounds:n,copyColLength:s,copyRow:r,rowIndex:i,start:o,targetRange:a}){var l;const c=Math.min(n.colLength-1,(l=a==null?void 0:a.x1)!==null&&l!==void 0?l:o.x+s-1);for(let d=n.startCol,f=0;d<=c;d++,f++){if(this.isReadOnly(i,d))continue;const h=this.columns[d].prop;t[i]=t[i]||{},t[i][h]=r[f%s]}return c}getAppliedRange({startRow:t,startCol:n},s,r){return s<t||r<n?null:Ks({x:n,y:t},{y:s,x:r})}getRangeStaticData(t,n){const s={};for(let r=t.y,i=0;r<t.y1+1;r++,i++)for(let o=t.x,a=0;o<t.x1+1;o++,a++){if(!this.columns[o])continue;const l=this.columns[o].prop;this.isReadOnly(r,o)||(s[r]||(s[r]={}),s[r][l]=n)}return s}getRangeTransformedToProps(t,n){var s;const r=[],i=this.dataStore.get("type");for(let o=t.y,a=0;o<t.y1+1;o++,a++)for(let l=t.x,c=0;l<t.x1+1;l++,c++){const d=(s=this.columns[l])===null||s===void 0?void 0:s.prop;r.push({prop:d,rowIndex:o,colIndex:l,model:ft(n,o),type:i,colType:this.t
56ype})}return r}copyRangeArray(t,n){const s=[...this.columns],r=rg(s,t.x,t.x1+1).map(a=>a.prop),i=[],o={};for(let a=t.y;a<=t.y1;a++){const l=[];o[a]={};for(let c of r){const d=ft(n,a);if(!d)continue;const f=d[c];l.push(f),o[a][c]=f}i.push(l)}return{data:i,mapping:o}}destroy(){this.unsubscribe.forEach(t=>t())}}function jm(e,t){return typeof e=="function"?e(t):!!e}function ji(e={},t={}){return typeof e=="string"&&(e={[e]:!0}),typeof t=="string"&&(t={[t]:!0}),Object.assign(Object.assign({},e),t)}function ba(e,t){t.className&&(t.class=ji(t.class,t.className),delete t.className);let n=Object.assign(Object.assign({},t),e);return t.class&&(n.class=ji(n.class,t.class)),t.style&&(n.style=Object.assign(Object.assign({},t.style),n.style)),n}/*!
57 * Built by Revolist OU ❤️
58 */const ig=10,og=(e,t,n=50)=>(t==null?void 0:t.size)||Math.max((e.toString().length+1)*ig,n);function Sa(e,t,n=1){return!t||e.realSize<=t?0:Math.max(0,e.realSize-t-e.originItemSize*n)}function ag(e,t,n,s=1){return Math.min(Math.max(0,e),Sa(t,n,s))}function lg(e,t,n,s,r){const i=yn(r,e),o=Tr(t);let a;if(o){let c=i.itemIndex-(o.itemIndex||0);c&&(a=ug(Math.abs(c),Object.assign(Object.assign({positiveDirection:c>-1},r),t)))}const l=cg(s,r.realSize,i);if(a){const c=Ca(i,n,l,a,r);c.length&&_a(a.items,c,a)}if(!a){const c=xa({firstItemStart:i.start,firstItemIndex:i.itemIndex,origSize:r.originItemSize,maxSize:l,maxCount:n,sizes:r.sizes});a={items:c,start:0,end:c.length-1}}return a}function cg(e,t,n){return Math.min(e+(n.end-n.start),t)}function _a(e,t,n){e.splice(n.end+1,0,...t),n.start>=n.end&&!(n.start===n.end&&n.start===0)&&(n.start+=t.length),n.end+=t.length}function Ca(e,t,n,s,r){const i=Rr(s);return xa({sizes:r.sizes,firstItemStart:i.end,firstItemIndex:i.itemIndex+1,origSize:r.originItemSize,maxSize:n-(i.end-e.start),maxCount:t})}function xa(e,t=0){const n=[];let s=e.firstItemIndex,r=t;for(;r<=e.maxSize&&s<e.maxCount;){const i=Xs(s,e.sizes,e.origSize);n.push({start:e.firstItemStart+r,end:e.firstItemStart+r+i,itemIndex:s,size:i}),r+=i,s++}return n}function ug(e,t){var n,s;const r=[...t.items],i=r.length;let o={start:t.start,end:t.end};if(e>i)return;if(t.positiveDirection){let l=Rr(t),c=o.start;const d=c+e;for(;c<d;c++){const f=l.itemIndex+1,h=Xs(f,t.sizes,t.originItemSize);if(l.end+h>t.realSize)break;let g=c%i;if(!r[g])throw new Error("incorrect index");r[g]=l={start:l.end,end:l.end+h,itemIndex:f,size:h},o.start++,o.end=g}}else{let l=Tr(t);const c=o.end;for(let d=0;d<e;d++){const f=((n=l==null?void 0:l.itemIndex)!==null&&n!==void 0?n:0)-1,h=Xs(f,t.sizes,t.originItemSize);let g=c-d;if(g=(g<0?i+g:g)%i,!r[g]){console.error("incorrect index");break}const p=(s=l==null?void 0:l.start)!==null&&s!==void 0?s:0;r[g]=l={start:p-h,end:p,itemIndex:f,size:h},o.start=g,o.end--}}const a={start:(o.start<0?i+o.start:o.start)%i,end:(o.end<0?i+o.end:o.end)%i};return Object.assign({items:r},a)}function Xs(e,t,n=0){return typeof(t==null?void 0:t[e])=="number"?t[e]:n}function dg(e,t,n,s){return!n||!s?!1:e>=n.start&&e<=n.end||e>n.end&&s.end===t}function fg(e,t,n,s){var r;return n?t+e>((r=s==null?void 0:s.end)!==null&&r!==void 0?r:0):!1}function Tr(e){return e.items[e.start]}function Rr(e){return e.items[e.end]}function hg(e,t,n,s){const r=[...e],i=r.length;let o=s,a=0,l=t;if(!i)return[];for(;a<i;){const c=r[l];c.start=o,c.size=n,c.end=c.start+n,o=c.end,l++,a++,l===i&&(l=0)}return r}function pg(){return{items:[],start:0,end:0,virtualSize:0,realCount:0,clientSize:0,renderOffset:0}}class Nm{get lastCoordinate(){return this.lastKnownScroll}set lastCoordinate(t){this.lastKnownScroll=t}constructor(t){this.type=t,this.lastKnownScroll=0,this.store=Qn(pg())}setViewPortCoordinate(t,n,s=!1){const r=this.store.get("virtualSize");if(!r)return;const i=1,o=n.originItemSize*i,a=o*2,l=r+a,c=Sa(n,r,i);let d=ag(t,n,r,i);this.lastCoordinate=d,d-=o,d=d<0?0:d<c?d:c;let f;s?f={items:[],start:0,end:0}:f=this.getItems();const h=Tr(f),g=Rr(f);let p={};if(!dg(d,n.realSize,h,g))p=Object.assign(Object.assign({},p),lg(d,f,this.store.get("realCount"),l,n)),this.setViewport(Object.assign({},p));else if(fg(d,l,h,g)){const $=[...f.items],y=Ca(h,this.store.get("realCount"),l+d-h.start,f,{sizes:n.sizes,originItemSize:n.originItemSize});if(y.length){const I={start:this.store.get("start"),end:this.store.get("end")};_a($,y,I),p=Object.assign(Object.assign(Object.assign({},p),{items:[...$]}),I),this.setViewport(Object.assign({},p))}}}setOriginalSizes(t){const n=this.store.get("items");n.length&&Q(this.store,{items:hg(n,this.store.get("start"),t,this.lastCoordinate)})}getItems(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}}setViewport(t){(typeof t.realCount=="number"||typeof t.virtualSize=="number")&&(t=Object.assign(Object.assign({},t),{items:t.items||[]})),Q(this.store,t)}}/*!
59 * Built by Revolist OU ❤️
60 */function gg(e){const t=e.createElement("div");t.style.overflow="scroll",t.style.visibility="hidden",t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",e.body.appendChild(t);const n=t.offsetWidth-t.clientWidth;return e.body.removeChild(t),n}async function Ea(e=0){await new Promise(t=>{setTimeout(()=>t(),e)})}/*!
61 * Built by Revolist OU ❤️
62 */const Js="rv-filter",vg="active",wa="hasFilter",mg="and-or-button",$g="trash-button",yg="reorder-button",Fm=({column:e})=>H("span",null,H("button",{class:{[Js]:!0,[vg]:e&&!!e[wa]}},H("svg",{class:"filter-img",viewBox:"0 0 64 64"},H("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},H("path",{d:"M43,48 L43,56 L21,56 L21,48 L43,48 Z M53,28 L53,36 L12,36 L12,28 L53,28 Z M64,8 L64,16 L0,16 L0,8 L64,8 Z",fill:"currentColor"}))))),Mm=({ariaLabel:e,onClick:t})=>H("button",{type:"button",class:{[$g]:!0}
62,"aria-label":e,onClick:t},H("svg",{class:"trash-img",viewBox:"0 0 24 24"},H("path",{fill:"currentColor",d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z"}))),Bm=({text:e,onClick:t})=>H("button",{type:"button",class:{[mg]:!0,"light revo-button":!0},onClick:t},e),Hm=({ariaLabel:e,dragging:t,dragOver:n,onDragStart:s,onDragEnd:r,onDragOver:i,onDragLeave:o,onDrop:a,onKeyDown:l})=>H("button",{type:"button",class:{[yg]:!0,"filter-row-dragging":!!t,"filter-row-drag-over":!!n},draggable:!0,title:e,"aria-label":e,onDragStart:s,onDragEnd:r,onDragOver:i,onDragLeave:o,onDrop:a,onKeyDown:l},"::");function bg(e){return e.classList.contains(Js)?!0:e==null?void 0:e.closest(`.${Js}`)}/*!
63 * Built by Revolist OU ❤️
64 */function Nt(e,t,n){const s=new CustomEvent(t,{detail:n,cancelable:!0,bubbles:!0});return e==null||e.dispatchEvent(s),s}var mt;(function(e){e.start="resize:start",e.move="resize:move",e.end="resize:end"})(mt||(mt={}));const Xe={"resizable-r":{bit:1,cursor:"ew-resize"},"resizable-rb":{bit:3,cursor:"se-resize"},"resizable-b":{bit:2,cursor:"s-resize"},"resizable-lb":{bit:6,cursor:"sw-resize"},"resizable-l":{bit:4,cursor:"w-resize"},"resizable-lt":{bit:12,cursor:"nw-resize"},"resizable-t":{bit:8,cursor:"n-resize"},"resizable-rt":{bit:9,cursor:"ne-resize"}},hn={w:4,h:8},Sg=e=>Object.assign(Object.assign({},e),{fitParent:e.fitParent||!1,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0});class Fn{constructor(t,n){var s,r;this.initialProps=t,this.$event=n,this.mouseX=0,this.mouseY=0,this.width=0,this.height=0,this.changeX=0,this.changeY=0,this.disableCalcMap=15,this.props=Sg(t),this.mouseMoveFunc=this.handleMove.bind(this),this.mouseUpFunc=this.handleUp.bind(this),this.minW=this.props.minWidth,this.minH=this.props.minHeight,this.maxW=(s=this.props.maxWidth)!==null&&s!==void 0?s:0,this.maxH=(r=this.props.maxHeight)!==null&&r!==void 0?r:0,this.parent={width:0,height:0},this.resizeState=0}set(t){this.$el=t,this.props.disableAttributes.forEach(n=>{switch(n){case"l":this.disableCalcMap&=-2;break;case"t":this.disableCalcMap&=-3;break;case"w":this.disableCalcMap&=-5;break;case"h":this.disableCalcMap&=-9}})}emitEvent(t,n){var s;if(!this.$event)return;const r=(s=this.activeResizer)===null||s===void 0?void 0:s.classList.contains("resizable-l");this.$event(Object.assign({eventName:t,width:this.width+this.changeX*(r?-1:1),height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},n))}static isTouchEvent(t){var n;return((n=t.touches)===null||n===void 0?void 0:n.length)>=0}handleMove(t){var n;if(!this.resizeState)return;let s,r;Fn.isTouchEvent(t)?(s=t.touches[0].clientY,r=t.touches[0].clientX):(s=t.clientY,r=t.clientX);let i=this.resizeState&Xe["resizable-r"].bit||this.resizeState&Xe["resizable-l"].bit;if((this.resizeState&Xe["resizable-t"].bit||this.resizeState&Xe["resizable-b"].bit)&&this.disableCalcMap&hn.h){let a=s-this.mouseY,l=this.changeY+a;const c=this.height+l;c<this.minH&&(l=-(this.height-this.minH)),this.maxH&&c>this.maxH&&(l=this.maxH-this.height),this.changeY=l,this.mouseY=s,this.activeResizer&&(this.activeResizer.style.bottom=`${-this.changeY}px`)}if(i&&this.disableCalcMap&hn.w){const a=(n=this.activeResizer)===null||n===void 0?void 0:n.classList.contains("resizable-l");let l=r-this.mouseX,c=this.changeX+l;const d=this.width+c*(a?-1:1);d<this.minW&&(c=-(this.width-this.minW)),this.maxW&&d>this.maxW&&(c=this.maxW-this.width),this.changeX=c,this.mouseX=r,this.activeResizer&&(a?this.activeResizer.style.left=`${this.changeX}px`:this.activeResizer.style.right=`${-this.changeX}px`)}this.emitEvent(mt.move)}handleDown(t){if(!t.defaultPrevented){t.preventDefault(),this.dropInitial();for(let n in Xe){const s=t.target;if(this.$el.contains(s)&&(s!=null&&s.classList.contains(n))){document.body.style.cursor=Xe[n].cursor,Fn.isTouchEvent(t)?this.setInitials(t.touches[0],s):(t.preventDefault&&t.preventDefault(),this.setInitials(t,s)),this.resizeState=Xe[n].bit;const r=mt.start;this.emitEvent(r);break}}this.bindMove()}}handleUp(t){if(t.preventDefault(),this.resizeState!==0){this.resizeState=0,document.body.style.cursor="";const n=mt.end;this.emitEvent(n)}this.dropInitial(),this.unbindMove()}setInitials({clientX:t,clientY:n},s){var r,i,o,a;const l=getComputedStyle(this.$el);if(this.$el.classList.add("active"),this.activeResizer=s,this.disableCalcMap&hn.w){this.mouseX=t,this.width=this.$el.clientWidth,this.parent.width=(i=(r=this.$el.parentElement)===null||r===void 0?void 0:r.clientWidth)!==null&&i!==void 0?i:0;const c=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight);this.minW=Math.max(c,this.initialProps.minWidth||0),this.initialProps.maxWidth&&(this.maxW=Math.max(this.width,this.initialProps.maxWidth))}if(this.disableCalcMap&hn.h){this.mouseY=n,this.height=this.$el.clientHeight,this.parent.height=(a=(o=this.$el.parentElement)===null||o===void 0?void 0:o.clientHeight)!==null&&a!==void 0?a:0;const c=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom);this.minH=Math.max(c,this.initialProps.minHeight||0),this.initialProps.maxHeight&&(this.maxH=Math.max(this.height,this.initialProps.maxHeight))}}dropInitial(){this.changeX=this.changeY=this.minW=this.minH,this.width=this.height=0,this.activeResizer&&this.activeResizer.removeAttribute("style"),this.$el.classList.remove("active"),this.activeResizer=void 0}bindMove(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.addEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)}unbindMove(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.removeEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)}}const _g=(e,t)=>{const n=[],s=e.canResize&&new Fn(e,r=>{var i;r.eventName===mt.end&&((i=e.onResize)===null||i===void 0||i.call(e,r))})||null;if(e.active&&e.canResize)for(let r in e.active)n.push(H("div",{onClick:i=>i.preventDefault(),onDblClick:i=>{var o;i.preventDefault(),(o=e.onDblClick)===null||o===void 0||o.call(e,i)},onMouseDown:i=>s==null?void 0:s.handleDown(i),onTouchStart:i=>s==null?void 0:s.handleDown(i),class:`resizable resizable-${e.active[r]}`}));return H("div",Object.assign({},e,{ref:r=>r&&(s==null?void 0:s.set(r))}),t,n)},Oa="columnclick",Um=({data:e,props:t,additionalData:n},s)=>{let r=(e==null?void 0:e.name)||"",i=t;if(e!=null&&e.columnTemplate&&(r=e.columnTemplate(H,e,n)),e!=null&&e.columnProperties){const a=e.columnProperties(e);a&&(i=ba(t,a))}const o=Object.assign(Object.assign({},i),{onMouseDown(a){Nt(a.currentTarget,Oa,{data:e,event:a})}});return H(_g,Object.assign({},o),H("div",{class:"header-content"},r),s)};/*!
65 * Built by Revolist OU ❤️
66 */function Cg({count:e,originItemSize:t,sizes:n}){const s=Math.max(0,e);let r=s*t;for(let i in n){const o=Number(i);!Number.isInteger(o)||o<0||o>
66=s||String(o)!==i||(r+=n[i]-t)}return r}const xg=e=>({set(t){switch(t){case"count":case"sizes":case"originItemSize":{e.setStore({realSize:Cg({count:e.store.get("count"),sizes:e.store.get("sizes"),originItemSize:e.store.get("originItemSize")})});break}}}}),Eg=e=>{let t=null,n=null;return{set(s,r){switch(s){case"sizes":{if(t&&t===r){t=null;return}n=null;break}case"trimmed":{const i=r;n||(n=e.store.get("sizes")),t=wg(n,i||{}),e.setSizes(t);break}}}}};function wg(e,t){const n={},s=Object.keys(e||{}).map(Number).sort((o,a)=>o-a),r=s[s.length-1];let i=0;for(let o=0;o<=r;o++)t[o]!==void 0&&(i++,e[o]!==void 0)||e[o]!==void 0&&(n[o-i]=e[o]);return n}function Ta(){return{indexes:[],count:0,trimmed:null,sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}}function $s(){return Object.assign(Object.assign({},Ta()),{realSize:0,originItemSize:0,renderOffset:0})}class Gm{constructor(t){this.type=t,this.store=Qn($s()),this.store.use(Eg({store:this.store,setSizes:this.setDimensionSize.bind(this)})),this.store.use(xg({store:this.store,setStore:this.setStore.bind(this)}))}getCurrentState(){const t=$s(),n=Object.keys(t);return Ht(n,(s,r)=>{const i=this.store.get(r);return s[r]=i,s},t)}dispose(){Q(this.store,$s())}setStore(t){Q(this.store,t)}drop(){Q(this.store,Object.assign(Object.assign({},Ta()),{renderOffset:0}))}setDimensionSize(t={}){const n=Mp(this.store.get("originItemSize"),t);Q(this.store,Object.assign(Object.assign({},n),{sizes:t}))}updateSizesPositionByIndexes(t,n=[]){const s=Object.assign({},this.store.get("sizes"));if(!Object.keys(s).length)return;const r={};n.forEach((o,a)=>{r[o]||(r[o]=[]),r[o].push(a)});const i={};t.forEach((o,a)=>{const l=r[o];if(l&&l.length>0){const c=l.shift();c!==void 0&&c!==a&&typeof s[c]=="number"&&(i[a]=s[c],delete s[c])}}),Object.keys(i).length&&this.setDimensionSize(Object.assign(Object.assign({},s),i))}}function Og(){return{range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null,nextFocus:null}}class Vm{constructor(){this.unsubscribe=[],this.store=Qn(Og()),this.store.on("set",(t,n)=>{t==="tempRange"&&!n&&this.store.set("tempRangeType",null)})}onChange(t,n){this.unsubscribe.push(this.store.onChange(t,n))}clearFocus(){Q(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,n){n?Q(this.store,{focus:t,range:Ks(t,n),edit:null,tempRange:null}):Q(this.store,{focus:t})}setNextFocus(t){Q(this.store,{nextFocus:t})}setTempArea(t){Q(this.store,{tempRange:t==null?void 0:t.area,tempRangeType:t==null?void 0:t.type,edit:null})}clearTemp(){Q(this.store,{tempRange:null})}setRangeArea(t){Q(this.store,{range:t,edit:null,tempRange:null})}setRange(t,n){const s=Ks(t,n);this.setRangeArea(s)}setLastCell(t){Q(this.store,{lastCell:t})}setEdit(t){const n=this.store.get("focus");if(n&&typeof t=="string"){Q(this.store,{edit:{x:n.x,y:n.y,val:t}});return}Q(this.store,{edit:null})}dispose(){this.unsubscribe.forEach(t=>t()),this.store.dispose()}}class at{constructor(t,n){this.revogrid=t,this.providers=n,this.h=H,this.subscriptions={}}addEventListener(t,n){this.revogrid.addEventListener(t,n),this.subscriptions[t]=n}watch(t,n,{immediate:s}={immediate:!1}){var r;const i=Object.getOwnPropertyDescriptor(this.revogrid,t)||Object.getOwnPropertyDescriptor(this.revogrid.constructor.prototype,t);Object.defineProperty(this.revogrid,t,{configurable:!0,enumerable:(r=i==null?void 0:i.enumerable)!==null&&r!==void 0?r:!0,set(o){var a;if(n(o)!==!1)return(a=i==null?void 0:i.set)===null||a===void 0?void 0:a.call(this,o)},get(){var o;return(o=i==null?void 0:i.get)===null||o===void 0?void 0:o.call(this)}}),s&&n(i==null?void 0:i.value)}removeEventListener(t){this.revogrid.removeEventListener(t,this.subscriptions[t]),delete this.subscriptions[t]}emit(t,n){const s=new CustomEvent(t,{detail:n,cancelable:!0});return this.revogrid.dispatchEvent(s),s}clearSubscriptions(){for(let t in this.subscriptions)this.removeEventListener(t)}destroy(){this.clearSubscriptions()}}function Tg(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function Rg(e){return typeof e=="function"?e:Cr}function xe(e,t){var n=$e(e)?Tg:da;return n(e,Rg(t))}const Ig=7;var Mn;(function(e){e.headerClickAutosize="headerClickAutoSize",e.autoSizeOnTextOverlap="autoSizeOnTextOverlap",e.autoSizeAll="autoSizeAll"})(Mn||(Mn={}));class Wm extends at{constructor(t,n,s){super(t,n),this.providers=n,this.config=s,this.autoSizeColumns=null,this.dataResolve=null,this.dataReject=null,this.letterBlockSize=(s==null?void 0:s.letterBlockSize)||Ig,s!=null&&s.preciseSize&&(this.precsizeCalculationArea=this.initiatePresizeElement(),t.appendChild(this.precsizeCalculationArea));const r=({detail:{source:o}})=>{this.setSource(o)},i=({detail:{columns:o}})=>{this.columnSet(o)};
66switch(this.addEventListener("beforecolumnsset",i),s==null?void 0:s.mode){case Mn.autoSizeOnTextOverlap:this.addEventListener("aftersourceset",r),this.addEventListener("afteredit",({detail:o})=>{this.afteredit(o)});break;case Mn.autoSizeAll:this.addEventListener("aftersourceset",r),this.addEventListener("afteredit",({detail:o})=>{this.afterEditAll(o)});break;default:this.addEventListener("headerdblclick",({detail:o})=>{const a=qp(o.column),l=this.getColumnSize(o.index,a);l&&this.providers.dimension.setCustomSizes(a,{[o.index]:l},!0)});break}}async setSource(t){let n=this.autoSizeColumns;if(this.dataReject&&(this.dataReject(),this.clearPromise()),!n){const s=new Promise((r,i)=>{this.dataResolve=r,this.dataReject=i});try{n=await s}catch{return}}xe(n,(s,r)=>{const i={};xe(n[r],o=>{o.size=i[o.index]=t.reduce((a,l)=>Math.max(a,this.getLength(l[o.prop])),this.getLength(o.name||""))}),this.providers.dimension.setCustomSizes(r,i,!0)})}getLength(t){var n;if(!t)return 0;try{const r=t.toString();return!((n=this.config)===null||n===void 0)&&n.preciseSize?(this.precsizeCalculationArea.innerText=r,this.precsizeCalculationArea.scrollWidth+30):r.length*this.letterBlockSize+30}catch{return 0}}afteredit(t){let n;this.isRangeEdit(t)?n=t.data:n={0:{[t.prop]:t.val}},xe(this.autoSizeColumns,(s,r)=>{const i={};xe(s,o=>{var a;const l=Ht(n,(c,d)=>typeof d[o.prop]>"u"?c:Math.max(c||0,this.getLength(d[o.prop])),void 0);l&&((a=o.size)!==null&&a!==void 0?a:0)<l&&(o.size=i[o.index]=l)}),this.providers.dimension.setCustomSizes(r,i,!0)})}afterEditAll(t){const n={};this.isRangeEdit(t)?xe(t.data,s=>xe(s,(r,i)=>n[i]=!0)):n[t.prop]=!0,xe(this.autoSizeColumns,(s,r)=>{const i={};xe(s,o=>{if(n[o.prop]){const a=this.getColumnSize(o.index,r);a&&(i[o.index]=a)}}),this.providers.dimension.setCustomSizes(r,i,!0)})}getColumnSize(t,n){var s,r;const i=(r=(s=this.autoSizeColumns)===null||s===void 0?void 0:s[n])===null||r===void 0?void 0:r[t];return i?Ht(this.providers.data.stores,(o,a)=>{const l=Ht(a.store.get("items"),(c,d,f)=>{const h=ft(a.store,f);return Math.max(c||0,this.getLength(h==null?void 0:h[i.prop]))},0);return Math.max(o,l)},i.size||0):0}columnSet(t){var n;for(let s of nt){const r=s,i=t[r];for(let o in i)(i[o].autoSize||!((n=this.config)===null||n===void 0)&&n.allColumns)&&(this.autoSizeColumns||(this.autoSizeColumns={}),this.autoSizeColumns[r]||(this.autoSizeColumns[r]={}),this.autoSizeColumns[r][o]=Object.assign(Object.assign({},i[o]),{index:parseInt(o,10)}))}this.dataResolve&&(this.dataResolve(this.autoSizeColumns||{}),this.clearPromise())}clearPromise(){this.dataResolve=null,this.dataReject=null}isRangeEdit(t){return!!t.data}initiatePresizeElement(){var t;const n={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll",display:"block"},s=document.createElement("div");for(let r in n)s.style[r]=(t=n[r])!==null&&t!==void 0?t:"";return s.classList.add("revo-test-container"),s}destroy(){var t;super.destroy(),(t=this.precsizeCalculationArea)===null||t===void 0||t.remove()}}class Km extends at{constructor(t,n){super(t,n),this.providers=n,this.stretchedColumn=null,this.scrollSize=gg(document);const s=({detail:{columns:r}})=>this.applyStretch(r);this.addEventListener("beforecolumnapplied",s)}setScroll({type:t,hasScroll:n}){var s;t==="rgRow"&&this.stretchedColumn&&((s=this.stretchedColumn)===null||s===void 0?void 0:s.initialSize)===this.stretchedColumn.size&&n&&(this.stretchedColumn.size-=this.scrollSize,this.apply(),this.dropChanges())}activateChanges(){const t=({detail:n})=>this.setScroll(n);this.addEventListener("scrollchange",t)}dropChanges(){this.stretchedColumn=null,this.removeEventListener("scrollchange")}apply(){if(!this.stretchedColumn)return;const t="rgCol",n=this.providers.dimension.stores[t].store.get("sizes");this.providers.dimension.setCustomSizes(t,Object.assign(Object.assign({},n),{[this.stretchedColumn.index]:this.stretchedColumn.size}),!0)}applyStretch(t){this.dropChanges();let n=this.revogrid.clientWidth-1;if(xe(t,(s,r)=>{const i=this.providers.dimension.stores[r].store.get("realSize");n-=i}),this.revogrid.rowHeaders){const s=this.providers.data.stores.rgRow.store.get("source").length,r=this.revogrid.rowHeaders,i=og(s,typeof r=="object"?r:void 0);i&&(n-=i)}if(n>0){const s=t.rgCol.length-1,r=t.rgCol[s],i=(r==null?void 0:r.size)||this.revogrid.colSize||0,o=n+i-1;r&&!r.autoSize&&i<o&&(this.stretchedColumn={initialSize:o,index:s,size:o},this.apply(),this.activateChanges())}}}function qm(e){return!!e.applyStretch}function Ag(e,t,n){return e===e&&(e=e<=n?e:n,e=e>=t?e:t),e}var Dg=4294967295;function Lg(e){return e?Ag(Jt(e),0,Dg):0}function zg(e,t,n,s){var r=e.length;for(n=Jt(n),n<0&&(n=-n>r?0:r+n),s=s===void 0||s>r?r:Jt(s),s<0&&(s+=r),s=n>s?0:Lg(s);n<s;)e[n++]=t;return e}function Pg(e,t,n,s){var r=e==null?0:e.length;return r?zg(e,t,n,s):[]}const kg={mime:"text/csv",fileKind:"csv",bom:!0,columnDelimiter:",",rowDelimiter:`\r
67`,encoding:""},jg="\r",Ng=`
68`,Fg='"',Mg="\uFEFF",Bg=new RegExp('"',"g");
68class Hg{constructor(t={}){this.options=Object.assign(Object.assign({},kg),t)}doExport({data:t,headers:n,props:s}){let r=this.options.bom?Mg:"";return(n==null?void 0:n.length)>0&&n.forEach(i=>{i.length&&(r+=this.prepareHeader(i,this.options.columnDelimiter),r+=this.options.rowDelimiter)}),t.forEach((i,o)=>{if(o>0&&(r+=this.options.rowDelimiter),ue(i)){r+=this.parseCell(eg(i),this.options.columnDelimiter);return}r+=s.map(a=>this.parseCell(i[a],this.options.columnDelimiter)).join(this.options.columnDelimiter)}),r}prepareHeader(t,n){let s="";const r=t.map(i=>this.parseCell(i,n,!0));return s+=r.join(n),s}parseCell(t,n,s=!1){let r=t;typeof t!="string"&&(r=JSON.stringify(t));const i=[jg,Fg,Ng,n];return typeof r>"u"?"":r!==""&&(s||i.some(o=>r.indexOf(o)>=0))?`"${r.replace(Bg,'""')}"`:r}}var ht;(function(e){e.csv="csv"})(ht||(ht={}));class Xm extends at{async exportString(t={},n=ht.csv){const s=await this.beforeexport();return s?this.formatter(n,t).doExport(s):null}async exportBlob(t={},n=ht.csv){return await this.getBlob(this.formatter(n,t))}async exportFile(t={},n=ht.csv){const s=this.formatter(n,t),r=window.URL||window.webkitURL,i=document.createElement("a"),{filename:o,fileKind:a}=s.options,l=`${o}.${a}`,c=await this.getBlob(s),d=c?r.createObjectURL(c):"";i.style.display="none",i.setAttribute("href",d),i.setAttribute("download",l),this.revogrid.appendChild(i),i.dispatchEvent(new MouseEvent("click")),this.revogrid.removeChild(i),await Ea(120),r.revokeObjectURL(d)}async getBlob(t){const n=`${t.options.mime};charset=${t.options.encoding}`;if(typeof Blob<"u"){const s=await this.beforeexport();return s?new Blob([t.doExport(s)],{type:n}):null}return null}async beforeexport(){let t=await this.getData();const n=this.emit("beforeexport",{data:t});return n.defaultPrevented?null:n.detail.data}
68async getData(){const t=await this.getSource(),n=[],s=[];nt.forEach((i,o)=>{s.push(this.getColPerSource(i).then(a=>n[o]=a))}),await Promise.all(s);const r={headers:[],props:[]};for(let i of n)i.headers.forEach((o,a)=>{r.headers[a]||(r.headers[a]=[]),r.headers[a].push(...o)}),r.props.push(...i.props);return Object.assign({data:t},r)}async getColPerSource(t){const n=await this.revogrid.getColumnStore(t),s=n.get("source"),r=n.get("items"),i=n.get("groupingDepth"),o=n.get("groups"),a=[],l=[];r.forEach(d=>{const f=s[d].prop;a.push(s[d].name||""),l.push(f)});const c=this.getGroupHeaders(i,o,r);return c.push(a),{headers:c,props:l}}getGroupHeaders(t,n,s){const r=[],i=Pg(new Array(s.length),"");for(let o=0;o<t;o++){const a=[...i];if(r.push(a),!n[o])continue;n[o].forEach(c=>{const d=c.indexes[0];typeof d=="number"&&(a[d]=c.name)})}return r}async getSource(){const t=[],n=[];return Er.forEach(s=>{const r=[];t.push(r);const i=this.revogrid.getVisibleSource(s).then(o=>r.push(...o));n.push(i)}),await Promise.all(n),t.reduce((s,r)=>(s.push(...r),s),[])}formatter(t,n={}){switch(t){case ht.csv:return new Hg(n);default:throw new Error("Unknown format")}}}const Et=(e,t)=>{if(typeof e>"u"||e===null&&!t)return!0;typeof e!="string"&&(e=JSON.stringify(e));const n=t==null?void 0:t.toString().toLocaleLowerCase();return(n==null?void 0:n.length)===0?!0:e.toLocaleLowerCase()===n},Ys=(e,t)=>!Et(e,t);Ys.extra="input";Et.extra="input";const Ir=function(e,t){let n;return typeof e=="number"&&typeof t<"u"&&t!==null?(n=parseFloat(t==null?void 0:t.toString()),e>n):!1};Ir.extra="input";const Ra=function(e,t){return Et(e,t)||Ir(e,t)};Ra.extra="input";const Ar=function(e,t){let n;return typeof e=="number"&&typeof t<"u"&&t!==null?(n=parseFloat(t.toString()),e<n):!1};Ar.extra="input";const Ia=function(e,t){return Et(e,t)||Ar(e,t)};Ia.extra="input";const Aa=e=>!(e===""||e===null||e===void 0),Ug=e=>!Aa(e),Da=(e,t)=>e?t?(typeof e!="string"&&(e=JSON.stringify(e)),typeof t!="string"&&(t=JSON.stringify(t)),e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())===0):!0:!1;Da.extra="input";const Dr=(e,t)=>t?e?t?(typeof e!="string"&&(e=JSON.stringify(e)),e.toLocaleLowerCase().indexOf(t.toString().toLowerCase())>-1):!0:!1:!0,La=(e,t)=>!Dr(e,t);La.extra="input";Dr.extra="input";const Gg={none:()=>!0,empty:Ug,notEmpty:Aa,eq:Et,notEq:Ys,begins:Da,contains:Dr,notContains:La,eqN:Et,neqN:Ys,gt:Ir,gte:Ra,lt:Ar,lte:Ia},Vg={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]},Wg={none:"None",empty:"Not set",notEmpty:"Set",eq:"Equal",notEq:"Not equal",begins:"Begins with",contains:"Contains",notContains:"Does not contain",eqN:"=",neqN:"!=",gt:">",gte:">=",lt:"<",lte:"<="},Qs="filter",Kg="filterconfigchanged",qg="revogr-filter-panel";class Jm extends at{constructor(t,n,s){var r;super(t,n),this.revogrid=t,this.config=s,this.filterCollection={},this.multiFilterItems={},this.filterByType=Object.assign({},Vg),this.filterNameIndexByType=Object.assign({},Wg),this.filterFunctionsIndexedByType=Object.assign({},Gg),this.filterProp=wa,s&&this.initConfig(s);const i=this.revogrid.registerVNode.filter(a=>typeof a=="object"&&a.$tag$!==qg);this.revogrid.registerVNode=[...i,H("revogr-filter-panel",{filterNames:this.filterNameIndexByType,filterEntities:this.filterFunctionsIndexedByType,filterCaptions:(r=s==null?void 0:s.localization)===null||r===void 0?void 0:r.captions,onFilterChange:a=>this.onFilterChange(a.detail),onResetChange:a=>this.onFilterReset(a.detail),disableDynamicFiltering:s==null?void 0:s.disableDynamicFiltering,closeOnOutsideClick:s==null?void 0:s.closeFilterPanelOnOutsideClick,ref:a=>this.pop=a}," ",this.extraContent())];const o=async()=>{const a=Object.keys(this.filterCollection);a.length>0&&a.forEach((l,c)=>{this.multiFilterItems[l]||(this.multiFilterItems[l]=[{id:c,type:this.filterCollection[l].type,value:this.filterCollection[l].value,relation:"and"}])}),Object.keys(this.multiFilterItems).length!==0&&(await Ea(),await this.runFiltering(this.multiFilterItems))};this.addEventListener("headerclick",a=>
68this.headerclick(a)),this.addEventListener(Kg,({detail:a})=>{if(!a||typeof a=="object"&&(!a.multiFilterItems||!Object.keys(a.multiFilterItems).length)){this.clearFiltering();return}typeof a=="object"&&this.initConfig(a),o()}),this.addEventListener("aftersourceset",o),this.addEventListener("filter",({detail:a})=>this.onFilterChange(a))}beforeshow(t){}extraContent(){return null}initConfig(t){if(t.multiFilterItems?this.multiFilterItems=Object.assign({},t.multiFilterItems):this.multiFilterItems={},t.customFilters)for(let s in t.customFilters){const r=t.customFilters[s];this.filterByType[r.columnFilterType]||(this.filterByType[r.columnFilterType]=[]),this.filterByType[r.columnFilterType].push(s),this.filterFunctionsIndexedByType[s]=r.func,this.filterNameIndexByType[s]=r.name}t.filterProp&&(this.filterProp=t.filterProp);const n=t.include;if(n){const s={};for(let r in this.filterByType){const i=this.filterByType[r].filter(o=>n.indexOf(o)>-1);i.length&&(s[r]=i)}Object.keys(s).length>0&&(this.filterByType=s)}if(t.collection){const s={};for(const r of Object.keys(t.collection)){const i=t.collection[r];this.filterFunctionsIndexedByType[i.type]&&(s[r]=i)}this.filterCollection=s}else this.filterCollection={};if(t.localization&&t.localization.filterNames){const s=t.localization.filterNames;Object.keys(s).forEach(r=>{this.filterNameIndexByType[r]!=null&&(this.filterNameIndexByType[r]=s[r])})}}async headerclick(t){var n,s;const r=(n=t.detail.originalEvent)===null||n===void 0?void 0:n.target,i=bg(r);if(!i||(t.preventDefault(),!this.pop))return;const o=t.detail.prop,a=await this.pop.getChanges();if((a==null?void 0:a.prop)===o){await this.pop.show();return}const l=(i instanceof HTMLElement?i:r).getBoundingClientRect(),c=Object.assign(Object.assign(Object.assign({},t.detail),this.filterCollection[o]),{x:l.x,y:l.y+l.height,anchorY:l.y,autoCorrect:!0,filterTypes:this.getColumnFilter(t.detail.filter),filterItems:this.multiFilterItems,extraContent:this.extraHyperContent,extraBottomContent:this.extraBottomHyperContent});(s=this.beforeshow)===null||s===void 0||s.call(this,c),this.pop.show(c)}getColumnFilter(t){let n="string";if(!t)return{[n]:this.filterByType[n]};if(this.isValidType(t))n=t;else if(typeof t=="object"&&t.length)return t.reduce((s,r)=>(this.isValidType(r)&&(s[r]=this.filterByType[r]),s),{});return{[n]:this.filterByType[n]}}isValidType(t){return!!(typeof t=="string"&&this.filterByType[t])}async onFilterChange(t){this.multiFilterItems=t,this.runFiltering(this.multiFilterItems)}onFilterReset(t){delete this.multiFilterItems[t??""],this.onFilterChange(this.multiFilterItems)}async doFiltering(t,n,s,r){const i=[],o={};s.forEach(d=>{const f=Object.assign({},d),h=r[f.prop];o[f.prop]=f,f[this.filterProp]&&!h&&(delete f[this.filterProp],i.push(f)),!f[this.filterProp]&&h&&(i.push(f),f[this.filterProp]=!0)});const a=this.getRowFilter(n,r,o),{defaultPrevented:l,detail:c}=this.emit("beforefiltertrimmed",{collection:t,itemsToFilter:a,source:n,filterItems:r});l||(this.providers.data.setTrimmed({[Qs]:c.itemsToFilter}),this.providers.column.updateColumns(i),this.emit("afterfilterapply",{multiFilterItems:r,source:n,collection:t}))}async clearFiltering(){this.multiFilterItems={},await this.runFiltering(this.multiFilterItems)}async runFiltering(t){const n={},s=Object.keys(t);for(const l of s)if(t[l].length>0){const c=t[l][0];n[l]={type:c.type,value:c.value}}this.filterCollection=n;const r=this.providers.column.getColumns(),i=this.providers.data.stores.rgRow.store.get("source"),{defaultPrevented:o,detail:a}=this.emit("beforefilterapply",{collection:this.filterCollection,source:i,columns:r,filterItems:this.multiFilterItems});o||this.doFiltering(a.collection,a.source,a.columns,a.filterItems)}getRowFilter(t,n,s){const r=Object.keys(n),i={};for(let o=0;o<t.length;o++)for(const a of r)this.shouldTrimRow(n[a],a,s[a],t[o])&&(i[o]=!0);return i}shouldTrimRow(t,n,s,r={}){let i=0,o=[];for(const[a,l]of t.entries()){const c=this.filterFunctionsIndexedByType[l.type],d=s?Kp(r,s):r[n];if(l.relation==="or"){if(o=[],c(d,l.value))continue;i++}else if(o.push(!c(d,l.value)),Xg(a,t)){if(Jg(o)){o=[];continue}i+=o.length,o=[]}}return i===t.length}}function Xg(e,t){const n=t[e+1];return!n||!!n.relation&&n.relation!=="and"}function Jg(e){return!e.includes(!0)}function ys(e){for(const t of Object.keys(e||{}))if(e!=null&&e[t])return!0;return!1}function wt(e,t){return String(e)===String(t)}function Yg(e,t){const n=[],s=r=>{e!=null&&e[r]&&!n.some(i=>wt(i,r))&&n.push(r)};
68return t==null||t.forEach(s),Object.keys(e||{}).forEach(s),n}function Qg(e,t,n){const s=Yg(e,n);if(s.length<=1)return;const r=s.findIndex(i=>wt(i,t));return r>=0?r+1:void 0}function Zg(e={},t){const n=[],s=r=>{const i=e[r];typeof i=="function"&&!n.some(([o])=>wt(o,r))&&n.push([r,i])};return t==null||t.forEach(s),Object.keys(e).forEach(s),n}function ev(e,t,n){const s=n?Yt(e,n):e==null?void 0:e[t];return typeof s=="number"?s:s==null?void 0:s.toString().toLowerCase()}function Ni(e){return e===""||e===null||e===void 0}function za(e,t){if(e===t)return 0;const n=Ni(e),s=Ni(t);return n||s?n&&s?0:n?-1:1:e>t?1:-1}function tv(e,t,n,s,r){const i=n.map(([o])=>{const a=[],l=r[o];for(const c of e)a[c]=ev(t[c],o,l);return{order:s[o],values:a}});return e.sort((o,a)=>{for(const{order:l,values:c}of i){const d=za(c[o],c[a]);if(d)return l==="desc"?-d:d}return 0})}function nv(e,t,n,s,r){return!t.some(i=>ue(n[i]))&&!!s&&!!r&&e.every(([i])=>{const o=s[i],a=r[i];return!!o&&!(a!=null&&a.cellCompare)})}function sv(e,t,n){return t.some(s=>{const r=n[s];return ue(r)&&!e.some(([i])=>wt(r[Nn],i))})}function rv(e,t,n={},s,r,i){const o=Object.keys(n).length>0,a=Zg(n,i);return a.length===0?o?e:[...new Array(e.length).keys()]:sv(a,e,t)?e:nv(a,e,t,s,r)?tv(e,t,a,s,r):e.sort((l,c)=>{const d=t[l],f=t[c];for(const[h,g]of a){if(ue(d)&&!wt(d[Nn],h)||ue(f)&&!wt(f[Nn],h))return l-c;const p=g==null?void 0:g(h,d,f);if(p)return p}return 0})}function bs(e,t,n){const s=this.column?Yt(t,this.column):t==null?void 0:t[e],r=this.column?Yt(n,this.column):n==null?void 0:n[e],i=typeof s=="number"?s:s==null?void 0:s.toString().toLowerCase(),o=typeof r=="number"?r:r==null?void 0:r.toString().toLowerCase();return za(i,o)}function iv(e){return(t,n,s)=>-1*e(t,n,s)}function ov(e){switch(e){case void 0:return"asc";case"asc":return"desc";case"desc":return}}function Ss(e,t){var n;const s=((n=e==null?void 0:e.cellCompare)===null||n===void 0?void 0:n.bind({order:t}))||(bs==null?void 0:bs.bind({column:e,order:t}));if(t=="asc")return s;if(t=="desc")return iv(s)}function av(e,t){return e.filter(n=>!ue(t[n]))}function lv(e,t,n){if(n.length===e.length)return n;let s=0;return e.map(r=>ue(t[r])?r:n[s++])}class cv extends at{constructor(t,n,s){super(t,n),this.revogrid=t,this.sortingPromise=null,this.postponeSort=Ko((r,i,o,a,l)=>this.runSorting(r,i,o,a,l),50),this.applySortingConfig(s),this.addEventListener("sortingconfigchanged",({detail
68:r})=>{s=r,this.applySortingConfig(r),this.startSorting(this.sorting,this.sortingFunc,this.sortingColumns,this.sortingOrder)}),this.addEventListener("beforeheaderrender",({detail:r})=>{var i;const{data:o}=r;o.sortable&&(r.data=Object.assign(Object.assign({},o),{order:(i=this.sorting)===null||i===void 0?void 0:i[o.prop],sortIndex:Qg(this.sorting,o.prop,this.sortingOrder)}))}),this.addEventListener("beforeanysource",({detail:{type:r}})=>{if(ys(this.sorting)&&this.sortingFunc){if(this.emit("beforesourcesortingapply",{type:r,sorting:this.sorting}).defaultPrevented)return;this.startSorting(this.sorting,this.sortingFunc,this.sortingColumns,this.sortingOrder)}}),this.addEventListener("aftercolumnsset",({detail:{order:r}})=>{if(s)return;const i=this.providers.column.getColumns(),o={},a={},l=[],c={};for(let d in r)if(r[d]){const f=Yp(i,d),h=Ss(f,r[d]);c[d]=r[d],o[d]=h,a[d]=f,l.push(d)}this.sorting=ys(c)?c:void 0,this.sortingFunc=this.sorting?o:void 0,this.sortingColumns=this.sorting?a:void 0,this.sortingOrder=this.sorting?l:void 0}),this.addEventListener("beforeheaderclick",r=>{var i,o,a,l;r.defaultPrevented||!((o=(i=r.detail)===null||i===void 0?void 0:i.column)===null||o===void 0)&&o.sortable&&this.headerclick(r.detail.column,(l=(a=r.detail)===null||a===void 0?void 0:a.originalEvent)===null||l===void 0?void 0:l.shiftKey)})}createSortingState(t){var n;return{sorting:t?Object.assign({},this.sorting):{},sortingFunc:t?Object.assign({},this.sortingFunc):{},sortingColumns:t?Object.assign({},this.sortingColumns):{},sortingOrder:t?[...(n=this.sortingOrder)!==null&&n!==void 0?n:[]]:[]}}setSortingState({sorting:t,sortingFunc:n,sortingColumns:s,sortingOrder:r}){this.sorting=ys(t)?t:void 0,this.sortingFunc=this.sorting?n:void 0,this.sortingColumns=this.sorting?s:void 0,this.sortingOrder=this.sorting?r:void 0}setColumnSorting(t,n,s,r,i){t.sorting[n]=s,t.sortingFunc[n]=r,t.sortingColumns[n]=i,t.sortingOrder.some(o=>String(o)===String(n))||t.sortingOrder.push(n)}clearColumnSorting(t,n){delete t.sorting[n],delete t.sortingFunc[n],delete t.sortingColumns[n];const s=t.sortingOrder.findIndex(r=>String(r)===String(n));s>=0&&t.sortingOrder.splice(s,1)}applySortingConfig(t){var n;if(!t)return;const s=this.createSortingState(t.additive);(n=t.columns)===null||n===void 0||n.forEach(r=>{if(r.order){this.setColumnSorting(s,r.prop,r.order,Ss(r,r.order),r);return}this.clearColumnSorting(s,r.prop)}),this.setSortingState(s)}startSorting(t,n,s,r,i){if(this.sortingPromise||this.revogrid.jobsBeforeRender.push(new Promise(o=>{this.sortingPromise=o})),typeof s=="boolean"){this.postponeSort(t,n,void 0,void 0,s);return}this.postponeSort(t,n,s,r,i)}headerclick(t,n){var s;const r=t.prop;let i=ov((s=this.sorting)===null||s===void 0?void 0:s[r]);const o=this.emit("beforesorting",{column:t,order:i,additive:n});if(o.defaultPrevented)return;i=o.detail.order;const a=this.emit("beforesortingapply",{column:o.detail.column,order:i,additive:n});if(a.defaultPrevented)return;const l=Ss(a.detail.column,a.detail.order);this.applyHeaderSorting(a.detail.column,a.detail.additive,i,l),this.startSorting(this.sorting,this.sortingFunc,this.sortingColumns,this.sortingOrder)}applyHeaderSorting(t,n,s,r){if(!n){this.setSortingState(s?{sorting:{[t.prop]:s},sortingFunc:{[t.prop]:r},sortingColumns:{[t.prop]:t},sortingOrder:[t.prop]}:this.createSortingState());return}const i=this.createSortingState(!0);s?this.setColumnSorting(i,t.prop,s,r,t):this.clearColumnSorting(i,t.prop),this.setSortingState(i)}runSorting(t,n,s,r,i){var o,a;if(typeof s=="boolean"){this.sort(t,n,void 0,void 0,void 0,s),(o=this.sortingPromise)===null||o===void 0||o.call(this),this.sortingPromise=null;return}this.sort(t,n,s,r,void 0,i),(a=this.sortingPromise)===null||a===void 0||a.call(this),this.sortingPromise=null}sort(t,n,s,r,i=Er,o=!1){let a,l,c=i,d=o;if(Array.isArray(s)?(c=s,d=typeof r=="boolean"?r:!1):(a=s,l=Array.isArray(r)?r:void 0),Object.keys(t||{}).length)for(let f of c){const h=this.providers.data.stores[f],g=h.store.get("source"),p=h.store.get("proxyItems"),$=av(p,g),y=rv([...$],g,n,t,a,l),I=lv(p,g,y),T=h.store.get("items");h.setData({proxyItems:I});const b=h.store.get("items");d||this.providers.dimension.updateSizesPositionByNewDataIndexes(f,b,T)}else for(let f of c){const h=this.providers.data.stores[f],g=h.store.get("source"),p=h.store.get("proxyItems"),$=Array.from({length:g.length},(y,I)=>I);this.providers.dimension.updateSizesPositionByNewDataIndexes(f,$,p),h.setData({proxyItems:$})}nt.forEach(f=>{this.providers.column.dataSources[f].refresh()}
68),this.emit("aftersortingapply")}}function uv(e,t){const n=t[e],s=n[jn],r={};let i=e+1;const o=t.length;for(;i<o;){const a=t[i];if(ue(a)){const l=a[jn];if(!l.length||!l.startsWith(s+","))break;a[Qt]=!1}r[i++]=!0}return n[Qt]=!1,{trimmed:r}}function dv(e,t,n){const s=n[e],r=t[s],i=ya(r[Or]),o={};if(!i)return{trimmed:o};const a=[];r[Qt]=!0;let l=s+1;const c=t.length;let d=0;for(;l<c;){const h=t[l],g=ue(h);if(g)if(ng(i,r,h))d||(d=h[xt]);else break;(!d||g&&d===h[xt])&&(o[l]=!1,a.push(l)),l++}const f={trimmed:o};if(a.length){const h=[...n];h.splice(e+1,0,...a),f.items=h}return f}const bn="grouping";function fv(e,t,n){const s=Number.parseInt(e,10),r=t[s];return n?n[typeof r=="number"?r:s]:r}function hv(e,t,n){const s={};for(let r in e){if(r===bn)continue;const i=e[r],o={};for(let a in i){if(!i[a])continue;const l=fv(a,t,n);typeof l=="number"&&(o[l]=!0)}s[r]=o}return s}function pv(e,t,n){var s;const r=(s=e[n])===null||s===void 0?void 0:s[xt];if(r==null)return!1;for(let i=n+1;i<e.length;i++){const o=e[i];if(ue(o)){if(o[xt]<=r)break;continue}if(!t[i])return!0}return!1}function _s(e,t){const n=Object.assign({},t);return e.forEach((s,r)=>{ue(s)&&(pv(e,n,r)?delete n[r]:n[r]=!0)}),n}var gv=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]]);return n};class Ym extends at{getStore(t=ms){return this.providers.data.stores[t].store}constructor(t,n){super(t,n)}onFocus(t){ue(t.detail.model)&&t.preventDefault()}onExpand({virtualIndex:t}){const{source:n}=ct(this.getStore().get("source"),this.getStore().get("proxyItems"));let s=this.getStore().get("trimmed")[bn],r=Op(this.getStore(),t);if(va(n[r])){const{trimmed:o}=uv(r,n);s=Object.assign(Object.assign({},s),o),this.revogrid.clearFocus()}else{const{trimmed:o,items:a}=dv(t,n,this.getStore().get("items"));s=Object.assign(Object.assign({},s),o),a&&Ap(this.getStore(),a)}this.getStore().set("source",n),this.revogrid.addTrimmed(s,bn)}setColumnGrouping(t){return t!=null&&t.length?(t[0][qs]=!0,!0):!1}setColumns({columns:t}){for(let n of nt)if(this.setColumnGrouping(t[n]))break}onDrag(t){const{from:n,to:s}=t.detail,r=s-n>=0,{source:i}=ct(this.getStore().get("source"),this.getStore().get("proxyItems")),o=this.getStore().get("items");let a=r?n:s;const l=r?s:n;for(;a<l;a++){const c=i[o[a]];if(ue(c)){t.preventDefault();return}}}beforeTrimmedApply(t,n){if(n===Qs){const s=this.getStore().get("source"),r=_s(s,t);Object.keys(t).forEach(i=>delete t[Number.parseInt(i,10)]),Object.assign(t,r)}}beforeFilterTrimmed(t){const n=this.getStore().get("source");return _s(n,t)}isSortingRunning(){const t=this.providers.plugins.getByClass(cv);return!!(t!=null&&t.sortingPromise)}getCurrentExpandedOptions(){var t;const n=(t=this.options)!==null&&t!==void 0?t:{};return gv(n,["expandedAll","prevExpanded"])}doSourceUpdate(t){var n;const s=this.getStore(),{source:r,prevExpanded:i,oldNewIndexes:o}=ct(s.get("source"),s.get("proxyItems"),!0),a=Object.assign({prevExpanded:i},t),{sourceWithGroups:l,depth:c,trimmed:d,oldNewIndexMap:f}=ki(r,((n=this.options)===null||n===void 0?void 0:n.props)||[],a),h=t==null?void 0:t.groupLabelTemplate;this.providers.data.setData(l,ms,this.revogrid.disableVirtualY,{depth:c,customRenderer:h},!0),this.updateTrimmed(d,o??{},f,l)}onDataSet(t){var n,s;let r={};if(((n=this.options)===null||n===void 0?void 0:n.preserveGroupingOnUpdate)!==!1){let{prevExpanded:f}=ct(this.getStore().get("source"),this.getStore().get("proxyItems"),!0);r=f}const i=t.source.filter(f=>!ue(f)),o=Object.assign(Object.assign({},this.revogrid.grouping||{}),{prevExpanded:r}),{sourceWithGroups:a,depth:l,trimmed:c,oldNewIndexMap:d}=ki(i,((s=this.options)===null||s===void 0?void 0:s.props)||[],o);t.source=a,this.providers.data.setGrouping({depth:l}),this.updateTrimmed(c,d,void 0,a)}setGrouping(t){var n,s;if(this.clearSubscriptions(),this.options=t,!(!((s=(n=this.options)===null||n===void 0?void 0:n.props)===null||s===void 0)&&s.length)){this.clearGrouping();return}const r=this.getStore(),{source:i}=ct(r.get("source"),r.get("proxyItems"));i.length&&this.doSourceUpdate(Object.assign({},t));for(let o of nt)if(this.setColumnGrouping(this.providers.column.getColumns(o))){this.providers.column.refreshByType(o);break}
68this.addEventListener("beforesourceset",({detail:o})=>{var a,l,c;!((l=(a=this.options)===null||a===void 0?void 0:a.props)===null||l===void 0)&&l.length&&(!((c=o==null?void 0:o.source)===null||c===void 0)&&c.length)&&(this.isSortingRunning()||this.onDataSet(o))}),this.addEventListener("beforecolumnsset",({detail:o})=>{this.setColumns(o)}),this.addEventListener("beforetrimmed",({detail:{trimmed:o,trimmedType:a}})=>this.beforeTrimmedApply(o,a)),this.addEventListener("beforefiltertrimmed",({detail:o})=>{o.itemsToFilter=this.beforeFilterTrimmed(o.itemsToFilter)}),this.addEventListener("aftersortingapply",()=>{var o,a;!((a=(o=this.options)===null||o===void 0?void 0:o.props)===null||a===void 0)&&a.length&&this.doSourceUpdate(this.getCurrentExpandedOptions())}),this.addEventListener("beforecellfocus",o=>this.onFocus(o)),this.addEventListener("roworderchanged",o=>this.onDrag(o)),this.addEventListener(Qp,o=>this.onExpand(o.detail))}clearGrouping(){nt.forEach(s=>{const r=this.providers.column.getColumns(s);let i=!1;r.forEach(o=>{$a(o)&&(delete o[qs],i=!0)}),i&&this.providers.column.refreshByType(s)});const{source:t,oldNewIndexes:n}=ct(this.getStore().get("source"),this.getStore().get("proxyItems"),!0);this.providers.data.setData(t,ms,this.revogrid.disableVirtualY,void 0,!0),this.updateTrimmed(void 0,void 0,n,t)}updateTrimmed(t={},n={},s,r=this.getStore().get("source")){const i=hv(this.getStore().get("trimmed"),n,s);for(let o in i)o===Qs&&(i[o]=_s(r,i[o])),this.revogrid.addTrimmed(i[o],o);this.revogrid.addTrimmed(Object.assign({},t),bn)}}const Fi="column-drag-start";class vv{constructor(){this.offset=0}renderAutoscroll(t,n){n&&(this.autoscrollEl=document.createElement("div"),this.autoscrollEl.classList.add("drag-auto-scroll-y"),n.appendChild(this.autoscrollEl))}autoscroll(t,n,s="translateX"){if(!this.autoscrollEl)return;const i=Math.min(t+10,n-3);this.autoscrollEl.style.transform=`${s}(${i}px)`,this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})}start(t,{dataEl:n,gridRect:s,scrollEl:r,gridEl:i},o="left"){i.classList.add(Fi);const a=r.getBoundingClientRect();a&&(this.offset=a[o]-s[o]),this.renderAutoscroll(t,n)}stop(t){var n;t.classList.remove(Fi),this.element&&(this.element.hidden=!0),this.offset=0,(n=this.autoscrollEl)===null||n===void 0||n.remove(),this.autoscrollEl=void 0}showHandler(t,n,s="translateX"){this.element&&(this.offset&&(t=Math.max(t,this.offset)),t=Math.min(t,n),this.element.style.transform=`${s}(${t}px)`,this.element.hidden=!1)}render(){const t=this.element=document.createElement("div");return t.classList.add("drag-position-y"),t.hidden=!0,t}}const mv=Oa,$v="columndragmousemove",yv="columndragend",bv="beforec
68olumndragend",Sv="columndragstart";class Qm extends at{constructor(t,n){super(t,n),this.moveFunc=Ko(s=>this.doMove(s),5),this.preventHeaderClickAfterDrag=s=>{this.preventNextHeaderClick&&(this.preventNextHeaderClick=!1,s.preventDefault())},this.staticDragData=null,this.dragData=null,this.columnDragMoved=!1,this.preventNextHeaderClick=!1,this.localSubscriptions={},this.orderUi=new vv,t.appendChild(this.orderUi.render()),t.classList.add("column-draggable"),this.localSubscriptions.mouseleave={target:document,callback:s=>this.onMouseOut(s)},this.localSubscriptions.mouseup={target:document,callback:s=>this.onMouseUp(s)},this.localSubscriptions.mousemove={target:document,callback:s=>this.move(s)},this.addEventListener(mv,({detail:s})=>this.dragStart(s)),this.revogrid.addEventListener("beforeheaderclick",this.preventHeaderClickAfterDrag,{capture:!0})}dragStart({event:t,data:n}){if(t.defaultPrevented)return;this.preventNextHeaderClick=!1;const{defaultPrevented:s}=Nt(this.revogrid,Sv,n);if(s)return;this.clearOrder();const{mouseleave:r,mouseup:i,mousemove:o}=this.localSubscriptions;r.target.addEventListener("mouseleave",r.callback),i.target.addEventListener("mouseup",i.callback);const a=t.target.closest("revogr-header"),l=t.target.closest("revogr-viewport-scroll");if(!a||!l||xr(n)||n.providers.type==="rowHeaders")return;const c=this.getDimension(n.pin||"rgCol"),d=this.revogrid.getBoundingClientRect(),f=a.getBoundingClientRect(),h=yn(c,Cs(t.x,d.left,f.left-d.left)+(c.renderOffset||0));this.staticDragData={startPos:t.x,startItem:h,pin:n.pin,dataEl:a,scrollEl:l,gridEl:this.revogrid,cols:c},this.dragData=this.getData(this.staticDragData,[]),o.target.addEventListener("mousemove",o.callback),this.orderUi.start(t,Object.assign(Object.assign({},this.dragData),this.staticDragData))}doMove(t){if(!this.staticDragData)return;const n=this.dragData=this.getData(this.staticDragData,[]);if(!n)return;const s=this.staticDragData.startPos;if(Math.abs(s-t.x)>10){const r=Cs(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset),i=yn(this.staticDragData.cols,r+(this.staticDragData.cols.renderOffset||0));if(this.orderUi.autoscroll(r,n.elRect.width),i.itemIndex>=this.staticDragData.cols.count)return;this.orderUi.showHandler(_v(i,this.staticDragData.startItem,this.staticDragData.cols.renderOffset||0,n.scrollOffset),n.gridRect.width)}}move(t){this.staticDragData&&Math.abs(this.staticDragData.startPos-t.x)>10&&(this.columnDragMoved=!0),Nt(this.revogrid,$v,t),this.moveFunc(t)}onMouseOut(t){this.clearOrder()}onMouseUp(t){const n=this.columnDragMoved;if(this.dragData&&this.staticDragData){let s=Cs(t.x,this.dragData.gridRect.left,this.dragData.scrollOffset);s<0&&(s=0);const r=yn(this.staticDragData.cols,s+(this.staticDragData.cols.renderOffset||0)),i=this.providers.column.stores[this.dragData.type].store,o=i.get("source"),a=[...i.get("items")],{defaultPrevented:l}=Nt(this.revogrid,bv,Object.assign(Object.assign({},this.staticDragData),{startPosition:this.staticDragData.startItem,newPosition:r,newItem:o[a[this.staticDragData.startItem.itemIndex]]}));if(!l){const c=[...a],d=a.splice(this.staticDragData.startItem.itemIndex,1);a.splice(r.itemIndex,0,...d),i.set("items",a),this.providers.dimension.updateSizesPositionByNewDataIndexes(this.dragData.type,a,c)}Nt(this.revogrid,yv,this.getData(this.staticDragData,a,o))}n&&(this.preventNextHeaderClick=!!t.target.closest("revogr-header")),this.clearOrder()}clearLocalSubscriptions(){xe(this.localSubscriptions,({target:t,callback:n},s)=>t.removeEventListener(s,n))}clearOrder(){this.staticDragData=null,this.dragData=null,this.columnDragMoved=!1,this.clearLocalSubscriptions(),this.orderUi.stop(this.revogrid)}clearSubscriptions(){super.clearSubscriptions(),this.clearLocalSubscriptions(),this.revogrid.removeEventListener("beforeheaderclick",this.preventHeaderClickAfterDrag,{capture:!0})}getData({gridEl:t,dataEl:n,pin:s},r,i=[]){const o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),l=a.left-o.left;return{columns:r.map(c=>i[c]).filter(Boolean),elRect:a,gridRect:o,order:r,type:s||"rgCol",scrollOffset:l}}getDimension(t){return this.providers.dimension.stores[t].getCurrentState()}}function Cs(e,t,n){return e-t-n}function _v(e,t,n,s){return(t.itemIndex>e.itemIndex?e.start:e.end)-n+s}const xs="routerLink",Mi="navManager",Cv="router",xv="aria",Ft=Symbol(),Bi={default:Ft}
68,Hi=e=>(e==null?void 0:e.split(" "))||[],Ev=(e,t,n=[])=>{var s;return[...Array.from(((s=e.value)==null?void 0:s.classList)||[]),...n].filter((r,i,o)=>!t.has(r)&&o.indexOf(r)===i)},wv=(e,t,n=[],s,r)=>{const i=Zs((o,{attrs:a,slots:l,emit:c})=>{var p,$;o[s];const d=U(),f=new Set(Hi(a.class)),h=($=(p=Ba())==null?void 0:p.appContext)!=null&&$.provides[Mi]?Ha(Mi):void 0,g=y=>{const{routerLink:I}=o;if(I!==Ft)if(h!==void 0){y.preventDefault();let T={event:y};for(const b in o){const E=o[b];o.hasOwnProperty(b)&&b.startsWith(Cv)&&E!==Ft&&(T[b]=E)}h.navigate(T)}else console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.")};return()=>{o[s],Hi(a.class).forEach(b=>{f.add(b)});const y=o.onClick,I=b=>{y!==void 0&&y(b),b.defaultPrevented||g(b)};let T={ref:d,class:Ev(d,f),onClick:I};for(const b in o){const E=o[b];(o.hasOwnProperty(b)&&E!==Ft||b.startsWith(xv))&&(T[b]=E)}return o[xs]!==Ft&&(T={...T,href:o[xs]}),Ua(e,T,l.default&&l.default())}});return typeof i!="function"&&(i.name=e,i.props={[xs]:Bi},n.forEach(o=>{i.props[o]=Bi})),i},Ov=wv("revo-grid",void 0,["rowHeaders","frameSize","rowSize","colSize","range","readonly","resize","noHorizontalScrollTransfer","canFocus","useClipboard","columns","source","pinnedTopSource","pinnedBottomSource","rowDefinitions","editors","applyOnClose","plugins","columnTypes","theme","rowClass","autoSizeColumn","filter","sorting","focusTemplate","canMoveColumns","trimmedRows","exporting","grouping","stretch","additionalData","disableVirtualX","disableVirtualY","hideAttribution","jobsBeforeRender","registerVNode","accessible","rtl","canDrag","contentsizechanged","beforeedit","beforerangeedit","afteredit","beforeautofill","beforerange","afterfocus","roworderchanged","beforesorting","beforesourcesortingapply","beforesortingapply","rowdragstart","headerclick","beforecellfocus","beforefocuslost","beforesourceset","beforeanysource","aftersourceset","afteranysource","beforecolumnsgather","beforecolumnsset","beforecolumnapplied","aftercolumnsset","beforefilterapply","beforefiltertrimmed","beforetrimmed","aftertrimmed","viewportscroll","beforeexport","beforeeditstart","aftercolumnresize","beforerowdefinition","filterconfigchanged","sortingconfigchanged","rowheaderschanged","beforegridrender","aftergridrender","aftergridinit","additionaldatachanged","afterthemechanged","created"]);function Tv(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}const Ui=ds==null?void 0:ds(),Rv=Ma(async()=>(Tv(Ui)&&await Ui,Ov)),Iv=Xa({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...$l({filterKeys:["title"]}),...ml({hideNoData:!0,returnObject:!0}),...Ja(hl({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VCombobox"),Pa=Ga()({name:"VCombobox",props:Iv(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var At;let{emit:n,slots:s}=t;const{t:r}=Va(),i=U(),o=Je(!1),a=Je(!0),l=Je(!1),c=U(),d=U(),f=Je(-1);let h=!1;const{items:g,transformIn:p,transformOut:$}=Rl(e),{textColorClasses:y,textColorStyles:I}=wl(()=>{var v;return(v=i.value)==null?void 0:v.color}),{InputIcon:T}=dl(e),b=jr(e,"modelValue",[],v=>p(Qa(v)),v=>{const D=$(v);return e.multiple?D:D[0]??null}),E=fl(e),m=sl(()=>e.closableChips&&!E.isReadonly.value&&!E.isDisabled.value),_=le(()=>!!(e.chips||s.chip)),C=le(()=>_.value||!!s.selection),A=Je(!e.multiple&&!C.value?((At=b.value[0])==null?void 0:At.title)??"":""),P=Je(null),B=le({get:()=>A.value,set:async v=>{var D;if(A.value=v??"",v===null||v===""&&!e.multiple&&!C.value?b.value=[]:!e.multiple&&!C.value&&(b.value=[zt(e,v)],Lt(()=>{var N;return(N=d.value)==null?void 0:N.scrollToIndex(0)})),v&&e.multiple&&((D=e.delimiters)!=null&&D.length)){const N=X(v);N.length>1&&(ce(N),A.value="")}v||(f.value=-1),a.value=!v}}),F=le(()=>typeof e.counterValue=="function"?e.counterValue(b.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?b.value.length:B.value.length),{filteredItems:W,getMatches:K}=pl(e,g,()=>P.value??(e.alwaysFilter||!a.value?B.value:"")),re=le(()=>e.hideSelected&&P.value===null?W.value.filter(v=>!b.value.some(D=>D.value===v.value)):W.value),Ne=le(()=>e.hideNoData&&!re.value.length||E.isReadonly.value||E.isDisabled.value),Fe=jr(e,"menu"),q=le({get:()=>Fe.value,set:v=>{var D;Fe.value&&!v&&((D=c.value)!=null&&D.ΨopenChildren.size)||v&&Ne.value||(Fe.value=v)}}
68),{menuId:It,ariaExpanded:be,ariaControls:Zn}=gl(e,q);ut(A,v=>{h?Lt(()=>h=!1):o.value&&!q.value&&(q.value=!0),n("update:search",v)}),ut(b,v=>{var D;!e.multiple&&!C.value&&(A.value=((D=v[0])==null?void 0:D.title)??"")});const es=le(()=>b.value.map(v=>v.value)),Se=le(()=>re.value.find(v=>v.type==="item"&&!v.props.disabled)),We=le(()=>{var D;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&B.value===((D=Se.value)==null?void 0:D.title))&&re.value.length>0&&!a.value&&!l.value}),ie=U(),rn=U(),on=U(),ts=Cl(ie,i),ns=xl(q,()=>{var v;return(v=c.value)==null?void 0:v.contentEl},()=>{var v;return(v=i.value)==null?void 0:v.controlRef}),{onTabKeydown:ss}=vl({groups:[{type:"element",contentRef:rn},{type:"list",contentRef:ie,displayItemsCount:()=>re.value.length},{type:"element",contentRef:on}],onLeave:()=>{var v;q.value=!1,(v=i.value)==null||v.focus()}});function x(v){h=!0,Lt(()=>h=!1),e.openOnClear&&(q.value=!0)}function S(){Ne.value||(q.value=!0)}function O(v){Ne.value||(o.value&&(v.preventDefault(),v.stopPropagation()),q.value=!q.value)}function w(v){var D,N;v.key==="Tab"&&ss(v),(D=ie.value)!=null&&D.$el.contains(v.target)&&(Nr(v)||v.key==="Backspace")&&((N=i.value)==null||N.focus())}function j(v){var Z,de,ge,_e;if(qa(v)||E.isReadonly.value)return;const D=(Z=i.value)==null?void 0:Z.selectionStart,N=b.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(v.key)&&v.preventDefault(),["Enter","ArrowDown"].includes(v.key)&&(q.value=!0),["Escape"].includes(v.key)&&(q.value=!1),We.value&&["Enter","Tab"].includes(v.key)&&Se.value&&!b.value.some(M=>{let{value:ve}=M;return ve===Se.value.value})&&R(Se.value),v.key==="ArrowDown"&&We.value&&((de=ie.value)==null||de.focus("next")),v.key==="Enter"&&B.value&&(R(zt(e,B.value),!0,!0),C.value&&(A.value="")),["Backspace","Delete"].includes(v.key)){if(!e.multiple&&C.value&&b.value.length>0&&!B.value)return R(b.value[0],!1);if(~f.value){v.preventDefault();const M=f.value;R(b.value[f.value],!1),f.value=M>=N-1?N-2:M}else v.key==="Backspace"&&!B.value&&(f.value=N-1);return}if(e.multiple)if(v.key==="ArrowLeft"){if(f.value<0&&D&&D>0)return;const M=f.value>-1?f.value-1:N-1;b.value[M]?f.value=M:(f.value=-1,(ge=i.value)==null||ge.setSelectionRange(B.value.length,B.value.length))}else if(v.key==="ArrowRight"){if(f.value<0)return;const M=f.value+1;b.value[M]?f.value=M:(f.value=-1,(_e=i.value)==null||_e.setSelectionRange(0,0))}else~f.value&&Nr(v)&&(f.value=-1)}function ae(v){var Z;const D=((Z=v==null?void 0:v.clipboardData)==null?void 0:Z.getData("Text"))??"",N=X(D);N.length>1&&e.multiple&&(v.preventDefault(),ce(N))}function pe(){var v;e.eager&&((v=d.value)==null||v.calculateVisibleItems())}function te(){var v;o.value&&((v=i.value)==null||v.focus()),a.value=!0,P.value=null}function R(v){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!(!v||v.props.disabled))if(e.multiple){const Z=b.value.findIndex(ge=>(e.valueComparator||Ur)(ge.value,v.value)),de=D??!~Z;if(~Z){const ge=de?[...b.value,v]:[...b.value];ge.splice(Z,1),b.value=ge}else de&&(b.value=[...b.value,v]);e.clearOnSelect&&(B.value="")}else{const Z=D!==!1;b.value=Z?[v]:[],(!a.value||e.alwaysFilter)&&A.value&&(P.value=A.value),A.value=Z&&!C.value?v.title:"",Lt(()=>{q.value=N,a.value=!0})}}function X(v){const N=[`
69`,...e.delimiters??[]].map(Ya).join("|");return v.split(new RegExp(`(?:${N})+`))}async function ce(v){for(let D of v)D=D.trim(),D&&(R(zt(e,D)),await Lt())}function Me(v){o.value=!0,setTimeout(()=>{l.value=!0})}function Ke(v){var D;if(l.value=!1,!((D=i.value)!=null&&D.$el.contains(v.relatedTarget))){if(ns(v))return;o.value=!1}}function an(v){var N;const D=(N=c.value)==null?void 0:N.contentEl;D!=null&&D.contains(v.relatedTarget)&&(o.value=!0)}return ut(o,(v,D)=>{if(!(v||v===D)&&(f.value=-1,q.value=!1,B.value)){if(e.multiple){R(zt(e,B.value));return}if(!C.value)return;b.value.some(N=>{let{title:Z}=N;return Z===B.value})?A.value="":R(zt(e,B.value))}}),ut(q,v=>{if(!e.hideSelected&&v&&b.value.length&&a.value){const D=re.value.findIndex(N=>b.value.some(Z=>(e.valueComparator||Ur)(Z.value,N.value)));Wa&&window.requestAnimationFrame(()=>{var N;D>=0&&((N=d.value)==null||N.scrollToIndex(D))})}v&&(P.value=null)}),ut(g,(v,D)=>{q.value||o.value&&!D.length&&v.length&&(q.value=!0)}),Ka(()=>{const v=!!(!e.hideNoData||re.value.length||s["prepend-item"]||s["append-item"]||s["no-data"]),D=b.value.length>0,N=Sn.filterProps(e),Z={search:B,filteredItems:W.value};return k(Sn,Ie({ref:i},N,{modelValue:B.value,"onUpdate:modelValue":de=>B.value=de,focused:o.value,"onUpdate:focused":de=>o.value=de,validationValue:b.externalValue,counterValue:F.value,dirty:D,class:["v-combobox",{"v-combobox--active-menu":q.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!C.value,"v-combobox--selecting-index":f.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:E.isReadonly.value,placeholder:D?void 0:e.placeholder,"onClick:clear":x,"onMousedown:control":S,onKeydown:j,onPaste:ae,onBlur:an,"aria-expanded":be.value,"aria-controls":Zn.value}),{...s,default:de=>{var _e;let{id:ge}=de;return ne(Mt,null,[k(Il,Ie({id:It.value,ref:c,modelValue:q.value,"onUpdate:modelValue":M=>q.value=M,activator:"parent",disabled:Ne.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:pe,onAfterLeave:te},e.menuProps,{contentClass:["v-combobox__content",(_e=e.menuProps)==null?void 0:_e.contentClass]}),{default:()=>[k(yl,{onFocusin:Me,onKeydown:w},{default:()=>[s["menu-header"]&&ne("header",{ref:rn},[s["menu-header"](Z)]),v&&k(Al,Ie({key:"combobox-list",ref:ie,filterable:!0,selected:es.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:M=>M.preventDefault(),selectable:!!re.value.length,onFocusout:Ke,tabindex:"-1","aria-live":"polite","aria-labelledby":`${ge.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},ts,e.listProps),{default:()=>{var M,ve,Dt;return[(M=s["prepend-item"])==null?void 0:M.call(s),!re.value.length&&!e.hideNoData&&(((ve=s["no-data"])==null?void 0:ve.call(s))??k(Hr,{key:"no-data",title:r(e.noDataText)},null)),k(bl,{ref:d,renderless:!0,items:re.value,itemKey:"value"},{default:ln=>{var zr,Pr,kr;let{item:J,index:Ce,itemRef:me}
69=ln;const Lr=Ie(J.props,{ref:me,key:J.value,active:We.value&&J===Se.value?!0:void 0,onClick:()=>R(J,null),"aria-posinset":Ce+1,"aria-setsize":re.value.length});return J.type==="divider"?((zr=s.divider)==null?void 0:zr.call(s,{props:J.raw,index:Ce}))??k(Dl,Ie(J.props,{key:`divider-${Ce}`}),null):J.type==="subheader"?((Pr=s.subheader)==null?void 0:Pr.call(s,{props:J.raw,index:Ce}))??k(Ll,Ie(J.props,{key:`subheader-${Ce}`}),null):((kr=s.item)==null?void 0:kr.call(s,{item:J,index:Ce,props:Lr}))??k(Hr,Ie(Lr,{role:"option"}),{prepend:cn=>{let{isSelected:ka}=cn;return ne(Mt,null,[e.multiple&&!e.hideSelected?k(_l,{key:J.value,modelValue:ka,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:ja=>ja.preventDefault()},null):void 0,J.props.prependAvatar&&k(zl,{image:J.props.prependAvatar},null),J.props.prependIcon&&k(Br,{icon:J.props.prependIcon},null)])},title:()=>{var cn;return a.value?J.title:Sl("v-combobox",J.title,(cn=K(J))==null?void 0:cn.title)}})}}),(Dt=s["append-item"])==null?void 0:Dt.call(s)]}}),s["menu-footer"]&&ne("footer",{ref:on},[s["menu-footer"](Z)])]})]}),b.value.map((M,ve)=>{function Dt(me){me.stopPropagation(),me.preventDefault(),R(M,!1)}const ln=Ie(Mr.filterProps(M.props),{"onClick:close":Dt,onKeydown(me){me.key!=="Enter"&&me.key!==" "||(me.preventDefault(),me.stopPropagation(),Dt(me))},onMousedown(me){me.preventDefault(),me.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),J=_.value?!!s.chip:!!s.selection,Ce=J?el(_.value?s.chip({item:M,index:ve,props:ln}):s.selection({item:M,index:ve})):void 0;if(!(J&&!Ce))return ne("div",{key:M.value,class:nl(["v-combobox__selection",ve===f.value&&["v-combobox__selection--selected",y.value]]),style:tl(ve===f.value?I.value:{})},[_.value?s.chip?k(Tl,{key:"chip-defaults",defaults:{VChip:{closable:m.value,size:"small",text:M.title}}},{default:()=>[Ce]}):k(Mr,Ie({key:"chip",closable:m.value,size:"small",text:M.title,disabled:M.props.disabled},ln),null):Ce??ne("span",{class:"v-combobox__selection-text"},[M.title,e.multiple&&ve<b.value.length-1&&ne("span",{class:"v-combobox__selection-comma"},[ye(",")])])])})])},"append-inner":function(){var M,ve;for(var de=arguments.length,ge=new Array(de),_e=0;_e<de;_e++)ge[_e]=arguments[_e];return ne(Mt,null,[(M=s["append-inner"])==null?void 0:M.call(s,...ge),(!e.hideNoData||e.items.length)&&e.menuIcon?k(Br,{class:"v-combobox__menu-icon",color:(ve=i.value)==null?void 0:ve.fieldIconColor,icon:e.menuIcon,onMousedown:O,onClick:Za,"aria-hidden":!0,tabindex:"-1"},null):void 0,e.appendInnerIcon&&k(T,{key:"append-icon",name:"appendInner",color:ge[0].iconColor.value},null)])}})}),Ol({isFocused:o,isPristine:a,menu:q,search:B,selectionIndex:f,filteredItems:W,select:R},i)}}),Av={class:"fvd-ctx aq-muted"},Dv={class:"aq-mono"},Lv={class:"aq-mono"},zv={key:0},Pv=["innerHTML"],kv={key:5,class:"aq-muted"},jv=Zs({__name:"FieldValueDialog",props:{modelValue:{type:Boolean},type:{},fieldTitle:{},attrKey:{},unitSku:{},units:{},dataJson:{},value:{},canWrite:{type:Boolean}},emits:["update:modelValue","save"],setup(e,{emit:t}){const n=e,s=t,r=le({get:()=>n.modelValue,set:E=>s("update:modelValue",E)}),i={chart:"Кривая H-Q",json:"JSON",tags:"Теги",bool:"Булево",html:"HTML"},o=le(()=>i[n.type]??n.type),a=le(()=>n.type==="chart"?760:n.type==="html"||n.type==="json"?640:520),l=U(""),c=U(null),d=U(""),f=U(""),h=U([]),g=U(!1),p=U("");function $(E){if(!E||!E.trim())return"";try{return JSON.stringify(JSON.parse(E),null,2)}catch{return E}}function y(E,m){if(E&&E.trim())try{const _=JSON.parse(E);if(Array.isArray(_))return _.map(C=>String(C)).filter(C=>C!=="")}catch{}return(m||"").split(",").map(_=>_.trim()).filter(Boolean)}function I(E,m){const _=(E||m||"").trim().toLowerCase();return _==="true"||_==="1"}function T(){f.value="",n.type==="chart"?l.value=n.dataJson||"":n.type==="json"?d.value=$(n.dataJson):n.type==="tags"?h.value=y(n.dataJson,n.value):n.type==="bool"?g.value=I(n.dataJson,n.value):n.type==="html"&&(p.value=n.value||"")}ut(()=>n.modelValue,E=>{E&&T()});function b(){if(n.canWrite){if(n.type==="chart"){const E=c.value?c.value.currentJson():l.value;if(E.trim())try{JSON.parse(E)}catch{f.value="Кривая: невалидный JSON";return}s("save",{kind:"dataJson",dataJson:E.trim()||"null"})}else if(n.type==="json"){let E;try{E=JSON.parse(d.value||"null")}catch{f.value="Невалидный JSON";return}s("save",{kind:"dataJson",dataJson:JSON.stringify(E)})}else n.type==="tags"?s("save",{kind:"dataJson",dataJson:JSON.stringify(h.value)}):n.type==="bool"?s("save",{kind:"dataJson",dataJson:g.value?"true":"false"}):n.type==="html"&&s("save",{kind:"value",value:p.value});r.value=!1}}return(E,m)=>{const _=et("GlassChip"),C=et("GlassButton");return ee(),Ee(Vi,{modelValue:r.value,"onUpdate:modelValue":m[6]||(m[6]=A=>r.value=A),"max-width":a.value,scrollable:""},{default:Y(()=>[k(Xi,null,{default:Y(()=>[k(Wi,{class:"aq-dialog-title"},{default:Y(()=>[ye(Be(e.fieldTitle||e.attrKey)+" ",1),k(_,{size:"sm",variant:"brand"},{default:Y(()=>[ye(Be(o.value),1)]),_:1})]),_:1}),k(Ki,null,{default:Y(()=>[ne("p",Av,[ne("span",Dv,Be(e.unitSku),1),m[7]||(m[7]=ye(" · ",-1)),ne("span",Lv,Be(e.attrKey),1),e.units?(ee(),De("span",zv," · "+Be(e.units),1)):Ze("",!0)]),e.type==="chart"?(ee(),Ee(ul,{key:0,ref_key:"curveRef",ref:c,modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=A=>l.value=A)},null,8,["modelValue"])):e.type==="json"?(ee(),Ee(Fr,{key:1,modelValue:d.value,"onUpdate:modelValue":m[1]||(m[1]=A=>d.value=A),label:"data_json (JSON)","error-messages":f.value,rows:"10","auto-grow":"",class:"fvd-mono",spellcheck:"false"},null,8,["modelValue","error-messages"])):e.type==="tags"?(ee(),De(Mt,{key:2},[k(Pa,{modelValue:h.value,"onUpdate:modelValue":m[2]||(m[2]=A=>h.value=A),label:"Теги",multiple:"",chips:"","closable-chips":"",clearable:"","hide-details":""},null,8,["modelValue"]),m[8]||(m[8]=ne("p",{class:"fvd-hint aq-muted"},"Enter добавляет тег. Хранится как JSON-массив строк.",-1))],64)):e.type==="bool"?(ee(),Ee(Pl,{key:3,modelValue:g.value,"onUpdate:modelValue":m[3]||(m[3]=A=>g.value=A),label:g.value?"Да (true)":"Нет (false)",color:"primary","hide-details":""},null,8,["modelValue","label"])):e.type==="html"?(ee(),De(Mt,{key:4},[k(Fr,{modelValue:p.value,"onUpdate:modelValue":m[4]||(m[4]=A=>p.value=A),label:"HTML",rows:"8","auto-grow":"",class:"fvd-mono",spellcheck:"false"},null,8,["modelValue"]),m[9]||(m[9]=ne("div",{class:"fvd-preview-head aq-muted"},"Предпросмотр",-1)),ne("div",{class:"fvd-preview",innerHTML:p.value},null,8,Pv)],64)):(ee(),De("p",kv,"Тип «"+Be(e.type)+"» не поддерживается для редактирования здесь.",1))]),_:1}),k(qi,{class:"aq-dialog-actions"},{default:Y(()=>[k(C,{variant:"ghost",onClick:m[5]||(m[5]=A=>r.value=!1)},{default:Y(()=>[...m[10]||(m[10]=[ye("Отмена",-1)])]),_:1}),e.canWrite?(ee(),Ee(C,{key:0,variant:"primary","icon-name":"check",onClick:b},{default:Y(()=>
69[...m[11]||(m[11]=[ye("Применить",-1)])]),_:1})):Ze("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue","max-width"])}}}),Nv=Gi(jv,[["__scopeId","data-v-47428523"]]),Fv={class:"fields-page"},Mv={key:0},Bv={class:"aq-muted aq-mono"},Hv={key:0,class:"grid-warn aq-muted"},Uv={key:1,style:{padding:"18px"}},Gv={key:3,class:"grid-wrap"},Vv={class:"aq-form-grid"},Wv=Zs({__name:"FieldsView",setup(e){const t=al(),n=rl(),s=le(()=>n.can("catalog.write")),r=["number","string","text","html","bool","tags","json","chart"],i=new Set(["number","string","text"]),o=new Set(["chart","json","tags","bool","html"]),a=new Set(["title","units","prefix","suffix","group","sortOrder"]),l=new Map,c=Je([]),d=U(!1),f=U(!1),h=U(!1),g=U(new Set),p=U(new Set),$=U(new Set),y=U(new Set),I=le(()=>new Set([...g.value,...p.value,...y.value]).size+$.value.size);function T(x){return(x||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim().slice(0,60)}function b(x,S){if(x==="chart")try{const O=JSON.parse(S||"{}"),w=Array.isArray(O.hq)?O.hq.length:Array.isArray(O.points)?O.points.length:0;return w?`кривая H-Q · ${w} точек`:"кривая (пусто)"}catch{return"кривая"}return x==="json"?S&&S!=="null"&&S!=="{}"?`JSON (${S.length} симв.)`:"{}":""}function E(x){if(x.type==="chart"||x.type==="json")return b(x.type,x.dataJson);if(x.type==="tags")try{const S=JSON.parse(x.dataJson||"[]");return Array.isArray(S)?S.join(", "):""}catch{return""}return x.type==="bool"?(x.dataJson||"").trim()==="true"?"true":"false":x.value}function m(x){return{attrKey:x.attrKey,type:x.type,title:"",units:"",prefix:"",suffix:"",group:"",searchable:!1,sortOrder:0}}async function _(){d.value=!0;try{const[x,S]=await Promise.all([qe.fieldDefs.list(),qe.fields.all({limit:5e3})]);l.clear();for(const O of x.defs)l.set(`${O.attrKey}|${O.type}`,{...O});c.value=S.cells.map(O=>{const w=l.get(`${O.attrKey}|${O.type}`),j=O.type==="chart"||O.type==="json"?b(O.type,O.dataJson):O.value||"";return{key:`${O.unitSku}|${O.attrKey}|${O.type}`,unitSku:O.unitSku,unitTitle:O.unitTitle,attrKey:O.attrKey,title:(w==null?void 0:w.title)||"",type:O.type,value:j,dataJson:O.dataJson||"",units:(w==null?void 0:w.units)||"",prefix:(w==null?void 0:w.prefix)||"",suffix:(w==null?void 0:w.suffix)||"",group:(w==null?void 0:w.group)||"",sortOrder:String((w==null?void 0:w.sortOrder)??0),searchable:!!(w!=null&&w.searchable),comment:O.comment||"",del:""}}),h.value=S.truncated,g.value=new Set,p.value=new Set,$.value=new Set,y.value=new Set}catch(x){t.fromError(x)}finally{d.value=!1}}function C(x){var S;for(const O of x){const w=O||{},j=((S=w.model)==null?void 0:S.type)??w.type;if(typeof j=="string")return j}return""}const A=(...x)=>o.has(C(x));function P(x,S){var w;const O=((w=S.model)==null?void 0:w[S.prop])??S.value??"";return x("span",{class:"aq-shared",title:"Общее для всех юнитов с этим ключом — правка меняет определение"},String(O??""))}function B(x,S){const O=S.model||{},w=O.type,j=O.value??S.value??"";if(!o.has(w))return String(j??"");const ae=w==="html"?T(String(j)):String(j||b(w,O.dataJson)),pe=[x("span",{class:"aq-vcell__txt"},ae)];return s.value&&pe.push(x("button",{class:"aq-vcell__btn",onClick:te=>{var R;(R=te==null?void 0:te.stopPropagation)==null||R.call(te),Zn(O)}},"ред.")),x("div",{class:"aq-vcell"},pe)}function F(x,S){const O=S.model||{};return x("input",{type:"checkbox",class:"aq-delbox",checked:y.value.has(O.key),disabled:!s.value,onChange:w=>{var j;return q(O.key,!!((j=w.target)!=null&&j.checked))}})}function W(x,S){const O=S.model||{};return x("input",{type:"checkbox",class:"aq-checkbox",title:"Искомый — участвует в числовом подборе (общее для всех юнитов с этим ключом)",checked:!!O.searchable,disabled:!s.value,onChange:w=>{var j;return re(O,!!((j=w.target)!=null&&j.checked))}})}function K(x,S,O){const w=`${x.attrKey}|${x.type}`,j={...l.get(w)||m(x)};j[S]=O,l.set(w,j);const ae=new Set($.value);ae.add(w),$.value=ae}function re(x,S){x.searchable=S,K(x,"searchable",S)}const Ne=[{prop:"unitSku",name:"SKU",readonly:!0,size:110,pin:"colPinStart"},{prop:"unitTitle",name:"Юнит",readonly:!0,size:170},{prop:"attrKey",name:"Ключ",readonly:!0,size:120},{prop:"title",name:"Название",size:150,cellTemplate:P},{prop:"type",name:"Тип",readonly:!0,size:80},{prop:"value",name:"Значение",size:210,readonly:A,cellTemplate:B},{prop:"units",name:"Ед.",size:70,cellTemplate:P},{prop:"prefix",name:"Преф.",size:64,cellTemplate:P},{prop:"suffix",name:"Суф.",size:64,cellTemplate:P},{prop:"group",name:"Группа",size:110,cellTemplate:P},{prop:"sortOrder",name:"Пор.",size:60,cellTemplate:P},{prop:"searchable",name:"Иск.",readonly:!0,size:52,cellTemplate:W},{prop:"comment",name:"Коммент",size:160},{prop:"del",name:"Уд.",readonly:!0,size:50,cellTemplate:F}];function Fe(x){const S=(x==null?void 0:x.detail)??x,O=[];if(S!=null&&S.data&&typeof S.data=="object")for(const[te,R]of Object.entries(S.data))for(const[X,ce]of Object.entries(R??{}))O.push([Number(te),X,ce]);else typeof(S==null?void 0:S.rowIndex)=="number"&&S.prop&&O.push([S.rowIndex,S.prop,S.val]);if(!O.length)return;const w=new Set(g.value),j=new Set($.value);let ae=!1,pe=!1;for(const[te,R,X]of O){const ce=c.value[te];if(ce)if(a.has(R)){ce[R]=X;const Me=`${ce.attrKey}|${ce.type}`,Ke={...l.get(Me)||m(ce)};Ke[R]=X,l.set(Me,Ke),j.add(Me),pe=!0}else ce[R]=X,w.add(ce.key),ae=!0}ae&&(g.value=w),pe&&($.value=j)}function q(x,S){const O=new Set(y.value);S?O.add(x):O.delete(x),y.value=O}const It=U(!1),be=U(null);function Zn(x){be.value=x,It.value=!0}function es(x){const S=be.value;if(!S)return;const O=c.value.findIndex(j=>j.key===S.key);if(O<0)return;const w=c.value[O];if(x.kind==="value"){w.value=x.value??"";const j=new Set(g.value);j.add(w.key),g.value=j}else{w.dataJson=x.dataJson??"",w.value=E(w);const j=new Set(p.value);j.add(w.key),p.value=j}c.value=c.value.slice()}const Se=U(!1),We=U(!1),ie=U({sku:"",attrKey:"",type:"number",value:""}),rn=le(()=>[...new Set(c.value.map(x=>x.attrKey))].sort());function on(){ie.value={sku:"",attrKey:"",type:"number",value:""},Se.value=!0}async function ts(){const x=ie.value;if(!x.sku.trim()||!x.attrKey.trim()){t.error("SKU и ключ обязательны");return}let S="null",O="";const w=x.type;w==="number"?O=String(x.value??"").trim():w==="string"||w==="text"||w==="html"?S=JSON.stringify(x.value??""):w==="bool"?S="false":w==="tags"?S="[]":w==="json"?S="{}":w==="chart"&&(S='{"hq":[],"eff":[]}'),We.value=!0;try{await qe.fields.upsert({unitSku:x.sku.trim(),attrKey:x.attrKey.trim(),type:w,dataJson:S,numValue:O,comment:""}),t.success("Значение добавлено"),Se.value=!1,await _()}catch(j){t.fromError(j)}finally{We.value=!1}}
69function ns(x){return i.has(x.type)||x.type==="html"?String(x.value??""):""}async function ss(){const x=new Map(c.value.map(R=>[R.key,R])),S=[...y.value],O=[...p.value].filter(R=>!y.value.has(R)),w=[...g.value].filter(R=>!y.value.has(R)&&!p.value.has(R)),j=[...$.value],ae=w.map(R=>x.get(R)).filter(R=>!!R).map(R=>({unitSku:R.unitSku,attrKey:R.attrKey,type:R.type,value:ns(R),comment:String(R.comment??"")})),pe=O.map(R=>x.get(R)).filter(R=>!!R),te=S.map(R=>x.get(R)).filter(R=>!!R).map(R=>({unitSku:R.unitSku,attrKey:R.attrKey,type:R.type}));if(!ae.length&&!pe.length&&!te.length&&!j.length){t.error("Нет изменений");return}f.value=!0;try{ae.length&&await qe.fields.bulkSave(ae);for(const R of pe)await qe.fields.upsert({unitSku:R.unitSku,attrKey:R.attrKey,type:R.type,dataJson:R.dataJson||"null",numValue:"",comment:String(R.comment??"")});for(const R of j){const X=l.get(R);X&&await qe.fieldDefs.upsert({attrKey:X.attrKey||"",type:X.type||"",title:X.title||"",units:X.units||"",prefix:X.prefix||"",suffix:X.suffix||"",group:X.group||"",searchable:!!X.searchable,sortOrder:Number(X.sortOrder)||0})}te.length&&await qe.fields.bulkDelete(te),t.success(`Значений: ${ae.length+pe.length}, определений: ${j.length}, удалено: ${te.length}`),await _()}catch(R){t.fromError(R)}finally{f.value=!1}}return il(_),(x,S)=>{var R,X,ce,Me,Ke,an,At;const O=et("GlassButton"),w=et("PageHeader"),j=et("SkeletonBlock"),ae=et("EmptyState"),pe=et("GlassCard"),te=cl("reveal");return ee(),De("div",Fv,[k(w,{title:"Поля",desc:"Единая таблица характеристик по всем юнитам. Значения - инлайн или в редакторе; метаданные (название/ед./преф./суф.) общие для всех юнитов с этим ключом."},{actions:Y(()=>[k(O,{"icon-name":"refresh",loading:d.value,onClick:_},{default:Y(()=>[...S[7]||(S[7]=[ye("Обновить",-1)])]),_:1},8,["loading"]),s.value?(ee(),Ee(O,{key:0,"icon-name":"plus",onClick:on},{default:Y(()=>[...S[8]||(S[8]=[ye("Значение",-1)])]),_:1})):Ze("",!0),s.value?(ee(),Ee(O,{key:1,variant:"primary","icon-name":"check",loading:f.value,onClick:ss},{default:Y(()=>[S[9]||(S[9]=ye(" Сохранить",-1)),I.value?(ee(),De("span",Mv," ("+Be(I.value)+")",1)):Ze("",!0)]),_:1},8,["loading"])):Ze("",!0)]),_:1}),ol((ee(),Ee(pe,{pad:!1},{head:Y(()=>[S[10]||(S[10]=ne("h3",null,"Значения характеристик",-1)),ne("span",Bv,Be(c.value.length),1)]),default:Y(()=>[h.value?(ee(),De("div",Hv,"Показаны первые 5000 значений (список усечён).")):Ze("",!0),d.value?(ee(),De("div",Uv,[k(j,{height:"320px",radius:"10px"})])):c.value.length?(ee(),De("div",Gv,[k(ll(Rv),{theme:"darkCompact",source:c.value,columns:Ne,readonly:!s.value,range:"",onAfteredit:Fe},null,8,["source","readonly"])])):(ee(),Ee(ae,{key:2,icon:"fields",title:"Значений пока нет",hint:"Добавьте значение кнопкой «Значение» или импортируйте каталог."}))]),_:1})),[[te]]),k(Nv,{modelValue:It.value,"onUpdate:modelValue":S[0]||(S[0]=v=>It.value=v),type:((R=be.value)==null?void 0:R.type)||"","field-title":((X=be.value)==null?void 0:X.title)||"","attr-key":((ce=be.value)==null?void 0:ce.attrKey)||"","unit-sku":((Me=be.value)==null?void 0:Me.unitSku)||"",units:((Ke=be.value)==null?void 0:Ke.units)||"","data-json":((an=be.value)==null?void 0:an.dataJson)||"",value:((At=be.value)==null?void 0:At.value)||"","can-write":s.value,onSave:es},null,8,["modelValue","type","field-title","attr-key","unit-sku","units","data-json","value","can-write"]),k(Vi,{modelValue:Se.value,"onUpdate:modelValue":S[6]||(S[6]=v=>Se.value=v),"max-width":"520"},{default:Y(()=>[k(Xi,null,{default:Y(()=>[k(Wi,{class:"aq-dialog-title"},{default:Y(()=>[...S[11]||(S[11]=[ye("Новое значение",-1)])]),_:1}),k(Ki,null,{default:Y(()=>[ne("div",Vv,[k(Sn,{modelValue:ie.value.sku,"onUpdate:modelValue":S[1]||(S[1]=v=>ie.value.sku=v),label:"SKU юнита",placeholder:"2671"},null,8,["modelValue"]),k(Pa,{modelValue:ie.value.attrKey,"onUpdate:modelValue":S[2]||(S[2]=v=>ie.value.attrKey=v),items:rn.value,label:"Ключ (attr_key)",placeholder:"weight"},null,8,["modelValue","items"]),k(El,{modelValue:ie.value.type,"onUpdate:modelValue":S[3]||(S[3]=v=>ie.value.type=v),items:r,label:"Тип"},null,8,["modelValue"]),["number","string","text","html"].includes(ie.value.type)?(ee(),Ee(Sn,{key:0,modelValue:ie.value.value,"onUpdate:modelValue":S[4]||(S[4]=v=>ie.value.value=v),label:"Значение",class:"span-2"},null,8,["modelValue"])):Ze("",!0)]),S[12]||(S[12]=ne("p",{class:"add-hint aq-muted"}," Для chart/json/tags/bool значение задаётся после создания — кнопкой «ред.» в строке. ",-1))]),_:1}),k(qi,{class:"aq-dialog-actions"},{default:Y(()=>[k(O,{variant:"ghost",onClick:S[5]||(S[5]=v=>Se.value=!1)},{default:Y(()=>[...S[13]||(S[13]=[ye("Отмена",-1)])]),_:1}),k(O,{variant:"primary","icon-name":"check",loading:We.value,onClick:ts},{default:Y(()=>[...S[14]||(S[14]=[ye("Создать",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}}),Kv=Gi(Wv,[["__scopeId","data-v-8bcc816a"]]),Zm=Object.freeze(Object.defineProperty({__proto__:null,default:Kv},Symbol.toStringTag,{value:"Module"}));
69export{gg as $,Wm as A,at as B,Qm as C,Em as D,Xm as E,Jm as F,Ym as G,mo as H,Gm as I,bg as J,Bm as K,Hm as L,Mm as M,km as N,ym as O,$m as P,fa as Q,am as R,Km as S,im as T,Pm as U,Nm as V,Ks as W,Dm as X,Li as Y,og as Z,um as _,Tp as a,mm as a0,Sm as a1,bm as a2,yn as a3,_m as a4,Cm as a5,zi as a6,wr as a7,Qt as a8,xt as a9,zm as aa,cm as ab,Es as ac,jm as ad,gm as ae,vm as af,Kp as ag,Qp as ah,ue as ai,lm as aj,hm as ak,pm as al,xm as am,fm as an,om as ao,Fm as ap,Um as aq,dm as ar,st as as,Zm as at,Xp as b,su as c,Er as d,cv as e,Oo as f,Yp as g,H as h,qm as i,Ht as j,nt as k,Ko as l,ca as m,Rm as n,Tm as o,ft as p,Om as q,Fl as r,qp as s,Ea as t,wm as u,Ip as v,Vm as w,Am as x,Im as y,Lm as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.