@webority/ui-elements 0.185.0 → 0.186.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/ui-elements/calendar-views.global.js +1 -1
  2. package/dist/ui-elements/carousel.global.js +1 -1
  3. package/dist/ui-elements/code-block.global.js +1 -1
  4. package/dist/ui-elements/command-palette.global.js +1 -1
  5. package/dist/ui-elements/comment-thread.global.js +1 -1
  6. package/dist/ui-elements/consent-banner.global.js +1 -1
  7. package/dist/ui-elements/context-menu.global.js +1 -1
  8. package/dist/ui-elements/dashboard-grid.global.js +1 -1
  9. package/dist/ui-elements/data-table.global.js +1 -1
  10. package/dist/ui-elements/date-range.global.js +1 -1
  11. package/dist/ui-elements/date-time.global.js +1 -1
  12. package/dist/ui-elements/datepicker.global.js +1 -1
  13. package/dist/ui-elements/dock.global.js +1 -1
  14. package/dist/ui-elements/drawer.global.js +1 -1
  15. package/dist/ui-elements/dropdown.global.js +1 -1
  16. package/dist/ui-elements/entry-grid.global.js +1 -1
  17. package/dist/ui-elements/gantt.global.js +1 -1
  18. package/dist/ui-elements/glyphs.global.js +1 -1
  19. package/dist/ui-elements/hover-card.global.js +1 -1
  20. package/dist/ui-elements/image-crop.global.js +1 -1
  21. package/dist/ui-elements/inline-edit.global.js +1 -1
  22. package/dist/ui-elements/kanban.global.js +1 -1
  23. package/dist/ui-elements/lead-popup.global.js +1 -1
  24. package/dist/ui-elements/lightbox.global.js +1 -1
  25. package/dist/ui-elements/markdown.global.js +1 -1
  26. package/dist/ui-elements/mini-calendar.global.js +1 -1
  27. package/dist/ui-elements/navigation-menu.global.js +1 -1
  28. package/dist/ui-elements/notification-center.global.js +1 -1
  29. package/dist/ui-elements/offline-banner.global.js +1 -1
  30. package/dist/ui-elements/onboarding-checklist.global.js +1 -1
  31. package/dist/ui-elements/org-tree.global.js +1 -1
  32. package/dist/ui-elements/otp.global.js +1 -1
  33. package/dist/ui-elements/overflow.global.js +1 -1
  34. package/dist/ui-elements/phone.global.js +1 -1
  35. package/dist/ui-elements/popover.global.js +1 -1
  36. package/dist/ui-elements/rating.global.js +1 -1
  37. package/dist/ui-elements/record-pager.global.js +1 -1
  38. package/dist/ui-elements/relative-time.global.js +1 -1
  39. package/dist/ui-elements/saved-views.global.js +1 -1
  40. package/dist/ui-elements/select-chips.global.js +1 -1
  41. package/dist/ui-elements/select-recents.global.js +1 -1
  42. package/dist/ui-elements/select-search.global.js +1 -1
  43. package/dist/ui-elements/select-window.global.js +1 -1
  44. package/dist/ui-elements/server.global.js +1 -1
  45. package/dist/ui-elements/shell.global.js +1 -1
  46. package/dist/ui-elements/shortcuts.global.js +1 -1
  47. package/dist/ui-elements/show-more.global.js +1 -1
  48. package/dist/ui-elements/slider.global.js +1 -1
  49. package/dist/ui-elements/sortable.global.js +1 -1
  50. package/dist/ui-elements/status-icon.global.js +1 -1
  51. package/dist/ui-elements/table-export.global.js +1 -1
  52. package/dist/ui-elements/timepicker.global.js +1 -1
  53. package/dist/ui-elements/tour.global.js +1 -1
  54. package/dist/ui-elements/tree-picker.global.js +1 -1
  55. package/dist/ui-elements/tree.global.js +1 -1
  56. package/dist/ui-elements/truncate.global.js +1 -1
  57. package/dist/ui-elements/whats-new.global.js +1 -1
  58. package/dist/ui-elements/wizard.global.js +1 -1
  59. package/dist/ui-elements.global.js +1 -1
  60. package/package.json +5 -5
@@ -1 +1 @@
1
- var WeborityUiElements=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},r=n({defineElement:()=>i});function i(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var a=n({ElementBase:()=>s,NO_DOM_MESSAGE:()=>o}),o=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(o);var s=HTMLElement,c=n({isRtl:()=>l,mirrorKey:()=>u});function l(e){return getComputedStyle(e).direction===`rtl`}function u(e,t){return t?e===`ArrowRight`?`ArrowLeft`:e===`ArrowLeft`?`ArrowRight`:e:e}var d=n({anchorOverlay:()=>C,bindReanchor:()=>ne,unbindReanchor:()=>re}),f=4,p=8,m=300,h=400;function g(e,t,n){let r=t.offsetWidth,i=t.offsetHeight,a=n?e.left-f-r<f:e.right+f+r>window.innerWidth-f,o=n?!a:a,s=o?e.left-f-r:e.right+f;t.style.left=`${Math.max(f,s)}px`,t.style.top=`${Math.max(f,Math.min(e.top,window.innerHeight-i-f))}px`,t.dataset.side=o?`start`:`end`}function _(e,t){return t?e===`start`?`end`:e===`end`?`start`:e:e}var v=8,y={top:`bottom`,bottom:`top`,start:`end`,end:`start`},b=[`bottom`,`top`,`end`,`start`];function x(e,t){return e===`bottom`?window.innerHeight-t.bottom:e===`top`?t.top:e===`end`?window.innerWidth-t.right:t.left}function S(e,t,n,r){return e===`start`?t:e===`end`?n-r:t+(n-t-r)/2}function ee(e,t,n){return Math.max(v,Math.min(e,t-n-v))}function te(e,t,n,r){let i=r.gap??f,a=r.align??`start`,o=t.offsetWidth,s=t.offsetHeight,c=n===`auto`?b.reduce((t,n)=>x(n,e)>x(t,e)?n:t):n,l=c===`top`||c===`bottom`,u=(l?s:o)+i,d=x(c,e)<u&&x(y[c],e)>x(c,e)?y[c]:c,p=s;if(r.clampHeight){let n=d===`bottom`?window.innerHeight-e.bottom-i-f:d===`top`?e.top-i-f:window.innerHeight-8;n<s&&(p=Math.max(n,0),t.style.maxHeight=`${p}px`)}let m,h;if(l){h=d===`bottom`?e.bottom+i:Math.max(f,e.top-p-i);let t=S(a,e.left,e.right,o);r.flipAlign&&a===`start`&&t+o>window.innerWidth-f&&e.right-o>=f?t=e.right-o:r.flipAlign&&a===`end`&&t<f&&e.left+o<=window.innerWidth-f&&(t=e.left),m=Math.max(f,Math.min(t,window.innerWidth-o-f))}else m=Math.max(f,d===`end`?e.right+i:e.left-o-i),h=Math.max(f,Math.min(S(a,e.top,e.bottom,p),window.innerHeight-p-f));t.style.left=`${m}px`,t.style.top=`${h}px`,t.dataset.side=d;let g=r.arrow;if(g){if(l){let t=(e.left+e.right)/2-m-g.offsetWidth/2;g.style.left=`${ee(t,o,g.offsetWidth)}px`}else{let t=(e.top+e.bottom)/2-h-g.offsetHeight/2;g.style.top=`${ee(t,p,g.offsetHeight)}px`}}}function C(e,t,n={}){if(!e)throw Error(`anchorOverlay: missing trigger`);if(!t)throw Error(`anchorOverlay: missing panel`);t.style.position=`fixed`;let r=e.getBoundingClientRect(),i=e instanceof Element&&l(e);if(n.beside){g(r,t,i);return}if(n.side!==void 0){let e=n.clampHeight?Array.from(t.children,e=>[e,e.scrollTop]):[];t.classList.remove(`drop-up`),t.style.maxHeight=``,te(r,t,n.side===`auto`?`auto`:_(n.side,i),n);for(let[t,n]of e)t.scrollTop=n;return}let a=n.clampHeight?t.scrollTop:0;n.clampHeight&&(t.style.maxHeight=``);let o=t.offsetHeight,s=window.innerHeight-r.bottom,c=!n.below&&s<o+f&&r.top>s;if(t.classList.toggle(`drop-up`,c),t.style.top=c?`${Math.max(f,r.top-o-f)}px`:`${r.bottom+f}px`,n.clampHeight){let e=c?r.top-8:window.innerHeight-r.bottom-8;e<o&&(t.style.maxHeight=`${Math.max(e,0)}px`),t.scrollTop=a}n.matchWidth&&(r.width>=m?(t.style.minWidth=`${r.width}px`,t.style.width=`${r.width}px`,t.style.maxWidth=`${r.width}px`):(t.style.minWidth=`${r.width}px`,t.style.width=`max-content`,t.style.maxWidth=`${Math.min(h,window.innerWidth-8)}px`));let u=t.offsetWidth;if(n.alignEnd){let e=r.right-u,n=e>=p?e:r.left,i=Math.max(p,Math.min(n,window.innerWidth-u-p));t.style.left=`${i}px`}else{let e=n.flipAlign&&r.left+u>window.innerWidth-f&&r.right-u>=f,i=Math.min(e?r.right-u:r.left,window.innerWidth-u-f);t.style.left=`${Math.max(f,i)}px`}}function ne(e,t){re(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function re(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var ie=n({CLOSE_MOTION_LIMIT_MS:()=>400,CLOSING_ATTRIBUTE:()=>ae,DISMISS_ATTRIBUTE:()=>T,OPEN_ATTRIBUTE:()=>w,closeAnchoredPopover:()=>Fe,closeModalDialog:()=>Ne,isPopoverOpen:()=>E,onOverlayRootChange:()=>Be,openAnchoredPopover:()=>Pe,openModalDialog:()=>Me,overlayRoot:()=>ze,raisePopover:()=>Le,returnFocus:()=>ke,setPopoverOpen:()=>Ie,wireOpenTriggers:()=>Ve}),w=`data-wui-open`,T=`data-wui-dismiss`,ae=`data-wui-closing`,oe=`[${T}]`,se=`[${w}]`,ce=`(prefers-reduced-motion: reduce)`,le=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,ue=400,de=new WeakSet,fe=new WeakSet,pe=new WeakSet,me=Symbol.for(`webority.ui.modal-stack`),he=Symbol.for(`webority.ui.root-watches`);function ge(e){let t=e;return t[he]??=new Set,t[he]}var _e=new WeakMap,ve=new WeakMap,ye=new WeakMap;function be(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(le))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${oe},.wui-modal-back`))return t;n??=t}return n}function xe(e){let t=[],n=new Map;for(let r of e.querySelectorAll(le))if(!(r.closest(`[hidden],[inert]`)||r.closest(`dialog`)!==e)&&!(r.tabIndex<0||r.getClientRects().length===0)){if(r instanceof HTMLInputElement&&r.type===`radio`&&r.name){let e=n.get(r.name);e?r.checked&&!e.checked&&(e.checked=r,t[t.indexOf(e.first)]=r):(n.set(r.name,{first:r,checked:r.checked?r:null}),t.push(r))}else t.push(r)}return t}function Se(e){return e.localName.includes(`-`)&&`show`in e&&typeof e.show==`function`}function Ce(e){return e.localName.includes(`-`)&&customElements.get(e.localName)===void 0}function we(e){let t=e;return t[me]??=[],t[me]}function Te(e){Ee(e),we(e.ownerDocument).push(e)}function Ee(e){let t=we(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function De(e){for(let t of ge(e)){let n=ze(e);t.last!==n&&(t.last=n,t.listener(n))}}function Oe(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function ke(e,t){if(!e?.isConnected)return;let n=e.ownerDocument.activeElement;(!n||n===e.ownerDocument.body||t.contains(n))&&e.focus()}function Ae(e){let t=e.getBoundingClientRect();return t.bottom<0||t.right<0||t.top>window.innerHeight||t.left>window.innerWidth}function je(e,t){ye.get(e)?.();let n=t.ownerDocument,r=0,i=()=>{window.clearTimeout(o),window.clearTimeout(r),n.removeEventListener(`pointerdown`,i,!0),n.removeEventListener(`keydown`,i,!0),t.removeEventListener(`click`,a,!0),ye.delete(e)},a=()=>{t.removeEventListener(`click`,a,!0),r=window.setTimeout(i,0)},o=window.setTimeout(i,ue);n.addEventListener(`pointerdown`,i,!0),n.addEventListener(`keydown`,i,!0),t.addEventListener(`click`,a,!0),ye.set(e,i)}function Me(e,t){let n=t.focus===`first-control`?be(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),de.add(e);let o=()=>{if(Te(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw Ee(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),De(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;ze(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&de.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=t=>{if(t.key!==`Tab`||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;let n=e.ownerDocument;if(ze(n)!==e||e.querySelector(`:popover-open`))return;t.preventDefault();let r=xe(e),i=r[0],a=r[r.length-1];if(!i||!a){e.focus();return}let o=n.activeElement,s=o?r.findIndex(e=>e===o||e.contains(o)):-1;s<0?(t.shiftKey?a:i).focus():r[((t.shiftKey?s-1:s+1)+r.length)%r.length]?.focus()},u=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},d=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(oe);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.bottom)&&t.onRequestClose(`backdrop`)},f=()=>{let n=s;s=!1,Ee(e),de.has(e)?(o(),n&&t.onRequestClose(`escape`)):De(e.ownerDocument)},p=e.ownerDocument;return p.addEventListener(`keydown`,c),p.addEventListener(`keydown`,l),e.addEventListener(`cancel`,u),e.addEventListener(`click`,d),e.addEventListener(`close`,f),o(),()=>{p.removeEventListener(`keydown`,c),p.removeEventListener(`keydown`,l),e.removeEventListener(`cancel`,u),e.removeEventListener(`click`,d),e.removeEventListener(`close`,f),de.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),Ee(e),De(e.ownerDocument)}}async function Ne(e){de.delete(e),e.setAttribute(ae,``),!window.matchMedia(ce).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await Oe(e),e.close(),Ee(e),De(e.ownerDocument),e.removeAttribute(ae)}function Pe(e,t,n){let r=ye.get(t);if(r){r();return}_e.get(t)?.(),t.setAttribute(`popover`,n.mode),t.showPopover();let i=()=>C(e,t,n);try{i()}catch(e){throw Fe(t),e}ne(t,()=>{!E(t)||!t.isConnected?ve.get(t)?.():e.isConnected&&n.scrollSettling?.()?i():!e.isConnected||!n.keepOffscreen&&Ae(e)?Fe(t):i()});let a=new ResizeObserver(()=>{E(t)&&t.isConnected&&e.isConnected&&i()});a.observe(t);let o=e=>{`newState`in e&&e.newState===`closed`&&ve.get(t)?.()},s=()=>{n.mode===`auto`&&E(t)&&je(t,e)};t.addEventListener(`toggle`,o),e.addEventListener(`pointerdown`,s,!0),_e.set(t,()=>{t.removeEventListener(`toggle`,o),e.removeEventListener(`pointerdown`,s,!0),re(t),a.disconnect(),_e.delete(t),ve.delete(t)}),ve.set(t,()=>{_e.get(t)?.(),n.onClosed?.()})}function Fe(e){E(e)&&e.hidePopover(),ve.get(e)?.()}function E(e){return e.matches(`:popover-open`)}function Ie(e,t){Re(e),E(e)!==t&&(t?e.showPopover():e.hidePopover())}function Le(e){if(Re(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function Re(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function ze(e=document){let t=we(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}function Be(e,t=document){fe.has(t)||(fe.add(t),t.addEventListener(`toggle`,()=>De(t),!0),t.addEventListener(`close`,()=>De(t),!0));let n={last:ze(t),listener:e};return ge(t).add(n),()=>{ge(t).delete(n)}}function Ve(e){pe.has(e)||(pe.add(e),e.addEventListener(`click`,t=>{let n=t.target,r=n instanceof Element?n.closest(se):null;if(!(r instanceof HTMLElement))return;let i=(r.getAttribute(`data-wui-open`)??``).replace(/^#/,``),a=e.getElementById(i);if(!a)throw Error(`[data-wui-open] names #${i}, which is not on the page.`);Se(a)?(t.preventDefault(),a.show(r)):Ce(a)&&(t.preventDefault(),customElements.whenDefined(a.localName).then(()=>{a.isConnected&&Se(a)&&a.show(r)}))}))}var He=n({closestOf:()=>We,elementOf:()=>Ue,make:()=>O,must:()=>D});function D(e,t){if(e==null)throw Error(t);return e}function Ue(e,t,n){if(!(e instanceof t))throw TypeError(n);return e}function We(e,t){return e instanceof Element?e.closest(t):null}function O(e,t,...n){if(e.toLowerCase()===`svg`)throw Error(`make() builds HTML elements; use svgRoot for svg`);let r=document.createElement(e);for(let[e,n]of Object.entries(t??{}))n===!0?r.setAttribute(e,``):(typeof n==`string`||typeof n==`number`)&&r.setAttribute(e,String(n));let i=[];for(let e of n)e instanceof Node?i.push(e):(typeof e==`string`||typeof e==`number`)&&i.push(document.createTextNode(String(e)));return r.append(...i),r}var Ge=n({fillText:()=>A,pluralText:()=>rt,readText:()=>k,setText:()=>et,subscribeText:()=>tt,textLocale:()=>nt}),Ke=`en-IN`,qe=/\{([A-Za-z0-9_]+)\}/g,Je=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Ye,Xe=new Map,Ze=0,Qe=new Set,$e=new Map;function et(e){let t=new Map,n,r=Object.entries(e);for(let[e,i]of r)if(i!==void 0){if(e===`locale`){if(typeof i!=`string`)throw RangeError(`Text locale must be a BCP 47 tag string.`);n=i}else{if(!it(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,at(e,i))}}Ye=n,Xe=t,Ze+=1;for(let e of Array.from(Qe))e()}function k(e,t){let n=Xe.get(e);if(n===void 0)return t;let r=$e.get(e);if(r!==void 0&&r.version===Ze&&r.english===t&&st(r.merged,t))return r.merged;let i=ot(e,n,t);return $e.set(e,{version:Ze,english:t,merged:i}),i}function tt(e){return Qe.add(e),()=>{Qe.delete(e)}}function nt(){return Ye??Ke}function A(e,t){return e.replace(qe,(e,n)=>Je(t,n)?String(t[n]):e)}function rt(e,t,n,r){let i=`${t}Other`;if(!Je(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=new Intl.PluralRules(nt()).select(n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[Je(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return A(s,{count:n,...r})}function it(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function at(e,t){let n={};for(let[r,i]of Object.entries(t)){if(typeof i!=`string`)throw RangeError(`Text ${e}.${r} must be a string.`);n[r]=i}return n}function ot(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=Je(n,i)?n[i]:void 0;if(t===void 0)throw RangeError(`Text ${e}.${i} is not a key of the English text. Allowed keys: ${Object.keys(n).join(`, `)}.`);let o=ct(t);for(let t of ct(a))if(!o.includes(t))throw RangeError(`Text ${e}.${i} uses {${t}}, which the English text does not have. Allowed placeholders: ${o.length===0?`none`:o.map(e=>`{${e}}`).join(`, `)}.`);r[i]=a}return Object.assign({},n,r)}function st(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>Je(e,t))}function ct(e){return Array.from(e.matchAll(qe),e=>e[1]??``)}var lt={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},ut=n({SHORTCUTS_OFF_ATTRIBUTE:()=>ft,SHORTCUT_EVENT:()=>mt,SHORTCUT_SCOPE_ATTRIBUTE:()=>pt,ariaKeyShortcuts:()=>Et,inShortcutScope:()=>At,isTypingTarget:()=>Dt,listKeys:()=>gt,moveFocus:()=>Mt,runShortcut:()=>jt,selectKey:()=>_t,shortcutKey:()=>Tt,shortcutName:()=>wt,shortcutText:()=>ht,shortcutsOff:()=>kt}),dt=()=>k(`shortcutKeys`,lt),ft=`data-wui-shortcuts`,pt=`data-shortcut-scope`,mt=`wui:shortcut`,ht=()=>({title:dt().sheetTitle,close:dt().closeLabel,help:dt().helpLabel}),gt=()=>[{key:`J`,label:dt().nextItemLabel},{key:`K`,label:dt().previousItemLabel},{key:`Enter`,label:dt().openItemLabel}],_t=()=>({key:`X`,label:dt().selectItemLabel}),vt={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},yt={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},bt={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},xt=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),St=new Set([`textbox`,`searchbox`,`combobox`]),Ct=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function wt(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:vt[t]?vt[t]:t.length===1&&t.trim()?t.toLowerCase():null}function Tt(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():yt[t.toLowerCase()]??t}function Et(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>bt[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function Dt(e){if(!e||!Ot(e))return!1;if(e instanceof HTMLElement&&e.isContentEditable||e.closest?.(`[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]`)||e.tagName===`TEXTAREA`||e.tagName===`SELECT`)return!0;if(e.tagName===`INPUT`){let t=e instanceof HTMLInputElement&&e.type?e.type:`text`;return!xt.has(t.toLowerCase())}return St.has(e.getAttribute?.(`role`))}function Ot(e){return e.nodeType===1}function kt(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(ft)===`off`}function At(e,t){if(!t||e&&t.contains(e))return!0;let n=t.ownerDocument;return(!e||e===n.body||e===n.documentElement)&&n.querySelector(`[data-shortcut-scope]`)===t}function jt(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||kt(r?.ownerDocument??void 0))return!1;let i=wt(e);if(!i||!At(r,n)||Dt(r))return!1;let a=t[i]??(i.length===1?t[i.toUpperCase()]:void 0);return typeof a!=`function`||i===`enter`&&r instanceof Element&&r.closest(Ct)?!1:(e.preventDefault(),a(e),!0)}function Mt(e,t){let n=e[0]?.ownerDocument;if(!n)return null;let r=n.activeElement,i=e.findIndex(e=>e===r||e.contains(r));if(i<0&&r&&r!==n.body){let t=r.closest?.(`li, tr`);t&&(i=e.findIndex(e=>t.contains(e)))}i<0&&(i=e.findIndex(e=>e.getAttribute(`aria-current`)===`true`));let a=D(e[i<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,i+t))],`moveFocus: no item at the clamped index`);return a.focus(),a.scrollIntoView?.({block:`nearest`}),a}function Nt(e){"@babel/helpers - typeof";return Nt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Nt(e)}function Pt(e,t){if(Nt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Nt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ft(e){var t=Pt(e,`string`);return Nt(t)==`symbol`?t:t+``}function j(e,t,n){return(t=Ft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var It=2,Lt=`wui-filter-popover-pinned`,Rt=`.wui-filter-popover-trigger`,zt=`.wui-filter-popover-panel`,Bt=`.wui-filter-popover-head`,Vt=`input:not([type]),input[type="text"],input[type="search"]`,Ht=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function Ut(){try{return sessionStorage.getItem(Lt)===`1`}catch{return!1}}function Wt(e){try{e?sessionStorage.setItem(Lt,`1`):sessionStorage.removeItem(Lt)}catch(e){if(!(e instanceof DOMException))throw e}}function Gt(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function Kt(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var qt=class extends s{constructor(){super(),j(this,`_doc`,void 0),j(this,`_timer`,void 0),j(this,`_sticky`,void 0),j(this,`_closingByCode`,void 0),j(this,`_inside`,void 0),j(this,`_pendingSubmit`,void 0),j(this,`_onEnter`,void 0),j(this,`_onLeave`,void 0),j(this,`_onClick`,void 0),j(this,`_onChange`,void 0),j(this,`_onListClose`,void 0),j(this,`_onFocusOut`,void 0),j(this,`_onKeyDown`,void 0),j(this,`_onShortcut`,void 0),this._doc=null,this._timer=null,this._sticky=!1,this._closingByCode=!1,this._inside=!1,this._pendingSubmit=!1,this._onEnter=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!0,this._schedule(!0))},this._onLeave=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!1,this._schedule(!1))},this._onClick=e=>{this._trigger?.contains(Gt(e.target))&&(this._clear(),this.isOpen&&this._sticky?this._close(!0):this._open(!0,e.detail===0))},this._onChange=e=>{let t=this._pin;if(t&&e.target===t){Wt(t.checked),t.checked?this._clear():this._schedule(!1);return}let n=e.target;if(n instanceof Element&&n.closest(`wui-select[mode="multiple"], wui-select[mode="tag"]`)?.querySelector(`[aria-expanded="true"]`)){this._pendingSubmit=!0;return}let r=this.closest(`form.wui-filter-form`);r instanceof HTMLFormElement&&r.requestSubmit()},this._onListClose=()=>{if(!this._pendingSubmit)return;this._pendingSubmit=!1;let e=this.closest(`form.wui-filter-form`);e instanceof HTMLFormElement&&e.requestSubmit()},this._onFocusOut=e=>{this.contains(Gt(e.relatedTarget))||this._schedule(!1)},this._onKeyDown=e=>{let t=e.target;if(e.key!==`Enter`||!(t instanceof Element)||!this._panel?.contains(t)||!t.matches(Vt))return;e.preventDefault();let n=this.closest(`form.wui-filter-form`);n instanceof HTMLFormElement&&n.requestSubmit()},this._onShortcut=e=>{this.ownerDocument.querySelector(`wui-filter-popover`)===this&&jt(e,{f:()=>this._open(!0,!0)})}}get isOpen(){let e=this._panel;return e?E(e):!1}connectedCallback(){this._doc=this.ownerDocument,this.addEventListener(`pointerenter`,this._onEnter),this.addEventListener(`pointerleave`,this._onLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`change`,this._onChange),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`wui-select:close`,this._onListClose),this._doc.addEventListener(`keydown`,this._onShortcut),Ut()&&this._pin&&(this._pin.checked=!0,this._open(!1,!1))}disconnectedCallback(){this._clear();let e=this._panel;e&&this._closeByCode(e),this.removeEventListener(`pointerenter`,this._onEnter),this.removeEventListener(`pointerleave`,this._onLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`change`,this._onChange),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`wui-select:close`,this._onListClose),this._doc?.removeEventListener(`keydown`,this._onShortcut),this._doc=null}get _trigger(){return Kt(this,Rt)}get _panel(){return Kt(this,zt)}get _pin(){let e=this.querySelector(`${Bt} input[type="checkbox"]`);return e instanceof HTMLInputElement?e:null}get _pinned(){return this._pin?.checked===!0}_clear(){this._timer!==null&&clearTimeout(this._timer),this._timer=null}_schedule(e){if(this._clear(),e){if(this.isOpen)return;this._timer=setTimeout(()=>{this._timer=null,this._open(!1,!1)},150)}else this.isOpen&&!this._stayOpen()&&(this._timer=setTimeout(()=>{this._timer=null,this._stayOpen()||this._close(!1)},400))}_stayOpen(){let e=this._panel;return e?this._pinned||this._inside||e.contains(this.ownerDocument.activeElement)||e.querySelector(`[aria-expanded="true"]`)!==null:!1}_open(e,t){this._clear();let n=this._panel,r=this._trigger;n&&r&&(this.isOpen?e&&(this._sticky=!0):(r.setAttribute(`aria-expanded`,`true`),this._sticky=e,Pe(r,n,{mode:`auto`,clampHeight:!0,alignEnd:!0,onClosed:()=>this._closed()})),t&&(Kt(n.querySelector(`.wui-filter-popover-grid`),Ht)??Kt(n,Ht))?.focus())}_close(e){this._clear();let t=this._panel;if(!t||!this.isOpen)return;let n=t.contains(this.ownerDocument.activeElement);this._closeByCode(t),e&&n&&this._trigger?.focus()}_closeByCode(e){this._closingByCode=!0;try{Fe(e)}finally{this._closingByCode=!1}}_closed(){if(this._trigger?.setAttribute(`aria-expanded`,`false`),this._sticky=!1,this._closingByCode)return;let e=this._trigger,t=this._panel,n=this.ownerDocument.activeElement;e&&(n===this.ownerDocument.body||t?.contains(n))&&e.focus()}};function Jt(){i(`wui-filter-popover`,qt)}var Yt=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),j(this,`_doc`,void 0),j(this,`_release`,void 0),j(this,`_opener`,void 0),j(this,`_returnTo`,void 0),j(this,`_session`,void 0),j(this,`_closing`,void 0),j(this,`_reopen`,void 0),this._doc=null,this._release=null,this._opener=null,this._returnTo=null,this._session=0,this._closing=!1,this._reopen=!1}connectedCallback(){this._doc=this.ownerDocument,Ve(this._doc),this.hasAttribute(`open`)&&this._open()}disconnectedCallback(){this._session++,this._closing=!1,this._reopen=!1;let e=this.querySelector(`dialog`);this._release&&e instanceof HTMLDialogElement&&e.close(),this._releaseDialog(),this._opener=null,this._returnTo=null,this._doc=null}attributeChangedCallback(e){this._doc&&e===`open`&&(this.hasAttribute(`open`)?this._open():this._close())}get isOpen(){return this.hasAttribute(`open`)}show(e){e&&(this._opener=e),this.setAttribute(`open`,``)}hide(){this.removeAttribute(`open`)}_open(){if(this._closing){this._reopen=!0;return}if(this._release)return;let e=++this._session,t=this._opener;if(this._returnTo=t,this._opener=null,this.dispatchEvent(new CustomEvent(`wui-modal-open`,{bubbles:!0,detail:{trigger:t}})),!this.isOpen)return;let n=this._dialog();this._release=Me(n,{escape:!this.hasAttribute(`no-escape`),backdrop:!this.hasAttribute(`static`),focus:`first-control`,onRequestClose:e=>this._requestClose(e)}),this._settle(e,n)}_close(){if(this._closing){this._reopen=!1;return}if(!this._release)return;this._closing=!0;let e=this._session,t=this._dialog();Ne(t).then(()=>{e===this._session&&(this._closing=!1,this._releaseDialog(),ke(this._returnTo,t),this._returnTo=null,this.dispatchEvent(new CustomEvent(`wui-modal-closed`,{bubbles:!0})),this._reopen&&(this._reopen=!1,this.isOpen&&this._open()))})}_settle(e,t){let n=t.getAnimations?.()??[];n.length?Promise.allSettled(n.map(e=>e.finished)).then(()=>{e===this._session&&this.isOpen&&this._announceOpened()}):this._announceOpened()}_announceOpened(){this.dispatchEvent(new CustomEvent(`wui-modal-opened`,{bubbles:!0}))}_requestClose(e){this.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:e}}))&&this.removeAttribute(`open`)}_releaseDialog(){let e=this._release;this._release=null,e?.()}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},Xt=n({avatarNode:()=>Qt,safeImageUrl:()=>Zt}),Zt=e=>{let t=String(e??``).trim();return/^(https?:)?\/\//i.test(t)||/^\/(?!\/)/.test(t)||/^data:image\/(png|jpe?g|gif|webp|avif);/i.test(t)?t:``};function Qt(e,t=`wui-opt-avatar`){let n=Zt(e.avatar);return!n&&!e.initials?null:O(`span`,{class:`avatar ${t}`,"aria-hidden":`true`},O(`span`,{class:`avatar-face`},e.initials??``),n?O(`img`,{class:`avatar-img`,src:n,alt:``}):null)}var $t=n({devError:()=>tn,devWarn:()=>en});function en(e,...t){console.warn(e,...t)}function tn(e,...t){console.error(e,...t)}var nn=n({BUSY_CLASS:()=>rn,isInert:()=>M,isReadOnly:()=>an,syncFieldState:()=>on}),rn=`wui-field-busy`,an=e=>e.hasAttribute(`readonly`),M=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function on(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(rn,n),an(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var sn=n({syncFormMirror:()=>dn,syncFormMirrors:()=>fn}),cn=`data-wui-mirror`;function ln(e,t,n,r){t.name=n,t.value=r==null?``:String(r);for(let n of[...t.attributes])n.name.startsWith(`data-val`)&&!e.hasAttribute(n.name)&&t.removeAttribute(n.name);for(let n of e.attributes)n.name.startsWith(`data-val`)&&t.setAttribute(n.name,n.value);t.disabled=e.hasAttribute(`disabled`)}function un(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(cn,``),e.appendChild(t),t}function dn(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${cn}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=un(e),ln(e,i,n,t)):i?.remove()}function fn(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${cn}]`)].filter(e=>e instanceof HTMLInputElement),i=[...e.attributes].some(e=>e.name.startsWith(`data-val`)),a=n?t.length>0?t:i?[``]:[]:[];for(let e of r.splice(a.length))e.remove();a.forEach((t,i)=>{ln(e,r[i]??un(e),n,t)})}var pn=n({hasOwn:()=>mn}),mn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,hn=Object.freeze({serverActions:`[data-wui-confirm], [data-wui-post], form[data-wui-post-form], [data-wui-row-action], [data-wui-auto-submit]`,unsavedChanges:`form[data-wui-unsaved]`,remoteModal:`[data-wui-modal], [data-wui-drawer], [data-wui-pane], wui-modal[data-wui-remote-url]`,serverTable:`[data-wui-server]`,drawerDiscard:`wui-drawer[confirm-discard], wui-modal form`}),gn=Object.freeze({carousel:{entries:[`elements/carousel.ts`],tags:[`wui-carousel`]},"data-table":{entries:[`elements/data-table.ts`],tags:[`wui-data-table`]},dock:{entries:[`elements/dock.ts`],tags:[`wui-dock`]},"hover-card":{entries:[`elements/hover-card.ts`],tags:[`wui-hover-card`]},"navigation-menu":{entries:[`elements/navigation-menu.ts`],tags:[`wui-navigation-menu`]},"notification-center":{entries:[`elements/notification-center.ts`],tags:[`wui-notification-center`]},"onboarding-checklist":{entries:[`elements/onboarding-checklist.ts`],tags:[`wui-onboarding-checklist`]},otp:{entries:[`elements/otp.ts`],tags:[`wui-otp`]},overflow:{entries:[`elements/overflow.ts`],tags:[`wui-overflow`]},rating:{entries:[`elements/rating.ts`],tags:[`wui-rating`]},"record-pager":{entries:[`elements/record-pager.ts`],tags:[`wui-record-pager`]},"relative-time":{entries:[`elements/relative-time.ts`],tags:[`wui-relative-time`]},shortcuts:{entries:[`elements/shortcuts.ts`],tags:[`wui-shortcuts`]},"show-more":{entries:[`elements/show-more.ts`],tags:[`wui-show-more`]},"calendar-views":{entries:[`elements/calendar-views.ts`],tags:[`wui-calendar-views`]},truncate:{entries:[`elements/truncate.ts`],tags:[`wui-truncate`]},"whats-new":{entries:[`elements/whats-new.ts`],tags:[`wui-whats-new`]},"offline-banner":{entries:[`elements/offline-banner.ts`],tags:[`wui-offline-banner`]},"code-block":{entries:[`elements/code-block.ts`],tags:[`wui-code-block`]},"command-palette":{entries:[`elements/command-palette.ts`],tags:[`wui-command-palette`]},"comment-thread":{entries:[`elements/comment-thread.ts`],tags:[`wui-mention-input`,`wui-comment-thread`]},"consent-banner":{entries:[`elements/consent-banner.ts`],tags:[`wui-consent-banner`]},"context-menu":{entries:[`elements/context-menu.ts`],tags:[`wui-context-menu`]},"date-range":{entries:[`elements/date-range.ts`],tags:[`wui-date-range`]},"date-time":{entries:[`elements/date-time.ts`],tags:[`wui-date-time`]},datepicker:{entries:[`elements/datepicker.ts`],tags:[`wui-datepicker`]},"mini-calendar":{entries:[`elements/mini-calendar.ts`],tags:[`wui-mini-calendar`]},drawer:{entries:[`elements/drawer.ts`],tags:[`wui-drawer`]},dropdown:{entries:[`elements/dropdown.ts`],tags:[`wui-dropdown`]},"entry-grid":{entries:[`elements/entry-grid.ts`],tags:[`wui-entry-grid`]},gantt:{entries:[`elements/gantt.ts`],tags:[`wui-gantt`]},"image-crop":{entries:[`elements/image-crop.ts`],tags:[`wui-image-crop`]},"inline-edit":{entries:[`elements/inline-edit.ts`],tags:[`wui-inline-edit`]},kanban:{entries:[`elements/kanban.ts`],tags:[`wui-kanban`]},"dashboard-grid":{entries:[`elements/dashboard-grid.ts`],tags:[`wui-dashboard-grid`]},"lead-popup":{entries:[`elements/lead-popup.ts`],tags:[`wui-lead-popup`]},lightbox:{entries:[`elements/lightbox.ts`],tags:[`wui-lightbox`]},"org-tree":{entries:[`elements/org-tree.ts`],tags:[`wui-org-tree`]},markdown:{entries:[`elements/markdown.ts`],tags:[`wui-markdown`]},phone:{entries:[`elements/phone.ts`,`global/parts/select-country.ts`],tags:[`wui-phone`]},popover:{entries:[`elements/popover.ts`],tags:[`wui-popover`]},"saved-views":{entries:[`elements/saved-views.ts`],tags:[`wui-saved-views`]},glyphs:{entries:[`global/parts/glyphs.ts`],tags:[]},"select-chips":{entries:[`global/parts/select-chips.ts`],tags:[]},"select-recents":{entries:[`global/parts/select-recents.ts`],tags:[]},"select-search":{entries:[`global/parts/select-search.ts`],tags:[]},"select-window":{entries:[`global/parts/select-window.ts`],tags:[]},"table-export":{entries:[`global/parts/table-export.ts`],tags:[]},server:{entries:[`global/parts/server.ts`],tags:[],markers:Object.values(hn).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:`[data-app-shell]`},slider:{entries:[`elements/slider.ts`],tags:[`wui-slider`]},sortable:{entries:[`elements/sortable.ts`],tags:[`wui-sortable`]},"status-icon":{entries:[`elements/status-icon.ts`],tags:[`wui-status-icon`]},timepicker:{entries:[`elements/timepicker.ts`],tags:[`wui-timepicker`]},tour:{entries:[`elements/tour.ts`],tags:[`wui-tour`]},tree:{entries:[`elements/tree.ts`],tags:[`wui-tree`]},"tree-picker":{entries:[`elements/tree-picker.ts`],tags:[`wui-tree-picker`]},wizard:{entries:[`elements/wizard.ts`],tags:[`wui-wizard-step`,`wui-wizard`]},chart:{file:`ui-chart.global.js`,tags:[`wui-chart`],selfContained:!0},calendar:{file:`ui-calendar.global.js`,tags:[`wui-calendar`],selfContained:!0},"rich-text":{file:`ui-rich-text.global.js`,tags:[`wui-rich-text`],selfContained:!0},"file-viewer":{file:`ui-file-viewer.global.js`,tags:[`wui-file-viewer`],selfContained:!0}});Object.freeze({anchorOverlay:`anchorOverlay.ts`,avatarNode:`avatarNode.ts`,buttonClass:`buttonClass.ts`,calendarMath:`calendarMath.ts`,copyText:`copyText.ts`,dataTable:`dataTable.ts`,dataTableText:`text/web/dataTable.g.ts`,datePickerText:`text/web/datePicker.g.ts`,defineElement:`defineElement.ts`,devWarn:`devWarn.ts`,dom:`dom.ts`,drawerText:`text/web/drawer.g.ts`,elementBase:`elementBase.ts`,fieldState:`fieldState.ts`,flash:`server/flash.ts`,formatters:`formatters.ts`,formMirror:`formMirror.ts`,glyphs:`global/glyphs.ts`,hasOwn:`hasOwn.ts`,httpFailureText:`text/web/httpFailure.g.ts`,iconGlyphs:`iconGlyphs.g.ts`,imeSafeEnter:`imeSafeEnter.ts`,isDrawn:`isDrawn.ts`,listboxKeyNav:`listboxKeyNav.ts`,loader:`global/loader.ts`,mentionText:`mentionText.ts`,menuKeyNav:`menuKeyNav.ts`,nativeOverlay:`nativeOverlay.ts`,notificationCentreText:`text/web/notificationCentre.g.ts`,notificationDays:`notificationDays.ts`,optionLabel:`optionLabel.ts`,partRegistry:`select/partRegistry.ts`,postError:`server/postError.ts`,refreshAfter:`server/refreshAfter.ts`,regions:`server/regions.ts`,relativeTime:`relativeTime.ts`,rtl:`rtl.ts`,selectList:`select/list.ts`,selectRemote:`select/remote.ts`,selectText:`text/web/select.g.ts`,selectWindow:`select/window.ts`,server:`global/server.ts`,serverHtml:`server/serverHtml.ts`,serverTableRegistry:`server/serverTableRegistry.ts`,shellRegistry:`server/shellRegistry.ts`,shortcutKeys:`shortcutKeys.ts`,stepperHeader:`stepperHeader.ts`,svgNodes:`svgNodes.ts`,tableExport:`global/tableExport.ts`,tableSelect:`tableSelect.ts`,textMatch:`textMatch.ts`,textStore:`text/textStore.ts`,toastAction:`server/toastAction.ts`,toastHeader:`server/toastHeader.ts`,tooltips:`tooltips.ts`,wuiHost:`server/wuiHost.ts`,wuiHttp:`server/wuiHttp.ts`,wuiUpload:`server/wuiUpload.ts`,WuiSelect:`WuiSelect.ts`,zone:`zone.ts`});var _n=`ui-elements/`;function vn(e){let t=gn[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function yn(e){let t=vn(e);if(!t.selfContained)return`${_n+e}.global.js`;if(t.file===void 0)throw Error(`[webority-ui] The self-contained element chunk ${e} names no file.`);return t.file}var bn=n({CHUNK_DIR:()=>_n,CHUNK_RETRY_MS:()=>Cn,ELEMENTS_DEFINED_EVENT:()=>xn,ELEMENTS_LOAD_ERROR_EVENT:()=>Sn,assetUrl:()=>Vn,chunkReadyCheckKeys:()=>Hn,loadChunk:()=>P,registerChunkReadyCheck:()=>N,startElementLoader:()=>Rn,stopElementLoader:()=>zn,whenElementsReady:()=>Bn}),xn=`wui-elements:defined`,Sn=`wui-elements:load-error`,Cn=1e3,wn={"ui-elements/carousel.global.js":`9481525d5519`,"ui-elements/data-table.global.js":`e8a85405ea75`,"ui-elements/dock.global.js":`46a34039d41b`,"ui-elements/hover-card.global.js":`ecde5f4de498`,"ui-elements/navigation-menu.global.js":`505a6673a444`,"ui-elements/notification-center.global.js":`dd0170d8be59`,"ui-elements/onboarding-checklist.global.js":`3cf7bd315011`,"ui-elements/otp.global.js":`20e66f264e38`,"ui-elements/overflow.global.js":`6a3fd655993f`,"ui-elements/rating.global.js":`a80105bc49b9`,"ui-elements/record-pager.global.js":`4faef7df7841`,"ui-elements/relative-time.global.js":`14104518e81b`,"ui-elements/shortcuts.global.js":`ecec1cbe865e`,"ui-elements/show-more.global.js":`beddaf111042`,"ui-elements/calendar-views.global.js":`0e25eee48d84`,"ui-elements/truncate.global.js":`f1b8f0cc6a28`,"ui-elements/whats-new.global.js":`c35bfcb6e66a`,"ui-elements/offline-banner.global.js":`ed3d24cb1def`,"ui-elements/code-block.global.js":`d4df3f3d5f80`,"ui-elements/command-palette.global.js":`3e8f1b5705c7`,"ui-elements/comment-thread.global.js":`2bd3b5f49ecb`,"ui-elements/consent-banner.global.js":`3070954b7b46`,"ui-elements/context-menu.global.js":`e7777250f30f`,"ui-elements/date-range.global.js":`c805446ae7bc`,"ui-elements/date-time.global.js":`8cf6f255124f`,"ui-elements/datepicker.global.js":`fb48e632b84b`,"ui-elements/mini-calendar.global.js":`7fe608356b17`,"ui-elements/drawer.global.js":`1bb7b47682f3`,"ui-elements/dropdown.global.js":`da960f9c75d9`,"ui-elements/entry-grid.global.js":`8a8795fafe5b`,"ui-elements/gantt.global.js":`15b4966678f0`,"ui-elements/image-crop.global.js":`e9dcac7744b7`,"ui-elements/inline-edit.global.js":`4bdfea1cb4f2`,"ui-elements/kanban.global.js":`c34f4e20fb9b`,"ui-elements/dashboard-grid.global.js":`3ca7ae8b393a`,"ui-elements/lead-popup.global.js":`7e312bab4e95`,"ui-elements/lightbox.global.js":`77e60627d324`,"ui-elements/org-tree.global.js":`117405031774`,"ui-elements/markdown.global.js":`cd5f15189e98`,"ui-elements/phone.global.js":`933ac8710c92`,"ui-elements/popover.global.js":`f3081700cef6`,"ui-elements/saved-views.global.js":`23d0f5b40dd1`,"ui-elements/glyphs.global.js":`8a6262dffc29`,"ui-elements/select-chips.global.js":`168d1fcc56b3`,"ui-elements/select-recents.global.js":`f4ee7cb3052a`,"ui-elements/select-search.global.js":`a5c61340275a`,"ui-elements/select-window.global.js":`cdc642d1ef83`,"ui-elements/table-export.global.js":`cbd15a8a557a`,"ui-elements/server.global.js":`4fa04a479245`,"ui-elements/shell.global.js":`0c974af094ff`,"ui-elements/slider.global.js":`3cd5c552db05`,"ui-elements/sortable.global.js":`90b69e3ad3e0`,"ui-elements/status-icon.global.js":`18aef1a567d5`,"ui-elements/timepicker.global.js":`c16c593972e0`,"ui-elements/tour.global.js":`c9bbd4ee92fd`,"ui-elements/tree.global.js":`4103638e507a`,"ui-elements/tree-picker.global.js":`501abf667aa1`,"ui-elements/wizard.global.js":`688055e68148`,"ui-chart.global.js":`3e60b2bdf273`,"ui-calendar.global.js":`e4de59e25e99`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`97495f2e4ffa`,"ui-phone.global.js":`c646775bc1d1`},Tn=new Map;for(let[e,t]of Object.entries(gn))for(let n of t.tags)Tn.set(n,e);var En=[...Tn.keys()].join(`,`),Dn=[];for(let[e,t]of Object.entries(gn))t.markers!==void 0&&Dn.push([e,t.markers]);var On=[...new Set(Dn.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],kn=null,An=``,jn=!1,Mn=null,Nn=new Map,Pn=new Map,Fn=`The file ran but did not hand over its modules; see the error above.`,In=`The file has no ready check, so the loader cannot tell whether it ran.`;function Ln(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function Rn(e=Ln()){jn||(jn=!0,kn=e?.src?e.src:null,An=e?.nonce||``,Kn(document),Mn=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&Kn(t.target);else for(let e of t.addedNodes)e instanceof Element&&Kn(e)}),Mn.observe(document.documentElement,{childList:!0,subtree:!0,...On.length>0?{attributes:!0,attributeFilter:On}:{}}))}function zn(){Mn?.disconnect(),Mn=null,jn=!1,kn=null,An=``,Nn.clear()}function Bn(e=document){return Promise.all([...Gn(e)].map(e=>P(e))).then(()=>void 0)}function Vn(e){if(kn===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,kn);return t.search=mn(wn,e)?`?v=${wn[e]}`:``,t.href}function N(e,t){vn(e),Pn.set(e,t)}function Hn(){return[...Pn.keys()]}function P(e){let t=Nn.get(e)?.promise??null;if(t!==null)return t;let n=vn(e),{tags:r}=n,i=yn(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{Mn&&Object.keys(gn).every(e=>Nn.get(e)?.status===`loaded`||Nn.get(e)?.status===`failed`)&&Mn.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(xn,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),tn(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(Sn,{detail:{chunk:e,url:c,tags:r}})),s(Error(`[webority-ui] The ${e} elements failed to load.`))},f=(t,i)=>{let o=document.createElement(`script`);o.src=t,o.async=!1,An&&(o.nonce=An),o.addEventListener(`load`,()=>{if(!n.selfContained&&!r.every(e=>customElements.get(e))){d(Error(`The file ran but did not define its elements; see the error above.`));return}if(!n.selfContained&&r.length===0&&!Pn.has(e)){d(Error(In));return}let t=Pn.get(e);t!==void 0&&!t()?d(Error(Fn)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),Cn)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=Pn.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(In));return}if(t()){u();return}if(document.readyState===`complete`){d(Error(`The page's own tag for this file ran without handing over its modules.`));return}let i=!1,o=()=>{i||(i=!0,t()?u():d(Error(Fn)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=Vn(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,Nn.set(e,o),s}function Un(e){return Tn.has(e.localName)&&!customElements.get(e.localName)}function Wn(e,t){let n=Tn.get(t.localName);n!==void 0&&Un(t)&&e.add(n)}function Gn(e){let t=new Set;e instanceof Element&&Wn(t,e);for(let n of e.querySelectorAll(En))Wn(t,n);for(let[n,r]of Dn)Nn.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function Kn(e){for(let t of Gn(e))Promise.allSettled([P(t)])}var qn={add:[[`path`,{d:`M6 12h12M12 18V6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-circle":[[`path`,{d:`M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.2v.1`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-triangle":[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"arrow-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67`}]],"arrow-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83`}]],at:[[`path`,{d:`M16 12a4 4 0 1 1-8 0 4 4 0 1 1 8 0M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],calendar:[[`path`,{d:`M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"calendar-dots":[[`path`,{d:`M8 2v3M16 2v3M16 3.5c3.33.18 5 1.45 5 6.15v6.18c0 4.12-1 6.18-6 6.18H9c-5 0-6-2.06-6-6.18V9.65c0-4.7 1.67-5.96 5-6.15h8ZM20.75 17.6H3.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 8.25c-1.23 0-2.27.67-2.27 1.97 0 .62.29 1.09.73 1.39-.61.36-.96.94-.96 1.62 0 1.24.95 2.01 2.5 2.01 1.54 0 2.5-.77 2.5-2.01 0-.68-.35-1.27-.97-1.62.45-.31.73-.77.73-1.39 0-1.3-1.03-1.97-2.26-1.97Zm0 2.84c-.52 0-.9-.31-.9-.8 0-.5.38-.79.9-.79s.9.29.9.79c0 .49-.38.8-.9.8ZM12 14c-.66 0-1.14-.33-1.14-.93 0-.6.48-.92 1.14-.92.66 0 1.14.33 1.14.92 0 .6-.48.93-1.14.93Z`,fill:`currentColor`}]],chart:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.5 18.5c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2s-2 .9-2 2v9a2 2 0 0 0 2 2ZM8.5 18.5c1.1 0 2-.9 2-2V13c0-1.1-.9-2-2-2s-2 .9-2 2v3.5a2 2 0 0 0 2 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],check:[[`path`,{d:`m5 12.75 4.5 4.5L19 7.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"check-circle":[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.75 12 2.83 2.83 5.67-5.66`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"chevron-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95`}]],"chevron-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08`}]],"chevron-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08`}]],"chevron-up":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52`}]],"chevrons-up-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17`}]],circle:[[`path`,{d:`M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],clock:[[`path`,{d:`M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],code:[[`path`,{d:`M9 13c-.66.33-1.21.82-1.62 1.43-.23.35-.23.79 0 1.14.41.61.96 1.1 1.62 1.43M15.21 13c.66.33 1.21.82 1.62 1.43.23.35.23.79 0 1.14-.41.61-.96 1.1-1.62 1.43`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],comment:[[`path`,{d:`M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.996 11h.01M11.995 11h.01M7.995 11h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],danger:[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],database:[[`path`,{d:`M18.5 12.65v3.7c0 3.12-2.91 5.65-6.5 5.65s-6.5-2.53-6.5-5.65v-3.7C5.5 15.77 8.41 18 12 18s6.5-2.23 6.5-5.35Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65c0 .91-.25 1.75-.69 2.47C16.74 11.88 14.54 13 12 13c-2.54 0-4.74-1.12-5.81-2.88-.44-.72-.69-1.56-.69-2.47 0-1.56.73-2.97 1.9-3.99C8.58 2.63 10.2 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65v5c0 3.12-2.91 5.35-6.5 5.35s-6.5-2.23-6.5-5.35v-5C5.5 4.53 8.41 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],display:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],document:[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],download:[[`path`,{d:`M9 11v6l2-2M9 17l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],edit:[[`path`,{d:`m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ellipsis:[[`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`}]],export:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8`}]],"file-text":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],files:[[`path`,{d:`M17 13.4v3c0 4-1.6 5.6-5.6 5.6H7.6c-4 0-5.6-1.6-5.6-5.6v-3.8C2 8.6 3.6 7 7.6 7h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 13.4h-3.2c-2.4 0-3.2-.8-3.2-3.2V7l6.4 6.4ZM11.6 2h4M7 5c0-1.66 1.34-3 3-3h2.62M22 8v6.19c0 1.55-1.26 2.81-2.81 2.81M22 8h-3c-2.25 0-3-.75-3-3V2l6 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],filter:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],flag:[[`path`,{d:`M5.15 2v20M5.15 4h11.2c2.7 0 3.3 1.5 1.4 3.4l-1.2 1.2c-.8.8-.8 2.1 0 2.8l1.2 1.2c1.9 1.9 1.2 3.4-1.4 3.4H5.15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],funnel:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],gauge:[[`path`,{d:`M19.14 19.5a9.964 9.964 0 0 0 2.86-7c0-5.52-4.48-10-10-10S2 6.98 2 12.5c0 2.72 1.08 5.18 2.84 6.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 21.5a3.38 3.38 0 1 0 0-6.76 3.38 3.38 0 0 0 0 6.76ZM15.25 12H16c.82 0 1.5-.67 1.5-1.5 0-.82-.68-1.5-1.5-1.5s-1.5.67-1.5 1.5v.75c0 .41.34.75.75.75Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],grid:[[`path`,{d:`M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],image:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM2.67 18.95l4.93-3.31c.79-.53 1.93-.47 2.64.14l.33.29c.78.67 2.04.67 2.82 0l4.16-3.57c.78-.67 2.04-.67 2.82 0L22 13.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],info:[[`g`,{transform:`rotate(180 12 12)`},[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 16h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]]],key:[[`path`,{d:`M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],list:[[`path`,{d:`M3 4.5h18M3 9.5h9.47M3 14.5h18M3 19.5h9.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],lock:[[`path`,{d:`M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"maximize-4":[[`path`,{d:`M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],menu:[[`path`,{d:`M3 7h18M3 12h18M3 17h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],minus:[[`path`,{d:`M6 12h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],monitor:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],moon:[[`path`,{d:`M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],music:[[`path`,{d:`M6.28 22a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.84 16.8V4.6c0-2.6-1.63-2.96-3.28-2.51l-6.24 1.7C10.18 4.1 9.4 5 9.4 6.3v12.57`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.72 19.92a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24ZM9.4 9.52 20.84 6.4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],pause:[[`path`,{d:`M10.65 19.11V4.89c0-1.35-.57-1.89-2.01-1.89H5.01C3.57 3 3 3.54 3 4.89v14.22C3 20.46 3.57 21 5.01 21h3.63c1.44 0 2.01-.54 2.01-1.89ZM21 19.11V4.89C21 3.54 20.43 3 18.99 3h-3.63c-1.43 0-2.01.54-2.01 1.89v14.22c0 1.35.57 1.89 2.01 1.89h3.63c1.44 0 2.01-.54 2.01-1.89Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],people:[[`path`,{d:`M18 7.16a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58A2.589 2.589 0 0 1 18 7.16ZM16.97 14.44c1.37.23 2.88-.01 3.94-.72 1.41-.94 1.41-2.48 0-3.42-1.07-.71-2.6-.95-3.97-.71M5.97 7.16c.06-.01.13-.01.19 0a2.573 2.573 0 0 0 2.48-2.58C8.64 3.15 7.49 2 6.06 2a2.58 2.58 0 0 0-2.58 2.58c.01 1.4 1.11 2.53 2.49 2.58ZM7 14.44c-1.37.23-2.88-.01-3.94-.72-1.41-.94-1.41-2.48 0-3.42 1.07-.71 2.6-.95 3.97-.71M12 14.63a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58c-.01 1.4-1.11 2.54-2.49 2.58ZM9.09 17.78c-1.41.94-1.41 2.48 0 3.42 1.6 1.07 4.22 1.07 5.82 0 1.41-.94 1.41-2.48 0-3.42-1.59-1.06-4.22-1.06-5.82 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],phone:[[`path`,{d:`M21.97 18.33c0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56l2.32 3.27c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],play:[[`path`,{d:`M4 12V8.44c0-4.42 3.13-6.23 6.96-4.02l3.09 1.78 3.09 1.78c3.83 2.21 3.83 5.83 0 8.04l-3.09 1.78-3.09 1.78C7.13 21.79 4 19.98 4 15.56V12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],printer:[[`path`,{d:`M7.25 7h9.5V5c0-2-.75-3-3-3h-3.5c-2.25 0-3 1-3 3v2ZM16 15v4c0 2-1 3-3 3h-2c-2 0-3-1-3-3v-4h8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21 10v5c0 2-1 3-3 3h-2v-3H8v3H6c-2 0-3-1-3-3v-5c0-2 1-3 3-3h12c2 0 3 1 3 3ZM17 15H7M7 11h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],refresh:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44`}]],"rotate-ccw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32L10.76 2M7.87 5.32l3.37 2.46`}]],"rotate-cw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32L13.24 2M16.13 5.32l-3.37 2.46`}]],search:[[`path`,{d:`M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],send:[[`path`,{d:`m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],server:[[`path`,{d:`M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sort:[[`path`,{d:`M3 7h18M6 12h12M10 17h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],stop:[[`path`,{d:`M9.3 21h5.4c4.5 0 6.3-1.8 6.3-6.3V9.3C21 4.8 19.2 3 14.7 3H9.3C4.8 3 3 4.8 3 9.3v5.4C3 19.2 4.8 21 9.3 21Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],subtitle:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM17.5 17.08h-1.85M12.97 17.08H6.5M17.5 13.32h-5.53M9.27 13.32H6.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sun:[[`path`,{d:`M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m19.14 19.14-.13-.13m0-14.02.13-.13-.13.13ZM4.86 19.14l.13-.13-.13.13ZM12 2.08V2v.08ZM12 22v-.08.08ZM2.08 12H2h.08ZM22 12h-.08.08ZM4.99 4.99l-.13-.13.13.13Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],tag:[[`path`,{d:`m4.405 15.526 4.53 4.53a4.78 4.78 0 0 0 6.75 0l4.39-4.39a4.78 4.78 0 0 0 0-6.75l-4.54-4.52a4.75 4.75 0 0 0-3.6-1.39l-5 .24c-2 .09-3.59 1.68-3.69 3.67l-.24 5c-.06 1.35.45 2.66 1.4 3.61Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.735 12.226a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`m13.235 17.226 4-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],text:[[`path`,{d:`M2.67 7.17V5.35c0-1.15.93-2.07 2.07-2.07h14.52c1.15 0 2.07.93 2.07 2.07v1.82M12 20.72V4.11M8.06 20.72h7.88`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"two-page":[[`path`,{d:`M22 16.74V4.67c0-1.2-.98-2.09-2.17-1.99h-.06c-2.1.18-5.29 1.25-7.07 2.37l-.17.11c-.29.18-.77.18-1.06 0l-.25-.15C9.44 3.9 6.26 2.84 4.16 2.67 2.97 2.57 2 3.47 2 4.66v12.08c0 .96.78 1.86 1.74 1.98l.29.04c2.17.29 5.52 1.39 7.44 2.44l.04.02c.27.15.7.15.96 0 1.92-1.06 5.28-2.17 7.46-2.46l.33-.04c.96-.12 1.74-1.02 1.74-1.98ZM12 5.49v15M7.75 8.49H5.5M8.5 11.49h-3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],user:[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-high":[[`path`,{d:`M2 10v4c0 2 1 3 3 3h1.43c.37 0 .74.11 1.06.3l2.92 1.83c2.52 1.58 4.59.43 4.59-2.54V7.41c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3Z`,stroke:`currentColor`,"stroke-width":`1.5`}],[`path`,{d:`M18 8a6.66 6.66 0 0 1 0 8M19.83 5.5a10.83 10.83 0 0 1 0 13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-mute":[[`path`,{d:`M15 8.37v-.96c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3v4c0 2 1 3 3 3h2M10.41 19.13c2.52 1.58 4.59.43 4.59-2.54v-3.64M18.81 9.42c.9 2.15.63 4.66-.81 6.58M21.15 7.8a10.82 10.82 0 0 1-1.32 10.7M22 2 2 22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],x:[[`path`,{d:`M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-in":[[`path`,{d:`M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-out":[[`path`,{d:`M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]},Jn=n({svgNodes:()=>Xn,svgRoot:()=>Zn}),Yn=`http://www.w3.org/2000/svg`;function Xn(e){return e.map(Qn)}function Zn(e,t){let n=document.createElementNS(Yn,`svg`);return $n(n,e),n.append(...Xn(t)),n}function Qn(e){let[t,n,r]=e,i=document.createElementNS(Yn,t);return $n(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...Xn(r)),i}function $n(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}var er=n({GLYPH_CHUNK:()=>tr,GLYPH_PENDING_ATTRIBUTE:()=>nr,glyphNode:()=>F,lazyGlyphsRegistered:()=>pr,registerGlyphs:()=>mr}),tr=`glyphs`,nr=`data-wui-glyph-pending`,rr=`svg[${nr}]`,ir=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,ar={...qn},or=new Map,sr=!1,cr=!1,lr=null;function ur(e){return mn(ar,e)?ar[e]:void 0}function dr(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[nr]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function F(e,{size:t=16,className:n=``}={}){let r=ur(e);if(r!==void 0){let i=`${e}|${t}|${n}`,a=or.get(i);return a===void 0&&(a=Zn(dr(e,t,n,!1),r),or.set(i,a)),Ue(a.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return sr||!ir.test(e)?null:(Promise.allSettled([P(tr)]),Zn(dr(e,t,n,!0),[]))}function fr(e){let t=e instanceof Element&&e.matches(rr)?[e]:[];for(let n of[...t,...e.querySelectorAll(rr)]){let e=ur(n.getAttribute(`data-icon`)??``);e===void 0?n.remove():(n.removeAttribute(nr),n.replaceChildren(...Xn(e)))}}function pr(){return cr}function mr(e){Object.assign(ar,e),sr=!0,cr=!0,fr(document),lr===null&&(lr=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&fr(e)}),lr.observe(document.documentElement,{childList:!0,subtree:!0}))}var hr=n({isImeComposing:()=>gr,isImeSafeEnter:()=>_r});function gr(e){return e.isComposing||e.keyCode===229}function _r(e){return e.key===`Enter`&&!gr(e)}var vr=n({createListboxKeyNav:()=>br,moveActiveRow:()=>xr}),yr=e=>e.target instanceof Element?e.target.tagName:void 0;function br(e){let{getVisibleOptions:t,getActive:n,setActive:r,onEnter:i,onEscape:a,onTypeahead:o,typeaheadMs:s=500,getCount:c,getOptionAt:l,findByPrefix:u}=e,d=``,f=null,p=()=>{clearTimeout(f??void 0),f=null,d=``};return{handler:e=>{let m=c?[]:t(),h=c?c():m.length,g=()=>c?t():m,_=n(),v=yr(e)===`INPUT`||yr(e)===`TEXTAREA`;if(e.key===`ArrowDown`)e.preventDefault(),r(Math.min(_+1,h-1));else if(e.key===`ArrowUp`)e.preventDefault(),r(Math.max(_-1,0));else if(e.key===`Home`&&!v)e.preventDefault(),h&&r(0);else if(e.key===`End`&&!v)e.preventDefault(),h&&r(h-1);else if(e.key===`PageDown`&&!v){if(e.preventDefault(),!h)return;r(Math.min(Math.max(0,_)+8,h-1))}else if(e.key===`PageUp`&&!v){if(e.preventDefault(),!h)return;r(Math.max(Math.max(0,_)-8,0))}else if(_r(e))i&&(e.preventDefault(),i(l?l(_):m[_],g()));else if(e.key===`Escape`)a&&a(e);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&yr(e)!==`INPUT`&&yr(e)!==`TEXTAREA`){e.preventDefault(),clearTimeout(f??void 0),d+=e.key.toLowerCase(),f=setTimeout(p,s);let t=u?u(d,Math.max(0,_)):m.findIndex(e=>e.textContent.trim().toLowerCase().startsWith(d));t>=0&&(r(t),o&&o(e.key,t,g()))}},clearTypeahead:p}}function xr(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var Sr=n({TRUSTED_LABEL:()=>Cr,optionLabelNodes:()=>kr,optionText:()=>Ar,stripTags:()=>Er,withTrustedLabel:()=>wr}),Cr=Symbol(`wui.trustedLabel`),wr=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[Cr]:n}},Tr=e=>`wui-flag wui-flag-${e}`,Er=e=>String(e??``).replace(/<[^>]*>/g,``),Dr=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?F(t):null},Or=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?O(`span`,{class:Tr(t),"aria-hidden":`true`}):null};function kr(e){if(e==null)return[];let t=Or(e.flag),n=Dr(e.icon),r=e[Cr],i=r?[...r.cloneNode(!0).childNodes]:[document.createTextNode(String(e.label??``))];return!t&&!n?i:[O(`span`,{class:`wui-opt-label`},t,n,...i)]}var Ar=e=>{if(e==null)return``;let t=e[Cr];return t?t.textContent??``:Er(e.label)},jr=n({SELECT_TEXT:()=>Mr}),Mr={addLabel:`Add '{query}'`,addTagsLabel:`Add tags`,allCountriesLabel:`All countries`,clearAllLabel:`Clear all`,clearSelectionLabel:`Clear selection`,countryPlaceholder:`Select country`,countrySearchPlaceholder:`Search countries…`,createLabel:`Create '{text}'`,defaultSearchPlaceholder:`Search {labelText}…`,emptyText:`No matches`,fallbackName:`Select`,helpLabel:`More information`,hintText:`Type to search…`,invalidMessage:`That option is not available.`,optionalLabel:`(optional)`,partLoadMessage:`This control could not load. Reload the page.`,placeholder:`Select…`,recentsLabel:`Recent`,removeText:`Remove {text}`,searchingText:`Searching…`,selectedText:`{count} selected`,suggestedLabel:`Suggested`,tagPlaceholder:`Add…`},Nr=n({clearOptions:()=>Vr,drawn:()=>Ir,filterOptions:()=>Fr,nodesSignature:()=>Rr,optionRow:()=>Yr,posAttrMap:()=>Lr,refreshWindow:()=>Gr,registerWindowImpl:()=>Br,renderOptions:()=>Hr,revealRow:()=>Kr,rowId:()=>Ur,rowIndexByPrefix:()=>Jr,rowIndexOfValue:()=>qr,windowImplRegistered:()=>zr}),Pr=()=>k(`select`,Mr);function Fr(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[Ar(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Ir=new WeakMap,Lr=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},Rr=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),I;function zr(){return I!==void 0}function Br(e){I=e}function Vr(e){I?.clear(e),Ir.delete(e),e.replaceChildren()}function Hr(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=Pr().emptyText,searchingText:s=Pr().searchingText,hintText:c=Pr().hintText,actionRow:l=[],recents:u=null}=n,d=new Set(r.map(String)),f=Fr(t,i),p=e.id,m=l.filter(e=>e.position===`top`),h=l.filter(e=>e.position===`bottom`),g=u?.options.length?u.options:[],_=m.length+g.length+f.length+h.length,v=f.length>300,y=I,b=v&&y!==void 0,x=e=>b?{index:e,size:_}:void 0,S=0,ee=e=>{let t=S++;return O(`button`,{type:`button`,role:`option`,id:Ur(p,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Lr(x(t))},e.label)},te=e=>{let t=S++;return Yr(e,Ur(p,t),d.has(String(e.value)),x(t))},C=m.map(ee),ne=g.length&&u?[O(`div`,{class:`wui-select-group`},u.label),...g.map(te),O(`div`,{class:`wui-select-sep`,"aria-hidden":`true`})]:[],re=S,ie=[];if(b)S+=f.length;else{let e=``;for(let t of f)t.group&&t.group!==e&&ie.push(O(`div`,{class:`wui-select-group`},t.group)),e=t.group??``,ie.push(te(t))}let w=h.map(ee),T=[];if(a===`loading`?T=[O(`div`,{class:`wui-select-loading`},O(`span`,{class:`wui-select-spinner spinner-border spinner-border-sm`,role:`status`,"aria-hidden":`true`}),s)]:a===`hint`?T=[O(`div`,{class:`wui-select-hint`},c)]:(a===`empty`||f.length===0&&l.length===0)&&(T=[O(`div`,{class:`wui-select-empty`},o)]),b&&y){let n=[...C,...ne],r=[...w,...T];return y.render(e,{options:t,query:i,rows:f,pre:n,post:r,preSig:Rr(n),postSig:Rr(r),picked:d,top:m,recent:g,bottom:h,bodyBase:re,total:_}),{rows:_,windowed:!0,long:v}}y?.clear(e);let ae=[...C,...ne,...ie,...w,...T],oe=Rr(ae);return Ir.get(e)===oe||(Ir.set(e,oe),e.replaceChildren(...ae)),{rows:S,windowed:!1,long:v}}var Ur=(e,t)=>`${e}-opt-${t}`,Wr=e=>[...e.querySelectorAll(`.wui-select-option`)];function Gr(e){return I?I.refresh(e):!1}function Kr(e,t){return I?I.reveal(e,t):Wr(e)[t]??null}function qr(e,t){if(I)return I.indexOfValue(e,t);let n=new Set(t.map(String));return Wr(e).findIndex(e=>n.has(e.dataset.value??``))}function Jr(e,t){return I?I.indexByPrefix(e,t):Wr(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function Yr(e,t,n,r){let i=!!e.disabled,a={id:t,role:`option`,"data-value":String(e.value??``),"aria-selected":String(n),"aria-disabled":i?`true`:void 0,title:i&&e.disabledHint?e.disabledHint:void 0,...Lr(r)},o=O(`span`,{class:`wui-select-check`,"aria-hidden":`true`},F(`check`));if(!e.description&&!e.meta)return O(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},Qt(e),O(`span`,{class:`wui-select-opt-name`},...kr(e)),o);let s=e.description?O(`span`,{class:`wui-select-opt-desc`},e.description):null,c=e.meta?O(`span`,{class:`wui-select-opt-meta`},e.meta):null;return O(`div`,{class:`wui-select-option wui-select-option-rich${n?` selected`:``}`,...a},Qt(e),O(`span`,{class:`wui-select-option-text`},O(`span`,{class:`wui-opt-label`},...kr(e)),s),c,o)}var Xr=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),L=e=>e===`multiple`||e===`tag`,Zr=n({registerSelectPart:()=>$r,selectPart:()=>ei}),Qr=new Map;function $r(e,t){Qr.set(e,t)}function ei(e){return Qr.get(e)}var ti={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function ni(e){let t=mn(ti,e)?ti[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=ei(e);return n?Promise.resolve(n):P(t).then(()=>D(ei(e),`The ${e} part of <wui-select> did not register.`))}var ri=n({searchesRemotely:()=>ii}),ii=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),ai=()=>P(`select-window`),oi={requiredFieldMessage:`Please fill in this field.`},si={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},ci=n({WuiSelect:()=>di}),R=()=>k(`select`,Mr),li=()=>k(`search`,si),ui=()=>k(`field`,oi),di=class extends s{static get observedAttributes(){return`class.mode.value.placeholder.search-placeholder.empty-text.searchable.clearable.disabled.readonly.loading.required.size.density.icon.prefix.open.open-on-hover.lazy-options.aria-label.aria-describedby.aria-invalid.min-chars.debounce.source.remote.allow-custom.add-label.searching-text.hint-text.value-label.value-avatar.value-initials.max-tags.allow-duplicates.separators.pattern.invalid-message.create-label.collapse-chips.selected-text.clear-all-label.countries.suggested.suggested-label.all-countries-label.recents-key.recents-limit.recents-label`.split(`.`)}constructor(){super(),j(this,`_internals`,void 0),j(this,`_value`,void 0),j(this,`_optionsProp`,void 0),j(this,`_partOptions`,void 0),j(this,`_known`,void 0),j(this,`_loadOptionsFn`,void 0),j(this,`_validateFn`,void 0),j(this,`_declared`,void 0),j(this,`_query`,void 0),j(this,`_ownsFilter`,void 0),j(this,`_active`,void 0),j(this,`_rows`,void 0),j(this,`_windowed`,void 0),j(this,`_windowLoad`,void 0),j(this,`_windowFailed`,void 0),j(this,`_scrollFrame`,void 0),j(this,`_status`,void 0),j(this,`_error`,void 0),j(this,`_nav`,void 0),j(this,`_parts`,void 0),j(this,`_partSig`,void 0),j(this,`_partsMounted`,void 0),j(this,`_partToken`,void 0),j(this,`_rendered`,void 0),j(this,`_searchShown`,void 0),j(this,`_defaultValue`,void 0),j(this,`_warnedMode`,void 0),j(this,`_warnedDensity`,void 0),j(this,`_hoverTimer`,void 0),j(this,`_hoverOpened`,void 0),j(this,`_onHoverOver`,void 0),j(this,`_onHoverOut`,void 0),j(this,`_panelShown`,void 0),j(this,`_pressOpen`,void 0);try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=``,this._optionsProp=null,this._partOptions=null,this._known=new Map,this._loadOptionsFn=null,this._validateFn=null,this._declared=void 0,this._query=``,this._ownsFilter=!1,this._active=-1,this._rows=0,this._windowed=!1,this._windowLoad=null,this._windowFailed=!1,this._scrollFrame=null,this._status=`idle`,this._error=``,this._nav=null,this._parts=null,this._partSig=``,this._partsMounted=!1,this._partToken=0,this._rendered=!1,this._searchShown=!1,this._defaultValue=void 0,this._warnedMode=null,this._hoverTimer=null,this._hoverOpened=!1,this._panelShown=!1,this._pressOpen=null,this._onHoverOver=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&(this._clearHover(),!this._menuOpen()&&this._hoverEligible()&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,!this._menuOpen()&&this._hoverEligible()&&(this._open({focus:!1}),this._hoverOpened=!0)},hi)))},this._onHoverOut=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&!this._hoverZone(e.relatedTarget)&&(this._clearHover(),this._menuOpen()&&this.hasAttribute(`open-on-hover`)&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,this._close()},gi)))}}connectedCallback(){this.addEventListener(`pointerover`,this._onHoverOver),this.addEventListener(`pointerout`,this._onHoverOut),this._rendered||this.render(),this._ensureParts(),this._mountParts()}disconnectedCallback(){this.removeEventListener(`pointerover`,this._onHoverOver),this.removeEventListener(`pointerout`,this._onHoverOut),this._clearHover(),this._dropMenu(),this._teardown(),this._teardownParts()}attributeChangedCallback(e,t,n){e===`class`?this._syncUnderline():e===`value`?(this._value=Si(n,L(this.mode)),this._applyValue()):e===`aria-invalid`?this._syncInvalid():e===`open`?this._rendered&&(this.hasAttribute(`open`)?this._open({focus:!1}):this._close({force:!0})):e===`open-on-hover`?this.hasAttribute(`open-on-hover`)||this._clearHover():e!==`lazy-options`&&(e===`mode`&&(this._value=Si(this._value,L(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),bi.has(e)?this._rendered&&(this._drawValue(),this.renderList()):yi.has(e)?this._remountParts():this._rendered&&this.render())}formResetCallback(){if(this.value=this._defaultValue??``,!this._rendered)return;let e=this._refs();e.input&&(e.input.value=``,e.input.removeAttribute(`aria-invalid`)),e.search&&(e.search.value=``),this.setError(``),this._query!==``&&this._onQueryChange(``)}get mode(){let e=this.getAttribute(`mode`);return e===null?`single`:pi(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,en(`<wui-select> mode "${e}" is not one of ${Xr.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||mi.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,en(`<wui-select> density "${e}" is not one of ${mi.join(`, `)}; it is treated as "comfortable".`))}set mode(e){this.setAttribute(`mode`,String(e))}get value(){return Array.isArray(this._value)?this._value.slice():this._value}set value(e){this._value=Si(e,L(this.mode)),this._applyValue()}get options(){return this._readOptions()}set options(e){this._optionsProp=Array.isArray(e)?e:null,this.mode!==`country`&&(this._partOptions=null);for(let e of this._activePartsList())e.onOptions?.();if(this._rendered){if(this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._autoSearch()!==this._searchShown){this.render();return}this._drawValue(),this.renderList()}}get loadOptions(){return this._loadOptionsFn}set loadOptions(e){this._loadOptionsFn=typeof e==`function`?e:null,this._ensureParts()}get validate(){return this._validateFn}set validate(e){this._validateFn=typeof e==`function`?e:null}commit(e,t={}){this.value=e,this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,detail:{isCustom:!!t.isCustom}}))}setPartOptions(e){this._partOptions=Array.isArray(e)?e:null,this._drawValue(),this.renderList()}setStatus(e){this._status=e,this.renderList()}setError(e){this._error=e?String(e):``,this._syncError()}openMenu(){M(this)||this._open({focus:!1})}closeMenu({focusControl:e=!1}={}){this._close(),e&&this._refs().control?.focus()}renderList(){let e=this._refs();if(!e.list)return;let t=this._ownsFilter?``:this._query,n=this._actionRows(),r=this._recents();if(this.hasAttribute(`lazy-options`)&&!this._menuOpen()){this._rows=Fr(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,Vr(e.list),this._anchorMenu();return}let i=Hr(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||R().emptyText,searchingText:this.getAttribute(`searching-text`)||R().searchingText,hintText:this.getAttribute(`hint-text`)||void 0,actionRow:n,recents:r});this._rows=i.rows,this._windowed=i.windowed,i.long&&!i.windowed&&!this._windowFailed&&this._loadWindow(),this._active>=this._rowCount()&&(this._active=-1),this._active>=0&&this._setActive(this._active,{reveal:!1}),this._anchorMenu()}render(){this._dropMenu();let e=this._carry();this._teardownParts(),this._snapshotDeclared();let t=this.mode;this._checkDensity();let n=L(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=Si(this._value,n),this._defaultValue===void 0&&n&&this._value.length===0&&(this._value=this._declaredSelected()),n||this._preselect(),this._defaultValue===void 0&&(this._defaultValue=Si(this._value,n));let a=this.getAttribute(`size`),o=a===`sm`?` wui-select-sm`:a===`lg`?` wui-select-lg`:a===`xl`?` wui-select-xl`:``,s=this.getAttribute(`icon`),c=this.getAttribute(`prefix`),l=this.hasAttribute(`clearable`),u=this.hasAttribute(`disabled`);if(!this.id){let e=crypto.getRandomValues(new Uint8Array(8));this.id=`wui-select-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}let d=`${this.id}-listbox`,f=`${this.id}-entry-error`,p=this.getAttribute(`aria-describedby`)?.trim(),m=p?`${p} ${f}`:f,h=this.hasAttribute(`aria-invalid`)||!!this._error,g=this.hasAttribute(`required`)&&!i,_=this._accessibleName(),v=i?{}:{role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":`false`,"aria-controls":d},y={"aria-label":_,"aria-describedby":m,"aria-invalid":h?`true`:void 0,"aria-required":g?`true`:void 0},b=n?O(`div`,{class:`input wui-select-control wui-select-multi`,...v,...y,"aria-disabled":u?`true`:void 0,tabindex:!u&&!r?`0`:void 0}):O(`button`,{type:`button`,class:`input wui-select-control`,...v,...y,disabled:u||void 0}),x=[s?F(s,{className:`wui-select-icon`}):null,c?O(`span`,{class:`wui-select-prefix`},c):null,O(`span`,{class:`wui-select-value`,"data-label":!0}),l?O(`span`,{class:`wui-select-reset`,role:`button`,"aria-label":R().clearSelectionLabel,hidden:!0},F(`x`)):null,F(`chevron-down`,{className:`wui-select-caret`})];b.append(...x.filter(e=>e!==null));let S=this.getAttribute(`searchable`),ee=S===null?t===`multiple`||t===`country`||this._autoSearch():S!==`false`,te=t===`search`||ee&&!i;this._searchShown=te;let C=this.getAttribute(`search-placeholder`)||(t===`country`?R().countrySearchPlaceholder:li().placeholder),ne=O(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},te?O(`div`,{class:`wui-select-search`},F(`search`),O(`input`,{class:`wui-select-input`,placeholder:C,"aria-label":C,"aria-autocomplete":`list`}),O(`button`,{type:`button`,class:`wui-select-clear`,"aria-label":li().clearLabel,hidden:!0},F(`x`))):null,O(`div`,{class:`wui-select-options`,role:`listbox`,id:d,tabindex:`-1`,"aria-multiselectable":n?`true`:void 0})),re=O(`div`,{class:`field-error wui-select-error`,id:f,"aria-live":`polite`,hidden:!this._error||void 0},this._error||null);this.replaceChildren(O(`div`,{class:`wui-select${o}`},b,ne),re),this._rendered=!0,this._syncMirror(),this._syncValidity(),this._drawValue(),this._syncReset(),this.renderList(),this._wire(),on(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||R().fallbackName}_snapshotDeclared(){if(this._declared)return;let e=[...this.querySelectorAll(`:scope > wui-option`)];e.length&&(this._declared=e.map(e=>{let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));let n={value:e.getAttribute(`value`)??Oi(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of xi){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),wr(n,t)}))}_readOptions(){return this.mode===`country`?this._partOptions||[]:this._partOptions?this._partOptions:this._optionsProp?this._optionsProp:(this._snapshotDeclared(),this._declared||[])}_listOptions(){let e=this._readOptions(),t=this.getAttribute(`value-label`);if(this.mode!==`search`||!t||this._value===``)return e;let n=String(this._value);return e.some(e=>String(e.value)===n)?e:[...e,{value:n,label:t}]}_declaredSelected(){return this._optionsProp?[]:(this._declared??[]).filter(e=>e.selected).map(e=>String(e.value))}_preselect(){let e=this._readOptions(),t=this._value!==``&&e.find(e=>String(e.value)===this._value)||e.find(e=>`selected`in e&&!!e.selected);t&&(this._value=String(t.value))}_optionFor(e){let t=String(e),n=this._readOptions().find(e=>String(e.value)===t);return n?(this._known.set(t,n),n):this._known.get(t)}_placeholder(){return this.getAttribute(`placeholder`)||vi()[this.mode]}_hasValue(){return Array.isArray(this._value)?this._value.length>0:this._value!==``}_selectedValues(){return Array.isArray(this._value)?this._value:this._value===``?this._listOptions().some(e=>String(e.value)===``)?[``]:[]:[this._value]}_applyValue(){this._syncMirror(),this._syncValidity(),this._rendered&&(this._drawValue(),this._syncReset(),this.renderList())}_syncMirror(){L(this.mode)?fn(this,this._selectedValues()):dn(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=L(this.mode),n=t?void 0:this._optionFor(this._value);if(this._syncTitle(n),this._syncValueAvatar(),this._activePartsList().some(e=>e.renderValue?.()===!0))return;if(t){e.value.classList.remove(`wui-select-placeholder`),e.value.textContent=``;return}e.value.classList.toggle(`wui-select-placeholder`,!n);let r=this._placeholder();e.value.replaceChildren(...n?kr(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?Ar(e).trim():``;n?t.setAttribute(`title`,n):t.removeAttribute(`title`)}_syncValueAvatar(){let e=this.querySelector(`.wui-select-control`);if(!e)return;e.querySelector(`:scope > .wui-select-value-avatar`)?.remove();let t=!L(this.mode)&&this._hasValue()?Qt({avatar:this.getAttribute(`value-avatar`),initials:this.getAttribute(`value-initials`)},`avatar-xs`):null;e.classList.toggle(`wui-has-value-avatar`,!!t),t&&e.prepend(O(`span`,{class:`wui-select-value-avatar`,"aria-hidden":`true`},t))}_syncValidity(){let e=this._internals;if(typeof e?.setValidity==`function`){if(this.hasAttribute(`required`)&&!this._hasValue()){let t=this.querySelector(`.wui-select-control`);e.setValidity({valueMissing:!0},ui().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=z(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!M(this)))}_syncUnderline(){this.querySelector(`.wui-select-control`)?.classList.toggle(`wui-input-underline`,this.classList.contains(`wui-input-underline`))}_syncInvalid(){let e=this.querySelector(`.wui-select-control`);e&&(this.hasAttribute(`aria-invalid`)||this._error?e.setAttribute(`aria-invalid`,`true`):e.removeAttribute(`aria-invalid`))}_syncError(){let e=z(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:z(this,`.wui-select-control`,HTMLElement),value:z(this,`.wui-select-value`,HTMLElement),menu:z(this,`.wui-select-menu`,HTMLElement),list:z(this,`.wui-select-options`,HTMLElement),search:z(this,`.wui-select-search input`,HTMLInputElement),input:z(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=z(this,`.wui-select-menu`,HTMLElement);return e!==null&&E(e)}_hoverZone(e){if(!(e instanceof Element))return!1;let t=e.closest(`.wui-select-control, .wui-select-menu`);return t!==null&&this.contains(t)}_hoverEligible(){if(!this.hasAttribute(`open-on-hover`)||M(this)||this.mode===`tag`)return!1;let e=this._refs();return e.search===null&&e.input===null}_clearHover(){this._hoverTimer!==null&&clearTimeout(this._hoverTimer),this._hoverTimer=null}_autoSearch(){return this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._readOptions().length>_i}_visible(){let e=this._refs();return e.list?Di(e.list,`.wui-select-option`):[]}_rowCount(){return this._windowed?this._rows:this._visible().length}_rowEl(e){if(!this._windowed)return this._visible()[e];let t=this._refs().list?.querySelector(`[data-index="${e}"]`);return t instanceof HTMLElement?t:void 0}_setActive(e,{reveal:t=!0}={}){let n=this._refs();if(!n.list||!n.control)return;this._active=e;let r=null;e>=0&&e<this._rowCount()&&(r=this._rowEl(e)??(this._windowed&&t?Kr(n.list,e):null)),xr(n.list,r),r?(t&&r.scrollIntoView({block:`nearest`}),n.control.setAttribute(`aria-activedescendant`,r.id)):n.control.removeAttribute(`aria-activedescendant`)}_onListScroll(){this._scrollFrame=null;let e=this._refs().list;e&&Gr(e)&&this._active>=0&&this._setActive(this._active,{reveal:!1})}_actionRows(){let e=[];for(let t of this._activePartsList()){let n=t.actionRow?.(this._query);n&&e.push(n)}return e}_recents(){if(this._query.trim()!==``)return null;for(let e of this._activePartsList()){let t=e.recents?.(this._listOptions());if(t)return t}return null}_menuPlacement(e,t){let n=this.hasAttribute(`open`)?{below:!0}:{};if(this.getAttribute(`density`)!==`compact`)return{matchWidth:!0,...n};let r=e.getBoundingClientRect();return t.style.width=`max-content`,t.style.minWidth=`${r.width}px`,t.style.maxWidth=`280px`,n}_anchorMenu(){let e=this._refs();e.control&&e.menu&&this._menuOpen()&&C(e.control,e.menu,this._menuPlacement(e.control,e.menu))}_showMenu(e,t){Pe(e,t,{...this._menuPlacement(e,t),mode:`auto`,keepOffscreen:this.hasAttribute(`open`),onClosed:()=>this._onPanelClosed()}),this._panelShown=!0}_onPanelClosed(){if(!this._panelShown)return;this._panelShown=!1;let e=this._refs();e.control&&(e.control.setAttribute(`aria-expanded`,`false`),this._setActive(-1),this._nav?.clearTypeahead(),this.dispatchEvent(new CustomEvent(`wui-select:close`,{bubbles:!0})))}_open({focus:e=!0}={}){let t=this._refs();if(!t.menu||!t.control)return;let n=this._menuOpen();this._hoverOpened=!1,t.control.setAttribute(`aria-expanded`,`true`),this._query=t.input?t.input.value:``,this._ownsFilter=this._ownsFilter&&this._query!==``;let r=z(this,`.wui-select-search .wui-select-clear`,HTMLElement);if(r&&(r.hidden=!0),t.search&&(t.search.value=``),n||this._showMenu(t.control,t.menu),this.renderList(),e&&(t.search?.focus(),this._setActive(this._windowed&&t.list?qr(t.list,this._selectedValues()):this._visible().findIndex(e=>e.classList.contains(`selected`)))),!n){this.dispatchEvent(new CustomEvent(`wui-select:open`,{bubbles:!0}));for(let e of this._activePartsList())e.onOpen?.()}}_close({force:e=!1}={}){if(!e&&this.hasAttribute(`open`))return;let t=this._refs();if(!t.menu||!t.control)return;this._hoverOpened=!1;let n=t.menu.contains(document.activeElement);E(t.menu)&&Fe(t.menu),this._onPanelClosed(),n&&t.control.focus()}_onQueryChange(e){this._query=e,this._setActive(-1);let t=z(this,`.wui-select-search .wui-select-clear`,HTMLElement);t&&(t.hidden=!e);let n=!1;for(let t of this._activePartsList())t.onQuery?.(e)===!0&&(n=!0);this._ownsFilter=n,this.renderList()}_pick(e){if(e.getAttribute(`aria-disabled`)===`true`)return;let t=e.dataset.custom===`true`,n=e.dataset.value??``,r=t?{value:n,label:Oi(e).trim()}:this._listOptions().find(e=>String(e.value)===n)??{value:n,label:n},i=this._activePartsList().some(e=>e.onPick?.(r,{isCustom:t})===!0);L(this.mode)||(i||this.commit(n,{isCustom:t}),this._close(),this._refs().control?.focus())}_draftOpens(){return this.mode===`multiple`?this.hasAttribute(`allow-custom`):this.mode===`tag`&&ii(this)}_onKeyDown(e){if(!M(this)){for(let t of this._activePartsList())if(t.onKey?.(e)===!0)return;if(!this._menuOpen()){if(e.target instanceof HTMLInputElement){if(e.key!==`ArrowDown`||!this._draftOpens())return;this._open({focus:!1})}else{(e.key===`ArrowDown`||_r(e)||e.key===` `)&&(e.preventDefault(),this._open({focus:!0}));return}}D(this._nav,`Listbox keys are not wired.`).handler(e)}}_wire(){this._teardown();let e=this._refs(),t=e.control,n=e.list;if(!t||!e.menu||!n)return;let r=D(z(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=z(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=z(this,`.wui-select-reset`,HTMLElement);this._nav=br({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?Jr(n,e):this._visible().findIndex(t=>t.textContent.trim().toLowerCase().startsWith(e)),onEnter:(e,t)=>{if(e)this._pick(e);else if(this._query.trim()!==``){let e=t.find(e=>e.dataset.custom===`true`);if(e)this._pick(e);else if(t.length===1){let e=t[0];e&&this._pick(e)}}},onEscape:e=>{e.preventDefault(),this._nav?.clearTypeahead(),this._close(),t.focus()}}),r.addEventListener(`keydown`,e=>this._onKeyDown(e)),r.addEventListener(`input`,e=>{let t=e.target;if(!(t instanceof HTMLInputElement)||!t.matches(`.wui-select-input, .wui-select-draft`))return;this._onQueryChange(t.value);let n=t.matches(`.wui-select-draft`),r=this._rows>0||this._actionRows().length>0;n&&r&&!this._menuOpen()&&!M(this)&&this._draftOpens()&&this._open({focus:!1})}),r.addEventListener(`focusout`,e=>{let t=e.relatedTarget;t instanceof Node&&this.contains(t)||!this._activePartsList().some(e=>e.onBlur?.()===!0)&&t&&this._close()}),i?.addEventListener(`click`,()=>{let t=D(e.search,`The search input is missing.`);t.value=``,this._onQueryChange(``),t.focus()}),t.addEventListener(`pointerdown`,()=>{this._pressOpen=this._menuOpen()}),t.addEventListener(`click`,e=>{if(e.target instanceof Element&&e.target.closest(`[data-remove]`))return;if(this.mode===`tag`){if(M(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!M(this)&&this._open({focus:!1});return}let t=e.detail>0&&this._pressOpen!==null?this._pressOpen:this._menuOpen();this._pressOpen=null,this._clearHover(),this._hoverOpened&&t?(this._hoverOpened=!1,this._open({focus:!0})):t?this._close():M(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(L(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=Ei(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),L(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{L(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=Ei(e).closest(`.wui-select-option`);t instanceof HTMLElement&&!t.classList.contains(`is-active`)&&this._setActive(this._windowed?Number(t.dataset.index):this._visible().indexOf(t),{reveal:!1})}),n.addEventListener(`scroll`,()=>{this._windowed&&this._scrollFrame===null&&(this._scrollFrame=requestAnimationFrame(()=>this._onListScroll()))},{passive:!0}),n.addEventListener(`mouseleave`,()=>this._setActive(-1)),n.addEventListener(`error`,e=>{let t=e.target;t instanceof Element&&t.classList.contains(`avatar-img`)&&t.remove()},!0),this.hasAttribute(`open`)&&this._open({focus:!1})}_teardown(){this._nav?.clearTypeahead(),this._scrollFrame!==null&&cancelAnimationFrame(this._scrollFrame),this._scrollFrame=null}_dropMenu(){let e=z(this,`.wui-select-menu`,HTMLElement);e&&Fe(e)}_activePartsList(){return this._partsMounted?D(this._parts,`The mounted parts are missing.`):[]}_ensureParts(){if(!this.isConnected)return;(this.hasAttribute(`source`)||this.hasAttribute(`remote`)||this.hasAttribute(`recents-key`)||this._loadOptionsFn!==null)&&this._loadWindow();let e=wi(this,this.mode),t=e.join(`,`);if(t===this._partSig)return;this._teardownParts(),this._parts=null,this._partSig=t;let n=++this._partToken;Promise.all(e.map(e=>ki(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=ai().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(R().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=fi(this._refs());for(let n of this._parts)n.mount(this,t,{carry:e});this._drawValue(),this.renderList()}_teardownParts(){let e=this._activePartsList();this._partsMounted=!1;for(let t of e)t.teardown()}_remountParts(){if(!this._partsMounted)return;let e=this._carry();this._teardownParts(),this._mountParts(e)}_carry(){let e=this._refs();return{draft:e.input?.value??``,query:e.search?.value??``}}};j(di,`formAssociated`,!0);var fi=e=>{let{control:t,value:n,menu:r,list:i}=e;return{control:D(t,`control missing`),value:D(n,`value missing`),menu:D(r,`menu missing`),list:D(i,`list missing`),search:e.search,input:e.input}},pi=e=>Xr.includes(e),mi=[`comfortable`,`compact`],hi=150,gi=250,_i=10,vi=()=>{let e=R();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},yi=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),bi=new Set([`separators`,`allow-duplicates`,`invalid-message`,`create-label`,`add-label`,`selected-text`,`clear-all-label`,`value-label`,`value-avatar`,`value-initials`,`hint-text`,`recents-key`,`recents-limit`,`recents-label`]),xi=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],Si=(e,t)=>t?Array.isArray(e)?e.map(String):e==null||e===``?[]:String(e).split(`,`).map(e=>e.trim()).filter(Boolean):Array.isArray(e)?e.length?String(e[0]):``:e==null?``:String(e),Ci=(e,t)=>t===`multiple`?ii(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ii(e)?[`chips`,`search`]:[`chips`]:[],wi=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...Ci(e,t)]:Ci(e,t),Ti=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,Ei=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},z=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},Di=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Oi=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},ki=(e,t)=>ni(t).then(e=>{if(!Ti(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(R().partLoadMessage),null)),Ai=n({TABLE_EXPORT_CHUNK:()=>ji,loadTableExport:()=>Ni,registerTableExport:()=>Pi,tableExportRegistered:()=>Fi}),ji=`table-export`,Mi=null;function Ni(){return Mi===null?P(ji).then(()=>{if(Mi===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Mi}):Promise.resolve(Mi)}function Pi(e){Mi=e}function Fi(){return Mi!==null}function Ii(){N(`glyphs`,pr),N(`select-chips`,()=>ei(`chips`)!==void 0),N(`select-recents`,()=>ei(`recents`)!==void 0),N(`select-search`,()=>ei(`search`)!==void 0),N(`select-window`,zr),N(`table-export`,Fi)}var Li={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Ri=n({TOAST_ACTION_METHODS:()=>zi,parseToastAction:()=>Hi}),zi=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),Bi=e=>(en(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),Vi=e=>typeof e==`object`&&!!e;function Hi(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return Bi(`the value is not JSON`)}let n=Vi(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?Bi(`label and url must be non-empty strings`):zi.includes(a)?{label:r,url:i,method:a}:Bi(`method must be one of ${zi.join(`, `)}`)}var Ui=n({FLASH_STORAGE_KEY:()=>Ki,FLASH_VARIANTS:()=>Wi,isToastVariant:()=>Gi,storeFlash:()=>qi,takeStoredFlash:()=>Yi}),Wi=Object.freeze([`success`,`info`,`warning`,`danger`]),Gi=e=>Wi.some(t=>t===e),Ki=`wui.flash`;function qi(e,t,n){e&&window.sessionStorage.setItem(Ki,JSON.stringify({message:e,variant:t,action:n??null}))}var Ji=e=>{if(typeof e!=`object`||!e||!(`label`in e)||!(`url`in e)||!(`method`in e))throw TypeError(`stored flash action is not an action.`);let{label:t,url:n,method:r}=e;if(typeof t!=`string`||t===``||typeof n!=`string`||n===``||typeof r!=`string`||!zi.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function Yi(){let e=window.sessionStorage.getItem(Ki);if(e===null)return null;window.sessionStorage.removeItem(Ki);let t=JSON.parse(e);if(typeof t!=`object`||!t)throw TypeError(`stored flash is not an object.`);let n=`message`in t?t.message:void 0,r=`variant`in t?t.variant:void 0;if(typeof r!=`string`||!Gi(r))throw TypeError(`stored flash variant "${String(r)}" is not supported.`);if(typeof n!=`string`)throw TypeError(`stored flash message is not text.`);let i=`action`in t?t.action:null;return{message:n,variant:r,action:i===null?null:Ji(i)}}var Xi=n({parseServerHtml:()=>Zi});function Zi(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Qi=n({wuiHost:()=>$i});function $i(){return D(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var ea=n({CSRF_META_NAME:()=>ta,DEFAULT_CSRF_HEADER:()=>na,DEFAULT_TIMEOUT_MS:()=>fa,HTTP_KINDS:()=>oa,WUI_HEADERS:()=>B,WUI_REQUEST_HEADER:()=>aa,classifyStatus:()=>ua,configureCsrf:()=>ia,createRequestQueue:()=>xa,isSameOrigin:()=>la,readCsrf:()=>ca,settleResponse:()=>ya,timeoutFromAttribute:()=>pa,wuiFetch:()=>ba}),ta=`wui-csrf`,na=`RequestVerificationToken`,ra={metaName:ta,header:na};function ia({metaName:e=ta,header:t=na}={}){ra={metaName:e,header:t}}var aa=`Wui-Request`,B=Object.freeze({fragment:`Wui-Fragment`,message:`Wui-Message`,redirect:`Wui-Redirect`,result:`Wui-Result`,keepOpen:`Wui-Keep-Open`,toastVariant:`Wui-Toast-Variant`,toastAction:`Wui-Toast-Action`,refresh:`Wui-Refresh`,next:`Wui-Next`}),oa=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),sa=new Set([`GET`,`HEAD`]);function ca(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===ra.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||ra.header,token:n}}var la=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function ua(e,t=null){return e>=200&&e<300?`ok`:e===401?`session`:e===403?t?.get(`cf-mitigated`)===`challenge`?`networkCheck`:`forbidden`:e===422?`validation`:e>=400&&e<500?`client`:`server`}var da=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,fa=3e4;function pa(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var ma=`The ${B.refresh} response header must be {tables, regions, reloadPage}.`,ha=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),ga=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${B.refresh} response header is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}if(typeof t!=`object`||!t||!(`tables`in t)||!(`regions`in t)||!(`reloadPage`in t))throw TypeError(ma);let{tables:n,regions:r,reloadPage:i}=t;if(!ha(n)||!ha(r)||typeof i!=`boolean`)throw TypeError(ma);return{tables:n,regions:r,reloadPage:i}},_a=(e,t)=>{if(!/json/i.test(e?.headers.get(`Content-Type`)??``)||t.trim()===``)return null;try{return JSON.parse(t)}catch(e){throw TypeError(`The JSON answer body is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}},va=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function ya(e,t=null,n=``){let r=e=>t?.headers.get(e)??null;return{kind:e,ok:e===`ok`,status:t?.status??0,html:n,response:t,message:va(r(B.message)),redirect:r(B.redirect),result:r(B.result),keepOpen:r(B.keepOpen)===`1`,toastVariant:r(B.toastVariant),toastAction:Hi(r(B.toastAction)),fragment:r(B.fragment)===`1`,data:_a(t,n),next:r(B.next),refresh:ga(va(r(B.refresh)))}}async function ba(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[aa]:`1`,...t.headers};if(!sa.has(n)&&la(e)){let e=ca();e&&(i[e.header]=e.token)}let a=new AbortController,o=()=>a.abort(),s=t.signal;s?.aborted&&a.abort(),s?.addEventListener(`abort`,o,{once:!0});let c=t.timeoutMs??0,l=!1,u=c>0?setTimeout(()=>{l=!0,a.abort()},c):void 0,d=e=>s?.aborted?`aborted`:l?`timeout`:da(e)?`aborted`:`network`;try{let o;try{o=await fetch(e,{method:n,...t.body===void 0?{}:{body:t.body},headers:i,signal:a.signal,credentials:`same-origin`})}catch(e){return ya(d(e))}let s=ua(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(B.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),ya(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return ya(d(e),o)}return ya(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function xa(){let e=null,t=0;return{async run(n,r={}){e?.abort();let i=new AbortController;e=i;let a=++t,o=r.signal;o&&(o.aborted?i.abort():o.addEventListener(`abort`,()=>i.abort(),{once:!0}));let s;try{s=await ba(n,{...r,signal:i.signal})}finally{e===i&&(e=null)}return a!==t&&s.kind!==`aborted`?{...s,kind:`stale`,ok:!1}:s},abort(){e?.abort(),e=null}}}var Sa=n({REFRESH_ATTR:()=>Ta,REGION_KEY_ATTR:()=>wa,REGION_SRC_ATTR:()=>Ca,refreshRegions:()=>Oa}),Ca=`data-wui-region-src`,wa=`data-wui-region-key`,Ta=`data-wui-refresh`,Ea=new WeakSet,Da=new Map;async function Oa(e=`all`){if(e!==`all`&&e.length===0)return;let t=e===`all`?null:new Set(e),n=new Map;for(let e of document.querySelectorAll(`[${Ca}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(wa);if(!i){Ea.has(e)||(Ea.add(e),tn(Error(`A [${Ca}] element needs ${wa}: ${r}`)));continue}if(t&&!t.has(i))continue;let a=n.get(r)??[];a.push(e),n.set(r,a)}await Promise.all([...n].map(([e,t])=>ka(e,t)))}async function ka(e,t){let n=(Da.get(e)??0)+1;Da.set(e,n);let r=await ba(e);if(Da.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){en(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of Zi(r.html).querySelectorAll(`[${wa}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(wa);t!==null&&!i.has(t)&&i.set(t,e)}for(let n of t){if(!n.isConnected)continue;let t=n.getAttribute(`data-wui-region-key`)??``,r=i.get(t);r?Aa(n,r):en(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function Aa(e,t){for(let t of Array.from(e.children))t.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}));e.replaceChildren(...Array.from(t.childNodes,e=>document.importNode(e,!0))),e.hidden=t.hidden;let n=t.getAttribute(`title`);n===null?e.removeAttribute(`title`):e.setAttribute(`title`,n);for(let t of Array.from(e.classList))t.startsWith(`tone-`)&&e.classList.remove(t);for(let n of Array.from(t.classList))n.startsWith(`tone-`)&&e.classList.add(n);$i().refresh(e)}var ja=n({getServerTable:()=>Fa,isServerTableWired:()=>Pa,registerServerTable:()=>Na}),Ma=new WeakMap;function Na(e,t){Ma.set(e,t)}function Pa(e){return Ma.has(e)}function Fa(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&Ma.get(t)||null}var Ia=n({applyPlan:()=>Qa,applyRefresh:()=>eo,holdInDialog:()=>qa,isRefreshOff:()=>Ra,mergePlans:()=>Ha,planOf:()=>za,planReloads:()=>Ua,refreshAfter:()=>$a,refreshesNothing:()=>Ja,reloadPage:()=>Ga,reloadsPage:()=>Wa,setDialogHold:()=>Ka}),La=null;function Ra(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function za(e){if(!e.ok)return null;let t=e.message,n=e.toastVariant||`success`,r=e.toastAction,i=e.refresh;return i===null?{tables:`all`,regions:`all`,reload:`auto`,message:t,variant:n,action:r}:{tables:i.tables,regions:i.regions,reload:i.reloadPage?`page`:`never`,message:t,variant:n,action:r}}var Ba={never:0,auto:1,page:2},Va=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function Ha(e,t){return e===null?t:{tables:Va(e.tables,t.tables),regions:Va(e.regions,t.regions),reload:Ba[e.reload]>=Ba[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function Ua(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function Wa(e){let t=za(e);return t!==null&&Ua(t)}function Ga(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function Ka(e){La=e}function qa(e,t){return La?La(t,e):!1}function Ja(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var Ya=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),Xa=(e,t)=>{let n=[...document.querySelectorAll(`[data-wui-server]`)].filter(e=>e instanceof HTMLElement),r=n;if(e.tables!==`all`){let t=e.tables,i=new Set(n.flatMap(Ya));for(let e of t)i.has(e)||en(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>Ya(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!Ra(e))},Za=async e=>{await Fa(e)?.reload({quiet:!0})};async function Qa(e,t={}){if(t.origin&&qa(e,t.origin))return`held`;if(Ua(e)&&(e.reload===`page`||t.allowReload!==!1))return qi(e.message,e.variant,e.action),Ga(),`reloaded`;let n=Xa(e,t.skip).map(e=>Za(e).catch(tn));return(e.regions===`all`||e.regions.length>0)&&n.push(Oa(e.regions).catch(tn)),await Promise.all(n),`refreshed`}async function $a(e,t={}){let n=za(e);return n===null?`none`:Qa(n,t)}async function eo(){await Qa({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var to=n({TOAST_ACTION_MS:()=>no,runToastAction:()=>so,showResultToast:()=>ao,showToast:()=>oo}),no=8e3,ro=()=>k(`toast`,Li);function io(e){if(!Gi(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function ao(e,t=`success`){e?.message&&oo(e.message,t,e.toastAction)}function oo(e,t,n=null){n?$i().toast(e,{variant:io(t),duration:no,action:{label:n.label,onClick:e=>void so(n,e)}}):$i().toast(e,{variant:io(t)})}async function so(e,t=null){let n=await ba(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(Wa(n)||ao(n,n.toastVariant||`success`),await $a(n,{origin:t})):$i().toast(n.message||ro().failedText,{variant:`danger`}))}var co=n({HTTP_FAILURE_TEXT:()=>lo}),lo={networkCheckText:`A network check stopped this request. Try again, or report it if it keeps happening.`,networkText:`We could not reach the server. Check your network or firewall and try again.`},uo=n({SERVER_CHUNK:()=>fo,SHELL_CHUNK:()=>po,loadServer:()=>go,loadShell:()=>yo,loadedServer:()=>_o,loadedShell:()=>bo,registerServer:()=>vo,registerShellParts:()=>xo}),fo=`server`,po=`shell`,mo=null,ho=null;N(fo,()=>mo!==null),N(po,()=>ho!==null);function go(){return mo===null?P(fo).then(()=>{if(mo===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return mo}):Promise.resolve(mo)}function _o(){return mo}function vo(e){mo=e}function yo(){return ho===null?P(po).then(()=>{if(ho===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return ho}):Promise.resolve(ho)}function bo(){return ho}function xo(e){ho=e}var So=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,Co=`form[data-wui-post-form], form[data-wui-confirm]`,wo=`[data-wui-confirm]`,To=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,Eo=new WeakSet,Do=new WeakMap;function Oo(e=document){Eo.has(e)||(Eo.add(e),e.addEventListener(`click`,ko,!0),e.addEventListener(`submit`,Ao,!0))}function ko(e){if(_o()!==null||!(e.target instanceof Element))return;let t=e.target.closest(So);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(To)||jo(e,t,()=>t.click()))}function Ao(e){if(_o()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(Co)||(n?.matches(wo)??!1))&&jo(e,t,()=>Mo(t,n))}function jo(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),Do.has(t)||(Do.set(t,!0),go().then(()=>{Do.delete(t),t.isConnected&&n()},()=>{Do.delete(t),oo(k(`httpFailure`,lo).networkText,`danger`)}))}function Mo(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var No=n({APP_BUTTON_MARKER:()=>Po,buttonClass:()=>Ro}),Po=`AppButton`,Fo=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Io={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function Lo(e){return mn(Io,e)}function Ro(e=`primary`,t=`solid`,n=`md`){if(!Fo.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!Lo(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=Io[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var zo=`INR`,Bo=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),Vo=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Ho=(e=`INR`)=>Bo[e]??`${e} `,Uo={aprShortLabel:`Apr`,aprilLabel:`April`,augShortLabel:`Aug`,augustLabel:`August`,decShortLabel:`Dec`,decemberLabel:`December`,emptyValueLabel:`-`,febShortLabel:`Feb`,februaryLabel:`February`,friMinLabel:`Fr`,friShortLabel:`Fri`,fridayLabel:`Friday`,janShortLabel:`Jan`,januaryLabel:`January`,julShortLabel:`Jul`,julyLabel:`July`,junShortLabel:`Jun`,juneLabel:`June`,marShortLabel:`Mar`,marchLabel:`March`,mayLabel:`May`,mayShortLabel:`May`,monMinLabel:`Mo`,monShortLabel:`Mon`,mondayLabel:`Monday`,novShortLabel:`Nov`,novemberLabel:`November`,octShortLabel:`Oct`,octoberLabel:`October`,satMinLabel:`Sa`,satShortLabel:`Sat`,saturdayLabel:`Saturday`,sepShortLabel:`Sep`,septemberLabel:`September`,sunMinLabel:`Su`,sunShortLabel:`Sun`,sundayLabel:`Sunday`,thuMinLabel:`Th`,thuShortLabel:`Thu`,thursdayLabel:`Thursday`,tueMinLabel:`Tu`,tueShortLabel:`Tue`,tuesdayLabel:`Tuesday`,wedMinLabel:`We`,wedShortLabel:`Wed`,wednesdayLabel:`Wednesday`},Wo=n({IST_OFFSET_MS:()=>Go,IST_TIME_ZONE:()=>V,isTimeZone:()=>Jo,nowIn:()=>ts,todayIn:()=>es,wallClockOf:()=>$o,wallToInstant:()=>Zo,zoneOffsetMs:()=>Xo,zoneParts:()=>Yo}),V=`Asia/Kolkata`,Go=198e5,Ko=new Map;function qo(e){let t=Ko.get(e);return t||(t=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),Ko.set(e,t)),t}function Jo(e){if(typeof e!=`string`||e===``)return!1;try{return qo(e),!0}catch{return!1}}function Yo(e,t=V){if(t===`Asia/Kolkata`){let t=new Date(e+Go);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries(qo(t).formatToParts(e).map(e=>[e.type,Number(e.value)]));return{year:Number(n.year),month:Number(n.month)-1,day:Number(n.day),hour:Number(n.hour)%24,minute:Number(n.minute),second:Number(n.second)}}function Xo(e,t=V){if(t===`Asia/Kolkata`)return Go;let n=Yo(e,t),r=new Date(0);return r.setUTCFullYear(n.year,n.month,n.day),r.setUTCHours(n.hour,n.minute,n.second,0),r.getTime()-Math.floor(e/1e3)*1e3}function Zo(e,t=V){let n=e-Xo(e,t);return n=e-Xo(n,t),n}var Qo=e=>e instanceof Date?e.getTime():e;function $o(e,t=V){return new Date(e+Xo(e,t)).toISOString().slice(0,19)}function es(e=V,t=Date.now()){return $o(Qo(t),e).slice(0,10)}function ts(e=V,t=Date.now()){let n=Qo(t);return new Date(n+Xo(n,e))}var ns=n({CURRENCIES:()=>is,DATE_PATTERNS:()=>ss,DURATION_UNITS:()=>os,FORMAT_STYLES:()=>rs,IST_OFFSET_MS:()=>Go,IST_TIME_ZONE:()=>V,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>as,compactFormatOf:()=>Vs,emptyValueLabel:()=>H,formatCompact:()=>Ps,formatCurrency:()=>Ms,formatDate:()=>K,formatDateTime:()=>Hs,formatDayShort:()=>zs,formatDuration:()=>Ls,formatNumber:()=>W,formatPercent:()=>Fs,formatValue:()=>Bs,isMoneyUnit:()=>cs,istParts:()=>Rs,monthLabel:()=>U,monthLongLabel:()=>hs,paiseToRupeeText:()=>Os,timeZoneLabel:()=>Gs,toInstant:()=>G,weekdayLabel:()=>gs}),rs=[`number`,`currency`,`percent`,`compact`,`duration`,`date`],is=[`INR`,`USD`,`EUR`,`GBP`],as=[`rupees`,`paise`],os=[`ms`,`s`,`min`,`h`],ss=[`day`,`month`,`year`,`datetime`,`time`];function cs(e){return as.some(t=>t===e)}var ls=()=>k(`formatters`,Uo),H=()=>ls().emptyValueLabel,us=`−`,ds=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],fs=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],ps={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},ms=(e,t)=>ls()[D(e[t],`no date name at index ${t}`)],U=e=>ms(ds,e),hs=e=>ms(fs,e);function gs(e,t){return ms(ps[t],e)}var _s=(e,t)=>D(e[t],`no compact unit at index ${t}`),vs=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],ys=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],bs=e=>!e||e===`INR`?`en-IN`:`en-US`,xs=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,Ss=new Map,Cs=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Ss.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),Ss.set(n,r)),r},ws=new Map,Ts=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=ws.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),ws.set(n,r)),r},Es=e=>typeof e==`number`&&Number.isFinite(e),Ds=e=>e<0&&!Object.is(Math.abs(e),0)?us:``;function Os(e){if(!Number.isInteger(e))throw Error(`A paise amount must be a whole number, got ${e}`);let t=BigInt(Math.abs(e)).toString().padStart(3,`0`);return`${e<0?`-`:``}${t.slice(0,-2)}.${t.slice(-2)}`}var ks=(e,t)=>t===`paise`?Number(Os(e)):e,As=2,js=(e,t,n)=>{let r=Math.min(t,As),i=10n**BigInt(As-r),a=(BigInt(Os(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=Ts(0,n).format(a/o);return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function W(e,{decimals:t}={}){if(!Es(e))return H();let n=Cs(xs(t,2)).format(Math.abs(e));return n===`0`?`0`:Ds(e)+n}function Ms(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!Es(e))return H();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=xs(r,0),o=bs(i),s=n===`paise`?js(Math.abs(e),a,o):Ts(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:Ds(e))+Ho(i)+s}var Ns=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function Ps(e,{currency:t,unit:n=`rupees`}={}){if(!Es(e))return H();let r=t?ks(e,n):e,i=t?Ho(t):``,a=t?bs(t):`en-IN`,o=a===`en-IN`?vs:ys,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=Cs(Ns(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:Ds(r))+i+e;c=o.length-1}let[l,u]=_s(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f));return p>=100&&c>0&&(--c,[l,u]=_s(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${Ds(r)}${i}${Cs(f,a).format(p)} ${u}`}function Fs(e,{decimals:t}={}){return Es(e)?`${W(e*100,{decimals:xs(t,1)})}%`:H()}var Is={ms:1,s:1e3,min:6e4,h:36e5};function Ls(e,{unit:t=`s`}={}){if(!Es(e))return H();let n=Is[t]??1e3,r=Math.abs(e*n),i=Ds(e);if(Math.round(r)<1e3)return`${i}${Cs(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${Cs(1).format(a)}s`;let o=Math.round(a);if(o<60)return`${i}${o}s`;let s=e=>String(e).padStart(2,`0`),c=Math.floor(o/60);if(c<60)return`${i}${c}m ${s(o%60)}s`;let l=Math.floor(c/60);return`${i}${Cs(0).format(l)}h ${s(c%60)}m`}function G(e,t=V){if(e instanceof Date)return e.getTime();if(Es(e))return e;if(typeof e!=`string`)return NaN;let n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(n){let[e,r,i]=[Number(n[1]),Number(n[2]),Number(n[3])],a=new Date(Date.UTC(2e3,r-1,i));return a.setUTCFullYear(e),a.getUTCFullYear()===e&&a.getUTCMonth()===r-1&&a.getUTCDate()===i?Zo(a.getTime(),t):NaN}return Date.parse(e)}function Rs(e,t=V){let{year:n,month:r,day:i,hour:a,minute:o}=Yo(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function K(e,{pattern:t=`day`,timeZone:n=V}={}){let r=G(e,n);if(!Number.isFinite(r))return H();let i=Rs(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${U(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${U(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function zs(e,{timeZone:t=V}={}){let n=G(e,t);if(!Number.isFinite(n))return H();let r=Rs(n,t);return`${String(r.day).padStart(2,`0`)}-${U(r.month)}`}function Bs(e,t){if(e==null||e===``)return H();let n=t?.style;if(n===`date`)return K(e,t);if(typeof e!=`number`)return String(e);switch(n){case`currency`:return Ms(e,{...t,currency:t?.currency??``});case`percent`:return Fs(e,t);case`compact`:return Ps(e,t);case`duration`:return Ls(e,t);default:return W(e,t)}}function Vs(e){let t=e?.style;if(t===`currency`){if(!e?.currency)throw TypeError(`[@webority/ui-elements] a currency format needs a currency, an ISO 4217 code such as "INR".`);return{style:`compact`,currency:e.currency,unit:e.unit}}return!t||t===`number`?{style:`compact`}:e??{}}function Hs(e,{timeZone:t=V}={}){let n=G(e);if(!Number.isFinite(n))return H();let r=Object.fromEntries(Ws(t).formatToParts(n).map(e=>[e.type,e.value])),i=r.dayPeriod;if(i===void 0)throw Error(`Intl returned no day period for a 12-hour clock`);return`${r.day}-${U(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Us=new Map;function Ws(e){let t=Us.get(e);return t||(t=new Intl.DateTimeFormat(`en-IN`,{day:`2-digit`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0,timeZone:e}),Us.set(e,t)),t}function Gs(e=V){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var Ks=n({DISPLAY_FORMAT:()=>Qs,MONTH_DISPLAY_FORMAT:()=>nc,YEAR_DISPLAY_FORMAT:()=>oc,clampMonth:()=>lc,daysIn:()=>cc,firstWeekday:()=>Js,fmt:()=>$s,fmtMonth:()=>rc,fmtYear:()=>sc,pad:()=>Ys,parseIso:()=>Zs,parseIsoMonth:()=>ec,parseIsoYear:()=>ic,toIso:()=>Xs,toIsoMonth:()=>tc,toIsoYear:()=>ac}),qs=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},Js=e=>qs(e.getAttribute(`first-day`))??qs(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,Ys=e=>String(e).padStart(2,`0`),Xs=(e,t,n)=>`${e}-${Ys(t+1)}-${Ys(n)}`,Zs=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r,i]=t;if(n===void 0||r===void 0||i===void 0)throw Error(`ISO date parts missing`);let a=+n,o=+r,s=+i;return o<1||o>12||s<1||s>cc(a,o-1)?null:{y:a,m:o-1,d:s}},Qs=`dd-MMM-yyyy`,$s=(e,t=Qs)=>{let n=Zs(e);if(!n)return``;let r={yyyy:n.y,MMMM:hs(n.m),MMM:U(n.m),MM:Ys(n.m+1),dd:Ys(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},ec=e=>{let t=/^(\d{4})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r]=t;if(n===void 0||r===void 0)throw Error(`ISO month parts missing`);let i=+r;return i<1||i>12?null:{y:+n,m:i-1}},tc=(e,t)=>`${e}-${Ys(t+1)}`,nc=`MMM yyyy`,rc=(e,t=nc)=>{let n=ec(e);if(!n)return``;let r={yyyy:n.y,MMMM:hs(n.m),MMM:U(n.m),MM:Ys(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},ic=e=>{let t=/^(\d{4})$/.exec(e||``);if(!t)return null;let[,n]=t;if(n===void 0)throw Error(`ISO year part missing`);return{y:+n}},ac=e=>String(e).padStart(4,`0`),oc=`yyyy`,sc=(e,t=oc)=>{let n=ic(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},cc=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},lc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},uc=n({COPY_FEEDBACK_MS:()=>dc,copyTextToClipboard:()=>fc}),dc=2e3;async function fc(e){if(!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch(e){if(!(e instanceof DOMException))throw e;return!1}}var pc=n({DATA_TABLE_TEXT:()=>mc}),mc={actionFailedMessage:`That did not work. Try again.`,actionForbiddenMessage:`You do not have permission to do that.`,collapseRowLabel:`Collapse row`,densityComfortableLabel:`Comfortable rows`,densityCompactLabel:`Compact rows`,densityLabel:`Row density`,empty:`No records found.`,emptyLabel:`No rows`,errorText:`These rows did not load. Try again.`,expandLabel:`Expand`,expandRowLabel:`Expand row`,exportCsvLabel:`Download CSV`,exportExcelLabel:`Download Excel`,forbiddenMessage:`You do not have access to these rows.`,groupRowsOne:`1 row`,groupRowsOther:`{count} rows`,loadingText:`Loading rows`,moreActionsForText:`More actions for {firstValue}`,networkMessage:`The connection dropped before the rows loaded. Check it and try again.`,pageTextOne:`Page {page} of {pages}, {total} row`,pageTextOther:`Page {page} of {pages}, {total} rows`,pageTextPending:`Page {page}`,resizeColumnLabel:`Resize column`,resizeColumnText:`Resize {label} column`,resizeText:`{px} pixels`,retryLabel:`Retry`,rowActionsLabel:`Actions`,rowSavedText:`Row saved.`,rowWasNotSavedText:`Row was not saved.`,rowsSavedText:`{n} rows saved.`,saveBusyLabel:`Saving`,saveDoneLabel:`Saved`,saveFailedLabel:`Not saved`,savedText:`{label} saved.`,selectAllRowsLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`,wasNotSavedText:`{label} was not saved.`},hc=n({COLUMN_MAX_WIDTH:()=>_c,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>Lc,PIN_SIDES:()=>bc,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>Sc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>Xc,ROW_SAVE_ERROR_CLASS:()=>Zc,ROW_SAVE_STATES:()=>Yc,ROW_STATUS_CLASS:()=>Qc,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>Ac,groupCount:()=>kc,groupItems:()=>jc,groupRowsText:()=>Tc,identityCell:()=>$c,measureRows:()=>Kc,notSavedText:()=>Oc,paintSaveStatus:()=>nl,pinAtValue:()=>Rc,pinClasses:()=>Bc,pinOffsetVar:()=>Ic,planPins:()=>zc,playRowMoves:()=>qc,readColumnWidths:()=>Pc,resizeName:()=>Cc,rowLabel:()=>el,rowOrderChanged:()=>Jc,saveOutcomeText:()=>al,savedManyText:()=>Dc,savedText:()=>Ec,setRowSaveState:()=>rl,settledRows:()=>il,virtualRange:()=>Mc,widthText:()=>wc,writeColumnWidths:()=>Fc}),gc=48,_c=1200,vc=10,yc=50,bc=[`start`,`end`],xc=8,Sc={comfortable:72,cozy:48,compact:40},q=()=>k(`dataTable`,mc),Cc=e=>e?A(q().resizeColumnText,{label:e}):q().resizeColumnLabel,wc=e=>A(q().resizeText,{px:e}),Tc=e=>rt(q(),`groupRows`,e,{count:W(e,{decimals:0})}),Ec=e=>e?A(q().savedText,{label:e}):q().rowSavedText,Dc=e=>A(q().rowsSavedText,{n:W(e,{decimals:0})}),Oc=(e,t)=>`${e?A(q().wasNotSavedText,{label:e}):q().rowWasNotSavedText}${t?` ${t}`:``}`,kc=e=>W(e,{decimals:0}),Ac=e=>Math.min(_c,Math.max(48,Math.round(Number(e)||0)));function jc(e,t,n=[]){let r=new Map(n.map(e=>[e,[]]));return e.forEach((e,n)=>{let i=t(e,n),a=r.get(i);a||(a=[],r.set(i,a)),a.push(e)}),[...r].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,items:t}))}function Mc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:Sc.cozy,o=Math.floor(Math.max(0,e)/a),s=Math.max(0,o-i);s-=s%2;let c=Math.min(r,o+Math.ceil(Math.max(0,t)/a)+i),l=Math.min(s,c);return{start:l,end:c,before:l*a,after:Math.max(0,r-c)*a}}var Nc=e=>`wui-widths:${e}`;function Pc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(Nc(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=Ac(r));return n}catch{return{}}}function Fc(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(Nc(e),JSON.stringify(t)):window.localStorage.removeItem(Nc(e))}catch(e){if(!(e instanceof DOMException))throw e}}var Ic=(e,t)=>`--wui-pin-${e}-${t}`,Lc=`--wui-pin-at`,Rc=(e,t)=>`var(${Ic(e,t)}, 0px)`;function zc(e){let t=e.map(()=>null),n=-1;e.forEach((e,t)=>{e===`start`&&(n=t)});let r=0;for(let i=0;i<=n;i++)(e[i]===`start`||e[i]===`lead`)&&(t[i]={side:`start`,ordinal:r++,edge:!1});let i=t[n];i&&(i.edge=!0);let a=-1;r=0;for(let n=e.length-1;n>=0;n--)e[n]===`end`&&(t[n]={side:`end`,ordinal:r++,edge:!1},a=n);let o=t[a];return o&&(o.edge=!0),t}var Bc=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,Vc=200,Hc=220,Uc=`cubic-bezier(0.22, 1, 0.36, 1)`,Wc=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Gc=e=>e.getAttribute(`data-row-key`)??e;function Kc(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(Gc(e),e.offsetTop);return n}function qc(e,t){let n=[...e];if(!t||n.length>200||Wc())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(Gc(e));if(n===void 0)continue;let i=n-e.offsetTop;Math.abs(i)<1||(e.animate([{transform:`translateY(${i}px)`},{transform:`translateY(0)`}],{duration:220,easing:Uc}),r++)}return r}function Jc(e,t){if(!e||!t)return!1;let n=new Set(t),r=new Set(e),i=e.filter(e=>n.has(e)),a=t.filter(e=>r.has(e));return i.some((e,t)=>e!==a[t])}var Yc=[`saving`,`error`,`saved`],Xc=`data-wui-save-state`,Zc=`wui-row-save-error`,Qc=`wui-row-status`,$c=e=>{let t=e.querySelector(`:scope > .wui-name-cell`);return t instanceof HTMLTableCellElement?t:[...e.cells].find(e=>!e.matches(`.wui-select-cell, .wui-expand-cell`))??null};function el(e){let t=$c(e);if(!t)return``;let n=t.querySelector(`.u-name`);if(n)return(n.textContent??``).trim();let r=``;for(let e of t.childNodes)e instanceof Element&&(e.classList.contains(`wui-row-save-error`)||e.classList.contains(`wui-row-status`))||(r+=e.textContent??``);return r.replace(/\s+/g,` `).trim()}function tl(e,t){let n=e.closest(`.table-wrap`);if(!n?.hasAttribute(`data-wui-save-labels`))return null;let r=q();return t===`saving`?n.getAttribute(`data-wui-save-busy`)??r.saveBusyLabel:t===`saved`?n.getAttribute(`data-wui-save-done`)??r.saveDoneLabel:n.getAttribute(`data-wui-save-failed`)??r.saveFailedLabel}function nl(e,t){e.querySelector(`:scope > * > .${Qc}`)?.remove();let n=t===null?null:tl(e,t),r=n===null?null:$c(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${Qc} ${Qc}-${t}`,i.textContent=n,r.prepend(i)}let i=t===`saving`&&n!==null;e.querySelectorAll(`.u-row-actions`).forEach(e=>{e.toggleAttribute(`hidden`,i)})}function rl(e,t,n=``){if(t!==null&&!Yc.includes(t))throw Error(`A row's save state is ${Yc.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${Zc}`)?.remove(),t===null?e.removeAttribute(Xc):e.setAttribute(Xc,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),nl(e,t);let r=t===`error`&&n?$c(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=Zc,t.textContent=n,r.append(t)}}function il(e,t){let n=[];if(!e)return n;for(let[r,i]of e){let e=t.get(r);i.state===`saving`&&e&&e.state!==`saving`&&n.push({label:e.label,ok:e.state!==`error`,message:e.message||``})}return n}function al(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(Ec(r.label)):t.length>1&&n.push(Dc(t.length));for(let t of e)t.ok||n.push(Oc(t.label,t.message));return n.join(` `)}var ol=n({isDrawn:()=>sl});function sl(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var cl=n({MENTION_ID_PATTERN:()=>ll,mentionLabel:()=>fl,mentionTextFromValue:()=>hl,mentionValueFromText:()=>gl,mentionedIds:()=>_l,parseMentionValue:()=>ml}),ll=/^[A-Za-z0-9_.:-]{1,64}$/,ul=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,dl=/@(\\*)\[/g;function fl(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var pl=e=>e.replace(dl,(e,t)=>`@\\${t}[`);function ml(e){let t=String(e??``),n=[],r=e=>{if(!e)return;let t=n[n.length-1];t&&`text`in t?t.text+=e:n.push({text:e})},i=0;for(let e of t.matchAll(ul))r(t.slice(i,e.index)),e[1]===void 0?n.push({id:e[3]??``,label:e[2]??``}):r(`@${e[1].slice(1)}[`),i=e.index+e[0].length;return r(t.slice(i)),n}function hl(e){let t=``,n=[];for(let r of ml(e)){if(`text`in r){t+=r.text;continue}let e=`@${r.label}`;n.push({start:t.length,end:t.length+e.length,id:r.id,label:r.label}),t+=e}return{text:t,mentions:n}}function gl(e,t=[]){let n=String(e??``),r=[...t].sort((e,t)=>e.start-t.start),i=``,a=0;for(let e of r)e.start<a||n.slice(e.start,e.end)!==`@${e.label}`||!ll.test(e.id)||(i+=pl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+pl(n.slice(a))}function _l(e){let t=[];for(let n of ml(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var vl=n({bindMenuKeys:()=>Cl}),yl=500,bl=10,xl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function Sl(e){return e instanceof HTMLElement?xl.has(e.tagName)||e.isContentEditable:!1}function Cl(e,t){let{items:n,typeahead:r=!0}=t,i=``,a=null,o=()=>{a!==null&&clearTimeout(a),a=null,i=``},s=e=>{let t=n().filter(sl),s=t.length;if(s===0)return;let c=e.target,l=t.findIndex(e=>c instanceof Node&&e.contains(c)),u=n=>{e.preventDefault(),e.stopPropagation(),t[n]?.focus()},d=Sl(c);if(e.key===`ArrowDown`){u(l<0?0:(l+1)%s);return}if(e.key===`ArrowUp`){u(l<0?s-1:(l-1+s)%s);return}if(e.key===`Home`&&!d){u(0);return}if(e.key===`End`&&!d){u(s-1);return}if(e.key===`PageDown`){u(Math.min((l<0?-1:l)+bl,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-bl,0));return}if(!r||!/^\S$/.test(e.key)||e.ctrlKey||e.metaKey||e.altKey||d)return;e.preventDefault(),e.stopPropagation(),a!==null&&clearTimeout(a),i+=e.key.toLowerCase(),a=setTimeout(o,yl);let f=i.length>1&&Array.from(i).every(e=>e===i[0]),p=f?i[0]??``:i,m=i.length===1||f?l+1:Math.max(l,0);for(let e=0;e<s;e++){let n=(m+e)%s;if((t[n]?.textContent??``).trim().toLowerCase().startsWith(p)){t[n]?.focus();return}}};return e.addEventListener(`keydown`,s),()=>{e.removeEventListener(`keydown`,s),o()}}var wl=n({NOTIFICATION_CENTRE_TEXT:()=>Tl}),Tl={allLabel:`All`,allReadText:`All notifications marked as read.`,archivedLabel:`Archived`,clientMessage:`These could not be marked as read. Refresh the page and try again.`,earlierLabel:`See earlier`,emptyText:`You are all caught up.`,errorText:`Notifications did not load`,forbiddenMessage:`You do not have permission to mark these as read.`,label:`Notifications`,loadingText:`Loading notifications…`,markAllLabel:`Mark all read`,networkMessage:`Could not reach the server, so these were not marked as read. Check your connection and try again.`,noneUnreadText:`No unread notifications`,retryLabel:`Try again`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`,serverMessage:`Something went wrong on our side, so these were not marked as read. Try again in a moment.`,todayLabel:`Today`,unreadAnnouncementTextOne:`{unread} unread notification`,unreadAnnouncementTextOther:`{unread} unread notifications`,unreadLabel:`Unread`,unreadPrefixText:`Unread:`,unreadWordLabel:`unread`,viewAllLabel:`View all`,yesterdayLabel:`Yesterday`},El=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>Fl,notificationCountText:()=>Al,notificationDayHeading:()=>Pl,notificationTime:()=>Nl,notificationTriggerLabel:()=>jl,notificationUnreadAnnouncement:()=>Ml}),Dl=99,Ol=864e5,kl=()=>k(`notificationCentre`,Tl);function Al(e){return e>99?`99+`:String(e)}function jl(e,t){return t===0?e:`${e}, ${Al(t)} ${kl().unreadWordLabel}`}function Ml(e){return e===0?kl().noneUnreadText:rt(kl(),`unreadAnnouncementText`,e,{unread:Al(e)})}function Nl(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:K(e,{pattern:`time`})}function Pl(e,t=Date.now()){let n=K(e);return n===K(t)?kl().todayLabel:n===K(G(t)-Ol)?kl().yesterdayLabel:n}function Fl(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(G(r.at)))throw Error(`<AppNotificationCenter> item "${r.id}": at must be an ISO date-time with its zone (or a YYYY-MM-DD day), got ${String(r.at)}.`);let e=K(r.at),i=n.get(e);i||(i={key:e,heading:Pl(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var Il={daysAgoTextOne:`{count} day ago`,daysAgoTextOther:`{count} days ago`,hoursAgoTextOne:`{count} hour ago`,hoursAgoTextOther:`{count} hours ago`,inDaysTextOne:`in {count} day`,inDaysTextOther:`in {count} days`,inHoursTextOne:`in {count} hour`,inHoursTextOther:`in {count} hours`,inMinutesTextOne:`in {count} minute`,inMinutesTextOther:`in {count} minutes`,justNowText:`just now`,minutesAgoTextOne:`{count} minute ago`,minutesAgoTextOther:`{count} minutes ago`},Ll=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>Wl,relativeTimeTitle:()=>Gl}),Rl=6e4,zl=60*Rl,Bl=24*zl,Vl=()=>k(`relativeTime`,Il),Hl={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},Ul={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function Wl(e,t=Date.now()){let n=G(e);if(!Number.isFinite(n))return H();let r=t-n,i=Math.abs(r);if(i>=7*Bl)return K(n);if(i<Rl)return Vl().justNowText;let[a,o]=i<zl?[Math.floor(i/Rl),`minute`]:i<Bl?[Math.floor(i/zl),`hour`]:[Math.floor(i/Bl),`day`];return rt(Vl(),(r>0?Hl:Ul)[o],a)}function Gl(e){let t=G(e);return Number.isFinite(t)?`${K(t,{pattern:`datetime`})} IST`:H()}var Kl=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>Jl,scrollTopToReveal:()=>Xl,windowRange:()=>Yl}),ql=.5;function Jl(e,t=36){let n=Math.max(0,Math.floor(e)),r=new Float64Array(n),i=null,a=e=>{let t=e>=0&&e<n?r[e]??0:0;return t>0?t:s.estimate},o=()=>{if(i)return i;let e=new Float64Array(n+1);for(let t=0;t<n;t++)e[t+1]=(e[t]??0)+a(t);return i=e,e},s={count:n,estimate:t,setEstimate(e){!(e>0)||Math.abs(e-s.estimate)<=ql||(s.estimate=e,i=null)},set(e,t){if(e<0||e>=n||!(t>0))return!1;let o=a(e);return r[e]=t,Math.abs(o-t)<=ql?!1:(i=null,!0)},heightOf:a,offsetOf(e){return o()[Math.min(Math.max(0,Math.floor(e)),n)]??0},total(){return o()[n]??0},indexAt(e){if(n===0)return 0;let t=o(),r=0,i=n-1;for(;r<i;){let n=r+i+1>>1;(t[n]??0)<=e?r=n:i=n-1}return r}};return s}function Yl(e,t){if(e.count===0)return{start:0,end:0,before:0,after:0};let{overscan:n=8}=t,r=Math.max(0,t.scrollTop),i=e.indexAt(r),a=e.indexAt(r+Math.max(0,t.viewport)),o=Math.max(0,i-n),s=Math.min(e.count,a+1+n);return{start:o,end:s,before:e.offsetOf(o),after:e.total()-e.offsetOf(s)}}function Xl(e,t,n){let r=e.offsetOf(t),i=r+e.heightOf(t);return r<n.scrollTop?r:i>n.scrollTop+n.viewport?i-n.viewport:n.scrollTop}var Zl=n({WuiPostError:()=>Ql}),Ql=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),j(this,`code`,void 0),j(this,`status`,void 0),j(this,`html`,void 0),j(this,`body`,void 0),j(this,`kind`,void 0),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},$l=n({forgetShell:()=>nu,registerShell:()=>tu,wiredShell:()=>ru}),eu=new WeakMap;function tu(e,t){eu.set(e,t)}function nu(e){eu.delete(e)}function ru(e){let t=e?.closest(`[data-app-shell]`);return(t&&eu.get(t))??null}var iu=n({wuiUpload:()=>su}),au=new Set([204,205,304]),ou=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function su(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[aa]:`1`,...n.headers};if(la(e)){let e=ca();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?ya(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(ya(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=ou(c.getAllResponseHeaders()),r=ua(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(B.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(au.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var cu=n({deriveStepStatus:()=>lu,stepperHeaderItems:()=>uu});function lu(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function uu(e,t){let{statusOf:n,journey:r,connectors:i}=t;return e.map((t,a)=>{let o=n(a),s;return s=o===`done`?{icon:`check`}:o===`error`?{icon:`alert-triangle`}:o===`skipped`?{icon:`minus`}:t.icon?{icon:t.icon}:{number:a+1},{index:a,status:o,className:o===`pending`?`step`:`step ${o}`,glyph:s,current:o===`active`,line:r&&i&&a<e.length-1?{done:o===`done`}:null}})}var du={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},fu=n({GROUP_SELECT_CLASS:()=>mu,SELECT_CELL_CLASS:()=>J,addRowSelectCells:()=>wu,addSelectColumn:()=>Tu,attachShiftRange:()=>ku,createGroupSelectCell:()=>yu,createSelectHeaderCell:()=>gu,createSelectRowCell:()=>_u,createSelectSpacerCell:()=>vu,groupRowsOf:()=>bu,syncGroupSelect:()=>Du,syncSelectAll:()=>Eu}),pu=()=>k(`tableSelect`,du),J=`wui-select-cell`,mu=`wui-group-select`,hu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function gu(e=document){let t=e.createElement(`th`);return t.className=J,t.appendChild(hu(e,pu().selectAllLabel)),t}function _u(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=J;let r=hu(e,pu().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function vu(e=document){let t=e.createElement(`td`);return t.className=J,t}function yu(e,t){let n=e.createElement(`td`);return n.className=`${J} ${mu}`,n.appendChild(hu(e,A(pu().selectGroupLabel,{group:t}))),n}function bu(e){let t=[];for(let n=e.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`.wui-group-row, .wui-virtual-spacer`);n=n.nextElementSibling)n.matches(`.wui-row-expanded`)||t.push(n);return t}var xu=e=>e.firstElementChild?.classList.contains(J),Su=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),Cu=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function wu(e){for(let t of e){if(xu(t)||Su(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(_u(t.ownerDocument,{disabled:e}),t.firstChild)}}function Tu(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;xu(t)||t.insertBefore(gu(e.ownerDocument),t.firstChild),wu(Cu(e,`tbody tr`,HTMLTableRowElement));for(let t of Cu(e,`tfoot tr`,HTMLTableRowElement))xu(t)||t.insertBefore(vu(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${J} .form-check-input`);return n instanceof HTMLInputElement?n:null}function Eu(e){let t=e.querySelector(`thead .${J} .form-check-input`),n=Cu(e,`tbody tr:not(.wui-group-row) .form-check-input:not(:disabled)`,HTMLInputElement),r=n.length,i=n.filter(e=>e.checked).length;t instanceof HTMLInputElement&&(t.checked=r>0&&i===r,t.indeterminate=i>0&&i<r);for(let t of Cu(e,`tbody tr:not(.wui-group-row)`,HTMLTableRowElement)){let e=t.querySelector(`.form-check-input`);t.classList.toggle(`is-selected`,e instanceof HTMLInputElement&&e.checked)}return{selected:i,total:r}}function Du(e){for(let t of Cu(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${mu} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=bu(t).flatMap(e=>Cu(e,`.${J} .form-check-input:not(:disabled)`,HTMLInputElement)),r=n.filter(e=>e.checked).length;e.disabled=n.length===0,e.checked=r>0&&r===n.length,e.indeterminate=r>0&&r<n.length}}var Ou=`tbody tr:not(.wui-group-row) .${J} .form-check-input:not(:disabled)`;function ku(e,t){let n=null,r=e=>e instanceof Element&&e.matches(`.wui-select-cell .form-check-input:not(:disabled)`)&&!!e.closest(`tbody`)&&!e.closest(`tr.wui-group-row`);e.addEventListener(`mousedown`,e=>{e.shiftKey&&r(e.target)&&e.preventDefault()}),e.addEventListener(`click`,i=>{let a=i.target;if(r(a)){if(i.shiftKey&&n?.isConnected&&n!==a){let r=Cu(e,Ou,HTMLInputElement),i=r.indexOf(n),o=r.indexOf(a);if(i>=0&&o>=0){let e=[];for(let t of r.slice(Math.min(i,o),Math.max(i,o)+1))t!==a&&t.checked!==a.checked&&(t.checked=a.checked,e.push(t));e.length&&t?.(e,a.checked)}}n=a}})}var Au=n({DATE_PICKER_TEXT:()=>ju}),ju={chooseMonthYearLabel:`Choose month and year`,chooseYearLabel:`Choose year`,clearLabel:`Clear`,dateTimeLabel:`Time`,helpLabel:`More information`,monthPlaceholder:`Choose a month`,nextDecadeLabel:`Next decade`,nextMonth:`Next month`,nextYearLabel:`Next year`,optionalLabel:`(optional)`,placeholder:`Choose a date`,previousDecadeLabel:`Previous decade`,previousMonth:`Previous month`,previousYearLabel:`Previous year`,todayLabel:`Today`,yearPlaceholder:`Choose a year`,zoneNote:`Times are shown in {zone}.`},Mu=n({DRAWER_TEXT:()=>Nu}),Nu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Pu=n({matchSegments:()=>Fu});function Fu(e,t){let n=String(e??``),r=String(t??``).trim();if(!r||!n)return[{text:n,match:!1}];let i=n.toLowerCase(),a=r.toLowerCase();if(i.length!==n.length)return[{text:n,match:!1}];let o=[],s=0,c=i.indexOf(a,s);for(;c!==-1;)c>s&&o.push({text:n.slice(s,c),match:!1}),o.push({text:n.slice(c,c+a.length),match:!0}),s=c+a.length,c=i.indexOf(a,s);return s<n.length&&o.push({text:n.slice(s),match:!1}),o}var Iu=n({TOOLTIP_ATTRIBUTE:()=>Lu,TOOLTIP_CLASS_ATTRIBUTE:()=>zu,TOOLTIP_ID_ATTRIBUTE:()=>Bu,TOOLTIP_OPEN_ATTRIBUTE:()=>Vu,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>Ru,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>Hu,showPinnedTooltips:()=>Wu,wireTooltips:()=>Uu}),Lu=`data-wui-tooltip`,Ru=`data-wui-tooltip-placement`,zu=`data-wui-tooltip-class`,Bu=`data-wui-tooltip-id`,Vu=`data-wui-tooltip-open`,Hu=`data-wui-tooltip-shortcut`;function Uu(e){Ju.has(e)||(Ju.add(e),e.addEventListener(`pointerover`,t=>{let n=Qu(t.target);n&&!ed(e,n)&&rd(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=Y(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=Qu(n);r&&!ed(e,r)&&rd(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=Y(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`click`,t=>{let n=Y(e).transient;n&&Qu(t.target)===n.trigger&&id(e,n)}))}function Wu(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${Vu}]`))rd(t,n,!0)}var Gu=[`top`,`bottom`,`start`,`end`],Ku=`wui-tooltip`,qu=`[${Lu}], [${Bu}]`,Ju=new WeakSet,Yu=new WeakMap;function Y(e){let t=Yu.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),ad(e))}},Yu.set(e,t)),t}function Xu(e){return Gu.includes(e)}function Zu(e){return e===`auto`||Xu(e)}function Qu(e){if(!(e instanceof Element))return null;let t=e.closest(qu);return t instanceof HTMLElement?t:null}function $u(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function ed(e,t){return $u(Y(e),t)!==void 0}function td(e,t){let n=e.createElement(`div`);n.id=t,n.setAttribute(`role`,`tooltip`),n.setAttribute(`popover`,`manual`);let r=e.createElement(`div`);r.className=`tooltip-arrow`;let i=e.createElement(`div`);return i.className=`tooltip-inner`,n.append(r,i),{el:n,arrow:r,inner:i}}function nd(e,t){return t.bubble||=td(e,Ku),t.bubble}function rd(e,t,n){let r=t.getAttribute(Lu),i=t.getAttribute(Bu);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${Lu} or ${Bu}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${Lu} or ${Bu}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!Zu(a))throw Error(`${Ru} "${a}" is not auto, top, bottom, start or end`);let o=Y(e);id(e,n?o.pinned.get(t):o.transient);let s,c=null,l=null,u=!1;if(i!==null){let t=e.getElementById(i);if(!(t instanceof HTMLElement))throw Error(`no element with id "${i}" for a tooltip`);s=t,c=e.createComment(`wui-tooltip`),s.replaceWith(c),l=s.getAttribute(`popover`),s.setAttribute(`popover`,`manual`)}else{let i=n?td(e,`${Ku}-pinned-${++o.pinnedCount}`):nd(e,o);u=n;let c=t.getAttribute(`data-wui-tooltip-class`)??``;i.el.className=`tooltip wui-tooltip bs-tooltip-${a} ${c}`.trim();let l=t.getAttribute(Hu);i.inner.replaceChildren(r??``,...l?[O(`span`,{class:`wui-kbd`},l)]:[]),s=i.el}let d=t.getAttribute(`aria-describedby`);t.setAttribute(`aria-describedby`,s.id);let f=()=>C(t,s,{side:a,align:`center`,gap:6,arrow:s.querySelector(`.tooltip-arrow`)});ze(e).append(s),s.showPopover(),f();let p=Be(e=>{s.parentElement!==e&&e.append(s),Le(s),f()},e),m=new MutationObserver(()=>{t.isConnected||id(e,$u(Y(e),t))});m.observe(e,{childList:!0,subtree:!0});let h={el:s,trigger:t,pinned:n,own:u,home:c,popover:l,describedBy:d,watch:m,unroot:p};n?o.pinned.set(t,h):o.transient=h,e.addEventListener(`keydown`,o.onEscape,!0)}function id(e,t){if(!t)return;let n=Y(e);t.pinned?n.pinned.delete(t.trigger):n.transient=null,!n.transient&&n.pinned.size===0&&e.removeEventListener(`keydown`,n.onEscape,!0),t.watch.disconnect(),t.unroot(),t.el.hidePopover(),t.home?(t.popover===null?t.el.removeAttribute(`popover`):t.el.setAttribute(`popover`,t.popover),t.home.replaceWith(t.el)):t.own&&t.el.remove(),t.describedBy===null?t.trigger.removeAttribute(`aria-describedby`):t.trigger.setAttribute(`aria-describedby`,t.describedBy)}function ad(e){let t=Y(e);id(e,t.transient);for(let n of[...t.pinned.values()])id(e,n)}var od=Object.freeze({anchorOverlay:d,avatarNode:Xt,buttonClass:No,calendarMath:Ks,copyText:uc,dataTable:hc,dataTableText:pc,datePickerText:Au,defineElement:r,devWarn:$t,dom:He,drawerText:Mu,elementBase:a,fieldState:nn,flash:Ui,formatters:ns,formMirror:sn,glyphs:er,hasOwn:pn,httpFailureText:co,iconGlyphs:er,imeSafeEnter:hr,isDrawn:ol,listboxKeyNav:vr,loader:bn,mentionText:cl,menuKeyNav:vl,nativeOverlay:ie,notificationCentreText:wl,notificationDays:El,optionLabel:Sr,partRegistry:Zr,postError:Zl,refreshAfter:Ia,regions:Sa,relativeTime:Ll,rtl:c,selectList:Nr,selectRemote:ri,selectText:jr,selectWindow:Kl,server:uo,serverHtml:Xi,serverTableRegistry:ja,shellRegistry:$l,shortcutKeys:ut,stepperHeader:cu,svgNodes:Jn,tableExport:Ai,tableSelect:fu,textMatch:Pu,textStore:Ge,toastAction:to,toastHeader:Ri,tooltips:Iu,wuiHost:Qi,wuiHttp:ea,wuiUpload:iu,WuiSelect:ci,zone:Wo}),sd={avatarCropFailed:`That photo could not be saved. Try again, or choose another one.`,avatarDialogSubtitle:`Drag to position the photo, then zoom or rotate it.`,avatarDialogTitle:`Edit photo`,avatarSave:`Save photo`,cameraLabel:`Take photo`,cancel:`Cancel`,changeLabel:`Change photo`,closeLabel:`Close`,cropFailed:`That image could not be cropped. Choose another one.`,dialogSubtitle:`Drag the frame and zoom to choose what to keep.`,dialogTitle:`Crop photo`,heicUnreadableMessage:`This browser cannot open HEIC photos. Choose a JPG, PNG or WebP image instead.`,optionalLabel:`(optional)`,overlayLabel:`Update photo`,photoUnreadableMessage:`That photo could not be opened. Choose a JPG, PNG or WebP image.`,removeLabel:`Remove photo`,save:`Apply`,unreadable:`That image could not be opened. Choose another one.`,uploadLabel:`Upload photo`},cd=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,ld=10,ud=512,dd=`image/webp`,fd=[96,48];function pd(e){if(!e)return!1;let t=String(e.type||``).toLowerCase();return t===`image/heic`||t===`image/heif`||/\.hei[cf]$/i.test(String(e.name||``))}function md(e){let t=k(`imagePicker`,sd);return pd(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function hd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:dd,size:Number.isInteger(n)&&n>0?n:512}}var gd=`/`,_d=`.search-wrap.wui-search-collapsible`,vd=`.wui-topsearch-panel`,yd=`.modal, wui-drawer[open]`,bd=new WeakSet,xd=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Sd=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},Cd=e=>[...e.querySelectorAll(_d)].filter(e=>e instanceof HTMLElement);function wd(e){e.classList.remove(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`true`),Sd(e)?.focus()}function Td(e){Sd(e)?.value||(e.classList.add(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`false`))}function Ed(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=xd(e),n=Sd(e);t?.addEventListener(`click`,()=>wd(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),Td(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||Td(e)})}function Dd(e){bd.has(e)||(bd.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||Dt(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(yd)||e.querySelector(vd))return;let n=Cd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),wd(n))}))}function Od(e=document){let t=e;for(let e of Cd(t))Ed(e);Dd(e instanceof Element?e.ownerDocument:e)}var kd=`data-wui-command-shortcut`,Ad=`k`,jd=new WeakSet,Md=/ \(Ctrl\+([^)]+)\)$/;function Nd(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function Pd(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function Fd(e){return e.nodeType===Node.DOCUMENT_NODE}function Id(e){e.closest(`wui-modal`)?.show()}function Ld(e){if(Nd())for(let t of e.querySelectorAll(`[${kd}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(Md,(e,t)=>` (⌘${t})`))}}function Rd(e){let t=Fd(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(Ld(t),jd.has(t)||(jd.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${kd}]`))if(Pd(e,n.getAttribute(`data-wui-command-shortcut`)||Ad)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?Id(n):(n.focus(),`select`in n&&typeof n.select==`function`&&n.select());return}})))}var zd={audioLabel:`audio`,byteLabel:`B`,chooseText:`Choose {label}.`,gigabyteLabel:`GB`,imagesLabel:`images`,keepFileUnderMbText:`Keep the file under {maxSizeMb} MB.`,kilobyteLabel:`KB`,megabyteLabel:`MB`,orText:`{names} or {last}`,supportedLabel:`supported`,textFileLabel:`text file`,videosLabel:`videos`},X=()=>k(`fileValidation`,zd),Bd=`image/png,image/jpeg,image/webp`,Vd=5,Hd={"image/png":[`.png`],"image/jpeg":[`.jpg`,`.jpeg`],"image/webp":[`.webp`],"image/gif":[`.gif`],"image/svg+xml":[`.svg`],"image/heic":[`.heic`],"image/heif":[`.heif`],"application/pdf":[`.pdf`],"text/plain":[`.txt`]},Ud={"image/png":`PNG`,"image/jpeg":`JPG`,"image/webp":`WEBP`,"image/gif":`GIF`,"image/svg+xml":`SVG`,"image/heic":`HEIC`,"image/heif":`HEIC`,"application/pdf":`PDF`,".png":`PNG`,".jpg":`JPG`,".jpeg":`JPG`,".webp":`WEBP`,".gif":`GIF`,".svg":`SVG`,".heic":`HEIC`,".heif":`HEIC`,".pdf":`PDF`},Wd={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},Gd=new Set([`image/*`,`video/*`,`audio/*`]),Kd=e=>{let t=Wd[e];return t?X()[t]:Ud[e]},qd=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),Jd=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function Yd(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t.startsWith(`image/`);let n=typeof e==`string`?e:e.name||e.url||``,r=String(n).toLowerCase();return Jd.some(e=>r.endsWith(e))}var Xd=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function Zd(e){if(e<1024)return`${e} ${X().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<Xd.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${X()[Xd[n]??`gigabyteLabel`]}`}function Qd(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t===`application/pdf`;let n=typeof e==`string`?e:e.name||e.url||``;return String(n).toLowerCase().replace(/[?#][\s\S]*$/,``).endsWith(`.pdf`)}function $d(e){let t=qd(e);return t.length?t.every(e=>e.startsWith(`.`)?Jd.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function ef(e){let t=[];for(let n of qd(e)){let e=Kd(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||X().supportedLabel:A(X().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function tf(e,t){let n=qd(t);if(!n.length)return!0;let r=(e.type||``).toLowerCase(),i=(e.name||``).toLowerCase();return n.some(e=>e.startsWith(`.`)?i.endsWith(e):e.endsWith(`/*`)?r.startsWith(e.slice(0,-1)):r&&r===e?!0:!r&&(Hd[e]||[]).some(e=>i.endsWith(e)))}function nf(e,t={}){if(!e)return null;let n=t.accept===void 0?Bd:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!tf(e,n)){let e=ef(n),t=qd(n).map(e=>Gd.has(e));return t.every(Boolean)?A(X().chooseText,{label:e}):t.some(Boolean)?A(X().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):A(X().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?A(X().keepFileUnderMbText,{maxSizeMb:r}):null}function rf(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=nf(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function af(e,t){let{overClass:n,isDisabled:r=()=>!1,onFiles:i,onReject:a,...o}=t,s=0,c=t=>e.classList.toggle(n,t),l=e=>{e.preventDefault(),r()||(s+=1,c(!0))},u=e=>{e.preventDefault(),r()||c(!0)},d=e=>{e.preventDefault(),r()||(s=Math.max(0,s-1),s===0&&c(!1))},f=e=>{if(e.preventDefault(),s=0,c(!1),r())return;let{files:t,rejections:n}=rf(e.dataTransfer?.files,o);t.length&&i(t);let l=n[0];l&&a(l)};return e.addEventListener(`dragenter`,l),e.addEventListener(`dragover`,u),e.addEventListener(`dragleave`,d),e.addEventListener(`drop`,f),()=>{e.removeEventListener(`dragenter`,l),e.removeEventListener(`dragover`,u),e.removeEventListener(`dragleave`,d),e.removeEventListener(`drop`,f)}}var of={aadhaarMessage:`Enter a valid 12-digit Aadhaar number`,amountMessage:`Enter a valid amount`,dateMessage:`Enter a valid date as DD-MM-YYYY`,gstinMessage:`Enter a valid GSTIN`,ifscMessage:`Enter a valid IFSC`,incompleteMessage:`Enter the full value`,panMessage:`Enter a valid PAN`,phoneInMessage:`Enter a 10-digit mobile number`,pinCodeMessage:`Enter a valid 6-digit PIN code`},sf=/[0-9]/,cf={9:sf,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},lf=/[9A*]/,uf=new Set([`text`,`tel`,`search`,`url`,`password`]),df=e=>{let t=e.replace(/\D/g,``);return t.length===12&&t.startsWith(`91`)?t.slice(2):t.length===11&&t.startsWith(`0`)?t.slice(1):e},ff=e=>{let t=Number(e.slice(0,2)),n=Number(e.slice(2,4)),r=Number(e.slice(4,8));if(r<1)return!1;let i=new Date(Date.UTC(r,n-1,t));return i.getUTCFullYear()===r&&i.getUTCMonth()===n-1&&i.getUTCDate()===t},pf=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,mf=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Z=()=>k(`inputMask`,of);function Q(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Z().incompleteMessage}={}){let o=[...e].map(e=>{let t=cf[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===sf)?`numeric`:`text`,normalize:n,post:i,message:a,extract(e){let n=``,r=0;for(let i of e){for(;r<o.length&&o[r]?.lit!==void 0&&o[r]?.lit!==i;)r++;if(r>=o.length)break;let e=o[r];e?.lit===void 0?e?.re.test(i)&&(n+=t?i.toUpperCase():i,r++):r++}return n},layout(e){let t=``,n=[],r=0;for(let i=0;i<o.length&&r<e.length;i++){let a=o[i];a?.lit===void 0?(t+=e.charAt(r++),n.push(!0)):(t+=a.lit,n.push(!1))}return{text:t,isRaw:n}},isValid:e=>e.length===s&&(!r||r(e))}}function hf(){return{inputMode:`decimal`,post:e=>e,message:Z().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)sf.test(i)?n?r<2&&(t+=i,r++):t+=i:i===`.`&&!n&&(n=!0,t+=i);return t.startsWith(`.`)&&(t=`0${t}`),t.replace(/^0+(?=\d)/,``)},layout(e){let[t=``,n]=e.split(`.`),r=pf(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var gf={"phone-in":()=>Q(`99999 99999`,{normalize:df,valid:e=>/^[6-9]/.test(e),message:Z().phoneInMessage}),pan:()=>Q(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Z().panMessage}),gstin:()=>Q(`99AAAAA9999A***`,{upper:!0,valid:e=>/^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/.test(e),message:Z().gstinMessage}),aadhaar:()=>Q(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Z().aadhaarMessage}),ifsc:()=>Q(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Z().ifscMessage}),"pin-code":()=>Q(`999999`,{valid:e=>/^[1-9]/.test(e),message:Z().pinCodeMessage}),date:()=>Q(`99-99-9999`,{normalize:mf,valid:ff,post:(e,t)=>e.length===8&&ff(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Z().dateMessage}),amount:hf},_f=Object.keys(gf),vf=e=>{let t=String(e).toLowerCase();return mn(gf,t)?t:void 0},yf=e=>lf.test(String(e))&&vf(e)===void 0,bf=new Map;tt(()=>bf.clear());function xf(e){if(e==null||e===``)return null;let t=String(e),n=bf.get(t);return n===void 0&&(n=yf(t)?Q(t):mn(gf,t)?gf[t]?.()??null:null,bf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function Sf(e,t){let n=xf(e);return n?n.extract($(n,String(t??``))):String(t??``)}function Cf(e,t){let n=xf(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function wf(e,t){let n=xf(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Tf=(e,t)=>{if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(e[r]&&++n===t)return r+1;return e.length},Ef=new WeakMap,Df=e=>Ef.get(e)?.(),Of=new WeakMap;function kf(e,t,n,r){let i=e.getAll(t),a=Of.get(e)??new Set;Of.set(e,a);let o=i.findIndex((e,r)=>e===n&&!a.has(`${t}\u0000${r}`));if(!(o<0)){if(a.add(`${t}\u0000${o}`),i[o]=r,i.length===1)e.set(t,r);else{e.delete(t);for(let n of i)e.append(t,n)}}}function Af(e){let t=null,n=null,r=!1,i=(t,n)=>{n===null?e.removeAttribute(t):n!==void 0&&e.setAttribute(t,n)},a,o,s=()=>{t?.remove(),t=null,n&&(n.hidden=!1),n=null,r&&e.classList.remove(`error`),r=!1,i(`aria-invalid`,a),i(`aria-describedby`,o),a=void 0,o=void 0};return i=>{if(!i){s();return}let c=e.closest(`.field`),l=c instanceof HTMLElement?c:null,u=l?.querySelector(`.field-error`);if(!(u&&u!==t&&u.textContent?.trim())){if(!t){if(r=!e.classList.contains(`error`),e.classList.add(`error`),a=e.getAttribute(`aria-invalid`),o=e.getAttribute(`aria-describedby`),l){t=document.createElement(`div`),t.className=`field-error`,e.id&&(t.id=`${e.id}-error`);let r=l.querySelector(`.field-hint`);n=r instanceof HTMLElement?r:null,n&&(n.hidden=!0),l.insertBefore(t,[...l.children].find(e=>e.classList.contains(`field-count`))??null),t.id&&e.setAttribute(`aria-describedby`,t.id)}e.setAttribute(`aria-invalid`,`true`)}t&&(t.textContent=i)}}}function jf(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=xf(t);if(!a||!uf.has(e.type))return()=>{};let o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,`value`);if(!s?.set)throw Error(`input value setter missing`);let c=s.set,l=!e.hasAttribute(`inputmode`);l&&e.setAttribute(`inputmode`,a.inputMode);let u=i??Af(e),d=null,f=!1,p=!1,m=!1,h=``,g=``,_,v=()=>{let e=m?h:``;e!==g&&(g=e,u(g))},y=(t,n,i)=>{let o=a.extract(t.slice(0,n)).length,s=a.extract(t),{text:l,isRaw:u}=a.layout(s);if(e.value!==l&&(c.call(e,l),document.activeElement===e&&uf.has(e.type))){let t=Tf(u,o);e.setSelectionRange(t,t)}e.dataset.maskRaw=s,h=s&&!a.isValid(s)?a.message:``,e.setCustomValidity(h),v(),i&&s!==d&&r?.(s,l),d=s},b=Object.getOwnPropertyDescriptor(e,`value`),x=b??s;Object.defineProperty(e,"value",{configurable:!0,...x.enumerable===void 0?{}:{enumerable:x.enumerable},get:()=>D(x.get,`input value getter missing`).call(e),set:t=>{if(D(x.set,`input value setter missing`).call(e,t),p)return;let n=$(a,e.value);y(n,n.length,!0)}});let S=()=>{f=!0,e.dispatchEvent(new Event(`input`,{bubbles:!0})),f=!1},ee=t=>{let n=t instanceof InputEvent?t:null;if(f||p||n?.isComposing)return;let r=n?.inputType===`insertText`&&(n.data?.length??0)<=1||n?.inputType?.startsWith(`delete`)?e.value:$(a,e.value);y(r,e.selectionStart??r.length,!0)},te=()=>{p=!0},C=()=>{p=!1;let t=$(a,e.value);y(t,e.selectionStart??t.length,!0),S()},ne=t=>{let n=t.inputType===`deleteContentBackward`;if(!n&&t.inputType!==`deleteContentForward`||t.isComposing)return;let r=e.selectionStart;if(r==null||r!==e.selectionEnd)return;let{isRaw:i}=a.layout(a.extract(e.value)),o=n?r-1:r;for(;o>=0&&o<i.length&&!i[o];)o+=n?-1:1;o!==(n?r-1:r)&&(t.preventDefault(),o<0||o>=i.length||(y(e.value.slice(0,o)+e.value.slice(o+1),n?o:r,!0),S()))},re=t=>{if(e.readOnly||e.disabled)return;let n=t.clipboardData?.getData(`text`);if(n==null)return;t.preventDefault();let r=$(a,n),i=e.selectionStart??e.value.length,o=e.selectionEnd??i;y(e.value.slice(0,i)+r+e.value.slice(o),i+r.length,!0),S()},ie=()=>{let t=a.extract(e.value);return a.post(t,a.layout(t).text)},w=()=>{m=!0,v()};e.addEventListener(`input`,ee),e.addEventListener(`beforeinput`,ne),e.addEventListener(`paste`,re),e.addEventListener(`compositionstart`,te),e.addEventListener(`compositionend`,C),e.addEventListener(`blur`,w),e.addEventListener(`invalid`,w);let T=e.form,ae=t=>{e.name&&!e.disabled&&kf(t.formData,e.name,e.value,ie())},oe=()=>{clearTimeout(_),_=setTimeout(()=>{m=!1,y($(a,e.value),e.value.length,!0)},0)};n||(T?.addEventListener(`formdata`,ae),Ef.set(e,ie)),T?.addEventListener(`reset`,oe),T?.addEventListener(`submit`,w);let se=$(a,e.value);return y(se,se.length,!1),()=>{clearTimeout(_),e.removeEventListener(`input`,ee),e.removeEventListener(`beforeinput`,ne),e.removeEventListener(`paste`,re),e.removeEventListener(`compositionstart`,te),e.removeEventListener(`compositionend`,C),e.removeEventListener(`blur`,w),e.removeEventListener(`invalid`,w),T?.removeEventListener(`formdata`,ae),T?.removeEventListener(`reset`,oe),T?.removeEventListener(`submit`,w),Ef.delete(e),b?Object.defineProperty(e,"value",b):Reflect.deleteProperty(e,`value`),m=!1,h=``,v(),e.setCustomValidity(``),delete e.dataset.maskRaw,l&&e.removeAttribute(`inputmode`)}}function Mf(){let e=typeof window>`u`?void 0:window.jQuery?.validator?.prototype;if(!e||e.wuiMaskHook)return;let t=e.elementValue;e.elementValue=function(e){let n=Df(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var Nf=new WeakMap,Pf,Ff=e=>{Nf.has(e)||Nf.set(e,jf(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},If=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),Lf=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...If(e)]:[];function Rf(){Pf||typeof MutationObserver>`u`||(Pf=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Lf(e))Nf.get(t)?.(),Nf.delete(t);for(let e of t.addedNodes)for(let t of Lf(e))Ff(t)}}),Pf.observe(document.documentElement,{childList:!0,subtree:!0}))}function zf(e=document){Mf();for(let t of If(e))Ff(t);e===document&&Rf()}var Bf=`data-wui-bulk-in-bar`,Vf=`[data-wui-page-header-bar][data-wui-bulk-for]`,Hf=new WeakSet;function Uf(e){return`${W(e,{decimals:0})} selected`}function Wf(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function Gf(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function Kf(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function qf(e,t){for(let n of Kf(e,`[data-wui-bar-swap]`))n.hidden=t>0;let n=e.querySelector(`[data-wui-bar-bulk]`);if(!n)return;if(!(n instanceof HTMLElement))throw Error(`The bulk slot is not an HTML element.`);n.hidden=t===0;let r=n.querySelector(`.page-header-bar-bulk-count`);if(!(r instanceof HTMLElement))throw Error(`The bulk slot has no count element.`);r.textContent=t>0?Uf(t):``}function Jf(e=document){for(let t of Kf(e,Vf))Wf(t)?.setAttribute(Bf,``);Hf.has(document)||(Hf.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!Gf(e.detail))return;let t=e.target;if(t!==null&&!(t instanceof Node))throw Error(`The selection changed on a target that is not a node.`);for(let n of Kf(document,Vf))Wf(n)?.contains(t)&&qf(n,e.detail.selected)}))}var Yf={digitText:`At least one digit`,lengthText:`At least {minLength} characters long`,lowercaseText:`At least one lowercase letter`,requirementsTitle:`Password requirements`,specialText:`At least one special character`,uniqueCharsTextOne:`At least {n} unique character`,uniqueCharsTextOther:`At least {n} unique characters`,uppercaseText:`At least one uppercase letter`},Xf={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},Zf=()=>k(`passwordRules`,Yf);function Qf(e){return e===!0||e==null?{...Xf}:{...Xf,...e}}function $f(e){let t=Qf(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:A(Zf().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:Zf().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:Zf().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:Zf().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:Zf().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:rt(Zf(),`uniqueCharsText`,e,{n:e}),test:t=>new Set(t).size>=e})}for(let[e,r]of(t.customRules??[]).entries()){let t=new RegExp(r.pattern);n.push({key:`custom-${e}`,label:r.label,test:e=>t.test(e)})}return n}function ep(e,t){let n=e==null?``:String(e);return $f(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function tp(e,t){return ep(e,t).every(e=>e.met)}var np={moveLabel:`Move to`,moveText:`Move to {label}`},rp=`wui:row-drop`,ip=`is-drop-over`,ap=`application/x-wui-rows`,op=`wui-row-dragging`,sp=`[data-wui-drop-target]`,cp=`tbody tr[data-row-key]`,lp=`input, button, a, select, textarea, label`,up=`.wui-select-cell .form-check-input`,dp=new WeakMap,fp=new WeakSet,pp=null,mp=null;function hp(e){let t=e.querySelector(up);return t instanceof HTMLInputElement&&t.checked}function gp(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&hp(n)&&t.push(n.dataset.rowKey);return t}function _p(e,t){return We(e,t)}function vp(e,t){let n=_p(e,t);return n instanceof HTMLElement?n:null}function yp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var bp=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function xp(){pp=null,document.body.classList.remove(op);for(let e of document.querySelectorAll(`${sp}.${ip}`))e.classList.remove(ip)}function Sp(e,t,n){e.dispatchEvent(new CustomEvent(rp,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function Cp(e){let t=vp(e.target,sp);if(!t||!pp)return;e.preventDefault();let n=D(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(ip)}function wp(e){let t=vp(e.target,sp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(ip)}function Tp(e){let t=vp(e.target,sp);if(!t||!pp)return;e.preventDefault(),t.classList.remove(ip);let{root:n,keys:r}=pp;Sp(n,r,t),xp()}function Ep(e){let t=vp(e.target,sp);t&&mp?.keys.length&&(e.preventDefault(),Sp(mp.root,mp.keys,t))}function Dp(e){(_r(e)||e.key===` `)&&Ep(e)}function Op(e){fp.has(e)||(fp.add(e),e.addEventListener(`dragover`,Cp),e.addEventListener(`dragenter`,Cp),e.addEventListener(`dragleave`,wp),e.addEventListener(`drop`,Tp),e.addEventListener(`click`,Ep),e.addEventListener(`keydown`,Dp))}function kp(e){let t=dp.get(e);if(t)return t;Op(e.ownerDocument||e);let n=t=>{let n=vp(t.target,cp);if(!n||!e.contains(n))return;let r=_p(t.target,lp);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=vp(t.target,cp);if(!n||!e.contains(n))return;let r=hp(n)?gp(e):[n.dataset.rowKey],i=D(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(ap,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,pp={root:e,keys:r},document.body.classList.add(op)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(bp(n)){let{keys:t}=n;n.selected>0?mp={root:e,keys:Array.isArray(t)?t:gp(e)}:n.selected===0&&(mp=null)}jp(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,xp),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,xp),e.removeEventListener(`selectionchange`,i),dp.delete(e)};return dp.set(e,a),a}var Ap=()=>k(`rowDrop`,np);function jp(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${up}:checked`)!==null;for(let n of e.querySelectorAll(sp)){n.tagName!==`BUTTON`&&(n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`)),t?n.removeAttribute(`aria-disabled`):n.setAttribute(`aria-disabled`,`true`);let e=n.getAttribute(`data-wui-drop-label`)||yp(n);n.setAttribute(`aria-label`,A(Ap().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,Ap().moveLabel))}function Mp(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&kp(t);jp(e.ownerDocument||e)}var Np=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,Pp=1;function Fp(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>Pp&&n>Pp),e.toggleAttribute(`data-wui-overflow-end`,t>Pp&&n<t-Pp),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>Pp)},n=()=>{if(e.scrollWidth-e.clientWidth>Pp){let t=getComputedStyle(e);e.style.setProperty(`--wui-scroll-pad-start`,t.paddingInlineStart),e.style.setProperty(`--wui-scroll-pad-end`,t.paddingInlineEnd)}else e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))},r=()=>{n(),t()};e.addEventListener(`scroll`,t,{passive:!0});let i=null;if(typeof ResizeObserver<`u`){i=new ResizeObserver(r),i.observe(e);for(let t of e.children)i.observe(t)}return r(),()=>{e.removeEventListener(`scroll`,t),i?.disconnect(),e.removeAttribute(`data-wui-overflow-start`),e.removeAttribute(`data-wui-overflow-end`),e.removeAttribute(`data-wui-overflow-top`),e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))}}var Ip=new WeakMap,Lp,Rp=e=>{Ip.has(e)||Ip.set(e,Fp(e))},zp=e=>{if(!(e instanceof HTMLElement))return[];let t=e.matches(`.table-wrap, .table-responsive, [class*="table-responsive-"]`)?[e]:[];if(e.firstElementChild===null)return t;let n=[...e.querySelectorAll(Np)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function Bp(){Lp||typeof MutationObserver>`u`||(Lp=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of zp(e))Ip.get(t)?.(),Ip.delete(t);for(let e of t.addedNodes)for(let t of zp(e))Rp(t)}}),Lp.observe(document.documentElement,{childList:!0,subtree:!0}))}function Vp(e=document){for(let t of e.querySelectorAll(Np))t instanceof HTMLElement&&Rp(t);e===document&&Bp()}var Hp=new WeakSet;function Up(e){let t=e.querySelectorAll?[...e.querySelectorAll(`[data-wui-flash]`)]:[];e instanceof Element&&e.matches(`[data-wui-flash]`)&&t.unshift(e);for(let e of t){let t=e.getAttribute(`data-wui-flash-variant`)||`success`;if(!Gi(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${Wi.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&oo(n,t)}}function Wp(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!Hp.has(t)){Hp.add(t);let e=Yi();e&&oo(e.message,e.variant,e.action)}Up(e)}var Gp=`data-wui-submit-once`,Kp=`data-wui-submit-pending`,qp=`wui-submit-spinner`,Jp=new WeakSet,Yp=new WeakMap;function Xp(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function Zp(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${qp}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${qp}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function Qp(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${qp}`)?.remove()}function $p(e){return e.method===`post`&&e.target!==`_blank`&&e.getAttribute(`data-wui-submit-once`)!==`off`}function em(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!$p(t))return;if(t.hasAttribute(Kp)){e.preventDefault();return}t.setAttribute(Kp,``);let n=Xp(e.submitter);setTimeout(()=>{t.hasAttribute(Kp)&&(e.defaultPrevented?t.removeAttribute(Kp):n&&(n.disabled=!0,Zp(n),Yp.set(t,n)))},0)}var tm=e=>[...e.querySelectorAll(`form[${Kp}]`)].filter(e=>e instanceof HTMLFormElement);function nm(e){for(let t of tm(e)){t.removeAttribute(Kp);let e=Yp.get(t);e&&(e.disabled=!1,Qp(e),Yp.delete(t))}}function rm(e){let t=e.ownerDocument===null?e:e.ownerDocument;Jp.has(t)||(Jp.add(t),t.addEventListener(`submit`,em,!0),t.defaultView?.addEventListener(`pageshow`,()=>nm(t)))}var im=[`light`,`dark`,`auto`],am=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],om=`fade`,sm=`theme`,cm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},lm=`wui-theme-switching`,um=`wui:theme:change`,dm=`(prefers-color-scheme: dark)`,fm=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,pm=e=>im.some(t=>t===e);function mm(e){return e===`dark`||e===`auto`&&fm(dm)?`dark`:`light`}function hm(e=sm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return pm(t)?t:`auto`}function gm(e,t=sm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function _m(e){let t=document.documentElement,n=mm(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(um,{detail:{mode:n,preference:e}}))}var vm=`((k)=>{let m;try{m=localStorage.getItem(k)}catch{m=null}if(m!=='light'&&m!=='dark')m='auto';const r=document.documentElement,q=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null;function s(){const t=r.getAttribute('data-theme');r.setAttribute('data-bs-theme',t==='auto'?(q?.matches?'dark':'light'):t)}r.setAttribute('data-theme',m);s();if(q?.addEventListener)q.addEventListener('change',()=>{if(r.getAttribute('data-theme')==='auto')s()})})(`;function ym(e=sm){return`${vm}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function bm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function xm(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(dm),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Sm=60,Cm=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,wm=e=>e.toFixed(1),Tm=(e,t)=>`${wm(e)}px ${wm(t)}px`,Em={amplitude:22,segments:36,cycles:1.5,ripples:2},Dm=6,Om=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=Em,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Tm(0,u)];for(let t=0;t<=o;t++){let n=e*t/o,i=l+a*Math.sin(2*Math.PI*s*t/o+r);d.push(Tm(n,i))}return d.push(Tm(e,u)),`polygon(${d.join(`, `)})`},km=(e,t,n,r)=>{let i=t/Dm,a=[];for(let t=0;t<Dm;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Tm(0,c),Tm(e,c),Tm(e,l),Tm(0,l))}return`polygon(${a.join(`, `)})`};function Am(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=Sm;r++){let s=r/Sm,c=Cm(s);switch(e){case`circle`:{let e=i?.x??t/2,r=i?.y??n/2,a=Math.hypot(Math.max(e,t-e),Math.max(r,n-r));o.push({clipPath:`circle(${wm(a*c)}px at ${wm(e)}px ${wm(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${wm(e)}px 0px 0px 0px)`:`inset(0px 0px ${wm(e)}px 0px)`});break}case`blinds`:o.push({clipPath:km(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:Om(t,n,c,s*Em.ripples*2*Math.PI,a)})}}return o}var jm=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||tn(`[@webority/ui-elements] The theme view transition failed:`,e)};function Mm(e,{effect:t=om,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||fm(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(lm);let s=document.startViewTransition(e),c=i??cm[t]??cm.fade;return s.ready.then(()=>{let e=Am(t,{width:window.innerWidth,height:window.innerHeight,to:n,origin:r});a.animate(e,{duration:c,easing:`linear`,fill:`both`,pseudoElement:`::view-transition-new(root)`})}).catch(jm),s.finished.catch(jm).finally(()=>a.classList.remove(lm)).then(()=>!0)}function Nm(){Jt(),i(`wui-select`,di),i(`wui-modal`,Yt)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.185.0`,modules:od}),Ii(),Rn(),Oo(),Nm(),e.AVATAR_ACCEPT=cd,e.AVATAR_MAX_SIZE_MB=ld,e.AVATAR_OUTPUT_SIZE=ud,e.AVATAR_OUTPUT_TYPE=dd,e.AVATAR_PREVIEW_SIZES=fd,e.BAR_BULK_IN_BAR_ATTRIBUTE=Bf,e.COLUMN_MAX_WIDTH=_c,e.COLUMN_MIN_WIDTH=gc,e.COMMAND_SHORTCUT_ATTRIBUTE=kd,e.COPY_FEEDBACK_MS=dc,e.CSRF_META_NAME=ta,e.CURRENCIES=is,e.CURRENCY_SYMBOLS=Bo,e.DATE_PATTERNS=ss,e.DEFAULT_CSRF_HEADER=na,e.DEFAULT_CURRENCY=zo,e.DEFAULT_IMAGE_ACCEPT=Bd,e.DEFAULT_MAX_SIZE_MB=Vd,e.DEFAULT_PASSWORD_RULES=Xf,e.DEFAULT_THEME_EFFECT=om,e.DEFAULT_THEME_STORAGE_KEY=sm,e.DROP_OVER_CLASS=ip,e.DURATION_UNITS=os,e.FILTER_POPOVER_MAX_CHIPS=It,e.FLASH_STORAGE_KEY=Ki,e.FLASH_VARIANTS=Wi,e.FORMAT_STYLES=rs,e.GROUP_SELECT_CLASS=mu,e.HTTP_KINDS=oa,e.IST_TIME_ZONE=V,e.MASK_INPUT_TYPES=uf,e.MASK_NAMES=_f,e.MENTION_ID_PATTERN=ll,e.MONEY_UNITS=as,e.NOTIFICATION_COUNT_CAP=Dl,e.PIN_AT_VAR=Lc,e.PIN_SIDES=bc,e.RESIZE_STEP=vc,e.RESIZE_STEP_LARGE=yc,e.ROW_DRAG_TYPE=ap,e.ROW_DROP_EVENT=rp,e.ROW_HEIGHTS=Sc,e.ROW_MOVE_LIMIT=Vc,e.ROW_MOVE_MS=Hc,e.ROW_SAVE_ATTR=Xc,e.ROW_SAVE_ERROR_CLASS=Zc,e.ROW_SAVE_STATES=Yc,e.SCROLL_EDGE_SELECTOR=Np,e.SEARCH_OPEN_KEY=gd,e.SELECT_CELL_CLASS=J,e.SHORTCUTS_OFF_ATTRIBUTE=ft,e.SHORTCUT_EVENT=mt,e.SHORTCUT_SCOPE_ATTRIBUTE=pt,e.SUBMIT_ONCE_ATTRIBUTE=Gp,e.THEME_BOOT_SCRIPT_BODY=vm,e.THEME_CHANGE_EVENT=um,e.THEME_EFFECTS=am,e.THEME_EFFECT_DURATION=cm,e.THEME_MODES=im,e.THEME_SWITCHING_CLASS=lm,e.TOAST_ACTION_METHODS=zi,e.TOAST_ACTION_MS=no,e.VIRTUAL_OVERSCAN=xc,e.WUI_HEADERS=B,e.WuiPostError=Ql,e.WuiSelect=di,e.acceptDroppedFiles=rf,e.acceptLabel=ef,e.addRowSelectCells=wu,e.addSelectColumn=Tu,e.applyBarBulk=qf,e.applyRefresh=eo,e.applyTheme=_m,e.ariaKeyShortcuts=Et,e.attachFileDrop=af,e.attachInputMask=jf,e.attachRowDrag=kp,e.attachScrollEdges=Fp,e.attachShiftRange=ku,e.avatarCropOptions=hd,e.avatarUnreadableMessage=md,e.barBulkCountText=Uf,e.buildPasswordRules=$f,e.clampColumnWidth=Ac,e.classifyStatus=ua,e.collapseSearch=Td,e.configureCsrf=ia,e.copyTextToClipboard=fc,e.createGroupSelectCell=yu,e.createRequestQueue=xa,e.createSelectHeaderCell=gu,e.createSelectRowCell=_u,e.createSelectSpacerCell=vu,e.currencyPrefix=Ho,e.deriveStepStatus=lu,e.emptyValueLabel=H,e.evaluatePassword=ep,e.fillText=A,e.formatCompact=Ps,e.formatCurrency=Ms,e.formatDate=K,e.formatDateTime=Hs,e.formatDuration=Ls,e.formatFileSize=Zd,e.formatMasked=wf,e.formatNumber=W,e.formatPercent=Fs,e.formatRelativeTime=Wl,e.formatValue=Bs,e.glyphNode=F,e.groupCount=kc,e.groupItems=jc,e.groupNotificationsByDay=Fl,e.groupRowsOf=bu,e.identityCell=$c,e.inShortcutScope=At,e.initCollapsibleSearch=Od,e.initCommandShortcuts=Rd,e.initFlashToasts=Wp,e.initInputMasks=zf,e.initPageBarBulk=Jf,e.initRowDrag=Mp,e.initScrollEdges=Vp,e.initSubmitOnce=rm,e.isCommandChord=Pd,e.isCurrencyCode=Vo,e.isHeicFile=pd,e.isImageFile=Yd,e.isImageOnlyAccept=$d,e.isMaskPattern=yf,e.isPdfFile=Qd,e.isTimeZone=Jo,e.isTypingTarget=Dt,e.loadServer=go,e.loadShell=yo,e.loadedServer=_o,e.loadedShell=bo,e.maskedPostValue=Df,e.matchSegments=Fu,e.matchesAccept=tf,e.measureRows=Kc,e.mentionLabel=fl,e.mentionTextFromValue=hl,e.mentionValueFromText=gl,e.mentionedIds=_l,e.moveFocus=Mt,e.nextTheme=bm,e.notificationCountText=Al,e.notificationDayHeading=Pl,e.notificationTime=Nl,e.notificationTriggerLabel=jl,e.notificationUnreadAnnouncement=Ml,e.openSearch=wd,e.parseMentionValue=ml,e.parseServerHtml=Zi,e.parseToastAction=Hi,e.passwordSatisfies=tp,e.pinAtValue=Rc,e.pinClasses=Bc,e.pinOffsetVar=Ic,e.planPins=zc,e.playRowMoves=qc,e.pluralText=rt,e.postedMasked=Cf,e.rawMasked=Sf,e.readColumnWidths=Pc,e.readCsrf=ca,e.readStoredTheme=hm,e.readText=k,e.refreshAfter=$a,e.refreshRegions=Oa,e.relativeTimeTitle=Gl,e.reloadsPage=Wa,e.resolveMask=xf,e.resolveTheme=mm,e.rowLabel=el,e.rowOrderChanged=Jc,e.runShortcut=jt,e.runToastAction=so,e.saveOutcomeText=al,e.setRowSaveState=rl,e.setText=et,e.settledRows=il,e.shortcutKey=Tt,e.shortcutName=wt,e.shortcutsOff=kt,e.showResultToast=ao,e.showToast=oo,e.stepperHeaderItems=uu,e.storeTheme=gm,e.syncGroupSelect=Du,e.syncSelectAll=Eu,e.syncTargets=jp,e.themeBootScript=ym,e.themeKeyframes=Am,e.tickedKeys=gp,e.timeZoneLabel=Gs,e.timeoutFromAttribute=pa,e.toInstant=G,e.todayIn=es,e.transitionTheme=Mm,e.validateFile=nf,e.virtualRange=Mc,e.wallClockOf=$o,e.watchSystemTheme=xm,e.whenElementsReady=Bn,e.withTrustedLabel=wr,e.writeColumnWidths=Fc,e.wuiFetch=ba,e.wuiUpload=su,e.zoneOffsetMs=Xo,e.zoneParts=Yo,e})({});
1
+ var WeborityUiElements=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},r=n({defineElement:()=>i});function i(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var a=n({ElementBase:()=>s,NO_DOM_MESSAGE:()=>o}),o=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(o);var s=HTMLElement,c=n({isRtl:()=>l,mirrorKey:()=>u});function l(e){return getComputedStyle(e).direction===`rtl`}function u(e,t){return t?e===`ArrowRight`?`ArrowLeft`:e===`ArrowLeft`?`ArrowRight`:e:e}var d=n({anchorOverlay:()=>C,bindReanchor:()=>ne,unbindReanchor:()=>re}),f=4,p=8,m=300,h=400;function g(e,t,n){let r=t.offsetWidth,i=t.offsetHeight,a=n?e.left-f-r<f:e.right+f+r>window.innerWidth-f,o=n?!a:a,s=o?e.left-f-r:e.right+f;t.style.left=`${Math.max(f,s)}px`,t.style.top=`${Math.max(f,Math.min(e.top,window.innerHeight-i-f))}px`,t.dataset.side=o?`start`:`end`}function _(e,t){return t?e===`start`?`end`:e===`end`?`start`:e:e}var v=8,y={top:`bottom`,bottom:`top`,start:`end`,end:`start`},b=[`bottom`,`top`,`end`,`start`];function x(e,t){return e===`bottom`?window.innerHeight-t.bottom:e===`top`?t.top:e===`end`?window.innerWidth-t.right:t.left}function S(e,t,n,r){return e===`start`?t:e===`end`?n-r:t+(n-t-r)/2}function ee(e,t,n){return Math.max(v,Math.min(e,t-n-v))}function te(e,t,n,r){let i=r.gap??f,a=r.align??`start`,o=t.offsetWidth,s=t.offsetHeight,c=n===`auto`?b.reduce((t,n)=>x(n,e)>x(t,e)?n:t):n,l=c===`top`||c===`bottom`,u=(l?s:o)+i,d=x(c,e)<u&&x(y[c],e)>x(c,e)?y[c]:c,p=s;if(r.clampHeight){let n=d===`bottom`?window.innerHeight-e.bottom-i-f:d===`top`?e.top-i-f:window.innerHeight-8;n<s&&(p=Math.max(n,0),t.style.maxHeight=`${p}px`)}let m,h;if(l){h=d===`bottom`?e.bottom+i:Math.max(f,e.top-p-i);let t=S(a,e.left,e.right,o);r.flipAlign&&a===`start`&&t+o>window.innerWidth-f&&e.right-o>=f?t=e.right-o:r.flipAlign&&a===`end`&&t<f&&e.left+o<=window.innerWidth-f&&(t=e.left),m=Math.max(f,Math.min(t,window.innerWidth-o-f))}else m=Math.max(f,d===`end`?e.right+i:e.left-o-i),h=Math.max(f,Math.min(S(a,e.top,e.bottom,p),window.innerHeight-p-f));t.style.left=`${m}px`,t.style.top=`${h}px`,t.dataset.side=d;let g=r.arrow;if(g){if(l){let t=(e.left+e.right)/2-m-g.offsetWidth/2;g.style.left=`${ee(t,o,g.offsetWidth)}px`}else{let t=(e.top+e.bottom)/2-h-g.offsetHeight/2;g.style.top=`${ee(t,p,g.offsetHeight)}px`}}}function C(e,t,n={}){if(!e)throw Error(`anchorOverlay: missing trigger`);if(!t)throw Error(`anchorOverlay: missing panel`);t.style.position=`fixed`;let r=e.getBoundingClientRect(),i=e instanceof Element&&l(e);if(n.beside){g(r,t,i);return}if(n.side!==void 0){let e=n.clampHeight?Array.from(t.children,e=>[e,e.scrollTop]):[];t.classList.remove(`drop-up`),t.style.maxHeight=``,te(r,t,n.side===`auto`?`auto`:_(n.side,i),n);for(let[t,n]of e)t.scrollTop=n;return}let a=n.clampHeight?t.scrollTop:0;n.clampHeight&&(t.style.maxHeight=``);let o=t.offsetHeight,s=window.innerHeight-r.bottom,c=!n.below&&s<o+f&&r.top>s;if(t.classList.toggle(`drop-up`,c),t.style.top=c?`${Math.max(f,r.top-o-f)}px`:`${r.bottom+f}px`,n.clampHeight){let e=c?r.top-8:window.innerHeight-r.bottom-8;e<o&&(t.style.maxHeight=`${Math.max(e,0)}px`),t.scrollTop=a}n.matchWidth&&(r.width>=m?(t.style.minWidth=`${r.width}px`,t.style.width=`${r.width}px`,t.style.maxWidth=`${r.width}px`):(t.style.minWidth=`${r.width}px`,t.style.width=`max-content`,t.style.maxWidth=`${Math.min(h,window.innerWidth-8)}px`));let u=t.offsetWidth;if(n.alignEnd){let e=r.right-u,n=e>=p?e:r.left,i=Math.max(p,Math.min(n,window.innerWidth-u-p));t.style.left=`${i}px`}else{let e=n.flipAlign&&r.left+u>window.innerWidth-f&&r.right-u>=f,i=Math.min(e?r.right-u:r.left,window.innerWidth-u-f);t.style.left=`${Math.max(f,i)}px`}}function ne(e,t){re(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function re(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var ie=n({CLOSE_MOTION_LIMIT_MS:()=>400,CLOSING_ATTRIBUTE:()=>ae,DISMISS_ATTRIBUTE:()=>T,OPEN_ATTRIBUTE:()=>w,closeAnchoredPopover:()=>Fe,closeModalDialog:()=>Ne,isPopoverOpen:()=>E,onOverlayRootChange:()=>Be,openAnchoredPopover:()=>Pe,openModalDialog:()=>Me,overlayRoot:()=>ze,raisePopover:()=>Le,returnFocus:()=>ke,setPopoverOpen:()=>Ie,wireOpenTriggers:()=>Ve}),w=`data-wui-open`,T=`data-wui-dismiss`,ae=`data-wui-closing`,oe=`[${T}]`,se=`[${w}]`,ce=`(prefers-reduced-motion: reduce)`,le=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,ue=400,de=new WeakSet,fe=new WeakSet,pe=new WeakSet,me=Symbol.for(`webority.ui.modal-stack`),he=Symbol.for(`webority.ui.root-watches`);function ge(e){let t=e;return t[he]??=new Set,t[he]}var _e=new WeakMap,ve=new WeakMap,ye=new WeakMap;function be(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(le))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${oe},.wui-modal-back`))return t;n??=t}return n}function xe(e){let t=[],n=new Map;for(let r of e.querySelectorAll(le))if(!(r.closest(`[hidden],[inert]`)||r.closest(`dialog`)!==e)&&!(r.tabIndex<0||r.getClientRects().length===0)){if(r instanceof HTMLInputElement&&r.type===`radio`&&r.name){let e=n.get(r.name);e?r.checked&&!e.checked&&(e.checked=r,t[t.indexOf(e.first)]=r):(n.set(r.name,{first:r,checked:r.checked?r:null}),t.push(r))}else t.push(r)}return t}function Se(e){return e.localName.includes(`-`)&&`show`in e&&typeof e.show==`function`}function Ce(e){return e.localName.includes(`-`)&&customElements.get(e.localName)===void 0}function we(e){let t=e;return t[me]??=[],t[me]}function Te(e){Ee(e),we(e.ownerDocument).push(e)}function Ee(e){let t=we(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function De(e){for(let t of ge(e)){let n=ze(e);t.last!==n&&(t.last=n,t.listener(n))}}function Oe(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function ke(e,t){if(!e?.isConnected)return;let n=e.ownerDocument.activeElement;(!n||n===e.ownerDocument.body||t.contains(n))&&e.focus()}function Ae(e){let t=e.getBoundingClientRect();return t.bottom<0||t.right<0||t.top>window.innerHeight||t.left>window.innerWidth}function je(e,t){ye.get(e)?.();let n=t.ownerDocument,r=0,i=()=>{window.clearTimeout(o),window.clearTimeout(r),n.removeEventListener(`pointerdown`,i,!0),n.removeEventListener(`keydown`,i,!0),t.removeEventListener(`click`,a,!0),ye.delete(e)},a=()=>{t.removeEventListener(`click`,a,!0),r=window.setTimeout(i,0)},o=window.setTimeout(i,ue);n.addEventListener(`pointerdown`,i,!0),n.addEventListener(`keydown`,i,!0),t.addEventListener(`click`,a,!0),ye.set(e,i)}function Me(e,t){let n=t.focus===`first-control`?be(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),de.add(e);let o=()=>{if(Te(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw Ee(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),De(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;ze(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&de.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=t=>{if(t.key!==`Tab`||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;let n=e.ownerDocument;if(ze(n)!==e||e.querySelector(`:popover-open`))return;t.preventDefault();let r=xe(e),i=r[0],a=r[r.length-1];if(!i||!a){e.focus();return}let o=n.activeElement,s=o?r.findIndex(e=>e===o||e.contains(o)):-1;s<0?(t.shiftKey?a:i).focus():r[((t.shiftKey?s-1:s+1)+r.length)%r.length]?.focus()},u=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},d=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(oe);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.bottom)&&t.onRequestClose(`backdrop`)},f=()=>{let n=s;s=!1,Ee(e),de.has(e)?(o(),n&&t.onRequestClose(`escape`)):De(e.ownerDocument)},p=e.ownerDocument;return p.addEventListener(`keydown`,c),p.addEventListener(`keydown`,l),e.addEventListener(`cancel`,u),e.addEventListener(`click`,d),e.addEventListener(`close`,f),o(),()=>{p.removeEventListener(`keydown`,c),p.removeEventListener(`keydown`,l),e.removeEventListener(`cancel`,u),e.removeEventListener(`click`,d),e.removeEventListener(`close`,f),de.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),Ee(e),De(e.ownerDocument)}}async function Ne(e){de.delete(e),e.setAttribute(ae,``),!window.matchMedia(ce).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await Oe(e),e.close(),Ee(e),De(e.ownerDocument),e.removeAttribute(ae)}function Pe(e,t,n){let r=ye.get(t);if(r){r();return}_e.get(t)?.(),t.setAttribute(`popover`,n.mode),t.showPopover();let i=()=>C(e,t,n);try{i()}catch(e){throw Fe(t),e}ne(t,()=>{!E(t)||!t.isConnected?ve.get(t)?.():e.isConnected&&n.scrollSettling?.()?i():!e.isConnected||!n.keepOffscreen&&Ae(e)?Fe(t):i()});let a=new ResizeObserver(()=>{E(t)&&t.isConnected&&e.isConnected&&i()});a.observe(t);let o=e=>{`newState`in e&&e.newState===`closed`&&ve.get(t)?.()},s=()=>{n.mode===`auto`&&E(t)&&je(t,e)};t.addEventListener(`toggle`,o),e.addEventListener(`pointerdown`,s,!0),_e.set(t,()=>{t.removeEventListener(`toggle`,o),e.removeEventListener(`pointerdown`,s,!0),re(t),a.disconnect(),_e.delete(t),ve.delete(t)}),ve.set(t,()=>{_e.get(t)?.(),n.onClosed?.()})}function Fe(e){E(e)&&e.hidePopover(),ve.get(e)?.()}function E(e){return e.matches(`:popover-open`)}function Ie(e,t){Re(e),E(e)!==t&&(t?e.showPopover():e.hidePopover())}function Le(e){if(Re(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function Re(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function ze(e=document){let t=we(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}function Be(e,t=document){fe.has(t)||(fe.add(t),t.addEventListener(`toggle`,()=>De(t),!0),t.addEventListener(`close`,()=>De(t),!0));let n={last:ze(t),listener:e};return ge(t).add(n),()=>{ge(t).delete(n)}}function Ve(e){pe.has(e)||(pe.add(e),e.addEventListener(`click`,t=>{let n=t.target,r=n instanceof Element?n.closest(se):null;if(!(r instanceof HTMLElement))return;let i=(r.getAttribute(`data-wui-open`)??``).replace(/^#/,``),a=e.getElementById(i);if(!a)throw Error(`[data-wui-open] names #${i}, which is not on the page.`);Se(a)?(t.preventDefault(),a.show(r)):Ce(a)&&(t.preventDefault(),customElements.whenDefined(a.localName).then(()=>{a.isConnected&&Se(a)&&a.show(r)}))}))}var He=n({closestOf:()=>We,elementOf:()=>Ue,make:()=>O,must:()=>D});function D(e,t){if(e==null)throw Error(t);return e}function Ue(e,t,n){if(!(e instanceof t))throw TypeError(n);return e}function We(e,t){return e instanceof Element?e.closest(t):null}function O(e,t,...n){if(e.toLowerCase()===`svg`)throw Error(`make() builds HTML elements; use svgRoot for svg`);let r=document.createElement(e);for(let[e,n]of Object.entries(t??{}))n===!0?r.setAttribute(e,``):(typeof n==`string`||typeof n==`number`)&&r.setAttribute(e,String(n));let i=[];for(let e of n)e instanceof Node?i.push(e):(typeof e==`string`||typeof e==`number`)&&i.push(document.createTextNode(String(e)));return r.append(...i),r}var Ge=n({fillText:()=>A,pluralText:()=>rt,readText:()=>k,setText:()=>et,subscribeText:()=>tt,textLocale:()=>nt}),Ke=`en-IN`,qe=/\{([A-Za-z0-9_]+)\}/g,Je=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Ye,Xe=new Map,Ze=0,Qe=new Set,$e=new Map;function et(e){let t=new Map,n,r=Object.entries(e);for(let[e,i]of r)if(i!==void 0){if(e===`locale`){if(typeof i!=`string`)throw RangeError(`Text locale must be a BCP 47 tag string.`);n=i}else{if(!it(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,at(e,i))}}Ye=n,Xe=t,Ze+=1;for(let e of Array.from(Qe))e()}function k(e,t){let n=Xe.get(e);if(n===void 0)return t;let r=$e.get(e);if(r!==void 0&&r.version===Ze&&r.english===t&&st(r.merged,t))return r.merged;let i=ot(e,n,t);return $e.set(e,{version:Ze,english:t,merged:i}),i}function tt(e){return Qe.add(e),()=>{Qe.delete(e)}}function nt(){return Ye??Ke}function A(e,t){return e.replace(qe,(e,n)=>Je(t,n)?String(t[n]):e)}function rt(e,t,n,r){let i=`${t}Other`;if(!Je(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=new Intl.PluralRules(nt()).select(n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[Je(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return A(s,{count:n,...r})}function it(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function at(e,t){let n={};for(let[r,i]of Object.entries(t)){if(typeof i!=`string`)throw RangeError(`Text ${e}.${r} must be a string.`);n[r]=i}return n}function ot(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=Je(n,i)?n[i]:void 0;if(t===void 0)throw RangeError(`Text ${e}.${i} is not a key of the English text. Allowed keys: ${Object.keys(n).join(`, `)}.`);let o=ct(t);for(let t of ct(a))if(!o.includes(t))throw RangeError(`Text ${e}.${i} uses {${t}}, which the English text does not have. Allowed placeholders: ${o.length===0?`none`:o.map(e=>`{${e}}`).join(`, `)}.`);r[i]=a}return Object.assign({},n,r)}function st(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>Je(e,t))}function ct(e){return Array.from(e.matchAll(qe),e=>e[1]??``)}var lt={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},ut=n({SHORTCUTS_OFF_ATTRIBUTE:()=>ft,SHORTCUT_EVENT:()=>mt,SHORTCUT_SCOPE_ATTRIBUTE:()=>pt,ariaKeyShortcuts:()=>Et,inShortcutScope:()=>At,isTypingTarget:()=>Dt,listKeys:()=>gt,moveFocus:()=>Mt,runShortcut:()=>jt,selectKey:()=>_t,shortcutKey:()=>Tt,shortcutName:()=>wt,shortcutText:()=>ht,shortcutsOff:()=>kt}),dt=()=>k(`shortcutKeys`,lt),ft=`data-wui-shortcuts`,pt=`data-shortcut-scope`,mt=`wui:shortcut`,ht=()=>({title:dt().sheetTitle,close:dt().closeLabel,help:dt().helpLabel}),gt=()=>[{key:`J`,label:dt().nextItemLabel},{key:`K`,label:dt().previousItemLabel},{key:`Enter`,label:dt().openItemLabel}],_t=()=>({key:`X`,label:dt().selectItemLabel}),vt={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},yt={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},bt={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},xt=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),St=new Set([`textbox`,`searchbox`,`combobox`]),Ct=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function wt(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:vt[t]?vt[t]:t.length===1&&t.trim()?t.toLowerCase():null}function Tt(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():yt[t.toLowerCase()]??t}function Et(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>bt[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function Dt(e){if(!e||!Ot(e))return!1;if(e instanceof HTMLElement&&e.isContentEditable||e.closest?.(`[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]`)||e.tagName===`TEXTAREA`||e.tagName===`SELECT`)return!0;if(e.tagName===`INPUT`){let t=e instanceof HTMLInputElement&&e.type?e.type:`text`;return!xt.has(t.toLowerCase())}return St.has(e.getAttribute?.(`role`))}function Ot(e){return e.nodeType===1}function kt(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(ft)===`off`}function At(e,t){if(!t||e&&t.contains(e))return!0;let n=t.ownerDocument;return(!e||e===n.body||e===n.documentElement)&&n.querySelector(`[data-shortcut-scope]`)===t}function jt(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||kt(r?.ownerDocument??void 0))return!1;let i=wt(e);if(!i||!At(r,n)||Dt(r))return!1;let a=t[i]??(i.length===1?t[i.toUpperCase()]:void 0);return typeof a!=`function`||i===`enter`&&r instanceof Element&&r.closest(Ct)?!1:(e.preventDefault(),a(e),!0)}function Mt(e,t){let n=e[0]?.ownerDocument;if(!n)return null;let r=n.activeElement,i=e.findIndex(e=>e===r||e.contains(r));if(i<0&&r&&r!==n.body){let t=r.closest?.(`li, tr`);t&&(i=e.findIndex(e=>t.contains(e)))}i<0&&(i=e.findIndex(e=>e.getAttribute(`aria-current`)===`true`));let a=D(e[i<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,i+t))],`moveFocus: no item at the clamped index`);return a.focus(),a.scrollIntoView?.({block:`nearest`}),a}function Nt(e){"@babel/helpers - typeof";return Nt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Nt(e)}function Pt(e,t){if(Nt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Nt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ft(e){var t=Pt(e,`string`);return Nt(t)==`symbol`?t:t+``}function j(e,t,n){return(t=Ft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var It=2,Lt=`wui-filter-popover-pinned`,Rt=`.wui-filter-popover-trigger`,zt=`.wui-filter-popover-panel`,Bt=`.wui-filter-popover-head`,Vt=`input:not([type]),input[type="text"],input[type="search"]`,Ht=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function Ut(){try{return sessionStorage.getItem(Lt)===`1`}catch{return!1}}function Wt(e){try{e?sessionStorage.setItem(Lt,`1`):sessionStorage.removeItem(Lt)}catch(e){if(!(e instanceof DOMException))throw e}}function Gt(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function Kt(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var qt=class extends s{constructor(){super(),j(this,`_doc`,void 0),j(this,`_timer`,void 0),j(this,`_sticky`,void 0),j(this,`_closingByCode`,void 0),j(this,`_inside`,void 0),j(this,`_pendingSubmit`,void 0),j(this,`_onEnter`,void 0),j(this,`_onLeave`,void 0),j(this,`_onClick`,void 0),j(this,`_onChange`,void 0),j(this,`_onListClose`,void 0),j(this,`_onFocusOut`,void 0),j(this,`_onKeyDown`,void 0),j(this,`_onShortcut`,void 0),this._doc=null,this._timer=null,this._sticky=!1,this._closingByCode=!1,this._inside=!1,this._pendingSubmit=!1,this._onEnter=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!0,this._schedule(!0))},this._onLeave=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!1,this._schedule(!1))},this._onClick=e=>{this._trigger?.contains(Gt(e.target))&&(this._clear(),this.isOpen&&this._sticky?this._close(!0):this._open(!0,e.detail===0))},this._onChange=e=>{let t=this._pin;if(t&&e.target===t){Wt(t.checked),t.checked?this._clear():this._schedule(!1);return}let n=e.target;if(n instanceof Element&&n.closest(`wui-select[mode="multiple"], wui-select[mode="tag"]`)?.querySelector(`[aria-expanded="true"]`)){this._pendingSubmit=!0;return}let r=this.closest(`form.wui-filter-form`);r instanceof HTMLFormElement&&r.requestSubmit()},this._onListClose=()=>{if(!this._pendingSubmit)return;this._pendingSubmit=!1;let e=this.closest(`form.wui-filter-form`);e instanceof HTMLFormElement&&e.requestSubmit()},this._onFocusOut=e=>{this.contains(Gt(e.relatedTarget))||this._schedule(!1)},this._onKeyDown=e=>{let t=e.target;if(e.key!==`Enter`||!(t instanceof Element)||!this._panel?.contains(t)||!t.matches(Vt))return;e.preventDefault();let n=this.closest(`form.wui-filter-form`);n instanceof HTMLFormElement&&n.requestSubmit()},this._onShortcut=e=>{this.ownerDocument.querySelector(`wui-filter-popover`)===this&&jt(e,{f:()=>this._open(!0,!0)})}}get isOpen(){let e=this._panel;return e?E(e):!1}connectedCallback(){this._doc=this.ownerDocument,this.addEventListener(`pointerenter`,this._onEnter),this.addEventListener(`pointerleave`,this._onLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`change`,this._onChange),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`wui-select:close`,this._onListClose),this._doc.addEventListener(`keydown`,this._onShortcut),Ut()&&this._pin&&(this._pin.checked=!0,this._open(!1,!1))}disconnectedCallback(){this._clear();let e=this._panel;e&&this._closeByCode(e),this.removeEventListener(`pointerenter`,this._onEnter),this.removeEventListener(`pointerleave`,this._onLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`change`,this._onChange),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`wui-select:close`,this._onListClose),this._doc?.removeEventListener(`keydown`,this._onShortcut),this._doc=null}get _trigger(){return Kt(this,Rt)}get _panel(){return Kt(this,zt)}get _pin(){let e=this.querySelector(`${Bt} input[type="checkbox"]`);return e instanceof HTMLInputElement?e:null}get _pinned(){return this._pin?.checked===!0}_clear(){this._timer!==null&&clearTimeout(this._timer),this._timer=null}_schedule(e){if(this._clear(),e){if(this.isOpen)return;this._timer=setTimeout(()=>{this._timer=null,this._open(!1,!1)},150)}else this.isOpen&&!this._stayOpen()&&(this._timer=setTimeout(()=>{this._timer=null,this._stayOpen()||this._close(!1)},400))}_stayOpen(){let e=this._panel;return e?this._pinned||this._inside||e.contains(this.ownerDocument.activeElement)||e.querySelector(`[aria-expanded="true"]`)!==null:!1}_open(e,t){this._clear();let n=this._panel,r=this._trigger;n&&r&&(this.isOpen?e&&(this._sticky=!0):(r.setAttribute(`aria-expanded`,`true`),this._sticky=e,Pe(r,n,{mode:`auto`,clampHeight:!0,alignEnd:!0,onClosed:()=>this._closed()})),t&&(Kt(n.querySelector(`.wui-filter-popover-grid`),Ht)??Kt(n,Ht))?.focus())}_close(e){this._clear();let t=this._panel;if(!t||!this.isOpen)return;let n=t.contains(this.ownerDocument.activeElement);this._closeByCode(t),e&&n&&this._trigger?.focus()}_closeByCode(e){this._closingByCode=!0;try{Fe(e)}finally{this._closingByCode=!1}}_closed(){if(this._trigger?.setAttribute(`aria-expanded`,`false`),this._sticky=!1,this._closingByCode)return;let e=this._trigger,t=this._panel,n=this.ownerDocument.activeElement;e&&(n===this.ownerDocument.body||t?.contains(n))&&e.focus()}};function Jt(){i(`wui-filter-popover`,qt)}var Yt=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),j(this,`_doc`,void 0),j(this,`_release`,void 0),j(this,`_opener`,void 0),j(this,`_returnTo`,void 0),j(this,`_session`,void 0),j(this,`_closing`,void 0),j(this,`_reopen`,void 0),this._doc=null,this._release=null,this._opener=null,this._returnTo=null,this._session=0,this._closing=!1,this._reopen=!1}connectedCallback(){this._doc=this.ownerDocument,Ve(this._doc),this.hasAttribute(`open`)&&this._open()}disconnectedCallback(){this._session++,this._closing=!1,this._reopen=!1;let e=this.querySelector(`dialog`);this._release&&e instanceof HTMLDialogElement&&e.close(),this._releaseDialog(),this._opener=null,this._returnTo=null,this._doc=null}attributeChangedCallback(e){this._doc&&e===`open`&&(this.hasAttribute(`open`)?this._open():this._close())}get isOpen(){return this.hasAttribute(`open`)}show(e){e&&(this._opener=e),this.setAttribute(`open`,``)}hide(){this.removeAttribute(`open`)}_open(){if(this._closing){this._reopen=!0;return}if(this._release)return;let e=++this._session,t=this._opener;if(this._returnTo=t,this._opener=null,this.dispatchEvent(new CustomEvent(`wui-modal-open`,{bubbles:!0,detail:{trigger:t}})),!this.isOpen)return;let n=this._dialog();this._release=Me(n,{escape:!this.hasAttribute(`no-escape`),backdrop:!this.hasAttribute(`static`),focus:`first-control`,onRequestClose:e=>this._requestClose(e)}),this._settle(e,n)}_close(){if(this._closing){this._reopen=!1;return}if(!this._release)return;this._closing=!0;let e=this._session,t=this._dialog();Ne(t).then(()=>{e===this._session&&(this._closing=!1,this._releaseDialog(),ke(this._returnTo,t),this._returnTo=null,this.dispatchEvent(new CustomEvent(`wui-modal-closed`,{bubbles:!0})),this._reopen&&(this._reopen=!1,this.isOpen&&this._open()))})}_settle(e,t){let n=t.getAnimations?.()??[];n.length?Promise.allSettled(n.map(e=>e.finished)).then(()=>{e===this._session&&this.isOpen&&this._announceOpened()}):this._announceOpened()}_announceOpened(){this.dispatchEvent(new CustomEvent(`wui-modal-opened`,{bubbles:!0}))}_requestClose(e){this.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:e}}))&&this.removeAttribute(`open`)}_releaseDialog(){let e=this._release;this._release=null,e?.()}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},Xt=n({avatarNode:()=>Qt,safeImageUrl:()=>Zt}),Zt=e=>{let t=String(e??``).trim();return/^(https?:)?\/\//i.test(t)||/^\/(?!\/)/.test(t)||/^data:image\/(png|jpe?g|gif|webp|avif);/i.test(t)?t:``};function Qt(e,t=`wui-opt-avatar`){let n=Zt(e.avatar);return!n&&!e.initials?null:O(`span`,{class:`avatar ${t}`,"aria-hidden":`true`},O(`span`,{class:`avatar-face`},e.initials??``),n?O(`img`,{class:`avatar-img`,src:n,alt:``}):null)}var $t=n({devError:()=>tn,devWarn:()=>en});function en(e,...t){console.warn(e,...t)}function tn(e,...t){console.error(e,...t)}var nn=n({BUSY_CLASS:()=>rn,isInert:()=>M,isReadOnly:()=>an,syncFieldState:()=>on}),rn=`wui-field-busy`,an=e=>e.hasAttribute(`readonly`),M=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function on(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(rn,n),an(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var sn=n({syncFormMirror:()=>dn,syncFormMirrors:()=>fn}),cn=`data-wui-mirror`;function ln(e,t,n,r){t.name=n,t.value=r==null?``:String(r);for(let n of[...t.attributes])n.name.startsWith(`data-val`)&&!e.hasAttribute(n.name)&&t.removeAttribute(n.name);for(let n of e.attributes)n.name.startsWith(`data-val`)&&t.setAttribute(n.name,n.value);t.disabled=e.hasAttribute(`disabled`)}function un(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(cn,``),e.appendChild(t),t}function dn(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${cn}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=un(e),ln(e,i,n,t)):i?.remove()}function fn(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${cn}]`)].filter(e=>e instanceof HTMLInputElement),i=[...e.attributes].some(e=>e.name.startsWith(`data-val`)),a=n?t.length>0?t:i?[``]:[]:[];for(let e of r.splice(a.length))e.remove();a.forEach((t,i)=>{ln(e,r[i]??un(e),n,t)})}var pn=n({hasOwn:()=>mn}),mn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,hn=Object.freeze({serverActions:`[data-wui-confirm], [data-wui-post], form[data-wui-post-form], [data-wui-row-action], [data-wui-auto-submit]`,unsavedChanges:`form[data-wui-unsaved]`,remoteModal:`[data-wui-modal], [data-wui-drawer], [data-wui-pane], wui-modal[data-wui-remote-url]`,serverTable:`[data-wui-server]`,drawerDiscard:`wui-drawer[confirm-discard], wui-modal form`}),gn=Object.freeze({carousel:{entries:[`elements/carousel.ts`],tags:[`wui-carousel`]},"data-table":{entries:[`elements/data-table.ts`],tags:[`wui-data-table`]},dock:{entries:[`elements/dock.ts`],tags:[`wui-dock`]},"hover-card":{entries:[`elements/hover-card.ts`],tags:[`wui-hover-card`]},"navigation-menu":{entries:[`elements/navigation-menu.ts`],tags:[`wui-navigation-menu`]},"notification-center":{entries:[`elements/notification-center.ts`],tags:[`wui-notification-center`]},"onboarding-checklist":{entries:[`elements/onboarding-checklist.ts`],tags:[`wui-onboarding-checklist`]},otp:{entries:[`elements/otp.ts`],tags:[`wui-otp`]},overflow:{entries:[`elements/overflow.ts`],tags:[`wui-overflow`]},rating:{entries:[`elements/rating.ts`],tags:[`wui-rating`]},"record-pager":{entries:[`elements/record-pager.ts`],tags:[`wui-record-pager`]},"relative-time":{entries:[`elements/relative-time.ts`],tags:[`wui-relative-time`]},shortcuts:{entries:[`elements/shortcuts.ts`],tags:[`wui-shortcuts`]},"show-more":{entries:[`elements/show-more.ts`],tags:[`wui-show-more`]},"calendar-views":{entries:[`elements/calendar-views.ts`],tags:[`wui-calendar-views`]},truncate:{entries:[`elements/truncate.ts`],tags:[`wui-truncate`]},"whats-new":{entries:[`elements/whats-new.ts`],tags:[`wui-whats-new`]},"offline-banner":{entries:[`elements/offline-banner.ts`],tags:[`wui-offline-banner`]},"code-block":{entries:[`elements/code-block.ts`],tags:[`wui-code-block`]},"command-palette":{entries:[`elements/command-palette.ts`],tags:[`wui-command-palette`]},"comment-thread":{entries:[`elements/comment-thread.ts`],tags:[`wui-mention-input`,`wui-comment-thread`]},"consent-banner":{entries:[`elements/consent-banner.ts`],tags:[`wui-consent-banner`]},"context-menu":{entries:[`elements/context-menu.ts`],tags:[`wui-context-menu`]},"date-range":{entries:[`elements/date-range.ts`],tags:[`wui-date-range`]},"date-time":{entries:[`elements/date-time.ts`],tags:[`wui-date-time`]},datepicker:{entries:[`elements/datepicker.ts`],tags:[`wui-datepicker`]},"mini-calendar":{entries:[`elements/mini-calendar.ts`],tags:[`wui-mini-calendar`]},drawer:{entries:[`elements/drawer.ts`],tags:[`wui-drawer`]},dropdown:{entries:[`elements/dropdown.ts`],tags:[`wui-dropdown`]},"entry-grid":{entries:[`elements/entry-grid.ts`],tags:[`wui-entry-grid`]},gantt:{entries:[`elements/gantt.ts`],tags:[`wui-gantt`]},"image-crop":{entries:[`elements/image-crop.ts`],tags:[`wui-image-crop`]},"inline-edit":{entries:[`elements/inline-edit.ts`],tags:[`wui-inline-edit`]},kanban:{entries:[`elements/kanban.ts`],tags:[`wui-kanban`]},"dashboard-grid":{entries:[`elements/dashboard-grid.ts`],tags:[`wui-dashboard-grid`]},"lead-popup":{entries:[`elements/lead-popup.ts`],tags:[`wui-lead-popup`]},lightbox:{entries:[`elements/lightbox.ts`],tags:[`wui-lightbox`]},"org-tree":{entries:[`elements/org-tree.ts`],tags:[`wui-org-tree`]},markdown:{entries:[`elements/markdown.ts`],tags:[`wui-markdown`]},phone:{entries:[`elements/phone.ts`,`global/parts/select-country.ts`],tags:[`wui-phone`]},popover:{entries:[`elements/popover.ts`],tags:[`wui-popover`]},"saved-views":{entries:[`elements/saved-views.ts`],tags:[`wui-saved-views`]},glyphs:{entries:[`global/parts/glyphs.ts`],tags:[]},"select-chips":{entries:[`global/parts/select-chips.ts`],tags:[]},"select-recents":{entries:[`global/parts/select-recents.ts`],tags:[]},"select-search":{entries:[`global/parts/select-search.ts`],tags:[]},"select-window":{entries:[`global/parts/select-window.ts`],tags:[]},"table-export":{entries:[`global/parts/table-export.ts`],tags:[]},server:{entries:[`global/parts/server.ts`],tags:[],markers:Object.values(hn).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:`[data-app-shell]`},slider:{entries:[`elements/slider.ts`],tags:[`wui-slider`]},sortable:{entries:[`elements/sortable.ts`],tags:[`wui-sortable`]},"status-icon":{entries:[`elements/status-icon.ts`],tags:[`wui-status-icon`]},timepicker:{entries:[`elements/timepicker.ts`],tags:[`wui-timepicker`]},tour:{entries:[`elements/tour.ts`],tags:[`wui-tour`]},tree:{entries:[`elements/tree.ts`],tags:[`wui-tree`]},"tree-picker":{entries:[`elements/tree-picker.ts`],tags:[`wui-tree-picker`]},wizard:{entries:[`elements/wizard.ts`],tags:[`wui-wizard-step`,`wui-wizard`]},chart:{file:`ui-chart.global.js`,tags:[`wui-chart`],selfContained:!0},calendar:{file:`ui-calendar.global.js`,tags:[`wui-calendar`],selfContained:!0},"rich-text":{file:`ui-rich-text.global.js`,tags:[`wui-rich-text`],selfContained:!0},"file-viewer":{file:`ui-file-viewer.global.js`,tags:[`wui-file-viewer`],selfContained:!0}});Object.freeze({anchorOverlay:`anchorOverlay.ts`,avatarNode:`avatarNode.ts`,buttonClass:`buttonClass.ts`,calendarMath:`calendarMath.ts`,copyText:`copyText.ts`,dataTable:`dataTable.ts`,dataTableText:`text/web/dataTable.g.ts`,datePickerText:`text/web/datePicker.g.ts`,defineElement:`defineElement.ts`,devWarn:`devWarn.ts`,dom:`dom.ts`,drawerText:`text/web/drawer.g.ts`,elementBase:`elementBase.ts`,fieldState:`fieldState.ts`,flash:`server/flash.ts`,formatters:`formatters.ts`,formMirror:`formMirror.ts`,glyphs:`global/glyphs.ts`,hasOwn:`hasOwn.ts`,httpFailureText:`text/web/httpFailure.g.ts`,iconGlyphs:`iconGlyphs.g.ts`,imeSafeEnter:`imeSafeEnter.ts`,isDrawn:`isDrawn.ts`,listboxKeyNav:`listboxKeyNav.ts`,loader:`global/loader.ts`,mentionText:`mentionText.ts`,menuKeyNav:`menuKeyNav.ts`,nativeOverlay:`nativeOverlay.ts`,notificationCentreText:`text/web/notificationCentre.g.ts`,notificationDays:`notificationDays.ts`,optionLabel:`optionLabel.ts`,partRegistry:`select/partRegistry.ts`,postError:`server/postError.ts`,refreshAfter:`server/refreshAfter.ts`,regions:`server/regions.ts`,relativeTime:`relativeTime.ts`,rtl:`rtl.ts`,selectList:`select/list.ts`,selectRemote:`select/remote.ts`,selectText:`text/web/select.g.ts`,selectWindow:`select/window.ts`,server:`global/server.ts`,serverHtml:`server/serverHtml.ts`,serverTableRegistry:`server/serverTableRegistry.ts`,shellRegistry:`server/shellRegistry.ts`,shortcutKeys:`shortcutKeys.ts`,stepperHeader:`stepperHeader.ts`,svgNodes:`svgNodes.ts`,tableExport:`global/tableExport.ts`,tableSelect:`tableSelect.ts`,textMatch:`textMatch.ts`,textStore:`text/textStore.ts`,toastAction:`server/toastAction.ts`,toastHeader:`server/toastHeader.ts`,tooltips:`tooltips.ts`,wuiHost:`server/wuiHost.ts`,wuiHttp:`server/wuiHttp.ts`,wuiUpload:`server/wuiUpload.ts`,WuiSelect:`WuiSelect.ts`,zone:`zone.ts`});var _n=`ui-elements/`;function vn(e){let t=gn[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function yn(e){let t=vn(e);if(!t.selfContained)return`${_n+e}.global.js`;if(t.file===void 0)throw Error(`[webority-ui] The self-contained element chunk ${e} names no file.`);return t.file}var bn=n({CHUNK_DIR:()=>_n,CHUNK_RETRY_MS:()=>Cn,ELEMENTS_DEFINED_EVENT:()=>xn,ELEMENTS_LOAD_ERROR_EVENT:()=>Sn,assetUrl:()=>Vn,chunkReadyCheckKeys:()=>Hn,loadChunk:()=>P,registerChunkReadyCheck:()=>N,startElementLoader:()=>Rn,stopElementLoader:()=>zn,whenElementsReady:()=>Bn}),xn=`wui-elements:defined`,Sn=`wui-elements:load-error`,Cn=1e3,wn={"ui-elements/carousel.global.js":`61e97f6d97a0`,"ui-elements/data-table.global.js":`e524818c3477`,"ui-elements/dock.global.js":`0545d6e8ad9d`,"ui-elements/hover-card.global.js":`05aecc24eb9f`,"ui-elements/navigation-menu.global.js":`ff98f155f476`,"ui-elements/notification-center.global.js":`e02423cec907`,"ui-elements/onboarding-checklist.global.js":`8ef705f0ea59`,"ui-elements/otp.global.js":`8a786d1a68df`,"ui-elements/overflow.global.js":`10f07ce85b94`,"ui-elements/rating.global.js":`d63528772c91`,"ui-elements/record-pager.global.js":`a5ec0e6eba80`,"ui-elements/relative-time.global.js":`234185a0503d`,"ui-elements/shortcuts.global.js":`01d60b74350d`,"ui-elements/show-more.global.js":`562391cde95a`,"ui-elements/calendar-views.global.js":`59a4bd12fc35`,"ui-elements/truncate.global.js":`5d179f53a6ec`,"ui-elements/whats-new.global.js":`c6a2123ede72`,"ui-elements/offline-banner.global.js":`e066c705402e`,"ui-elements/code-block.global.js":`3dc5114baabe`,"ui-elements/command-palette.global.js":`d838c2f51941`,"ui-elements/comment-thread.global.js":`f2fbda1961e5`,"ui-elements/consent-banner.global.js":`bffe9bffd351`,"ui-elements/context-menu.global.js":`8d425f979fe1`,"ui-elements/date-range.global.js":`166a37fe0299`,"ui-elements/date-time.global.js":`f84cbb21ec89`,"ui-elements/datepicker.global.js":`7efd781b20ad`,"ui-elements/mini-calendar.global.js":`0e88da45224d`,"ui-elements/drawer.global.js":`1801b654ec96`,"ui-elements/dropdown.global.js":`7b9886bf1a1d`,"ui-elements/entry-grid.global.js":`5ddc3e5a25f5`,"ui-elements/gantt.global.js":`ea9d6040eaf7`,"ui-elements/image-crop.global.js":`079820a4955c`,"ui-elements/inline-edit.global.js":`76d6d3748dca`,"ui-elements/kanban.global.js":`f3444107d26f`,"ui-elements/dashboard-grid.global.js":`3709c6769855`,"ui-elements/lead-popup.global.js":`23bb0cffc168`,"ui-elements/lightbox.global.js":`73e7e02aee4f`,"ui-elements/org-tree.global.js":`e3199897ae78`,"ui-elements/markdown.global.js":`26a00e10782c`,"ui-elements/phone.global.js":`3de0fe4286f4`,"ui-elements/popover.global.js":`8af3f12ef359`,"ui-elements/saved-views.global.js":`2c460ca9fe6d`,"ui-elements/glyphs.global.js":`6b13bf71bb9a`,"ui-elements/select-chips.global.js":`65059c421175`,"ui-elements/select-recents.global.js":`431e0ce06030`,"ui-elements/select-search.global.js":`1101506edb54`,"ui-elements/select-window.global.js":`1d16bffd5216`,"ui-elements/table-export.global.js":`c142aafef9a8`,"ui-elements/server.global.js":`015d9eadca58`,"ui-elements/shell.global.js":`c3e86a03d25c`,"ui-elements/slider.global.js":`552cd5fd06c8`,"ui-elements/sortable.global.js":`c75e9432c14a`,"ui-elements/status-icon.global.js":`e94dda396552`,"ui-elements/timepicker.global.js":`c1d92435d0c4`,"ui-elements/tour.global.js":`5e3386061c17`,"ui-elements/tree.global.js":`41b34ae7c15e`,"ui-elements/tree-picker.global.js":`75766494e840`,"ui-elements/wizard.global.js":`07b7143900f7`,"ui-chart.global.js":`3e60b2bdf273`,"ui-calendar.global.js":`e4de59e25e99`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`97495f2e4ffa`,"ui-phone.global.js":`c646775bc1d1`},Tn=new Map;for(let[e,t]of Object.entries(gn))for(let n of t.tags)Tn.set(n,e);var En=[...Tn.keys()].join(`,`),Dn=[];for(let[e,t]of Object.entries(gn))t.markers!==void 0&&Dn.push([e,t.markers]);var On=[...new Set(Dn.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],kn=null,An=``,jn=!1,Mn=null,Nn=new Map,Pn=new Map,Fn=`The file ran but did not hand over its modules; see the error above.`,In=`The file has no ready check, so the loader cannot tell whether it ran.`;function Ln(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function Rn(e=Ln()){jn||(jn=!0,kn=e?.src?e.src:null,An=e?.nonce||``,Kn(document),Mn=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&Kn(t.target);else for(let e of t.addedNodes)e instanceof Element&&Kn(e)}),Mn.observe(document.documentElement,{childList:!0,subtree:!0,...On.length>0?{attributes:!0,attributeFilter:On}:{}}))}function zn(){Mn?.disconnect(),Mn=null,jn=!1,kn=null,An=``,Nn.clear()}function Bn(e=document){return Promise.all([...Gn(e)].map(e=>P(e))).then(()=>void 0)}function Vn(e){if(kn===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,kn);return t.search=mn(wn,e)?`?v=${wn[e]}`:``,t.href}function N(e,t){vn(e),Pn.set(e,t)}function Hn(){return[...Pn.keys()]}function P(e){let t=Nn.get(e)?.promise??null;if(t!==null)return t;let n=vn(e),{tags:r}=n,i=yn(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{Mn&&Object.keys(gn).every(e=>Nn.get(e)?.status===`loaded`||Nn.get(e)?.status===`failed`)&&Mn.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(xn,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),tn(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(Sn,{detail:{chunk:e,url:c,tags:r}})),s(Error(`[webority-ui] The ${e} elements failed to load.`))},f=(t,i)=>{let o=document.createElement(`script`);o.src=t,o.async=!1,An&&(o.nonce=An),o.addEventListener(`load`,()=>{if(!n.selfContained&&!r.every(e=>customElements.get(e))){d(Error(`The file ran but did not define its elements; see the error above.`));return}if(!n.selfContained&&r.length===0&&!Pn.has(e)){d(Error(In));return}let t=Pn.get(e);t!==void 0&&!t()?d(Error(Fn)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),Cn)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=Pn.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(In));return}if(t()){u();return}if(document.readyState===`complete`){d(Error(`The page's own tag for this file ran without handing over its modules.`));return}let i=!1,o=()=>{i||(i=!0,t()?u():d(Error(Fn)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=Vn(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,Nn.set(e,o),s}function Un(e){return Tn.has(e.localName)&&!customElements.get(e.localName)}function Wn(e,t){let n=Tn.get(t.localName);n!==void 0&&Un(t)&&e.add(n)}function Gn(e){let t=new Set;e instanceof Element&&Wn(t,e);for(let n of e.querySelectorAll(En))Wn(t,n);for(let[n,r]of Dn)Nn.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function Kn(e){for(let t of Gn(e))Promise.allSettled([P(t)])}var qn={add:[[`path`,{d:`M6 12h12M12 18V6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-circle":[[`path`,{d:`M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.2v.1`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-triangle":[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"arrow-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67`}]],"arrow-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83`}]],at:[[`path`,{d:`M16 12a4 4 0 1 1-8 0 4 4 0 1 1 8 0M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],calendar:[[`path`,{d:`M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"calendar-dots":[[`path`,{d:`M8 2v3M16 2v3M16 3.5c3.33.18 5 1.45 5 6.15v6.18c0 4.12-1 6.18-6 6.18H9c-5 0-6-2.06-6-6.18V9.65c0-4.7 1.67-5.96 5-6.15h8ZM20.75 17.6H3.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 8.25c-1.23 0-2.27.67-2.27 1.97 0 .62.29 1.09.73 1.39-.61.36-.96.94-.96 1.62 0 1.24.95 2.01 2.5 2.01 1.54 0 2.5-.77 2.5-2.01 0-.68-.35-1.27-.97-1.62.45-.31.73-.77.73-1.39 0-1.3-1.03-1.97-2.26-1.97Zm0 2.84c-.52 0-.9-.31-.9-.8 0-.5.38-.79.9-.79s.9.29.9.79c0 .49-.38.8-.9.8ZM12 14c-.66 0-1.14-.33-1.14-.93 0-.6.48-.92 1.14-.92.66 0 1.14.33 1.14.92 0 .6-.48.93-1.14.93Z`,fill:`currentColor`}]],chart:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.5 18.5c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2s-2 .9-2 2v9a2 2 0 0 0 2 2ZM8.5 18.5c1.1 0 2-.9 2-2V13c0-1.1-.9-2-2-2s-2 .9-2 2v3.5a2 2 0 0 0 2 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],check:[[`path`,{d:`m5 12.75 4.5 4.5L19 7.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"check-circle":[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.75 12 2.83 2.83 5.67-5.66`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"chevron-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95`}]],"chevron-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08`}]],"chevron-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08`}]],"chevron-up":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52`}]],"chevrons-up-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17`}]],circle:[[`path`,{d:`M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],clock:[[`path`,{d:`M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],code:[[`path`,{d:`M9 13c-.66.33-1.21.82-1.62 1.43-.23.35-.23.79 0 1.14.41.61.96 1.1 1.62 1.43M15.21 13c.66.33 1.21.82 1.62 1.43.23.35.23.79 0 1.14-.41.61-.96 1.1-1.62 1.43`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],comment:[[`path`,{d:`M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.996 11h.01M11.995 11h.01M7.995 11h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],danger:[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],database:[[`path`,{d:`M18.5 12.65v3.7c0 3.12-2.91 5.65-6.5 5.65s-6.5-2.53-6.5-5.65v-3.7C5.5 15.77 8.41 18 12 18s6.5-2.23 6.5-5.35Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65c0 .91-.25 1.75-.69 2.47C16.74 11.88 14.54 13 12 13c-2.54 0-4.74-1.12-5.81-2.88-.44-.72-.69-1.56-.69-2.47 0-1.56.73-2.97 1.9-3.99C8.58 2.63 10.2 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65v5c0 3.12-2.91 5.35-6.5 5.35s-6.5-2.23-6.5-5.35v-5C5.5 4.53 8.41 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],display:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],document:[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],download:[[`path`,{d:`M9 11v6l2-2M9 17l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],edit:[[`path`,{d:`m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ellipsis:[[`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`}]],export:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8`}]],"file-text":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],files:[[`path`,{d:`M17 13.4v3c0 4-1.6 5.6-5.6 5.6H7.6c-4 0-5.6-1.6-5.6-5.6v-3.8C2 8.6 3.6 7 7.6 7h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 13.4h-3.2c-2.4 0-3.2-.8-3.2-3.2V7l6.4 6.4ZM11.6 2h4M7 5c0-1.66 1.34-3 3-3h2.62M22 8v6.19c0 1.55-1.26 2.81-2.81 2.81M22 8h-3c-2.25 0-3-.75-3-3V2l6 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],filter:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],flag:[[`path`,{d:`M5.15 2v20M5.15 4h11.2c2.7 0 3.3 1.5 1.4 3.4l-1.2 1.2c-.8.8-.8 2.1 0 2.8l1.2 1.2c1.9 1.9 1.2 3.4-1.4 3.4H5.15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],funnel:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],gauge:[[`path`,{d:`M19.14 19.5a9.964 9.964 0 0 0 2.86-7c0-5.52-4.48-10-10-10S2 6.98 2 12.5c0 2.72 1.08 5.18 2.84 6.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 21.5a3.38 3.38 0 1 0 0-6.76 3.38 3.38 0 0 0 0 6.76ZM15.25 12H16c.82 0 1.5-.67 1.5-1.5 0-.82-.68-1.5-1.5-1.5s-1.5.67-1.5 1.5v.75c0 .41.34.75.75.75Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],grid:[[`path`,{d:`M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],image:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM2.67 18.95l4.93-3.31c.79-.53 1.93-.47 2.64.14l.33.29c.78.67 2.04.67 2.82 0l4.16-3.57c.78-.67 2.04-.67 2.82 0L22 13.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],info:[[`g`,{transform:`rotate(180 12 12)`},[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 16h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]]],key:[[`path`,{d:`M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],list:[[`path`,{d:`M3 4.5h18M3 9.5h9.47M3 14.5h18M3 19.5h9.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],lock:[[`path`,{d:`M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"maximize-4":[[`path`,{d:`M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],menu:[[`path`,{d:`M3 7h18M3 12h18M3 17h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],minus:[[`path`,{d:`M6 12h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],monitor:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],moon:[[`path`,{d:`M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],music:[[`path`,{d:`M6.28 22a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.84 16.8V4.6c0-2.6-1.63-2.96-3.28-2.51l-6.24 1.7C10.18 4.1 9.4 5 9.4 6.3v12.57`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.72 19.92a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24ZM9.4 9.52 20.84 6.4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],pause:[[`path`,{d:`M10.65 19.11V4.89c0-1.35-.57-1.89-2.01-1.89H5.01C3.57 3 3 3.54 3 4.89v14.22C3 20.46 3.57 21 5.01 21h3.63c1.44 0 2.01-.54 2.01-1.89ZM21 19.11V4.89C21 3.54 20.43 3 18.99 3h-3.63c-1.43 0-2.01.54-2.01 1.89v14.22c0 1.35.57 1.89 2.01 1.89h3.63c1.44 0 2.01-.54 2.01-1.89Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],people:[[`path`,{d:`M18 7.16a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58A2.589 2.589 0 0 1 18 7.16ZM16.97 14.44c1.37.23 2.88-.01 3.94-.72 1.41-.94 1.41-2.48 0-3.42-1.07-.71-2.6-.95-3.97-.71M5.97 7.16c.06-.01.13-.01.19 0a2.573 2.573 0 0 0 2.48-2.58C8.64 3.15 7.49 2 6.06 2a2.58 2.58 0 0 0-2.58 2.58c.01 1.4 1.11 2.53 2.49 2.58ZM7 14.44c-1.37.23-2.88-.01-3.94-.72-1.41-.94-1.41-2.48 0-3.42 1.07-.71 2.6-.95 3.97-.71M12 14.63a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58c-.01 1.4-1.11 2.54-2.49 2.58ZM9.09 17.78c-1.41.94-1.41 2.48 0 3.42 1.6 1.07 4.22 1.07 5.82 0 1.41-.94 1.41-2.48 0-3.42-1.59-1.06-4.22-1.06-5.82 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],phone:[[`path`,{d:`M21.97 18.33c0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56l2.32 3.27c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],play:[[`path`,{d:`M4 12V8.44c0-4.42 3.13-6.23 6.96-4.02l3.09 1.78 3.09 1.78c3.83 2.21 3.83 5.83 0 8.04l-3.09 1.78-3.09 1.78C7.13 21.79 4 19.98 4 15.56V12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],printer:[[`path`,{d:`M7.25 7h9.5V5c0-2-.75-3-3-3h-3.5c-2.25 0-3 1-3 3v2ZM16 15v4c0 2-1 3-3 3h-2c-2 0-3-1-3-3v-4h8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21 10v5c0 2-1 3-3 3h-2v-3H8v3H6c-2 0-3-1-3-3v-5c0-2 1-3 3-3h12c2 0 3 1 3 3ZM17 15H7M7 11h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],refresh:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44`}]],"rotate-ccw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32L10.76 2M7.87 5.32l3.37 2.46`}]],"rotate-cw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32L13.24 2M16.13 5.32l-3.37 2.46`}]],search:[[`path`,{d:`M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],send:[[`path`,{d:`m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],server:[[`path`,{d:`M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sort:[[`path`,{d:`M3 7h18M6 12h12M10 17h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],stop:[[`path`,{d:`M9.3 21h5.4c4.5 0 6.3-1.8 6.3-6.3V9.3C21 4.8 19.2 3 14.7 3H9.3C4.8 3 3 4.8 3 9.3v5.4C3 19.2 4.8 21 9.3 21Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],subtitle:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM17.5 17.08h-1.85M12.97 17.08H6.5M17.5 13.32h-5.53M9.27 13.32H6.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sun:[[`path`,{d:`M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m19.14 19.14-.13-.13m0-14.02.13-.13-.13.13ZM4.86 19.14l.13-.13-.13.13ZM12 2.08V2v.08ZM12 22v-.08.08ZM2.08 12H2h.08ZM22 12h-.08.08ZM4.99 4.99l-.13-.13.13.13Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],tag:[[`path`,{d:`m4.405 15.526 4.53 4.53a4.78 4.78 0 0 0 6.75 0l4.39-4.39a4.78 4.78 0 0 0 0-6.75l-4.54-4.52a4.75 4.75 0 0 0-3.6-1.39l-5 .24c-2 .09-3.59 1.68-3.69 3.67l-.24 5c-.06 1.35.45 2.66 1.4 3.61Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.735 12.226a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`m13.235 17.226 4-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],text:[[`path`,{d:`M2.67 7.17V5.35c0-1.15.93-2.07 2.07-2.07h14.52c1.15 0 2.07.93 2.07 2.07v1.82M12 20.72V4.11M8.06 20.72h7.88`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"two-page":[[`path`,{d:`M22 16.74V4.67c0-1.2-.98-2.09-2.17-1.99h-.06c-2.1.18-5.29 1.25-7.07 2.37l-.17.11c-.29.18-.77.18-1.06 0l-.25-.15C9.44 3.9 6.26 2.84 4.16 2.67 2.97 2.57 2 3.47 2 4.66v12.08c0 .96.78 1.86 1.74 1.98l.29.04c2.17.29 5.52 1.39 7.44 2.44l.04.02c.27.15.7.15.96 0 1.92-1.06 5.28-2.17 7.46-2.46l.33-.04c.96-.12 1.74-1.02 1.74-1.98ZM12 5.49v15M7.75 8.49H5.5M8.5 11.49h-3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],user:[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-high":[[`path`,{d:`M2 10v4c0 2 1 3 3 3h1.43c.37 0 .74.11 1.06.3l2.92 1.83c2.52 1.58 4.59.43 4.59-2.54V7.41c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3Z`,stroke:`currentColor`,"stroke-width":`1.5`}],[`path`,{d:`M18 8a6.66 6.66 0 0 1 0 8M19.83 5.5a10.83 10.83 0 0 1 0 13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-mute":[[`path`,{d:`M15 8.37v-.96c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3v4c0 2 1 3 3 3h2M10.41 19.13c2.52 1.58 4.59.43 4.59-2.54v-3.64M18.81 9.42c.9 2.15.63 4.66-.81 6.58M21.15 7.8a10.82 10.82 0 0 1-1.32 10.7M22 2 2 22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],x:[[`path`,{d:`M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-in":[[`path`,{d:`M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-out":[[`path`,{d:`M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]},Jn=n({svgNodes:()=>Xn,svgRoot:()=>Zn}),Yn=`http://www.w3.org/2000/svg`;function Xn(e){return e.map(Qn)}function Zn(e,t){let n=document.createElementNS(Yn,`svg`);return $n(n,e),n.append(...Xn(t)),n}function Qn(e){let[t,n,r]=e,i=document.createElementNS(Yn,t);return $n(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...Xn(r)),i}function $n(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}var er=n({GLYPH_CHUNK:()=>tr,GLYPH_PENDING_ATTRIBUTE:()=>nr,glyphNode:()=>F,lazyGlyphsRegistered:()=>pr,registerGlyphs:()=>mr}),tr=`glyphs`,nr=`data-wui-glyph-pending`,rr=`svg[${nr}]`,ir=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,ar={...qn},or=new Map,sr=!1,cr=!1,lr=null;function ur(e){return mn(ar,e)?ar[e]:void 0}function dr(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[nr]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function F(e,{size:t=16,className:n=``}={}){let r=ur(e);if(r!==void 0){let i=`${e}|${t}|${n}`,a=or.get(i);return a===void 0&&(a=Zn(dr(e,t,n,!1),r),or.set(i,a)),Ue(a.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return sr||!ir.test(e)?null:(Promise.allSettled([P(tr)]),Zn(dr(e,t,n,!0),[]))}function fr(e){let t=e instanceof Element&&e.matches(rr)?[e]:[];for(let n of[...t,...e.querySelectorAll(rr)]){let e=ur(n.getAttribute(`data-icon`)??``);e===void 0?n.remove():(n.removeAttribute(nr),n.replaceChildren(...Xn(e)))}}function pr(){return cr}function mr(e){Object.assign(ar,e),sr=!0,cr=!0,fr(document),lr===null&&(lr=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&fr(e)}),lr.observe(document.documentElement,{childList:!0,subtree:!0}))}var hr=n({isImeComposing:()=>gr,isImeSafeEnter:()=>_r});function gr(e){return e.isComposing||e.keyCode===229}function _r(e){return e.key===`Enter`&&!gr(e)}var vr=n({createListboxKeyNav:()=>br,moveActiveRow:()=>xr}),yr=e=>e.target instanceof Element?e.target.tagName:void 0;function br(e){let{getVisibleOptions:t,getActive:n,setActive:r,onEnter:i,onEscape:a,onTypeahead:o,typeaheadMs:s=500,getCount:c,getOptionAt:l,findByPrefix:u}=e,d=``,f=null,p=()=>{clearTimeout(f??void 0),f=null,d=``};return{handler:e=>{let m=c?[]:t(),h=c?c():m.length,g=()=>c?t():m,_=n(),v=yr(e)===`INPUT`||yr(e)===`TEXTAREA`;if(e.key===`ArrowDown`)e.preventDefault(),r(Math.min(_+1,h-1));else if(e.key===`ArrowUp`)e.preventDefault(),r(Math.max(_-1,0));else if(e.key===`Home`&&!v)e.preventDefault(),h&&r(0);else if(e.key===`End`&&!v)e.preventDefault(),h&&r(h-1);else if(e.key===`PageDown`&&!v){if(e.preventDefault(),!h)return;r(Math.min(Math.max(0,_)+8,h-1))}else if(e.key===`PageUp`&&!v){if(e.preventDefault(),!h)return;r(Math.max(Math.max(0,_)-8,0))}else if(_r(e))i&&(e.preventDefault(),i(l?l(_):m[_],g()));else if(e.key===`Escape`)a&&a(e);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&yr(e)!==`INPUT`&&yr(e)!==`TEXTAREA`){e.preventDefault(),clearTimeout(f??void 0),d+=e.key.toLowerCase(),f=setTimeout(p,s);let t=u?u(d,Math.max(0,_)):m.findIndex(e=>e.textContent.trim().toLowerCase().startsWith(d));t>=0&&(r(t),o&&o(e.key,t,g()))}},clearTypeahead:p}}function xr(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var Sr=n({TRUSTED_LABEL:()=>Cr,optionLabelNodes:()=>kr,optionText:()=>Ar,stripTags:()=>Er,withTrustedLabel:()=>wr}),Cr=Symbol(`wui.trustedLabel`),wr=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[Cr]:n}},Tr=e=>`wui-flag wui-flag-${e}`,Er=e=>String(e??``).replace(/<[^>]*>/g,``),Dr=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?F(t):null},Or=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?O(`span`,{class:Tr(t),"aria-hidden":`true`}):null};function kr(e){if(e==null)return[];let t=Or(e.flag),n=Dr(e.icon),r=e[Cr],i=r?[...r.cloneNode(!0).childNodes]:[document.createTextNode(String(e.label??``))];return!t&&!n?i:[O(`span`,{class:`wui-opt-label`},t,n,...i)]}var Ar=e=>{if(e==null)return``;let t=e[Cr];return t?t.textContent??``:Er(e.label)},jr=n({SELECT_TEXT:()=>Mr}),Mr={addLabel:`Add '{query}'`,addTagsLabel:`Add tags`,allCountriesLabel:`All countries`,clearAllLabel:`Clear all`,clearSelectionLabel:`Clear selection`,countryPlaceholder:`Select country`,countrySearchPlaceholder:`Search countries…`,createLabel:`Create '{text}'`,defaultSearchPlaceholder:`Search {labelText}…`,emptyText:`No matches`,fallbackName:`Select`,helpLabel:`More information`,hintText:`Type to search…`,invalidMessage:`That option is not available.`,optionalLabel:`(optional)`,partLoadMessage:`This control could not load. Reload the page.`,placeholder:`Select…`,recentsLabel:`Recent`,removeText:`Remove {text}`,searchingText:`Searching…`,selectedText:`{count} selected`,suggestedLabel:`Suggested`,tagPlaceholder:`Add…`},Nr=n({clearOptions:()=>Vr,drawn:()=>Ir,filterOptions:()=>Fr,nodesSignature:()=>Rr,optionRow:()=>Yr,posAttrMap:()=>Lr,refreshWindow:()=>Gr,registerWindowImpl:()=>Br,renderOptions:()=>Hr,revealRow:()=>Kr,rowId:()=>Ur,rowIndexByPrefix:()=>Jr,rowIndexOfValue:()=>qr,windowImplRegistered:()=>zr}),Pr=()=>k(`select`,Mr);function Fr(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[Ar(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Ir=new WeakMap,Lr=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},Rr=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),I;function zr(){return I!==void 0}function Br(e){I=e}function Vr(e){I?.clear(e),Ir.delete(e),e.replaceChildren()}function Hr(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=Pr().emptyText,searchingText:s=Pr().searchingText,hintText:c=Pr().hintText,actionRow:l=[],recents:u=null}=n,d=new Set(r.map(String)),f=Fr(t,i),p=e.id,m=l.filter(e=>e.position===`top`),h=l.filter(e=>e.position===`bottom`),g=u?.options.length?u.options:[],_=m.length+g.length+f.length+h.length,v=f.length>300,y=I,b=v&&y!==void 0,x=e=>b?{index:e,size:_}:void 0,S=0,ee=e=>{let t=S++;return O(`button`,{type:`button`,role:`option`,id:Ur(p,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Lr(x(t))},e.label)},te=e=>{let t=S++;return Yr(e,Ur(p,t),d.has(String(e.value)),x(t))},C=m.map(ee),ne=g.length&&u?[O(`div`,{class:`wui-select-group`},u.label),...g.map(te),O(`div`,{class:`wui-select-sep`,"aria-hidden":`true`})]:[],re=S,ie=[];if(b)S+=f.length;else{let e=``;for(let t of f)t.group&&t.group!==e&&ie.push(O(`div`,{class:`wui-select-group`},t.group)),e=t.group??``,ie.push(te(t))}let w=h.map(ee),T=[];if(a===`loading`?T=[O(`div`,{class:`wui-select-loading`},O(`span`,{class:`wui-select-spinner spinner-border spinner-border-sm`,role:`status`,"aria-hidden":`true`}),s)]:a===`hint`?T=[O(`div`,{class:`wui-select-hint`},c)]:(a===`empty`||f.length===0&&l.length===0)&&(T=[O(`div`,{class:`wui-select-empty`},o)]),b&&y){let n=[...C,...ne],r=[...w,...T];return y.render(e,{options:t,query:i,rows:f,pre:n,post:r,preSig:Rr(n),postSig:Rr(r),picked:d,top:m,recent:g,bottom:h,bodyBase:re,total:_}),{rows:_,windowed:!0,long:v}}y?.clear(e);let ae=[...C,...ne,...ie,...w,...T],oe=Rr(ae);return Ir.get(e)===oe||(Ir.set(e,oe),e.replaceChildren(...ae)),{rows:S,windowed:!1,long:v}}var Ur=(e,t)=>`${e}-opt-${t}`,Wr=e=>[...e.querySelectorAll(`.wui-select-option`)];function Gr(e){return I?I.refresh(e):!1}function Kr(e,t){return I?I.reveal(e,t):Wr(e)[t]??null}function qr(e,t){if(I)return I.indexOfValue(e,t);let n=new Set(t.map(String));return Wr(e).findIndex(e=>n.has(e.dataset.value??``))}function Jr(e,t){return I?I.indexByPrefix(e,t):Wr(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function Yr(e,t,n,r){let i=!!e.disabled,a={id:t,role:`option`,"data-value":String(e.value??``),"aria-selected":String(n),"aria-disabled":i?`true`:void 0,title:i&&e.disabledHint?e.disabledHint:void 0,...Lr(r)},o=O(`span`,{class:`wui-select-check`,"aria-hidden":`true`},F(`check`));if(!e.description&&!e.meta)return O(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},Qt(e),O(`span`,{class:`wui-select-opt-name`},...kr(e)),o);let s=e.description?O(`span`,{class:`wui-select-opt-desc`},e.description):null,c=e.meta?O(`span`,{class:`wui-select-opt-meta`},e.meta):null;return O(`div`,{class:`wui-select-option wui-select-option-rich${n?` selected`:``}`,...a},Qt(e),O(`span`,{class:`wui-select-option-text`},O(`span`,{class:`wui-opt-label`},...kr(e)),s),c,o)}var Xr=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),L=e=>e===`multiple`||e===`tag`,Zr=n({registerSelectPart:()=>$r,selectPart:()=>ei}),Qr=new Map;function $r(e,t){Qr.set(e,t)}function ei(e){return Qr.get(e)}var ti={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function ni(e){let t=mn(ti,e)?ti[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=ei(e);return n?Promise.resolve(n):P(t).then(()=>D(ei(e),`The ${e} part of <wui-select> did not register.`))}var ri=n({searchesRemotely:()=>ii}),ii=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),ai=()=>P(`select-window`),oi={requiredFieldMessage:`Please fill in this field.`},si={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},ci=n({WuiSelect:()=>di}),R=()=>k(`select`,Mr),li=()=>k(`search`,si),ui=()=>k(`field`,oi),di=class extends s{static get observedAttributes(){return`class.mode.value.placeholder.search-placeholder.empty-text.searchable.clearable.disabled.readonly.loading.required.size.density.icon.prefix.open.open-on-hover.lazy-options.aria-label.aria-describedby.aria-invalid.min-chars.debounce.source.remote.allow-custom.add-label.searching-text.hint-text.value-label.value-avatar.value-initials.max-tags.allow-duplicates.separators.pattern.invalid-message.create-label.collapse-chips.selected-text.clear-all-label.countries.suggested.suggested-label.all-countries-label.recents-key.recents-limit.recents-label`.split(`.`)}constructor(){super(),j(this,`_internals`,void 0),j(this,`_value`,void 0),j(this,`_optionsProp`,void 0),j(this,`_partOptions`,void 0),j(this,`_known`,void 0),j(this,`_loadOptionsFn`,void 0),j(this,`_validateFn`,void 0),j(this,`_declared`,void 0),j(this,`_query`,void 0),j(this,`_ownsFilter`,void 0),j(this,`_active`,void 0),j(this,`_rows`,void 0),j(this,`_windowed`,void 0),j(this,`_windowLoad`,void 0),j(this,`_windowFailed`,void 0),j(this,`_scrollFrame`,void 0),j(this,`_status`,void 0),j(this,`_error`,void 0),j(this,`_nav`,void 0),j(this,`_parts`,void 0),j(this,`_partSig`,void 0),j(this,`_partsMounted`,void 0),j(this,`_partToken`,void 0),j(this,`_rendered`,void 0),j(this,`_searchShown`,void 0),j(this,`_defaultValue`,void 0),j(this,`_warnedMode`,void 0),j(this,`_warnedDensity`,void 0),j(this,`_hoverTimer`,void 0),j(this,`_hoverOpened`,void 0),j(this,`_onHoverOver`,void 0),j(this,`_onHoverOut`,void 0),j(this,`_panelShown`,void 0),j(this,`_pressOpen`,void 0);try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=``,this._optionsProp=null,this._partOptions=null,this._known=new Map,this._loadOptionsFn=null,this._validateFn=null,this._declared=void 0,this._query=``,this._ownsFilter=!1,this._active=-1,this._rows=0,this._windowed=!1,this._windowLoad=null,this._windowFailed=!1,this._scrollFrame=null,this._status=`idle`,this._error=``,this._nav=null,this._parts=null,this._partSig=``,this._partsMounted=!1,this._partToken=0,this._rendered=!1,this._searchShown=!1,this._defaultValue=void 0,this._warnedMode=null,this._hoverTimer=null,this._hoverOpened=!1,this._panelShown=!1,this._pressOpen=null,this._onHoverOver=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&(this._clearHover(),!this._menuOpen()&&this._hoverEligible()&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,!this._menuOpen()&&this._hoverEligible()&&(this._open({focus:!1}),this._hoverOpened=!0)},hi)))},this._onHoverOut=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&!this._hoverZone(e.relatedTarget)&&(this._clearHover(),this._menuOpen()&&this.hasAttribute(`open-on-hover`)&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,this._close()},gi)))}}connectedCallback(){this.addEventListener(`pointerover`,this._onHoverOver),this.addEventListener(`pointerout`,this._onHoverOut),this._rendered||this.render(),this._ensureParts(),this._mountParts()}disconnectedCallback(){this.removeEventListener(`pointerover`,this._onHoverOver),this.removeEventListener(`pointerout`,this._onHoverOut),this._clearHover(),this._dropMenu(),this._teardown(),this._teardownParts()}attributeChangedCallback(e,t,n){e===`class`?this._syncUnderline():e===`value`?(this._value=Si(n,L(this.mode)),this._applyValue()):e===`aria-invalid`?this._syncInvalid():e===`open`?this._rendered&&(this.hasAttribute(`open`)?this._open({focus:!1}):this._close({force:!0})):e===`open-on-hover`?this.hasAttribute(`open-on-hover`)||this._clearHover():e!==`lazy-options`&&(e===`mode`&&(this._value=Si(this._value,L(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),bi.has(e)?this._rendered&&(this._drawValue(),this.renderList()):yi.has(e)?this._remountParts():this._rendered&&this.render())}formResetCallback(){if(this.value=this._defaultValue??``,!this._rendered)return;let e=this._refs();e.input&&(e.input.value=``,e.input.removeAttribute(`aria-invalid`)),e.search&&(e.search.value=``),this.setError(``),this._query!==``&&this._onQueryChange(``)}get mode(){let e=this.getAttribute(`mode`);return e===null?`single`:pi(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,en(`<wui-select> mode "${e}" is not one of ${Xr.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||mi.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,en(`<wui-select> density "${e}" is not one of ${mi.join(`, `)}; it is treated as "comfortable".`))}set mode(e){this.setAttribute(`mode`,String(e))}get value(){return Array.isArray(this._value)?this._value.slice():this._value}set value(e){this._value=Si(e,L(this.mode)),this._applyValue()}get options(){return this._readOptions()}set options(e){this._optionsProp=Array.isArray(e)?e:null,this.mode!==`country`&&(this._partOptions=null);for(let e of this._activePartsList())e.onOptions?.();if(this._rendered){if(this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._autoSearch()!==this._searchShown){this.render();return}this._drawValue(),this.renderList()}}get loadOptions(){return this._loadOptionsFn}set loadOptions(e){this._loadOptionsFn=typeof e==`function`?e:null,this._ensureParts()}get validate(){return this._validateFn}set validate(e){this._validateFn=typeof e==`function`?e:null}commit(e,t={}){this.value=e,this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,detail:{isCustom:!!t.isCustom}}))}setPartOptions(e){this._partOptions=Array.isArray(e)?e:null,this._drawValue(),this.renderList()}setStatus(e){this._status=e,this.renderList()}setError(e){this._error=e?String(e):``,this._syncError()}openMenu(){M(this)||this._open({focus:!1})}closeMenu({focusControl:e=!1}={}){this._close(),e&&this._refs().control?.focus()}renderList(){let e=this._refs();if(!e.list)return;let t=this._ownsFilter?``:this._query,n=this._actionRows(),r=this._recents();if(this.hasAttribute(`lazy-options`)&&!this._menuOpen()){this._rows=Fr(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,Vr(e.list),this._anchorMenu();return}let i=Hr(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||R().emptyText,searchingText:this.getAttribute(`searching-text`)||R().searchingText,hintText:this.getAttribute(`hint-text`)||void 0,actionRow:n,recents:r});this._rows=i.rows,this._windowed=i.windowed,i.long&&!i.windowed&&!this._windowFailed&&this._loadWindow(),this._active>=this._rowCount()&&(this._active=-1),this._active>=0&&this._setActive(this._active,{reveal:!1}),this._anchorMenu()}render(){this._dropMenu();let e=this._carry();this._teardownParts(),this._snapshotDeclared();let t=this.mode;this._checkDensity();let n=L(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=Si(this._value,n),this._defaultValue===void 0&&n&&this._value.length===0&&(this._value=this._declaredSelected()),n||this._preselect(),this._defaultValue===void 0&&(this._defaultValue=Si(this._value,n));let a=this.getAttribute(`size`),o=a===`sm`?` wui-select-sm`:a===`lg`?` wui-select-lg`:a===`xl`?` wui-select-xl`:``,s=this.getAttribute(`icon`),c=this.getAttribute(`prefix`),l=this.hasAttribute(`clearable`),u=this.hasAttribute(`disabled`);if(!this.id){let e=crypto.getRandomValues(new Uint8Array(8));this.id=`wui-select-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}let d=`${this.id}-listbox`,f=`${this.id}-entry-error`,p=this.getAttribute(`aria-describedby`)?.trim(),m=p?`${p} ${f}`:f,h=this.hasAttribute(`aria-invalid`)||!!this._error,g=this.hasAttribute(`required`)&&!i,_=this._accessibleName(),v=i?{}:{role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":`false`,"aria-controls":d},y={"aria-label":_,"aria-describedby":m,"aria-invalid":h?`true`:void 0,"aria-required":g?`true`:void 0},b=n?O(`div`,{class:`input wui-select-control wui-select-multi`,...v,...y,"aria-disabled":u?`true`:void 0,tabindex:!u&&!r?`0`:void 0}):O(`button`,{type:`button`,class:`input wui-select-control`,...v,...y,disabled:u||void 0}),x=[s?F(s,{className:`wui-select-icon`}):null,c?O(`span`,{class:`wui-select-prefix`},c):null,O(`span`,{class:`wui-select-value`,"data-label":!0}),l?O(`span`,{class:`wui-select-reset`,role:`button`,"aria-label":R().clearSelectionLabel,hidden:!0},F(`x`)):null,F(`chevron-down`,{className:`wui-select-caret`})];b.append(...x.filter(e=>e!==null));let S=this.getAttribute(`searchable`),ee=S===null?t===`multiple`||t===`country`||this._autoSearch():S!==`false`,te=t===`search`||ee&&!i;this._searchShown=te;let C=this.getAttribute(`search-placeholder`)||(t===`country`?R().countrySearchPlaceholder:li().placeholder),ne=O(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},te?O(`div`,{class:`wui-select-search`},F(`search`),O(`input`,{class:`wui-select-input`,placeholder:C,"aria-label":C,"aria-autocomplete":`list`}),O(`button`,{type:`button`,class:`wui-select-clear`,"aria-label":li().clearLabel,hidden:!0},F(`x`))):null,O(`div`,{class:`wui-select-options`,role:`listbox`,id:d,tabindex:`-1`,"aria-multiselectable":n?`true`:void 0})),re=O(`div`,{class:`field-error wui-select-error`,id:f,"aria-live":`polite`,hidden:!this._error||void 0},this._error||null);this.replaceChildren(O(`div`,{class:`wui-select${o}`},b,ne),re),this._rendered=!0,this._syncMirror(),this._syncValidity(),this._drawValue(),this._syncReset(),this.renderList(),this._wire(),on(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||R().fallbackName}_snapshotDeclared(){if(this._declared)return;let e=[...this.querySelectorAll(`:scope > wui-option`)];e.length&&(this._declared=e.map(e=>{let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));let n={value:e.getAttribute(`value`)??Oi(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of xi){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),wr(n,t)}))}_readOptions(){return this.mode===`country`?this._partOptions||[]:this._partOptions?this._partOptions:this._optionsProp?this._optionsProp:(this._snapshotDeclared(),this._declared||[])}_listOptions(){let e=this._readOptions(),t=this.getAttribute(`value-label`);if(this.mode!==`search`||!t||this._value===``)return e;let n=String(this._value);return e.some(e=>String(e.value)===n)?e:[...e,{value:n,label:t}]}_declaredSelected(){return this._optionsProp?[]:(this._declared??[]).filter(e=>e.selected).map(e=>String(e.value))}_preselect(){let e=this._readOptions(),t=this._value!==``&&e.find(e=>String(e.value)===this._value)||e.find(e=>`selected`in e&&!!e.selected);t&&(this._value=String(t.value))}_optionFor(e){let t=String(e),n=this._readOptions().find(e=>String(e.value)===t);return n?(this._known.set(t,n),n):this._known.get(t)}_placeholder(){return this.getAttribute(`placeholder`)||vi()[this.mode]}_hasValue(){return Array.isArray(this._value)?this._value.length>0:this._value!==``}_selectedValues(){return Array.isArray(this._value)?this._value:this._value===``?this._listOptions().some(e=>String(e.value)===``)?[``]:[]:[this._value]}_applyValue(){this._syncMirror(),this._syncValidity(),this._rendered&&(this._drawValue(),this._syncReset(),this.renderList())}_syncMirror(){L(this.mode)?fn(this,this._selectedValues()):dn(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=L(this.mode),n=t?void 0:this._optionFor(this._value);if(this._syncTitle(n),this._syncValueAvatar(),this._activePartsList().some(e=>e.renderValue?.()===!0))return;if(t){e.value.classList.remove(`wui-select-placeholder`),e.value.textContent=``;return}e.value.classList.toggle(`wui-select-placeholder`,!n);let r=this._placeholder();e.value.replaceChildren(...n?kr(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?Ar(e).trim():``;n?t.setAttribute(`title`,n):t.removeAttribute(`title`)}_syncValueAvatar(){let e=this.querySelector(`.wui-select-control`);if(!e)return;e.querySelector(`:scope > .wui-select-value-avatar`)?.remove();let t=!L(this.mode)&&this._hasValue()?Qt({avatar:this.getAttribute(`value-avatar`),initials:this.getAttribute(`value-initials`)},`avatar-xs`):null;e.classList.toggle(`wui-has-value-avatar`,!!t),t&&e.prepend(O(`span`,{class:`wui-select-value-avatar`,"aria-hidden":`true`},t))}_syncValidity(){let e=this._internals;if(typeof e?.setValidity==`function`){if(this.hasAttribute(`required`)&&!this._hasValue()){let t=this.querySelector(`.wui-select-control`);e.setValidity({valueMissing:!0},ui().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=z(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!M(this)))}_syncUnderline(){this.querySelector(`.wui-select-control`)?.classList.toggle(`wui-input-underline`,this.classList.contains(`wui-input-underline`))}_syncInvalid(){let e=this.querySelector(`.wui-select-control`);e&&(this.hasAttribute(`aria-invalid`)||this._error?e.setAttribute(`aria-invalid`,`true`):e.removeAttribute(`aria-invalid`))}_syncError(){let e=z(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:z(this,`.wui-select-control`,HTMLElement),value:z(this,`.wui-select-value`,HTMLElement),menu:z(this,`.wui-select-menu`,HTMLElement),list:z(this,`.wui-select-options`,HTMLElement),search:z(this,`.wui-select-search input`,HTMLInputElement),input:z(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=z(this,`.wui-select-menu`,HTMLElement);return e!==null&&E(e)}_hoverZone(e){if(!(e instanceof Element))return!1;let t=e.closest(`.wui-select-control, .wui-select-menu`);return t!==null&&this.contains(t)}_hoverEligible(){if(!this.hasAttribute(`open-on-hover`)||M(this)||this.mode===`tag`)return!1;let e=this._refs();return e.search===null&&e.input===null}_clearHover(){this._hoverTimer!==null&&clearTimeout(this._hoverTimer),this._hoverTimer=null}_autoSearch(){return this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._readOptions().length>_i}_visible(){let e=this._refs();return e.list?Di(e.list,`.wui-select-option`):[]}_rowCount(){return this._windowed?this._rows:this._visible().length}_rowEl(e){if(!this._windowed)return this._visible()[e];let t=this._refs().list?.querySelector(`[data-index="${e}"]`);return t instanceof HTMLElement?t:void 0}_setActive(e,{reveal:t=!0}={}){let n=this._refs();if(!n.list||!n.control)return;this._active=e;let r=null;e>=0&&e<this._rowCount()&&(r=this._rowEl(e)??(this._windowed&&t?Kr(n.list,e):null)),xr(n.list,r),r?(t&&r.scrollIntoView({block:`nearest`}),n.control.setAttribute(`aria-activedescendant`,r.id)):n.control.removeAttribute(`aria-activedescendant`)}_onListScroll(){this._scrollFrame=null;let e=this._refs().list;e&&Gr(e)&&this._active>=0&&this._setActive(this._active,{reveal:!1})}_actionRows(){let e=[];for(let t of this._activePartsList()){let n=t.actionRow?.(this._query);n&&e.push(n)}return e}_recents(){if(this._query.trim()!==``)return null;for(let e of this._activePartsList()){let t=e.recents?.(this._listOptions());if(t)return t}return null}_menuPlacement(e,t){let n=this.hasAttribute(`open`)?{below:!0}:{};if(this.getAttribute(`density`)!==`compact`)return{matchWidth:!0,...n};let r=e.getBoundingClientRect();return t.style.width=`max-content`,t.style.minWidth=`${r.width}px`,t.style.maxWidth=`280px`,n}_anchorMenu(){let e=this._refs();e.control&&e.menu&&this._menuOpen()&&C(e.control,e.menu,this._menuPlacement(e.control,e.menu))}_showMenu(e,t){Pe(e,t,{...this._menuPlacement(e,t),mode:`auto`,keepOffscreen:this.hasAttribute(`open`),onClosed:()=>this._onPanelClosed()}),this._panelShown=!0}_onPanelClosed(){if(!this._panelShown)return;this._panelShown=!1;let e=this._refs();e.control&&(e.control.setAttribute(`aria-expanded`,`false`),this._setActive(-1),this._nav?.clearTypeahead(),this.dispatchEvent(new CustomEvent(`wui-select:close`,{bubbles:!0})))}_open({focus:e=!0}={}){let t=this._refs();if(!t.menu||!t.control)return;let n=this._menuOpen();this._hoverOpened=!1,t.control.setAttribute(`aria-expanded`,`true`),this._query=t.input?t.input.value:``,this._ownsFilter=this._ownsFilter&&this._query!==``;let r=z(this,`.wui-select-search .wui-select-clear`,HTMLElement);if(r&&(r.hidden=!0),t.search&&(t.search.value=``),n||this._showMenu(t.control,t.menu),this.renderList(),e&&(t.search?.focus(),this._setActive(this._windowed&&t.list?qr(t.list,this._selectedValues()):this._visible().findIndex(e=>e.classList.contains(`selected`)))),!n){this.dispatchEvent(new CustomEvent(`wui-select:open`,{bubbles:!0}));for(let e of this._activePartsList())e.onOpen?.()}}_close({force:e=!1}={}){if(!e&&this.hasAttribute(`open`))return;let t=this._refs();if(!t.menu||!t.control)return;this._hoverOpened=!1;let n=t.menu.contains(document.activeElement);E(t.menu)&&Fe(t.menu),this._onPanelClosed(),n&&t.control.focus()}_onQueryChange(e){this._query=e,this._setActive(-1);let t=z(this,`.wui-select-search .wui-select-clear`,HTMLElement);t&&(t.hidden=!e);let n=!1;for(let t of this._activePartsList())t.onQuery?.(e)===!0&&(n=!0);this._ownsFilter=n,this.renderList()}_pick(e){if(e.getAttribute(`aria-disabled`)===`true`)return;let t=e.dataset.custom===`true`,n=e.dataset.value??``,r=t?{value:n,label:Oi(e).trim()}:this._listOptions().find(e=>String(e.value)===n)??{value:n,label:n},i=this._activePartsList().some(e=>e.onPick?.(r,{isCustom:t})===!0);L(this.mode)||(i||this.commit(n,{isCustom:t}),this._close(),this._refs().control?.focus())}_draftOpens(){return this.mode===`multiple`?this.hasAttribute(`allow-custom`):this.mode===`tag`&&ii(this)}_onKeyDown(e){if(!M(this)){for(let t of this._activePartsList())if(t.onKey?.(e)===!0)return;if(!this._menuOpen()){if(e.target instanceof HTMLInputElement){if(e.key!==`ArrowDown`||!this._draftOpens())return;this._open({focus:!1})}else{(e.key===`ArrowDown`||_r(e)||e.key===` `)&&(e.preventDefault(),this._open({focus:!0}));return}}D(this._nav,`Listbox keys are not wired.`).handler(e)}}_wire(){this._teardown();let e=this._refs(),t=e.control,n=e.list;if(!t||!e.menu||!n)return;let r=D(z(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=z(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=z(this,`.wui-select-reset`,HTMLElement);this._nav=br({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?Jr(n,e):this._visible().findIndex(t=>t.textContent.trim().toLowerCase().startsWith(e)),onEnter:(e,t)=>{if(e)this._pick(e);else if(this._query.trim()!==``){let e=t.find(e=>e.dataset.custom===`true`);if(e)this._pick(e);else if(t.length===1){let e=t[0];e&&this._pick(e)}}},onEscape:e=>{e.preventDefault(),this._nav?.clearTypeahead(),this._close(),t.focus()}}),r.addEventListener(`keydown`,e=>this._onKeyDown(e)),r.addEventListener(`input`,e=>{let t=e.target;if(!(t instanceof HTMLInputElement)||!t.matches(`.wui-select-input, .wui-select-draft`))return;this._onQueryChange(t.value);let n=t.matches(`.wui-select-draft`),r=this._rows>0||this._actionRows().length>0;n&&r&&!this._menuOpen()&&!M(this)&&this._draftOpens()&&this._open({focus:!1})}),r.addEventListener(`focusout`,e=>{let t=e.relatedTarget;t instanceof Node&&this.contains(t)||!this._activePartsList().some(e=>e.onBlur?.()===!0)&&t&&this._close()}),i?.addEventListener(`click`,()=>{let t=D(e.search,`The search input is missing.`);t.value=``,this._onQueryChange(``),t.focus()}),t.addEventListener(`pointerdown`,()=>{this._pressOpen=this._menuOpen()}),t.addEventListener(`click`,e=>{if(e.target instanceof Element&&e.target.closest(`[data-remove]`))return;if(this.mode===`tag`){if(M(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!M(this)&&this._open({focus:!1});return}let t=e.detail>0&&this._pressOpen!==null?this._pressOpen:this._menuOpen();this._pressOpen=null,this._clearHover(),this._hoverOpened&&t?(this._hoverOpened=!1,this._open({focus:!0})):t?this._close():M(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(L(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=Ei(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),L(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{L(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=Ei(e).closest(`.wui-select-option`);t instanceof HTMLElement&&!t.classList.contains(`is-active`)&&this._setActive(this._windowed?Number(t.dataset.index):this._visible().indexOf(t),{reveal:!1})}),n.addEventListener(`scroll`,()=>{this._windowed&&this._scrollFrame===null&&(this._scrollFrame=requestAnimationFrame(()=>this._onListScroll()))},{passive:!0}),n.addEventListener(`mouseleave`,()=>this._setActive(-1)),n.addEventListener(`error`,e=>{let t=e.target;t instanceof Element&&t.classList.contains(`avatar-img`)&&t.remove()},!0),this.hasAttribute(`open`)&&this._open({focus:!1})}_teardown(){this._nav?.clearTypeahead(),this._scrollFrame!==null&&cancelAnimationFrame(this._scrollFrame),this._scrollFrame=null}_dropMenu(){let e=z(this,`.wui-select-menu`,HTMLElement);e&&Fe(e)}_activePartsList(){return this._partsMounted?D(this._parts,`The mounted parts are missing.`):[]}_ensureParts(){if(!this.isConnected)return;(this.hasAttribute(`source`)||this.hasAttribute(`remote`)||this.hasAttribute(`recents-key`)||this._loadOptionsFn!==null)&&this._loadWindow();let e=wi(this,this.mode),t=e.join(`,`);if(t===this._partSig)return;this._teardownParts(),this._parts=null,this._partSig=t;let n=++this._partToken;Promise.all(e.map(e=>ki(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=ai().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(R().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=fi(this._refs());for(let n of this._parts)n.mount(this,t,{carry:e});this._drawValue(),this.renderList()}_teardownParts(){let e=this._activePartsList();this._partsMounted=!1;for(let t of e)t.teardown()}_remountParts(){if(!this._partsMounted)return;let e=this._carry();this._teardownParts(),this._mountParts(e)}_carry(){let e=this._refs();return{draft:e.input?.value??``,query:e.search?.value??``}}};j(di,`formAssociated`,!0);var fi=e=>{let{control:t,value:n,menu:r,list:i}=e;return{control:D(t,`control missing`),value:D(n,`value missing`),menu:D(r,`menu missing`),list:D(i,`list missing`),search:e.search,input:e.input}},pi=e=>Xr.includes(e),mi=[`comfortable`,`compact`],hi=150,gi=250,_i=10,vi=()=>{let e=R();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},yi=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),bi=new Set([`separators`,`allow-duplicates`,`invalid-message`,`create-label`,`add-label`,`selected-text`,`clear-all-label`,`value-label`,`value-avatar`,`value-initials`,`hint-text`,`recents-key`,`recents-limit`,`recents-label`]),xi=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],Si=(e,t)=>t?Array.isArray(e)?e.map(String):e==null||e===``?[]:String(e).split(`,`).map(e=>e.trim()).filter(Boolean):Array.isArray(e)?e.length?String(e[0]):``:e==null?``:String(e),Ci=(e,t)=>t===`multiple`?ii(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ii(e)?[`chips`,`search`]:[`chips`]:[],wi=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...Ci(e,t)]:Ci(e,t),Ti=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,Ei=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},z=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},Di=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Oi=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},ki=(e,t)=>ni(t).then(e=>{if(!Ti(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(R().partLoadMessage),null)),Ai=n({TABLE_EXPORT_CHUNK:()=>ji,loadTableExport:()=>Ni,registerTableExport:()=>Pi,tableExportRegistered:()=>Fi}),ji=`table-export`,Mi=null;function Ni(){return Mi===null?P(ji).then(()=>{if(Mi===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Mi}):Promise.resolve(Mi)}function Pi(e){Mi=e}function Fi(){return Mi!==null}function Ii(){N(`glyphs`,pr),N(`select-chips`,()=>ei(`chips`)!==void 0),N(`select-recents`,()=>ei(`recents`)!==void 0),N(`select-search`,()=>ei(`search`)!==void 0),N(`select-window`,zr),N(`table-export`,Fi)}var Li={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Ri=n({TOAST_ACTION_METHODS:()=>zi,parseToastAction:()=>Hi}),zi=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),Bi=e=>(en(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),Vi=e=>typeof e==`object`&&!!e;function Hi(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return Bi(`the value is not JSON`)}let n=Vi(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?Bi(`label and url must be non-empty strings`):zi.includes(a)?{label:r,url:i,method:a}:Bi(`method must be one of ${zi.join(`, `)}`)}var Ui=n({FLASH_STORAGE_KEY:()=>Ki,FLASH_VARIANTS:()=>Wi,isToastVariant:()=>Gi,storeFlash:()=>qi,takeStoredFlash:()=>Yi}),Wi=Object.freeze([`success`,`info`,`warning`,`danger`]),Gi=e=>Wi.some(t=>t===e),Ki=`wui.flash`;function qi(e,t,n){e&&window.sessionStorage.setItem(Ki,JSON.stringify({message:e,variant:t,action:n??null}))}var Ji=e=>{if(typeof e!=`object`||!e||!(`label`in e)||!(`url`in e)||!(`method`in e))throw TypeError(`stored flash action is not an action.`);let{label:t,url:n,method:r}=e;if(typeof t!=`string`||t===``||typeof n!=`string`||n===``||typeof r!=`string`||!zi.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function Yi(){let e=window.sessionStorage.getItem(Ki);if(e===null)return null;window.sessionStorage.removeItem(Ki);let t=JSON.parse(e);if(typeof t!=`object`||!t)throw TypeError(`stored flash is not an object.`);let n=`message`in t?t.message:void 0,r=`variant`in t?t.variant:void 0;if(typeof r!=`string`||!Gi(r))throw TypeError(`stored flash variant "${String(r)}" is not supported.`);if(typeof n!=`string`)throw TypeError(`stored flash message is not text.`);let i=`action`in t?t.action:null;return{message:n,variant:r,action:i===null?null:Ji(i)}}var Xi=n({parseServerHtml:()=>Zi});function Zi(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var Qi=n({wuiHost:()=>$i});function $i(){return D(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var ea=n({CSRF_META_NAME:()=>ta,DEFAULT_CSRF_HEADER:()=>na,DEFAULT_TIMEOUT_MS:()=>fa,HTTP_KINDS:()=>oa,WUI_HEADERS:()=>B,WUI_REQUEST_HEADER:()=>aa,classifyStatus:()=>ua,configureCsrf:()=>ia,createRequestQueue:()=>xa,isSameOrigin:()=>la,readCsrf:()=>ca,settleResponse:()=>ya,timeoutFromAttribute:()=>pa,wuiFetch:()=>ba}),ta=`wui-csrf`,na=`RequestVerificationToken`,ra={metaName:ta,header:na};function ia({metaName:e=ta,header:t=na}={}){ra={metaName:e,header:t}}var aa=`Wui-Request`,B=Object.freeze({fragment:`Wui-Fragment`,message:`Wui-Message`,redirect:`Wui-Redirect`,result:`Wui-Result`,keepOpen:`Wui-Keep-Open`,toastVariant:`Wui-Toast-Variant`,toastAction:`Wui-Toast-Action`,refresh:`Wui-Refresh`,next:`Wui-Next`}),oa=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),sa=new Set([`GET`,`HEAD`]);function ca(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===ra.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||ra.header,token:n}}var la=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function ua(e,t=null){return e>=200&&e<300?`ok`:e===401?`session`:e===403?t?.get(`cf-mitigated`)===`challenge`?`networkCheck`:`forbidden`:e===422?`validation`:e>=400&&e<500?`client`:`server`}var da=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,fa=3e4;function pa(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var ma=`The ${B.refresh} response header must be {tables, regions, reloadPage}.`,ha=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),ga=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${B.refresh} response header is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}if(typeof t!=`object`||!t||!(`tables`in t)||!(`regions`in t)||!(`reloadPage`in t))throw TypeError(ma);let{tables:n,regions:r,reloadPage:i}=t;if(!ha(n)||!ha(r)||typeof i!=`boolean`)throw TypeError(ma);return{tables:n,regions:r,reloadPage:i}},_a=(e,t)=>{if(!/json/i.test(e?.headers.get(`Content-Type`)??``)||t.trim()===``)return null;try{return JSON.parse(t)}catch(e){throw TypeError(`The JSON answer body is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}},va=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function ya(e,t=null,n=``){let r=e=>t?.headers.get(e)??null;return{kind:e,ok:e===`ok`,status:t?.status??0,html:n,response:t,message:va(r(B.message)),redirect:r(B.redirect),result:r(B.result),keepOpen:r(B.keepOpen)===`1`,toastVariant:r(B.toastVariant),toastAction:Hi(r(B.toastAction)),fragment:r(B.fragment)===`1`,data:_a(t,n),next:r(B.next),refresh:ga(va(r(B.refresh)))}}async function ba(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[aa]:`1`,...t.headers};if(!sa.has(n)&&la(e)){let e=ca();e&&(i[e.header]=e.token)}let a=new AbortController,o=()=>a.abort(),s=t.signal;s?.aborted&&a.abort(),s?.addEventListener(`abort`,o,{once:!0});let c=t.timeoutMs??0,l=!1,u=c>0?setTimeout(()=>{l=!0,a.abort()},c):void 0,d=e=>s?.aborted?`aborted`:l?`timeout`:da(e)?`aborted`:`network`;try{let o;try{o=await fetch(e,{method:n,...t.body===void 0?{}:{body:t.body},headers:i,signal:a.signal,credentials:`same-origin`})}catch(e){return ya(d(e))}let s=ua(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(B.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),ya(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return ya(d(e),o)}return ya(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function xa(){let e=null,t=0;return{async run(n,r={}){e?.abort();let i=new AbortController;e=i;let a=++t,o=r.signal;o&&(o.aborted?i.abort():o.addEventListener(`abort`,()=>i.abort(),{once:!0}));let s;try{s=await ba(n,{...r,signal:i.signal})}finally{e===i&&(e=null)}return a!==t&&s.kind!==`aborted`?{...s,kind:`stale`,ok:!1}:s},abort(){e?.abort(),e=null}}}var Sa=n({REFRESH_ATTR:()=>Ta,REGION_KEY_ATTR:()=>wa,REGION_SRC_ATTR:()=>Ca,refreshRegions:()=>Oa}),Ca=`data-wui-region-src`,wa=`data-wui-region-key`,Ta=`data-wui-refresh`,Ea=new WeakSet,Da=new Map;async function Oa(e=`all`){if(e!==`all`&&e.length===0)return;let t=e===`all`?null:new Set(e),n=new Map;for(let e of document.querySelectorAll(`[${Ca}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(wa);if(!i){Ea.has(e)||(Ea.add(e),tn(Error(`A [${Ca}] element needs ${wa}: ${r}`)));continue}if(t&&!t.has(i))continue;let a=n.get(r)??[];a.push(e),n.set(r,a)}await Promise.all([...n].map(([e,t])=>ka(e,t)))}async function ka(e,t){let n=(Da.get(e)??0)+1;Da.set(e,n);let r=await ba(e);if(Da.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){en(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of Zi(r.html).querySelectorAll(`[${wa}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(wa);t!==null&&!i.has(t)&&i.set(t,e)}for(let n of t){if(!n.isConnected)continue;let t=n.getAttribute(`data-wui-region-key`)??``,r=i.get(t);r?Aa(n,r):en(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function Aa(e,t){for(let t of Array.from(e.children))t.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}));e.replaceChildren(...Array.from(t.childNodes,e=>document.importNode(e,!0))),e.hidden=t.hidden;let n=t.getAttribute(`title`);n===null?e.removeAttribute(`title`):e.setAttribute(`title`,n);for(let t of Array.from(e.classList))t.startsWith(`tone-`)&&e.classList.remove(t);for(let n of Array.from(t.classList))n.startsWith(`tone-`)&&e.classList.add(n);$i().refresh(e)}var ja=n({getServerTable:()=>Fa,isServerTableWired:()=>Pa,registerServerTable:()=>Na}),Ma=new WeakMap;function Na(e,t){Ma.set(e,t)}function Pa(e){return Ma.has(e)}function Fa(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&Ma.get(t)||null}var Ia=n({applyPlan:()=>Qa,applyRefresh:()=>eo,holdInDialog:()=>qa,isRefreshOff:()=>Ra,mergePlans:()=>Ha,planOf:()=>za,planReloads:()=>Ua,refreshAfter:()=>$a,refreshesNothing:()=>Ja,reloadPage:()=>Ga,reloadsPage:()=>Wa,setDialogHold:()=>Ka}),La=null;function Ra(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function za(e){if(!e.ok)return null;let t=e.message,n=e.toastVariant||`success`,r=e.toastAction,i=e.refresh;return i===null?{tables:`all`,regions:`all`,reload:`auto`,message:t,variant:n,action:r}:{tables:i.tables,regions:i.regions,reload:i.reloadPage?`page`:`never`,message:t,variant:n,action:r}}var Ba={never:0,auto:1,page:2},Va=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function Ha(e,t){return e===null?t:{tables:Va(e.tables,t.tables),regions:Va(e.regions,t.regions),reload:Ba[e.reload]>=Ba[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function Ua(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function Wa(e){let t=za(e);return t!==null&&Ua(t)}function Ga(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function Ka(e){La=e}function qa(e,t){return La?La(t,e):!1}function Ja(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var Ya=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),Xa=(e,t)=>{let n=[...document.querySelectorAll(`[data-wui-server]`)].filter(e=>e instanceof HTMLElement),r=n;if(e.tables!==`all`){let t=e.tables,i=new Set(n.flatMap(Ya));for(let e of t)i.has(e)||en(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>Ya(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!Ra(e))},Za=async e=>{await Fa(e)?.reload({quiet:!0})};async function Qa(e,t={}){if(t.origin&&qa(e,t.origin))return`held`;if(Ua(e)&&(e.reload===`page`||t.allowReload!==!1))return qi(e.message,e.variant,e.action),Ga(),`reloaded`;let n=Xa(e,t.skip).map(e=>Za(e).catch(tn));return(e.regions===`all`||e.regions.length>0)&&n.push(Oa(e.regions).catch(tn)),await Promise.all(n),`refreshed`}async function $a(e,t={}){let n=za(e);return n===null?`none`:Qa(n,t)}async function eo(){await Qa({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var to=n({TOAST_ACTION_MS:()=>no,runToastAction:()=>so,showResultToast:()=>ao,showToast:()=>oo}),no=8e3,ro=()=>k(`toast`,Li);function io(e){if(!Gi(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function ao(e,t=`success`){e?.message&&oo(e.message,t,e.toastAction)}function oo(e,t,n=null){n?$i().toast(e,{variant:io(t),duration:no,action:{label:n.label,onClick:e=>void so(n,e)}}):$i().toast(e,{variant:io(t)})}async function so(e,t=null){let n=await ba(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(Wa(n)||ao(n,n.toastVariant||`success`),await $a(n,{origin:t})):$i().toast(n.message||ro().failedText,{variant:`danger`}))}var co=n({HTTP_FAILURE_TEXT:()=>lo}),lo={networkCheckText:`A network check stopped this request. Try again, or report it if it keeps happening.`,networkText:`We could not reach the server. Check your network or firewall and try again.`},uo=n({SERVER_CHUNK:()=>fo,SHELL_CHUNK:()=>po,loadServer:()=>go,loadShell:()=>yo,loadedServer:()=>_o,loadedShell:()=>bo,registerServer:()=>vo,registerShellParts:()=>xo}),fo=`server`,po=`shell`,mo=null,ho=null;N(fo,()=>mo!==null),N(po,()=>ho!==null);function go(){return mo===null?P(fo).then(()=>{if(mo===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return mo}):Promise.resolve(mo)}function _o(){return mo}function vo(e){mo=e}function yo(){return ho===null?P(po).then(()=>{if(ho===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return ho}):Promise.resolve(ho)}function bo(){return ho}function xo(e){ho=e}var So=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,Co=`form[data-wui-post-form], form[data-wui-confirm]`,wo=`[data-wui-confirm]`,To=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,Eo=new WeakSet,Do=new WeakMap;function Oo(e=document){Eo.has(e)||(Eo.add(e),e.addEventListener(`click`,ko,!0),e.addEventListener(`submit`,Ao,!0))}function ko(e){if(_o()!==null||!(e.target instanceof Element))return;let t=e.target.closest(So);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(To)||jo(e,t,()=>t.click()))}function Ao(e){if(_o()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(Co)||(n?.matches(wo)??!1))&&jo(e,t,()=>Mo(t,n))}function jo(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),Do.has(t)||(Do.set(t,!0),go().then(()=>{Do.delete(t),t.isConnected&&n()},()=>{Do.delete(t),oo(k(`httpFailure`,lo).networkText,`danger`)}))}function Mo(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var No=n({APP_BUTTON_MARKER:()=>Po,buttonClass:()=>Ro}),Po=`AppButton`,Fo=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Io={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function Lo(e){return mn(Io,e)}function Ro(e=`primary`,t=`solid`,n=`md`){if(!Fo.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!Lo(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=Io[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var zo=`INR`,Bo=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),Vo=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Ho=(e=`INR`)=>Bo[e]??`${e} `,Uo={aprShortLabel:`Apr`,aprilLabel:`April`,augShortLabel:`Aug`,augustLabel:`August`,decShortLabel:`Dec`,decemberLabel:`December`,emptyValueLabel:`-`,febShortLabel:`Feb`,februaryLabel:`February`,friMinLabel:`Fr`,friShortLabel:`Fri`,fridayLabel:`Friday`,janShortLabel:`Jan`,januaryLabel:`January`,julShortLabel:`Jul`,julyLabel:`July`,junShortLabel:`Jun`,juneLabel:`June`,marShortLabel:`Mar`,marchLabel:`March`,mayLabel:`May`,mayShortLabel:`May`,monMinLabel:`Mo`,monShortLabel:`Mon`,mondayLabel:`Monday`,novShortLabel:`Nov`,novemberLabel:`November`,octShortLabel:`Oct`,octoberLabel:`October`,satMinLabel:`Sa`,satShortLabel:`Sat`,saturdayLabel:`Saturday`,sepShortLabel:`Sep`,septemberLabel:`September`,sunMinLabel:`Su`,sunShortLabel:`Sun`,sundayLabel:`Sunday`,thuMinLabel:`Th`,thuShortLabel:`Thu`,thursdayLabel:`Thursday`,tueMinLabel:`Tu`,tueShortLabel:`Tue`,tuesdayLabel:`Tuesday`,wedMinLabel:`We`,wedShortLabel:`Wed`,wednesdayLabel:`Wednesday`},Wo=n({IST_OFFSET_MS:()=>Go,IST_TIME_ZONE:()=>V,isTimeZone:()=>Jo,nowIn:()=>ts,todayIn:()=>es,wallClockOf:()=>$o,wallToInstant:()=>Zo,zoneOffsetMs:()=>Xo,zoneParts:()=>Yo}),V=`Asia/Kolkata`,Go=198e5,Ko=new Map;function qo(e){let t=Ko.get(e);return t||(t=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),Ko.set(e,t)),t}function Jo(e){if(typeof e!=`string`||e===``)return!1;try{return qo(e),!0}catch{return!1}}function Yo(e,t=V){if(t===`Asia/Kolkata`){let t=new Date(e+Go);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries(qo(t).formatToParts(e).map(e=>[e.type,Number(e.value)]));return{year:Number(n.year),month:Number(n.month)-1,day:Number(n.day),hour:Number(n.hour)%24,minute:Number(n.minute),second:Number(n.second)}}function Xo(e,t=V){if(t===`Asia/Kolkata`)return Go;let n=Yo(e,t),r=new Date(0);return r.setUTCFullYear(n.year,n.month,n.day),r.setUTCHours(n.hour,n.minute,n.second,0),r.getTime()-Math.floor(e/1e3)*1e3}function Zo(e,t=V){let n=e-Xo(e,t);return n=e-Xo(n,t),n}var Qo=e=>e instanceof Date?e.getTime():e;function $o(e,t=V){return new Date(e+Xo(e,t)).toISOString().slice(0,19)}function es(e=V,t=Date.now()){return $o(Qo(t),e).slice(0,10)}function ts(e=V,t=Date.now()){let n=Qo(t);return new Date(n+Xo(n,e))}var ns=n({CURRENCIES:()=>is,DATE_PATTERNS:()=>ss,DURATION_UNITS:()=>os,FORMAT_STYLES:()=>rs,IST_OFFSET_MS:()=>Go,IST_TIME_ZONE:()=>V,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>as,compactFormatOf:()=>Vs,emptyValueLabel:()=>H,formatCompact:()=>Ps,formatCurrency:()=>Ms,formatDate:()=>K,formatDateTime:()=>Hs,formatDayShort:()=>zs,formatDuration:()=>Ls,formatNumber:()=>W,formatPercent:()=>Fs,formatValue:()=>Bs,isMoneyUnit:()=>cs,istParts:()=>Rs,monthLabel:()=>U,monthLongLabel:()=>hs,paiseToRupeeText:()=>Os,timeZoneLabel:()=>Gs,toInstant:()=>G,weekdayLabel:()=>gs}),rs=[`number`,`currency`,`percent`,`compact`,`duration`,`date`],is=[`INR`,`USD`,`EUR`,`GBP`],as=[`rupees`,`paise`],os=[`ms`,`s`,`min`,`h`],ss=[`day`,`month`,`year`,`datetime`,`time`];function cs(e){return as.some(t=>t===e)}var ls=()=>k(`formatters`,Uo),H=()=>ls().emptyValueLabel,us=`−`,ds=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],fs=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],ps={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},ms=(e,t)=>ls()[D(e[t],`no date name at index ${t}`)],U=e=>ms(ds,e),hs=e=>ms(fs,e);function gs(e,t){return ms(ps[t],e)}var _s=(e,t)=>D(e[t],`no compact unit at index ${t}`),vs=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],ys=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],bs=e=>!e||e===`INR`?`en-IN`:`en-US`,xs=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,Ss=new Map,Cs=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Ss.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),Ss.set(n,r)),r},ws=new Map,Ts=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=ws.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),ws.set(n,r)),r},Es=e=>typeof e==`number`&&Number.isFinite(e),Ds=e=>e<0&&!Object.is(Math.abs(e),0)?us:``;function Os(e){if(!Number.isInteger(e))throw Error(`A paise amount must be a whole number, got ${e}`);let t=BigInt(Math.abs(e)).toString().padStart(3,`0`);return`${e<0?`-`:``}${t.slice(0,-2)}.${t.slice(-2)}`}var ks=(e,t)=>t===`paise`?Number(Os(e)):e,As=2,js=(e,t,n)=>{let r=Math.min(t,As),i=10n**BigInt(As-r),a=(BigInt(Os(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=Ts(0,n).format(a/o);return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function W(e,{decimals:t}={}){if(!Es(e))return H();let n=Cs(xs(t,2)).format(Math.abs(e));return n===`0`?`0`:Ds(e)+n}function Ms(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!Es(e))return H();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=xs(r,0),o=bs(i),s=n===`paise`?js(Math.abs(e),a,o):Ts(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:Ds(e))+Ho(i)+s}var Ns=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function Ps(e,{currency:t,unit:n=`rupees`}={}){if(!Es(e))return H();let r=t?ks(e,n):e,i=t?Ho(t):``,a=t?bs(t):`en-IN`,o=a===`en-IN`?vs:ys,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=Cs(Ns(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:Ds(r))+i+e;c=o.length-1}let[l,u]=_s(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f));return p>=100&&c>0&&(--c,[l,u]=_s(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${Ds(r)}${i}${Cs(f,a).format(p)} ${u}`}function Fs(e,{decimals:t}={}){return Es(e)?`${W(e*100,{decimals:xs(t,1)})}%`:H()}var Is={ms:1,s:1e3,min:6e4,h:36e5};function Ls(e,{unit:t=`s`}={}){if(!Es(e))return H();let n=Is[t]??1e3,r=Math.abs(e*n),i=Ds(e);if(Math.round(r)<1e3)return`${i}${Cs(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${Cs(1).format(a)}s`;let o=Math.round(a);if(o<60)return`${i}${o}s`;let s=e=>String(e).padStart(2,`0`),c=Math.floor(o/60);if(c<60)return`${i}${c}m ${s(o%60)}s`;let l=Math.floor(c/60);return`${i}${Cs(0).format(l)}h ${s(c%60)}m`}function G(e,t=V){if(e instanceof Date)return e.getTime();if(Es(e))return e;if(typeof e!=`string`)return NaN;let n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(n){let[e,r,i]=[Number(n[1]),Number(n[2]),Number(n[3])],a=new Date(Date.UTC(2e3,r-1,i));return a.setUTCFullYear(e),a.getUTCFullYear()===e&&a.getUTCMonth()===r-1&&a.getUTCDate()===i?Zo(a.getTime(),t):NaN}return Date.parse(e)}function Rs(e,t=V){let{year:n,month:r,day:i,hour:a,minute:o}=Yo(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function K(e,{pattern:t=`day`,timeZone:n=V}={}){let r=G(e,n);if(!Number.isFinite(r))return H();let i=Rs(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${U(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${U(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function zs(e,{timeZone:t=V}={}){let n=G(e,t);if(!Number.isFinite(n))return H();let r=Rs(n,t);return`${String(r.day).padStart(2,`0`)}-${U(r.month)}`}function Bs(e,t){if(e==null||e===``)return H();let n=t?.style;if(n===`date`)return K(e,t);if(typeof e!=`number`)return String(e);switch(n){case`currency`:return Ms(e,{...t,currency:t?.currency??``});case`percent`:return Fs(e,t);case`compact`:return Ps(e,t);case`duration`:return Ls(e,t);default:return W(e,t)}}function Vs(e){let t=e?.style;if(t===`currency`){if(!e?.currency)throw TypeError(`[@webority/ui-elements] a currency format needs a currency, an ISO 4217 code such as "INR".`);return{style:`compact`,currency:e.currency,unit:e.unit}}return!t||t===`number`?{style:`compact`}:e??{}}function Hs(e,{timeZone:t=V}={}){let n=G(e);if(!Number.isFinite(n))return H();let r=Object.fromEntries(Ws(t).formatToParts(n).map(e=>[e.type,e.value])),i=r.dayPeriod;if(i===void 0)throw Error(`Intl returned no day period for a 12-hour clock`);return`${r.day}-${U(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Us=new Map;function Ws(e){let t=Us.get(e);return t||(t=new Intl.DateTimeFormat(`en-IN`,{day:`2-digit`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0,timeZone:e}),Us.set(e,t)),t}function Gs(e=V){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var Ks=n({DISPLAY_FORMAT:()=>Qs,MONTH_DISPLAY_FORMAT:()=>nc,YEAR_DISPLAY_FORMAT:()=>oc,clampMonth:()=>lc,daysIn:()=>cc,firstWeekday:()=>Js,fmt:()=>$s,fmtMonth:()=>rc,fmtYear:()=>sc,pad:()=>Ys,parseIso:()=>Zs,parseIsoMonth:()=>ec,parseIsoYear:()=>ic,toIso:()=>Xs,toIsoMonth:()=>tc,toIsoYear:()=>ac}),qs=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},Js=e=>qs(e.getAttribute(`first-day`))??qs(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,Ys=e=>String(e).padStart(2,`0`),Xs=(e,t,n)=>`${e}-${Ys(t+1)}-${Ys(n)}`,Zs=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r,i]=t;if(n===void 0||r===void 0||i===void 0)throw Error(`ISO date parts missing`);let a=+n,o=+r,s=+i;return o<1||o>12||s<1||s>cc(a,o-1)?null:{y:a,m:o-1,d:s}},Qs=`dd-MMM-yyyy`,$s=(e,t=Qs)=>{let n=Zs(e);if(!n)return``;let r={yyyy:n.y,MMMM:hs(n.m),MMM:U(n.m),MM:Ys(n.m+1),dd:Ys(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},ec=e=>{let t=/^(\d{4})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r]=t;if(n===void 0||r===void 0)throw Error(`ISO month parts missing`);let i=+r;return i<1||i>12?null:{y:+n,m:i-1}},tc=(e,t)=>`${e}-${Ys(t+1)}`,nc=`MMM yyyy`,rc=(e,t=nc)=>{let n=ec(e);if(!n)return``;let r={yyyy:n.y,MMMM:hs(n.m),MMM:U(n.m),MM:Ys(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},ic=e=>{let t=/^(\d{4})$/.exec(e||``);if(!t)return null;let[,n]=t;if(n===void 0)throw Error(`ISO year part missing`);return{y:+n}},ac=e=>String(e).padStart(4,`0`),oc=`yyyy`,sc=(e,t=oc)=>{let n=ic(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},cc=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},lc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},uc=n({COPY_FEEDBACK_MS:()=>dc,copyTextToClipboard:()=>fc}),dc=2e3;async function fc(e){if(!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch(e){if(!(e instanceof DOMException))throw e;return!1}}var pc=n({DATA_TABLE_TEXT:()=>mc}),mc={actionFailedMessage:`That did not work. Try again.`,actionForbiddenMessage:`You do not have permission to do that.`,collapseRowLabel:`Collapse row`,densityComfortableLabel:`Comfortable rows`,densityCompactLabel:`Compact rows`,densityLabel:`Row density`,empty:`No records found.`,emptyLabel:`No rows`,errorText:`These rows did not load. Try again.`,expandLabel:`Expand`,expandRowLabel:`Expand row`,exportCsvLabel:`Download CSV`,exportExcelLabel:`Download Excel`,forbiddenMessage:`You do not have access to these rows.`,groupRowsOne:`1 row`,groupRowsOther:`{count} rows`,loadingText:`Loading rows`,moreActionsForText:`More actions for {firstValue}`,networkMessage:`The connection dropped before the rows loaded. Check it and try again.`,pageTextOne:`Page {page} of {pages}, {total} row`,pageTextOther:`Page {page} of {pages}, {total} rows`,pageTextPending:`Page {page}`,resizeColumnLabel:`Resize column`,resizeColumnText:`Resize {label} column`,resizeText:`{px} pixels`,retryLabel:`Retry`,rowActionsLabel:`Actions`,rowSavedText:`Row saved.`,rowWasNotSavedText:`Row was not saved.`,rowsSavedText:`{n} rows saved.`,saveBusyLabel:`Saving`,saveDoneLabel:`Saved`,saveFailedLabel:`Not saved`,savedText:`{label} saved.`,selectAllRowsLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`,wasNotSavedText:`{label} was not saved.`},hc=n({COLUMN_MAX_WIDTH:()=>_c,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>Lc,PIN_SIDES:()=>bc,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>Sc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>Xc,ROW_SAVE_ERROR_CLASS:()=>Zc,ROW_SAVE_STATES:()=>Yc,ROW_STATUS_CLASS:()=>Qc,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>Ac,groupCount:()=>kc,groupItems:()=>jc,groupRowsText:()=>Tc,identityCell:()=>$c,measureRows:()=>Kc,notSavedText:()=>Oc,paintSaveStatus:()=>nl,pinAtValue:()=>Rc,pinClasses:()=>Bc,pinOffsetVar:()=>Ic,planPins:()=>zc,playRowMoves:()=>qc,readColumnWidths:()=>Pc,resizeName:()=>Cc,rowLabel:()=>el,rowOrderChanged:()=>Jc,saveOutcomeText:()=>al,savedManyText:()=>Dc,savedText:()=>Ec,setRowSaveState:()=>rl,settledRows:()=>il,virtualRange:()=>Mc,widthText:()=>wc,writeColumnWidths:()=>Fc}),gc=48,_c=1200,vc=10,yc=50,bc=[`start`,`end`],xc=8,Sc={comfortable:72,cozy:48,compact:40},q=()=>k(`dataTable`,mc),Cc=e=>e?A(q().resizeColumnText,{label:e}):q().resizeColumnLabel,wc=e=>A(q().resizeText,{px:e}),Tc=e=>rt(q(),`groupRows`,e,{count:W(e,{decimals:0})}),Ec=e=>e?A(q().savedText,{label:e}):q().rowSavedText,Dc=e=>A(q().rowsSavedText,{n:W(e,{decimals:0})}),Oc=(e,t)=>`${e?A(q().wasNotSavedText,{label:e}):q().rowWasNotSavedText}${t?` ${t}`:``}`,kc=e=>W(e,{decimals:0}),Ac=e=>Math.min(_c,Math.max(48,Math.round(Number(e)||0)));function jc(e,t,n=[]){let r=new Map(n.map(e=>[e,[]]));return e.forEach((e,n)=>{let i=t(e,n),a=r.get(i);a||(a=[],r.set(i,a)),a.push(e)}),[...r].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,items:t}))}function Mc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:Sc.cozy,o=Math.floor(Math.max(0,e)/a),s=Math.max(0,o-i);s-=s%2;let c=Math.min(r,o+Math.ceil(Math.max(0,t)/a)+i),l=Math.min(s,c);return{start:l,end:c,before:l*a,after:Math.max(0,r-c)*a}}var Nc=e=>`wui-widths:${e}`;function Pc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(Nc(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=Ac(r));return n}catch{return{}}}function Fc(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(Nc(e),JSON.stringify(t)):window.localStorage.removeItem(Nc(e))}catch(e){if(!(e instanceof DOMException))throw e}}var Ic=(e,t)=>`--wui-pin-${e}-${t}`,Lc=`--wui-pin-at`,Rc=(e,t)=>`var(${Ic(e,t)}, 0px)`;function zc(e){let t=e.map(()=>null),n=-1;e.forEach((e,t)=>{e===`start`&&(n=t)});let r=0;for(let i=0;i<=n;i++)(e[i]===`start`||e[i]===`lead`)&&(t[i]={side:`start`,ordinal:r++,edge:!1});let i=t[n];i&&(i.edge=!0);let a=-1;r=0;for(let n=e.length-1;n>=0;n--)e[n]===`end`&&(t[n]={side:`end`,ordinal:r++,edge:!1},a=n);let o=t[a];return o&&(o.edge=!0),t}var Bc=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,Vc=200,Hc=220,Uc=`cubic-bezier(0.22, 1, 0.36, 1)`,Wc=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Gc=e=>e.getAttribute(`data-row-key`)??e;function Kc(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(Gc(e),e.offsetTop);return n}function qc(e,t){let n=[...e];if(!t||n.length>200||Wc())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(Gc(e));if(n===void 0)continue;let i=n-e.offsetTop;Math.abs(i)<1||(e.animate([{transform:`translateY(${i}px)`},{transform:`translateY(0)`}],{duration:220,easing:Uc}),r++)}return r}function Jc(e,t){if(!e||!t)return!1;let n=new Set(t),r=new Set(e),i=e.filter(e=>n.has(e)),a=t.filter(e=>r.has(e));return i.some((e,t)=>e!==a[t])}var Yc=[`saving`,`error`,`saved`],Xc=`data-wui-save-state`,Zc=`wui-row-save-error`,Qc=`wui-row-status`,$c=e=>{let t=e.querySelector(`:scope > .wui-name-cell`);return t instanceof HTMLTableCellElement?t:[...e.cells].find(e=>!e.matches(`.wui-select-cell, .wui-expand-cell`))??null};function el(e){let t=$c(e);if(!t)return``;let n=t.querySelector(`.u-name`);if(n)return(n.textContent??``).trim();let r=``;for(let e of t.childNodes)e instanceof Element&&(e.classList.contains(`wui-row-save-error`)||e.classList.contains(`wui-row-status`))||(r+=e.textContent??``);return r.replace(/\s+/g,` `).trim()}function tl(e,t){let n=e.closest(`.table-wrap`);if(!n?.hasAttribute(`data-wui-save-labels`))return null;let r=q();return t===`saving`?n.getAttribute(`data-wui-save-busy`)??r.saveBusyLabel:t===`saved`?n.getAttribute(`data-wui-save-done`)??r.saveDoneLabel:n.getAttribute(`data-wui-save-failed`)??r.saveFailedLabel}function nl(e,t){e.querySelector(`:scope > * > .${Qc}`)?.remove();let n=t===null?null:tl(e,t),r=n===null?null:$c(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${Qc} ${Qc}-${t}`,i.textContent=n,r.prepend(i)}let i=t===`saving`&&n!==null;e.querySelectorAll(`.u-row-actions`).forEach(e=>{e.toggleAttribute(`hidden`,i)})}function rl(e,t,n=``){if(t!==null&&!Yc.includes(t))throw Error(`A row's save state is ${Yc.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${Zc}`)?.remove(),t===null?e.removeAttribute(Xc):e.setAttribute(Xc,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),nl(e,t);let r=t===`error`&&n?$c(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=Zc,t.textContent=n,r.append(t)}}function il(e,t){let n=[];if(!e)return n;for(let[r,i]of e){let e=t.get(r);i.state===`saving`&&e&&e.state!==`saving`&&n.push({label:e.label,ok:e.state!==`error`,message:e.message||``})}return n}function al(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(Ec(r.label)):t.length>1&&n.push(Dc(t.length));for(let t of e)t.ok||n.push(Oc(t.label,t.message));return n.join(` `)}var ol=n({isDrawn:()=>sl});function sl(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var cl=n({MENTION_ID_PATTERN:()=>ll,mentionLabel:()=>fl,mentionTextFromValue:()=>hl,mentionValueFromText:()=>gl,mentionedIds:()=>_l,parseMentionValue:()=>ml}),ll=/^[A-Za-z0-9_.:-]{1,64}$/,ul=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,dl=/@(\\*)\[/g;function fl(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var pl=e=>e.replace(dl,(e,t)=>`@\\${t}[`);function ml(e){let t=String(e??``),n=[],r=e=>{if(!e)return;let t=n[n.length-1];t&&`text`in t?t.text+=e:n.push({text:e})},i=0;for(let e of t.matchAll(ul))r(t.slice(i,e.index)),e[1]===void 0?n.push({id:e[3]??``,label:e[2]??``}):r(`@${e[1].slice(1)}[`),i=e.index+e[0].length;return r(t.slice(i)),n}function hl(e){let t=``,n=[];for(let r of ml(e)){if(`text`in r){t+=r.text;continue}let e=`@${r.label}`;n.push({start:t.length,end:t.length+e.length,id:r.id,label:r.label}),t+=e}return{text:t,mentions:n}}function gl(e,t=[]){let n=String(e??``),r=[...t].sort((e,t)=>e.start-t.start),i=``,a=0;for(let e of r)e.start<a||n.slice(e.start,e.end)!==`@${e.label}`||!ll.test(e.id)||(i+=pl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+pl(n.slice(a))}function _l(e){let t=[];for(let n of ml(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var vl=n({bindMenuKeys:()=>Cl}),yl=500,bl=10,xl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function Sl(e){return e instanceof HTMLElement?xl.has(e.tagName)||e.isContentEditable:!1}function Cl(e,t){let{items:n,typeahead:r=!0}=t,i=``,a=null,o=()=>{a!==null&&clearTimeout(a),a=null,i=``},s=e=>{let t=n().filter(sl),s=t.length;if(s===0)return;let c=e.target,l=t.findIndex(e=>c instanceof Node&&e.contains(c)),u=n=>{e.preventDefault(),e.stopPropagation(),t[n]?.focus()},d=Sl(c);if(e.key===`ArrowDown`){u(l<0?0:(l+1)%s);return}if(e.key===`ArrowUp`){u(l<0?s-1:(l-1+s)%s);return}if(e.key===`Home`&&!d){u(0);return}if(e.key===`End`&&!d){u(s-1);return}if(e.key===`PageDown`){u(Math.min((l<0?-1:l)+bl,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-bl,0));return}if(!r||!/^\S$/.test(e.key)||e.ctrlKey||e.metaKey||e.altKey||d)return;e.preventDefault(),e.stopPropagation(),a!==null&&clearTimeout(a),i+=e.key.toLowerCase(),a=setTimeout(o,yl);let f=i.length>1&&Array.from(i).every(e=>e===i[0]),p=f?i[0]??``:i,m=i.length===1||f?l+1:Math.max(l,0);for(let e=0;e<s;e++){let n=(m+e)%s;if((t[n]?.textContent??``).trim().toLowerCase().startsWith(p)){t[n]?.focus();return}}};return e.addEventListener(`keydown`,s),()=>{e.removeEventListener(`keydown`,s),o()}}var wl=n({NOTIFICATION_CENTRE_TEXT:()=>Tl}),Tl={allLabel:`All`,allReadText:`All notifications marked as read.`,archivedLabel:`Archived`,clientMessage:`These could not be marked as read. Refresh the page and try again.`,earlierLabel:`See earlier`,emptyText:`You are all caught up.`,errorText:`Notifications did not load`,forbiddenMessage:`You do not have permission to mark these as read.`,label:`Notifications`,loadingText:`Loading notifications…`,markAllLabel:`Mark all read`,networkMessage:`Could not reach the server, so these were not marked as read. Check your connection and try again.`,noneUnreadText:`No unread notifications`,retryLabel:`Try again`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`,serverMessage:`Something went wrong on our side, so these were not marked as read. Try again in a moment.`,todayLabel:`Today`,unreadAnnouncementTextOne:`{unread} unread notification`,unreadAnnouncementTextOther:`{unread} unread notifications`,unreadLabel:`Unread`,unreadPrefixText:`Unread:`,unreadWordLabel:`unread`,viewAllLabel:`View all`,yesterdayLabel:`Yesterday`},El=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>Fl,notificationCountText:()=>Al,notificationDayHeading:()=>Pl,notificationTime:()=>Nl,notificationTriggerLabel:()=>jl,notificationUnreadAnnouncement:()=>Ml}),Dl=99,Ol=864e5,kl=()=>k(`notificationCentre`,Tl);function Al(e){return e>99?`99+`:String(e)}function jl(e,t){return t===0?e:`${e}, ${Al(t)} ${kl().unreadWordLabel}`}function Ml(e){return e===0?kl().noneUnreadText:rt(kl(),`unreadAnnouncementText`,e,{unread:Al(e)})}function Nl(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:K(e,{pattern:`time`})}function Pl(e,t=Date.now()){let n=K(e);return n===K(t)?kl().todayLabel:n===K(G(t)-Ol)?kl().yesterdayLabel:n}function Fl(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(G(r.at)))throw Error(`<AppNotificationCenter> item "${r.id}": at must be an ISO date-time with its zone (or a YYYY-MM-DD day), got ${String(r.at)}.`);let e=K(r.at),i=n.get(e);i||(i={key:e,heading:Pl(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var Il={daysAgoTextOne:`{count} day ago`,daysAgoTextOther:`{count} days ago`,hoursAgoTextOne:`{count} hour ago`,hoursAgoTextOther:`{count} hours ago`,inDaysTextOne:`in {count} day`,inDaysTextOther:`in {count} days`,inHoursTextOne:`in {count} hour`,inHoursTextOther:`in {count} hours`,inMinutesTextOne:`in {count} minute`,inMinutesTextOther:`in {count} minutes`,justNowText:`just now`,minutesAgoTextOne:`{count} minute ago`,minutesAgoTextOther:`{count} minutes ago`},Ll=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>Wl,relativeTimeTitle:()=>Gl}),Rl=6e4,zl=60*Rl,Bl=24*zl,Vl=()=>k(`relativeTime`,Il),Hl={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},Ul={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function Wl(e,t=Date.now()){let n=G(e);if(!Number.isFinite(n))return H();let r=t-n,i=Math.abs(r);if(i>=7*Bl)return K(n);if(i<Rl)return Vl().justNowText;let[a,o]=i<zl?[Math.floor(i/Rl),`minute`]:i<Bl?[Math.floor(i/zl),`hour`]:[Math.floor(i/Bl),`day`];return rt(Vl(),(r>0?Hl:Ul)[o],a)}function Gl(e){let t=G(e);return Number.isFinite(t)?`${K(t,{pattern:`datetime`})} IST`:H()}var Kl=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>Jl,scrollTopToReveal:()=>Xl,windowRange:()=>Yl}),ql=.5;function Jl(e,t=36){let n=Math.max(0,Math.floor(e)),r=new Float64Array(n),i=null,a=e=>{let t=e>=0&&e<n?r[e]??0:0;return t>0?t:s.estimate},o=()=>{if(i)return i;let e=new Float64Array(n+1);for(let t=0;t<n;t++)e[t+1]=(e[t]??0)+a(t);return i=e,e},s={count:n,estimate:t,setEstimate(e){!(e>0)||Math.abs(e-s.estimate)<=ql||(s.estimate=e,i=null)},set(e,t){if(e<0||e>=n||!(t>0))return!1;let o=a(e);return r[e]=t,Math.abs(o-t)<=ql?!1:(i=null,!0)},heightOf:a,offsetOf(e){return o()[Math.min(Math.max(0,Math.floor(e)),n)]??0},total(){return o()[n]??0},indexAt(e){if(n===0)return 0;let t=o(),r=0,i=n-1;for(;r<i;){let n=r+i+1>>1;(t[n]??0)<=e?r=n:i=n-1}return r}};return s}function Yl(e,t){if(e.count===0)return{start:0,end:0,before:0,after:0};let{overscan:n=8}=t,r=Math.max(0,t.scrollTop),i=e.indexAt(r),a=e.indexAt(r+Math.max(0,t.viewport)),o=Math.max(0,i-n),s=Math.min(e.count,a+1+n);return{start:o,end:s,before:e.offsetOf(o),after:e.total()-e.offsetOf(s)}}function Xl(e,t,n){let r=e.offsetOf(t),i=r+e.heightOf(t);return r<n.scrollTop?r:i>n.scrollTop+n.viewport?i-n.viewport:n.scrollTop}var Zl=n({WuiPostError:()=>Ql}),Ql=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),j(this,`code`,void 0),j(this,`status`,void 0),j(this,`html`,void 0),j(this,`body`,void 0),j(this,`kind`,void 0),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},$l=n({forgetShell:()=>nu,registerShell:()=>tu,wiredShell:()=>ru}),eu=new WeakMap;function tu(e,t){eu.set(e,t)}function nu(e){eu.delete(e)}function ru(e){let t=e?.closest(`[data-app-shell]`);return(t&&eu.get(t))??null}var iu=n({wuiUpload:()=>su}),au=new Set([204,205,304]),ou=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function su(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[aa]:`1`,...n.headers};if(la(e)){let e=ca();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?ya(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(ya(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=ou(c.getAllResponseHeaders()),r=ua(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(B.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(au.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var cu=n({deriveStepStatus:()=>lu,stepperHeaderItems:()=>uu});function lu(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function uu(e,t){let{statusOf:n,journey:r,connectors:i}=t;return e.map((t,a)=>{let o=n(a),s;return s=o===`done`?{icon:`check`}:o===`error`?{icon:`alert-triangle`}:o===`skipped`?{icon:`minus`}:t.icon?{icon:t.icon}:{number:a+1},{index:a,status:o,className:o===`pending`?`step`:`step ${o}`,glyph:s,current:o===`active`,line:r&&i&&a<e.length-1?{done:o===`done`}:null}})}var du={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},fu=n({GROUP_SELECT_CLASS:()=>mu,SELECT_CELL_CLASS:()=>J,addRowSelectCells:()=>wu,addSelectColumn:()=>Tu,attachShiftRange:()=>ku,createGroupSelectCell:()=>yu,createSelectHeaderCell:()=>gu,createSelectRowCell:()=>_u,createSelectSpacerCell:()=>vu,groupRowsOf:()=>bu,syncGroupSelect:()=>Du,syncSelectAll:()=>Eu}),pu=()=>k(`tableSelect`,du),J=`wui-select-cell`,mu=`wui-group-select`,hu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function gu(e=document){let t=e.createElement(`th`);return t.className=J,t.appendChild(hu(e,pu().selectAllLabel)),t}function _u(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=J;let r=hu(e,pu().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function vu(e=document){let t=e.createElement(`td`);return t.className=J,t}function yu(e,t){let n=e.createElement(`td`);return n.className=`${J} ${mu}`,n.appendChild(hu(e,A(pu().selectGroupLabel,{group:t}))),n}function bu(e){let t=[];for(let n=e.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`.wui-group-row, .wui-virtual-spacer`);n=n.nextElementSibling)n.matches(`.wui-row-expanded`)||t.push(n);return t}var xu=e=>e.firstElementChild?.classList.contains(J),Su=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),Cu=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function wu(e){for(let t of e){if(xu(t)||Su(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(_u(t.ownerDocument,{disabled:e}),t.firstChild)}}function Tu(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;xu(t)||t.insertBefore(gu(e.ownerDocument),t.firstChild),wu(Cu(e,`tbody tr`,HTMLTableRowElement));for(let t of Cu(e,`tfoot tr`,HTMLTableRowElement))xu(t)||t.insertBefore(vu(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${J} .form-check-input`);return n instanceof HTMLInputElement?n:null}function Eu(e){let t=e.querySelector(`thead .${J} .form-check-input`),n=Cu(e,`tbody tr:not(.wui-group-row) .form-check-input:not(:disabled)`,HTMLInputElement),r=n.length,i=n.filter(e=>e.checked).length;t instanceof HTMLInputElement&&(t.checked=r>0&&i===r,t.indeterminate=i>0&&i<r);for(let t of Cu(e,`tbody tr:not(.wui-group-row)`,HTMLTableRowElement)){let e=t.querySelector(`.form-check-input`);t.classList.toggle(`is-selected`,e instanceof HTMLInputElement&&e.checked)}return{selected:i,total:r}}function Du(e){for(let t of Cu(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${mu} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=bu(t).flatMap(e=>Cu(e,`.${J} .form-check-input:not(:disabled)`,HTMLInputElement)),r=n.filter(e=>e.checked).length;e.disabled=n.length===0,e.checked=r>0&&r===n.length,e.indeterminate=r>0&&r<n.length}}var Ou=`tbody tr:not(.wui-group-row) .${J} .form-check-input:not(:disabled)`;function ku(e,t){let n=null,r=e=>e instanceof Element&&e.matches(`.wui-select-cell .form-check-input:not(:disabled)`)&&!!e.closest(`tbody`)&&!e.closest(`tr.wui-group-row`);e.addEventListener(`mousedown`,e=>{e.shiftKey&&r(e.target)&&e.preventDefault()}),e.addEventListener(`click`,i=>{let a=i.target;if(r(a)){if(i.shiftKey&&n?.isConnected&&n!==a){let r=Cu(e,Ou,HTMLInputElement),i=r.indexOf(n),o=r.indexOf(a);if(i>=0&&o>=0){let e=[];for(let t of r.slice(Math.min(i,o),Math.max(i,o)+1))t!==a&&t.checked!==a.checked&&(t.checked=a.checked,e.push(t));e.length&&t?.(e,a.checked)}}n=a}})}var Au=n({DATE_PICKER_TEXT:()=>ju}),ju={chooseMonthYearLabel:`Choose month and year`,chooseYearLabel:`Choose year`,clearLabel:`Clear`,dateTimeLabel:`Time`,helpLabel:`More information`,monthPlaceholder:`Choose a month`,nextDecadeLabel:`Next decade`,nextMonth:`Next month`,nextYearLabel:`Next year`,optionalLabel:`(optional)`,placeholder:`Choose a date`,previousDecadeLabel:`Previous decade`,previousMonth:`Previous month`,previousYearLabel:`Previous year`,todayLabel:`Today`,yearPlaceholder:`Choose a year`,zoneNote:`Times are shown in {zone}.`},Mu=n({DRAWER_TEXT:()=>Nu}),Nu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Pu=n({matchSegments:()=>Fu});function Fu(e,t){let n=String(e??``),r=String(t??``).trim();if(!r||!n)return[{text:n,match:!1}];let i=n.toLowerCase(),a=r.toLowerCase();if(i.length!==n.length)return[{text:n,match:!1}];let o=[],s=0,c=i.indexOf(a,s);for(;c!==-1;)c>s&&o.push({text:n.slice(s,c),match:!1}),o.push({text:n.slice(c,c+a.length),match:!0}),s=c+a.length,c=i.indexOf(a,s);return s<n.length&&o.push({text:n.slice(s),match:!1}),o}var Iu=n({TOOLTIP_ATTRIBUTE:()=>Lu,TOOLTIP_CLASS_ATTRIBUTE:()=>zu,TOOLTIP_ID_ATTRIBUTE:()=>Bu,TOOLTIP_OPEN_ATTRIBUTE:()=>Vu,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>Ru,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>Hu,showPinnedTooltips:()=>Wu,wireTooltips:()=>Uu}),Lu=`data-wui-tooltip`,Ru=`data-wui-tooltip-placement`,zu=`data-wui-tooltip-class`,Bu=`data-wui-tooltip-id`,Vu=`data-wui-tooltip-open`,Hu=`data-wui-tooltip-shortcut`;function Uu(e){Ju.has(e)||(Ju.add(e),e.addEventListener(`pointerover`,t=>{let n=Qu(t.target);n&&!ed(e,n)&&rd(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=Y(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=Qu(n);r&&!ed(e,r)&&rd(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=Y(e).transient;n&&Qu(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||id(e,n))}),e.addEventListener(`click`,t=>{let n=Y(e).transient;n&&Qu(t.target)===n.trigger&&id(e,n)}))}function Wu(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${Vu}]`))rd(t,n,!0)}var Gu=[`top`,`bottom`,`start`,`end`],Ku=`wui-tooltip`,qu=`[${Lu}], [${Bu}]`,Ju=new WeakSet,Yu=new WeakMap;function Y(e){let t=Yu.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),ad(e))}},Yu.set(e,t)),t}function Xu(e){return Gu.includes(e)}function Zu(e){return e===`auto`||Xu(e)}function Qu(e){if(!(e instanceof Element))return null;let t=e.closest(qu);return t instanceof HTMLElement?t:null}function $u(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function ed(e,t){return $u(Y(e),t)!==void 0}function td(e,t){let n=e.createElement(`div`);n.id=t,n.setAttribute(`role`,`tooltip`),n.setAttribute(`popover`,`manual`);let r=e.createElement(`div`);r.className=`tooltip-arrow`;let i=e.createElement(`div`);return i.className=`tooltip-inner`,n.append(r,i),{el:n,arrow:r,inner:i}}function nd(e,t){return t.bubble||=td(e,Ku),t.bubble}function rd(e,t,n){let r=t.getAttribute(Lu),i=t.getAttribute(Bu);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${Lu} or ${Bu}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${Lu} or ${Bu}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!Zu(a))throw Error(`${Ru} "${a}" is not auto, top, bottom, start or end`);let o=Y(e);id(e,n?o.pinned.get(t):o.transient);let s,c=null,l=null,u=!1;if(i!==null){let t=e.getElementById(i);if(!(t instanceof HTMLElement))throw Error(`no element with id "${i}" for a tooltip`);s=t,c=e.createComment(`wui-tooltip`),s.replaceWith(c),l=s.getAttribute(`popover`),s.setAttribute(`popover`,`manual`)}else{let i=n?td(e,`${Ku}-pinned-${++o.pinnedCount}`):nd(e,o);u=n;let c=t.getAttribute(`data-wui-tooltip-class`)??``;i.el.className=`tooltip wui-tooltip bs-tooltip-${a} ${c}`.trim();let l=t.getAttribute(Hu);i.inner.replaceChildren(r??``,...l?[O(`span`,{class:`wui-kbd`},l)]:[]),s=i.el}let d=t.getAttribute(`aria-describedby`);t.setAttribute(`aria-describedby`,s.id);let f=()=>C(t,s,{side:a,align:`center`,gap:6,arrow:s.querySelector(`.tooltip-arrow`)});ze(e).append(s),s.showPopover(),f();let p=Be(e=>{s.parentElement!==e&&e.append(s),Le(s),f()},e),m=new MutationObserver(()=>{t.isConnected||id(e,$u(Y(e),t))});m.observe(e,{childList:!0,subtree:!0});let h={el:s,trigger:t,pinned:n,own:u,home:c,popover:l,describedBy:d,watch:m,unroot:p};n?o.pinned.set(t,h):o.transient=h,e.addEventListener(`keydown`,o.onEscape,!0)}function id(e,t){if(!t)return;let n=Y(e);t.pinned?n.pinned.delete(t.trigger):n.transient=null,!n.transient&&n.pinned.size===0&&e.removeEventListener(`keydown`,n.onEscape,!0),t.watch.disconnect(),t.unroot(),t.el.hidePopover(),t.home?(t.popover===null?t.el.removeAttribute(`popover`):t.el.setAttribute(`popover`,t.popover),t.home.replaceWith(t.el)):t.own&&t.el.remove(),t.describedBy===null?t.trigger.removeAttribute(`aria-describedby`):t.trigger.setAttribute(`aria-describedby`,t.describedBy)}function ad(e){let t=Y(e);id(e,t.transient);for(let n of[...t.pinned.values()])id(e,n)}var od=Object.freeze({anchorOverlay:d,avatarNode:Xt,buttonClass:No,calendarMath:Ks,copyText:uc,dataTable:hc,dataTableText:pc,datePickerText:Au,defineElement:r,devWarn:$t,dom:He,drawerText:Mu,elementBase:a,fieldState:nn,flash:Ui,formatters:ns,formMirror:sn,glyphs:er,hasOwn:pn,httpFailureText:co,iconGlyphs:er,imeSafeEnter:hr,isDrawn:ol,listboxKeyNav:vr,loader:bn,mentionText:cl,menuKeyNav:vl,nativeOverlay:ie,notificationCentreText:wl,notificationDays:El,optionLabel:Sr,partRegistry:Zr,postError:Zl,refreshAfter:Ia,regions:Sa,relativeTime:Ll,rtl:c,selectList:Nr,selectRemote:ri,selectText:jr,selectWindow:Kl,server:uo,serverHtml:Xi,serverTableRegistry:ja,shellRegistry:$l,shortcutKeys:ut,stepperHeader:cu,svgNodes:Jn,tableExport:Ai,tableSelect:fu,textMatch:Pu,textStore:Ge,toastAction:to,toastHeader:Ri,tooltips:Iu,wuiHost:Qi,wuiHttp:ea,wuiUpload:iu,WuiSelect:ci,zone:Wo}),sd={avatarCropFailed:`That photo could not be saved. Try again, or choose another one.`,avatarDialogSubtitle:`Drag to position the photo, then zoom or rotate it.`,avatarDialogTitle:`Edit photo`,avatarSave:`Save photo`,cameraLabel:`Take photo`,cancel:`Cancel`,changeLabel:`Change photo`,closeLabel:`Close`,cropFailed:`That image could not be cropped. Choose another one.`,dialogSubtitle:`Drag the frame and zoom to choose what to keep.`,dialogTitle:`Crop photo`,heicUnreadableMessage:`This browser cannot open HEIC photos. Choose a JPG, PNG or WebP image instead.`,optionalLabel:`(optional)`,overlayLabel:`Update photo`,photoUnreadableMessage:`That photo could not be opened. Choose a JPG, PNG or WebP image.`,removeLabel:`Remove photo`,save:`Apply`,unreadable:`That image could not be opened. Choose another one.`,uploadLabel:`Upload photo`},cd=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,ld=10,ud=512,dd=`image/webp`,fd=[96,48];function pd(e){if(!e)return!1;let t=String(e.type||``).toLowerCase();return t===`image/heic`||t===`image/heif`||/\.hei[cf]$/i.test(String(e.name||``))}function md(e){let t=k(`imagePicker`,sd);return pd(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function hd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:dd,size:Number.isInteger(n)&&n>0?n:512}}var gd=`/`,_d=`.search-wrap.wui-search-collapsible`,vd=`.wui-topsearch-panel`,yd=`.modal, wui-drawer[open]`,bd=new WeakSet,xd=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Sd=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},Cd=e=>[...e.querySelectorAll(_d)].filter(e=>e instanceof HTMLElement);function wd(e){e.classList.remove(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`true`),Sd(e)?.focus()}function Td(e){Sd(e)?.value||(e.classList.add(`is-collapsed`),xd(e)?.setAttribute(`aria-expanded`,`false`))}function Ed(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=xd(e),n=Sd(e);t?.addEventListener(`click`,()=>wd(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),Td(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||Td(e)})}function Dd(e){bd.has(e)||(bd.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||Dt(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(yd)||e.querySelector(vd))return;let n=Cd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),wd(n))}))}function Od(e=document){let t=e;for(let e of Cd(t))Ed(e);Dd(e instanceof Element?e.ownerDocument:e)}var kd=`data-wui-command-shortcut`,Ad=`k`,jd=new WeakSet,Md=/ \(Ctrl\+([^)]+)\)$/;function Nd(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function Pd(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function Fd(e){return e.nodeType===Node.DOCUMENT_NODE}function Id(e){e.closest(`wui-modal`)?.show()}function Ld(e){if(Nd())for(let t of e.querySelectorAll(`[${kd}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(Md,(e,t)=>` (⌘${t})`))}}function Rd(e){let t=Fd(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(Ld(t),jd.has(t)||(jd.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${kd}]`))if(Pd(e,n.getAttribute(`data-wui-command-shortcut`)||Ad)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?Id(n):(n.focus(),`select`in n&&typeof n.select==`function`&&n.select());return}})))}var zd={audioLabel:`audio`,byteLabel:`B`,chooseText:`Choose {label}.`,gigabyteLabel:`GB`,imagesLabel:`images`,keepFileUnderMbText:`Keep the file under {maxSizeMb} MB.`,kilobyteLabel:`KB`,megabyteLabel:`MB`,orText:`{names} or {last}`,supportedLabel:`supported`,textFileLabel:`text file`,videosLabel:`videos`},X=()=>k(`fileValidation`,zd),Bd=`image/png,image/jpeg,image/webp`,Vd=5,Hd={"image/png":[`.png`],"image/jpeg":[`.jpg`,`.jpeg`],"image/webp":[`.webp`],"image/gif":[`.gif`],"image/svg+xml":[`.svg`],"image/heic":[`.heic`],"image/heif":[`.heif`],"application/pdf":[`.pdf`],"text/plain":[`.txt`]},Ud={"image/png":`PNG`,"image/jpeg":`JPG`,"image/webp":`WEBP`,"image/gif":`GIF`,"image/svg+xml":`SVG`,"image/heic":`HEIC`,"image/heif":`HEIC`,"application/pdf":`PDF`,".png":`PNG`,".jpg":`JPG`,".jpeg":`JPG`,".webp":`WEBP`,".gif":`GIF`,".svg":`SVG`,".heic":`HEIC`,".heif":`HEIC`,".pdf":`PDF`},Wd={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},Gd=new Set([`image/*`,`video/*`,`audio/*`]),Kd=e=>{let t=Wd[e];return t?X()[t]:Ud[e]},qd=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),Jd=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function Yd(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t.startsWith(`image/`);let n=typeof e==`string`?e:e.name||e.url||``,r=String(n).toLowerCase();return Jd.some(e=>r.endsWith(e))}var Xd=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function Zd(e){if(e<1024)return`${e} ${X().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<Xd.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${X()[Xd[n]??`gigabyteLabel`]}`}function Qd(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t===`application/pdf`;let n=typeof e==`string`?e:e.name||e.url||``;return String(n).toLowerCase().replace(/[?#][\s\S]*$/,``).endsWith(`.pdf`)}function $d(e){let t=qd(e);return t.length?t.every(e=>e.startsWith(`.`)?Jd.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function ef(e){let t=[];for(let n of qd(e)){let e=Kd(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||X().supportedLabel:A(X().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function tf(e,t){let n=qd(t);if(!n.length)return!0;let r=(e.type||``).toLowerCase(),i=(e.name||``).toLowerCase();return n.some(e=>e.startsWith(`.`)?i.endsWith(e):e.endsWith(`/*`)?r.startsWith(e.slice(0,-1)):r&&r===e?!0:!r&&(Hd[e]||[]).some(e=>i.endsWith(e)))}function nf(e,t={}){if(!e)return null;let n=t.accept===void 0?Bd:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!tf(e,n)){let e=ef(n),t=qd(n).map(e=>Gd.has(e));return t.every(Boolean)?A(X().chooseText,{label:e}):t.some(Boolean)?A(X().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):A(X().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?A(X().keepFileUnderMbText,{maxSizeMb:r}):null}function rf(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=nf(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function af(e,t){let{overClass:n,isDisabled:r=()=>!1,onFiles:i,onReject:a,...o}=t,s=0,c=t=>e.classList.toggle(n,t),l=e=>{e.preventDefault(),r()||(s+=1,c(!0))},u=e=>{e.preventDefault(),r()||c(!0)},d=e=>{e.preventDefault(),r()||(s=Math.max(0,s-1),s===0&&c(!1))},f=e=>{if(e.preventDefault(),s=0,c(!1),r())return;let{files:t,rejections:n}=rf(e.dataTransfer?.files,o);t.length&&i(t);let l=n[0];l&&a(l)};return e.addEventListener(`dragenter`,l),e.addEventListener(`dragover`,u),e.addEventListener(`dragleave`,d),e.addEventListener(`drop`,f),()=>{e.removeEventListener(`dragenter`,l),e.removeEventListener(`dragover`,u),e.removeEventListener(`dragleave`,d),e.removeEventListener(`drop`,f)}}var of={aadhaarMessage:`Enter a valid 12-digit Aadhaar number`,amountMessage:`Enter a valid amount`,dateMessage:`Enter a valid date as DD-MM-YYYY`,gstinMessage:`Enter a valid GSTIN`,ifscMessage:`Enter a valid IFSC`,incompleteMessage:`Enter the full value`,panMessage:`Enter a valid PAN`,phoneInMessage:`Enter a 10-digit mobile number`,pinCodeMessage:`Enter a valid 6-digit PIN code`},sf=/[0-9]/,cf={9:sf,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},lf=/[9A*]/,uf=new Set([`text`,`tel`,`search`,`url`,`password`]),df=e=>{let t=e.replace(/\D/g,``);return t.length===12&&t.startsWith(`91`)?t.slice(2):t.length===11&&t.startsWith(`0`)?t.slice(1):e},ff=e=>{let t=Number(e.slice(0,2)),n=Number(e.slice(2,4)),r=Number(e.slice(4,8));if(r<1)return!1;let i=new Date(Date.UTC(r,n-1,t));return i.getUTCFullYear()===r&&i.getUTCMonth()===n-1&&i.getUTCDate()===t},pf=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,mf=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Z=()=>k(`inputMask`,of);function Q(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Z().incompleteMessage}={}){let o=[...e].map(e=>{let t=cf[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===sf)?`numeric`:`text`,normalize:n,post:i,message:a,extract(e){let n=``,r=0;for(let i of e){for(;r<o.length&&o[r]?.lit!==void 0&&o[r]?.lit!==i;)r++;if(r>=o.length)break;let e=o[r];e?.lit===void 0?e?.re.test(i)&&(n+=t?i.toUpperCase():i,r++):r++}return n},layout(e){let t=``,n=[],r=0;for(let i=0;i<o.length&&r<e.length;i++){let a=o[i];a?.lit===void 0?(t+=e.charAt(r++),n.push(!0)):(t+=a.lit,n.push(!1))}return{text:t,isRaw:n}},isValid:e=>e.length===s&&(!r||r(e))}}function hf(){return{inputMode:`decimal`,post:e=>e,message:Z().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)sf.test(i)?n?r<2&&(t+=i,r++):t+=i:i===`.`&&!n&&(n=!0,t+=i);return t.startsWith(`.`)&&(t=`0${t}`),t.replace(/^0+(?=\d)/,``)},layout(e){let[t=``,n]=e.split(`.`),r=pf(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var gf={"phone-in":()=>Q(`99999 99999`,{normalize:df,valid:e=>/^[6-9]/.test(e),message:Z().phoneInMessage}),pan:()=>Q(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Z().panMessage}),gstin:()=>Q(`99AAAAA9999A***`,{upper:!0,valid:e=>/^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/.test(e),message:Z().gstinMessage}),aadhaar:()=>Q(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Z().aadhaarMessage}),ifsc:()=>Q(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Z().ifscMessage}),"pin-code":()=>Q(`999999`,{valid:e=>/^[1-9]/.test(e),message:Z().pinCodeMessage}),date:()=>Q(`99-99-9999`,{normalize:mf,valid:ff,post:(e,t)=>e.length===8&&ff(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Z().dateMessage}),amount:hf},_f=Object.keys(gf),vf=e=>{let t=String(e).toLowerCase();return mn(gf,t)?t:void 0},yf=e=>lf.test(String(e))&&vf(e)===void 0,bf=new Map;tt(()=>bf.clear());function xf(e){if(e==null||e===``)return null;let t=String(e),n=bf.get(t);return n===void 0&&(n=yf(t)?Q(t):mn(gf,t)?gf[t]?.()??null:null,bf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function Sf(e,t){let n=xf(e);return n?n.extract($(n,String(t??``))):String(t??``)}function Cf(e,t){let n=xf(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function wf(e,t){let n=xf(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Tf=(e,t)=>{if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(e[r]&&++n===t)return r+1;return e.length},Ef=new WeakMap,Df=e=>Ef.get(e)?.(),Of=new WeakMap;function kf(e,t,n,r){let i=e.getAll(t),a=Of.get(e)??new Set;Of.set(e,a);let o=i.findIndex((e,r)=>e===n&&!a.has(`${t}\u0000${r}`));if(!(o<0)){if(a.add(`${t}\u0000${o}`),i[o]=r,i.length===1)e.set(t,r);else{e.delete(t);for(let n of i)e.append(t,n)}}}function Af(e){let t=null,n=null,r=!1,i=(t,n)=>{n===null?e.removeAttribute(t):n!==void 0&&e.setAttribute(t,n)},a,o,s=()=>{t?.remove(),t=null,n&&(n.hidden=!1),n=null,r&&e.classList.remove(`error`),r=!1,i(`aria-invalid`,a),i(`aria-describedby`,o),a=void 0,o=void 0};return i=>{if(!i){s();return}let c=e.closest(`.field`),l=c instanceof HTMLElement?c:null,u=l?.querySelector(`.field-error`);if(!(u&&u!==t&&u.textContent?.trim())){if(!t){if(r=!e.classList.contains(`error`),e.classList.add(`error`),a=e.getAttribute(`aria-invalid`),o=e.getAttribute(`aria-describedby`),l){t=document.createElement(`div`),t.className=`field-error`,e.id&&(t.id=`${e.id}-error`);let r=l.querySelector(`.field-hint`);n=r instanceof HTMLElement?r:null,n&&(n.hidden=!0),l.insertBefore(t,[...l.children].find(e=>e.classList.contains(`field-count`))??null),t.id&&e.setAttribute(`aria-describedby`,t.id)}e.setAttribute(`aria-invalid`,`true`)}t&&(t.textContent=i)}}}function jf(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=xf(t);if(!a||!uf.has(e.type))return()=>{};let o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,`value`);if(!s?.set)throw Error(`input value setter missing`);let c=s.set,l=!e.hasAttribute(`inputmode`);l&&e.setAttribute(`inputmode`,a.inputMode);let u=i??Af(e),d=null,f=!1,p=!1,m=!1,h=``,g=``,_,v=()=>{let e=m?h:``;e!==g&&(g=e,u(g))},y=(t,n,i)=>{let o=a.extract(t.slice(0,n)).length,s=a.extract(t),{text:l,isRaw:u}=a.layout(s);if(e.value!==l&&(c.call(e,l),document.activeElement===e&&uf.has(e.type))){let t=Tf(u,o);e.setSelectionRange(t,t)}e.dataset.maskRaw=s,h=s&&!a.isValid(s)?a.message:``,e.setCustomValidity(h),v(),i&&s!==d&&r?.(s,l),d=s},b=Object.getOwnPropertyDescriptor(e,`value`),x=b??s;Object.defineProperty(e,"value",{configurable:!0,...x.enumerable===void 0?{}:{enumerable:x.enumerable},get:()=>D(x.get,`input value getter missing`).call(e),set:t=>{if(D(x.set,`input value setter missing`).call(e,t),p)return;let n=$(a,e.value);y(n,n.length,!0)}});let S=()=>{f=!0,e.dispatchEvent(new Event(`input`,{bubbles:!0})),f=!1},ee=t=>{let n=t instanceof InputEvent?t:null;if(f||p||n?.isComposing)return;let r=n?.inputType===`insertText`&&(n.data?.length??0)<=1||n?.inputType?.startsWith(`delete`)?e.value:$(a,e.value);y(r,e.selectionStart??r.length,!0)},te=()=>{p=!0},C=()=>{p=!1;let t=$(a,e.value);y(t,e.selectionStart??t.length,!0),S()},ne=t=>{let n=t.inputType===`deleteContentBackward`;if(!n&&t.inputType!==`deleteContentForward`||t.isComposing)return;let r=e.selectionStart;if(r==null||r!==e.selectionEnd)return;let{isRaw:i}=a.layout(a.extract(e.value)),o=n?r-1:r;for(;o>=0&&o<i.length&&!i[o];)o+=n?-1:1;o!==(n?r-1:r)&&(t.preventDefault(),o<0||o>=i.length||(y(e.value.slice(0,o)+e.value.slice(o+1),n?o:r,!0),S()))},re=t=>{if(e.readOnly||e.disabled)return;let n=t.clipboardData?.getData(`text`);if(n==null)return;t.preventDefault();let r=$(a,n),i=e.selectionStart??e.value.length,o=e.selectionEnd??i;y(e.value.slice(0,i)+r+e.value.slice(o),i+r.length,!0),S()},ie=()=>{let t=a.extract(e.value);return a.post(t,a.layout(t).text)},w=()=>{m=!0,v()};e.addEventListener(`input`,ee),e.addEventListener(`beforeinput`,ne),e.addEventListener(`paste`,re),e.addEventListener(`compositionstart`,te),e.addEventListener(`compositionend`,C),e.addEventListener(`blur`,w),e.addEventListener(`invalid`,w);let T=e.form,ae=t=>{e.name&&!e.disabled&&kf(t.formData,e.name,e.value,ie())},oe=()=>{clearTimeout(_),_=setTimeout(()=>{m=!1,y($(a,e.value),e.value.length,!0)},0)};n||(T?.addEventListener(`formdata`,ae),Ef.set(e,ie)),T?.addEventListener(`reset`,oe),T?.addEventListener(`submit`,w);let se=$(a,e.value);return y(se,se.length,!1),()=>{clearTimeout(_),e.removeEventListener(`input`,ee),e.removeEventListener(`beforeinput`,ne),e.removeEventListener(`paste`,re),e.removeEventListener(`compositionstart`,te),e.removeEventListener(`compositionend`,C),e.removeEventListener(`blur`,w),e.removeEventListener(`invalid`,w),T?.removeEventListener(`formdata`,ae),T?.removeEventListener(`reset`,oe),T?.removeEventListener(`submit`,w),Ef.delete(e),b?Object.defineProperty(e,"value",b):Reflect.deleteProperty(e,`value`),m=!1,h=``,v(),e.setCustomValidity(``),delete e.dataset.maskRaw,l&&e.removeAttribute(`inputmode`)}}function Mf(){let e=typeof window>`u`?void 0:window.jQuery?.validator?.prototype;if(!e||e.wuiMaskHook)return;let t=e.elementValue;e.elementValue=function(e){let n=Df(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var Nf=new WeakMap,Pf,Ff=e=>{Nf.has(e)||Nf.set(e,jf(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},If=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),Lf=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...If(e)]:[];function Rf(){Pf||typeof MutationObserver>`u`||(Pf=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Lf(e))Nf.get(t)?.(),Nf.delete(t);for(let e of t.addedNodes)for(let t of Lf(e))Ff(t)}}),Pf.observe(document.documentElement,{childList:!0,subtree:!0}))}function zf(e=document){Mf();for(let t of If(e))Ff(t);e===document&&Rf()}var Bf=`data-wui-bulk-in-bar`,Vf=`[data-wui-page-header-bar][data-wui-bulk-for]`,Hf=new WeakSet;function Uf(e){return`${W(e,{decimals:0})} selected`}function Wf(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function Gf(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function Kf(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function qf(e,t){for(let n of Kf(e,`[data-wui-bar-swap]`))n.hidden=t>0;let n=e.querySelector(`[data-wui-bar-bulk]`);if(!n)return;if(!(n instanceof HTMLElement))throw Error(`The bulk slot is not an HTML element.`);n.hidden=t===0;let r=n.querySelector(`.page-header-bar-bulk-count`);if(!(r instanceof HTMLElement))throw Error(`The bulk slot has no count element.`);r.textContent=t>0?Uf(t):``}function Jf(e=document){for(let t of Kf(e,Vf))Wf(t)?.setAttribute(Bf,``);Hf.has(document)||(Hf.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!Gf(e.detail))return;let t=e.target;if(t!==null&&!(t instanceof Node))throw Error(`The selection changed on a target that is not a node.`);for(let n of Kf(document,Vf))Wf(n)?.contains(t)&&qf(n,e.detail.selected)}))}var Yf={digitText:`At least one digit`,lengthText:`At least {minLength} characters long`,lowercaseText:`At least one lowercase letter`,requirementsTitle:`Password requirements`,specialText:`At least one special character`,uniqueCharsTextOne:`At least {n} unique character`,uniqueCharsTextOther:`At least {n} unique characters`,uppercaseText:`At least one uppercase letter`},Xf={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},Zf=()=>k(`passwordRules`,Yf);function Qf(e){return e===!0||e==null?{...Xf}:{...Xf,...e}}function $f(e){let t=Qf(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:A(Zf().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:Zf().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:Zf().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:Zf().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:Zf().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:rt(Zf(),`uniqueCharsText`,e,{n:e}),test:t=>new Set(t).size>=e})}for(let[e,r]of(t.customRules??[]).entries()){let t=new RegExp(r.pattern);n.push({key:`custom-${e}`,label:r.label,test:e=>t.test(e)})}return n}function ep(e,t){let n=e==null?``:String(e);return $f(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function tp(e,t){return ep(e,t).every(e=>e.met)}var np={moveLabel:`Move to`,moveText:`Move to {label}`},rp=`wui:row-drop`,ip=`is-drop-over`,ap=`application/x-wui-rows`,op=`wui-row-dragging`,sp=`[data-wui-drop-target]`,cp=`tbody tr[data-row-key]`,lp=`input, button, a, select, textarea, label`,up=`.wui-select-cell .form-check-input`,dp=new WeakMap,fp=new WeakSet,pp=null,mp=null;function hp(e){let t=e.querySelector(up);return t instanceof HTMLInputElement&&t.checked}function gp(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&hp(n)&&t.push(n.dataset.rowKey);return t}function _p(e,t){return We(e,t)}function vp(e,t){let n=_p(e,t);return n instanceof HTMLElement?n:null}function yp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var bp=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function xp(){pp=null,document.body.classList.remove(op);for(let e of document.querySelectorAll(`${sp}.${ip}`))e.classList.remove(ip)}function Sp(e,t,n){e.dispatchEvent(new CustomEvent(rp,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function Cp(e){let t=vp(e.target,sp);if(!t||!pp)return;e.preventDefault();let n=D(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(ip)}function wp(e){let t=vp(e.target,sp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(ip)}function Tp(e){let t=vp(e.target,sp);if(!t||!pp)return;e.preventDefault(),t.classList.remove(ip);let{root:n,keys:r}=pp;Sp(n,r,t),xp()}function Ep(e){let t=vp(e.target,sp);t&&mp?.keys.length&&(e.preventDefault(),Sp(mp.root,mp.keys,t))}function Dp(e){(_r(e)||e.key===` `)&&Ep(e)}function Op(e){fp.has(e)||(fp.add(e),e.addEventListener(`dragover`,Cp),e.addEventListener(`dragenter`,Cp),e.addEventListener(`dragleave`,wp),e.addEventListener(`drop`,Tp),e.addEventListener(`click`,Ep),e.addEventListener(`keydown`,Dp))}function kp(e){let t=dp.get(e);if(t)return t;Op(e.ownerDocument||e);let n=t=>{let n=vp(t.target,cp);if(!n||!e.contains(n))return;let r=_p(t.target,lp);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=vp(t.target,cp);if(!n||!e.contains(n))return;let r=hp(n)?gp(e):[n.dataset.rowKey],i=D(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(ap,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,pp={root:e,keys:r},document.body.classList.add(op)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(bp(n)){let{keys:t}=n;n.selected>0?mp={root:e,keys:Array.isArray(t)?t:gp(e)}:n.selected===0&&(mp=null)}jp(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,xp),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,xp),e.removeEventListener(`selectionchange`,i),dp.delete(e)};return dp.set(e,a),a}var Ap=()=>k(`rowDrop`,np);function jp(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${up}:checked`)!==null;for(let n of e.querySelectorAll(sp)){n.tagName!==`BUTTON`&&(n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`)),t?n.removeAttribute(`aria-disabled`):n.setAttribute(`aria-disabled`,`true`);let e=n.getAttribute(`data-wui-drop-label`)||yp(n);n.setAttribute(`aria-label`,A(Ap().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,Ap().moveLabel))}function Mp(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&kp(t);jp(e.ownerDocument||e)}var Np=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,Pp=1;function Fp(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>Pp&&n>Pp),e.toggleAttribute(`data-wui-overflow-end`,t>Pp&&n<t-Pp),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>Pp)},n=()=>{if(e.scrollWidth-e.clientWidth>Pp){let t=getComputedStyle(e);e.style.setProperty(`--wui-scroll-pad-start`,t.paddingInlineStart),e.style.setProperty(`--wui-scroll-pad-end`,t.paddingInlineEnd)}else e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))},r=()=>{n(),t()};e.addEventListener(`scroll`,t,{passive:!0});let i=null;if(typeof ResizeObserver<`u`){i=new ResizeObserver(r),i.observe(e);for(let t of e.children)i.observe(t)}return r(),()=>{e.removeEventListener(`scroll`,t),i?.disconnect(),e.removeAttribute(`data-wui-overflow-start`),e.removeAttribute(`data-wui-overflow-end`),e.removeAttribute(`data-wui-overflow-top`),e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))}}var Ip=new WeakMap,Lp,Rp=e=>{Ip.has(e)||Ip.set(e,Fp(e))},zp=e=>{if(!(e instanceof HTMLElement))return[];let t=e.matches(`.table-wrap, .table-responsive, [class*="table-responsive-"]`)?[e]:[];if(e.firstElementChild===null)return t;let n=[...e.querySelectorAll(Np)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function Bp(){Lp||typeof MutationObserver>`u`||(Lp=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of zp(e))Ip.get(t)?.(),Ip.delete(t);for(let e of t.addedNodes)for(let t of zp(e))Rp(t)}}),Lp.observe(document.documentElement,{childList:!0,subtree:!0}))}function Vp(e=document){for(let t of e.querySelectorAll(Np))t instanceof HTMLElement&&Rp(t);e===document&&Bp()}var Hp=new WeakSet;function Up(e){let t=e.querySelectorAll?[...e.querySelectorAll(`[data-wui-flash]`)]:[];e instanceof Element&&e.matches(`[data-wui-flash]`)&&t.unshift(e);for(let e of t){let t=e.getAttribute(`data-wui-flash-variant`)||`success`;if(!Gi(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${Wi.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&oo(n,t)}}function Wp(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!Hp.has(t)){Hp.add(t);let e=Yi();e&&oo(e.message,e.variant,e.action)}Up(e)}var Gp=`data-wui-submit-once`,Kp=`data-wui-submit-pending`,qp=`wui-submit-spinner`,Jp=new WeakSet,Yp=new WeakMap;function Xp(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function Zp(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${qp}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${qp}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function Qp(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${qp}`)?.remove()}function $p(e){return e.method===`post`&&e.target!==`_blank`&&e.getAttribute(`data-wui-submit-once`)!==`off`}function em(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!$p(t))return;if(t.hasAttribute(Kp)){e.preventDefault();return}t.setAttribute(Kp,``);let n=Xp(e.submitter);setTimeout(()=>{t.hasAttribute(Kp)&&(e.defaultPrevented?t.removeAttribute(Kp):n&&(n.disabled=!0,Zp(n),Yp.set(t,n)))},0)}var tm=e=>[...e.querySelectorAll(`form[${Kp}]`)].filter(e=>e instanceof HTMLFormElement);function nm(e){for(let t of tm(e)){t.removeAttribute(Kp);let e=Yp.get(t);e&&(e.disabled=!1,Qp(e),Yp.delete(t))}}function rm(e){let t=e.ownerDocument===null?e:e.ownerDocument;Jp.has(t)||(Jp.add(t),t.addEventListener(`submit`,em,!0),t.defaultView?.addEventListener(`pageshow`,()=>nm(t)))}var im=[`light`,`dark`,`auto`],am=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],om=`fade`,sm=`theme`,cm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},lm=`wui-theme-switching`,um=`wui:theme:change`,dm=`(prefers-color-scheme: dark)`,fm=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,pm=e=>im.some(t=>t===e);function mm(e){return e===`dark`||e===`auto`&&fm(dm)?`dark`:`light`}function hm(e=sm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return pm(t)?t:`auto`}function gm(e,t=sm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function _m(e){let t=document.documentElement,n=mm(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(um,{detail:{mode:n,preference:e}}))}var vm=`((k)=>{let m;try{m=localStorage.getItem(k)}catch{m=null}if(m!=='light'&&m!=='dark')m='auto';const r=document.documentElement,q=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null;function s(){const t=r.getAttribute('data-theme');r.setAttribute('data-bs-theme',t==='auto'?(q?.matches?'dark':'light'):t)}r.setAttribute('data-theme',m);s();if(q?.addEventListener)q.addEventListener('change',()=>{if(r.getAttribute('data-theme')==='auto')s()})})(`;function ym(e=sm){return`${vm}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function bm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function xm(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(dm),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Sm=60,Cm=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,wm=e=>e.toFixed(1),Tm=(e,t)=>`${wm(e)}px ${wm(t)}px`,Em={amplitude:22,segments:36,cycles:1.5,ripples:2},Dm=6,Om=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=Em,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Tm(0,u)];for(let t=0;t<=o;t++){let n=e*t/o,i=l+a*Math.sin(2*Math.PI*s*t/o+r);d.push(Tm(n,i))}return d.push(Tm(e,u)),`polygon(${d.join(`, `)})`},km=(e,t,n,r)=>{let i=t/Dm,a=[];for(let t=0;t<Dm;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Tm(0,c),Tm(e,c),Tm(e,l),Tm(0,l))}return`polygon(${a.join(`, `)})`};function Am(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=Sm;r++){let s=r/Sm,c=Cm(s);switch(e){case`circle`:{let e=i?.x??t/2,r=i?.y??n/2,a=Math.hypot(Math.max(e,t-e),Math.max(r,n-r));o.push({clipPath:`circle(${wm(a*c)}px at ${wm(e)}px ${wm(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${wm(e)}px 0px 0px 0px)`:`inset(0px 0px ${wm(e)}px 0px)`});break}case`blinds`:o.push({clipPath:km(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:Om(t,n,c,s*Em.ripples*2*Math.PI,a)})}}return o}var jm=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||tn(`[@webority/ui-elements] The theme view transition failed:`,e)};function Mm(e,{effect:t=om,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||fm(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(lm);let s=document.startViewTransition(e),c=i??cm[t]??cm.fade;return s.ready.then(()=>{let e=Am(t,{width:window.innerWidth,height:window.innerHeight,to:n,origin:r});a.animate(e,{duration:c,easing:`linear`,fill:`both`,pseudoElement:`::view-transition-new(root)`})}).catch(jm),s.finished.catch(jm).finally(()=>a.classList.remove(lm)).then(()=>!0)}function Nm(){Jt(),i(`wui-select`,di),i(`wui-modal`,Yt)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.186.0`,modules:od}),Ii(),Rn(),Oo(),Nm(),e.AVATAR_ACCEPT=cd,e.AVATAR_MAX_SIZE_MB=ld,e.AVATAR_OUTPUT_SIZE=ud,e.AVATAR_OUTPUT_TYPE=dd,e.AVATAR_PREVIEW_SIZES=fd,e.BAR_BULK_IN_BAR_ATTRIBUTE=Bf,e.COLUMN_MAX_WIDTH=_c,e.COLUMN_MIN_WIDTH=gc,e.COMMAND_SHORTCUT_ATTRIBUTE=kd,e.COPY_FEEDBACK_MS=dc,e.CSRF_META_NAME=ta,e.CURRENCIES=is,e.CURRENCY_SYMBOLS=Bo,e.DATE_PATTERNS=ss,e.DEFAULT_CSRF_HEADER=na,e.DEFAULT_CURRENCY=zo,e.DEFAULT_IMAGE_ACCEPT=Bd,e.DEFAULT_MAX_SIZE_MB=Vd,e.DEFAULT_PASSWORD_RULES=Xf,e.DEFAULT_THEME_EFFECT=om,e.DEFAULT_THEME_STORAGE_KEY=sm,e.DROP_OVER_CLASS=ip,e.DURATION_UNITS=os,e.FILTER_POPOVER_MAX_CHIPS=It,e.FLASH_STORAGE_KEY=Ki,e.FLASH_VARIANTS=Wi,e.FORMAT_STYLES=rs,e.GROUP_SELECT_CLASS=mu,e.HTTP_KINDS=oa,e.IST_TIME_ZONE=V,e.MASK_INPUT_TYPES=uf,e.MASK_NAMES=_f,e.MENTION_ID_PATTERN=ll,e.MONEY_UNITS=as,e.NOTIFICATION_COUNT_CAP=Dl,e.PIN_AT_VAR=Lc,e.PIN_SIDES=bc,e.RESIZE_STEP=vc,e.RESIZE_STEP_LARGE=yc,e.ROW_DRAG_TYPE=ap,e.ROW_DROP_EVENT=rp,e.ROW_HEIGHTS=Sc,e.ROW_MOVE_LIMIT=Vc,e.ROW_MOVE_MS=Hc,e.ROW_SAVE_ATTR=Xc,e.ROW_SAVE_ERROR_CLASS=Zc,e.ROW_SAVE_STATES=Yc,e.SCROLL_EDGE_SELECTOR=Np,e.SEARCH_OPEN_KEY=gd,e.SELECT_CELL_CLASS=J,e.SHORTCUTS_OFF_ATTRIBUTE=ft,e.SHORTCUT_EVENT=mt,e.SHORTCUT_SCOPE_ATTRIBUTE=pt,e.SUBMIT_ONCE_ATTRIBUTE=Gp,e.THEME_BOOT_SCRIPT_BODY=vm,e.THEME_CHANGE_EVENT=um,e.THEME_EFFECTS=am,e.THEME_EFFECT_DURATION=cm,e.THEME_MODES=im,e.THEME_SWITCHING_CLASS=lm,e.TOAST_ACTION_METHODS=zi,e.TOAST_ACTION_MS=no,e.VIRTUAL_OVERSCAN=xc,e.WUI_HEADERS=B,e.WuiPostError=Ql,e.WuiSelect=di,e.acceptDroppedFiles=rf,e.acceptLabel=ef,e.addRowSelectCells=wu,e.addSelectColumn=Tu,e.applyBarBulk=qf,e.applyRefresh=eo,e.applyTheme=_m,e.ariaKeyShortcuts=Et,e.attachFileDrop=af,e.attachInputMask=jf,e.attachRowDrag=kp,e.attachScrollEdges=Fp,e.attachShiftRange=ku,e.avatarCropOptions=hd,e.avatarUnreadableMessage=md,e.barBulkCountText=Uf,e.buildPasswordRules=$f,e.clampColumnWidth=Ac,e.classifyStatus=ua,e.collapseSearch=Td,e.configureCsrf=ia,e.copyTextToClipboard=fc,e.createGroupSelectCell=yu,e.createRequestQueue=xa,e.createSelectHeaderCell=gu,e.createSelectRowCell=_u,e.createSelectSpacerCell=vu,e.currencyPrefix=Ho,e.deriveStepStatus=lu,e.emptyValueLabel=H,e.evaluatePassword=ep,e.fillText=A,e.formatCompact=Ps,e.formatCurrency=Ms,e.formatDate=K,e.formatDateTime=Hs,e.formatDuration=Ls,e.formatFileSize=Zd,e.formatMasked=wf,e.formatNumber=W,e.formatPercent=Fs,e.formatRelativeTime=Wl,e.formatValue=Bs,e.glyphNode=F,e.groupCount=kc,e.groupItems=jc,e.groupNotificationsByDay=Fl,e.groupRowsOf=bu,e.identityCell=$c,e.inShortcutScope=At,e.initCollapsibleSearch=Od,e.initCommandShortcuts=Rd,e.initFlashToasts=Wp,e.initInputMasks=zf,e.initPageBarBulk=Jf,e.initRowDrag=Mp,e.initScrollEdges=Vp,e.initSubmitOnce=rm,e.isCommandChord=Pd,e.isCurrencyCode=Vo,e.isHeicFile=pd,e.isImageFile=Yd,e.isImageOnlyAccept=$d,e.isMaskPattern=yf,e.isPdfFile=Qd,e.isTimeZone=Jo,e.isTypingTarget=Dt,e.loadServer=go,e.loadShell=yo,e.loadedServer=_o,e.loadedShell=bo,e.maskedPostValue=Df,e.matchSegments=Fu,e.matchesAccept=tf,e.measureRows=Kc,e.mentionLabel=fl,e.mentionTextFromValue=hl,e.mentionValueFromText=gl,e.mentionedIds=_l,e.moveFocus=Mt,e.nextTheme=bm,e.notificationCountText=Al,e.notificationDayHeading=Pl,e.notificationTime=Nl,e.notificationTriggerLabel=jl,e.notificationUnreadAnnouncement=Ml,e.openSearch=wd,e.parseMentionValue=ml,e.parseServerHtml=Zi,e.parseToastAction=Hi,e.passwordSatisfies=tp,e.pinAtValue=Rc,e.pinClasses=Bc,e.pinOffsetVar=Ic,e.planPins=zc,e.playRowMoves=qc,e.pluralText=rt,e.postedMasked=Cf,e.rawMasked=Sf,e.readColumnWidths=Pc,e.readCsrf=ca,e.readStoredTheme=hm,e.readText=k,e.refreshAfter=$a,e.refreshRegions=Oa,e.relativeTimeTitle=Gl,e.reloadsPage=Wa,e.resolveMask=xf,e.resolveTheme=mm,e.rowLabel=el,e.rowOrderChanged=Jc,e.runShortcut=jt,e.runToastAction=so,e.saveOutcomeText=al,e.setRowSaveState=rl,e.setText=et,e.settledRows=il,e.shortcutKey=Tt,e.shortcutName=wt,e.shortcutsOff=kt,e.showResultToast=ao,e.showToast=oo,e.stepperHeaderItems=uu,e.storeTheme=gm,e.syncGroupSelect=Du,e.syncSelectAll=Eu,e.syncTargets=jp,e.themeBootScript=ym,e.themeKeyframes=Am,e.tickedKeys=gp,e.timeZoneLabel=Gs,e.timeoutFromAttribute=pa,e.toInstant=G,e.todayIn=es,e.transitionTheme=Mm,e.validateFile=nf,e.virtualRange=Mc,e.wallClockOf=$o,e.watchSystemTheme=xm,e.whenElementsReady=Bn,e.withTrustedLabel=wr,e.writeColumnWidths=Fc,e.wuiFetch=ba,e.wuiUpload=su,e.zoneOffsetMs=Xo,e.zoneParts=Yo,e})({});