%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps/notifications/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps/notifications/js/BrowserStorage-CGmIGy5r.chunk.mjs |
/*! third party licenses: js/vendor.LICENSE.txt */ import{d as K,Q as yi,c as Dn,l as vi,r as Nt,R as bi,S as wi,e as D,a as ze,v as Nn,T as xi,g as Si,_ as Tn,U as nn,V as _i,W as sn,X as Ht,Y as Le,Z as Ai,$ as At,a0 as Pn,a1 as Ci,a2 as Oi,a3 as In,a4 as Ei,B as Be,a5 as ki,a6 as Li,f as Bi,a7 as Mn,O as be,P as we,C as Di,G as on,a8 as Ni}from"./_plugin-vue2_normalizer-BU0IC95A.chunk.mjs";import{V as qt,a as Tt,b as Fn,w as Re,c as Ti}from"./style-BNtK61kD.chunk.mjs";const Pi={name:"NcIconSvgWrapper",props:{inline:{type:Boolean,default:!1},svg:{type:String,default:""},name:{type:String,default:""},path:{type:String,default:""},size:{type:[Number,String],default:20,validator:t=>typeof t=="number"||t==="auto"}},computed:{iconSize(){return typeof this.size=="number"?"".concat(this.size,"px"):this.size},cleanSvg(){if(!this.svg||this.path)return;const t=yi.sanitize(this.svg),e=new DOMParser().parseFromString(t,"image/svg+xml");return e.querySelector("parsererror")?(qt.util.warn("SVG is not valid"),""):(e.documentElement.id&&e.documentElement.removeAttribute("id"),e.documentElement.outerHTML)},attributes(){return{class:["icon-vue",{"icon-vue--inline":this.inline}],style:{"--icon-size":this.iconSize},role:"img","aria-hidden":this.name?void 0:!0,"aria-label":this.name||void 0}}}};var Ii=function(){var t=this,e=t._self._c;return t.cleanSvg?e("span",t._b({domProps:{innerHTML:t._s(t.cleanSvg)}},"span",t.attributes,!1)):e("span",t._b({},"span",t.attributes,!1),[e("svg",{attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:t.path}})])])},Mi=[],Fi=K(Pi,Ii,Mi,!1,null,"2d0a4d76");const jn=Fi.exports;var Un={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(typeof self<"u"?self:Dn,function(){return(()=>{var n={646:l=>{l.exports=function(r){if(Array.isArray(r)){for(var d=0,u=new Array(r.length);d<r.length;d++)u[d]=r[d];return u}}},713:l=>{l.exports=function(r,d,u){return d in r?Object.defineProperty(r,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[d]=u,r}},860:l=>{l.exports=function(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)}},206:l=>{l.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(l,r,d)=>{var u=d(646),h=d(860),c=d(206);l.exports=function(p){return u(p)||h(p)||c()}},8:l=>{function r(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l.exports=r=function(u){return typeof u}:l.exports=r=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r(d)}l.exports=r}},i={};function s(l){var r=i[l];if(r!==void 0)return r.exports;var d=i[l]={exports:{}};return n[l](d,d.exports,s),d.exports}s.n=l=>{var r=l&&l.__esModule?()=>l.default:()=>l;return s.d(r,{a:r}),r},s.d=(l,r)=>{for(var d in r)s.o(r,d)&&!s.o(l,d)&&Object.defineProperty(l,d,{enumerable:!0,get:r[d]})},s.o=(l,r)=>Object.prototype.hasOwnProperty.call(l,r),s.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var a={};return(()=>{s.r(a),s.d(a,{VueSelect:()=>T,default:()=>P,mixins:()=>V});var l=s(319),r=s.n(l),d=s(8),u=s.n(d),h=s(713),c=s.n(h);const p={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(o){var m=this;this.autoscroll&&o&&this.$nextTick(function(){return m.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var o,m=((o=this.$refs.dropdownMenu)===null||o===void 0?void 0:o.children[this.typeAheadPointer])||!1;if(m){var y=this.getDropdownViewport(),w=m.getBoundingClientRect(),k=w.top,E=w.bottom,N=w.height;if(k<y.top)return this.$refs.dropdownMenu.scrollTop=m.offsetTop;if(E>y.bottom)return this.$refs.dropdownMenu.scrollTop=m.offsetTop-(y.height-N)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},f={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var o=0;o<this.filteredOptions.length;o++)if(this.selectable(this.filteredOptions[o])){this.typeAheadPointer=o;break}}},open:function(o){o&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var o=this.typeAheadPointer-1;o>=0;o--)if(this.selectable(this.filteredOptions[o])){this.typeAheadPointer=o;break}},typeAheadDown:function(){for(var o=this.typeAheadPointer+1;o<this.filteredOptions.length;o++)if(this.selectable(this.filteredOptions[o])){this.typeAheadPointer=o;break}},typeAheadSelect:function(){var o=this.filteredOptions[this.typeAheadPointer];o&&this.selectable(o)&&this.select(o)},typeAheadToLastSelected:function(){var o=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;o!==-1&&(this.typeAheadPointer=o)}}},g={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(o){this.mutableLoading=o}},methods:{toggleLoading:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=o??!this.mutableLoading}}};function v(o,m,y,w,k,E,N,M){var H,U=typeof o=="function"?o.options:o;return m&&(U.render=m,U.staticRenderFns=y,U._compiled=!0),{exports:o,options:U}}const S={Deselect:v({},function(){var o=this.$createElement,m=this._self._c||o;return m("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[m("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:v({},function(){var o=this.$createElement,m=this._self._c||o;return m("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[m("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},x={inserted:function(o,m,y){var w=y.context;if(w.appendToBody){document.body.appendChild(o);var k=w.$refs.toggle.getBoundingClientRect(),E=k.height,N=k.top,M=k.left,H=k.width,U=window.scrollX||window.pageXOffset,rt=window.scrollY||window.pageYOffset;o.unbindPosition=w.calculatePosition(o,w,{width:H+"px",left:U+M+"px",top:rt+N+E+"px"})}},unbind:function(o,m,y){y.context.appendToBody&&(o.unbindPosition&&typeof o.unbindPosition=="function"&&o.unbindPosition(),o.parentNode&&o.parentNode.removeChild(o))}},C=function(o){var m={};return Object.keys(o).sort().forEach(function(y){m[y]=o[y]}),JSON.stringify(m)};var A=0;const B=function(){return++A};function L(o,m){var y=Object.keys(o);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(o);m&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(o,k).enumerable})),y.push.apply(y,w)}return y}function O(o){for(var m=1;m<arguments.length;m++){var y=arguments[m]!=null?arguments[m]:{};m%2?L(Object(y),!0).forEach(function(w){c()(o,w,y[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(y)):L(Object(y)).forEach(function(w){Object.defineProperty(o,w,Object.getOwnPropertyDescriptor(y,w))})}return o}const T=v({components:O({},S),directives:{appendToBody:x},mixins:[p,f,g],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},ariaLabelCombobox:{type:String,default:"Search for options"},ariaLabelListbox:{type:String,default:"Options"},ariaLabelClearSelected:{type:String,default:"Clear selected"},ariaLabelDeselectOption:{type:Function,default:function(o){return"Deselect ".concat(o)}},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(o){return o}},selectable:{type:Function,default:function(o){return!0}},getOptionLabel:{type:Function,default:function(o){return u()(o)==="object"?o.hasOwnProperty(this.label)?o[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(o),`. `)+"https://vue-select.org/api/props.html#getoptionlabel"):o}},getOptionKey:{type:Function,default:function(o){if(u()(o)!=="object")return o;try{return o.hasOwnProperty("id")?o.id:C(o)}catch(m){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option. https://vue-select.org/api/props.html#getoptionkey`,o,m)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(o,m,y){return(m||"").toLocaleLowerCase().indexOf(y.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(o,m){var y=this;return o.filter(function(w){var k=y.getOptionLabel(w);return typeof k=="number"&&(k=k.toString()),y.filterBy(w,k,m)})}},createOption:{type:Function,default:function(o){return u()(this.optionList[0])==="object"?c()({},this.label,o):o}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(o){return["function","boolean"].includes(u()(o))}},clearSearchOnBlur:{type:Function,default:function(o){var m=o.clearSearchOnSelect,y=o.multiple;return m&&!y}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(o,m){return o}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(o,m,y){var w=y.width,k=y.top,E=y.left;o.style.top=k,o.style.left=E,o.style.width=w}},dropdownShouldOpen:{type:Function,default:function(o){var m=o.noDrop,y=o.open,w=o.mutableLoading;return!m&&y&&!w}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return B()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var o=this.value;return this.isTrackingValues&&(o=this.$data._value),o!=null&&o!==""?[].concat(o):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var o=this,m={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:O({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs".concat(this.uid,"__listbox"),"aria-owns":"vs".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return o.isComposing=!0},compositionend:function(){return o.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(y){return o.search=y.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:m,listFooter:m,header:O({},m,{deselect:this.deselect}),footer:O({},m,{deselect:this.deselect})}},childComponents:function(){return O({},S,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var o=this,m=function(E){return o.limit!==null?E.slice(0,o.limit):E},y=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return m(y);var w=this.search.length?this.filter(y,this.search,this):y;if(this.taggable&&this.search.length){var k=this.createOption(this.search);this.optionExists(k)||w.unshift(k)}return m(w)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(o,m){var y=this;!this.taggable&&(typeof y.resetOnOptionsChange=="function"?y.resetOnOptionsChange(o,m,y.selectedValue):y.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(o){this.isTrackingValues&&this.setInternalValueFromOptions(o)}},multiple:function(){this.clearSelection()},open:function(o){this.$emit(o?"open":"close")},search:function(o){o.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(o){var m=this;Array.isArray(o)?this.$data._value=o.map(function(y){return m.findOptionFromReducedValue(y)}):this.$data._value=this.findOptionFromReducedValue(o)},select:function(o){this.$emit("option:selecting",o),this.isOptionSelected(o)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(o):(this.taggable&&!this.optionExists(o)&&this.$emit("option:created",o),this.multiple&&(o=this.selectedValue.concat(o)),this.updateValue(o),this.$emit("option:selected",o)),this.onAfterSelect(o)},deselect:function(o){var m=this;this.$emit("option:deselecting",o),this.updateValue(this.selectedValue.filter(function(y){return!m.optionComparator(y,o)})),this.$emit("option:deselected",o)},keyboardDeselect:function(o,m){var y,w;this.deselect(o);var k=(y=this.$refs.deselectButtons)===null||y===void 0?void 0:y[m+1],E=(w=this.$refs.deselectButtons)===null||w===void 0?void 0:w[m-1],N=k??E;N?N.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(o){var m=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return m.$refs.search.focus()})},updateValue:function(o){var m=this;this.value===void 0&&(this.$data._value=o),o!==null&&(o=Array.isArray(o)?o.map(function(y){return m.reduce(y)}):this.reduce(o)),this.$emit("input",o)},toggleDropdown:function(o){var m=o.target!==this.searchEl;m&&o.preventDefault();var y=[].concat(r()(this.$refs.deselectButtons||[]),r()([this.$refs.clearButton]));this.searchEl===void 0||y.filter(Boolean).some(function(w){return w.contains(o.target)||w===o.target})?o.preventDefault():this.open&&m?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(o){var m=this;return this.selectedValue.some(function(y){return m.optionComparator(y,o)})},isOptionDeselectable:function(o){return this.isOptionSelected(o)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(o){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&o===this.typeAheadPointer},optionComparator:function(o,m){return this.getOptionKey(o)===this.getOptionKey(m)},findOptionFromReducedValue:function(o){var m=this,y=[].concat(r()(this.options),r()(this.pushedTags)).filter(function(w){return JSON.stringify(m.reduce(w))===JSON.stringify(o)});return y.length===1?y[0]:y.find(function(w){return m.optionComparator(w,m.$data._value)})||o},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var o=null;this.multiple&&(o=r()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(o)}},optionExists:function(o){var m=this;return this.optionList.some(function(y){return m.optionComparator(y,o)})},optionAriaSelected:function(o){return this.selectable(o)?String(this.isOptionSelected(o)):null},normalizeOptionForSlot:function(o){return u()(o)==="object"?o:c()({},this.label,o)},pushTag:function(o){this.pushedTags.push(o)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var o=this.clearSearchOnSelect,m=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:o,multiple:m})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(o,m){this.isKeyboardNavigation=!1,this.selectable(o)&&(this.typeAheadPointer=m)},onSearchKeyDown:function(o){var m=this,y=function(E){if(E.preventDefault(),m.open)return!m.isComposing&&m.typeAheadSelect();m.open=!0},w={8:function(E){return m.maybeDeleteValue()},9:function(E){return m.onTab()},27:function(E){return m.onEscape()},38:function(E){if(E.preventDefault(),m.isKeyboardNavigation=!0,m.open)return m.typeAheadUp();m.open=!0},40:function(E){if(E.preventDefault(),m.isKeyboardNavigation=!0,m.open)return m.typeAheadDown();m.open=!0}};this.selectOnKeyCodes.forEach(function(E){return w[E]=y});var k=this.mapKeydown(w,this);if(typeof k[o.keyCode]=="function")return k[o.keyCode](o)},onSearchKeyPress:function(o){this.open||o.keyCode!==32||(o.preventDefault(),this.open=!0)}}},function(){var o=this,m=o.$createElement,y=o._self._c||m;return y("div",{staticClass:"v-select",class:o.stateClasses,attrs:{id:"v-select-"+o.uid,dir:o.dir}},[o._t("header",null,null,o.scope.header),o._v(" "),y("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[y("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:o.toggleDropdown}},[o._l(o.selectedValue,function(w,k){return o._t("selected-option-container",[y("span",{key:o.getOptionKey(w),staticClass:"vs__selected"},[o._t("selected-option",[o._v(` `+o._s(o.getOptionLabel(w))+` `)],null,o.normalizeOptionForSlot(w)),o._v(" "),o.multiple?y("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:o.disabled,type:"button",title:o.ariaLabelDeselectOption(o.getOptionLabel(w)),"aria-label":o.ariaLabelDeselectOption(o.getOptionLabel(w))},on:{mousedown:function(E){return E.stopPropagation(),o.deselect(w)},keydown:function(E){return!E.type.indexOf("key")&&o._k(E.keyCode,"enter",13,E.key,"Enter")?null:o.keyboardDeselect(w,k)}}},[y(o.childComponents.Deselect,{tag:"component"})],1):o._e()],2)],{option:o.normalizeOptionForSlot(w),deselect:o.deselect,multiple:o.multiple,disabled:o.disabled})}),o._v(" "),o._t("search",[y("input",o._g(o._b({staticClass:"vs__search"},"input",o.scope.search.attributes,!1),o.scope.search.events))],null,o.scope.search)],2),o._v(" "),y("div",{ref:"actions",staticClass:"vs__actions"},[y("button",{directives:[{name:"show",rawName:"v-show",value:o.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:o.disabled,type:"button",title:o.ariaLabelClearSelected,"aria-label":o.ariaLabelClearSelected},on:{click:o.clearSelection}},[y(o.childComponents.Deselect,{tag:"component"})],1),o._v(" "),o.noDrop?o._e():y("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs"+o.uid+"__listbox","aria-controls":"vs"+o.uid+"__listbox","aria-expanded":o.dropdownOpen.toString()},on:{mousedown:o.toggleDropdown}},[o._t("open-indicator",[y(o.childComponents.OpenIndicator,o._b({tag:"component"},"component",o.scope.openIndicator.attributes,!1))],null,o.scope.openIndicator)],2),o._v(" "),o._t("spinner",[y("div",{directives:[{name:"show",rawName:"v-show",value:o.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[o._v("Loading...")])],null,o.scope.spinner)],2)]),o._v(" "),y("transition",{attrs:{name:o.transition}},[o.dropdownOpen?y("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+o.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+o.uid+"__listbox",role:"listbox","aria-label":o.ariaLabelListbox,"aria-multiselectable":o.multiple,tabindex:"-1"},on:{mousedown:function(w){return w.preventDefault(),o.onMousedown(w)},mouseup:o.onMouseUp}},[o._t("list-header",null,null,o.scope.listHeader),o._v(" "),o._l(o.filteredOptions,function(w,k){return y("li",{key:o.getOptionKey(w),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":o.isOptionDeselectable(w)&&k===o.typeAheadPointer,"vs__dropdown-option--selected":o.isOptionSelected(w),"vs__dropdown-option--highlight":k===o.typeAheadPointer,"vs__dropdown-option--kb-focus":o.hasKeyboardFocusBorder(k),"vs__dropdown-option--disabled":!o.selectable(w)},attrs:{id:"vs"+o.uid+"__option-"+k,role:"option","aria-selected":o.optionAriaSelected(w)},on:{mousemove:function(E){return o.onMouseMove(w,k)},click:function(E){E.preventDefault(),E.stopPropagation(),o.selectable(w)&&o.select(w)}}},[o._t("option",[o._v(` `+o._s(o.getOptionLabel(w))+` `)],null,o.normalizeOptionForSlot(w))],2)}),o._v(" "),o.filteredOptions.length===0?y("li",{staticClass:"vs__no-options"},[o._t("no-options",[o._v(` Sorry, no matching options. `)],null,o.scope.noOptions)],2):o._e(),o._v(" "),o._t("list-footer",null,null,o.scope.listFooter)],2):y("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+o.uid+"__listbox",role:"listbox","aria-label":o.ariaLabelListbox}})]),o._v(" "),o._t("footer",null,null,o.scope.footer)],2)},[]).exports,V={ajax:g,pointer:f,pointerScroll:p},P=T})(),a})()})})(Un);var at=Un.exports;const Gt=Math.min,pt=Math.max,Xt=Math.round,Ut=Math.floor,it=t=>({x:t,y:t}),ji={left:"right",right:"left",bottom:"top",top:"bottom"},Ui={start:"end",end:"start"};function rn(t,e,n){return pt(t,Gt(e,n))}function wt(t,e){return typeof t=="function"?t(e):t}function st(t){return t.split("-")[0]}function fe(t){return t.split("-")[1]}function Ve(t){return t==="x"?"y":"x"}function zn(t){return t==="y"?"height":"width"}function Pt(t){return["top","bottom"].includes(st(t))?"y":"x"}function Rn(t){return Ve(Pt(t))}function zi(t,e,n){n===void 0&&(n=!1);const i=fe(t),s=Rn(t),a=zn(s);let l=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(l=Qt(l)),[l,Qt(l)]}function Ri(t){const e=Qt(t);return[De(t),e,De(e)]}function De(t){return t.replace(/start|end/g,e=>Ui[e])}function Vi(t,e,n){const i=["left","right"],s=["right","left"],a=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:i:e?i:s;case"left":case"right":return e?a:l;default:return[]}}function Hi(t,e,n,i){const s=fe(t);let a=Vi(st(t),n==="start",i);return s&&(a=a.map(l=>l+"-"+s),e&&(a=a.concat(a.map(De)))),a}function Qt(t){return t.replace(/left|right|bottom|top/g,e=>ji[e])}function $i(t){return{top:0,right:0,bottom:0,left:0,...t}}function Wi(t){return typeof t!="number"?$i(t):{top:t,right:t,bottom:t,left:t}}function Yt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function an(t,e,n){let{reference:i,floating:s}=t;const a=Pt(e),l=Rn(e),r=zn(l),d=st(e),u=a==="y",h=i.x+i.width/2-s.width/2,c=i.y+i.height/2-s.height/2,p=i[r]/2-s[r]/2;let f;switch(d){case"top":f={x:h,y:i.y-s.height};break;case"bottom":f={x:h,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:c};break;case"left":f={x:i.x-s.width,y:c};break;default:f={x:i.x,y:i.y}}switch(fe(e)){case"start":f[l]-=p*(n&&u?-1:1);break;case"end":f[l]+=p*(n&&u?-1:1);break}return f}const Ki=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:a=[],platform:l}=n,r=a.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:s}),{x:h,y:c}=an(u,i,d),p=i,f={},g=0;for(let v=0;v<r.length;v++){const{name:S,fn:x}=r[v],{x:C,y:A,data:B,reset:L}=await x({x:h,y:c,initialPlacement:i,placement:p,strategy:s,middlewareData:f,rects:u,platform:l,elements:{reference:t,floating:e}});if(h=C??h,c=A??c,f={...f,[S]:{...f[S],...B}},L&&g<=50){g++,typeof L=="object"&&(L.placement&&(p=L.placement),L.rects&&(u=L.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:s}):L.rects),{x:h,y:c}=an(u,p,d)),v=-1;continue}}return{x:h,y:c,placement:p,strategy:s,middlewareData:f}};async function Vn(t,e){var n;e===void 0&&(e={});const{x:i,y:s,platform:a,rects:l,elements:r,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=wt(e,t),g=Wi(f),v=r[p?c==="floating"?"reference":"floating":c],S=Yt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(v)))==null||n?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(r.floating)),boundary:u,rootBoundary:h,strategy:d})),x=c==="floating"?{...l.floating,x:i,y:s}:l.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(r.floating)),A=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},B=Yt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:C,strategy:d}):x);return{top:(S.top-B.top+g.top)/A.y,bottom:(B.bottom-S.bottom+g.bottom)/A.y,left:(S.left-B.left+g.left)/A.x,right:(B.right-S.right+g.right)/A.x}}const qi=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:s,middlewareData:a,rects:l,initialPlacement:r,platform:d,elements:u}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...S}=wt(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const x=st(s),C=st(r)===r,A=await(d.isRTL==null?void 0:d.isRTL(u.floating)),B=p||(C||!v?[Qt(r)]:Ri(r));!p&&g!=="none"&&B.push(...Hi(r,v,g,A));const L=[r,...B],O=await Vn(e,S),T=[];let V=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&T.push(O[x]),c){const y=zi(s,l,A);T.push(O[y[0]],O[y[1]])}if(V=[...V,{placement:s,overflows:T}],!T.every(y=>y<=0)){var P,o;const y=(((P=a.flip)==null?void 0:P.index)||0)+1,w=L[y];if(w)return{data:{index:y,overflows:V},reset:{placement:w}};let k=(o=V.filter(E=>E.overflows[0]<=0).sort((E,N)=>E.overflows[1]-N.overflows[1])[0])==null?void 0:o.placement;if(!k)switch(f){case"bestFit":{var m;const E=(m=V.map(N=>[N.placement,N.overflows.filter(M=>M>0).reduce((M,H)=>M+H,0)]).sort((N,M)=>N[1]-M[1])[0])==null?void 0:m[0];E&&(k=E);break}case"initialPlacement":k=r;break}if(s!==k)return{reset:{placement:k}}}return{}}}};async function Gi(t,e){const{placement:n,platform:i,elements:s}=t,a=await(i.isRTL==null?void 0:i.isRTL(s.floating)),l=st(n),r=fe(n),d=Pt(n)==="y",u=["left","top"].includes(l)?-1:1,h=a&&d?-1:1,c=wt(e,t);let{mainAxis:p,crossAxis:f,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return r&&typeof g=="number"&&(f=r==="end"?g*-1:g),d?{x:f*h,y:p*u}:{x:p*u,y:f*h}}const Xi=function(t){return{name:"offset",options:t,async fn(e){const{x:n,y:i}=e,s=await Gi(e,t);return{x:n+s.x,y:i+s.y,data:s}}}},Qi=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:s}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:r={fn:S=>{let{x,y:C}=S;return{x,y:C}}},...d}=wt(t,e),u={x:n,y:i},h=await Vn(e,d),c=Pt(st(s)),p=Ve(c);let f=u[p],g=u[c];if(a){const S=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=f+h[S],A=f-h[x];f=rn(C,f,A)}if(l){const S=c==="y"?"top":"left",x=c==="y"?"bottom":"right",C=g+h[S],A=g-h[x];g=rn(C,g,A)}const v=r.fn({...e,[p]:f,[c]:g});return{...v,data:{x:v.x-n,y:v.y-i}}}}},Yi=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:s,rects:a,middlewareData:l}=e,{offset:r=0,mainAxis:d=!0,crossAxis:u=!0}=wt(t,e),h={x:n,y:i},c=Pt(s),p=Ve(c);let f=h[p],g=h[c];const v=wt(r,e),S=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(d){const A=p==="y"?"height":"width",B=a.reference[p]-a.floating[A]+S.mainAxis,L=a.reference[p]+a.reference[A]-S.mainAxis;f<B?f=B:f>L&&(f=L)}if(u){var x,C;const A=p==="y"?"width":"height",B=["top","left"].includes(st(s)),L=a.reference[c]-a.floating[A]+(B&&((x=l.offset)==null?void 0:x[c])||0)+(B?0:S.crossAxis),O=a.reference[c]+a.reference[A]+(B?0:((C=l.offset)==null?void 0:C[c])||0)-(B?S.crossAxis:0);g<L?g=L:g>O&&(g=O)}return{[p]:f,[c]:g}}}};function ot(t){return Hn(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){var e;return(e=(Hn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hn(t){return t instanceof Node||t instanceof R(t).Node}function Z(t){return t instanceof Element||t instanceof R(t).Element}function Q(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement}function ln(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}function It(t){const{overflow:e,overflowX:n,overflowY:i,display:s}=W(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(s)}function Zi(t){return["table","td","th"].includes(ot(t))}function He(t){const e=$e(),n=W(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function Ji(t){let e=xt(t);for(;Q(e)&&!ge(e);){if(He(e))return e;e=xt(e)}return null}function $e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ge(t){return["html","body","#document"].includes(ot(t))}function W(t){return R(t).getComputedStyle(t)}function me(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xt(t){if(ot(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ln(t)&&t.host||J(t);return ln(e)?e.host:e}function $n(t){const e=xt(t);return ge(e)?t.ownerDocument?t.ownerDocument.body:t.body:Q(e)&&It(e)?e:$n(e)}function Lt(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=$n(t),a=s===((i=t.ownerDocument)==null?void 0:i.body),l=R(s);return a?e.concat(l,l.visualViewport||[],It(s)?s:[],l.frameElement&&n?Lt(l.frameElement):[]):e.concat(s,Lt(s,[],n))}function Wn(t){const e=W(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=Q(t),a=s?t.offsetWidth:n,l=s?t.offsetHeight:i,r=Xt(n)!==a||Xt(i)!==l;return r&&(n=a,i=l),{width:n,height:i,$:r}}function We(t){return Z(t)?t:t.contextElement}function bt(t){const e=We(t);if(!Q(e))return it(1);const n=e.getBoundingClientRect(),{width:i,height:s,$:a}=Wn(e);let l=(a?Xt(n.width):n.width)/i,r=(a?Xt(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!r||!Number.isFinite(r))&&(r=1),{x:l,y:r}}const ts=it(0);function Kn(t){const e=R(t);return!$e()||!e.visualViewport?ts:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function es(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function dt(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),a=We(t);let l=it(1);e&&(i?Z(i)&&(l=bt(i)):l=bt(t));const r=es(a,n,i)?Kn(a):it(0);let d=(s.left+r.x)/l.x,u=(s.top+r.y)/l.y,h=s.width/l.x,c=s.height/l.y;if(a){const p=R(a),f=i&&Z(i)?R(i):i;let g=p.frameElement;for(;g&&i&&f!==p;){const v=bt(g),S=g.getBoundingClientRect(),x=W(g),C=S.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,A=S.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;d*=v.x,u*=v.y,h*=v.x,c*=v.y,d+=C,u+=A,g=R(g).frameElement}}return Yt({width:h,height:c,x:d,y:u})}function ns(t){let{rect:e,offsetParent:n,strategy:i}=t;const s=Q(n),a=J(n);if(n===a)return e;let l={scrollLeft:0,scrollTop:0},r=it(1);const d=it(0);if((s||!s&&i!=="fixed")&&((ot(n)!=="body"||It(a))&&(l=me(n)),Q(n))){const u=dt(n);r=bt(n),d.x=u.x+n.clientLeft,d.y=u.y+n.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-l.scrollLeft*r.x+d.x,y:e.y*r.y-l.scrollTop*r.y+d.y}}function is(t){return Array.from(t.getClientRects())}function qn(t){return dt(J(t)).left+me(t).scrollLeft}function ss(t){const e=J(t),n=me(t),i=t.ownerDocument.body,s=pt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=pt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+qn(t);const r=-n.scrollTop;return W(i).direction==="rtl"&&(l+=pt(e.clientWidth,i.clientWidth)-s),{width:s,height:a,x:l,y:r}}function os(t,e){const n=R(t),i=J(t),s=n.visualViewport;let a=i.clientWidth,l=i.clientHeight,r=0,d=0;if(s){a=s.width,l=s.height;const u=$e();(!u||u&&e==="fixed")&&(r=s.offsetLeft,d=s.offsetTop)}return{width:a,height:l,x:r,y:d}}function rs(t,e){const n=dt(t,!0,e==="fixed"),i=n.top+t.clientTop,s=n.left+t.clientLeft,a=Q(t)?bt(t):it(1),l=t.clientWidth*a.x,r=t.clientHeight*a.y,d=s*a.x,u=i*a.y;return{width:l,height:r,x:d,y:u}}function un(t,e,n){let i;if(e==="viewport")i=os(t,n);else if(e==="document")i=ss(J(t));else if(Z(e))i=rs(e,n);else{const s=Kn(t);i={...e,x:e.x-s.x,y:e.y-s.y}}return Yt(i)}function Gn(t,e){const n=xt(t);return n===e||!Z(n)||ge(n)?!1:W(n).position==="fixed"||Gn(n,e)}function as(t,e){const n=e.get(t);if(n)return n;let i=Lt(t,[],!1).filter(r=>Z(r)&&ot(r)!=="body"),s=null;const a=W(t).position==="fixed";let l=a?xt(t):t;for(;Z(l)&&!ge(l);){const r=W(l),d=He(l);!d&&r.position==="fixed"&&(s=null),(a?!d&&!s:!d&&r.position==="static"&&s&&["absolute","fixed"].includes(s.position)||It(l)&&!d&&Gn(t,l))?i=i.filter(u=>u!==l):s=r,l=xt(l)}return e.set(t,i),i}function ls(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const a=[...n==="clippingAncestors"?as(e,this._c):[].concat(n),i],l=a[0],r=a.reduce((d,u)=>{const h=un(e,u,s);return d.top=pt(h.top,d.top),d.right=Gt(h.right,d.right),d.bottom=Gt(h.bottom,d.bottom),d.left=pt(h.left,d.left),d},un(e,l,s));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}}function us(t){return Wn(t)}function cs(t,e,n){const i=Q(e),s=J(e),a=n==="fixed",l=dt(t,!0,a,e);let r={scrollLeft:0,scrollTop:0};const d=it(0);if(i||!i&&!a)if((ot(e)!=="body"||It(s))&&(r=me(e)),i){const u=dt(e,!0,a,e);d.x=u.x+e.clientLeft,d.y=u.y+e.clientTop}else s&&(d.x=qn(s));return{x:l.left+r.scrollLeft-d.x,y:l.top+r.scrollTop-d.y,width:l.width,height:l.height}}function cn(t,e){return!Q(t)||W(t).position==="fixed"?null:e?e(t):t.offsetParent}function Xn(t,e){const n=R(t);if(!Q(t))return n;let i=cn(t,e);for(;i&&Zi(i)&&W(i).position==="static";)i=cn(i,e);return i&&(ot(i)==="html"||ot(i)==="body"&&W(i).position==="static"&&!He(i))?n:i||Ji(t)||n}const hs=async function(t){let{reference:e,floating:n,strategy:i}=t;const s=this.getOffsetParent||Xn,a=this.getDimensions;return{reference:cs(e,await s(n),i),floating:{x:0,y:0,...await a(n)}}};function ps(t){return W(t).direction==="rtl"}const ds={convertOffsetParentRelativeRectToViewportRelativeRect:ns,getDocumentElement:J,getClippingRect:ls,getOffsetParent:Xn,getElementRects:hs,getClientRects:is,getDimensions:us,getScale:bt,isElement:Z,isRTL:ps};function fs(t,e){let n=null,i;const s=J(t);function a(){clearTimeout(i),n&&n.disconnect(),n=null}function l(r,d){r===void 0&&(r=!1),d===void 0&&(d=1),a();const{left:u,top:h,width:c,height:p}=t.getBoundingClientRect();if(r||e(),!c||!p)return;const f=Ut(h),g=Ut(s.clientWidth-(u+c)),v=Ut(s.clientHeight-(h+p)),S=Ut(u),x={rootMargin:-f+"px "+-g+"px "+-v+"px "+-S+"px",threshold:pt(0,Gt(1,d))||1};let C=!0;function A(B){const L=B[0].intersectionRatio;if(L!==d){if(!C)return l();L?l(!1,L):i=setTimeout(()=>{l(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(A,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(A,x)}n.observe(t)}return l(!0),a}function gs(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,u=We(t),h=s||a?[...u?Lt(u):[],...Lt(e)]:[];h.forEach(x=>{s&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});const c=u&&r?fs(u,n):null;let p=-1,f=null;l&&(f=new ResizeObserver(x=>{let[C]=x;C&&C.target===u&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{f&&f.observe(e)})),n()}),u&&!d&&f.observe(u),f.observe(e));let g,v=d?dt(t):null;d&&S();function S(){const x=dt(t);v&&(x.x!==v.x||x.y!==v.y||x.width!==v.width||x.height!==v.height)&&n(),v=x,g=requestAnimationFrame(S)}return n(),()=>{h.forEach(x=>{s&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),c&&c(),f&&f.disconnect(),f=null,d&&cancelAnimationFrame(g)}}const ms=(t,e,n)=>{const i=new Map,s={platform:ds,...n},a={...s.platform,_c:i};return Ki(t,e,{...s,platform:a})},ys={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var vs=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":t.title?null:!0,"aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},bs=[],ws=K(ys,vs,bs,!1,null,null);const xs=ws.exports,Qn=(t,e)=>{const n=[];let i=0,s=t.toLowerCase().indexOf(e.toLowerCase(),i),a=0;for(;s>-1&&a<t.length;)i=s+e.length,n.push({start:s,end:i}),s=t.toLowerCase().indexOf(e.toLowerCase(),i),a++;return n},Ss={name:"NcHighlight",props:{text:{type:String,default:""},search:{type:String,default:""},highlight:{type:Array,default:()=>[]}},computed:{ranges(){let t=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?t=this.highlight:t=Qn(this.text,this.search),t.forEach((e,n)=>{e.end<e.start&&(t[n]={start:e.end,end:e.start})}),t=t.reduce((e,n)=>(n.start<this.text.length&&n.end>0&&e.push({start:n.start<0?0:n.start,end:n.end>this.text.length?this.text.length:n.end}),e),[]),t.sort((e,n)=>e.start-n.start),t=t.reduce((e,n)=>{if(!e.length)e.push(n);else{const i=e.length-1;e[i].end>=n.start?e[i]={start:e[i].start,end:Math.max(e[i].end,n.end)}:e.push(n)}return e},[])),t},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const t=[];let e=0,n=0;for(;e<this.text.length;){const i=this.ranges[n];if(i.start===e){t.push({...i,highlight:!0,text:this.text.slice(i.start,i.end)}),n++,e=i.end,n>=this.ranges.length&&e<this.text.length&&(t.push({start:e,end:this.text.length,highlight:!1,text:this.text.slice(e)}),e=this.text.length);continue}t.push({start:e,end:i.start,highlight:!1,text:this.text.slice(e,i.start)}),e=i.start}return t}},render(t){return this.ranges.length?t("span",{},this.chunks.map(e=>e.highlight?t("strong",{},e.text):e.text)):t("span",{},this.text)}},_s=null,As=null;var Cs=K(Ss,_s,As,!1,null,null);const Yn=Cs.exports,Os={name:"NcEllipsisedOption",components:{NcHighlight:Yn},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?Qn(this.name,this.search):[]},highlight2(){return this.highlight1.map(t=>({start:t.start-this.split,end:t.end-this.split}))}}};var Es=function(){var t=this,e=t._self._c;return e("span",{staticClass:"name-parts",attrs:{title:t.name}},[e("NcHighlight",{staticClass:"name-parts__first",attrs:{text:t.part1,search:t.search,highlight:t.highlight1}}),t.part2?e("NcHighlight",{staticClass:"name-parts__last",attrs:{text:t.part2,search:t.search,highlight:t.highlight2}}):t._e()],1)},ks=[],Ls=K(Os,Es,ks,!1,null,"0c4478a6");const Bs=Ls.exports,Ds={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},Ns=function(t,e){let n=t.$parent;for(;n;){if(n.$options.name===e)return n;n=n.$parent}},Ke={mixins:[Ds],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(t){if(this.$emit("click",t),this.closeAfterClick){const e=Ns(this,"NcActions");e&&e.closeMenu&&e.closeMenu(!1)}}}},Ts={name:"NcActionLink",mixins:[Ke],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{href:{type:String,default:"#",required:!0,validator:t=>{try{return new URL(t)}catch{return t.startsWith("#")||t.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:t=>t&&(!t.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(t)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var Ps=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("a",{staticClass:"action-link focusable",attrs:{download:t.download,href:t.href,"aria-label":t.ariaLabel,target:t.target,title:t.title,rel:"nofollow noreferrer noopener",role:t.isInSemanticMenu&&"menuitem"},on:{click:t.onClick}},[t._t("icon",function(){return[e("span",{staticClass:"action-link__icon",class:[t.isIconUrl?"action-link__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?"url(".concat(t.icon,")"):null},attrs:{"aria-hidden":"true"}})]}),t.name?e("span",{staticClass:"action-link__longtext-wrapper"},[e("strong",{staticClass:"action-link__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-link__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-link__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-link__text"},[t._v(t._s(t.text))]),t._e()],2)])},Is=[],Ms=K(Ts,Ps,Is,!1,null,"30c015f0");const Fs=Ms.exports,js={name:"NcActionRouter",mixins:[Ke],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],default:"",required:!0},exact:{type:Boolean,default:!1}}};var Us=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("RouterLink",{staticClass:"action-router focusable",attrs:{to:t.to,"aria-label":t.ariaLabel,exact:t.exact,title:t.title,rel:"nofollow noreferrer noopener",role:t.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(n){return t.onClick.apply(null,arguments)}}},[t._t("icon",function(){return[e("span",{staticClass:"action-router__icon",class:[t.isIconUrl?"action-router__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?"url(".concat(t.icon,")"):null},attrs:{"aria-hidden":"true"}})]}),t.name?e("span",{staticClass:"action-router__longtext-wrapper"},[e("strong",{staticClass:"action-router__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-router__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-router__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-router__text"},[t._v(t._s(t.text))]),t._e()],2)],1)},zs=[],Rs=K(js,Us,zs,!1,null,"579c6b4d");const Vs=Rs.exports,Hs={name:"NcActionText",mixins:[Ke],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var $s=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("span",{staticClass:"action-text",on:{click:t.onClick}},[t._t("icon",function(){return[t.icon!==""?e("span",{staticClass:"action-text__icon",class:[t.isIconUrl?"action-text__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?"url(".concat(t.icon,")"):null},attrs:{"aria-hidden":"true"}}):t._e()]}),t.name?e("span",{staticClass:"action-text__longtext-wrapper"},[e("strong",{staticClass:"action-text__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-text__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-text__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-text__text"},[t._v(t._s(t.text))]),t._e()],2)])},Ws=[],Ks=K(Hs,$s,Ws,!1,null,"824615f4");const qs=Ks.exports;function qe(){try{return vi("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}const pr=Object.freeze(Object.defineProperty({__proto__:null,getCapabilities:qe},Symbol.toStringTag,{value:"Module"})),Gs=`<!-- - SPDX-FileCopyrightText: 2020 Google Inc. - SPDX-License-Identifier: Apache-2.0 --> <svg viewBox="0 0 16 16" width="16" height="16" xmlns="http://www.w3.org/2000/svg"> <path fill="var(--color-success)" d="M4.8 11.2h6.4V4.8H4.8v6.4zM8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" /> </svg> `,hn=`<!-- - SPDX-FileCopyrightText: 2020 Google Inc. - SPDX-License-Identifier: Apache-2.0 --> <svg viewBox="0 0 16 16" width="16" height="16" xmlns="http://www.w3.org/2000/svg"> <path fill="none" d="M-4-4h24v24H-4z" /> <path fill="var(--color-warning)" d="M6.9.1C3 .6-.1 4-.1 8c0 4.4 3.6 8 8 8 4 0 7.4-3 8-6.9-1.2 1.3-2.9 2.1-4.7 2.1-3.5 0-6.4-2.9-6.4-6.4 0-1.9.8-3.6 2.1-4.7z" /> </svg> `,Xs=`<!-- - SPDX-FileCopyrightText: 2020 Google Inc. - SPDX-License-Identifier: Apache-2.0 --> <svg viewBox="0 0 16 16" width="16" height="16" xmlns="http://www.w3.org/2000/svg"> <path fill="none" d="M-4-4h24v24H-4V-4z" /> <path fill="var(--color-error)" d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" /> <path fill="#fdffff" d="M5 6.5h6c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5H5c-.8 0-1.5-.7-1.5-1.5S4.2 6.5 5 6.5z" /> </svg> `,pn=`<!-- - SPDX-FileCopyrightText: 2020 Google Inc. - SPDX-License-Identifier: Apache-2.0 --> <svg viewBox="0 0 16 16" width="16" height="16" xmlns="http://www.w3.org/2000/svg"> <path fill="none" d="M-4-4h24v24H-4V-4z" /> <path d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 3.2c2.7 0 4.8 2.1 4.8 4.8s-2.1 4.8-4.8 4.8S3.2 10.7 3.2 8 5.3 3.2 8 3.2z" /> </svg> `;Nt(bi);const Zn=t=>{switch(t){case"away":return D("away");case"busy":return D("busy");case"dnd":return D("do not disturb");case"online":return D("online");case"invisible":return D("invisible");case"offline":return D("offline");default:return t}};Nt(wi);const Qs={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:t=>["online","away","busy","dnd","invisible","offline"].includes(t)},ariaHidden:{type:String,default:null,validator:t=>["true","false"].includes(t)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){var t;return(t=this.status)!=null?t:this.fetchedUserStatus},activeSvg(){var t;return(t={online:Gs,away:hn,busy:hn,dnd:Xs,invisible:pn,offline:pn}[this.activeStatus])!=null?t:null},ariaLabel(){return this.ariaHidden==="true"?null:D("User status: {status}",{status:Zn(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(t,e){var n,i,s,a;if(!t||!((i=(n=qe())==null?void 0:n.user_status)!=null&&i.enabled)){this.fetchedUserStatus=null;return}try{const{data:l}=await ze.get(Nn("/apps/user_status/api/v1/statuses/{user}",{user:t}));this.fetchedUserStatus=(a=(s=l.ocs)==null?void 0:s.data)==null?void 0:a.status}catch{this.fetchedUserStatus=null}}}}};var Ys=function(){var t=this,e=t._self._c;return t.activeStatus?e("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(t.status)},attrs:{role:"img","aria-hidden":t.ariaHidden,"aria-label":t.ariaLabel},domProps:{innerHTML:t._s(t.activeSvg)}}):t._e()},Zs=[],Js=K(Qs,Ys,Zs,!1,null,"0555d8d0");const to=Js.exports;Nt(xi);class F{constructor(e,n,i,s){this.r=e,this.g=n,this.b=i,s&&(this.name=s)}get color(){const e=n=>"00".concat(n.toString(16)).slice(-2);return"#".concat(e(this.r)).concat(e(this.g)).concat(e(this.b))}}function eo(t,e){const n=new Array(3);return n[0]=(e[1].r-e[0].r)/t,n[1]=(e[1].g-e[0].g)/t,n[2]=(e[1].b-e[0].b)/t,n}function xe(t,e,n){const i=[];i.push(e);const s=eo(t,[e,n]);for(let a=1;a<t;a++){const l=Math.floor(e.r+s[0]*a),r=Math.floor(e.g+s[1]*a),d=Math.floor(e.b+s[2]*a);i.push(new F(l,r,d))}return i}new F(182,70,157,D("Purple")),new F(191,103,139,D("Rosy brown")),new F(201,136,121,D("Feldspar")),new F(211,169,103,D("Whiskey")),new F(221,203,85,D("Gold")),new F(165,184,114,D("Olivine")),new F(110,166,143,D("Acapulco")),new F(55,148,172,D("Boston Blue")),new F(0,130,201,D("Nextcloud blue")),new F(45,115,190,D("Mariner")),new F(91,100,179,D("Blue Violet")),new F(136,85,168,D("Deluge"));function no(t){const e=new F(182,70,157,D("Purple")),n=new F(221,203,85,D("Gold")),i=new F(0,130,201,D("Nextcloud blue")),s=xe(t,e,n),a=xe(t,n,i),l=xe(t,i,e);return s.concat(a).concat(l)}var Jn={exports:{}},ti={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,i){return n<<i|n>>>32-i},rotr:function(n,i){return n<<32-i|n>>>i},endian:function(n){if(n.constructor==Number)return e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var i=0;i<n.length;i++)n[i]=e.endian(n[i]);return n},randomBytes:function(n){for(var i=[];n>0;n--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(n){for(var i=[],s=0,a=0;s<n.length;s++,a+=8)i[a>>>5]|=n[s]<<24-a%32;return i},wordsToBytes:function(n){for(var i=[],s=0;s<n.length*32;s+=8)i.push(n[s>>>5]>>>24-s%32&255);return i},bytesToHex:function(n){for(var i=[],s=0;s<n.length;s++)i.push((n[s]>>>4).toString(16)),i.push((n[s]&15).toString(16));return i.join("")},hexToBytes:function(n){for(var i=[],s=0;s<n.length;s+=2)i.push(parseInt(n.substr(s,2),16));return i},bytesToBase64:function(n){for(var i=[],s=0;s<n.length;s+=3)for(var a=n[s]<<16|n[s+1]<<8|n[s+2],l=0;l<4;l++)s*8+l*6<=n.length*8?i.push(t.charAt(a>>>6*(3-l)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],s=0,a=0;s<n.length;a=++s%4)a!=0&&i.push((t.indexOf(n.charAt(s-1))&Math.pow(2,-2*a+8)-1)<<a*2|t.indexOf(n.charAt(s))>>>6-a*2);return i}};ti.exports=e})();var io=ti.exports,Ne={utf8:{stringToBytes:function(t){return Ne.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(Ne.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(t.charCodeAt(n)&255);return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}},dn=Ne,so=function(t){return t!=null&&(ei(t)||oo(t)||!!t._isBuffer)};function ei(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function oo(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&ei(t.slice(0,0))}(function(){var t=io,e=dn.utf8,n=so,i=dn.bin,s=function(a,l){a.constructor==String?l&&l.encoding==="binary"?a=i.stringToBytes(a):a=e.stringToBytes(a):n(a)?a=Array.prototype.slice.call(a,0):!Array.isArray(a)&&a.constructor!==Uint8Array&&(a=a.toString());for(var r=t.bytesToWords(a),d=a.length*8,u=1732584193,h=-271733879,c=-1732584194,p=271733878,f=0;f<r.length;f++)r[f]=(r[f]<<8|r[f]>>>24)&16711935|(r[f]<<24|r[f]>>>8)&4278255360;r[d>>>5]|=128<<d%32,r[(d+64>>>9<<4)+14]=d;for(var g=s._ff,v=s._gg,S=s._hh,x=s._ii,f=0;f<r.length;f+=16){var C=u,A=h,B=c,L=p;u=g(u,h,c,p,r[f+0],7,-680876936),p=g(p,u,h,c,r[f+1],12,-389564586),c=g(c,p,u,h,r[f+2],17,606105819),h=g(h,c,p,u,r[f+3],22,-1044525330),u=g(u,h,c,p,r[f+4],7,-176418897),p=g(p,u,h,c,r[f+5],12,1200080426),c=g(c,p,u,h,r[f+6],17,-1473231341),h=g(h,c,p,u,r[f+7],22,-45705983),u=g(u,h,c,p,r[f+8],7,1770035416),p=g(p,u,h,c,r[f+9],12,-1958414417),c=g(c,p,u,h,r[f+10],17,-42063),h=g(h,c,p,u,r[f+11],22,-1990404162),u=g(u,h,c,p,r[f+12],7,1804603682),p=g(p,u,h,c,r[f+13],12,-40341101),c=g(c,p,u,h,r[f+14],17,-1502002290),h=g(h,c,p,u,r[f+15],22,1236535329),u=v(u,h,c,p,r[f+1],5,-165796510),p=v(p,u,h,c,r[f+6],9,-1069501632),c=v(c,p,u,h,r[f+11],14,643717713),h=v(h,c,p,u,r[f+0],20,-373897302),u=v(u,h,c,p,r[f+5],5,-701558691),p=v(p,u,h,c,r[f+10],9,38016083),c=v(c,p,u,h,r[f+15],14,-660478335),h=v(h,c,p,u,r[f+4],20,-405537848),u=v(u,h,c,p,r[f+9],5,568446438),p=v(p,u,h,c,r[f+14],9,-1019803690),c=v(c,p,u,h,r[f+3],14,-187363961),h=v(h,c,p,u,r[f+8],20,1163531501),u=v(u,h,c,p,r[f+13],5,-1444681467),p=v(p,u,h,c,r[f+2],9,-51403784),c=v(c,p,u,h,r[f+7],14,1735328473),h=v(h,c,p,u,r[f+12],20,-1926607734),u=S(u,h,c,p,r[f+5],4,-378558),p=S(p,u,h,c,r[f+8],11,-2022574463),c=S(c,p,u,h,r[f+11],16,1839030562),h=S(h,c,p,u,r[f+14],23,-35309556),u=S(u,h,c,p,r[f+1],4,-1530992060),p=S(p,u,h,c,r[f+4],11,1272893353),c=S(c,p,u,h,r[f+7],16,-155497632),h=S(h,c,p,u,r[f+10],23,-1094730640),u=S(u,h,c,p,r[f+13],4,681279174),p=S(p,u,h,c,r[f+0],11,-358537222),c=S(c,p,u,h,r[f+3],16,-722521979),h=S(h,c,p,u,r[f+6],23,76029189),u=S(u,h,c,p,r[f+9],4,-640364487),p=S(p,u,h,c,r[f+12],11,-421815835),c=S(c,p,u,h,r[f+15],16,530742520),h=S(h,c,p,u,r[f+2],23,-995338651),u=x(u,h,c,p,r[f+0],6,-198630844),p=x(p,u,h,c,r[f+7],10,1126891415),c=x(c,p,u,h,r[f+14],15,-1416354905),h=x(h,c,p,u,r[f+5],21,-57434055),u=x(u,h,c,p,r[f+12],6,1700485571),p=x(p,u,h,c,r[f+3],10,-1894986606),c=x(c,p,u,h,r[f+10],15,-1051523),h=x(h,c,p,u,r[f+1],21,-2054922799),u=x(u,h,c,p,r[f+8],6,1873313359),p=x(p,u,h,c,r[f+15],10,-30611744),c=x(c,p,u,h,r[f+6],15,-1560198380),h=x(h,c,p,u,r[f+13],21,1309151649),u=x(u,h,c,p,r[f+4],6,-145523070),p=x(p,u,h,c,r[f+11],10,-1120210379),c=x(c,p,u,h,r[f+2],15,718787259),h=x(h,c,p,u,r[f+9],21,-343485551),u=u+C>>>0,h=h+A>>>0,c=c+B>>>0,p=p+L>>>0}return t.endian([u,h,c,p])};s._ff=function(a,l,r,d,u,h,c){var p=a+(l&r|~l&d)+(u>>>0)+c;return(p<<h|p>>>32-h)+l},s._gg=function(a,l,r,d,u,h,c){var p=a+(l&d|r&~d)+(u>>>0)+c;return(p<<h|p>>>32-h)+l},s._hh=function(a,l,r,d,u,h,c){var p=a+(l^r^d)+(u>>>0)+c;return(p<<h|p>>>32-h)+l},s._ii=function(a,l,r,d,u,h,c){var p=a+(r^(l|~d))+(u>>>0)+c;return(p<<h|p>>>32-h)+l},s._blocksize=16,s._digestsize=16,Jn.exports=function(a,l){if(a==null)throw new Error("Illegal argument "+a);var r=t.wordsToBytes(s(a,l));return l&&l.asBytes?r:l&&l.asString?i.bytesToString(r):t.bytesToHex(r)}})();var ro=Jn.exports;const ao=Si(ro),fn=function(t){let e=t.toLowerCase();e.match(/^([0-9a-f]{4}-?){8}$/)===null&&(e=ao(e)),e=e.replace(/[^0-9a-f]/g,"");const n=6,i=no(n);function s(a,l){let r=0;const d=[];for(let u=0;u<a.length;u++)d.push(parseInt(a.charAt(u),16)%16);for(const u in d)r+=d[u];return parseInt(parseInt(r,10)%l,10)}return i[s(e,n*3)]},lo=(t,e,n)=>{const i=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";return Tn("/avatar"+(n?"/guest":"")+"/{user}/{size}"+(i?"/dark":""),{user:t,size:e})},ni=()=>window.outerHeight===screen.height,gn=Tt(ni());window.addEventListener("resize",()=>{gn.value=ni()}),Fn(gn);const Ge=1024,ii=Ge/2,Zt=t=>document.documentElement.clientWidth<t,mn=Tt(Zt(Ge)),uo=Tt(Zt(ii));window.addEventListener("resize",()=>{mn.value=Zt(Ge),uo.value=Zt(ii)},{passive:!0}),Fn(mn);const co="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",ho="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",St=(t,e)=>{for(const n in e)t[n]=e[n];return t},Te="numeric",Pe="ascii",Ie="alpha",$t="asciinumeric",zt="alphanumeric",Me="domain",si="emoji",po="scheme",fo="slashscheme",yn="whitespace";function go(t,e){return t in e||(e[t]=[]),e[t]}function ht(t,e,n){e[Te]&&(e[$t]=!0,e[zt]=!0),e[Pe]&&(e[$t]=!0,e[Ie]=!0),e[$t]&&(e[zt]=!0),e[Ie]&&(e[zt]=!0),e[zt]&&(e[Me]=!0),e[si]&&(e[Me]=!0);for(const i in e){const s=go(i,n);s.indexOf(t)<0&&s.push(t)}}function mo(t,e){const n={};for(const i in e)e[i].indexOf(t)>=0&&(n[i]=!0);return n}function z(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}z.groups={},z.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let i=0;i<e.jr.length;i++){const s=e.jr[i][0],a=e.jr[i][1];if(a&&s.test(t))return a}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,i){for(let s=0;s<t.length;s++)this.tt(t[s],e,n,i)},tr(t,e,n,i){i=i||z.groups;let s;return e&&e.j?s=e:(s=new z(e),n&&i&&ht(e,n,i)),this.jr.push([t,s]),s},ts(t,e,n,i){let s=this;const a=t.length;if(!a)return s;for(let l=0;l<a-1;l++)s=s.tt(t[l]);return s.tt(t[a-1],e,n,i)},tt(t,e,n,i){i=i||z.groups;const s=this;if(e&&e.j)return s.j[t]=e,e;const a=e;let l,r=s.go(t);if(r?(l=new z,St(l.j,r.j),l.jr.push.apply(l.jr,r.jr),l.jd=r.jd,l.t=r.t):l=new z,a){if(i)if(l.t&&typeof l.t=="string"){const d=St(mo(l.t,i),n);ht(a,d,i)}else n&&ht(a,n,i);l.t=a}return s.j[t]=l,l}};const _=(t,e,n,i,s)=>t.ta(e,n,i,s),$=(t,e,n,i,s)=>t.tr(e,n,i,s),vn=(t,e,n,i,s)=>t.ts(e,n,i,s),b=(t,e,n,i,s)=>t.tt(e,n,i,s),Y="WORD",Fe="UWORD",Bt="LOCALHOST",je="TLD",Ue="UTLD",Wt="SCHEME",gt="SLASH_SCHEME",Xe="NUM",oi="WS",Qe="NL",mt="OPENBRACE",Ct="OPENBRACKET",Ot="OPENANGLEBRACKET",Et="OPENPAREN",ut="CLOSEBRACE",yt="CLOSEBRACKET",vt="CLOSEANGLEBRACKET",ct="CLOSEPAREN",Jt="AMPERSAND",te="APOSTROPHE",ee="ASTERISK",et="AT",ne="BACKSLASH",ie="BACKTICK",se="CARET",nt="COLON",Ye="COMMA",oe="DOLLAR",q="DOT",re="EQUALS",Ze="EXCLAMATION",G="HYPHEN",ae="PERCENT",le="PIPE",ue="PLUS",ce="POUND",he="QUERY",Je="QUOTE",tn="SEMI",X="SLASH",kt="TILDE",pe="UNDERSCORE",ri="EMOJI",de="SYM";var ai=Object.freeze({__proto__:null,WORD:Y,UWORD:Fe,LOCALHOST:Bt,TLD:je,UTLD:Ue,SCHEME:Wt,SLASH_SCHEME:gt,NUM:Xe,WS:oi,NL:Qe,OPENBRACE:mt,OPENBRACKET:Ct,OPENANGLEBRACKET:Ot,OPENPAREN:Et,CLOSEBRACE:ut,CLOSEBRACKET:yt,CLOSEANGLEBRACKET:vt,CLOSEPAREN:ct,AMPERSAND:Jt,APOSTROPHE:te,ASTERISK:ee,AT:et,BACKSLASH:ne,BACKTICK:ie,CARET:se,COLON:nt,COMMA:Ye,DOLLAR:oe,DOT:q,EQUALS:re,EXCLAMATION:Ze,HYPHEN:G,PERCENT:ae,PIPE:le,PLUS:ue,POUND:ce,QUERY:he,QUOTE:Je,SEMI:tn,SLASH:X,TILDE:kt,UNDERSCORE:pe,EMOJI:ri,SYM:de});const ft=/[a-z]/,Se=new RegExp("\\p{L}","u"),_e=new RegExp("\\p{Emoji}","u"),Ae=/\d/,bn=/\s/,wn=` `,yo="️",vo="";let Rt=null,Vt=null;function bo(t){t===void 0&&(t=[]);const e={};z.groups=e;const n=new z;Rt==null&&(Rt=xn(co)),Vt==null&&(Vt=xn(ho)),b(n,"'",te),b(n,"{",mt),b(n,"[",Ct),b(n,"<",Ot),b(n,"(",Et),b(n,"}",ut),b(n,"]",yt),b(n,">",vt),b(n,")",ct),b(n,"&",Jt),b(n,"*",ee),b(n,"@",et),b(n,"`",ie),b(n,"^",se),b(n,":",nt),b(n,",",Ye),b(n,"$",oe),b(n,".",q),b(n,"=",re),b(n,"!",Ze),b(n,"-",G),b(n,"%",ae),b(n,"|",le),b(n,"+",ue),b(n,"#",ce),b(n,"?",he),b(n,'"',Je),b(n,"/",X),b(n,";",tn),b(n,"~",kt),b(n,"_",pe),b(n,"\\",ne);const i=$(n,Ae,Xe,{[Te]:!0});$(i,Ae,i);const s=$(n,ft,Y,{[Pe]:!0});$(s,ft,s);const a=$(n,Se,Fe,{[Ie]:!0});$(a,ft),$(a,Se,a);const l=$(n,bn,oi,{[yn]:!0});b(n,wn,Qe,{[yn]:!0}),b(l,wn),$(l,bn,l);const r=$(n,_e,ri,{[si]:!0});$(r,_e,r),b(r,yo,r);const d=b(r,vo);$(d,_e,r);const u=[[ft,s]],h=[[ft,null],[Se,a]];for(let c=0;c<Rt.length;c++)tt(n,Rt[c],je,Y,u);for(let c=0;c<Vt.length;c++)tt(n,Vt[c],Ue,Fe,h);ht(je,{tld:!0,ascii:!0},e),ht(Ue,{utld:!0,alpha:!0},e),tt(n,"file",Wt,Y,u),tt(n,"mailto",Wt,Y,u),tt(n,"http",gt,Y,u),tt(n,"https",gt,Y,u),tt(n,"ftp",gt,Y,u),tt(n,"ftps",gt,Y,u),ht(Wt,{scheme:!0,ascii:!0},e),ht(gt,{slashscheme:!0,ascii:!0},e),t=t.sort((c,p)=>c[0]>p[0]?1:-1);for(let c=0;c<t.length;c++){const p=t[c][0],f=t[c][1]?{[po]:!0}:{[fo]:!0};p.indexOf("-")>=0?f[Me]=!0:ft.test(p)?Ae.test(p)?f[$t]=!0:f[Pe]=!0:f[Te]=!0,vn(n,p,p,f)}return vn(n,"localhost",Bt,{ascii:!0}),n.jd=new z(de),{start:n,tokens:St({groups:e},ai)}}function wo(t,e){const n=xo(e.replace(/[A-Z]/g,r=>r.toLowerCase())),i=n.length,s=[];let a=0,l=0;for(;l<i;){let r=t,d=null,u=0,h=null,c=-1,p=-1;for(;l<i&&(d=r.go(n[l]));)r=d,r.accepts()?(c=0,p=0,h=r):c>=0&&(c+=n[l].length,p++),u+=n[l].length,a+=n[l].length,l++;a-=c,l-=p,u-=c,s.push({t:h.t,v:e.slice(a-u,a),s:a-u,e:a})}return s}function xo(t){const e=[],n=t.length;let i=0;for(;i<n;){let s=t.charCodeAt(i),a,l=s<55296||s>56319||i+1===n||(a=t.charCodeAt(i+1))<56320||a>57343?t[i]:t.slice(i,i+2);e.push(l),i+=l.length}return e}function tt(t,e,n,i,s){let a;const l=e.length;for(let r=0;r<l-1;r++){const d=e[r];t.j[d]?a=t.j[d]:(a=new z(i),a.jr=s.slice(),t.j[d]=a),t=a}return a=new z(n),a.jr=s.slice(),t.j[e[l-1]]=a,a}function xn(t){const e=[],n=[];let i=0,s="0123456789";for(;i<t.length;){let a=0;for(;s.indexOf(t[i+a])>=0;)a++;if(a>0){e.push(n.join(""));for(let l=parseInt(t.substring(i,i+a),10);l>0;l--)n.pop();i+=a}else n.push(t[i]),i++}return e}const Dt={defaultProtocol:"http",events:null,format:Sn,formatHref:Sn,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function en(t,e){e===void 0&&(e=null);let n=St({},Dt);t&&(n=St(n,t instanceof en?t.o:t));const i=n.ignoreTags,s=[];for(let a=0;a<i.length;a++)s.push(i[a].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=s}en.prototype={o:Dt,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const i=e!=null;let s=this.o[t];return s&&(typeof s=="object"?(s=n.t in s?s[n.t]:Dt[t],typeof s=="function"&&i&&(s=s(e,n))):typeof s=="function"&&i&&(s=s(e,n.t,n)),s)},getObj(t,e,n){let i=this.o[t];return typeof i=="function"&&e!=null&&(i=i(e,n.t,n)),i},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Sn(t){return t}function li(t,e){this.t="token",this.v=t,this.tk=e}li.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),i=t.get("format",e,this);return n&&i.length>n?i.substring(0,n)+"…":i},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=Dt.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),i=t.get("formatHref",n,this),s=t.get("tagName",n,e),a=this.toFormattedString(t),l={},r=t.get("className",n,e),d=t.get("target",n,e),u=t.get("rel",n,e),h=t.getObj("attributes",n,e),c=t.getObj("events",n,e);return l.href=i,r&&(l.class=r),d&&(l.target=d),u&&(l.rel=u),h&&St(l,h),{tagName:s,attributes:l,content:a,eventListeners:c}}};function ye(t,e){class n extends li{constructor(s,a){super(s,a),this.t=t}}for(const i in e)n.prototype[i]=e[i];return n.t=t,n}const _n=ye("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),An=ye("text"),So=ye("nl"),lt=ye("url",{isLink:!0,toHref(t){return t===void 0&&(t=Dt.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Bt&&t[1].t===nt}}),I=t=>new z(t);function _o(t){let{groups:e}=t;const n=e.domain.concat([Jt,ee,et,ne,ie,se,oe,re,G,Xe,ae,le,ue,ce,X,de,kt,pe]),i=[te,vt,ut,yt,ct,nt,Ye,q,Ze,Ot,mt,Ct,Et,he,Je,tn],s=[Jt,te,ee,ne,ie,se,ut,oe,re,G,mt,ae,le,ue,ce,he,X,de,kt,pe],a=I(),l=b(a,kt);_(l,s,l),_(l,e.domain,l);const r=I(),d=I(),u=I();_(a,e.domain,r),_(a,e.scheme,d),_(a,e.slashscheme,u),_(r,s,l),_(r,e.domain,r);const h=b(r,et);b(l,et,h),b(d,et,h),b(u,et,h);const c=b(l,q);_(c,s,l),_(c,e.domain,l);const p=I();_(h,e.domain,p),_(p,e.domain,p);const f=b(p,q);_(f,e.domain,p);const g=I(_n);_(f,e.tld,g),_(f,e.utld,g),b(h,Bt,g);const v=b(p,G);_(v,e.domain,p),_(g,e.domain,p),b(g,q,f),b(g,G,v);const S=b(g,nt);_(S,e.numeric,_n);const x=b(r,G),C=b(r,q);_(x,e.domain,r),_(C,s,l),_(C,e.domain,r);const A=I(lt);_(C,e.tld,A),_(C,e.utld,A),_(A,e.domain,r),_(A,s,l),b(A,q,C),b(A,G,x),b(A,et,h);const B=b(A,nt),L=I(lt);_(B,e.numeric,L);const O=I(lt),T=I();_(O,n,O),_(O,i,T),_(T,n,O),_(T,i,T),b(A,X,O),b(L,X,O);const V=b(d,nt),P=b(u,nt),o=b(P,X),m=b(o,X);_(d,e.domain,r),b(d,q,C),b(d,G,x),_(u,e.domain,r),b(u,q,C),b(u,G,x),_(V,e.domain,O),b(V,X,O),_(m,e.domain,O),_(m,n,O),b(m,X,O);const y=b(O,mt),w=b(O,Ct),k=b(O,Ot),E=b(O,Et);b(T,mt,y),b(T,Ct,w),b(T,Ot,k),b(T,Et,E),b(y,ut,O),b(w,yt,O),b(k,vt,O),b(E,ct,O),b(y,ut,O);const N=I(lt),M=I(lt),H=I(lt),U=I(lt);_(y,n,N),_(w,n,M),_(k,n,H),_(E,n,U);const rt=I(),Mt=I(),Ft=I(),jt=I();return _(y,i),_(w,i),_(k,i),_(E,i),_(N,n,N),_(M,n,M),_(H,n,H),_(U,n,U),_(N,i,N),_(M,i,M),_(H,i,H),_(U,i,U),_(rt,n,rt),_(Mt,n,M),_(Ft,n,H),_(jt,n,U),_(rt,i,rt),_(Mt,i,Mt),_(Ft,i,Ft),_(jt,i,jt),b(M,yt,O),b(H,vt,O),b(U,ct,O),b(N,ut,O),b(Mt,yt,O),b(Ft,vt,O),b(jt,ct,O),b(rt,ct,O),b(a,Bt,A),b(a,Qe,So),{start:a,tokens:ai}}function Ao(t,e,n){let i=n.length,s=0,a=[],l=[];for(;s<i;){let r=t,d=null,u=null,h=0,c=null,p=-1;for(;s<i&&!(d=r.go(n[s].t));)l.push(n[s++]);for(;s<i&&(u=d||r.go(n[s].t));)d=null,r=u,r.accepts()?(p=0,c=r):p>=0&&p++,s++,h++;if(p<0)s-=h,s<i&&(l.push(n[s]),s++);else{l.length>0&&(a.push(Ce(An,e,l)),l=[]),s-=p,h-=p;const f=c.t,g=n.slice(s-h,s);a.push(Ce(f,e,g))}}return l.length>0&&a.push(Ce(An,e,l)),a}function Ce(t,e,n){const i=n[0].s,s=n[n.length-1].e,a=e.slice(i,s);return new t(a,n)}const j={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Co(){j.scanner=bo(j.customSchemes);for(let t=0;t<j.tokenQueue.length;t++)j.tokenQueue[t][1]({scanner:j.scanner});j.parser=_o(j.scanner.tokens);for(let t=0;t<j.pluginQueue.length;t++)j.pluginQueue[t][1]({scanner:j.scanner,parser:j.parser});j.initialized=!0}function Oo(t){return j.initialized||Co(),Ao(j.parser.start,t,wo(j.scanner.start,t))}function ui(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Eo(t){return t.replace(/"/g,""")}function ko(t){const e=[];for(const n in t){let i=t[n]+"";e.push(`${n}="${Eo(i)}"`)}return e.join(" ")}function Lo(t){let{tagName:e,attributes:n,content:i}=t;return`<${e} ${ko(n)}>${ui(i)}</${e}>`}function Bo(t,e){e===void 0&&(e={}),e=new en(e,Lo);const n=Oo(t),i=[];for(let s=0;s<n.length;s++){const a=n[s];a.t==="nl"&&e.get("nl2br")?i.push(`<br> `):!a.isLink||!e.check(a)?i.push(ui(a.toString())):i.push(e.render(a))}return i.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(t){return Bo(this,t)}});var Do={exports:{}};(function(t){(function(e){if(typeof n!="function"){var n=function(g){return g};n.nonNative=!0}const i=n("plaintext"),s=n("html"),a=n("comment"),l=/<(\w*)>/g,r=/<\/?([^\s\/>]+)/;function d(g,v,S){g=g||"",v=v||[],S=S||"";let x=h(v,S);return c(g,x)}function u(g,v){g=g||[],v=v||"";let S=h(g,v);return function(x){return c(x||"",S)}}d.init_streaming_mode=u;function h(g,v){return g=p(g),{allowable_tags:g,tag_replacement:v,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function c(g,v){if(typeof g!="string")throw new TypeError("'html' parameter must be a string");let S=v.allowable_tags,x=v.tag_replacement,C=v.state,A=v.tag_buffer,B=v.depth,L=v.in_quote_char,O="";for(let T=0,V=g.length;T<V;T++){let P=g[T];if(C===i)switch(P){case"<":C=s,A+=P;break;default:O+=P;break}else if(C===s)switch(P){case"<":if(L)break;B++;break;case">":if(L)break;if(B){B--;break}L="",C=i,A+=">",S.has(f(A))?O+=A:O+=x,A="";break;case'"':case"'":P===L?L="":L=L||P,A+=P;break;case"-":A==="<!-"&&(C=a),A+=P;break;case" ":case` `:if(A==="<"){C=i,O+="< ",A="";break}A+=P;break;default:A+=P;break}else if(C===a)switch(P){case">":A.slice(-2)=="--"&&(C=i),A="";break;default:A+=P;break}}return v.state=C,v.tag_buffer=A,v.depth=B,v.in_quote_char=L,O}function p(g){let v=new Set;if(typeof g=="string"){let S;for(;S=l.exec(g);)v.add(S[1])}else!n.nonNative&&typeof g[n.iterator]=="function"?v=new Set(g):typeof g.forEach=="function"&&g.forEach(v.add,v);return v}function f(g){let v=r.exec(g);return v?v[1].toLowerCase():null}t.exports?t.exports=d:e.striptags=d})(Dn)})(Do);const ci=function(t){if(t==null)return Io;if(typeof t=="function")return ve(t);if(typeof t=="object")return Array.isArray(t)?No(t):To(t);if(typeof t=="string")return Po(t);throw new Error("Expected function, string, or object as test")};function No(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=ci(t[n]);return ve(i);function i(...s){let a=-1;for(;++a<e.length;)if(e[a].apply(this,s))return!0;return!1}}function To(t){const e=t;return ve(n);function n(i){const s=i;let a;for(a in t)if(s[a]!==e[a])return!1;return!0}}function Po(t){return ve(e);function e(n){return n&&n.type===t}}function ve(t){return e;function e(n,i,s){return!!(Mo(n)&&t.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function Io(){return!0}function Mo(t){return t!==null&&typeof t=="object"&&"type"in t}const hi=[],Fo=!0,Cn=!1,pi="skip";function jo(t,e,n,i){let s;typeof e=="function"&&typeof n!="function"?(i=n,n=e):s=e;const a=ci(s),l=i?-1:1;r(t,void 0,[])();function r(d,u,h){const c=d&&typeof d=="object"?d:{};if(typeof c.type=="string"){const f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(d.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=hi,g,v,S;if((!e||a(d,u,h[h.length-1]||void 0))&&(f=Uo(n(d,h)),f[0]===Cn))return f;if("children"in d&&d.children){const x=d;if(x.children&&f[0]!==pi)for(v=(i?x.children.length:-1)+l,S=h.concat(x);v>-1&&v<x.children.length;){const C=x.children[v];if(g=r(C,v,S)(),g[0]===Cn)return g;v=typeof g[1]=="number"?g[1]:v+l}}return f}}}function Uo(t){return Array.isArray(t)?t:typeof t=="number"?[Fo,t]:t==null?hi:[t]}function zo(t,e,n,i){let s,a,l;typeof e=="function"&&typeof n!="function"?(a=void 0,l=e,s=n):(a=e,l=n,s=i),jo(t,a,r,s);function r(d,u){const h=u[u.length-1],c=h?h.children.indexOf(d):void 0;return l(d,c,h)}}function Oe(t,e,n){const i={type:String(t)};return n==null&&(typeof e=="string"||Array.isArray(e))?n=e:Object.assign(i,e),Array.isArray(n)?i.children=n:n!=null&&(i.value=String(n)),i}const dr=/(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig,On=/(\s|\(|^)((https?:\/\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/ig,Ro={name:"NcLink",props:{href:{type:String,required:!0}},render(t){return t("a",{attrs:{href:this.href,rel:"noopener noreferrer",target:"_blank",class:"rich-text--external-link"}},[this.href.trim()])}},fr=function({autolink:t,useMarkdown:e,useExtendedMarkdown:n}){return function(i){n||!e||!t||zo(i,s=>s.type==="text",(s,a,l)=>{let r=Vo(s.value);return r=r.map(d=>typeof d=="string"?Oe("text",d):Oe("link",{url:d.props.href},[Oe("text",d.props.href)])).filter(d=>d),l.children.splice(a,1,...r.flat()),[pi,a+r.flat().length]})}},Vo=t=>{let e=On.exec(t);const n=[];let i=0;for(;e!==null;){let a=e[2],l,r=t.substring(i,e.index+e[1].length);a[0]===" "&&(r+=a[0],a=a.substring(1).trim());const d=a[a.length-1];(d==="."||d===","||d===";"||e[0][0]==="("&&d===")")&&(a=a.substring(0,a.length-1),l=d),n.push(r),n.push({component:Ro,props:{href:a}}),l&&n.push(l),i=e.index+e[0].length,e=On.exec(t)}n.push(t.substring(i));const s=n.map(a=>typeof a=="string"?a:a.props.href).join("");return t===s?n:(console.error("Failed to reassemble the chunked text: "+t),t)},Ho=(t,e)=>{const n=(h,c)=>h.startsWith(c)?h.slice(c.length):h,i=(h,...c)=>c.reduce((p,f)=>n(p,f),h);if(!t)return null;const s=/^https?:\/\//.test(e),a=/^[a-z][a-z0-9+.-]*:.+/.test(e);if(!s&&a||s&&!e.startsWith(nn())||!s&&!e.startsWith("/"))return null;const l=s?i(e,nn(),"/index.php"):e,r=i(t.history.base,_i(),"/index.php"),d=i(l,r)||"/",u=t.resolve(d).route;return u.matched.length?u.fullPath:null};qt.util.warn;function _t(t){var e;const n=At(t);return(e=n?.$el)!=null?e:n}const di=Oi?window:void 0;function Kt(...t){let e,n,i,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,s]=t,e=di):[e,n,i,s]=t,!e)return Ht;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],l=()=>{a.forEach(h=>h()),a.length=0},r=(h,c,p,f)=>(h.addEventListener(c,p,f),()=>h.removeEventListener(c,p,f)),d=Re(()=>[_t(e),At(s)],([h,c])=>{if(l(),!h)return;const p=Ai(c)?{...c}:c;a.push(...n.flatMap(f=>i.map(g=>r(h,f,g,p))))},{immediate:!0,flush:"post"}),u=()=>{d(),l()};return Pn(u),u}let En=!1;function kn(t,e,n={}){const{window:i=di,ignore:s=[],capture:a=!0,detectIframe:l=!1}=n;if(!i)return Ht;Le&&!En&&(En=!0,Array.from(i.document.body.children).forEach(h=>h.addEventListener("click",Ht)),i.document.documentElement.addEventListener("click",Ht));let r=!0;const d=h=>s.some(c=>{if(typeof c=="string")return Array.from(i.document.querySelectorAll(c)).some(p=>p===h.target||h.composedPath().includes(p));{const p=_t(c);return p&&(h.target===p||h.composedPath().includes(p))}}),u=[Kt(i,"click",h=>{const c=_t(t);if(!(!c||c===h.target||h.composedPath().includes(c))){if(h.detail===0&&(r=!d(h)),!r){r=!0;return}e(h)}},{passive:!0,capture:a}),Kt(i,"pointerdown",h=>{const c=_t(t);r=!d(h)&&!!(c&&!h.composedPath().includes(c))},{passive:!0}),l&&Kt(i,"blur",h=>{setTimeout(()=>{var c;const p=_t(t);((c=i.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!p?.contains(i.document.activeElement)&&e(h)},0)})].filter(Boolean);return()=>u.forEach(h=>h())}const $o={[sn.mounted](t,e){const n=!e.modifiers.bubble;if(typeof e.value=="function")t.__onClickOutside_stop=kn(t,e.value,{capture:n});else{const[i,s]=e.value;t.__onClickOutside_stop=kn(t,i,Object.assign({capture:n},s))}},[sn.unmounted](t){t.__onClickOutside_stop()}};function Ee(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function fi(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:fi(n)}}function Wo(t){const e=t||window.event,n=e.target;return fi(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const ke=new WeakMap;function Ko(t,e=!1){const n=Tt(e);let i=null,s="";Re(Ci(t),r=>{const d=Ee(At(r));if(d){const u=d;if(ke.get(u)||ke.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const a=()=>{const r=Ee(At(t));!r||n.value||(Le&&(i=Kt(r,"touchmove",d=>{Wo(d)},{passive:!1})),r.style.overflow="hidden",n.value=!0)},l=()=>{const r=Ee(At(t));!r||!n.value||(Le&&i?.(),r.style.overflow=s,ke.delete(r),n.value=!1)};return Pn(l),Ti({get(){return n.value},set(r){r?a():l()}})}function qo(){let t=!1;const e=Tt(!1);return(n,i)=>{if(e.value=i.value,t)return;t=!0;const s=Ko(n,i.value);Re(e,a=>s.value=a)}}qo();const gi={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(t){var e,n;if(!t)return;const i=qe();if(!(!Object.prototype.hasOwnProperty.call(i,"user_status")||!i.user_status.enabled)&&Be())try{const{data:s}=await ze.get(Nn("apps/user_status/api/v1/statuses/{userId}",{userId:t})),{status:a,message:l,icon:r}=s.ocs.data;this.userStatus.status=a,this.userStatus.message=l||"",this.userStatus.icon=r||"",this.hasStatus=!0}catch(s){if(s.response.status===404&&((n=(e=s.response.data.ocs)==null?void 0:e.data)==null?void 0:n.length)===0)return;console.error(s)}}}};Nt(Ei);const mi=In("nextcloud").persist().build();function Go(t){const e=mi.getItem("user-has-avatar."+t);return typeof e=="string"?!!e:null}function Ln(t,e){t&&mi.setItem("user-has-avatar."+t,e)}const Xo={name:"NcAvatar",directives:{ClickOutside:$o},components:{DotsHorizontal:ki,NcActions:Li,NcButton:Bi,NcIconSvgWrapper:jn,NcLoadingIcon:Mn,NcUserStatusIcon:to},mixins:[gi],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!0},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[String,Object,Element,Boolean],default:"body"}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){var t,e;if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?D("Avatar of {displayName}, {status}",{displayName:(t=this.displayName)!=null?t:this.user,status:Zn(this.userStatus.status)}):D("Avatar of {displayName}",{displayName:(e=this.displayName)!=null?e:this.user})},canDisplayUserStatus(){return this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return this.showUserStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){var t;return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===((t=Be())==null?void 0:t.uid)||this.userDoesNotExist||this.url)},showInitials(){return this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--size":this.size+"px",lineHeight:this.size+"px",fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:t,g:e,b:n}=fn(this.userIdentifier);return{backgroundColor:"rgba(".concat(t,", ").concat(e,", ").concat(n,", 0.1)")}},initialsStyle(){const{r:t,g:e,b:n}=fn(this.userIdentifier);return{color:"rgb(".concat(t,", ").concat(e,", ").concat(n,")")}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let t="?";if(this.showInitials){const e=this.userIdentifier.trim();if(e==="")return t;const n=e.match(/[\p{L}\p{N}\s]/gu);if(n==null)return t;const i=n.join(""),s=i.lastIndexOf(" ");t=String.fromCodePoint(i.codePointAt(0)),s!==-1&&(t=t.concat(String.fromCodePoint(i.codePointAt(s+1))))}return t.toLocaleUpperCase()},menu(){const t=this.contactsMenuActions.map(n=>{const i=Ho(this.$router,n.hyperlink);return{ncActionComponent:i?Vs:Fs,ncActionComponentProps:i?{to:i,icon:n.icon}:{href:n.hyperlink,icon:n.icon},text:n.title}});function e(n){const i=document.createTextNode(n),s=document.createElement("p");return s.appendChild(i),s.innerHTML}if(this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> <text x="50%" y="50%" text-anchor="middle" style="dominant-baseline: central; font-size: 85%">`.concat(e(this.userStatus.icon),`</text> </svg>`);return[{ncActionComponent:qs,ncActionComponentProps:{},iconSvg:this.userStatus.icon?n:void 0,text:"".concat(this.userStatus.message)}].concat(t)}return t}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),be("settings:avatar:updated",this.loadAvatarUrl),be("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),be("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){we("settings:avatar:updated",this.loadAvatarUrl),we("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&we("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:D,handleUserStatusUpdated(t){this.user===t.userId&&(this.userStatus={status:t.status,icon:t.icon,message:t.message})},async toggleMenu(t){t.type==="keydown"&&t.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const t=encodeURIComponent(this.user),{data:e}=await ze.post(Tn("contactsmenu/findOne"),"shareType=0&shareWith=".concat(t));this.contactsMenuActions=e.topAction?[e.topAction].concat(e.actions):e.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const t=this.avatarUrlGenerator(this.user,64),e=[t+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(t,e)}else{const t=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(t)}},avatarUrlGenerator(t,e){var n;let i=lo(t,e,this.isGuest);return t===((n=Be())==null?void 0:n.uid)&&typeof oc_userconfig<"u"&&(i+="?v="+oc_userconfig.avatar.version),i},updateImageIfValid(t,e=null){const n=Go(this.user);if(this.isUserDefined&&typeof n=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=t,e&&(this.avatarSrcSetLoaded=e),n===!1&&(this.userDoesNotExist=!0);return}const i=new Image;i.onload=()=>{this.avatarUrlLoaded=t,e&&(this.avatarSrcSetLoaded=e),this.isAvatarLoaded=!0,Ln(this.user,!0)},i.onerror=()=>{console.debug("Invalid avatar url",t),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,Ln(this.user,!1)},e&&(i.srcset=e),i.src=t}}};var Qo=function(){var t=this,e=t._self._c;return e("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],ref:"main",staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":t.userDoesNotExist,"avatardiv--with-menu":t.hasMenu,"avatardiv--with-menu-loading":t.contactsMenuLoading},style:t.avatarStyle},[t._t("icon",function(){return[t.iconClass?e("span",{staticClass:"avatar-class-icon",class:t.iconClass}):t.isAvatarLoaded&&!t.userDoesNotExist?e("img",{attrs:{src:t.avatarUrlLoaded,srcset:t.avatarSrcSetLoaded,alt:""}}):t._e()]}),t.hasMenu&&t.menu.length===0?e("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{type:"tertiary-no-background","aria-label":t.avatarAriaLabel,title:t.tooltip},on:{click:t.toggleMenu},scopedSlots:t._u([{key:"icon",fn:function(){return[t.contactsMenuLoading?e("NcLoadingIcon"):e("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):t.hasMenu?e("NcActions",{attrs:{"force-menu":"","manual-open":"",type:"tertiary-no-background",container:t.menuContainer,open:t.contactsMenuOpenState,"aria-label":t.avatarAriaLabel,title:t.tooltip},on:{"update:open":function(n){t.contactsMenuOpenState=n},click:t.toggleMenu},scopedSlots:t._u([t.contactsMenuLoading?{key:"icon",fn:function(){return[e("NcLoadingIcon")]},proxy:!0}:null],null,!0)},t._l(t.menu,function(n,i){return e(n.ncActionComponent,t._b({key:i,tag:"component",scopedSlots:t._u([n.iconSvg?{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{svg:n.iconSvg}})]},proxy:!0}:null],null,!0)},"component",n.ncActionComponentProps,!1),[t._v(" "+t._s(n.text)+" ")])}),1):t._e(),t.showUserStatusIconOnAvatar?e("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[t._v(" "+t._s(t.userStatus.icon)+" ")]):t.canDisplayUserStatus?e("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:t.userStatus.status,"aria-hidden":String(t.hasMenu)}}):t._e(),t.showInitials?e("span",{staticClass:"avatardiv__initials-wrapper",style:t.initialsWrapperStyle},[e("span",{staticClass:"avatardiv__initials",style:t.initialsStyle},[t._v(" "+t._s(t.initials)+" ")])]):t._e()],2)},Yo=[],Zo=K(Xo,Qo,Yo,!1,null,"9ce7ef1d");const Jo=Zo.exports,tr=8,Bn=32,er={name:"NcListItemIcon",components:{NcAvatar:Jo,NcHighlight:Yn,NcIconSvgWrapper:jn},mixins:[gi],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:Bn},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:tr,defaultSize:Bn}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){var t,e;return((e=(t=this.subname)==null?void 0:t.trim)==null?void 0:e.call(t))!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const t=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*t+"px","--margin":this.margin+"px"}},searchParts(){const t=/^([^<]*)<([^>]+)>?$/,e=this.search.match(t);return this.isNoUser||!e?[this.search,this.search]:[e[1].trim(),e[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var nr=function(){var t=this,e=t._self._c;return e("span",t._g({staticClass:"option",class:{"option--compact":t.avatarSize<t.defaultSize},style:t.cssVars,attrs:{id:t.id}},t.$listeners),[e("NcAvatar",t._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":t.displayName||t.name,"is-no-user":t.isNoUser,size:t.avatarSize}},"NcAvatar",t.$attrs,!1)),e("div",{staticClass:"option__details"},[e("NcHighlight",{staticClass:"option__lineone",attrs:{text:t.name,search:t.searchParts[0]}}),t.isValidSubname&&t.isSizeBigEnough?e("NcHighlight",{staticClass:"option__linetwo",attrs:{text:t.subname,search:t.searchParts[1]}}):t.hasStatus?e("span",[e("span",[t._v(t._s(t.userStatus.icon))]),e("span",[t._v(t._s(t.userStatus.message))])]):t._e()],1),t._t("default",function(){return[t.hasIconSvg?e("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:t.iconSvg,name:t.iconName}}):t.hasIcon?e("span",{staticClass:"icon option__icon",class:t.icon,attrs:{"aria-label":t.iconName}}):t._e()]})],2)},ir=[],sr=K(er,nr,ir,!1,null,"a0f4d73a");const or=sr.exports;Nt(Ni);const rr={name:"NcSelect",components:{ChevronDown:xs,NcEllipsisedOption:Bs,NcListItemIcon:or,NcLoadingIcon:Mn,VueSelect:at.VueSelect},props:{...at.VueSelect.props,...at.VueSelect.mixins.reduce((t,e)=>({...t,...e.props}),{}),ariaLabelClearSelected:{type:String,default:D("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:D("Options")},ariaLabelDeselectOption:{type:Function,default:t=>D("Deselect {option}",{option:t})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},components:{type:Object,default:()=>({Deselect:{render:t=>t(Di,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:t,open:e})=>t?!1:e},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>"select-input-".concat(on())},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(t,e){return{...t,27:n=>{e.open&&n.stopPropagation(),t[27](n)}}}},uid:{type:String,default:()=>on()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" "],setup(){const t=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline"));return{avatarSize:t-2*e}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.value===null||Array.isArray(this.value)&&this.value.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(t,e,{width:n})=>{t.style.width=n;const i={name:"addClass",fn(l){return t.classList.add("vs__dropdown-menu--floating"),{}}},s={name:"togglePlacementClass",fn({placement:l}){return e.$el.classList.toggle("select--drop-up",l==="top"),t.classList.toggle("vs__dropdown-menu--floating-placement-top",l==="top"),{}}},a=()=>{ms(e.$refs.toggle,t,{placement:this.placement,middleware:[Xi(-1),i,s,qi(),Qi({limiter:Yi()})]}).then(({x:l,y:r})=>{Object.assign(t.style,{left:"".concat(l,"px"),top:"".concat(r,"px"),width:"".concat(e.$refs.toggle.getBoundingClientRect().width,"px")})})};return gs(e.$refs.toggle,t,a)}},localFilterBy(){const t=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(e,n,i)=>{var s,a,l;const r=i.match(t);return r&&((l=(a=(s=e.subname)==null?void 0:s.toLocaleLowerCase)==null?void 0:a.call(s))==null?void 0:l.indexOf(r[1].toLocaleLowerCase()))>-1||"".concat(n," ").concat(e.subname).toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:at.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":at.VueSelect.props.label.default},propsToForward(){const t=[...Object.keys(at.VueSelect.props),...at.VueSelect.mixins.flatMap(e=>{var n;return Object.keys((n=e.props)!=null?n:{})})];return{...Object.fromEntries(Object.entries(this.$props).filter(([e,n])=>t.includes(e))),calculatePosition:this.localCalculatePosition,filterBy:this.localFilterBy,label:this.localLabel}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&qt.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&qt.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:D}};var ar=function(){var t=this,e=t._self._c;return e("VueSelect",t._g(t._b({staticClass:"select",class:{"select--no-wrap":t.noWrap,"user-select":t.userSelect},on:{search:n=>t.search=n},scopedSlots:t._u([!t.labelOutside&&t.inputLabel?{key:"header",fn:function(){return[e("label",{staticClass:"select__label",attrs:{for:t.inputId}},[t._v(" "+t._s(t.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:n,events:i}){return[e("input",t._g(t._b({class:["vs__search",t.inputClass],attrs:{required:t.inputRequired}},"input",n,!1),i))]}},{key:"open-indicator",fn:function({attributes:n}){return[e("ChevronDown",t._b({style:{cursor:t.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",n,!1))]}},{key:"option",fn:function(n){return[t.userSelect?e("NcListItemIcon",t._b({attrs:{"avatar-size":32,name:n[t.localLabel],search:t.search}},"NcListItemIcon",n,!1)):e("NcEllipsisedOption",{attrs:{name:String(n[t.localLabel]),search:t.search}})]}},{key:"selected-option",fn:function(n){return[t.userSelect?e("NcListItemIcon",t._b({attrs:{"avatar-size":t.avatarSize,name:n[t.localLabel],"no-margin":"",search:t.search}},"NcListItemIcon",n,!1)):e("NcEllipsisedOption",{attrs:{name:String(n[t.localLabel]),search:t.search}})]}},{key:"spinner",fn:function(n){return[n.loading?e("NcLoadingIcon"):t._e()]}},{key:"no-options",fn:function(){return[t._v(" "+t._s(t.t("No results"))+" ")]},proxy:!0},t._l(t.$scopedSlots,function(n,i){return{key:i,fn:function(s){return[t._t(i,null,null,s)]}}})],null,!0)},"VueSelect",t.propsToForward,!1),t.$listeners))},lr=[],ur=K(rr,ar,lr,!1,null,null);const gr=ur.exports,mr=In("notifications").clearOnLogout().persist().build();export{mr as B,Cn as E,gr as N,dr as U,zo as a,Jo as b,ci as c,pr as d,$o as e,qe as f,Ho as g,Vo as p,fr as r,Oe as u,jo as v};