@openremote/or-tree-menu 1.34.0-snapshot.20261104153615 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var ORTreeMenu;(()=>{"use strict";var e={954(e){e.exports=__rspack_external__954},487(e){e.exports=__rspack_external__487},673(e){e.exports=__rspack_external__673}},t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}i.d=(e,t,s)=>{var n=(t,s)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[s]:t[n]})};n(t,"get"),n(s,"value")},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{let e,t,n;i.r(s),i.d(s,{OrTreeDragEvent:()=>eO,OrTreeGroup:()=>i5,OrTreeMenu:()=>i9,OrTreeNode:()=>i7,OrTreeSelectEvent:()=>eS,TreeMenuSelection:()=>ev,TreeMenuSorting:()=>em});let o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;class d{constructor(e,t,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(r&&void 0===e){let i=void 0!==t&&1===t.length;i&&(e=l.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(t,e))}return e}toString(){return this.cssText}}let h=e=>new d("string"==typeof e?e:e+"",void 0,a),c=(e,...t)=>new d(1===e.length?e[0]:t.reduce((t,i,s)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[s+1],e[0]),e,a),u=(e,t)=>{if(r)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let i of t){let t=document.createElement("style"),s=o.litNonce;void 0!==s&&t.setAttribute("nonce",s),t.textContent=i.cssText,e.appendChild(t)}},p=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return h(t)})(e):e,{is:_,defineProperty:v,getOwnPropertyDescriptor:m,getOwnPropertyNames:g,getOwnPropertySymbols:f,getPrototypeOf:b}=Object,y=globalThis,w=y.trustedTypes,x=w?w.emptyScript:"",C=y.reactiveElementPolyfillSupport,E={toAttribute(e,t){switch(t){case Boolean:e=e?x:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},A=(e,t)=>!_(e,t),k={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:A};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(e,i,t);void 0!==s&&v(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){let{get:s,set:n}=m(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:s,set(t){let o=s?.call(this);n?.call(this,t),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=b(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...g(e),...f(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,i]of t)this.elementProperties.set(e,i)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let i of new Set(e.flat(1/0).reverse()))t.unshift(p(i));else void 0!==e&&t.push(p(e));return t}static _$Eu(e,t){let i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(void 0!==s&&!0===i.reflect){let n=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(t,i.type);this._$Em=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){let i=this.constructor,s=i._$Eh.get(e);if(void 0!==s&&this._$Em!==s){let e=i.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:E;this._$Em=s;let o=n.fromAttribute(t,e.type);this[s]=o??this._$Ej?.get(s)??o,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){let s=this.constructor,n=this[e];if(!(((i??=s.getPropertyOptions(e)).hasChanged??A)(n,t)||i.useDefault&&i.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:s,wrapped:n},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==n||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,i]of e){let{wrapped:e}=i,s=this[t];!0!==e||this._$AL.has(t)||void 0===s||this.C(t,void 0,i,s)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S.elementProperties=new Map,S.finalized=new Map,C?.({ReactiveElement:S}),(y.reactiveElementVersions??=[]).push("2.1.1");let O=globalThis,$=O.trustedTypes,T=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,M="$lit$",N=`lit$${Math.random().toFixed(9).slice(2)}$`,P="?"+N,L=`<${P}>`,I=document,B=()=>I.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,R=Array.isArray,F="[ \n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,z=/>/g,H=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^
|
|
2
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,K=/"/g,W=/^(?:script|style|textarea|title)$/i,q=(e,...t)=>({_$litType$:1,strings:e,values:t}),G=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Z=new WeakMap,Y=I.createTreeWalker(I,129);function Q(e,t){if(!R(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(t):t}class J{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let n=0,o=0;const r=e.length-1,a=this.parts,[l,d]=((e,t)=>{let i=e.length-1,s=[],n,o=2===t?"<svg>":3===t?"<math>":"",r=j;for(let t=0;t<i;t++){let i=e[t],a,l,d=-1,h=0;for(;h<i.length&&(r.lastIndex=h,null!==(l=r.exec(i)));)h=r.lastIndex,r===j?"!--"===l[1]?r=U:void 0!==l[1]?r=z:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=H):void 0!==l[3]&&(r=H):r===H?">"===l[0]?(r=n??j,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?H:'"'===l[3]?K:V):r===K||r===V?r=H:r===U||r===z?r=j:(r=H,n=void 0);let c=r===H&&e[t+1].startsWith("/>")?" ":"";o+=r===j?i+L:d>=0?(s.push(a),i.slice(0,d)+M+i.slice(d)+N+c):i+N+(-2===d?t:c)}return[Q(e,o+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),s]})(e,t);if(this.el=J.createElement(l,i),Y.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(s=Y.nextNode())&&a.length<r;){if(1===s.nodeType){if(s.hasAttributes())for(const e of s.getAttributeNames())if(e.endsWith(M)){const t=d[o++],i=s.getAttribute(e).split(N),r=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?en:"?"===r[1]?eo:"@"===r[1]?er:es}),s.removeAttribute(e)}else e.startsWith(N)&&(a.push({type:6,index:n}),s.removeAttribute(e));if(W.test(s.tagName)){const e=s.textContent.split(N),t=e.length-1;if(t>0){s.textContent=$?$.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],B()),Y.nextNode(),a.push({type:2,index:++n});s.append(e[t],B())}}}else if(8===s.nodeType)if(s.data===P)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(N,e+1));)a.push({type:7,index:n}),e+=N.length-1}n++}}static createElement(e,t){let i=I.createElement("template");return i.innerHTML=e,i}}function ee(e,t,i=e,s){if(t===G)return t;let n=void 0!==s?i._$Co?.[s]:i._$Cl,o=D(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e))._$AT(e,i,s),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(t=ee(e,n._$AS(e,t.values),n,s)),t}class et{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,s=(e?.creationScope??I).importNode(t,!0);Y.currentNode=s;let n=Y.nextNode(),o=0,r=0,a=i[0];for(;void 0!==a;){if(o===a.index){let t;2===a.type?t=new ei(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ea(n,this,e)),this._$AV.push(t),a=i[++r]}o!==a?.index&&(n=Y.nextNode(),o++)}return Y.currentNode=I,s}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class ei{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,s){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){let i;D(e=ee(this,e,t))?e===X||null==e||""===e?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==G&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):R(i=e)||"function"==typeof i?.[Symbol.iterator]?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==X&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(I.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,s="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=J.createElement(Q(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(t);else{let e=new et(s,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Z.get(e.strings);return void 0===t&&Z.set(e.strings,t=new J(e)),t}k(e){R(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,s=0;for(let n of e)s===t.length?t.push(i=new ei(this.O(B()),this.O(B()),this,this.options)):i=t[s],i._$AI(n),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class es{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,n){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}_$AI(e,t=this,i,s){let n=this.strings,o=!1;if(void 0===n)(o=!D(e=ee(this,e,t,0))||e!==this._$AH&&e!==G)&&(this._$AH=e);else{let s,r,a=e;for(e=n[0],s=0;s<n.length-1;s++)(r=ee(this,a[i+s],t,s))===G&&(r=this._$AH[s]),o||=!D(r)||r!==this._$AH[s],r===X?e=X:e!==X&&(e+=(r??"")+n[s+1]),this._$AH[s]=r}o&&!s&&this.j(e)}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class en extends es{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===X?void 0:e}}class eo extends es{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==X)}}class er extends es{constructor(e,t,i,s,n){super(e,t,i,s,n),this.type=5}_$AI(e,t=this){if((e=ee(this,e,t,0)??X)===G)return;let i=this._$AH,s=e===X&&i!==X||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==X&&(i===X||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ea{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ee(this,e)}}let el=O.litHtmlPolyfillSupport;el?.(J,ei),(O.litHtmlVersions??=[]).push("3.3.1");let ed=(e,t,i)=>{let s=i?.renderBefore??t,n=s._$litPart$;if(void 0===n){let e=i?.renderBefore??null;s._$litPart$=n=new ei(t.insertBefore(B(),e),e,void 0,i??{})}return n._$AI(e),n},eh=globalThis;class ec extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ed(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ec._$litElement$=!0,ec.finalized=!0,eh.litElementHydrateSupport?.({LitElement:ec});let eu=eh.litElementPolyfillSupport;eu?.({LitElement:ec}),(eh.litElementVersions??=[]).push("4.2.1");var ep,e_,ev,em,eg=i(487);let ef=e=>(t,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},eb={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:A};function ey(e){return(t,i)=>{let s;return"object"==typeof i?((e=eb,t,i)=>{let{kind:s,metadata:n}=i,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===s&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),"accessor"===s){let{name:s}=i;return{set(i){let n=t.get.call(this);t.set.call(this,i),this.requestUpdate(s,n,e)},init(t){return void 0!==t&&this.C(s,void 0,e,t),t}}}if("setter"===s){let{name:s}=i;return function(i){let n=this[s];t.call(this,i),this.requestUpdate(s,n,e)}}throw Error("Unsupported decorator location: "+s)})(e,t,i):(s=t.hasOwnProperty(i),t.constructor.createProperty(i,e),s?Object.getOwnPropertyDescriptor(t,i):void 0)}}let ew=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function ex(t){return(i,s)=>ew(i,s,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function eC(e){return(t,i)=>{let{slot:s,selector:n}=e??{},o="slot"+(s?`[name=${s}]`:":not([name])");return ew(t,i,{get(){let t=this.renderRoot?.querySelector(o),i=t?.assignedElements(e)??[];return void 0===n?i:i.filter(e=>e.matches(n))}})}}function*eE(e,t){if(void 0!==e){let i=0;for(let s of e)yield t(s,i++)}}var eA=i(954);function ek(e,t,i=[]){console.debug(`Moving nodes '${e.map(e=>e.label).join(", ")}' into group '${null==t?void 0:t.label}'. Tree nodes are`,t);let s=function i(s){return s.map(s=>{if(e.some(e=>s.id===e.id))return console.debug("Removed the node from original position."),null;let n=Object.assign({},s);return n.children&&(n.children=i(n.children).filter(e=>null!==e)),t&&s.id===(null==t?void 0:t.id)&&e.forEach(e=>{n.children=n.children?[...n.children,e]:[e]}),n}).filter(e=>null!==e)}(i);return t||s.push(...e),s}(ep=ev||(ev={})).LEAF="leaf",ep.SINGLE="single",ep.MULTI="multi",(e_=em||(em={})).A_TO_Z="a_to_z",e_.Z_TO_A="z_to_a";class eS extends CustomEvent{constructor(e){super(eS.NAME,{bubbles:!0,composed:!0,detail:e})}}eS.NAME="or-tree-select";class eO extends CustomEvent{constructor(e,t,i=[]){super(eO.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{nodes:e,groupNode:t,newNodes:i}})}}eO.NAME="or-tree-drag",window.Vaadin||={},window.Vaadin.featureFlags||={};let e$={};function eT(e,t="25.3.4"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||e$[t]){if(e$[t])return void e$[t].add(e)}else{e$[t]=new Set,e$[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===e$[t].size,set(e){e&&e$[t].size>0&&(e$[t].forEach(e=>{customElements.define(e.is,e)}),e$[t].clear())}});return}}let i=customElements.get(e.is);if(i){let t=i.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let eM=[];function eN(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function eP(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=eP();eM.forEach(t=>{eN(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let eL=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),eN(this,eP(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"dir"!==e)return;let s=eP(),n=i===s&&-1===eM.indexOf(this),o=!i&&t&&-1===eM.indexOf(this),r=i!==s&&t===s;n||o?(this.__subscribe(),eN(this,s,i)):r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=eM.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){("dir"!==i||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){eM.includes(this)||eM.push(this)}__unsubscribe(){eM.includes(this)&&eM.splice(eM.indexOf(this),1)}},eI=new WeakMap;function eB(e){return t=>{if(function(e,t){let i=t;for(;i;){if(eI.get(i)===e)return!0;i=Object.getPrototypeOf(i)}return!1}(e,t))return t;let i=e(t);return eI.set(i,e),i}}let eD={},eR=/([A-Z])/gu;function eF(e){return eD[e]||(eD[e]=e.replace(eR,"-$1").toLowerCase()),eD[e]}function ej(e){return e[0].toUpperCase()+e.substring(1)}function eU(e){let[t,i]=e.split("(");return{method:t,observerProps:i.replace(")","").split(",").map(e=>e.trim())}}function ez(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let eH=eB(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ez(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:i,observerProps:s}=eU(t);e.set(i,s)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,i){let s=super.getPropertyDescriptor(e,t,i),n=s;if(this.getOrCreateMap("__propKeys").set(e,t),i.sync&&(n={get:s.get,set(s){let n=this[e];A(s,n)&&(this[t]=s,this.requestUpdate(e,n,i),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),i.readOnly){let t=n.set;this.addCheckedInitializer(i=>{i[`_set${ej(e)}`]=function(e){t.call(i,e)}}),n={get:n.get,set(){},configurable:!0,enumerable:!0}}if("value"in i&&this.addCheckedInitializer(t=>{let s="function"==typeof i.value?i.value.call(t):i.value;i.readOnly?t[`_set${ej(e)}`](s):t[e]=s}),i.observer){let t=i.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(i.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(i.computed){let t=`__assignComputed${e}`,s=eU(i.computed);this.prototype[t]=function(...t){this[e]=this[s.method](...t)},this.getOrCreateMap("__computedObservers").set(t,s.observerProps)}return i.attribute||(i.attribute=eF(e)),n}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let i=this.constructor.__propKeys.get(e),s=this[i];this[i]=t,this.requestUpdate(e,s)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ez(this,"__dynamicMethodObservers"),{method:i,observerProps:s}=eU(e);t.set(i,s)}_createPropertyObserver(e,t){ez(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,i)=>{t.some(t=>e.has(t))&&(this[i]?this[i](...t.map(e=>this[e])):console.warn(`observer method ${i} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,i)=>{e.has(t)&&this[i]&&this[i](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,i)=>{let s=t.get(i);void 0!==s&&this[s]&&this[s](this[i],e)})}__runNotifyProps(e,t){e.forEach((e,i)=>{t.has(i)&&this.dispatchEvent(new CustomEvent(`${eF(i)}-changed`,{detail:{value:this[i]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,i){let s,n;n=(s=e.split(".")).pop(),s.reduce((e,t)=>e[t],i)[n]=t}}),eV=0,eK=0,eW=[],eq=!1,eG={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},eX={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},eZ={run(e){eq||(eq=!0,queueMicrotask(()=>(function(){eq=!1;let e=eW.length;for(let t=0;t<e;t++){let e=eW[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}eW.splice(0,e),eK+=e})())),eW.push(e);let t=eV;return eV+=1,t},cancel(e){let t=e-eK;if(t>=0){if(!eW[t])throw Error(`invalid async handle: ${e}`);eW[t]=null}}},eY="string"==typeof document.head.style.touchAction,eQ="__polymerGestures",eJ="__polymerGesturesHandled",e0="__polymerGesturesTouchAction",e1=["mousedown","mousemove","mouseup","click"],e2=[0,1,4,2],e5=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function e4(e){return e1.indexOf(e)>-1}try{let e=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}let e8=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),e7={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function e3(e){let t=e.type;if(!e4(t))return!1;if("mousemove"===t){let t=e.buttons??1;return e instanceof window.MouseEvent&&!e5&&(t=e2[e.which]||0),!!(1&t)}return 0===(e.button??0)}let e6={x:0,y:0,id:-1,scrollDecided:!1};function e9(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function te(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}let tt=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],ti={},ts=[];function tn(e,t){let i=document.elementFromPoint(e,t),s=i;for(;s?.shadowRoot&&!window.ShadyDOM&&s!==(s=s.shadowRoot.elementFromPoint(e,t));)s&&(i=s);return i}function to(e){let t=tt(e);return t.length>0?t[0]:e.target}function tr(e){let t=e.type,i=e.currentTarget[eQ];if(!i)return;let s=i[t];if(!s)return;if(!e[eJ]&&(e[eJ]={},t.startsWith("touch"))){let i=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(e6.id=i.identifier),e6.id!==i.identifier)return;eY||"touchstart"!==t&&"touchmove"!==t||function(e){let t=e.changedTouches[0],i=e.type;if("touchstart"===i)e6.x=t.clientX,e6.y=t.clientY,e6.scrollDecided=!1;else if("touchmove"===i){if(e6.scrollDecided)return;e6.scrollDecided=!0;let i=function(e){let t="auto",i=tt(e);for(let e=0,s;e<i.length;e++)if((s=i[e])[e0]){t=s[e0];break}return t}(e),s=!1,n=Math.abs(e6.x-t.clientX),o=Math.abs(e6.y-t.clientY);e.cancelable&&("none"===i?s=!0:"pan-x"===i?s=o>n:"pan-y"===i&&(s=n>o)),s?e.preventDefault():th("track")}}(e)}let n=e[eJ];if(!n.skip){for(let t=0,i;t<ts.length;t++)s[(i=ts[t]).name]&&!n[i.name]&&i.flow&&i.flow.start.indexOf(e.type)>-1&&i.reset&&i.reset();for(let i=0,o;i<ts.length;i++)s[(o=ts[i]).name]&&!n[o.name]&&(n[o.name]=!0,o[t](e))}}function ta(e,t,i){return!!ti[t]&&(function(e,t,i){var s,n;let o=ti[t],r=o.deps,a=o.name,l=e[eQ];l||(e[eQ]=l={});for(let t=0,i,s;t<r.length;t++)i=r[t],e8&&e4(i)&&"click"!==i||((s=l[i])||(l[i]=s={_count:0}),0===s._count&&e.addEventListener(i,tr,void e4(i)),s[a]=(s[a]||0)+1,s._count=(s._count||0)+1);e.addEventListener(t,i),o.touchAction&&(s=e,n=o.touchAction,eY&&s instanceof HTMLElement&&eZ.run(()=>{s.style.touchAction=n}),s[e0]=n)}(e,t,i),!0)}function tl(e){ts.push(e),e.emits.forEach(t=>{ti[t]=e})}function td(e,t,i){let s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=i,e.dispatchEvent(s),s.defaultPrevented){let e=i.preventer||i.sourceEvent;e?.preventDefault&&e.preventDefault()}}function th(e){let t=function(e){for(let t=0,i;t<ts.length;t++){i=ts[t];for(let t=0;t<i.emits.length;t++)if(i.emits[t]===e)return i}return null}(e);t.info&&(t.info.prevent=!0)}function tc(e,t,i,s){t&&td(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent:e=>th(e)})}function tu(e,t,i){if(e.prevent)return!1;if(e.started)return!0;let s=Math.abs(e.x-t),n=Math.abs(e.y-i);return s>=5||n>=5}function tp(e,t,i){if(!t)return;let s=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1],o=n.x-e.x,r=n.y-e.y,a,l=0;s&&(a=n.x-s.x,l=n.y-s.y),td(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:o,dy:r,ddx:a,ddy:l,sourceEvent:i,hover:()=>tn(i.clientX,i.clientY)})}function t_(e,t,i){let s=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),o=to(i||t);!(!o||e7[o.localName]&&o.hasAttribute("disabled"))&&(isNaN(s)||isNaN(n)||s<=25&&n<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=to(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let i=t.getBoundingClientRect(),s=e.pageX,n=e.pageY;return!(s>=i.left&&s<=i.right&&n>=i.top&&n<=i.bottom)}return!1}(t))&&!e.prevent&&td(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}function tv(e,t,i){i?e.setAttribute(t,i):e.removeAttribute(t)}tl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this;e9(this.info,e=>{e3(e)||(tc("up",t,e),te(i.info))},e=>{e3(e)&&tc("up",t,e),te(i.info)}),tc("down",t,e)},touchstart(e){tc("down",to(e),e.changedTouches[0],e)},touchend(e){tc("up",to(e),e.changedTouches[0],e)}}),tl({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this,s=e=>{let s=e.clientX,n=e.clientY;tu(i.info,s,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&th("tap"),i.info.addMove({x:s,y:n}),e3(e)||(i.info.state="end",te(i.info)),t&&tp(i.info,t,e),i.info.started=!0)};e9(this.info,s,e=>{i.info.started&&s(e),te(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){let t=to(e),i=e.changedTouches[0],s=i.clientX,n=i.clientY;tu(this.info,s,n)&&("start"===this.info.state&&th("tap"),this.info.addMove({x:s,y:n}),tp(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend(e){let t=to(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),tp(this.info,t,i))}}),tl({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(e){e3(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){e3(e)&&t_(this.info,e)},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){t_(this.info,e.changedTouches[0],e)}});let tm=eB(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){tv(this,"aria-disabled",e)}click(){this.disabled||super.click()}}),tg=eB(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}),tf=e=>class extends tm(tg(e)){get _activeKeys(){return[" "]}ready(){super.ready(),ta(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ta(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}},tb=!1;function ty(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function tw(e){let t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;let i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}function tx(e){return e.checkVisibility?!e.checkVisibility({visibilityProperty:!0}):null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||tw(e)}function tC(e){return e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function tE(e){return e.getRootNode().activeElement===e}function tA(e){let t=[];return!function e(t,i){if(t.nodeType!==Node.ELEMENT_NODE||tw(t))return!1;let s=tC(t)?Number(t.getAttribute("tabindex")||0):-1,n=s>0;return s>=0&&i.push(t),[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{n=e(t,i)||n}),n}(e,t)?t:function e(t){let i=t.length;if(i<2)return t;let s=Math.ceil(i/2),n=e(t.slice(0,s)),o=e(t.slice(s)),r=[];for(;n.length>0&&o.length>0;)!function(e,t){let i=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return 0===i||0===s?s>i:i>s}(n[0],o[0])?r.push(n.shift()):r.push(o.shift());return r.concat(n,o)}(t)}window.addEventListener("keydown",()=>{tb=!0},{capture:!0}),window.addEventListener("mousedown",()=>{tb=!1},{capture:!0});let tk=eB(e=>class extends e{get _keyboardActive(){return tb}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(e){super.focus(e),e?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),tS=e=>class extends tf(tk(e)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged",sync:!0},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value??this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();let e=this.getAttribute("value");null!==e&&(this.value=e),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-item-disabled-pointer-events","auto")}focus(e){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(e)}_shouldSetActive(e){return!this.disabled&&!("keydown"===e.type&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.__shouldAllowFocusWhenDisabled()||this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}__shouldAllowFocusWhenDisabled(){return!1}};function tO(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class t$ extends EventTarget{#e;#t=new Set;#i;#s=!1;constructor(e){super(),this.#e=e,this.#i=new CSSStyleSheet}#n(e){let{propertyName:t}=e;this.#t.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#t.has(e)||(this.#t.add(e),this.#i.replaceSync(`
|
|
2
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,K=/"/g,W=/^(?:script|style|textarea|title)$/i,q=(e,...t)=>({_$litType$:1,strings:e,values:t}),G=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Z=new WeakMap,Y=I.createTreeWalker(I,129);function Q(e,t){if(!R(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(t):t}class J{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let n=0,o=0;const r=e.length-1,a=this.parts,[l,d]=((e,t)=>{let i=e.length-1,s=[],n,o=2===t?"<svg>":3===t?"<math>":"",r=j;for(let t=0;t<i;t++){let i=e[t],a,l,d=-1,h=0;for(;h<i.length&&(r.lastIndex=h,null!==(l=r.exec(i)));)h=r.lastIndex,r===j?"!--"===l[1]?r=U:void 0!==l[1]?r=z:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=H):void 0!==l[3]&&(r=H):r===H?">"===l[0]?(r=n??j,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?H:'"'===l[3]?K:V):r===K||r===V?r=H:r===U||r===z?r=j:(r=H,n=void 0);let c=r===H&&e[t+1].startsWith("/>")?" ":"";o+=r===j?i+L:d>=0?(s.push(a),i.slice(0,d)+M+i.slice(d)+N+c):i+N+(-2===d?t:c)}return[Q(e,o+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),s]})(e,t);if(this.el=J.createElement(l,i),Y.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(s=Y.nextNode())&&a.length<r;){if(1===s.nodeType){if(s.hasAttributes())for(const e of s.getAttributeNames())if(e.endsWith(M)){const t=d[o++],i=s.getAttribute(e).split(N),r=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?en:"?"===r[1]?eo:"@"===r[1]?er:es}),s.removeAttribute(e)}else e.startsWith(N)&&(a.push({type:6,index:n}),s.removeAttribute(e));if(W.test(s.tagName)){const e=s.textContent.split(N),t=e.length-1;if(t>0){s.textContent=$?$.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],B()),Y.nextNode(),a.push({type:2,index:++n});s.append(e[t],B())}}}else if(8===s.nodeType)if(s.data===P)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(N,e+1));)a.push({type:7,index:n}),e+=N.length-1}n++}}static createElement(e,t){let i=I.createElement("template");return i.innerHTML=e,i}}function ee(e,t,i=e,s){if(t===G)return t;let n=void 0!==s?i._$Co?.[s]:i._$Cl,o=D(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e))._$AT(e,i,s),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(t=ee(e,n._$AS(e,t.values),n,s)),t}class et{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,s=(e?.creationScope??I).importNode(t,!0);Y.currentNode=s;let n=Y.nextNode(),o=0,r=0,a=i[0];for(;void 0!==a;){if(o===a.index){let t;2===a.type?t=new ei(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ea(n,this,e)),this._$AV.push(t),a=i[++r]}o!==a?.index&&(n=Y.nextNode(),o++)}return Y.currentNode=I,s}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class ei{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,s){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){let i;D(e=ee(this,e,t))?e===X||null==e||""===e?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==G&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):R(i=e)||"function"==typeof i?.[Symbol.iterator]?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==X&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(I.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,s="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=J.createElement(Q(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(t);else{let e=new et(s,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Z.get(e.strings);return void 0===t&&Z.set(e.strings,t=new J(e)),t}k(e){R(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,s=0;for(let n of e)s===t.length?t.push(i=new ei(this.O(B()),this.O(B()),this,this.options)):i=t[s],i._$AI(n),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class es{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,n){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}_$AI(e,t=this,i,s){let n=this.strings,o=!1;if(void 0===n)(o=!D(e=ee(this,e,t,0))||e!==this._$AH&&e!==G)&&(this._$AH=e);else{let s,r,a=e;for(e=n[0],s=0;s<n.length-1;s++)(r=ee(this,a[i+s],t,s))===G&&(r=this._$AH[s]),o||=!D(r)||r!==this._$AH[s],r===X?e=X:e!==X&&(e+=(r??"")+n[s+1]),this._$AH[s]=r}o&&!s&&this.j(e)}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class en extends es{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===X?void 0:e}}class eo extends es{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==X)}}class er extends es{constructor(e,t,i,s,n){super(e,t,i,s,n),this.type=5}_$AI(e,t=this){if((e=ee(this,e,t,0)??X)===G)return;let i=this._$AH,s=e===X&&i!==X||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==X&&(i===X||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ea{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ee(this,e)}}let el=O.litHtmlPolyfillSupport;el?.(J,ei),(O.litHtmlVersions??=[]).push("3.3.1");let ed=(e,t,i)=>{let s=i?.renderBefore??t,n=s._$litPart$;if(void 0===n){let e=i?.renderBefore??null;s._$litPart$=n=new ei(t.insertBefore(B(),e),e,void 0,i??{})}return n._$AI(e),n},eh=globalThis;class ec extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ed(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ec._$litElement$=!0,ec.finalized=!0,eh.litElementHydrateSupport?.({LitElement:ec});let eu=eh.litElementPolyfillSupport;eu?.({LitElement:ec}),(eh.litElementVersions??=[]).push("4.2.1");var ep,e_,ev,em,eg=i(487);let ef=e=>(t,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},eb={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:A};function ey(e){return(t,i)=>{let s;return"object"==typeof i?((e=eb,t,i)=>{let{kind:s,metadata:n}=i,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===s&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),"accessor"===s){let{name:s}=i;return{set(i){let n=t.get.call(this);t.set.call(this,i),this.requestUpdate(s,n,e)},init(t){return void 0!==t&&this.C(s,void 0,e,t),t}}}if("setter"===s){let{name:s}=i;return function(i){let n=this[s];t.call(this,i),this.requestUpdate(s,n,e)}}throw Error("Unsupported decorator location: "+s)})(e,t,i):(s=t.hasOwnProperty(i),t.constructor.createProperty(i,e),s?Object.getOwnPropertyDescriptor(t,i):void 0)}}let ew=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function ex(t){return(i,s)=>ew(i,s,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function eC(e){return(t,i)=>{let{slot:s,selector:n}=e??{},o="slot"+(s?`[name=${s}]`:":not([name])");return ew(t,i,{get(){let t=this.renderRoot?.querySelector(o),i=t?.assignedElements(e)??[];return void 0===n?i:i.filter(e=>e.matches(n))}})}}function*eE(e,t){if(void 0!==e){let i=0;for(let s of e)yield t(s,i++)}}var eA=i(954);function ek(e,t,i=[]){console.debug(`Moving nodes '${e.map(e=>e.label).join(", ")}' into group '${null==t?void 0:t.label}'. Tree nodes are`,t);let s=function i(s){return s.map(s=>{if(e.some(e=>s.id===e.id))return console.debug("Removed the node from original position."),null;let n=Object.assign({},s);return n.children&&(n.children=i(n.children).filter(e=>null!==e)),t&&s.id===(null==t?void 0:t.id)&&e.forEach(e=>{n.children=n.children?[...n.children,e]:[e]}),n}).filter(e=>null!==e)}(i);return t||s.push(...e),s}(ep=ev||(ev={})).LEAF="leaf",ep.SINGLE="single",ep.MULTI="multi",(e_=em||(em={})).A_TO_Z="a_to_z",e_.Z_TO_A="z_to_a";class eS extends CustomEvent{constructor(e){super(eS.NAME,{bubbles:!0,composed:!0,detail:e})}}eS.NAME="or-tree-select";class eO extends CustomEvent{constructor(e,t,i=[]){super(eO.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{nodes:e,groupNode:t,newNodes:i}})}}eO.NAME="or-tree-drag",window.Vaadin||={},window.Vaadin.featureFlags||={};let e$={};function eT(e,t="25.3.5"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||e$[t]){if(e$[t])return void e$[t].add(e)}else{e$[t]=new Set,e$[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===e$[t].size,set(e){e&&e$[t].size>0&&(e$[t].forEach(e=>{customElements.define(e.is,e)}),e$[t].clear())}});return}}let i=customElements.get(e.is);if(i){let t=i.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let eM=[];function eN(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function eP(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=eP();eM.forEach(t=>{eN(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let eL=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),eN(this,eP(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"dir"!==e)return;let s=eP(),n=i===s&&-1===eM.indexOf(this),o=!i&&t&&-1===eM.indexOf(this),r=i!==s&&t===s;n||o?(this.__subscribe(),eN(this,s,i)):r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=eM.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){("dir"!==i||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){eM.includes(this)||eM.push(this)}__unsubscribe(){eM.includes(this)&&eM.splice(eM.indexOf(this),1)}},eI=new WeakMap;function eB(e){return t=>{if(function(e,t){let i=t;for(;i;){if(eI.get(i)===e)return!0;i=Object.getPrototypeOf(i)}return!1}(e,t))return t;let i=e(t);return eI.set(i,e),i}}let eD={},eR=/([A-Z])/gu;function eF(e){return eD[e]||(eD[e]=e.replace(eR,"-$1").toLowerCase()),eD[e]}function ej(e){return e[0].toUpperCase()+e.substring(1)}function eU(e){let[t,i]=e.split("(");return{method:t,observerProps:i.replace(")","").split(",").map(e=>e.trim())}}function ez(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let eH=eB(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ez(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:i,observerProps:s}=eU(t);e.set(i,s)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,i){let s=super.getPropertyDescriptor(e,t,i),n=s;if(this.getOrCreateMap("__propKeys").set(e,t),i.sync&&(n={get:s.get,set(s){let n=this[e];A(s,n)&&(this[t]=s,this.requestUpdate(e,n,i),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),i.readOnly){let t=n.set;this.addCheckedInitializer(i=>{i[`_set${ej(e)}`]=function(e){t.call(i,e)}}),n={get:n.get,set(){},configurable:!0,enumerable:!0}}if("value"in i&&this.addCheckedInitializer(t=>{let s="function"==typeof i.value?i.value.call(t):i.value;i.readOnly?t[`_set${ej(e)}`](s):t[e]=s}),i.observer){let t=i.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(i.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(i.computed){let t=`__assignComputed${e}`,s=eU(i.computed);this.prototype[t]=function(...t){this[e]=this[s.method](...t)},this.getOrCreateMap("__computedObservers").set(t,s.observerProps)}return i.attribute||(i.attribute=eF(e)),n}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let i=this.constructor.__propKeys.get(e),s=this[i];this[i]=t,this.requestUpdate(e,s)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ez(this,"__dynamicMethodObservers"),{method:i,observerProps:s}=eU(e);t.set(i,s)}_createPropertyObserver(e,t){ez(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,i)=>{t.some(t=>e.has(t))&&(this[i]?this[i](...t.map(e=>this[e])):console.warn(`observer method ${i} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,i)=>{e.has(t)&&this[i]&&this[i](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,i)=>{let s=t.get(i);void 0!==s&&this[s]&&this[s](this[i],e)})}__runNotifyProps(e,t){e.forEach((e,i)=>{t.has(i)&&this.dispatchEvent(new CustomEvent(`${eF(i)}-changed`,{detail:{value:this[i]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,i){let s,n;n=(s=e.split(".")).pop(),s.reduce((e,t)=>e[t],i)[n]=t}}),eV=0,eK=0,eW=[],eq=!1,eG={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},eX={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},eZ={run(e){eq||(eq=!0,queueMicrotask(()=>(function(){eq=!1;let e=eW.length;for(let t=0;t<e;t++){let e=eW[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}eW.splice(0,e),eK+=e})())),eW.push(e);let t=eV;return eV+=1,t},cancel(e){let t=e-eK;if(t>=0){if(!eW[t])throw Error(`invalid async handle: ${e}`);eW[t]=null}}},eY="string"==typeof document.head.style.touchAction,eQ="__polymerGestures",eJ="__polymerGesturesHandled",e0="__polymerGesturesTouchAction",e1=["mousedown","mousemove","mouseup","click"],e2=[0,1,4,2],e5=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function e4(e){return e1.indexOf(e)>-1}try{let e=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}let e8=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),e7={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function e3(e){let t=e.type;if(!e4(t))return!1;if("mousemove"===t){let t=e.buttons??1;return e instanceof window.MouseEvent&&!e5&&(t=e2[e.which]||0),!!(1&t)}return 0===(e.button??0)}let e6={x:0,y:0,id:-1,scrollDecided:!1};function e9(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function te(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}let tt=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],ti={},ts=[];function tn(e,t){let i=document.elementFromPoint(e,t),s=i;for(;s?.shadowRoot&&!window.ShadyDOM&&s!==(s=s.shadowRoot.elementFromPoint(e,t));)s&&(i=s);return i}function to(e){let t=tt(e);return t.length>0?t[0]:e.target}function tr(e){let t=e.type,i=e.currentTarget[eQ];if(!i)return;let s=i[t];if(!s)return;if(!e[eJ]&&(e[eJ]={},t.startsWith("touch"))){let i=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(e6.id=i.identifier),e6.id!==i.identifier)return;eY||"touchstart"!==t&&"touchmove"!==t||function(e){let t=e.changedTouches[0],i=e.type;if("touchstart"===i)e6.x=t.clientX,e6.y=t.clientY,e6.scrollDecided=!1;else if("touchmove"===i){if(e6.scrollDecided)return;e6.scrollDecided=!0;let i=function(e){let t="auto",i=tt(e);for(let e=0,s;e<i.length;e++)if((s=i[e])[e0]){t=s[e0];break}return t}(e),s=!1,n=Math.abs(e6.x-t.clientX),o=Math.abs(e6.y-t.clientY);e.cancelable&&("none"===i?s=!0:"pan-x"===i?s=o>n:"pan-y"===i&&(s=n>o)),s?e.preventDefault():th("track")}}(e)}let n=e[eJ];if(!n.skip){for(let t=0,i;t<ts.length;t++)s[(i=ts[t]).name]&&!n[i.name]&&i.flow&&i.flow.start.indexOf(e.type)>-1&&i.reset&&i.reset();for(let i=0,o;i<ts.length;i++)s[(o=ts[i]).name]&&!n[o.name]&&(n[o.name]=!0,o[t](e))}}function ta(e,t,i){return!!ti[t]&&(function(e,t,i){var s,n;let o=ti[t],r=o.deps,a=o.name,l=e[eQ];l||(e[eQ]=l={});for(let t=0,i,s;t<r.length;t++)i=r[t],e8&&e4(i)&&"click"!==i||((s=l[i])||(l[i]=s={_count:0}),0===s._count&&e.addEventListener(i,tr,void e4(i)),s[a]=(s[a]||0)+1,s._count=(s._count||0)+1);e.addEventListener(t,i),o.touchAction&&(s=e,n=o.touchAction,eY&&s instanceof HTMLElement&&eZ.run(()=>{s.style.touchAction=n}),s[e0]=n)}(e,t,i),!0)}function tl(e){ts.push(e),e.emits.forEach(t=>{ti[t]=e})}function td(e,t,i){let s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=i,e.dispatchEvent(s),s.defaultPrevented){let e=i.preventer||i.sourceEvent;e?.preventDefault&&e.preventDefault()}}function th(e){let t=function(e){for(let t=0,i;t<ts.length;t++){i=ts[t];for(let t=0;t<i.emits.length;t++)if(i.emits[t]===e)return i}return null}(e);t.info&&(t.info.prevent=!0)}function tc(e,t,i,s){t&&td(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent:e=>th(e)})}function tu(e,t,i){if(e.prevent)return!1;if(e.started)return!0;let s=Math.abs(e.x-t),n=Math.abs(e.y-i);return s>=5||n>=5}function tp(e,t,i){if(!t)return;let s=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1],o=n.x-e.x,r=n.y-e.y,a,l=0;s&&(a=n.x-s.x,l=n.y-s.y),td(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:o,dy:r,ddx:a,ddy:l,sourceEvent:i,hover:()=>tn(i.clientX,i.clientY)})}function t_(e,t,i){let s=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),o=to(i||t);!(!o||e7[o.localName]&&o.hasAttribute("disabled"))&&(isNaN(s)||isNaN(n)||s<=25&&n<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=to(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let i=t.getBoundingClientRect(),s=e.pageX,n=e.pageY;return!(s>=i.left&&s<=i.right&&n>=i.top&&n<=i.bottom)}return!1}(t))&&!e.prevent&&td(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}function tv(e,t,i){i?e.setAttribute(t,i):e.removeAttribute(t)}tl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this;e9(this.info,e=>{e3(e)||(tc("up",t,e),te(i.info))},e=>{e3(e)&&tc("up",t,e),te(i.info)}),tc("down",t,e)},touchstart(e){tc("down",to(e),e.changedTouches[0],e)},touchend(e){tc("up",to(e),e.changedTouches[0],e)}}),tl({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this,s=e=>{let s=e.clientX,n=e.clientY;tu(i.info,s,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&th("tap"),i.info.addMove({x:s,y:n}),e3(e)||(i.info.state="end",te(i.info)),t&&tp(i.info,t,e),i.info.started=!0)};e9(this.info,s,e=>{i.info.started&&s(e),te(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){let t=to(e),i=e.changedTouches[0],s=i.clientX,n=i.clientY;tu(this.info,s,n)&&("start"===this.info.state&&th("tap"),this.info.addMove({x:s,y:n}),tp(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend(e){let t=to(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),tp(this.info,t,i))}}),tl({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(e){e3(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){e3(e)&&t_(this.info,e)},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){t_(this.info,e.changedTouches[0],e)}});let tm=eB(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){tv(this,"aria-disabled",e)}click(){this.disabled||super.click()}}),tg=eB(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}),tf=e=>class extends tm(tg(e)){get _activeKeys(){return[" "]}ready(){super.ready(),ta(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ta(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}},tb=!1;function ty(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function tw(e){let t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;let i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}function tx(e){return e.checkVisibility?!e.checkVisibility({visibilityProperty:!0}):null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||tw(e)}function tC(e){return e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function tE(e){return e.getRootNode().activeElement===e}function tA(e){let t=[];return!function e(t,i){if(t.nodeType!==Node.ELEMENT_NODE||tw(t))return!1;let s=tC(t)?Number(t.getAttribute("tabindex")||0):-1,n=s>0;return s>=0&&i.push(t),[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{n=e(t,i)||n}),n}(e,t)?t:function e(t){let i=t.length;if(i<2)return t;let s=Math.ceil(i/2),n=e(t.slice(0,s)),o=e(t.slice(s)),r=[];for(;n.length>0&&o.length>0;)!function(e,t){let i=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return 0===i||0===s?s>i:i>s}(n[0],o[0])?r.push(n.shift()):r.push(o.shift());return r.concat(n,o)}(t)}window.addEventListener("keydown",()=>{tb=!0},{capture:!0}),window.addEventListener("mousedown",()=>{tb=!1},{capture:!0});let tk=eB(e=>class extends e{get _keyboardActive(){return tb}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(e){super.focus(e),e?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),tS=e=>class extends tf(tk(e)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged",sync:!0},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value??this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();let e=this.getAttribute("value");null!==e&&(this.value=e),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-item-disabled-pointer-events","auto")}focus(e){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(e)}_shouldSetActive(e){return!this.disabled&&!("keydown"===e.type&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.__shouldAllowFocusWhenDisabled()||this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}__shouldAllowFocusWhenDisabled(){return!1}};function tO(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class t$ extends EventTarget{#e;#t=new Set;#i;#s=!1;constructor(e){super(),this.#e=e,this.#i=new CSSStyleSheet}#n(e){let{propertyName:t}=e;this.#t.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#t.has(e)||(this.#t.add(e),this.#i.replaceSync(`
|
|
3
3
|
:root::before, :host::before {
|
|
4
4
|
content: '' !important;
|
|
5
5
|
position: absolute !important;
|
package/build/dist/umd/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var ORTreeMenu;(()=>{"use strict";var e={954(e){e.exports=__rspack_external__954},487(e){e.exports=__rspack_external__487},673(e){e.exports=__rspack_external__673}},t={};function i(s){var n=t[s];if(void 0!==n)return n.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}i.d=(e,t,s)=>{var n=(t,s)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[s]:t[n]})};n(t,"get"),n(s,"value")},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{let e,t,n;i.r(s),i.d(s,{OrTreeDragEvent:()=>eO,OrTreeGroup:()=>i5,OrTreeMenu:()=>i9,OrTreeNode:()=>i7,OrTreeSelectEvent:()=>eS,TreeMenuSelection:()=>ev,TreeMenuSorting:()=>em});let o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),l=new WeakMap;class d{constructor(e,t,i){if(this._$cssResult$=!0,i!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(r&&void 0===e){let i=void 0!==t&&1===t.length;i&&(e=l.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(t,e))}return e}toString(){return this.cssText}}let h=e=>new d("string"==typeof e?e:e+"",void 0,a),c=(e,...t)=>new d(1===e.length?e[0]:t.reduce((t,i,s)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[s+1],e[0]),e,a),u=(e,t)=>{if(r)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let i of t){let t=document.createElement("style"),s=o.litNonce;void 0!==s&&t.setAttribute("nonce",s),t.textContent=i.cssText,e.appendChild(t)}},p=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return h(t)})(e):e,{is:_,defineProperty:v,getOwnPropertyDescriptor:m,getOwnPropertyNames:g,getOwnPropertySymbols:f,getPrototypeOf:b}=Object,y=globalThis,w=y.trustedTypes,x=w?w.emptyScript:"",C=y.reactiveElementPolyfillSupport,E={toAttribute(e,t){switch(t){case Boolean:e=e?x:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},A=(e,t)=>!_(e,t),k={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:A};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(e,i,t);void 0!==s&&v(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){let{get:s,set:n}=m(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:s,set(t){let o=s?.call(this);n?.call(this,t),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=b(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...g(e),...f(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,i]of t)this.elementProperties.set(e,i)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let i of new Set(e.flat(1/0).reverse()))t.unshift(p(i));else void 0!==e&&t.push(p(e));return t}static _$Eu(e,t){let i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(void 0!==s&&!0===i.reflect){let n=(void 0!==i.converter?.toAttribute?i.converter:E).toAttribute(t,i.type);this._$Em=e,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){let i=this.constructor,s=i._$Eh.get(e);if(void 0!==s&&this._$Em!==s){let e=i.getPropertyOptions(s),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:E;this._$Em=s;let o=n.fromAttribute(t,e.type);this[s]=o??this._$Ej?.get(s)??o,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){let s=this.constructor,n=this[e];if(!(((i??=s.getPropertyOptions(e)).hasChanged??A)(n,t)||i.useDefault&&i.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:s,wrapped:n},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==n||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,i]of e){let{wrapped:e}=i,s=this[t];!0!==e||this._$AL.has(t)||void 0===s||this.C(t,void 0,i,s)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S.elementProperties=new Map,S.finalized=new Map,C?.({ReactiveElement:S}),(y.reactiveElementVersions??=[]).push("2.1.1");let O=globalThis,$=O.trustedTypes,T=$?$.createPolicy("lit-html",{createHTML:e=>e}):void 0,M="$lit$",N=`lit$${Math.random().toFixed(9).slice(2)}$`,P="?"+N,L=`<${P}>`,I=document,B=()=>I.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,R=Array.isArray,F="[ \n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,z=/>/g,H=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^
|
|
2
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,K=/"/g,W=/^(?:script|style|textarea|title)$/i,q=(e,...t)=>({_$litType$:1,strings:e,values:t}),G=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Z=new WeakMap,Y=I.createTreeWalker(I,129);function Q(e,t){if(!R(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(t):t}class J{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let n=0,o=0;const r=e.length-1,a=this.parts,[l,d]=((e,t)=>{let i=e.length-1,s=[],n,o=2===t?"<svg>":3===t?"<math>":"",r=j;for(let t=0;t<i;t++){let i=e[t],a,l,d=-1,h=0;for(;h<i.length&&(r.lastIndex=h,null!==(l=r.exec(i)));)h=r.lastIndex,r===j?"!--"===l[1]?r=U:void 0!==l[1]?r=z:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=H):void 0!==l[3]&&(r=H):r===H?">"===l[0]?(r=n??j,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?H:'"'===l[3]?K:V):r===K||r===V?r=H:r===U||r===z?r=j:(r=H,n=void 0);let c=r===H&&e[t+1].startsWith("/>")?" ":"";o+=r===j?i+L:d>=0?(s.push(a),i.slice(0,d)+M+i.slice(d)+N+c):i+N+(-2===d?t:c)}return[Q(e,o+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),s]})(e,t);if(this.el=J.createElement(l,i),Y.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(s=Y.nextNode())&&a.length<r;){if(1===s.nodeType){if(s.hasAttributes())for(const e of s.getAttributeNames())if(e.endsWith(M)){const t=d[o++],i=s.getAttribute(e).split(N),r=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?en:"?"===r[1]?eo:"@"===r[1]?er:es}),s.removeAttribute(e)}else e.startsWith(N)&&(a.push({type:6,index:n}),s.removeAttribute(e));if(W.test(s.tagName)){const e=s.textContent.split(N),t=e.length-1;if(t>0){s.textContent=$?$.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],B()),Y.nextNode(),a.push({type:2,index:++n});s.append(e[t],B())}}}else if(8===s.nodeType)if(s.data===P)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(N,e+1));)a.push({type:7,index:n}),e+=N.length-1}n++}}static createElement(e,t){let i=I.createElement("template");return i.innerHTML=e,i}}function ee(e,t,i=e,s){if(t===G)return t;let n=void 0!==s?i._$Co?.[s]:i._$Cl,o=D(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e))._$AT(e,i,s),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(t=ee(e,n._$AS(e,t.values),n,s)),t}class et{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,s=(e?.creationScope??I).importNode(t,!0);Y.currentNode=s;let n=Y.nextNode(),o=0,r=0,a=i[0];for(;void 0!==a;){if(o===a.index){let t;2===a.type?t=new ei(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ea(n,this,e)),this._$AV.push(t),a=i[++r]}o!==a?.index&&(n=Y.nextNode(),o++)}return Y.currentNode=I,s}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class ei{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,s){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){let i;D(e=ee(this,e,t))?e===X||null==e||""===e?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==G&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):R(i=e)||"function"==typeof i?.[Symbol.iterator]?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==X&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(I.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,s="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=J.createElement(Q(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(t);else{let e=new et(s,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Z.get(e.strings);return void 0===t&&Z.set(e.strings,t=new J(e)),t}k(e){R(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,s=0;for(let n of e)s===t.length?t.push(i=new ei(this.O(B()),this.O(B()),this,this.options)):i=t[s],i._$AI(n),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class es{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,n){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}_$AI(e,t=this,i,s){let n=this.strings,o=!1;if(void 0===n)(o=!D(e=ee(this,e,t,0))||e!==this._$AH&&e!==G)&&(this._$AH=e);else{let s,r,a=e;for(e=n[0],s=0;s<n.length-1;s++)(r=ee(this,a[i+s],t,s))===G&&(r=this._$AH[s]),o||=!D(r)||r!==this._$AH[s],r===X?e=X:e!==X&&(e+=(r??"")+n[s+1]),this._$AH[s]=r}o&&!s&&this.j(e)}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class en extends es{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===X?void 0:e}}class eo extends es{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==X)}}class er extends es{constructor(e,t,i,s,n){super(e,t,i,s,n),this.type=5}_$AI(e,t=this){if((e=ee(this,e,t,0)??X)===G)return;let i=this._$AH,s=e===X&&i!==X||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==X&&(i===X||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ea{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ee(this,e)}}let el=O.litHtmlPolyfillSupport;el?.(J,ei),(O.litHtmlVersions??=[]).push("3.3.1");let ed=(e,t,i)=>{let s=i?.renderBefore??t,n=s._$litPart$;if(void 0===n){let e=i?.renderBefore??null;s._$litPart$=n=new ei(t.insertBefore(B(),e),e,void 0,i??{})}return n._$AI(e),n},eh=globalThis;class ec extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ed(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ec._$litElement$=!0,ec.finalized=!0,eh.litElementHydrateSupport?.({LitElement:ec});let eu=eh.litElementPolyfillSupport;eu?.({LitElement:ec}),(eh.litElementVersions??=[]).push("4.2.1");var ep,e_,ev,em,eg=i(487);let ef=e=>(t,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},eb={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:A};function ey(e){return(t,i)=>{let s;return"object"==typeof i?((e=eb,t,i)=>{let{kind:s,metadata:n}=i,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===s&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),"accessor"===s){let{name:s}=i;return{set(i){let n=t.get.call(this);t.set.call(this,i),this.requestUpdate(s,n,e)},init(t){return void 0!==t&&this.C(s,void 0,e,t),t}}}if("setter"===s){let{name:s}=i;return function(i){let n=this[s];t.call(this,i),this.requestUpdate(s,n,e)}}throw Error("Unsupported decorator location: "+s)})(e,t,i):(s=t.hasOwnProperty(i),t.constructor.createProperty(i,e),s?Object.getOwnPropertyDescriptor(t,i):void 0)}}let ew=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function ex(t){return(i,s)=>ew(i,s,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function eC(e){return(t,i)=>{let{slot:s,selector:n}=e??{},o="slot"+(s?`[name=${s}]`:":not([name])");return ew(t,i,{get(){let t=this.renderRoot?.querySelector(o),i=t?.assignedElements(e)??[];return void 0===n?i:i.filter(e=>e.matches(n))}})}}function*eE(e,t){if(void 0!==e){let i=0;for(let s of e)yield t(s,i++)}}var eA=i(954);function ek(e,t,i=[]){console.debug(`Moving nodes '${e.map(e=>e.label).join(", ")}' into group '${null==t?void 0:t.label}'. Tree nodes are`,t);let s=function i(s){return s.map(s=>{if(e.some(e=>s.id===e.id))return console.debug("Removed the node from original position."),null;let n=Object.assign({},s);return n.children&&(n.children=i(n.children).filter(e=>null!==e)),t&&s.id===(null==t?void 0:t.id)&&e.forEach(e=>{n.children=n.children?[...n.children,e]:[e]}),n}).filter(e=>null!==e)}(i);return t||s.push(...e),s}(ep=ev||(ev={})).LEAF="leaf",ep.SINGLE="single",ep.MULTI="multi",(e_=em||(em={})).A_TO_Z="a_to_z",e_.Z_TO_A="z_to_a";class eS extends CustomEvent{constructor(e){super(eS.NAME,{bubbles:!0,composed:!0,detail:e})}}eS.NAME="or-tree-select";class eO extends CustomEvent{constructor(e,t,i=[]){super(eO.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{nodes:e,groupNode:t,newNodes:i}})}}eO.NAME="or-tree-drag",window.Vaadin||={},window.Vaadin.featureFlags||={};let e$={};function eT(e,t="25.3.4"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||e$[t]){if(e$[t])return void e$[t].add(e)}else{e$[t]=new Set,e$[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===e$[t].size,set(e){e&&e$[t].size>0&&(e$[t].forEach(e=>{customElements.define(e.is,e)}),e$[t].clear())}});return}}let i=customElements.get(e.is);if(i){let t=i.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let eM=[];function eN(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function eP(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=eP();eM.forEach(t=>{eN(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let eL=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),eN(this,eP(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"dir"!==e)return;let s=eP(),n=i===s&&-1===eM.indexOf(this),o=!i&&t&&-1===eM.indexOf(this),r=i!==s&&t===s;n||o?(this.__subscribe(),eN(this,s,i)):r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=eM.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){("dir"!==i||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){eM.includes(this)||eM.push(this)}__unsubscribe(){eM.includes(this)&&eM.splice(eM.indexOf(this),1)}},eI=new WeakMap;function eB(e){return t=>{if(function(e,t){let i=t;for(;i;){if(eI.get(i)===e)return!0;i=Object.getPrototypeOf(i)}return!1}(e,t))return t;let i=e(t);return eI.set(i,e),i}}let eD={},eR=/([A-Z])/gu;function eF(e){return eD[e]||(eD[e]=e.replace(eR,"-$1").toLowerCase()),eD[e]}function ej(e){return e[0].toUpperCase()+e.substring(1)}function eU(e){let[t,i]=e.split("(");return{method:t,observerProps:i.replace(")","").split(",").map(e=>e.trim())}}function ez(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let eH=eB(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ez(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:i,observerProps:s}=eU(t);e.set(i,s)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,i){let s=super.getPropertyDescriptor(e,t,i),n=s;if(this.getOrCreateMap("__propKeys").set(e,t),i.sync&&(n={get:s.get,set(s){let n=this[e];A(s,n)&&(this[t]=s,this.requestUpdate(e,n,i),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),i.readOnly){let t=n.set;this.addCheckedInitializer(i=>{i[`_set${ej(e)}`]=function(e){t.call(i,e)}}),n={get:n.get,set(){},configurable:!0,enumerable:!0}}if("value"in i&&this.addCheckedInitializer(t=>{let s="function"==typeof i.value?i.value.call(t):i.value;i.readOnly?t[`_set${ej(e)}`](s):t[e]=s}),i.observer){let t=i.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(i.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(i.computed){let t=`__assignComputed${e}`,s=eU(i.computed);this.prototype[t]=function(...t){this[e]=this[s.method](...t)},this.getOrCreateMap("__computedObservers").set(t,s.observerProps)}return i.attribute||(i.attribute=eF(e)),n}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let i=this.constructor.__propKeys.get(e),s=this[i];this[i]=t,this.requestUpdate(e,s)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ez(this,"__dynamicMethodObservers"),{method:i,observerProps:s}=eU(e);t.set(i,s)}_createPropertyObserver(e,t){ez(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,i)=>{t.some(t=>e.has(t))&&(this[i]?this[i](...t.map(e=>this[e])):console.warn(`observer method ${i} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,i)=>{e.has(t)&&this[i]&&this[i](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,i)=>{let s=t.get(i);void 0!==s&&this[s]&&this[s](this[i],e)})}__runNotifyProps(e,t){e.forEach((e,i)=>{t.has(i)&&this.dispatchEvent(new CustomEvent(`${eF(i)}-changed`,{detail:{value:this[i]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,i){let s,n;n=(s=e.split(".")).pop(),s.reduce((e,t)=>e[t],i)[n]=t}}),eV=0,eK=0,eW=[],eq=!1,eG={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},eX={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},eZ={run(e){eq||(eq=!0,queueMicrotask(()=>(function(){eq=!1;let e=eW.length;for(let t=0;t<e;t++){let e=eW[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}eW.splice(0,e),eK+=e})())),eW.push(e);let t=eV;return eV+=1,t},cancel(e){let t=e-eK;if(t>=0){if(!eW[t])throw Error(`invalid async handle: ${e}`);eW[t]=null}}},eY="string"==typeof document.head.style.touchAction,eQ="__polymerGestures",eJ="__polymerGesturesHandled",e0="__polymerGesturesTouchAction",e1=["mousedown","mousemove","mouseup","click"],e2=[0,1,4,2],e5=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function e4(e){return e1.indexOf(e)>-1}try{let e=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}let e8=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),e7={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function e3(e){let t=e.type;if(!e4(t))return!1;if("mousemove"===t){let t=e.buttons??1;return e instanceof window.MouseEvent&&!e5&&(t=e2[e.which]||0),!!(1&t)}return 0===(e.button??0)}let e6={x:0,y:0,id:-1,scrollDecided:!1};function e9(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function te(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}let tt=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],ti={},ts=[];function tn(e,t){let i=document.elementFromPoint(e,t),s=i;for(;s?.shadowRoot&&!window.ShadyDOM&&s!==(s=s.shadowRoot.elementFromPoint(e,t));)s&&(i=s);return i}function to(e){let t=tt(e);return t.length>0?t[0]:e.target}function tr(e){let t=e.type,i=e.currentTarget[eQ];if(!i)return;let s=i[t];if(!s)return;if(!e[eJ]&&(e[eJ]={},t.startsWith("touch"))){let i=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(e6.id=i.identifier),e6.id!==i.identifier)return;eY||"touchstart"!==t&&"touchmove"!==t||function(e){let t=e.changedTouches[0],i=e.type;if("touchstart"===i)e6.x=t.clientX,e6.y=t.clientY,e6.scrollDecided=!1;else if("touchmove"===i){if(e6.scrollDecided)return;e6.scrollDecided=!0;let i=function(e){let t="auto",i=tt(e);for(let e=0,s;e<i.length;e++)if((s=i[e])[e0]){t=s[e0];break}return t}(e),s=!1,n=Math.abs(e6.x-t.clientX),o=Math.abs(e6.y-t.clientY);e.cancelable&&("none"===i?s=!0:"pan-x"===i?s=o>n:"pan-y"===i&&(s=n>o)),s?e.preventDefault():th("track")}}(e)}let n=e[eJ];if(!n.skip){for(let t=0,i;t<ts.length;t++)s[(i=ts[t]).name]&&!n[i.name]&&i.flow&&i.flow.start.indexOf(e.type)>-1&&i.reset&&i.reset();for(let i=0,o;i<ts.length;i++)s[(o=ts[i]).name]&&!n[o.name]&&(n[o.name]=!0,o[t](e))}}function ta(e,t,i){return!!ti[t]&&(function(e,t,i){var s,n;let o=ti[t],r=o.deps,a=o.name,l=e[eQ];l||(e[eQ]=l={});for(let t=0,i,s;t<r.length;t++)i=r[t],e8&&e4(i)&&"click"!==i||((s=l[i])||(l[i]=s={_count:0}),0===s._count&&e.addEventListener(i,tr,void e4(i)),s[a]=(s[a]||0)+1,s._count=(s._count||0)+1);e.addEventListener(t,i),o.touchAction&&(s=e,n=o.touchAction,eY&&s instanceof HTMLElement&&eZ.run(()=>{s.style.touchAction=n}),s[e0]=n)}(e,t,i),!0)}function tl(e){ts.push(e),e.emits.forEach(t=>{ti[t]=e})}function td(e,t,i){let s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=i,e.dispatchEvent(s),s.defaultPrevented){let e=i.preventer||i.sourceEvent;e?.preventDefault&&e.preventDefault()}}function th(e){let t=function(e){for(let t=0,i;t<ts.length;t++){i=ts[t];for(let t=0;t<i.emits.length;t++)if(i.emits[t]===e)return i}return null}(e);t.info&&(t.info.prevent=!0)}function tc(e,t,i,s){t&&td(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent:e=>th(e)})}function tu(e,t,i){if(e.prevent)return!1;if(e.started)return!0;let s=Math.abs(e.x-t),n=Math.abs(e.y-i);return s>=5||n>=5}function tp(e,t,i){if(!t)return;let s=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1],o=n.x-e.x,r=n.y-e.y,a,l=0;s&&(a=n.x-s.x,l=n.y-s.y),td(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:o,dy:r,ddx:a,ddy:l,sourceEvent:i,hover:()=>tn(i.clientX,i.clientY)})}function t_(e,t,i){let s=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),o=to(i||t);!(!o||e7[o.localName]&&o.hasAttribute("disabled"))&&(isNaN(s)||isNaN(n)||s<=25&&n<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=to(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let i=t.getBoundingClientRect(),s=e.pageX,n=e.pageY;return!(s>=i.left&&s<=i.right&&n>=i.top&&n<=i.bottom)}return!1}(t))&&!e.prevent&&td(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}function tv(e,t,i){i?e.setAttribute(t,i):e.removeAttribute(t)}tl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this;e9(this.info,e=>{e3(e)||(tc("up",t,e),te(i.info))},e=>{e3(e)&&tc("up",t,e),te(i.info)}),tc("down",t,e)},touchstart(e){tc("down",to(e),e.changedTouches[0],e)},touchend(e){tc("up",to(e),e.changedTouches[0],e)}}),tl({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this,s=e=>{let s=e.clientX,n=e.clientY;tu(i.info,s,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&th("tap"),i.info.addMove({x:s,y:n}),e3(e)||(i.info.state="end",te(i.info)),t&&tp(i.info,t,e),i.info.started=!0)};e9(this.info,s,e=>{i.info.started&&s(e),te(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){let t=to(e),i=e.changedTouches[0],s=i.clientX,n=i.clientY;tu(this.info,s,n)&&("start"===this.info.state&&th("tap"),this.info.addMove({x:s,y:n}),tp(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend(e){let t=to(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),tp(this.info,t,i))}}),tl({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(e){e3(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){e3(e)&&t_(this.info,e)},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){t_(this.info,e.changedTouches[0],e)}});let tm=eB(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){tv(this,"aria-disabled",e)}click(){this.disabled||super.click()}}),tg=eB(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}),tf=e=>class extends tm(tg(e)){get _activeKeys(){return[" "]}ready(){super.ready(),ta(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ta(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}},tb=!1;function ty(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function tw(e){let t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;let i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}function tx(e){return e.checkVisibility?!e.checkVisibility({visibilityProperty:!0}):null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||tw(e)}function tC(e){return e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function tE(e){return e.getRootNode().activeElement===e}function tA(e){let t=[];return!function e(t,i){if(t.nodeType!==Node.ELEMENT_NODE||tw(t))return!1;let s=tC(t)?Number(t.getAttribute("tabindex")||0):-1,n=s>0;return s>=0&&i.push(t),[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{n=e(t,i)||n}),n}(e,t)?t:function e(t){let i=t.length;if(i<2)return t;let s=Math.ceil(i/2),n=e(t.slice(0,s)),o=e(t.slice(s)),r=[];for(;n.length>0&&o.length>0;)!function(e,t){let i=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return 0===i||0===s?s>i:i>s}(n[0],o[0])?r.push(n.shift()):r.push(o.shift());return r.concat(n,o)}(t)}window.addEventListener("keydown",()=>{tb=!0},{capture:!0}),window.addEventListener("mousedown",()=>{tb=!1},{capture:!0});let tk=eB(e=>class extends e{get _keyboardActive(){return tb}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(e){super.focus(e),e?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),tS=e=>class extends tf(tk(e)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged",sync:!0},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value??this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();let e=this.getAttribute("value");null!==e&&(this.value=e),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-item-disabled-pointer-events","auto")}focus(e){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(e)}_shouldSetActive(e){return!this.disabled&&!("keydown"===e.type&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.__shouldAllowFocusWhenDisabled()||this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}__shouldAllowFocusWhenDisabled(){return!1}};function tO(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class t$ extends EventTarget{#e;#t=new Set;#i;#s=!1;constructor(e){super(),this.#e=e,this.#i=new CSSStyleSheet}#n(e){let{propertyName:t}=e;this.#t.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#t.has(e)||(this.#t.add(e),this.#i.replaceSync(`
|
|
2
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,K=/"/g,W=/^(?:script|style|textarea|title)$/i,q=(e,...t)=>({_$litType$:1,strings:e,values:t}),G=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Z=new WeakMap,Y=I.createTreeWalker(I,129);function Q(e,t){if(!R(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(t):t}class J{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let n=0,o=0;const r=e.length-1,a=this.parts,[l,d]=((e,t)=>{let i=e.length-1,s=[],n,o=2===t?"<svg>":3===t?"<math>":"",r=j;for(let t=0;t<i;t++){let i=e[t],a,l,d=-1,h=0;for(;h<i.length&&(r.lastIndex=h,null!==(l=r.exec(i)));)h=r.lastIndex,r===j?"!--"===l[1]?r=U:void 0!==l[1]?r=z:void 0!==l[2]?(W.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=H):void 0!==l[3]&&(r=H):r===H?">"===l[0]?(r=n??j,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?H:'"'===l[3]?K:V):r===K||r===V?r=H:r===U||r===z?r=j:(r=H,n=void 0);let c=r===H&&e[t+1].startsWith("/>")?" ":"";o+=r===j?i+L:d>=0?(s.push(a),i.slice(0,d)+M+i.slice(d)+N+c):i+N+(-2===d?t:c)}return[Q(e,o+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),s]})(e,t);if(this.el=J.createElement(l,i),Y.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(s=Y.nextNode())&&a.length<r;){if(1===s.nodeType){if(s.hasAttributes())for(const e of s.getAttributeNames())if(e.endsWith(M)){const t=d[o++],i=s.getAttribute(e).split(N),r=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?en:"?"===r[1]?eo:"@"===r[1]?er:es}),s.removeAttribute(e)}else e.startsWith(N)&&(a.push({type:6,index:n}),s.removeAttribute(e));if(W.test(s.tagName)){const e=s.textContent.split(N),t=e.length-1;if(t>0){s.textContent=$?$.emptyScript:"";for(let i=0;i<t;i++)s.append(e[i],B()),Y.nextNode(),a.push({type:2,index:++n});s.append(e[t],B())}}}else if(8===s.nodeType)if(s.data===P)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=s.data.indexOf(N,e+1));)a.push({type:7,index:n}),e+=N.length-1}n++}}static createElement(e,t){let i=I.createElement("template");return i.innerHTML=e,i}}function ee(e,t,i=e,s){if(t===G)return t;let n=void 0!==s?i._$Co?.[s]:i._$Cl,o=D(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e))._$AT(e,i,s),void 0!==s?(i._$Co??=[])[s]=n:i._$Cl=n),void 0!==n&&(t=ee(e,n._$AS(e,t.values),n,s)),t}class et{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,s=(e?.creationScope??I).importNode(t,!0);Y.currentNode=s;let n=Y.nextNode(),o=0,r=0,a=i[0];for(;void 0!==a;){if(o===a.index){let t;2===a.type?t=new ei(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ea(n,this,e)),this._$AV.push(t),a=i[++r]}o!==a?.index&&(n=Y.nextNode(),o++)}return Y.currentNode=I,s}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class ei{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,s){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){let i;D(e=ee(this,e,t))?e===X||null==e||""===e?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==G&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):R(i=e)||"function"==typeof i?.[Symbol.iterator]?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==X&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(I.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,s="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=J.createElement(Q(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(t);else{let e=new et(s,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Z.get(e.strings);return void 0===t&&Z.set(e.strings,t=new J(e)),t}k(e){R(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,s=0;for(let n of e)s===t.length?t.push(i=new ei(this.O(B()),this.O(B()),this,this.options)):i=t[s],i._$AI(n),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class es{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,s,n){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}_$AI(e,t=this,i,s){let n=this.strings,o=!1;if(void 0===n)(o=!D(e=ee(this,e,t,0))||e!==this._$AH&&e!==G)&&(this._$AH=e);else{let s,r,a=e;for(e=n[0],s=0;s<n.length-1;s++)(r=ee(this,a[i+s],t,s))===G&&(r=this._$AH[s]),o||=!D(r)||r!==this._$AH[s],r===X?e=X:e!==X&&(e+=(r??"")+n[s+1]),this._$AH[s]=r}o&&!s&&this.j(e)}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class en extends es{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===X?void 0:e}}class eo extends es{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==X)}}class er extends es{constructor(e,t,i,s,n){super(e,t,i,s,n),this.type=5}_$AI(e,t=this){if((e=ee(this,e,t,0)??X)===G)return;let i=this._$AH,s=e===X&&i!==X||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==X&&(i===X||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ea{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ee(this,e)}}let el=O.litHtmlPolyfillSupport;el?.(J,ei),(O.litHtmlVersions??=[]).push("3.3.1");let ed=(e,t,i)=>{let s=i?.renderBefore??t,n=s._$litPart$;if(void 0===n){let e=i?.renderBefore??null;s._$litPart$=n=new ei(t.insertBefore(B(),e),e,void 0,i??{})}return n._$AI(e),n},eh=globalThis;class ec extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ed(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ec._$litElement$=!0,ec.finalized=!0,eh.litElementHydrateSupport?.({LitElement:ec});let eu=eh.litElementPolyfillSupport;eu?.({LitElement:ec}),(eh.litElementVersions??=[]).push("4.2.1");var ep,e_,ev,em,eg=i(487);let ef=e=>(t,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},eb={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:A};function ey(e){return(t,i)=>{let s;return"object"==typeof i?((e=eb,t,i)=>{let{kind:s,metadata:n}=i,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===s&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),"accessor"===s){let{name:s}=i;return{set(i){let n=t.get.call(this);t.set.call(this,i),this.requestUpdate(s,n,e)},init(t){return void 0!==t&&this.C(s,void 0,e,t),t}}}if("setter"===s){let{name:s}=i;return function(i){let n=this[s];t.call(this,i),this.requestUpdate(s,n,e)}}throw Error("Unsupported decorator location: "+s)})(e,t,i):(s=t.hasOwnProperty(i),t.constructor.createProperty(i,e),s?Object.getOwnPropertyDescriptor(t,i):void 0)}}let ew=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function ex(t){return(i,s)=>ew(i,s,{get(){return(this.renderRoot??(e??=document.createDocumentFragment())).querySelectorAll(t)}})}function eC(e){return(t,i)=>{let{slot:s,selector:n}=e??{},o="slot"+(s?`[name=${s}]`:":not([name])");return ew(t,i,{get(){let t=this.renderRoot?.querySelector(o),i=t?.assignedElements(e)??[];return void 0===n?i:i.filter(e=>e.matches(n))}})}}function*eE(e,t){if(void 0!==e){let i=0;for(let s of e)yield t(s,i++)}}var eA=i(954);function ek(e,t,i=[]){console.debug(`Moving nodes '${e.map(e=>e.label).join(", ")}' into group '${null==t?void 0:t.label}'. Tree nodes are`,t);let s=function i(s){return s.map(s=>{if(e.some(e=>s.id===e.id))return console.debug("Removed the node from original position."),null;let n=Object.assign({},s);return n.children&&(n.children=i(n.children).filter(e=>null!==e)),t&&s.id===(null==t?void 0:t.id)&&e.forEach(e=>{n.children=n.children?[...n.children,e]:[e]}),n}).filter(e=>null!==e)}(i);return t||s.push(...e),s}(ep=ev||(ev={})).LEAF="leaf",ep.SINGLE="single",ep.MULTI="multi",(e_=em||(em={})).A_TO_Z="a_to_z",e_.Z_TO_A="z_to_a";class eS extends CustomEvent{constructor(e){super(eS.NAME,{bubbles:!0,composed:!0,detail:e})}}eS.NAME="or-tree-select";class eO extends CustomEvent{constructor(e,t,i=[]){super(eO.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{nodes:e,groupNode:t,newNodes:i}})}}eO.NAME="or-tree-drag",window.Vaadin||={},window.Vaadin.featureFlags||={};let e$={};function eT(e,t="25.3.5"){if(Object.defineProperty(e,"version",{get:()=>t}),e.experimental){let t="string"==typeof e.experimental?e.experimental:`${e.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,e=>e[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[t]||e$[t]){if(e$[t])return void e$[t].add(e)}else{e$[t]=new Set,e$[t].add(e),Object.defineProperty(window.Vaadin.featureFlags,t,{get:()=>0===e$[t].size,set(e){e&&e$[t].size>0&&(e$[t].forEach(e=>{customElements.define(e.is,e)}),e$[t].clear())}});return}}let i=customElements.get(e.is);if(i){let t=i.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}let eM=[];function eN(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function eP(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let e=eP();eM.forEach(t=>{eN(t,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let eL=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>""===e?null:e}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),eN(this,eP(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"dir"!==e)return;let s=eP(),n=i===s&&-1===eM.indexOf(this),o=!i&&t&&-1===eM.indexOf(this),r=i!==s&&t===s;n||o?(this.__subscribe(),eN(this,s,i)):r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=eM.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){("dir"!==i||""!==t||e.hasAttribute("dir"))&&super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){"dir"!==e||t?super._attributeToProperty(e,t,i):this.dir=""}__subscribe(){eM.includes(this)||eM.push(this)}__unsubscribe(){eM.includes(this)&&eM.splice(eM.indexOf(this),1)}},eI=new WeakMap;function eB(e){return t=>{if(function(e,t){let i=t;for(;i;){if(eI.get(i)===e)return!0;i=Object.getPrototypeOf(i)}return!1}(e,t))return t;let i=e(t);return eI.set(i,e),i}}let eD={},eR=/([A-Z])/gu;function eF(e){return eD[e]||(eD[e]=e.replace(eR,"-$1").toLowerCase()),eD[e]}function ej(e){return e[0].toUpperCase()+e.substring(1)}function eU(e){let[t,i]=e.split("(");return{method:t,observerProps:i.replace(")","").split(",").map(e=>e.trim())}}function ez(e,t){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=new Map(e[t])),e[t]}let eH=eB(e=>class extends e{static enabledWarnings=[];static createProperty(e,t){[String,Boolean,Number,Array].includes(t)&&(t={type:t}),t?.reflectToAttribute&&(t.reflect=!0),super.createProperty(e,t)}static getOrCreateMap(e){return ez(this,e)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let e=this.getOrCreateMap("__complexObservers");this.observers.forEach(t=>{let{method:i,observerProps:s}=eU(t);e.set(i,s)})}}static addCheckedInitializer(e){super.addInitializer(t=>{t instanceof this&&e(t)})}static getPropertyDescriptor(e,t,i){let s=super.getPropertyDescriptor(e,t,i),n=s;if(this.getOrCreateMap("__propKeys").set(e,t),i.sync&&(n={get:s.get,set(s){let n=this[e];A(s,n)&&(this[t]=s,this.requestUpdate(e,n,i),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),i.readOnly){let t=n.set;this.addCheckedInitializer(i=>{i[`_set${ej(e)}`]=function(e){t.call(i,e)}}),n={get:n.get,set(){},configurable:!0,enumerable:!0}}if("value"in i&&this.addCheckedInitializer(t=>{let s="function"==typeof i.value?i.value.call(t):i.value;i.readOnly?t[`_set${ej(e)}`](s):t[e]=s}),i.observer){let t=i.observer;this.getOrCreateMap("__observers").set(e,t),this.addCheckedInitializer(e=>{e[t]||console.warn(`observer method ${t} not defined`)})}if(i.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let e=this.__notifyProps;this.__notifyProps=new Set(e)}}else this.__notifyProps=new Set;this.__notifyProps.add(e)}if(i.computed){let t=`__assignComputed${e}`,s=eU(i.computed);this.prototype[t]=function(...t){this[e]=this[s.method](...t)},this.getOrCreateMap("__computedObservers").set(t,s.observerProps)}return i.attribute||(i.attribute=eF(e)),n}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:e}=this.constructor;this.hasUpdated||e.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e})}ready(){}willUpdate(e){this.constructor.__computedObservers&&this.__runComplexObservers(e,this.constructor.__computedObservers)}updated(e){let t=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(e,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(e,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(e,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(e,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(e,this.constructor.__notifyProps),t||this.ready()}setProperties(e){Object.entries(e).forEach(([e,t])=>{let i=this.constructor.__propKeys.get(e),s=this[i];this[i]=t,this.requestUpdate(e,s)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(e){let t=ez(this,"__dynamicMethodObservers"),{method:i,observerProps:s}=eU(e);t.set(i,s)}_createPropertyObserver(e,t){ez(this,"__dynamicPropertyObservers").set(t,e)}__runComplexObservers(e,t){t.forEach((t,i)=>{t.some(t=>e.has(t))&&(this[i]?this[i](...t.map(e=>this[e])):console.warn(`observer method ${i} not defined`))})}__runDynamicObservers(e,t){t.forEach((t,i)=>{e.has(t)&&this[i]&&this[i](this[t],e.get(t))})}__runObservers(e,t){e.forEach((e,i)=>{let s=t.get(i);void 0!==s&&this[s]&&this[s](this[i],e)})}__runNotifyProps(e,t){e.forEach((e,i)=>{t.has(i)&&this.dispatchEvent(new CustomEvent(`${eF(i)}-changed`,{detail:{value:this[i]}}))})}_get(e,t){return e.split(".").reduce((e,t)=>e?e[t]:void 0,t)}_set(e,t,i){let s,n;n=(s=e.split(".")).pop(),s.reduce((e,t)=>e[t],i)[n]=t}}),eV=0,eK=0,eW=[],eq=!1,eG={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},eX={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},eZ={run(e){eq||(eq=!0,queueMicrotask(()=>(function(){eq=!1;let e=eW.length;for(let t=0;t<e;t++){let e=eW[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}eW.splice(0,e),eK+=e})())),eW.push(e);let t=eV;return eV+=1,t},cancel(e){let t=e-eK;if(t>=0){if(!eW[t])throw Error(`invalid async handle: ${e}`);eW[t]=null}}},eY="string"==typeof document.head.style.touchAction,eQ="__polymerGestures",eJ="__polymerGesturesHandled",e0="__polymerGesturesTouchAction",e1=["mousedown","mousemove","mouseup","click"],e2=[0,1,4,2],e5=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function e4(e){return e1.indexOf(e)>-1}try{let e=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}let e8=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),e7={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function e3(e){let t=e.type;if(!e4(t))return!1;if("mousemove"===t){let t=e.buttons??1;return e instanceof window.MouseEvent&&!e5&&(t=e2[e.which]||0),!!(1&t)}return 0===(e.button??0)}let e6={x:0,y:0,id:-1,scrollDecided:!1};function e9(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function te(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}let tt=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],ti={},ts=[];function tn(e,t){let i=document.elementFromPoint(e,t),s=i;for(;s?.shadowRoot&&!window.ShadyDOM&&s!==(s=s.shadowRoot.elementFromPoint(e,t));)s&&(i=s);return i}function to(e){let t=tt(e);return t.length>0?t[0]:e.target}function tr(e){let t=e.type,i=e.currentTarget[eQ];if(!i)return;let s=i[t];if(!s)return;if(!e[eJ]&&(e[eJ]={},t.startsWith("touch"))){let i=e.changedTouches[0];if("touchstart"===t&&1===e.touches.length&&(e6.id=i.identifier),e6.id!==i.identifier)return;eY||"touchstart"!==t&&"touchmove"!==t||function(e){let t=e.changedTouches[0],i=e.type;if("touchstart"===i)e6.x=t.clientX,e6.y=t.clientY,e6.scrollDecided=!1;else if("touchmove"===i){if(e6.scrollDecided)return;e6.scrollDecided=!0;let i=function(e){let t="auto",i=tt(e);for(let e=0,s;e<i.length;e++)if((s=i[e])[e0]){t=s[e0];break}return t}(e),s=!1,n=Math.abs(e6.x-t.clientX),o=Math.abs(e6.y-t.clientY);e.cancelable&&("none"===i?s=!0:"pan-x"===i?s=o>n:"pan-y"===i&&(s=n>o)),s?e.preventDefault():th("track")}}(e)}let n=e[eJ];if(!n.skip){for(let t=0,i;t<ts.length;t++)s[(i=ts[t]).name]&&!n[i.name]&&i.flow&&i.flow.start.indexOf(e.type)>-1&&i.reset&&i.reset();for(let i=0,o;i<ts.length;i++)s[(o=ts[i]).name]&&!n[o.name]&&(n[o.name]=!0,o[t](e))}}function ta(e,t,i){return!!ti[t]&&(function(e,t,i){var s,n;let o=ti[t],r=o.deps,a=o.name,l=e[eQ];l||(e[eQ]=l={});for(let t=0,i,s;t<r.length;t++)i=r[t],e8&&e4(i)&&"click"!==i||((s=l[i])||(l[i]=s={_count:0}),0===s._count&&e.addEventListener(i,tr,void e4(i)),s[a]=(s[a]||0)+1,s._count=(s._count||0)+1);e.addEventListener(t,i),o.touchAction&&(s=e,n=o.touchAction,eY&&s instanceof HTMLElement&&eZ.run(()=>{s.style.touchAction=n}),s[e0]=n)}(e,t,i),!0)}function tl(e){ts.push(e),e.emits.forEach(t=>{ti[t]=e})}function td(e,t,i){let s=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=i,e.dispatchEvent(s),s.defaultPrevented){let e=i.preventer||i.sourceEvent;e?.preventDefault&&e.preventDefault()}}function th(e){let t=function(e){for(let t=0,i;t<ts.length;t++){i=ts[t];for(let t=0;t<i.emits.length;t++)if(i.emits[t]===e)return i}return null}(e);t.info&&(t.info.prevent=!0)}function tc(e,t,i,s){t&&td(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent:e=>th(e)})}function tu(e,t,i){if(e.prevent)return!1;if(e.started)return!0;let s=Math.abs(e.x-t),n=Math.abs(e.y-i);return s>=5||n>=5}function tp(e,t,i){if(!t)return;let s=e.moves[e.moves.length-2],n=e.moves[e.moves.length-1],o=n.x-e.x,r=n.y-e.y,a,l=0;s&&(a=n.x-s.x,l=n.y-s.y),td(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:o,dy:r,ddx:a,ddy:l,sourceEvent:i,hover:()=>tn(i.clientX,i.clientY)})}function t_(e,t,i){let s=Math.abs(t.clientX-e.x),n=Math.abs(t.clientY-e.y),o=to(i||t);!(!o||e7[o.localName]&&o.hasAttribute("disabled"))&&(isNaN(s)||isNaN(n)||s<=25&&n<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;let t=to(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let i=t.getBoundingClientRect(),s=e.pageX,n=e.pageY;return!(s>=i.left&&s<=i.right&&n>=i.top&&n<=i.bottom)}return!1}(t))&&!e.prevent&&td(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i})}function tv(e,t,i){i?e.setAttribute(t,i):e.removeAttribute(t)}tl({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this;e9(this.info,e=>{e3(e)||(tc("up",t,e),te(i.info))},e=>{e3(e)&&tc("up",t,e),te(i.info)}),tc("down",t,e)},touchstart(e){tc("down",to(e),e.changedTouches[0],e)},touchend(e){tc("up",to(e),e.changedTouches[0],e)}}),tl({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(e){this.moves.length>2&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,te(this.info)},mousedown(e){if(!e3(e))return;let t=to(e),i=this,s=e=>{let s=e.clientX,n=e.clientY;tu(i.info,s,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&th("tap"),i.info.addMove({x:s,y:n}),e3(e)||(i.info.state="end",te(i.info)),t&&tp(i.info,t,e),i.info.started=!0)};e9(this.info,s,e=>{i.info.started&&s(e),te(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(e){let t=to(e),i=e.changedTouches[0],s=i.clientX,n=i.clientY;tu(this.info,s,n)&&("start"===this.info.state&&th("tap"),this.info.addMove({x:s,y:n}),tp(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend(e){let t=to(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),tp(this.info,t,i))}}),tl({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(e){e3(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click(e){e3(e)&&t_(this.info,e)},touchstart(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(e){t_(this.info,e.changedTouches[0],e)}});let tm=eB(e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){tv(this,"aria-disabled",e)}click(){this.disabled||super.click()}}),tg=eB(e=>class extends e{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}),tf=e=>class extends tm(tg(e)){get _activeKeys(){return[" "]}ready(){super.ready(),ta(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ta(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",e=>{this._activeKeys.includes(e.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}},tb=!1;function ty(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function tw(e){let t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;let i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}function tx(e){return e.checkVisibility?!e.checkVisibility({visibilityProperty:!0}):null===e.offsetParent&&0===e.clientWidth&&0===e.clientHeight||tw(e)}function tC(e){return e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function tE(e){return e.getRootNode().activeElement===e}function tA(e){let t=[];return!function e(t,i){if(t.nodeType!==Node.ELEMENT_NODE||tw(t))return!1;let s=tC(t)?Number(t.getAttribute("tabindex")||0):-1,n=s>0;return s>=0&&i.push(t),[..."slot"===t.localName?t.assignedNodes({flatten:!0}):(t.shadowRoot||t).children].forEach(t=>{n=e(t,i)||n}),n}(e,t)?t:function e(t){let i=t.length;if(i<2)return t;let s=Math.ceil(i/2),n=e(t.slice(0,s)),o=e(t.slice(s)),r=[];for(;n.length>0&&o.length>0;)!function(e,t){let i=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return 0===i||0===s?s>i:i>s}(n[0],o[0])?r.push(n.shift()):r.push(o.shift());return r.concat(n,o)}(t)}window.addEventListener("keydown",()=>{tb=!0},{capture:!0}),window.addEventListener("mousedown",()=>{tb=!1},{capture:!0});let tk=eB(e=>class extends e{get _keyboardActive(){return tb}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(e){super.focus(e),e?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}}),tS=e=>class extends tf(tk(e)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged",sync:!0},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value??this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();let e=this.getAttribute("value");null!==e&&(this.value=e),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-item-disabled-pointer-events","auto")}focus(e){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(e)}_shouldSetActive(e){return!this.disabled&&!("keydown"===e.type&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.__shouldAllowFocusWhenDisabled()||this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}__shouldAllowFocusWhenDisabled(){return!1}};function tO(e){try{CSS.registerProperty(e)}catch(t){if(t instanceof DOMException&&"InvalidModificationError"===t.name)console.warn(`The CSS property ${e.name} has already been registered.`);else throw t}}class t$ extends EventTarget{#e;#t=new Set;#i;#s=!1;constructor(e){super(),this.#e=e,this.#i=new CSSStyleSheet}#n(e){let{propertyName:t}=e;this.#t.has(t)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:t}}))}observe(e){this.connect(),this.#t.has(e)||(this.#t.add(e),this.#i.replaceSync(`
|
|
3
3
|
:root::before, :host::before {
|
|
4
4
|
content: '' !important;
|
|
5
5
|
position: absolute !important;
|