ldap-ui 0.9.15__py3-none-any.whl → 0.10.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ldap_ui/__init__.py +1 -1
- ldap_ui/app.py +63 -212
- ldap_ui/entities.py +62 -0
- ldap_ui/ldap_api.py +419 -352
- ldap_ui/ldap_helpers.py +74 -34
- ldap_ui/schema.py +8 -10
- ldap_ui/statics/assets/index-BxCLA1wZ.js +19 -0
- ldap_ui/statics/assets/index-BxCLA1wZ.js.gz +0 -0
- ldap_ui/statics/assets/{index-qocMa2qY.css → index-CusJ2HRh.css} +1 -1
- ldap_ui/statics/assets/index-CusJ2HRh.css.gz +0 -0
- ldap_ui/statics/index.html +2 -2
- {ldap_ui-0.9.15.dist-info → ldap_ui-0.10.1.dist-info}/METADATA +8 -9
- ldap_ui-0.10.1.dist-info/RECORD +25 -0
- {ldap_ui-0.9.15.dist-info → ldap_ui-0.10.1.dist-info}/WHEEL +1 -1
- ldap_ui/statics/assets/index-CZWuB-hf.js +0 -18
- ldap_ui/statics/assets/index-CZWuB-hf.js.gz +0 -0
- ldap_ui/statics/assets/index-qocMa2qY.css.gz +0 -0
- ldap_ui-0.9.15.dist-info/RECORD +0 -24
- {ldap_ui-0.9.15.dist-info → ldap_ui-0.10.1.dist-info}/entry_points.txt +0 -0
- {ldap_ui-0.9.15.dist-info → ldap_ui-0.10.1.dist-info}/licenses/LICENSE.txt +0 -0
- {ldap_ui-0.9.15.dist-info → ldap_ui-0.10.1.dist-info}/top_level.txt +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var Qo=Object.defineProperty;var el=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>el(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
2
|
-
* @vue/shared v3.5.13
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function $s(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fe={},Lt=[],lt=()=>{},tl=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ks=e=>e.startsWith("onUpdate:"),Se=Object.assign,Ts=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nl=Object.prototype.hasOwnProperty,ae=(e,t)=>nl.call(e,t),V=Array.isArray,Ft=e=>gn(e)==="[object Map]",Hn=e=>gn(e)==="[object Set]",Ws=e=>gn(e)==="[object Date]",Y=e=>typeof e=="function",ye=e=>typeof e=="string",Ze=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",Ar=e=>(pe(e)||Y(e))&&Y(e.then)&&Y(e.catch),Pr=Object.prototype.toString,gn=e=>Pr.call(e),sl=e=>gn(e).slice(8,-1),Dr=e=>gn(e)==="[object Object]",Os=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=$s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},rl=/-(\w)/g,xt=Bn(e=>e.replace(rl,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,St=Bn(e=>e.replace(ol,"-$1").toLowerCase()),jr=Bn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ts=Bn(e=>e?`on${jr(e)}`:""),wt=(e,t)=>!Object.is(e,t),Tn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Nr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},An=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ll=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let zs;const qn=()=>zs||(zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Es(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ye(s)?cl(s):Es(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ye(e)||pe(e))return e}const il=/;(?![^(]*\))/g,al=/:([^]+)/,ul=/\/\*[^]*?\*\//g;function cl(e){const t={};return e.replace(ul,"").split(il).forEach(n=>{if(n){const s=n.split(al);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Pe(e){let t="";if(ye(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=Pe(e[n]);s&&(t+=s+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const fl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dl=$s(fl);function Mr(e){return!!e||e===""}function pl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Kn(e[s],t[s]);return n}function Kn(e,t){if(e===t)return!0;let n=Ws(e),s=Ws(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ze(e),s=Ze(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?pl(e,t):!1;if(n=pe(e),s=pe(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const l in e){const i=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(i&&!a||!i&&a||!Kn(e[l],t[l]))return!1}}return String(e)===String(t)}function hl(e,t){return e.findIndex(n=>Kn(n,t))}const Rr=e=>!!(e&&e.__v_isRef===!0),oe=e=>ye(e)?e:e==null?"":V(e)||pe(e)&&(e.toString===Pr||!Y(e.toString))?Rr(e)?oe(e.value):JSON.stringify(e,Ir,2):String(e),Ir=(e,t)=>Rr(t)?Ir(e,t.value):Ft(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ns(s,o)+" =>"]=r,n),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ns(n))}:Ze(t)?ns(t):pe(t)&&!V(t)&&!Dr(t)?String(t):t,ns=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.13
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let Ne;class ml{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ne,!t&&Ne&&(this.index=(Ne.scopes||(Ne.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ne;try{return Ne=this,t()}finally{Ne=n}}}on(){Ne=this}off(){Ne=this.parent}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Lr(){return Ne}function vl(e,t=!1){Ne&&Ne.cleanups.push(e)}let me;const ss=new WeakSet;class Fr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ne&&Ne.active&&Ne.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ss.has(this)&&(ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Vr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Js(this),Hr(this);const t=me,n=Xe;me=this,Xe=!0;try{return this.fn()}finally{Br(this),me=t,Xe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ds(t);this.deps=this.depsTail=void 0,Js(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ps(this)&&this.run()}get dirty(){return ps(this)}}let Ur=0,tn,nn;function Vr(e,t=!1){if(e.flags|=8,t){e.next=nn,nn=e;return}e.next=tn,tn=e}function As(){Ur++}function Ps(){if(--Ur>0)return;if(nn){let t=nn;for(nn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tn;){let t=tn;for(tn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Hr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Br(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ds(s),gl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ps(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on))return;e.globalVersion=on;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ps(e)){e.flags&=-3;return}const n=me,s=Xe;me=e,Xe=!0;try{Hr(e);const r=e.fn(e._value);(t.version===0||wt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{me=n,Xe=s,Br(e),e.flags&=-3}}function Ds(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ds(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function gl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Xe=!0;const Kr=[];function Ct(){Kr.push(Xe),Xe=!1}function $t(){const e=Kr.pop();Xe=e===void 0?!0:e}function Js(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let on=0;class yl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class js{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!me||!Xe||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new yl(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,Wr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=s)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){As();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ps()}}}function Wr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Wr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const hs=new WeakMap,Nt=Symbol(""),ms=Symbol(""),ln=Symbol("");function Oe(e,t,n){if(Xe&&me){let s=hs.get(e);s||hs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new js),r.map=s,r.key=n),r.track()}}function dt(e,t,n,s,r,o){const l=hs.get(e);if(!l){on++;return}const i=a=>{a&&a.trigger()};if(As(),t==="clear")l.forEach(i);else{const a=V(e),u=a&&Os(n);if(a&&n==="length"){const c=Number(s);l.forEach((f,h)=>{(h==="length"||h===ln||!Ze(h)&&h>=c)&&i(f)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),u&&i(l.get(ln)),t){case"add":a?u&&i(l.get("length")):(i(l.get(Nt)),Ft(e)&&i(l.get(ms)));break;case"delete":a||(i(l.get(Nt)),Ft(e)&&i(l.get(ms)));break;case"set":Ft(e)&&i(l.get(Nt));break}}Ps()}function Rt(e){const t=le(e);return t===e?t:(Oe(t,"iterate",ln),Je(e)?t:t.map(Ee))}function Wn(e){return Oe(e=le(e),"iterate",ln),e}const bl={__proto__:null,[Symbol.iterator](){return rs(this,Symbol.iterator,Ee)},concat(...e){return Rt(this).concat(...e.map(t=>V(t)?Rt(t):t))},entries(){return rs(this,"entries",e=>(e[1]=Ee(e[1]),e))},every(e,t){return ut(this,"every",e,t,void 0,arguments)},filter(e,t){return ut(this,"filter",e,t,n=>n.map(Ee),arguments)},find(e,t){return ut(this,"find",e,t,Ee,arguments)},findIndex(e,t){return ut(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ut(this,"findLast",e,t,Ee,arguments)},findLastIndex(e,t){return ut(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ut(this,"forEach",e,t,void 0,arguments)},includes(...e){return os(this,"includes",e)},indexOf(...e){return os(this,"indexOf",e)},join(e){return Rt(this).join(e)},lastIndexOf(...e){return os(this,"lastIndexOf",e)},map(e,t){return ut(this,"map",e,t,void 0,arguments)},pop(){return Gt(this,"pop")},push(...e){return Gt(this,"push",e)},reduce(e,...t){return Ys(this,"reduce",e,t)},reduceRight(e,...t){return Ys(this,"reduceRight",e,t)},shift(){return Gt(this,"shift")},some(e,t){return ut(this,"some",e,t,void 0,arguments)},splice(...e){return Gt(this,"splice",e)},toReversed(){return Rt(this).toReversed()},toSorted(e){return Rt(this).toSorted(e)},toSpliced(...e){return Rt(this).toSpliced(...e)},unshift(...e){return Gt(this,"unshift",e)},values(){return rs(this,"values",Ee)}};function rs(e,t,n){const s=Wn(e),r=s[t]();return s!==e&&!Je(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=n(o.value)),o}),r}const wl=Array.prototype;function ut(e,t,n,s,r,o){const l=Wn(e),i=l!==e&&!Je(e),a=l[t];if(a!==wl[t]){const f=a.apply(e,o);return i?Ee(f):f}let u=n;l!==e&&(i?u=function(f,h){return n.call(this,Ee(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=a.call(l,u,s);return i&&r?r(c):c}function Ys(e,t,n,s){const r=Wn(e);let o=n;return r!==e&&(Je(e)?n.length>3&&(o=function(l,i,a){return n.call(this,l,i,a,e)}):o=function(l,i,a){return n.call(this,l,Ee(i),a,e)}),r[t](o,...s)}function os(e,t,n){const s=le(e);Oe(s,"iterate",ln);const r=s[t](...n);return(r===-1||r===!1)&&Is(n[0])?(n[0]=le(n[0]),s[t](...n)):r}function Gt(e,t,n=[]){Ct(),As();const s=le(e)[t].apply(e,n);return Ps(),$t(),s}const xl=$s("__proto__,__v_isRef,__isVue"),zr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function _l(e){Ze(e)||(e=String(e));const t=le(this);return Oe(t,"has",e),t.hasOwnProperty(e)}class Jr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Dl:Zr:o?Xr:Gr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=V(t);if(!r){let a;if(l&&(a=bl[n]))return a;if(n==="hasOwnProperty")return _l}const i=Reflect.get(t,n,De(t)?t:s);return(Ze(n)?zr.has(n):xl(n))||(r||Oe(t,"get",n),o)?i:De(i)?l&&Os(n)?i:i.value:pe(i)?r?Qr(i):Ms(i):i}}class Yr extends Jr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const a=Mt(o);if(!Je(s)&&!Mt(s)&&(o=le(o),s=le(s)),!V(t)&&De(o)&&!De(s))return a?!1:(o.value=s,!0)}const l=V(t)&&Os(n)?Number(n)<t.length:ae(t,n),i=Reflect.set(t,n,s,De(t)?t:r);return t===le(r)&&(l?wt(s,o)&&dt(t,"set",n,s):dt(t,"add",n,s)),i}deleteProperty(t,n){const s=ae(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&dt(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ze(n)||!zr.has(n))&&Oe(t,"has",n),s}ownKeys(t){return Oe(t,"iterate",V(t)?"length":Nt),Reflect.ownKeys(t)}}class Sl extends Jr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Cl=new Yr,$l=new Sl,kl=new Yr(!0);const vs=e=>e,Sn=e=>Reflect.getPrototypeOf(e);function Tl(e,t,n){return function(...s){const r=this.__v_raw,o=le(r),l=Ft(o),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,u=r[e](...s),c=n?vs:t?gs:Ee;return!t&&Oe(o,"iterate",a?ms:Nt),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:i?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function Cn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ol(e,t){const n={get(r){const o=this.__v_raw,l=le(o),i=le(r);e||(wt(r,i)&&Oe(l,"get",r),Oe(l,"get",i));const{has:a}=Sn(l),u=t?vs:e?gs:Ee;if(a.call(l,r))return u(o.get(r));if(a.call(l,i))return u(o.get(i));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Oe(le(r),"iterate",Nt),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,l=le(o),i=le(r);return e||(wt(r,i)&&Oe(l,"has",r),Oe(l,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const l=this,i=l.__v_raw,a=le(i),u=t?vs:e?gs:Ee;return!e&&Oe(a,"iterate",Nt),i.forEach((c,f)=>r.call(o,u(c),u(f),l))}};return Se(n,e?{add:Cn("add"),set:Cn("set"),delete:Cn("delete"),clear:Cn("clear")}:{add(r){!t&&!Je(r)&&!Mt(r)&&(r=le(r));const o=le(this);return Sn(o).has.call(o,r)||(o.add(r),dt(o,"add",r,r)),this},set(r,o){!t&&!Je(o)&&!Mt(o)&&(o=le(o));const l=le(this),{has:i,get:a}=Sn(l);let u=i.call(l,r);u||(r=le(r),u=i.call(l,r));const c=a.call(l,r);return l.set(r,o),u?wt(o,c)&&dt(l,"set",r,o):dt(l,"add",r,o),this},delete(r){const o=le(this),{has:l,get:i}=Sn(o);let a=l.call(o,r);a||(r=le(r),a=l.call(o,r)),i&&i.call(o,r);const u=o.delete(r);return a&&dt(o,"delete",r,void 0),u},clear(){const r=le(this),o=r.size!==0,l=r.clear();return o&&dt(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Tl(r,e,t)}),n}function Ns(e,t){const n=Ol(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ae(n,r)&&r in s?n:s,r,o)}const El={get:Ns(!1,!1)},Al={get:Ns(!1,!0)},Pl={get:Ns(!0,!1)};const Gr=new WeakMap,Xr=new WeakMap,Zr=new WeakMap,Dl=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nl(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(sl(e))}function Ms(e){return Mt(e)?e:Rs(e,!1,Cl,El,Gr)}function Ml(e){return Rs(e,!1,kl,Al,Xr)}function Qr(e){return Rs(e,!0,$l,Pl,Zr)}function Rs(e,t,n,s,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const l=Nl(e);if(l===0)return e;const i=new Proxy(e,l===2?s:n);return r.set(e,i),i}function Ut(e){return Mt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Mt(e){return!!(e&&e.__v_isReadonly)}function Je(e){return!!(e&&e.__v_isShallow)}function Is(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Rl(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&Nr(e,"__v_skip",!0),e}const Ee=e=>pe(e)?Ms(e):e,gs=e=>pe(e)?Qr(e):e;function De(e){return e?e.__v_isRef===!0:!1}function I(e){return Il(e,!1)}function Il(e,t){return De(e)?e:new Ll(e,t)}class Ll{constructor(t,n){this.dep=new js,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:le(t),this._value=n?t:Ee(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Je(t)||Mt(t);t=s?t:le(t),wt(t,n)&&(this._rawValue=t,this._value=s?t:Ee(t),this.dep.trigger())}}function yn(e){return De(e)?e.value:e}const Fl={get:(e,t,n)=>t==="__v_raw"?e:yn(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return De(r)&&!De(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function eo(e){return Ut(e)?e:new Proxy(e,Fl)}class Ul{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new js(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return Vr(this,!0),!0}get value(){const t=this.dep.track();return qr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vl(e,t,n=!1){let s,r;return Y(e)?s=e:(s=e.get,r=e.set),new Ul(s,r,n)}const $n={},Pn=new WeakMap;let At;function Hl(e,t=!1,n=At){if(n){let s=Pn.get(n);s||Pn.set(n,s=[]),s.push(e)}}function Bl(e,t,n=fe){const{immediate:s,deep:r,once:o,scheduler:l,augmentJob:i,call:a}=n,u=M=>r?M:Je(M)||r===!1||r===0?pt(M,1):pt(M);let c,f,h,g,O=!1,T=!1;if(De(e)?(f=()=>e.value,O=Je(e)):Ut(e)?(f=()=>u(e),O=!0):V(e)?(T=!0,O=e.some(M=>Ut(M)||Je(M)),f=()=>e.map(M=>{if(De(M))return M.value;if(Ut(M))return u(M);if(Y(M))return a?a(M,2):M()})):Y(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){Ct();try{h()}finally{$t()}}const M=At;At=c;try{return a?a(e,3,[g]):e(g)}finally{At=M}}:f=lt,t&&r){const M=f,L=r===!0?1/0:r;f=()=>pt(M(),L)}const _=Lr(),w=()=>{c.stop(),_&&_.active&&Ts(_.effects,c)};if(o&&t){const M=t;t=(...L)=>{M(...L),w()}}let F=T?new Array(e.length).fill($n):$n;const K=M=>{if(!(!(c.flags&1)||!c.dirty&&!M))if(t){const L=c.run();if(r||O||(T?L.some((Q,ge)=>wt(Q,F[ge])):wt(L,F))){h&&h();const Q=At;At=c;try{const ge=[L,F===$n?void 0:T&&F[0]===$n?[]:F,g];a?a(t,3,ge):t(...ge),F=L}finally{At=Q}}}else c.run()};return i&&i(K),c=new Fr(f),c.scheduler=l?()=>l(K,!1):K,g=M=>Hl(M,!1,c),h=c.onStop=()=>{const M=Pn.get(c);if(M){if(a)a(M,4);else for(const L of M)L();Pn.delete(c)}},t?s?K(!0):F=c.run():l?l(K.bind(null,!0),!0):c.run(),w.pause=c.pause.bind(c),w.resume=c.resume.bind(c),w.stop=w,w}function pt(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,De(e))pt(e.value,t,n);else if(V(e))for(let s=0;s<e.length;s++)pt(e[s],t,n);else if(Hn(e)||Ft(e))e.forEach(s=>{pt(s,t,n)});else if(Dr(e)){for(const s in e)pt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&pt(e[s],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.13
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/function bn(e,t,n,s){try{return s?e(...s):e()}catch(r){zn(r,t,n)}}function Qe(e,t,n,s){if(Y(e)){const r=bn(e,t,n,s);return r&&Ar(r)&&r.catch(o=>{zn(o,t,n)}),r}if(V(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Qe(e[o],t,n,s));return r}}function zn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||fe;if(t){let i=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,a,u)===!1)return}i=i.parent}if(o){Ct(),bn(o,null,10,[e,a,u]),$t();return}}ql(e,n,r,s,l)}function ql(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Me=[];let rt=-1;const Vt=[];let gt=null,It=0;const to=Promise.resolve();let Dn=null;function zt(e){const t=Dn||to;return e?t.then(this?e.bind(this):e):t}function Kl(e){let t=rt+1,n=Me.length;for(;t<n;){const s=t+n>>>1,r=Me[s],o=an(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Ls(e){if(!(e.flags&1)){const t=an(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=an(n)?Me.push(e):Me.splice(Kl(t),0,e),e.flags|=1,no()}}function no(){Dn||(Dn=to.then(ro))}function Wl(e){V(e)?Vt.push(...e):gt&&e.id===-1?gt.splice(It+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1),no()}function Gs(e,t,n=rt+1){for(;n<Me.length;n++){const s=Me[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Me.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function so(e){if(Vt.length){const t=[...new Set(Vt)].sort((n,s)=>an(n)-an(s));if(Vt.length=0,gt){gt.push(...t);return}for(gt=t,It=0;It<gt.length;It++){const n=gt[It];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gt=null,It=0}}const an=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ro(e){try{for(rt=0;rt<Me.length;rt++){const t=Me[rt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),bn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;rt<Me.length;rt++){const t=Me[rt];t&&(t.flags&=-2)}rt=-1,Me.length=0,so(),Dn=null,(Me.length||Vt.length)&&ro()}}let $e=null,oo=null;function jn(e){const t=$e;return $e=e,oo=e&&e.type.__scopeId||null,t}function de(e,t=$e,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&lr(-1);const o=jn(t);let l;try{l=e(...r)}finally{jn(o),s._d&&lr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Ue(e,t){if($e===null)return e;const n=Zn($e),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,i,a=fe]=t[r];o&&(Y(o)&&(o={mounted:o,updated:o}),o.deep&&pt(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:i,modifiers:a}))}return e}function kt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const i=r[l];o&&(i.oldValue=o[l].value);let a=i.dir[s];a&&(Ct(),Qe(a,n,8,[e.el,i,e,t]),$t())}}const zl=Symbol("_vte"),lo=e=>e.__isTeleport,yt=Symbol("_leaveCb"),kn=Symbol("_enterCb");function Jl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Jt(()=>{e.isMounted=!0}),vo(()=>{e.isUnmounting=!0}),e}const ze=[Function,Array],io={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ze,onEnter:ze,onAfterEnter:ze,onEnterCancelled:ze,onBeforeLeave:ze,onLeave:ze,onAfterLeave:ze,onLeaveCancelled:ze,onBeforeAppear:ze,onAppear:ze,onAfterAppear:ze,onAppearCancelled:ze},ao=e=>{const t=e.subTree;return t.component?ao(t.component):t},Yl={name:"BaseTransition",props:io,setup(e,{slots:t}){const n=Hi(),s=Jl();return()=>{const r=t.default&&fo(t.default(),!0);if(!r||!r.length)return;const o=uo(r),l=le(e),{mode:i}=l;if(s.isLeaving)return ls(o);const a=Xs(o);if(!a)return ls(o);let u=ys(a,l,s,n,f=>u=f);a.type!==Re&&un(a,u);let c=n.subTree&&Xs(n.subTree);if(c&&c.type!==Re&&!Pt(a,c)&&ao(n).type!==Re){let f=ys(c,l,s,n);if(un(c,f),i==="out-in"&&a.type!==Re)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},ls(o);i==="in-out"&&a.type!==Re?f.delayLeave=(h,g,O)=>{const T=co(s,c);T[String(c.key)]=c,h[yt]=()=>{g(),h[yt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{O(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function uo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Re){t=n;break}}return t}const Gl=Yl;function co(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function ys(e,t,n,s,r){const{appear:o,mode:l,persisted:i=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:O,onLeaveCancelled:T,onBeforeAppear:_,onAppear:w,onAfterAppear:F,onAppearCancelled:K}=t,M=String(e.key),L=co(n,e),Q=(G,ne)=>{G&&Qe(G,s,9,ne)},ge=(G,ne)=>{const ce=ne[1];Q(G,ne),V(G)?G.every(j=>j.length<=1)&&ce():G.length<=1&&ce()},we={mode:l,persisted:i,beforeEnter(G){let ne=a;if(!n.isMounted)if(o)ne=_||a;else return;G[yt]&&G[yt](!0);const ce=L[M];ce&&Pt(e,ce)&&ce.el[yt]&&ce.el[yt](),Q(ne,[G])},enter(G){let ne=u,ce=c,j=f;if(!n.isMounted)if(o)ne=w||u,ce=F||c,j=K||f;else return;let se=!1;const xe=G[kn]=A=>{se||(se=!0,A?Q(j,[G]):Q(ce,[G]),we.delayedLeave&&we.delayedLeave(),G[kn]=void 0)};ne?ge(ne,[G,xe]):xe()},leave(G,ne){const ce=String(e.key);if(G[kn]&&G[kn](!0),n.isUnmounting)return ne();Q(h,[G]);let j=!1;const se=G[yt]=xe=>{j||(j=!0,ne(),xe?Q(T,[G]):Q(O,[G]),G[yt]=void 0,L[ce]===e&&delete L[ce])};L[ce]=e,g?ge(g,[G,se]):se()},clone(G){const ne=ys(G,t,n,s,r);return r&&r(ne),ne}};return we}function ls(e){if(Jn(e))return e=_t(e),e.children=null,e}function Xs(e){if(!Jn(e))return lo(e.type)&&e.children?uo(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Y(n.default))return n.default()}}function un(e,t){e.shapeFlag&6&&e.component?(e.transition=t,un(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fo(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let l=e[o];const i=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===ie?(l.patchFlag&128&&r++,s=s.concat(fo(l.children,t,i))):(t||l.type!==Re)&&s.push(i!=null?_t(l,{key:i}):l)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function ve(e,t){return Y(e)?Se({name:e.name},t,{setup:e}):e}function po(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Nn(e,t,n,s,r=!1){if(V(e)){e.forEach((O,T)=>Nn(O,t&&(V(t)?t[T]:t),n,s,r));return}if(Ht(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Nn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Zn(s.component):s.el,l=r?null:o,{i,r:a}=e,u=t&&t.r,c=i.refs===fe?i.refs={}:i.refs,f=i.setupState,h=le(f),g=f===fe?()=>!1:O=>ae(h,O);if(u!=null&&u!==a&&(ye(u)?(c[u]=null,g(u)&&(f[u]=null)):De(u)&&(u.value=null)),Y(a))bn(a,i,12,[l,c]);else{const O=ye(a),T=De(a);if(O||T){const _=()=>{if(e.f){const w=O?g(a)?f[a]:c[a]:a.value;r?V(w)&&Ts(w,o):V(w)?w.includes(o)||w.push(o):O?(c[a]=[o],g(a)&&(f[a]=c[a])):(a.value=[o],e.k&&(c[e.k]=a.value))}else O?(c[a]=l,g(a)&&(f[a]=l)):T&&(a.value=l,e.k&&(c[e.k]=l))};l?(_.id=-1,qe(_,n)):_()}}}qn().requestIdleCallback;qn().cancelIdleCallback;const Ht=e=>!!e.type.__asyncLoader,Jn=e=>e.type.__isKeepAlive;function Xl(e,t){ho(e,"a",t)}function Zl(e,t){ho(e,"da",t)}function ho(e,t,n=Ae){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Yn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Jn(r.parent.vnode)&&Ql(s,t,n,r),r=r.parent}}function Ql(e,t,n,s){const r=Yn(t,e,s,!0);go(()=>{Ts(s[t],r)},n)}function Yn(e,t,n=Ae,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{Ct();const i=wn(n),a=Qe(t,n,e,l);return i(),$t(),a});return s?r.unshift(o):r.push(o),o}}const ht=e=>(t,n=Ae)=>{(!dn||e==="sp")&&Yn(e,(...s)=>t(...s),n)},ei=ht("bm"),Jt=ht("m"),ti=ht("bu"),mo=ht("u"),vo=ht("bum"),go=ht("um"),ni=ht("sp"),si=ht("rtg"),ri=ht("rtc");function oi(e,t=Ae){Yn("ec",e,t)}const li=Symbol.for("v-ndc");function ke(e,t,n,s){let r;const o=n,l=V(e);if(l||ye(e)){const i=l&&Ut(e);let a=!1;i&&(a=!Je(e),e=Wn(e)),r=new Array(e.length);for(let u=0,c=e.length;u<c;u++)r[u]=t(a?Ee(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,u=i.length;a<u;a++){const c=i[a];r[a]=t(e[c],c,a,o)}}else r=[];return r}function Ge(e,t,n={},s,r){if($e.ce||$e.parent&&Ht($e.parent)&&$e.parent.ce)return t!=="default"&&(n.name=t),y(),be(ie,null,[J("slot",n,s&&s())],64);let o=e[t];o&&o._c&&(o._d=!1),y();const l=o&&yo(o(n)),i=n.key||l&&l.key,a=be(ie,{key:(i&&!Ze(i)?i:`_${t}`)+(!l&&s?"_fb":"")},l||(s?s():[]),l&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function yo(e){return e.some(t=>fn(t)?!(t.type===Re||t.type===ie&&!yo(t.children)):!0)?e:null}const bs=e=>e?Uo(e)?Zn(e):bs(e.parent):null,sn=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wo(e),$forceUpdate:e=>e.f||(e.f=()=>{Ls(e.update)}),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>Ti.bind(e)}),is=(e,t)=>e!==fe&&!e.__isScriptSetup&&ae(e,t),ii={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:l,type:i,appContext:a}=e;let u;if(t[0]!=="$"){const g=l[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(is(s,t))return l[t]=1,s[t];if(r!==fe&&ae(r,t))return l[t]=2,r[t];if((u=e.propsOptions[0])&&ae(u,t))return l[t]=3,o[t];if(n!==fe&&ae(n,t))return l[t]=4,n[t];ws&&(l[t]=0)}}const c=sn[t];let f,h;if(c)return t==="$attrs"&&Oe(e.attrs,"get",""),c(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==fe&&ae(n,t))return l[t]=4,n[t];if(h=a.config.globalProperties,ae(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return is(r,t)?(r[t]=n,!0):s!==fe&&ae(s,t)?(s[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},l){let i;return!!n[l]||e!==fe&&ae(e,l)||is(t,l)||(i=o[0])&&ae(i,l)||ae(s,l)||ae(sn,l)||ae(r.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zs(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ws=!0;function ai(e){const t=wo(e),n=e.proxy,s=e.ctx;ws=!1,t.beforeCreate&&Qs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:i,provide:a,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:O,activated:T,deactivated:_,beforeDestroy:w,beforeUnmount:F,destroyed:K,unmounted:M,render:L,renderTracked:Q,renderTriggered:ge,errorCaptured:we,serverPrefetch:G,expose:ne,inheritAttrs:ce,components:j,directives:se,filters:xe}=t;if(u&&ui(u,s,null),l)for(const b in l){const q=l[b];Y(q)&&(s[b]=q.bind(n))}if(r){const b=r.call(n,n);pe(b)&&(e.data=Ms(b))}if(ws=!0,o)for(const b in o){const q=o[b],Te=Y(q)?q.bind(n,n):Y(q.get)?q.get.bind(n,n):lt,Le=!Y(q)&&Y(q.set)?q.set.bind(n):lt,at=re({get:Te,set:Le});Object.defineProperty(s,b,{enumerable:!0,configurable:!0,get:()=>at.value,set:We=>at.value=We})}if(i)for(const b in i)bo(i[b],s,n,b);if(a){const b=Y(a)?a.call(n):a;Reflect.ownKeys(b).forEach(q=>{_o(q,b[q])})}c&&Qs(c,e,"c");function m(b,q){V(q)?q.forEach(Te=>b(Te.bind(n))):q&&b(q.bind(n))}if(m(ei,f),m(Jt,h),m(ti,g),m(mo,O),m(Xl,T),m(Zl,_),m(oi,we),m(ri,Q),m(si,ge),m(vo,F),m(go,M),m(ni,G),V(ne))if(ne.length){const b=e.exposed||(e.exposed={});ne.forEach(q=>{Object.defineProperty(b,q,{get:()=>n[q],set:Te=>n[q]=Te})})}else e.exposed||(e.exposed={});L&&e.render===lt&&(e.render=L),ce!=null&&(e.inheritAttrs=ce),j&&(e.components=j),se&&(e.directives=se),G&&po(e)}function ui(e,t,n=lt){V(e)&&(e=xs(e));for(const s in e){const r=e[s];let o;pe(r)?"default"in r?o=Ye(r.from||s,r.default,!0):o=Ye(r.from||s):o=Ye(r),De(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function Qs(e,t,n){Qe(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function bo(e,t,n,s){let r=s.includes(".")?Mo(n,s):()=>n[s];if(ye(e)){const o=t[e];Y(o)&&Ve(r,o)}else if(Y(e))Ve(r,e.bind(n));else if(pe(e))if(V(e))e.forEach(o=>bo(o,t,n,s));else{const o=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(o)&&Ve(r,o,e)}}function wo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,i=o.get(t);let a;return i?a=i:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(u=>Mn(a,u,l,!0)),Mn(a,t,l)),pe(t)&&o.set(t,a),a}function Mn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Mn(e,o,n,!0),r&&r.forEach(l=>Mn(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=ci[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const ci={data:er,props:tr,emits:tr,methods:Qt,computed:Qt,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:Qt,directives:Qt,watch:di,provide:er,inject:fi};function er(e,t){return t?e?function(){return Se(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function fi(e,t){return Qt(xs(e),xs(t))}function xs(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function Qt(e,t){return e?Se(Object.create(null),e,t):t}function tr(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:Se(Object.create(null),Zs(e),Zs(t??{})):t}function di(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const s in t)n[s]=je(e[s],t[s]);return n}function xo(){return{app:null,config:{isNativeTag:tl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let pi=0;function hi(e,t){return function(s,r=null){Y(s)||(s=Se({},s)),r!=null&&!pe(r)&&(r=null);const o=xo(),l=new WeakSet,i=[];let a=!1;const u=o.app={_uid:pi++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Yi,get config(){return o.config},set config(c){},use(c,...f){return l.has(c)||(c&&Y(c.install)?(l.add(c),c.install(u,...f)):Y(c)&&(l.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!a){const g=u._ceVNode||J(s,r);return g.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(g,c,h),a=!0,u._container=c,c.__vue_app__=u,Zn(g.component)}},onUnmount(c){i.push(c)},unmount(){a&&(Qe(i,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Bt;Bt=u;try{return c()}finally{Bt=f}}};return u}}let Bt=null;function _o(e,t){if(Ae){let n=Ae.provides;const s=Ae.parent&&Ae.parent.provides;s===n&&(n=Ae.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=Ae||$e;if(s||Bt){const r=Bt?Bt._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Y(t)?t.call(s&&s.proxy):t}}const So={},Co=()=>Object.create(So),$o=e=>Object.getPrototypeOf(e)===So;function mi(e,t,n,s=!1){const r={},o=Co();e.propsDefaults=Object.create(null),ko(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:Ml(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function vi(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,i=le(r),[a]=e.propsOptions;let u=!1;if((s||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Gn(e.emitsOptions,h))continue;const g=t[h];if(a)if(ae(o,h))g!==o[h]&&(o[h]=g,u=!0);else{const O=xt(h);r[O]=_s(a,i,O,g,e,!1)}else g!==o[h]&&(o[h]=g,u=!0)}}}else{ko(e,t,r,o)&&(u=!0);let c;for(const f in i)(!t||!ae(t,f)&&((c=St(f))===f||!ae(t,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=_s(a,i,f,void 0,e,!0)):delete r[f]);if(o!==i)for(const f in o)(!t||!ae(t,f))&&(delete o[f],u=!0)}u&&dt(e.attrs,"set","")}function ko(e,t,n,s){const[r,o]=e.propsOptions;let l=!1,i;if(t)for(let a in t){if(en(a))continue;const u=t[a];let c;r&&ae(r,c=xt(a))?!o||!o.includes(c)?n[c]=u:(i||(i={}))[c]=u:Gn(e.emitsOptions,a)||(!(a in s)||u!==s[a])&&(s[a]=u,l=!0)}if(o){const a=le(n),u=i||fe;for(let c=0;c<o.length;c++){const f=o[c];n[f]=_s(r,a,f,u[f],e,!ae(u,f))}}return l}function _s(e,t,n,s,r,o){const l=e[n];if(l!=null){const i=ae(l,"default");if(i&&s===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&Y(a)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=wn(r);s=u[n]=a.call(null,t),c()}}else s=a;r.ce&&r.ce._setProp(n,s)}l[0]&&(o&&!i?s=!1:l[1]&&(s===""||s===St(n))&&(s=!0))}return s}const gi=new WeakMap;function To(e,t,n=!1){const s=n?gi:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,l={},i=[];let a=!1;if(!Y(e)){const c=f=>{a=!0;const[h,g]=To(f,t,!0);Se(l,h),g&&i.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!a)return pe(e)&&s.set(e,Lt),Lt;if(V(o))for(let c=0;c<o.length;c++){const f=xt(o[c]);nr(f)&&(l[f]=fe)}else if(o)for(const c in o){const f=xt(c);if(nr(f)){const h=o[c],g=l[f]=V(h)||Y(h)?{type:h}:Se({},h),O=g.type;let T=!1,_=!0;if(V(O))for(let w=0;w<O.length;++w){const F=O[w],K=Y(F)&&F.name;if(K==="Boolean"){T=!0;break}else K==="String"&&(_=!1)}else T=Y(O)&&O.name==="Boolean";g[0]=T,g[1]=_,(T||ae(g,"default"))&&i.push(f)}}const u=[l,i];return pe(e)&&s.set(e,u),u}function nr(e){return e[0]!=="$"&&!en(e)}const Oo=e=>e[0]==="_"||e==="$stable",Fs=e=>V(e)?e.map(ot):[ot(e)],yi=(e,t,n)=>{if(t._n)return t;const s=de((...r)=>Fs(t(...r)),n);return s._c=!1,s},Eo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Oo(r))continue;const o=e[r];if(Y(o))t[r]=yi(r,o,s);else if(o!=null){const l=Fs(o);t[r]=()=>l}}},Ao=(e,t)=>{const n=Fs(t);e.slots.default=()=>n},Po=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},bi=(e,t,n)=>{const s=e.slots=Co();if(e.vnode.shapeFlag&32){const r=t._;r?(Po(s,t,n),n&&Nr(s,"_",r,!0)):Eo(t,s)}else t&&Ao(e,t)},wi=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,l=fe;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:Po(r,t,n):(o=!t.$stable,Eo(t,r)),l=t}else t&&(Ao(e,t),l={default:1});if(o)for(const i in r)!Oo(i)&&l[i]==null&&delete r[i]},qe=Ni;function xi(e){return _i(e)}function _i(e,t){const n=qn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:l,createText:i,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=lt,insertStaticContent:O}=e,T=(d,p,v,C=null,x=null,S=null,N=void 0,D=null,P=!!p.dynamicChildren)=>{if(d===p)return;d&&!Pt(d,p)&&(C=W(d),We(d,x,S,!0),d=null),p.patchFlag===-2&&(P=!1,p.dynamicChildren=null);const{type:$,ref:B,shapeFlag:R}=p;switch($){case Xn:_(d,p,v,C);break;case Re:w(d,p,v,C);break;case us:d==null&&F(p,v,C,N);break;case ie:j(d,p,v,C,x,S,N,D,P);break;default:R&1?L(d,p,v,C,x,S,N,D,P):R&6?se(d,p,v,C,x,S,N,D,P):(R&64||R&128)&&$.process(d,p,v,C,x,S,N,D,P,Ce)}B!=null&&x&&Nn(B,d&&d.ref,S,p||d,!p)},_=(d,p,v,C)=>{if(d==null)s(p.el=i(p.children),v,C);else{const x=p.el=d.el;p.children!==d.children&&u(x,p.children)}},w=(d,p,v,C)=>{d==null?s(p.el=a(p.children||""),v,C):p.el=d.el},F=(d,p,v,C)=>{[d.el,d.anchor]=O(d.children,p,v,C,d.el,d.anchor)},K=({el:d,anchor:p},v,C)=>{let x;for(;d&&d!==p;)x=h(d),s(d,v,C),d=x;s(p,v,C)},M=({el:d,anchor:p})=>{let v;for(;d&&d!==p;)v=h(d),r(d),d=v;r(p)},L=(d,p,v,C,x,S,N,D,P)=>{p.type==="svg"?N="svg":p.type==="math"&&(N="mathml"),d==null?Q(p,v,C,x,S,N,D,P):G(d,p,x,S,N,D,P)},Q=(d,p,v,C,x,S,N,D)=>{let P,$;const{props:B,shapeFlag:R,transition:U,dirs:z}=d;if(P=d.el=l(d.type,S,B&&B.is,B),R&8?c(P,d.children):R&16&&we(d.children,P,null,C,x,as(d,S),N,D),z&&kt(d,null,C,"created"),ge(P,d,d.scopeId,N,C),B){for(const he in B)he!=="value"&&!en(he)&&o(P,he,null,B[he],S,C);"value"in B&&o(P,"value",null,B.value,S),($=B.onVnodeBeforeMount)&&st($,C,d)}z&&kt(d,null,C,"beforeMount");const te=Si(x,U);te&&U.beforeEnter(P),s(P,p,v),(($=B&&B.onVnodeMounted)||te||z)&&qe(()=>{$&&st($,C,d),te&&U.enter(P),z&&kt(d,null,C,"mounted")},x)},ge=(d,p,v,C,x)=>{if(v&&g(d,v),C)for(let S=0;S<C.length;S++)g(d,C[S]);if(x){let S=x.subTree;if(p===S||Io(S.type)&&(S.ssContent===p||S.ssFallback===p)){const N=x.vnode;ge(d,N,N.scopeId,N.slotScopeIds,x.parent)}}},we=(d,p,v,C,x,S,N,D,P=0)=>{for(let $=P;$<d.length;$++){const B=d[$]=D?bt(d[$]):ot(d[$]);T(null,B,p,v,C,x,S,N,D)}},G=(d,p,v,C,x,S,N)=>{const D=p.el=d.el;let{patchFlag:P,dynamicChildren:$,dirs:B}=p;P|=d.patchFlag&16;const R=d.props||fe,U=p.props||fe;let z;if(v&&Tt(v,!1),(z=U.onVnodeBeforeUpdate)&&st(z,v,p,d),B&&kt(p,d,v,"beforeUpdate"),v&&Tt(v,!0),(R.innerHTML&&U.innerHTML==null||R.textContent&&U.textContent==null)&&c(D,""),$?ne(d.dynamicChildren,$,D,v,C,as(p,x),S):N||q(d,p,D,null,v,C,as(p,x),S,!1),P>0){if(P&16)ce(D,R,U,v,x);else if(P&2&&R.class!==U.class&&o(D,"class",null,U.class,x),P&4&&o(D,"style",R.style,U.style,x),P&8){const te=p.dynamicProps;for(let he=0;he<te.length;he++){const ue=te[he],He=R[ue],Fe=U[ue];(Fe!==He||ue==="value")&&o(D,ue,He,Fe,x,v)}}P&1&&d.children!==p.children&&c(D,p.children)}else!N&&$==null&&ce(D,R,U,v,x);((z=U.onVnodeUpdated)||B)&&qe(()=>{z&&st(z,v,p,d),B&&kt(p,d,v,"updated")},C)},ne=(d,p,v,C,x,S,N)=>{for(let D=0;D<p.length;D++){const P=d[D],$=p[D],B=P.el&&(P.type===ie||!Pt(P,$)||P.shapeFlag&70)?f(P.el):v;T(P,$,B,null,C,x,S,N,!0)}},ce=(d,p,v,C,x)=>{if(p!==v){if(p!==fe)for(const S in p)!en(S)&&!(S in v)&&o(d,S,p[S],null,x,C);for(const S in v){if(en(S))continue;const N=v[S],D=p[S];N!==D&&S!=="value"&&o(d,S,D,N,x,C)}"value"in v&&o(d,"value",p.value,v.value,x)}},j=(d,p,v,C,x,S,N,D,P)=>{const $=p.el=d?d.el:i(""),B=p.anchor=d?d.anchor:i("");let{patchFlag:R,dynamicChildren:U,slotScopeIds:z}=p;z&&(D=D?D.concat(z):z),d==null?(s($,v,C),s(B,v,C),we(p.children||[],v,B,x,S,N,D,P)):R>0&&R&64&&U&&d.dynamicChildren?(ne(d.dynamicChildren,U,v,x,S,N,D),(p.key!=null||x&&p===x.subTree)&&Do(d,p,!0)):q(d,p,v,B,x,S,N,D,P)},se=(d,p,v,C,x,S,N,D,P)=>{p.slotScopeIds=D,d==null?p.shapeFlag&512?x.ctx.activate(p,v,C,N,P):xe(p,v,C,x,S,N,P):A(d,p,P)},xe=(d,p,v,C,x,S,N)=>{const D=d.component=Vi(d,C,x);if(Jn(d)&&(D.ctx.renderer=Ce),Bi(D,!1,N),D.asyncDep){if(x&&x.registerDep(D,m,N),!d.el){const P=D.subTree=J(Re);w(null,P,p,v)}}else m(D,d,p,v,x,S,N)},A=(d,p,v)=>{const C=p.component=d.component;if(Di(d,p,v))if(C.asyncDep&&!C.asyncResolved){b(C,p,v);return}else C.next=p,C.update();else p.el=d.el,C.vnode=p},m=(d,p,v,C,x,S,N)=>{const D=()=>{if(d.isMounted){let{next:R,bu:U,u:z,parent:te,vnode:he}=d;{const tt=jo(d);if(tt){R&&(R.el=he.el,b(d,R,N)),tt.asyncDep.then(()=>{d.isUnmounted||D()});return}}let ue=R,He;Tt(d,!1),R?(R.el=he.el,b(d,R,N)):R=he,U&&Tn(U),(He=R.props&&R.props.onVnodeBeforeUpdate)&&st(He,te,R,he),Tt(d,!0);const Fe=rr(d),et=d.subTree;d.subTree=Fe,T(et,Fe,f(et.el),W(et),d,x,S),R.el=Fe.el,ue===null&&ji(d,Fe.el),z&&qe(z,x),(He=R.props&&R.props.onVnodeUpdated)&&qe(()=>st(He,te,R,he),x)}else{let R;const{el:U,props:z}=p,{bm:te,m:he,parent:ue,root:He,type:Fe}=d,et=Ht(p);Tt(d,!1),te&&Tn(te),!et&&(R=z&&z.onVnodeBeforeMount)&&st(R,ue,p),Tt(d,!0);{He.ce&&He.ce._injectChildStyle(Fe);const tt=d.subTree=rr(d);T(null,tt,v,C,d,x,S),p.el=tt.el}if(he&&qe(he,x),!et&&(R=z&&z.onVnodeMounted)){const tt=p;qe(()=>st(R,ue,tt),x)}(p.shapeFlag&256||ue&&Ht(ue.vnode)&&ue.vnode.shapeFlag&256)&&d.a&&qe(d.a,x),d.isMounted=!0,p=v=C=null}};d.scope.on();const P=d.effect=new Fr(D);d.scope.off();const $=d.update=P.run.bind(P),B=d.job=P.runIfDirty.bind(P);B.i=d,B.id=d.uid,P.scheduler=()=>Ls(B),Tt(d,!0),$()},b=(d,p,v)=>{p.component=d;const C=d.vnode.props;d.vnode=p,d.next=null,vi(d,p.props,C,v),wi(d,p.children,v),Ct(),Gs(d),$t()},q=(d,p,v,C,x,S,N,D,P=!1)=>{const $=d&&d.children,B=d?d.shapeFlag:0,R=p.children,{patchFlag:U,shapeFlag:z}=p;if(U>0){if(U&128){Le($,R,v,C,x,S,N,D,P);return}else if(U&256){Te($,R,v,C,x,S,N,D,P);return}}z&8?(B&16&&H($,x,S),R!==$&&c(v,R)):B&16?z&16?Le($,R,v,C,x,S,N,D,P):H($,x,S,!0):(B&8&&c(v,""),z&16&&we(R,v,C,x,S,N,D,P))},Te=(d,p,v,C,x,S,N,D,P)=>{d=d||Lt,p=p||Lt;const $=d.length,B=p.length,R=Math.min($,B);let U;for(U=0;U<R;U++){const z=p[U]=P?bt(p[U]):ot(p[U]);T(d[U],z,v,null,x,S,N,D,P)}$>B?H(d,x,S,!0,!1,R):we(p,v,C,x,S,N,D,P,R)},Le=(d,p,v,C,x,S,N,D,P)=>{let $=0;const B=p.length;let R=d.length-1,U=B-1;for(;$<=R&&$<=U;){const z=d[$],te=p[$]=P?bt(p[$]):ot(p[$]);if(Pt(z,te))T(z,te,v,null,x,S,N,D,P);else break;$++}for(;$<=R&&$<=U;){const z=d[R],te=p[U]=P?bt(p[U]):ot(p[U]);if(Pt(z,te))T(z,te,v,null,x,S,N,D,P);else break;R--,U--}if($>R){if($<=U){const z=U+1,te=z<B?p[z].el:C;for(;$<=U;)T(null,p[$]=P?bt(p[$]):ot(p[$]),v,te,x,S,N,D,P),$++}}else if($>U)for(;$<=R;)We(d[$],x,S,!0),$++;else{const z=$,te=$,he=new Map;for($=te;$<=U;$++){const Be=p[$]=P?bt(p[$]):ot(p[$]);Be.key!=null&&he.set(Be.key,$)}let ue,He=0;const Fe=U-te+1;let et=!1,tt=0;const Yt=new Array(Fe);for($=0;$<Fe;$++)Yt[$]=0;for($=z;$<=R;$++){const Be=d[$];if(He>=Fe){We(Be,x,S,!0);continue}let nt;if(Be.key!=null)nt=he.get(Be.key);else for(ue=te;ue<=U;ue++)if(Yt[ue-te]===0&&Pt(Be,p[ue])){nt=ue;break}nt===void 0?We(Be,x,S,!0):(Yt[nt-te]=$+1,nt>=tt?tt=nt:et=!0,T(Be,p[nt],v,null,x,S,N,D,P),He++)}const qs=et?Ci(Yt):Lt;for(ue=qs.length-1,$=Fe-1;$>=0;$--){const Be=te+$,nt=p[Be],Ks=Be+1<B?p[Be+1].el:C;Yt[$]===0?T(null,nt,v,Ks,x,S,N,D,P):et&&(ue<0||$!==qs[ue]?at(nt,v,Ks,2):ue--)}}},at=(d,p,v,C,x=null)=>{const{el:S,type:N,transition:D,children:P,shapeFlag:$}=d;if($&6){at(d.component.subTree,p,v,C);return}if($&128){d.suspense.move(p,v,C);return}if($&64){N.move(d,p,v,Ce);return}if(N===ie){s(S,p,v);for(let R=0;R<P.length;R++)at(P[R],p,v,C);s(d.anchor,p,v);return}if(N===us){K(d,p,v);return}if(C!==2&&$&1&&D)if(C===0)D.beforeEnter(S),s(S,p,v),qe(()=>D.enter(S),x);else{const{leave:R,delayLeave:U,afterLeave:z}=D,te=()=>s(S,p,v),he=()=>{R(S,()=>{te(),z&&z()})};U?U(S,te,he):he()}else s(S,p,v)},We=(d,p,v,C=!1,x=!1)=>{const{type:S,props:N,ref:D,children:P,dynamicChildren:$,shapeFlag:B,patchFlag:R,dirs:U,cacheIndex:z}=d;if(R===-2&&(x=!1),D!=null&&Nn(D,null,v,d,!0),z!=null&&(p.renderCache[z]=void 0),B&256){p.ctx.deactivate(d);return}const te=B&1&&U,he=!Ht(d);let ue;if(he&&(ue=N&&N.onVnodeBeforeUnmount)&&st(ue,p,d),B&6)es(d.component,v,C);else{if(B&128){d.suspense.unmount(v,C);return}te&&kt(d,null,p,"beforeUnmount"),B&64?d.type.remove(d,p,v,Ce,C):$&&!$.hasOnce&&(S!==ie||R>0&&R&64)?H($,p,v,!1,!0):(S===ie&&R&384||!x&&B&16)&&H(P,p,v),C&&xn(d)}(he&&(ue=N&&N.onVnodeUnmounted)||te)&&qe(()=>{ue&&st(ue,p,d),te&&kt(d,null,p,"unmounted")},v)},xn=d=>{const{type:p,el:v,anchor:C,transition:x}=d;if(p===ie){_n(v,C);return}if(p===us){M(d);return}const S=()=>{r(v),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(d.shapeFlag&1&&x&&!x.persisted){const{leave:N,delayLeave:D}=x,P=()=>N(v,S);D?D(d.el,S,P):P()}else S()},_n=(d,p)=>{let v;for(;d!==p;)v=h(d),r(d),d=v;r(p)},es=(d,p,v)=>{const{bum:C,scope:x,job:S,subTree:N,um:D,m:P,a:$}=d;sr(P),sr($),C&&Tn(C),x.stop(),S&&(S.flags|=8,We(N,d,p,v)),D&&qe(D,p),qe(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},H=(d,p,v,C=!1,x=!1,S=0)=>{for(let N=S;N<d.length;N++)We(d[N],p,v,C,x)},W=d=>{if(d.shapeFlag&6)return W(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const p=h(d.anchor||d.el),v=p&&p[zl];return v?h(v):p};let ee=!1;const _e=(d,p,v)=>{d==null?p._vnode&&We(p._vnode,null,null,!0):T(p._vnode||null,d,p,null,null,null,v),p._vnode=d,ee||(ee=!0,Gs(),so(),ee=!1)},Ce={p:T,um:We,m:at,r:xn,mt:xe,mc:we,pc:q,pbc:ne,n:W,o:e};return{render:_e,hydrate:void 0,createApp:hi(_e)}}function as({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Tt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Si(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Do(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let o=0;o<s.length;o++){const l=s[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=bt(r[o]),i.el=l.el),!n&&i.patchFlag!==-2&&Do(l,i)),i.type===Xn&&(i.el=l.el)}}function Ci(e){const t=e.slice(),n=[0];let s,r,o,l,i;const a=e.length;for(s=0;s<a;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(o=0,l=n.length-1;o<l;)i=o+l>>1,e[n[i]]<u?o=i+1:l=i;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function jo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jo(t)}function sr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const $i=Symbol.for("v-scx"),ki=()=>Ye($i);function Ve(e,t,n){return No(e,t,n)}function No(e,t,n=fe){const{immediate:s,deep:r,flush:o,once:l}=n,i=Se({},n),a=t&&s||!t&&o!=="post";let u;if(dn){if(o==="sync"){const g=ki();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=lt,g.resume=lt,g.pause=lt,g}}const c=Ae;i.call=(g,O,T)=>Qe(g,c,O,T);let f=!1;o==="post"?i.scheduler=g=>{qe(g,c&&c.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(g,O)=>{O?g():Ls(g)}),i.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const h=Bl(e,t,i);return dn&&(u?u.push(h):a&&h()),h}function Ti(e,t,n){const s=this.proxy,r=ye(e)?e.includes(".")?Mo(s,e):()=>s[e]:e.bind(s,s);let o;Y(t)?o=t:(o=t.handler,n=t);const l=wn(this),i=No(r,o.bind(s),n);return l(),i}function Mo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Oi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xt(t)}Modifiers`]||e[`${St(t)}Modifiers`];function Ei(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||fe;let r=n;const o=t.startsWith("update:"),l=o&&Oi(s,t.slice(7));l&&(l.trim&&(r=n.map(c=>ye(c)?c.trim():c)),l.number&&(r=n.map(An)));let i,a=s[i=ts(t)]||s[i=ts(xt(t))];!a&&o&&(a=s[i=ts(St(t))]),a&&Qe(a,e,6,r);const u=s[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Qe(u,e,6,r)}}function Ro(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let l={},i=!1;if(!Y(e)){const a=u=>{const c=Ro(u,t,!0);c&&(i=!0,Se(l,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!i?(pe(e)&&s.set(e,null),null):(V(o)?o.forEach(a=>l[a]=null):Se(l,o),pe(e)&&s.set(e,l),l)}function Gn(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,St(t))||ae(e,t))}function rr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:l,attrs:i,emit:a,render:u,renderCache:c,props:f,data:h,setupState:g,ctx:O,inheritAttrs:T}=e,_=jn(e);let w,F;try{if(n.shapeFlag&4){const M=r||s,L=M;w=ot(u.call(L,M,c,f,g,h,O)),F=i}else{const M=t;w=ot(M.length>1?M(f,{attrs:i,slots:l,emit:a}):M(f,null)),F=t.props?i:Ai(i)}}catch(M){rn.length=0,zn(M,e,1),w=J(Re)}let K=w;if(F&&T!==!1){const M=Object.keys(F),{shapeFlag:L}=K;M.length&&L&7&&(o&&M.some(ks)&&(F=Pi(F,o)),K=_t(K,F,!1,!0))}return n.dirs&&(K=_t(K,null,!1,!0),K.dirs=K.dirs?K.dirs.concat(n.dirs):n.dirs),n.transition&&un(K,n.transition),w=K,jn(_),w}const Ai=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},Pi=(e,t)=>{const n={};for(const s in e)(!ks(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Di(e,t,n){const{props:s,children:r,component:o}=e,{props:l,children:i,patchFlag:a}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?or(s,l,u):!!l;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(l[h]!==s[h]&&!Gn(u,h))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?or(s,l,u):!0:!!l;return!1}function or(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!Gn(n,o))return!0}return!1}function ji({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Io=e=>e.__isSuspense;function Ni(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Wl(e)}const ie=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Re=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),rn=[];let Ke=null;function y(e=!1){rn.push(Ke=e?null:[])}function Mi(){rn.pop(),Ke=rn[rn.length-1]||null}let cn=1;function lr(e,t=!1){cn+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Lo(e){return e.dynamicChildren=cn>0?Ke||Lt:null,Mi(),cn>0&&Ke&&Ke.push(e),e}function k(e,t,n,s,r,o){return Lo(E(e,t,n,s,r,o,!0))}function be(e,t,n,s,r){return Lo(J(e,t,n,s,r,!0))}function fn(e){return e?e.__v_isVNode===!0:!1}function Pt(e,t){return e.type===t.type&&e.key===t.key}const Fo=({key:e})=>e??null,On=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||De(e)||Y(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,s=0,r=null,o=e===ie?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fo(t),ref:t&&On(t),scopeId:oo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:$e};return i?(Us(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),cn>0&&!l&&Ke&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ke.push(a),a}const J=Ri;function Ri(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===li)&&(e=Re),fn(e)){const i=_t(e,t,!0);return n&&Us(i,n),cn>0&&!o&&Ke&&(i.shapeFlag&6?Ke[Ke.indexOf(e)]=i:Ke.push(i)),i.patchFlag=-2,i}if(zi(e)&&(e=e.__vccOpts),t){t=Ii(t);let{class:i,style:a}=t;i&&!ye(i)&&(t.class=Pe(i)),pe(a)&&(Is(a)&&!V(a)&&(a=Se({},a)),t.style=Es(a))}const l=ye(e)?1:Io(e)?128:lo(e)?64:pe(e)?4:Y(e)?2:0;return E(e,t,n,s,r,l,o,!0)}function Ii(e){return e?Is(e)||$o(e)?Se({},e):e:null}function _t(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:l,children:i,transition:a}=e,u=t?Li(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Fo(u),ref:t&&t.ref?n&&o?V(o)?o.concat(On(t)):[o,On(t)]:On(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_t(e.ssContent),ssFallback:e.ssFallback&&_t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&un(c,a.clone(c)),c}function Ie(e=" ",t=0){return J(Xn,null,e,t)}function Z(e="",t=!1){return t?(y(),be(Re,null,e)):J(Re,null,e)}function ot(e){return e==null||typeof e=="boolean"?J(Re):V(e)?J(ie,null,e.slice()):fn(e)?bt(e):J(Xn,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_t(e)}function Us(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Us(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!$o(t)?t._ctx=$e:r===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),s&64?(n=16,t=[Ie(t)]):n=8);e.children=t,e.shapeFlag|=n}function Li(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Pe([t.class,s.class]));else if(r==="style")t.style=Es([t.style,s.style]);else if(Vn(r)){const o=t[r],l=s[r];l&&o!==l&&!(V(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=s[r])}return t}function st(e,t,n,s=null){Qe(e,t,7,[n,s])}const Fi=xo();let Ui=0;function Vi(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Fi,o={uid:Ui++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ml(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:To(s,r),emitsOptions:Ro(s,r),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:s.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ei.bind(null,o),e.ce&&e.ce(o),o}let Ae=null;const Hi=()=>Ae||$e;let Rn,Ss;{const e=qn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(l=>l(o)):r[0](o)}};Rn=t("__VUE_INSTANCE_SETTERS__",n=>Ae=n),Ss=t("__VUE_SSR_SETTERS__",n=>dn=n)}const wn=e=>{const t=Ae;return Rn(e),e.scope.on(),()=>{e.scope.off(),Rn(t)}},ir=()=>{Ae&&Ae.scope.off(),Rn(null)};function Uo(e){return e.vnode.shapeFlag&4}let dn=!1;function Bi(e,t=!1,n=!1){t&&Ss(t);const{props:s,children:r}=e.vnode,o=Uo(e);mi(e,s,o,t),bi(e,r,n);const l=o?qi(e,t):void 0;return t&&Ss(!1),l}function qi(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ii);const{setup:s}=n;if(s){Ct();const r=e.setupContext=s.length>1?Wi(e):null,o=wn(e),l=bn(s,e,0,[e.props,r]),i=Ar(l);if($t(),o(),(i||e.sp)&&!Ht(e)&&po(e),i){if(l.then(ir,ir),t)return l.then(a=>{ar(e,a)}).catch(a=>{zn(a,e,0)});e.asyncDep=l}else ar(e,l)}else Vo(e)}function ar(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=eo(t)),Vo(e)}function Vo(e,t,n){const s=e.type;e.render||(e.render=s.render||lt);{const r=wn(e);Ct();try{ai(e)}finally{$t(),r()}}}const Ki={get(e,t){return Oe(e,"get",""),e[t]}};function Wi(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ki),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(eo(Rl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sn)return sn[n](e)},has(t,n){return n in t||n in sn}})):e.proxy}function zi(e){return Y(e)&&"__vccOpts"in e}const re=(e,t)=>Vl(e,t,dn);function Ji(e,t,n){const s=arguments.length;return s===2?pe(t)&&!V(t)?fn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&fn(n)&&(n=[n]),J(e,t,n))}const Yi="3.5.13";/**
|
|
14
|
-
* @vue/runtime-dom v3.5.13
|
|
15
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
-
* @license MIT
|
|
17
|
-
**/let Cs;const ur=typeof window<"u"&&window.trustedTypes;if(ur)try{Cs=ur.createPolicy("vue",{createHTML:e=>e})}catch{}const Ho=Cs?e=>Cs.createHTML(e):e=>e,Gi="http://www.w3.org/2000/svg",Xi="http://www.w3.org/1998/Math/MathML",ft=typeof document<"u"?document:null,cr=ft&&ft.createElement("template"),Zi={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ft.createElementNS(Gi,e):t==="mathml"?ft.createElementNS(Xi,e):n?ft.createElement(e,{is:n}):ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ft.createTextNode(e),createComment:e=>ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{cr.innerHTML=Ho(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=cr.content;if(s==="svg"||s==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vt="transition",Xt="animation",pn=Symbol("_vtc"),Bo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Qi=Se({},io,Bo),ea=e=>(e.displayName="Transition",e.props=Qi,e),In=ea((e,{slots:t})=>Ji(Gl,ta(e),t)),Ot=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},fr=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function ta(e){const t={};for(const j in e)j in Bo||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:u=l,appearToClass:c=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,O=na(r),T=O&&O[0],_=O&&O[1],{onBeforeEnter:w,onEnter:F,onEnterCancelled:K,onLeave:M,onLeaveCancelled:L,onBeforeAppear:Q=w,onAppear:ge=F,onAppearCancelled:we=K}=t,G=(j,se,xe,A)=>{j._enterCancelled=A,Et(j,se?c:i),Et(j,se?u:l),xe&&xe()},ne=(j,se)=>{j._isLeaving=!1,Et(j,f),Et(j,g),Et(j,h),se&&se()},ce=j=>(se,xe)=>{const A=j?ge:F,m=()=>G(se,j,xe);Ot(A,[se,m]),dr(()=>{Et(se,j?a:o),ct(se,j?c:i),fr(A)||pr(se,s,T,m)})};return Se(t,{onBeforeEnter(j){Ot(w,[j]),ct(j,o),ct(j,l)},onBeforeAppear(j){Ot(Q,[j]),ct(j,a),ct(j,u)},onEnter:ce(!1),onAppear:ce(!0),onLeave(j,se){j._isLeaving=!0;const xe=()=>ne(j,se);ct(j,f),j._enterCancelled?(ct(j,h),vr()):(vr(),ct(j,h)),dr(()=>{j._isLeaving&&(Et(j,f),ct(j,g),fr(M)||pr(j,s,_,xe))}),Ot(M,[j,xe])},onEnterCancelled(j){G(j,!1,void 0,!0),Ot(K,[j])},onAppearCancelled(j){G(j,!0,void 0,!0),Ot(we,[j])},onLeaveCancelled(j){ne(j),Ot(L,[j])}})}function na(e){if(e==null)return null;if(pe(e))return[cs(e.enter),cs(e.leave)];{const t=cs(e);return[t,t]}}function cs(e){return ll(e)}function ct(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[pn]||(e[pn]=new Set)).add(t)}function Et(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[pn];n&&(n.delete(t),n.size||(e[pn]=void 0))}function dr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let sa=0;function pr(e,t,n,s){const r=e._endId=++sa,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:l,timeout:i,propCount:a}=ra(e,t);if(!l)return s();const u=l+"end";let c=0;const f=()=>{e.removeEventListener(u,h),o()},h=g=>{g.target===e&&++c>=a&&f()};setTimeout(()=>{c<a&&f()},i+1),e.addEventListener(u,h)}function ra(e,t){const n=window.getComputedStyle(e),s=O=>(n[O]||"").split(", "),r=s(`${vt}Delay`),o=s(`${vt}Duration`),l=hr(r,o),i=s(`${Xt}Delay`),a=s(`${Xt}Duration`),u=hr(i,a);let c=null,f=0,h=0;t===vt?l>0&&(c=vt,f=l,h=o.length):t===Xt?u>0&&(c=Xt,f=u,h=a.length):(f=Math.max(l,u),c=f>0?l>u?vt:Xt:null,h=c?c===vt?o.length:a.length:0);const g=c===vt&&/\b(transform|all)(,|$)/.test(s(`${vt}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:g}}function hr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>mr(n)+mr(e[s])))}function mr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function vr(){return document.body.offsetHeight}function oa(e,t,n){const s=e[pn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ln=Symbol("_vod"),qo=Symbol("_vsh"),Vs={beforeMount(e,{value:t},{transition:n}){e[Ln]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Zt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Zt(e,!0),s.enter(e)):s.leave(e,()=>{Zt(e,!1)}):Zt(e,t))},beforeUnmount(e,{value:t}){Zt(e,t)}};function Zt(e,t){e.style.display=t?e[Ln]:"none",e[qo]=!t}const la=Symbol(""),ia=/(^|;)\s*display\s*:/;function aa(e,t,n){const s=e.style,r=ye(n);let o=!1;if(n&&!r){if(t)if(ye(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&En(s,i,"")}else for(const l in t)n[l]==null&&En(s,l,"");for(const l in n)l==="display"&&(o=!0),En(s,l,n[l])}else if(r){if(t!==n){const l=s[la];l&&(n+=";"+l),s.cssText=n,o=ia.test(n)}}else t&&e.removeAttribute("style");Ln in e&&(e[Ln]=o?s.display:"",e[qo]&&(s.display="none"))}const gr=/\s*!important$/;function En(e,t,n){if(V(n))n.forEach(s=>En(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ua(e,t);gr.test(n)?e.setProperty(St(s),n.replace(gr,""),"important"):e[s]=n}}const yr=["Webkit","Moz","ms"],fs={};function ua(e,t){const n=fs[t];if(n)return n;let s=xt(t);if(s!=="filter"&&s in e)return fs[t]=s;s=jr(s);for(let r=0;r<yr.length;r++){const o=yr[r]+s;if(o in e)return fs[t]=o}return t}const br="http://www.w3.org/1999/xlink";function wr(e,t,n,s,r,o=dl(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(br,t.slice(6,t.length)):e.setAttributeNS(br,t,n):n==null||o&&!Mr(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ze(n)?String(n):n)}function xr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ho(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Mr(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(r||t)}function Dt(e,t,n,s){e.addEventListener(t,n,s)}function ca(e,t,n,s){e.removeEventListener(t,n,s)}const _r=Symbol("_vei");function fa(e,t,n,s,r=null){const o=e[_r]||(e[_r]={}),l=o[t];if(s&&l)l.value=s;else{const[i,a]=da(t);if(s){const u=o[t]=ma(s,r);Dt(e,i,u,a)}else l&&(ca(e,i,l,a),o[t]=void 0)}}const Sr=/(?:Once|Passive|Capture)$/;function da(e){let t;if(Sr.test(e)){t={};let s;for(;s=e.match(Sr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):St(e.slice(2)),t]}let ds=0;const pa=Promise.resolve(),ha=()=>ds||(pa.then(()=>ds=0),ds=Date.now());function ma(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Qe(va(s,n.value),t,5,[s])};return n.value=e,n.attached=ha(),n}function va(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Cr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ga=(e,t,n,s,r,o)=>{const l=r==="svg";t==="class"?oa(e,s,l):t==="style"?aa(e,n,s):Vn(t)?ks(t)||fa(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ya(e,t,s,l))?(xr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&wr(e,t,s,l,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(s))?xr(e,xt(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),wr(e,t,s,l))};function ya(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Cr(t)&&Y(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Cr(t)&&ye(n)?!1:t in e}const Fn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Tn(t,n):t};function ba(e){e.target.composing=!0}function $r(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qt=Symbol("_assign"),Kt={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[qt]=Fn(r);const o=s||r.props&&r.props.type==="number";Dt(e,t?"change":"input",l=>{if(l.target.composing)return;let i=e.value;n&&(i=i.trim()),o&&(i=An(i)),e[qt](i)}),n&&Dt(e,"change",()=>{e.value=e.value.trim()}),t||(Dt(e,"compositionstart",ba),Dt(e,"compositionend",$r),Dt(e,"change",$r))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},l){if(e[qt]=Fn(l),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?An(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a))}},hn={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Hn(t);Dt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?An(Un(l)):Un(l));e[qt](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,zt(()=>{e._assigning=!1})}),e[qt]=Fn(s)},mounted(e,{value:t}){kr(e,t)},beforeUpdate(e,t,n){e[qt]=Fn(n)},updated(e,{value:t}){e._assigning||kr(e,t)}};function kr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!Hn(t))){for(let r=0,o=e.options.length;r<o;r++){const l=e.options[r],i=Un(l);if(n)if(s){const a=typeof i;a==="string"||a==="number"?l.selected=t.some(u=>String(u)===String(i)):l.selected=hl(t,i)>-1}else l.selected=t.has(i);else if(Kn(Un(l),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Un(e){return"_value"in e?e._value:e.value}const wa=["ctrl","shift","alt","meta"],xa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>wa.some(n=>e[`${n}Key`]&&!t.includes(n))},Wt=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let l=0;l<t.length;l++){const i=xa[t[l]];if(i&&i(r,t))return}return e(r,...o)})},_a={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},mt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=St(r.key);if(t.some(l=>l===o||_a[l]===o))return e(r)})},Sa=Se({patchProp:ga},Zi);let Tr;function Ca(){return Tr||(Tr=xi(Sa))}const $a=(...e)=>{const t=Ca().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ta(s);if(!r)return;const o=t._component;!Y(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,ka(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function ka(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ta(e){return ye(e)?document.querySelector(e):e}const Oa={class:"max-w-sm rounded overflow-hidden shadow-lg border border-front/20"},Ea={class:"py-2 border-b border-front/20"},Aa={class:"pl-6"},Pa={class:"px-6 py-2"},Ko=ve({__name:"Card",props:{title:{type:String,required:!0}},emits:["close"],setup(e,{emit:t}){const n=t;return(s,r)=>(y(),k("div",Oa,[Ge(s.$slots,"header",{},()=>[E("div",Ea,[E("strong",Aa,oe(e.title),1),E("span",{class:"control text-l float-right mr-2 pl-2",title:"close",onClick:r[0]||(r[0]=o=>n("close"))},"⊗ ")])]),E("div",Pa,[Ge(s.$slots,"default")])]))}}),Da={class:"header"},ja={class:"list-disc mt-2"},Na={key:0},Ma={key:1},Ra={key:2},Ia={key:3},La={key:0},Fa=ve({__name:"AttributeCard",props:{modelValue:String},emits:["show-attr","update:modelValue"],setup(e,{emit:t}){const n=e,s=Ye("app"),r=re(()=>{var l;return(l=s==null?void 0:s.schema)==null?void 0:l.attr(n.modelValue)}),o=t;return(l,i)=>{var a;return e.modelValue&&r.value?(y(),be(Ko,{key:0,title:((a=r.value.names)==null?void 0:a.join(", "))||"",class:"ml-4",onClose:i[1]||(i[1]=u=>o("update:modelValue"))},{default:de(()=>[E("div",Da,oe(r.value.desc),1),E("ul",ja,[r.value.$super?(y(),k("li",Na,[i[2]||(i[2]=Ie("Parent: ")),E("span",{class:"cursor-pointer",onClick:i[0]||(i[0]=u=>o("update:modelValue",r.value.$super.name))},oe(r.value.$super),1)])):Z("",!0),r.value.equality?(y(),k("li",Ma,"Equality: "+oe(r.value.equality),1)):Z("",!0),r.value.ordering?(y(),k("li",Ra,"Ordering: "+oe(r.value.ordering),1)):Z("",!0),r.value.substr?(y(),k("li",Ia,"Substring: "+oe(r.value.substr),1)):Z("",!0),E("li",null,[Ie("Syntax: "+oe(r.value.$syntax)+" ",1),r.value.binary?(y(),k("span",La,"(binary)")):Z("",!0)])])]),_:1},8,["title"])):Z("",!0)}}}),Ua={key:0,class:"fixed w-full h-full top-0 left-0 z-20 bg-front/60 dark:bg-back/70"},Va={class:"absolute max-h-full w-1/2 max-w-lg container text-front overflow-hidden rounded bg-back border border-front/40"},Ha={class:"flex justify-between items-start"},Ba={class:"max-h-full w-full divide-y divide-front/30"},qa={key:0,class:"flex justify-between items-center px-4 py-1"},Ka={class:"ui-modal-header text-xl font-bold leading-normal"},Wa={class:"ui-modal-body p-4 space-y-4"},za={class:"ui-modal-footer flex justify-end w-full p-4 space-x-3"},it=ve({__name:"Modal",props:{title:{type:String,required:!0},open:{type:Boolean,required:!0},okTitle:{type:String,default:"OK"},okClasses:{type:String,default:"bg-primary/80"},cancelTitle:{type:String,default:"Cancel"},cancelClasses:{type:String,default:"bg-secondary"},hideFooter:{type:Boolean,default:!1},returnTo:String},emits:["ok","cancel","show","shown","hide","hidden"],setup(e,{emit:t}){const n=e,s=t;function r(){n.open&&s("ok")}function o(){var l;n.open&&(n.returnTo&&((l=document.getElementById(n.returnTo))==null||l.focus()),s("cancel"))}return(l,i)=>(y(),k("div",null,[J(In,{name:"fade"},{default:de(()=>[e.open?(y(),k("div",Ua)):Z("",!0)]),_:1}),J(In,{name:"bounce",onEnter:i[0]||(i[0]=a=>s("show")),onAfterEnter:i[1]||(i[1]=a=>s("shown")),onLeave:i[2]||(i[2]=a=>s("hide")),onAfterLeave:i[3]||(i[3]=a=>s("hidden"))},{default:de(()=>[e.open?(y(),k("div",{key:0,ref:"backdrop",onClick:Wt(o,["self"]),onKeydown:mt(o,["esc"]),class:"fixed w-full h-full top-0 left-0 flex items-center justify-center z-30"},[E("div",Va,[E("div",Ha,[E("div",Ba,[e.title?(y(),k("div",qa,[E("h3",Ka,[Ge(l.$slots,"header",{},()=>[Ie(oe(e.title),1)])]),E("div",{class:"control text-xl",onClick:o,title:"close"},"⊗")])):Z("",!0),E("div",Wa,[Ge(l.$slots,"default")]),Ue(E("div",za,[Ge(l.$slots,"footer",{},()=>[E("button",{id:"ui-modal-cancel",onClick:o,type:"button",class:Pe(["btn",e.cancelClasses]),tabindex:"0"},[Ge(l.$slots,"modal-cancel",{},()=>[Ie(oe(e.cancelTitle),1)])],2),E("button",{id:"ui-modal-ok",onClick:Wt(r,["stop"]),type:"button",class:Pe(["btn",e.okClasses]),tabindex:"0"},[Ge(l.$slots,"modal-ok",{},()=>[Ie(oe(e.okTitle),1)])],2)])],512),[[Vs,!e.hideFooter]])])])])],544)):Z("",!0)]),_:3})]))}}),Ja=ve({__name:"AddAttributeDialog",props:{entry:{type:Object,required:!0},attributes:{type:Array,required:!0},modal:String,returnTo:String},emits:["ok","show-modal","update:modal"],setup(e,{emit:t}){const n=e,s=I(),r=I(null),o=re(()=>{const a=Object.keys(n.entry.attrs);return n.attributes.filter(u=>!a.includes(u))}),l=t;function i(){if(s.value){if(s.value=="jpegPhoto"||s.value=="thumbnailPhoto"){l("show-modal","add-"+s.value);return}if(s.value=="userPassword"){l("show-modal","change-password");return}l("update:modal"),l("ok",s.value)}}return(a,u)=>(y(),be(it,{title:"Add attribute",open:e.modal=="add-attribute","return-to":n.returnTo,onShow:u[1]||(u[1]=c=>{s.value=void 0}),onShown:u[2]||(u[2]=c=>{var f;return(f=r.value)==null?void 0:f.focus()}),onOk:i,onCancel:u[3]||(u[3]=c=>l("update:modal"))},{default:de(()=>[Ue(E("select",{"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c),ref_key:"select",ref:r,onKeyup:mt(i,["enter"])},[(y(!0),k(ie,null,ke(o.value,c=>(y(),k("option",{key:c},oe(c),1))),128))],544),[[hn,s.value]])]),_:1},8,["open","return-to"]))}}),Ya=ve({__name:"AddObjectClassDialog",props:{entry:{type:Object,required:!0},modal:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=I(),r=I(),o=re(()=>{const a=n.entry.attrs.objectClass;return n.entry.meta.aux.filter(u=>!a.includes(u))}),l=t;function i(){s.value&&(l("update:modal"),l("ok",s.value))}return(a,u)=>(y(),be(it,{title:"Add objectClass",open:e.modal=="add-object-class",onShow:u[1]||(u[1]=c=>{s.value=void 0}),onShown:u[2]||(u[2]=c=>{var f;return(f=r.value)==null?void 0:f.focus()}),onOk:i,onCancel:u[3]||(u[3]=c=>l("update:modal"))},{default:de(()=>[Ue(E("select",{"onUpdate:modelValue":u[0]||(u[0]=c=>s.value=c),ref_key:"select",ref:r,onKeyup:mt(i,["enter"])},[(y(!0),k(ie,null,ke(o.value,c=>(y(),k("option",{key:c},oe(c),1))),128))],544),[[hn,s.value]])]),_:1},8,["open"]))}}),Ga=["accept"],Or=ve({__name:"AddPhotoDialog",props:{dn:{type:String,required:!0},attr:{type:String,validator:e=>["jpegPhoto","thumbnailPhoto"].includes(e)},modal:String,returnTo:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=I(null),r=t;async function o(l){const i=l.target;if(!(i!=null&&i.files))return;const a=new FormData;a.append("blob",i.files[0]),(await fetch("api/blob/"+n.attr+"/0/"+n.dn,{method:"PUT",body:a})).ok&&(r("update:modal"),r("ok",n.dn,[n.attr]))}return(l,i)=>(y(),be(it,{title:"Upload photo","hide-footer":"","return-to":e.returnTo,open:e.modal=="add-"+e.attr,onShown:i[0]||(i[0]=a=>{var u;return(u=s.value)==null?void 0:u.focus()}),onCancel:i[1]||(i[1]=a=>r("update:modal"))},{default:de(()=>[E("input",{name:"photo",type:"file",ref_key:"upload",ref:s,onChange:o,accept:e.attr=="jpegPhoto"?"image/jpeg":"image/*"},null,40,Ga)]),_:1},8,["return-to","open"]))}});function Xa(e,t,n){return n.indexOf(e)==t}function Za(e){let t=e.substring(14);return t!="Z"&&(t=t.substring(0,3)+":"+(t.length>3?t.substring(3,5):"00")),new Date(e.substring(0,4)+"-"+e.substring(4,6)+"-"+e.substring(6,8)+"T"+e.substring(8,10)+":"+e.substring(10,12)+":"+e.substring(12,14)+t)}let Qn;class Qa{constructor(t){X(this,"text");X(this,"attrName");X(this,"value");this.text=t;const n=t.split("=");this.attrName=n[0].trim(),this.value=n[1].trim()}toString(){return this.text}eq(t){return t!==void 0&&this.attr!==void 0&&this.attr.eq(t.attr)&&this.attr.matcher(this.value,t.value)}get attr(){return Qn.attr(this.attrName)}}class mn{constructor(t){X(this,"text");X(this,"rdn");X(this,"parent");this.text=t;const n=t.split(",");this.rdn=new Qa(n[0]),this.parent=n.length==1?void 0:new mn(t.slice(n[0].length+1))}toString(){return this.text}eq(t){return!t||!this.rdn.eq(t.rdn)?!1:!this.parent&&!t.parent?!0:!!this.parent&&this.parent.eq(t.parent)}}let Wo=class{constructor(){X(this,"oid");X(this,"name");X(this,"names");X(this,"sup")}};class eu extends Wo{constructor(n){super();X(this,"desc");X(this,"obsolete");X(this,"may");X(this,"must");X(this,"kind");Object.assign(this,n)}get structural(){return this.kind=="structural"}$collect(n){const s=[];for(let o=this;o;o=o.$super){const l=o[n];l&&s.push(l)}const r=s.flat().map(o=>Qn.attr(o)).map(o=>o==null?void 0:o.name).filter(Xa);return r.sort(),r}toString(){return this.name}get $super(){const n=Object.getPrototypeOf(this);return n.sup?n:void 0}}const Er={distinguishedNameMatch:(e,t)=>new mn(e).eq(new mn(t)),caseIgnoreIA5Match:(e,t)=>e.toLowerCase()==t.toLowerCase(),caseIgnoreMatch:(e,t)=>e.toLowerCase()==t.toLowerCase(),integerMatch:(e,t)=>+e==+t,numericStringMatch:(e,t)=>+e==+t,octetStringMatch:(e,t)=>e==t};class zo extends Wo{constructor(n){super();X(this,"desc");X(this,"equality");X(this,"obsolete");X(this,"ordering");X(this,"no_user_mod");X(this,"single_value");X(this,"substr");X(this,"syntax");X(this,"usage");delete this.equality,delete this.ordering,delete this.substr,delete this.syntax,Object.assign(this,Object.fromEntries(Object.entries(n).filter(([s,r])=>r!=null)))}toString(){return this.name}get matcher(){return(this.equality?Er[this.equality]:void 0)||Er.octetStringMatch}eq(n){return n&&this.oid==n.oid}get binary(){var n;if(this.equality!="octetStringMatch")return(n=this.$syntax)==null?void 0:n.not_human_readable}get $syntax(){return Qn.syntaxes.get(this.syntax)}get $super(){const n=Object.getPrototypeOf(this);return n.sup?n:void 0}}class tu{constructor(t){X(this,"oid");X(this,"desc");X(this,"not_human_readable");Object.assign(this,t)}toString(){return this.desc}}class nu extends Object{constructor(n){super();X(this,"attributes");X(this,"objectClasses");X(this,"syntaxes");X(this,"attributesByName");this.syntaxes=new Map(Object.entries(n.syntaxes).map(([s,r])=>[s,new tu(r)])),this.attributes=Object.values(n.attributes).map(s=>new zo(s)),this.objectClasses=new Map(Object.entries(n.objectClasses).map(([s,r])=>[s.toLowerCase(),new eu(r)])),this.buildPrototypeChain(this.objectClasses),this.attributesByName=new Map(this.attributes.flatMap(s=>(s.names||[]).map(r=>[r.toLowerCase(),s]))),this.buildPrototypeChain(this.attributesByName),Qn=this}buildPrototypeChain(n){for(const s of n.values()){const r=s.sup?s.sup[0]:void 0,o=r?n.get(r.toLowerCase()):void 0;o&&Object.setPrototypeOf(s,o)}}attr(n){return this.attributesByName.get((n==null?void 0:n.toLowerCase())||"")}oc(n){return this.objectClasses.get((n==null?void 0:n.toLowerCase())||"")}search(n){return this.attributes.filter(s=>{var r;return(r=s.names)==null?void 0:r.some(o=>o.toLowerCase().startsWith(n.toLowerCase()))})}}function su(e){return Lr()?(vl(e),!0):!1}function Jo(e){return typeof e=="function"?e():yn(e)}const ru=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ou=Object.prototype.toString,lu=e=>ou.call(e)==="[object Object]",iu=()=>{};function Yo(e){var t;const n=Jo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Hs=ru?window:void 0;function jt(...e){let t,n,s,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,r]=e,t=Hs):[t,n,s,r]=e,!t)return iu;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const o=[],l=()=>{o.forEach(c=>c()),o.length=0},i=(c,f,h,g)=>(c.addEventListener(f,h,g),()=>c.removeEventListener(f,h,g)),a=Ve(()=>[Yo(t),Jo(r)],([c,f])=>{if(l(),!c)return;const h=lu(f)?{...f}:f;o.push(...n.flatMap(g=>s.map(O=>i(c,g,O,h))))},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return su(u),u}const au={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function uu(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:s=!1,initialValue:r={x:0,y:0},window:o=Hs,target:l=o,scroll:i=!0,eventFilter:a}=e;let u=null;const c=I(r.x),f=I(r.y),h=I(null),g=typeof t=="function"?t:au[t],O=L=>{const Q=g(L);u=L,Q&&([c.value,f.value]=Q,h.value="mouse")},T=L=>{if(L.touches.length>0){const Q=g(L.touches[0]);Q&&([c.value,f.value]=Q,h.value="touch")}},_=()=>{if(!u||!o)return;const L=g(u);u instanceof MouseEvent&&L&&(c.value=L[0]+o.scrollX,f.value=L[1]+o.scrollY)},w=()=>{c.value=r.x,f.value=r.y},F=a?L=>a(()=>O(L),{}):L=>O(L),K=a?L=>a(()=>T(L),{}):L=>T(L),M=a?()=>a(()=>_(),{}):()=>_();if(l){const L={passive:!0};jt(l,["mousemove","dragover"],F,L),n&&t!=="movement"&&(jt(l,["touchstart","touchmove"],K,L),s&&jt(l,"touchend",w,L)),i&&t==="page"&&jt(o,"scroll",M,{passive:!0})}return{x:c,y:f,sourceType:h}}function cu(e,t={}){const{handleOutside:n=!0,window:s=Hs}=t,r=t.type||"page",{x:o,y:l,sourceType:i}=uu(t),a=I(e??(s==null?void 0:s.document.body)),u=I(0),c=I(0),f=I(0),h=I(0),g=I(0),O=I(0),T=I(!0);let _=()=>{};return s&&(_=Ve([a,o,l],()=>{const w=Yo(a);if(!w)return;const{left:F,top:K,width:M,height:L}=w.getBoundingClientRect();f.value=F+(r==="page"?s.pageXOffset:0),h.value=K+(r==="page"?s.pageYOffset:0),g.value=L,O.value=M;const Q=o.value-f.value,ge=l.value-h.value;T.value=M===0||L===0||Q<0||ge<0||Q>M||ge>L,(n||!T.value)&&(u.value=Q,c.value=ge)},{immediate:!0}),jt(document,"mouseleave",()=>{T.value=!0})),{x:o,y:l,sourceType:i,elementX:u,elementY:c,elementPositionX:f,elementPositionY:h,elementHeight:g,elementWidth:O,isOutside:T,stop:_}}const fu={key:0,class:"ui-popover absolute z-10 border border-front/70 rounded min-w-max text-front bg-back list-none"},Bs=ve({__name:"Popover",props:{open:Boolean},emits:["opened","closed","update:open"],setup(e,{emit:t}){const n=e,s=t,r=I(null),o=I(),{isOutside:l}=cu(r);function i(){o.value=void 0,n.open&&s("update:open")}function a(c){const f=r.value.children.length-1;o.value===void 0?o.value=c>0?0:f:(o.value+=c,o.value>f?o.value=0:o.value<0&&(o.value=f))}function u(c){if(!(!n.open||!r.value))switch(c.key){case"Esc":case"Escape":i();break;case"ArrowDown":a(1),c.preventDefault();break;case"ArrowUp":a(-1),c.preventDefault();break;case"Enter":{r.value.children[o.value].click(),c.preventDefault();break}}}return Jt(()=>{jt(document,"keydown",u),jt(document,"click",i)}),Ve(o,c=>{if(!(!n.open||!r.value)){for(const f of r.value.children)f.classList.remove("selected");c!=null&&r.value.children[c].classList.add("selected")}}),Ve(l,c=>{for(const f of r.value.children)c?f.classList.remove("hover:bg-primary/40"):(o.value=void 0,f.classList.add("hover:bg-primary/40"))}),(c,f)=>(y(),be(In,{name:"fade",onAfterEnter:f[0]||(f[0]=h=>s("opened")),onAfterLeave:f[1]||(f[1]=h=>s("closed"))},{default:de(()=>[e.open?(y(),k("div",fu,[E("ul",{class:"bg-front/5 dark:bg-front/10 py-2",ref_key:"items",ref:r,onClick:i},[Ge(c.$slots,"default")],512)])):Z("",!0)]),_:3}))}}),du=["onClick","title"],pu=ve({__name:"AttributeSearch",props:{query:{type:String,default:""},for:{type:String,default:""}},emits:["done"],setup(e,{emit:t}){const n=e,s=Ye("app"),r=I([]),o=re(()=>n.query.trim()!=""&&r.value&&r.value.length>0&&!(r.value.length==1&&n.query==r.value[0].name)),l=t;Ve(()=>n.query,a=>{var u;a&&(r.value=((u=s==null?void 0:s.schema)==null?void 0:u.search(a))||[],r.value.sort((c,f)=>c.name.toLowerCase().localeCompare(f.name.toLowerCase())))});function i(a){l("done",a),r.value=[],zt(()=>{const u=document.getElementById(n.for);u&&u.focus()})}return(a,u)=>(y(),be(Bs,{open:o.value,"onUpdate:open":u[0]||(u[0]=c=>r.value=[])},{default:de(()=>[(y(!0),k(ie,null,ke(r.value,c=>(y(),k("li",{key:c.oid,onClick:f=>i(c.name),title:c.oid,role:"menuitem"},oe(c.name),9,du))),128))]),_:1},8,["open"]))}}),hu=["onClick","title"],Go=ve({__name:"SearchResults",props:{query:{type:String,default:""},for:String,label:{type:String,default:"name",validator:e=>["name","dn"].includes(e)},shorten:String,silent:{type:Boolean,default:!1}},emits:["select-dn"],setup(e,{emit:t}){const n=e,s=Ye("app"),r=I([]),o=re(()=>n.query.trim()!=""&&r.value&&r.value.length>1),l=t;Ve(()=>n.query,async u=>{if(!u)return;const c=await fetch("api/search/"+u);if(c.ok){if(r.value=await c.json(),r.value.length==0&&!n.silent){s==null||s.showWarning("No search results");return}if(r.value.length==1){a(r.value[0].dn);return}r.value.sort((f,h)=>f[n.label].toLowerCase().localeCompare(h[n.label].toLowerCase()))}});function i(u){return n.shorten&&n.shorten!=u?u.replace(n.shorten,"…"):u}function a(u){l("select-dn",u),r.value=[],zt(()=>{if(n.for){const c=document.getElementById(n.for);c&&c.focus()}})}return(u,c)=>(y(),be(Bs,{open:o.value,"onUpdate:open":c[0]||(c[0]=f=>r.value=[])},{default:de(()=>[(y(!0),k(ie,null,ke(r.value,f=>(y(),k("li",{key:f.dn,onClick:h=>a(f.dn),title:e.label=="dn"?"":i(f.dn),role:"menuitem"},oe(f[e.label]),9,hu))),128))]),_:1},8,["open"]))}}),mu=ve({__name:"ToggleButton",props:["value"],emits:["update:value"],setup(e,{emit:t}){const n=e,s=t,r=re(()=>n.value=="TRUE");return(o,l)=>(y(),k("button",{type:"button",class:"p-0 relative focus:outline-none",tabindex:"0",onClick:l[0]||(l[0]=i=>s("update:value",r.value?"FALSE":"TRUE"))},[l[1]||(l[1]=E("div",{class:"w-8 h-4 transition rounded-full bg-gray-200"},null,-1)),E("div",{class:Pe(["absolute top-0 left-0 w-4 h-4 transition-all duration-200 ease-in-out transform scale-110 rounded-full shadow-sm",r.value?"translate-x-4 bg-primary":"translate-x-0 bg-secondary"])},null,2)]))}}),vu={key:0,class:"flex mx-4 space-x-4"},gu=["title"],yu={key:0,class:"fa text-emerald-700 ml-1 fa-check"},bu={class:"w-3/4"},wu=["onClick","title"],xu={key:5,class:"mr-5"},_u={key:6},Su=["src"],Cu=["onClick"],$u={key:7},ku=["onClick"],Tu={key:1,class:"pb-1 border-primary focus-within:border-b border-solid"},Ou=["onClick"],Eu=["value","id","type","placeholder","disabled","title"],Au=["onClick"],Pu={key:2,class:"text-xs ml-6 opacity-70"},Du=ve({__name:"AttributeRow",props:{attr:{type:zo,required:!0},baseDn:String,values:{type:Array,required:!0},meta:{type:Object,required:!0},must:{type:Boolean,required:!0},may:{type:Boolean,required:!0},changed:{type:Boolean,required:!0}},emits:["reload-form","show-attr","show-modal","show-oc","update","valid"],setup(e,{emit:t}){function n(H,W,ee){return H==""||ee.indexOf(H)==W}const s={weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},r={boolean:"1.3.6.1.4.1.1466.115.121.1.7",distinguishedName:"1.3.6.1.4.1.1466.115.121.1.12",generalizedTime:"1.3.6.1.4.1.1466.115.121.1.24",integer:"1.3.6.1.4.1.1466.115.121.1.27",oid:"1.3.6.1.4.1.1466.115.121.1.38",telephoneNumber:"1.3.6.1.4.1.1466.115.121.1.50"},o=["uidNumber","gidNumber"],l=e,i=Ye("app"),a=I(!0),u=I(),c=I(""),f=I(""),h=I(),g=re(()=>l.attr.syntax==r.boolean),O=re(()=>l.attr.syntax==r.distinguishedName),T=re(()=>l.values.length==1&&l.values[0]==u.value),_=re(()=>l.values.every(H=>!H.trim())),w=re(()=>!l.must&&!l.may),F=re(()=>l.attr.name==l.meta.dn.split("=")[0]),K=re(()=>l.attr.syntax==r.oid),M=re(()=>_.value&&l.must),L=re(()=>l.attr.name=="userPassword"),Q=re(()=>l.attr.syntax==r.generalizedTime),ge=re(()=>L.value?!1:l.meta.binary.includes(l.attr.name)),we=re(()=>F.value||l.attr.name=="objectClass"||w.value&&_.value||!l.meta.isNew&&(L.value||ge.value)),G=re(()=>{let H="";return O.value&&(H=" "),M.value&&(H=" "),_.value&&(H=" "),H}),ne=re(()=>l.attr.name=="jpegPhoto"||l.attr.name=="thumbnailPhoto"||!l.attr.no_user_mod&&!ge.value),ce=re(()=>L.value?"password":l.attr.syntax==r.telephoneNumber?"tel":l.attr.syntax==r.integer?"number":"text"),j=t;Ve(a,H=>j("valid",H)),Jt(async()=>{if(we.value||!o.includes(l.attr.name)||l.values.length!=1||l.values[0])return;const H=await fetch("api/range/"+l.attr.name);if(!H.ok)return;const W=await H.json();c.value=W.min==W.max?"> "+W.min:"∉ ("+W.min+" - "+W.max+")",u.value=""+W.next,j("update",l.attr.name,[u.value],0),se()}),mo(se);function se(){a.value=!M.value&&(!w.value||_.value)&&l.values.every(n)}function xe(H){const W=H.target,ee=W.value,_e=+W.id.split("-").slice(-1).pop();A(_e,ee)}function A(H,W){const ee=l.values.slice();ee[H]=W,j("update",l.attr.name,ee)}function m(){const H=l.values.slice();H.includes("")||H.push(""),j("update",l.attr.name,H,H.length-1)}function b(H){const W=l.values.slice(0,H).concat(l.values.slice(H+1));j("update","objectClass",W)}function q(H){return Za(H).toLocaleString(void 0,s)}function Te(H){var W,ee;return l.attr.name=="objectClass"&&((ee=(W=i==null?void 0:i.schema)==null?void 0:W.oc(H))==null?void 0:ee.structural)}function Le(H){var ee;const W=(ee=i==null?void 0:i.schema)==null?void 0:ee.oc(H);return l.attr.name=="objectClass"&&W&&!W.structural}function at(H){return!n(l.values[H],H,l.values)}function We(H){return H==0&&!l.attr.single_value&&!we.value&&!l.values.includes("")}function xn(H){const W=H.target;h.value=W.id;const ee=W.value;f.value=ee.length>=2&&!ee.includes(",")?ee:""}function _n(H){const W=+h.value.split("-").slice(-1).pop(),ee=l.values.slice();ee[W]=H,f.value="",j("update",l.attr.name,ee)}async function es(H){(await fetch("api/blob/"+l.attr.name+"/"+H+"/"+l.meta.dn,{method:"DELETE"})).ok&&j("reload-form",l.meta.dn,[l.attr.name])}return(H,W)=>e.attr&&ne.value?(y(),k("div",vu,[E("div",{class:Pe([{required:e.must,optional:e.may,rdn:F.value,illegal:w.value},"w-1/4"])},[E("span",{class:"cursor-pointer oc",title:e.attr.desc,onClick:W[0]||(W[0]=ee=>j("show-attr",e.attr.name))},oe(e.attr),9,gu),e.changed?(y(),k("i",yu)):Z("",!0)],2),E("div",bu,[(y(!0),k(ie,null,ke(e.values,(ee,_e)=>(y(),k("div",{key:_e},[Te(ee)?(y(),k("span",{key:0,onClick:W[1]||(W[1]=Ce=>j("show-modal","add-object-class")),tabindex:"-1",class:"add-btn control font-bold",title:"Add object class…"},"⊕")):Le(ee)?(y(),k("span",{key:1,onClick:Ce=>b(_e),class:"remove-btn control",title:"Remove "+ee},"⊖",8,wu)):L.value?(y(),k("span",{key:2,class:"fa fa-question-circle control",onClick:W[2]||(W[2]=Ce=>j("show-modal","change-password")),tabindex:"-1",title:"change password"})):e.attr.name=="jpegPhoto"||e.attr.name=="thumbnailPhoto"?(y(),k("span",{key:3,onClick:W[3]||(W[3]=Ce=>j("show-modal","add-jpegPhoto")),tabindex:"-1",class:"add-btn control align-top",title:"Add photo…"},"⊕")):We(_e)&&!w.value?(y(),k("span",{key:4,onClick:m,class:"add-btn control",title:"Add row"},"⊕")):(y(),k("span",xu)),e.attr.name=="jpegPhoto"||e.attr.name=="thumbnailPhoto"?(y(),k("span",_u,[ee?(y(),k("img",{key:0,src:"data:image/"+(e.attr.name=="jpegPhoto"?"jpeg":"*")+";base64,"+ee,class:"max-w-[120px] max-h-[120px] border p-[1px] inline mx-1"},null,8,Su)):Z("",!0),ee?(y(),k("span",{key:1,class:"control remove-btn align-top ml-1",onClick:Ce=>es(_e),title:"Remove photo"},"⊖",8,Cu)):Z("",!0)])):g.value?(y(),k("span",$u,[_e==0&&!e.values[0]?(y(),k("span",{key:0,class:"control text-lg",onClick:Ce=>A(_e,"FALSE")},"⊕",8,ku)):(y(),k("span",Tu,[J(mu,{id:e.attr+"-"+_e,value:e.values[_e],class:"mt-2","onUpdate:value":Ce=>A(_e,Ce)},null,8,["id","value","onUpdate:value"]),E("i",{class:"fa fa-trash ml-2 relative -top-0.5 control",onClick:Ce=>A(_e,"")},null,8,Ou)]))])):(y(),k("input",{key:8,value:e.values[_e],id:e.attr+"-"+_e,type:ce.value,autocomplete:"off",class:Pe(["w-[90%] glyph outline-none bg-back border-x-0 border-t-0 border-b border-solid border-front/20 focus:border-primary px-1",{structural:Te(ee),auto:T.value,illegal:w.value&&!_.value||at(_e)}]),placeholder:G.value,disabled:we.value,title:Q.value?q(ee):"",onInput:xe,onFocusin:W[4]||(W[4]=Ce=>f.value=""),onKeyup:[xn,W[5]||(W[5]=mt(Ce=>f.value="",["esc"]))]},null,42,Eu)),e.attr.name=="objectClass"?(y(),k("i",{key:9,class:"cursor-pointer fa fa-info-circle",onClick:Ce=>j("show-oc",ee)},null,8,Au)):Z("",!0)]))),128)),O.value&&h.value?(y(),be(Go,{key:0,silent:"",onSelectDn:_n,for:h.value,query:f.value,label:"dn",shorten:e.baseDn},null,8,["for","query","shorten"])):Z("",!0),K.value&&h.value?(y(),be(pu,{key:1,onDone:_n,for:h.value,query:f.value},null,8,["for","query"])):Z("",!0),c.value?(y(),k("div",Pu,oe(c.value),1)):Z("",!0)])])):Z("",!0)}}),Xo=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},ju=Xo(Du,[["__scopeId","data-v-458112a0"]]),Nu={key:0,class:"text-danger text-xs mb-1"},Mu=ve({__name:"CopyEntryDialog",props:{entry:{type:Object,required:!0},modal:String,returnTo:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=I(""),r=I(""),o=I(null),l=t;function i(){r.value="",s.value=n.entry.meta.dn}function a(){if(!s.value||s.value==n.entry.meta.dn){r.value="This DN already exists";return}const u=s.value.split(","),c=u[0].split("="),f=c[0];if(c.length!=2){r.value="Invalid RDN: "+u[0];return}l("update:modal");const h=JSON.parse(JSON.stringify(n.entry));h.attrs[f]=[c[1]],h.meta.dn=s.value,h.meta.isNew=!0,l("ok",h)}return(u,c)=>(y(),be(it,{title:"Copy entry",open:e.modal=="copy-entry","return-to":e.returnTo,onShow:i,onShown:c[1]||(c[1]=f=>{var h;return(h=o.value)==null?void 0:h.focus()}),onOk:a,onCancel:c[2]||(c[2]=f=>l("update:modal"))},{default:de(()=>[E("div",null,[r.value?(y(),k("div",Nu,oe(r.value),1)):Z("",!0),Ue(E("input",{ref_key:"newdn",ref:o,"onUpdate:modelValue":c[0]||(c[0]=f=>s.value=f),placeholder:"New DN",onKeyup:mt(a,["enter"])},null,544),[[Kt,s.value]])])]),_:1},8,["open","return-to"]))}}),Ru=["title"],vn=ve({__name:"NodeLabel",props:{dn:String,oc:String},emits:["select-dn"],setup(e,{emit:t}){const n=e,s={account:"user",groupOfNames:"users",groupOfURLs:"users",groupOfUniqueNames:"users",inetOrgPerson:"address-book",krbContainer:"lock",krbPrincipal:"user-o",krbRealmContainer:"globe",organization:"globe",organizationalRole:"android",organizationalUnit:"sitemap",person:"user",posixGroup:"users"},r=re(()=>n.oc?" fa-"+(s[n.oc]||"question"):"fa-question"),o=re(()=>(n.dn||"").split(",")[0].replace(/^cn=/,"").replace(/^krbPrincipalName=/,"")),l=t;return(i,a)=>(y(),k("span",{onClick:a[0]||(a[0]=u=>l("select-dn",e.dn)),title:e.dn,class:"node-label cursor-pointer select-none"},[e.oc?(y(),k("i",{key:0,class:Pe(["fa w-6 text-center",r.value])},null,2)):Z("",!0),Ge(i.$slots,"default",{},()=>[Ie(oe(o.value),1)])],8,Ru))}}),Iu={key:0},Lu=ve({__name:"DeleteEntryDialog",props:{dn:{type:String,required:!0},modal:String,returnTo:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=I([]),r=t;async function o(){const a=await fetch("api/subtree/"+n.dn);s.value=await a.json()}function l(){var a;(a=document.getElementById("ui-modal-ok"))==null||a.focus()}function i(){r("update:modal"),r("ok",n.dn)}return(a,u)=>(y(),be(it,{title:"Are you sure?",open:e.modal=="delete-entry","return-to":e.returnTo,"cancel-classes":"bg-primary/80","ok-classes":"bg-danger/80",onShow:o,onShown:l,onOk:i,onCancel:u[0]||(u[0]=c=>r("update:modal"))},{"modal-ok":de(()=>u[2]||(u[2]=[E("i",{class:"fa fa-trash-o fa-lg"},null,-1),Ie(" Delete ")])),default:de(()=>[u[3]||(u[3]=E("p",{class:"strong"},"This action is irreversible.",-1)),s.value.length?(y(),k("div",Iu,[u[1]||(u[1]=E("p",{class:"text-danger mb-2"},"The following child nodes will be also deleted:",-1)),(y(!0),k(ie,null,ke(s.value,c=>(y(),k("div",{key:c.dn},[(y(!0),k(ie,null,ke(c.level,f=>(y(),k("span",{class:"ml-6",key:f}))),128)),J(vn,{oc:c.structuralObjectClass},{default:de(()=>[Ie(oe(c.dn.split(",")[0]),1)]),_:2},1032,["oc"])]))),128))])):Z("",!0)]),_:1},8,["open","return-to"]))}}),Fu=ve({__name:"DiscardEntryDialog",props:{dn:String,modal:String,returnTo:String},emits:["ok","shown","update:modal"],setup(e,{emit:t}){const n=I(),s=t;function r(){var l;(l=document.getElementById("ui-modal-ok"))==null||l.focus(),s("shown")}function o(){s("update:modal"),s("ok",n.value)}return(l,i)=>(y(),be(it,{title:"Are you sure?",open:e.modal=="discard-entry","return-to":e.returnTo,"cancel-classes":"bg-primary/80","ok-classes":"bg-danger/80",onShow:i[0]||(i[0]=a=>{n.value=e.dn}),onShown:r,onOk:o,onCancel:i[1]||(i[1]=a=>s("update:modal"))},{"modal-ok":de(()=>i[2]||(i[2]=[E("i",{class:"fa fa-trash-o fa-lg"},null,-1),Ie(" Discard ")])),default:de(()=>[i[3]||(i[3]=E("p",{class:"strong"},"All changes will be irreversibly lost.",-1))]),_:1},8,["open","return-to"]))}}),Uu={class:"relative inline-block text-left mx-1"},Vu=["aria-expanded"],Hu=["aria-hidden"],Zo=ve({__name:"DropdownMenu",props:{title:String},setup(e){const t=I(!1);return(n,s)=>(y(),k("div",Uu,[E("span",{ref:"opener",class:"inline-flex w-full py-2 select-none cursor-pointer","aria-expanded":t.value,"aria-haspopup":"true",onClick:s[0]||(s[0]=Wt(r=>t.value=!t.value,["stop"]))},[Ge(n.$slots,"button-content",{},()=>[Ie(oe(e.title),1)]),(y(),k("svg",{class:"-mr-1 h-5 w-5 pt-1",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":!t.value},s[2]||(s[2]=[E("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"},null,-1)]),8,Hu))],8,Vu),J(Bs,{open:t.value,"onUpdate:open":s[1]||(s[1]=r=>t.value=r)},{default:de(()=>[Ge(n.$slots,"default")]),_:3},8,["open"])]))}}),Bu={key:0},qu={key:0},Ku=ve({__name:"NewEntryDialog",props:{dn:{type:String,required:!0},modal:String,returnTo:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=Ye("app"),r=I(""),o=I(""),l=I(""),i=I(null),a=re(()=>{var g;return(g=s==null?void 0:s.schema)==null?void 0:g.oc(r.value)}),u=t;function c(){r.value=o.value=l.value=""}function f(){var T;if(!r.value||!o.value||!l.value)return;u("update:modal");const g=[r.value];for(let _=(T=a.value)==null?void 0:T.$super;_;_=_.$super)!_.structural&&_.kind!="abstract"&&g.push(_.name);const O={meta:{dn:o.value+"="+l.value+","+n.dn,aux:[],required:[],binary:[],autoFilled:[],isNew:!0},attrs:{objectClass:g},changed:[]};O.attrs[o.value]=[l.value],u("ok",O)}function h(){var O;if(!r.value)return[];const g=((O=a.value)==null?void 0:O.$collect("must"))||[];return g.length==1&&(o.value=g[0]),g}return(g,O)=>(y(),be(it,{title:"New entry",open:e.modal=="new-entry","return-to":e.returnTo,onOk:f,onCancel:O[3]||(O[3]=T=>u("update:modal")),onShow:c,onShown:O[4]||(O[4]=T=>{var _;return(_=i.value)==null?void 0:_.focus()})},{default:de(()=>{var T,_;return[E("label",null,[O[5]||(O[5]=Ie("Object class: ")),Ue(E("select",{ref_key:"select",ref:i,"onUpdate:modelValue":O[0]||(O[0]=w=>r.value=w)},[(y(!0),k(ie,null,ke((_=(T=yn(s))==null?void 0:T.schema)==null?void 0:_.objectClasses.values(),w=>(y(),k(ie,{key:w.name},[w.structural?(y(),k("option",Bu,oe(w),1)):Z("",!0)],64))),128))],512),[[hn,r.value]])]),r.value?(y(),k("label",qu,[O[6]||(O[6]=Ie("RDN attribute: ")),Ue(E("select",{"onUpdate:modelValue":O[1]||(O[1]=w=>o.value=w)},[(y(!0),k(ie,null,ke(h(),w=>(y(),k("option",{key:w},oe(w),1))),128))],512),[[hn,o.value]])])):Z("",!0),r.value?Ue((y(),k("input",{key:1,"onUpdate:modelValue":O[2]||(O[2]=w=>l.value=w),placeholder:"RDN value",onKeyup:mt(f,["enter"])},null,544)),[[Kt,l.value]]):Z("",!0)]}),_:1},8,["open","return-to"]))}}),Wu={key:0},zu=ve({__name:"PasswordChangeDialog",props:{entry:{type:Object,required:!0},modal:String,returnTo:String,user:String},emits:["ok","update-form","update:modal"],setup(e,{emit:t}){const n=e,s=I(""),r=I(""),o=I(""),l=I(),i=I(null),a=I(null),u=re(()=>n.user==n.entry.meta.dn),c=re(()=>r.value&&r.value==o.value),f=re(()=>!!n.entry.attrs.userPassword&&n.entry.attrs.userPassword[0]!=""),h=t;function g(){s.value=r.value=o.value="",l.value=void 0}function O(){var w,F;f.value?(w=i.value)==null||w.focus():(F=a.value)==null||F.focus()}async function T(){if(!s.value||s.value.length==0){l.value=void 0;return}const w=await fetch("api/password/"+n.entry.meta.dn,{method:"POST",body:JSON.stringify({check:s.value}),headers:{"Content-Type":"application/json"}});l.value=await w.json()}async function _(){u.value&&!r.value||r.value!=o.value||u.value&&f.value&&!l.value||(h("update:modal"),h("ok",s.value,r.value))}return(w,F)=>(y(),be(it,{title:"Change / verify password",open:e.modal=="change-password","return-to":e.returnTo,onShow:g,onShown:O,onOk:_,onCancel:F[3]||(F[3]=K=>h("update:modal")),onHidden:F[4]||(F[4]=K=>h("update-form"))},{default:de(()=>[f.value?(y(),k("div",Wu,[E("small",null,oe(u.value?"Required":"Optional"),1),l.value!==void 0?(y(),k("i",{key:0,class:Pe(["fa ml-2",l.value?"text-emerald-700 fa-check-circle":"text-danger fa-times-circle"])},null,2)):Z("",!0),Ue(E("input",{ref_key:"old",ref:i,"onUpdate:modelValue":F[0]||(F[0]=K=>s.value=K),placeholder:"Old password",type:"password",onChange:T},null,544),[[Kt,s.value]])])):Z("",!0),Ue(E("input",{ref_key:"changed",ref:a,"onUpdate:modelValue":F[1]||(F[1]=K=>r.value=K),placeholder:"New password",type:"password"},null,512),[[Kt,r.value]]),Ue(E("input",{"onUpdate:modelValue":F[2]||(F[2]=K=>o.value=K),class:Pe({"text-danger":o.value&&!c.value}),placeholder:"Repeat new password",type:"password",onKeyup:mt(_,["enter"])},null,34),[[Kt,o.value]])]),_:1},8,["open","return-to"]))}}),Ju=ve({__name:"RenameEntryDialog",props:{entry:{type:Object,required:!0},modal:String,returnTo:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=e,s=I(),r=I(null),o=re(()=>Object.keys(n.entry.attrs).filter(u)),l=t;function i(){s.value=o.value.length==1?o.value[0]:void 0}function a(){const c=n.entry.attrs[s.value||""];c&&c[0]&&(l("update:modal"),l("ok",s.value+"="+c[0]))}function u(c){const f=n.entry.meta.dn.split("=")[0];return c!=f&&!n.entry.attrs[c].every(h=>!h)}return(c,f)=>(y(),be(it,{title:"Rename entry",open:e.modal=="rename-entry","return-to":e.returnTo,onOk:a,onCancel:f[1]||(f[1]=h=>l("update:modal")),onShow:i,onShown:f[2]||(f[2]=h=>{var g;return(g=r.value)==null?void 0:g.focus()})},{default:de(()=>[E("label",null,[f[3]||(f[3]=Ie("New RDN attribute: ")),Ue(E("select",{ref_key:"select",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>s.value=h),onKeyup:mt(a,["enter"])},[(y(!0),k(ie,null,ke(o.value,h=>(y(),k("option",{key:h},oe(h),1))),128))],544),[[hn,s.value]])])]),_:1},8,["open","return-to"]))}}),Yu={key:0,class:"rounded border border-front/20 mb-3 mx-4 flex-auto"},Gu={class:"flex justify-between mb-4 border-b border-front/20 bg-primary/70"},Xu={key:0,class:"py-2 ml-3"},Zu={key:1,class:"ml-2"},Qu={class:"flex ml-4 mt-2 space-x-4"},ec={class:"w-3/4 pl-4"},tc={class:"w-[90%] space-x-3"},nc=["disabled"],sc={key:0,type:"reset",accesskey:"r",tabindex:"0",class:"btn bg-secondary"},rc=ve({__name:"EntryEditor",props:{activeDn:String,baseDn:String,user:String},emits:["update:activeDn","show-attr","show-oc"],setup(e,{emit:t}){function n(A,m,b){return b.indexOf(A)==m}const s=["BUTTON","INPUT","SELECT","TEXTAREA"],r=e,o=Ye("app"),l=I(),i=I(),a=I([]),u=I(),c=re(()=>{var m;const A=Object.keys(((m=l.value)==null?void 0:m.attrs)||{});return A.sort((b,q)=>b.toLowerCase().localeCompare(q.toLowerCase())),A}),f=re(()=>{var m;const A=(m=l.value)==null?void 0:m.attrs.objectClass.map(b=>{var q;return(q=o==null?void 0:o.schema)==null?void 0:q.oc(b)}).filter(b=>b&&b.structural)[0];return A?A.name:""}),h=t;Ve(()=>r.activeDn,A=>{(!l.value||A!=l.value.meta.dn)&&(i.value=void 0),A&&l.value&&l.value.meta.isNew?u.value="discard-entry":A?Q(A,void 0,void 0):l.value&&!l.value.meta.isNew&&(l.value=void 0)});function g(A){zt(()=>{const m=A?document.getElementById(A):document.querySelector('form#entry input:not([disabled]), form#entry button[type="button"]');m&&window.setTimeout(()=>m.focus(),100)})}function O(A){const m=A.target;m.id&&s.includes(m.tagName)&&(i.value=m.id)}function T(A){l.value=A,h("update:activeDn"),g(L())}function _(A){l.value=void 0,h("update:activeDn",A)}function w(A){l.value.attrs[A]=[""],g(A+"-0")}function F(A){l.value.attrs.objectClass.push(A);const m=l.value.meta.aux.filter(b=>b<b);l.value.meta.aux.splice(m.length,1),g(L()||i.value)}function K(A){const m=l.value.attrs.objectClass.filter(b=>!A.includes(b))[0];if(m){const b=l.value.meta.aux.filter(q=>q<m);l.value.meta.aux.splice(b.length,0,m)}}function M(A,m,b){l.value.attrs[A]=m,A=="objectClass"&&(K(m),g(i.value)),b!==void 0&&g(A+"-"+b)}function L(){const A=se("must").filter(m=>!l.value.attrs[m]);return A.forEach(m=>l.value.attrs[m]=[""]),A.length?A[0]+"-0":void 0}async function Q(A,m,b){if(a.value=[],!A||A.startsWith("-")){l.value=void 0;return}const q=await fetch("api/entry/"+A);if(!q.ok){o==null||o.showError(await q.text());return}l.value=await q.json(),l.value.changed=m||[],l.value.meta.isNew=!1,document.title=A.split(",")[0],g(b)}function ge(A){var m;return((m=l.value)==null?void 0:m.changed)&&l.value.changed.includes(A)||!1}async function we(){if(a.value.length>0){g(i.value);return}l.value.changed=[];const A=await fetch("api/entry/"+l.value.meta.dn,{method:l.value.meta.isNew?"PUT":"POST",body:JSON.stringify(l.value.attrs),headers:{"Content-Type":"application/json"}});if(!A.ok){o==null||o.showError(await A.text());return}const m=await A.json();m.changed&&m.changed.length&&(o==null||o.showInfo("👍 Saved changes")),l.value.meta.isNew?(l.value.meta.isNew=!1,h("update:activeDn",l.value.meta.dn)):Q(l.value.meta.dn,m.changed,i.value)}async function G(A){const m=await fetch("api/rename/"+l.value.meta.dn,{method:"POST",body:JSON.stringify(A),headers:{"Content-Type":"application/json"}});if(!m.ok){o==null||o.showError(await m.text());return}const b=l.value.meta.dn.split(",");b.splice(0,1,A),h("update:activeDn",b.join(","))}async function ne(A){const m=await fetch("api/entry/"+A,{method:"DELETE"});if(m.ok)m.status==204&&(o==null||o.showInfo("👍 Deleted: "+A),h("update:activeDn","-"+A));else{o==null||o.showError(await m.text());return}}async function ce(A,m){var Te;const b=await fetch("api/password/"+l.value.meta.dn,{method:"POST",body:JSON.stringify({old:A,new1:m}),headers:{"Content-Type":"application/json"}});if(!b.ok){o==null||o.showError(await b.text());return}const q=await b.json();q!==void 0&&(l.value.attrs.userPassword=[q],(Te=l.value.changed)==null||Te.push("userPassword"))}async function j(){const A=await fetch("api/ldif/"+l.value.meta.dn);if(!A.ok){o==null||o.showError(await A.text());return}const m=document.createElement("a"),b=URL.createObjectURL(await A.blob());m.href=b,m.download=l.value.meta.dn.split(",")[0].split("=")[1]+".ldif",document.body.appendChild(m),m.click()}function se(A){const m=l.value.attrs.objectClass.filter(b=>b&&b!="top").map(b=>{var q;return(q=o==null?void 0:o.schema)==null?void 0:q.oc(b)}).flatMap(b=>b?b.$collect(A):[]).filter(n);return m.sort(),m}function xe(A,m){if(m){const b=a.value.indexOf(A);b>=0&&a.value.splice(b,1)}else a.value.includes(A)||a.value.push(A)}return(A,m)=>l.value?(y(),k("div",Yu,[J(Ku,{modal:u.value,"onUpdate:modal":m[0]||(m[0]=b=>u.value=b),dn:l.value.meta.dn,"return-to":i.value,onOk:T},null,8,["modal","dn","return-to"]),J(Mu,{modal:u.value,"onUpdate:modal":m[1]||(m[1]=b=>u.value=b),entry:l.value,"return-to":i.value,onOk:T},null,8,["modal","entry","return-to"]),J(Ju,{modal:u.value,"onUpdate:modal":m[2]||(m[2]=b=>u.value=b),entry:l.value,"return-to":i.value,onOk:G},null,8,["modal","entry","return-to"]),J(Lu,{modal:u.value,"onUpdate:modal":m[3]||(m[3]=b=>u.value=b),dn:l.value.meta.dn,"return-to":i.value,onOk:ne},null,8,["modal","dn","return-to"]),J(Fu,{modal:u.value,"onUpdate:modal":m[4]||(m[4]=b=>u.value=b),dn:r.activeDn,"return-to":i.value,onOk:_,onShown:m[5]||(m[5]=b=>h("update:activeDn"))},null,8,["modal","dn","return-to"]),J(zu,{modal:u.value,"onUpdate:modal":m[6]||(m[6]=b=>u.value=b),entry:l.value,"return-to":i.value,user:e.user,onOk:ce},null,8,["modal","entry","return-to","user"]),J(Or,{modal:u.value,"onUpdate:modal":m[7]||(m[7]=b=>u.value=b),attr:"jpegPhoto",dn:l.value.meta.dn,"return-to":i.value,onOk:Q},null,8,["modal","dn","return-to"]),J(Or,{modal:u.value,"onUpdate:modal":m[8]||(m[8]=b=>u.value=b),attr:"thumbnailPhoto",dn:l.value.meta.dn,"return-to":i.value,onOk:Q},null,8,["modal","dn","return-to"]),J(Ya,{modal:u.value,"onUpdate:modal":m[9]||(m[9]=b=>u.value=b),entry:l.value,"return-to":i.value,onOk:F},null,8,["modal","entry","return-to"]),J(Ja,{modal:u.value,"onUpdate:modal":m[10]||(m[10]=b=>u.value=b),entry:l.value,attributes:se("may"),"return-to":i.value,onOk:w,onShowModal:m[11]||(m[11]=b=>{u.value=b})},null,8,["modal","entry","attributes","return-to"]),E("nav",Gu,[l.value.meta.isNew?(y(),k("div",Xu,[J(vn,{dn:l.value.meta.dn,oc:f.value},null,8,["dn","oc"])])):(y(),k("div",Zu,[J(Zo,null,{"button-content":de(()=>[J(vn,{dn:l.value.meta.dn,oc:f.value},null,8,["dn","oc"])]),default:de(()=>[E("li",{onClick:m[12]||(m[12]=b=>{u.value="new-entry"}),role:"menuitem"},"Add child…"),E("li",{onClick:m[13]||(m[13]=b=>{u.value="copy-entry"}),role:"menuitem"},"Copy…"),E("li",{onClick:m[14]||(m[14]=b=>{u.value="rename-entry"}),role:"menuitem"},"Rename…"),E("li",{onClick:j,role:"menuitem"},"Export"),E("li",{onClick:m[15]||(m[15]=b=>{u.value="delete-entry"}),class:"text-danger",role:"menuitem"},"Delete…")]),_:1})])),l.value.meta.isNew?(y(),k("div",{key:2,class:"control text-2xl mr-2",onClick:m[16]||(m[16]=b=>{u.value="discard-entry"}),title:"close"},"⊗")):(y(),k("div",{key:3,class:"control text-xl mr-2",title:"close",onClick:m[17]||(m[17]=b=>h("update:activeDn"))},"⊗"))]),E("form",{id:"entry",class:"space-y-4 my-4",onSubmit:Wt(we,["prevent"]),onReset:m[22]||(m[22]=b=>Q(l.value.meta.dn,void 0,void 0)),onFocusin:O},[(y(!0),k(ie,null,ke(c.value,b=>{var q,Te;return y(),be(ju,{key:b,"base-dn":r.baseDn,attr:(Te=(q=yn(o))==null?void 0:q.schema)==null?void 0:Te.attr(b),meta:l.value.meta,values:l.value.attrs[b],changed:ge(b),may:se("may").includes(b),must:se("must").includes(b),onUpdate:M,onReloadForm:Q,onValid:Le=>xe(b,Le),onShowModal:m[18]||(m[18]=Le=>{u.value=Le}),onShowAttr:m[19]||(m[19]=Le=>h("show-attr",Le)),onShowOc:m[20]||(m[20]=Le=>h("show-oc",Le))},null,8,["base-dn","attr","meta","values","changed","may","must","onValid"])}),128)),E("div",Qu,[m[23]||(m[23]=E("div",{class:"w-1/4"},null,-1)),E("div",ec,[E("div",tc,[E("button",{type:"submit",class:"btn bg-primary/70",tabindex:"0",accesskey:"s",disabled:a.value.length!=0},"Submit",8,nc),l.value.meta.isNew?Z("",!0):(y(),k("button",sc,"Reset")),l.value.meta.isNew?Z("",!0):(y(),k("button",{key:1,class:"btn float-right bg-secondary",accesskey:"a",tabindex:"0",onClick:m[21]||(m[21]=Wt(b=>{u.value="add-attribute"},["prevent"]))}," Add attribute… "))])])])],32)])):Z("",!0)}}),oc=ve({__name:"LdifImportDialog",props:{modal:String},emits:["ok","update:modal"],setup(e,{emit:t}){const n=I(""),s=t;function r(){n.value=""}function o(i){const a=i.target,u=a.files,c=u[0],f=new FileReader;f.onload=function(){n.value=f.result,a.value=""},f.readAsText(c)}async function l(){if(!n.value)return;s("update:modal"),(await fetch("api/ldif",{method:"POST",body:n.value})).ok&&s("ok")}return(i,a)=>(y(),be(it,{title:"Import",open:e.modal=="ldif-import","ok-title":"Import",onShow:r,onOk:l,onCancel:a[1]||(a[1]=u=>s("update:modal"))},{default:de(()=>[Ue(E("textarea",{"onUpdate:modelValue":a[0]||(a[0]=u=>n.value=u),id:"ldif-data",placeholder:"Paste or upload LDIF"},null,512),[[Kt,n.value]]),E("input",{type:"file",onChange:o,accept:".ldif"},null,32)]),_:1},8,["open"]))}}),lc={class:"px-4 flex flex-col md:flex-row flex-wrap justify-between mt-0 py-1 bg-primary/40"},ic={class:"flex items-center"},ac={class:"flex items-center space-x-4 text-lg"},uc=["onClick"],cc=ve({__name:"NavBar",props:{baseDn:String,treeOpen:Boolean,user:String},emits:["select-dn","show-modal","show-oc","update:treeOpen"],setup(e,{emit:t}){const n=Ye("app"),s=I(null),r=I(""),o=I(!1),l=t;function i(){r.value="",zt(()=>{var a;r.value=((a=s==null?void 0:s.value)==null?void 0:a.value)||""})}return(a,u)=>(y(),k("nav",lc,[E("div",ic,[E("i",{class:"cursor-pointer glyph fa-bars fa-lg pt-1 mr-4 md:hidden",onClick:u[0]||(u[0]=c=>o.value=!o.value)}),E("i",{class:Pe(["cursor-pointer fa fa-lg mr-2",e.treeOpen?"fa-list-alt":"fa-list-ul"]),onClick:u[1]||(u[1]=c=>l("update:treeOpen",!e.treeOpen))},null,2),J(vn,{oc:"person",dn:e.user,onSelectDn:u[2]||(u[2]=c=>l("select-dn",c)),class:"text-lg"},null,8,["dn"])]),Ue(E("div",ac,[E("span",{class:"cursor-pointer",onClick:u[3]||(u[3]=c=>l("show-modal","ldif-import"))},"Import…"),J(Zo,{title:"Schema"},{default:de(()=>{var c,f;return[(y(!0),k(ie,null,ke((f=(c=yn(n))==null?void 0:c.schema)==null?void 0:f.objectClasses.keys(),h=>(y(),k("li",{role:"menuitem",key:h,onClick:g=>l("show-oc",h)},oe(h),9,uc))),128))]}),_:1}),E("form",{onSubmit:Wt(i,["prevent"])},[E("input",{class:"glyph px-2 py-1 rounded focus:border focus:border-front/80 outline-none text-front dark:bg-gray-800/80",autofocus:"",placeholder:" ",name:"q",onFocusin:u[4]||(u[4]=c=>{var f;(f=s.value)==null||f.select()}),accesskey:"k",onKeyup:u[5]||(u[5]=mt(c=>{r.value=""},["esc"])),id:"nav-search",ref_key:"input",ref:s},null,544),J(Go,{for:"nav-search",onSelectDn:u[6]||(u[6]=c=>{r.value="",l("select-dn",c)}),shorten:e.baseDn,query:r.value},null,8,["shorten","query"])],32)],512),[[Vs,!o.value]])]))}}),fc={class:"header"},dc={key:0,class:"mt-2"},pc={class:"list-disc"},hc=["onClick"],mc={key:1,class:"mt-2"},vc={class:"list-disc"},gc=["onClick"],yc={key:2,class:"mt-2"},bc={class:"list-disc"},wc=["onClick"],xc=ve({__name:"ObjectClassCard",props:{modelValue:String},emits:["show-attr","show-oc","update:modelValue"],setup(e,{emit:t}){const n=e,s=Ye("app"),r=re(()=>{var l;return(l=s==null?void 0:s.schema)==null?void 0:l.oc(n.modelValue)}),o=t;return(l,i)=>e.modelValue&&r.value?(y(),be(Ko,{key:0,title:r.value.name||"",class:"ml-4",onClose:i[0]||(i[0]=a=>o("update:modelValue"))},{default:de(()=>{var a;return[E("div",fc,oe(r.value.desc),1),(a=r.value.sup)!=null&&a.length?(y(),k("div",dc,[i[1]||(i[1]=E("i",null,"Superclasses:",-1)),E("ul",pc,[(y(!0),k(ie,null,ke(r.value.sup,u=>(y(),k("li",{key:u},[E("span",{class:"cursor-pointer",onClick:c=>o("update:modelValue",u)},oe(u),9,hc)]))),128))])])):Z("",!0),r.value.$collect("must").length?(y(),k("div",mc,[i[2]||(i[2]=E("i",null,"Required attributes:",-1)),E("ul",vc,[(y(!0),k(ie,null,ke(r.value.$collect("must"),u=>(y(),k("li",{key:u},[E("span",{class:"cursor-pointer",onClick:c=>o("show-attr",u)},oe(u),9,gc)]))),128))])])):Z("",!0),r.value.$collect("may").length?(y(),k("div",yc,[i[3]||(i[3]=E("i",null,"Optional attributes:",-1)),E("ul",bc,[(y(!0),k(ie,null,ke(r.value.$collect("may"),u=>(y(),k("li",{key:u},[E("span",{class:"cursor-pointer",onClick:c=>o("show-attr",u)},oe(u),9,wc)]))),128))])])):Z("",!0)]}),_:1},8,["title"])):Z("",!0)}}),_c={class:"rounded-md bg-front/[.07] p-4 shadow-md shadow-front/20"},Sc={key:0,class:"list-unstyled"},Cc=["id"],$c=["onClick"],kc={key:1,class:"mr-4"},Tc={key:0},Oc=ve({__name:"TreeView",props:{activeDn:String},emits:["base-dn","update:activeDn"],setup(e,{emit:t}){class n{constructor(c){X(this,"dn");X(this,"level");X(this,"hasSubordinates");X(this,"structuralObjectClass");X(this,"open",!1);X(this,"subordinates",[]);this.dn=c.dn,this.level=this.dn.split(",").length,this.hasSubordinates=c.hasSubordinates,this.structuralObjectClass=c.structuralObjectClass,this.hasSubordinates&&(this.subordinates=[],this.open=!1)}find(c){if(this.dn==c)return this;const f=","+this.dn;if(!(!c.endsWith(f)||!this.hasSubordinates))return this.subordinates.map(h=>h.find(c)).filter(h=>h)[0]}get loaded(){return!this.hasSubordinates||this.subordinates.length>0}parentDns(c){const f=[];for(let h=this.dn;;){f.push(h);const g=h.indexOf(",");if(g==-1||h==c)break;h=h.substring(g+1)}return f}visible(){return!this.hasSubordinates||!this.open?[this]:[this].concat(this.subordinates.flatMap(c=>c.visible()))}}const s=e,r=I(),o=t;Jt(async()=>{var u;await i("base"),o("base-dn",(u=r.value)==null?void 0:u.dn)}),Ve(()=>s.activeDn,async u=>{var h,g,O;if(!u)return;if(u=="-"||u=="base"){await i("base");return}const c=new mn(u||r.value.dn),f=[];for(let T=c;T&&(f.push(T),T.toString()!=((h=r.value)==null?void 0:h.dn));T=T.parent);f.reverse();for(let T=0;T<f.length;++T){const _=f[T].toString(),w=(g=r.value)==null?void 0:g.find(_);if(!w)break;w.loaded||await i(_),w.open=!0}(O=r.value)!=null&&O.find(c.toString())||(await i(c.parent.toString()),r.value.find(c.parent.toString()).open=!0)});async function l(u){var f;o("update:activeDn",u);const c=(f=r.value)==null?void 0:f.find(u);c&&c.hasSubordinates&&!c.open&&await a(c)}async function i(u){var g;const c=await fetch("api/tree/"+u);if(!c.ok)return;const f=await c.json();if(f.sort((O,T)=>O.dn.toLowerCase().localeCompare(T.dn.toLowerCase())),u=="base"){r.value=new n(f[0]),await a(r.value);return}const h=(g=r.value)==null?void 0:g.find(u);h&&(h.subordinates=f.map(O=>new n(O)),h.hasSubordinates=h.subordinates.length>0)}async function a(u){!u.open&&!u.loaded&&await i(u.dn),u.open=!u.open}return(u,c)=>(y(),k("div",_c,[r.value?(y(),k("ul",Sc,[(y(!0),k(ie,null,ke(r.value.visible(),f=>(y(),k("li",{key:f.dn,id:f.dn,class:Pe(f.structuralObjectClass)},[(y(!0),k(ie,null,ke(f.level-r.value.level,h=>(y(),k("span",{class:"ml-6",key:h}))),128)),f.hasSubordinates?(y(),k("span",{key:0,class:"control",onClick:h=>a(f)},[E("i",{class:Pe("control p-0 fa fa-chevron-circle-"+(f.open?"down":"right"))},null,2)],8,$c)):(y(),k("span",kc)),J(vn,{dn:f.dn,oc:f.structuralObjectClass,class:Pe(["tree-link whitespace-nowrap text-front/80",{active:e.activeDn==f.dn}]),onSelectDn:l},{default:de(()=>[f.level?Z("",!0):(y(),k("span",Tc,oe(f.dn),1))]),_:2},1032,["dn","oc","class"])],10,Cc))),128))])):Z("",!0)]))}}),Ec=Xo(Oc,[["__scopeId","data-v-fb9ff985"]]),Ac={key:0,id:"app"},Pc={class:"flex container"},Dc={class:"space-y-4"},jc={class:"flex-auto mt-4"},Nc=ve({__name:"App",setup(e){const t=I(),n=I(),s=I(!0),r=I(),o=I(),l=I(),i=I(),a=I(),u=I();_o("app",{get schema(){return i.value},showInfo:f,showError:g,showException:O,showWarning:h}),Jt(async()=>{const T=await fetch("api/whoami");if(T.ok){t.value=await T.json();const _=await fetch("api/schema");_.ok&&(i.value=new nu(await _.json()))}}),Ve(u,T=>{T&&(a.value=void 0)}),Ve(a,T=>{T&&(u.value=void 0)});function f(T){l.value={counter:5,cssClass:"bg-emerald-300",msg:""+T},setTimeout(()=>{l.value=void 0},5e3)}function h(T){l.value={counter:10,cssClass:"bg-amber-200",msg:"⚠️ "+T},setTimeout(()=>{l.value=void 0},1e4)}function g(T){l.value={counter:60,cssClass:"bg-red-300",msg:"⛔ "+T},setTimeout(()=>{l.value=void 0},6e4)}function O(T){const _=document.createElement("span");_.innerHTML=T.replace(`
|
|
18
|
-
`," ");const w=_.getElementsByTagName("title");for(let M=0;M<w.length;++M)_.removeChild(w[M]);let F="";const K=_.getElementsByTagName("h1");for(let M=0;M<K.length;++M)F=F+K[M].textContent+": ",_.removeChild(K[M]);g(F+" "+_.textContent)}return(T,_)=>t.value?(y(),k("div",Ac,[J(cc,{treeOpen:s.value,"onUpdate:treeOpen":_[0]||(_[0]=w=>s.value=w),dn:r.value,"base-dn":n.value,user:t.value,onShowModal:_[1]||(_[1]=w=>{o.value=w}),onSelectDn:_[2]||(_[2]=w=>{r.value=w}),onShowOc:_[3]||(_[3]=w=>{a.value=w})},null,8,["treeOpen","dn","base-dn","user"]),J(oc,{modal:o.value,"onUpdate:modal":_[4]||(_[4]=w=>o.value=w),onOk:_[5]||(_[5]=w=>{r.value="-"})},null,8,["modal"]),E("div",Pc,[E("div",Dc,[Ue(J(Ec,{activeDn:r.value,"onUpdate:activeDn":_[6]||(_[6]=w=>r.value=w),onBaseDn:_[7]||(_[7]=w=>{n.value=w})},null,8,["activeDn"]),[[Vs,s.value]]),J(xc,{modelValue:a.value,"onUpdate:modelValue":_[8]||(_[8]=w=>a.value=w),onShowAttr:_[9]||(_[9]=w=>{u.value=w}),onShowOc:_[10]||(_[10]=w=>{a.value=w})},null,8,["modelValue"]),J(Fa,{modelValue:u.value,"onUpdate:modelValue":_[11]||(_[11]=w=>u.value=w),onShowAttr:_[12]||(_[12]=w=>{u.value=w})},null,8,["modelValue"])]),E("div",jc,[J(In,{name:"fade"},{default:de(()=>[l.value?(y(),k("div",{key:0,class:Pe([l.value.cssClass,"rounded mx-4 mb-4 p-3 border border-front/70 text-front/70 dark:text-back/70"])},[Ie(oe(l.value.msg)+" ",1),E("span",{class:"float-right control",onClick:_[13]||(_[13]=w=>l.value=void 0)},"✖")],2)):Z("",!0)]),_:1}),J(rc,{activeDn:r.value,"onUpdate:activeDn":_[14]||(_[14]=w=>r.value=w),user:t.value,onShowAttr:_[15]||(_[15]=w=>{u.value=w}),onShowOc:_[16]||(_[16]=w=>{a.value=w})},null,8,["activeDn","user"])])]),Z("",!0)])):Z("",!0)}});$a(Nc).mount("#app");
|
|
Binary file
|
|
Binary file
|
ldap_ui-0.9.15.dist-info/RECORD
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
ldap_ui/__init__.py,sha256=PPxUSD_g1KMh3wdAtX6CMb4gLw5y0_nXjKdNFQVNkvc,23
|
|
2
|
-
ldap_ui/__main__.py,sha256=SfpNGw1tlunqLobN8T-7GT47BQBw_c9gO2ANgXkNO9U,1802
|
|
3
|
-
ldap_ui/app.py,sha256=eLRed3iVyrE56CeYBmE0nW09LKh_3Ztc1_ZON37dv8Q,8161
|
|
4
|
-
ldap_ui/ldap_api.py,sha256=IXGiBhoVT2aSqxapUQ1j81CErsR1pe8BZP5R9WvKVU4,15926
|
|
5
|
-
ldap_ui/ldap_helpers.py,sha256=1Sq2hwndwzETb3cPpCoHBF8r-JmAaWh87-Pl2inZRy8,3675
|
|
6
|
-
ldap_ui/schema.py,sha256=LNIHTlkcJYPdtZ0RZ9a_-KejVGWCGuMwtDDD8tSaprY,4515
|
|
7
|
-
ldap_ui/settings.py,sha256=UjCB24epLLUF0ECLb5MulfHPNGjEG57ZS2HXVFJ_k3Y,2844
|
|
8
|
-
ldap_ui/statics/favicon.ico,sha256=_PMMM_C1ER5cpJTXZcRgISR4igj44kA4u8Trl-Ko3L0,4286
|
|
9
|
-
ldap_ui/statics/index.html,sha256=XPiaj5Hm5qb11Fy18HiLMsvm6J6wHi7Ew5uUhnsT2jM,827
|
|
10
|
-
ldap_ui/statics/assets/fontawesome-webfont-B-jkhYfk.woff2,sha256=Kt78vAQefRj88tQXh53FoJmXqmTWdbejxLbOM9oT8_4,77160
|
|
11
|
-
ldap_ui/statics/assets/fontawesome-webfont-CDK5bt4p.woff,sha256=ugxZ3rVFD1y0Gz-TYJ7i0NmVQVh33foiPoqKdTNHTwc,98024
|
|
12
|
-
ldap_ui/statics/assets/fontawesome-webfont-CQDK8MU3.ttf,sha256=qljzPyOaD7AvXHpsRcBD16msmgkzNYBmlOzW1O3A1qg,165548
|
|
13
|
-
ldap_ui/statics/assets/fontawesome-webfont-D13rzr4g.svg,sha256=rWFXkmwWIrpOHQPUePFUE2hSS_xG9R5C_g2UX37zI-Q,444379
|
|
14
|
-
ldap_ui/statics/assets/fontawesome-webfont-G5YE5S7X.eot,sha256=e_yrbbmdXPvxcFygU23ceFhUMsxfpBu9etDwCQM7KXk,165742
|
|
15
|
-
ldap_ui/statics/assets/index-CZWuB-hf.js,sha256=1rs0rvJQnswP496KUb_Wsk8P-mWM18stQ1D7xNzIR-0,122082
|
|
16
|
-
ldap_ui/statics/assets/index-CZWuB-hf.js.gz,sha256=NWgX6GirxPQGl8gmeehqrjJ_9ckY_kHP2SGkTTfu_Ho,43662
|
|
17
|
-
ldap_ui/statics/assets/index-qocMa2qY.css,sha256=QRTm0LCSq5A_-7hPxdKfwIT1Ls8jeHsWk2dFovRaYvM,47890
|
|
18
|
-
ldap_ui/statics/assets/index-qocMa2qY.css.gz,sha256=MfhVI0aQY8cZBLXOpl_Rr2qJUFHsTVa9qN8CyqS54Ig,11524
|
|
19
|
-
ldap_ui-0.9.15.dist-info/licenses/LICENSE.txt,sha256=UpJ0sDIqHxbOtzy1EG4bCHs9R_99ODxxPDK4NZ0g3I0,1042
|
|
20
|
-
ldap_ui-0.9.15.dist-info/METADATA,sha256=wZ-iPuxSyMEu_feOCag3vjVZvF0oXjLwJUw01uNThR0,7894
|
|
21
|
-
ldap_ui-0.9.15.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
22
|
-
ldap_ui-0.9.15.dist-info/entry_points.txt,sha256=TGxMkXYeZP5m5NjZxWmgzITYWhSdj2mR_GGUYmHhGws,50
|
|
23
|
-
ldap_ui-0.9.15.dist-info/top_level.txt,sha256=t9Agyig1nDdJuQvx_UVuk1n28pgswc1BIYw8E6pWado,8
|
|
24
|
-
ldap_ui-0.9.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|