@structured-field/widget-editor 1.2.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,21 +3,21 @@ var StructuredWidgetEditor=function(e){"use strict";var t={name:"StringEditor",p
3
3
  * @vue/shared v3.5.30
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
5
  * @license MIT
6
- **/function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const s={},r=[],i=()=>{},o=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,d=(e,t)=>h.call(e,t),p=Array.isArray,f=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),g=e=>"[object Date]"===k(e),y=e=>"function"==typeof e,v=e=>"string"==typeof e,_=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,S=e=>(b(e)||y(e))&&y(e.then)&&y(e.catch),x=Object.prototype.toString,k=e=>x.call(e),E=e=>"[object Object]"===k(e),w=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,V=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-\w/g,O=C(e=>e.replace(A,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,P=C(e=>e.replace(j,"-$1").toLowerCase()),N=C(e=>e.charAt(0).toUpperCase()+e.slice(1)),$=C(e=>e?`on${N(e)}`:""),I=(e,t)=>!Object.is(e,t),R=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},D=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},T=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let M;const q=()=>M||(M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function U(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=v(s)?B(s):U(s);if(r)for(const e in r)t[e]=r[e]}return t}if(v(e)||b(e))return e}const L=/;(?![^(]*\))/g,z=/:([^]+)/,W=/\/\*[^]*?\*\//g;function B(e){const t={};return e.replace(W,"").split(L).forEach(e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const s=H(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const J=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function K(e){return!!e||""===e}function Z(e,t){if(e===t)return!0;let n=g(e),s=g(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=_(e),s=_(t),n||s)return e===t;if(n=p(e),s=p(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Z(e[s],t[s]);return n}(e,t);if(n=b(e),s=b(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!Z(e[n],t[n]))return!1}}return String(e)===String(t)}const Q=e=>!(!e||!0!==e.__v_isRef),G=e=>v(e)?e:null==e?"":p(e)||b(e)&&(e.toString===x||!y(e.toString))?Q(e)?G(e.value):JSON.stringify(e,X,2):String(e),X=(e,t)=>Q(t)?X(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[Y(t,s)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Y(e))}:_(t)?Y(t):!b(t)||p(t)||E(t)?t:String(t),Y=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
6
+ **/function n(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const s={},r=[],i=()=>{},o=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),c=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,d=(e,t)=>h.call(e,t),p=Array.isArray,f=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),g=e=>"[object Date]"===k(e),y=e=>"function"==typeof e,v=e=>"string"==typeof e,_=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,S=e=>(b(e)||y(e))&&y(e.then)&&y(e.catch),x=Object.prototype.toString,k=e=>x.call(e),E=e=>"[object Object]"===k(e),V=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,w=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-\w/g,O=C(e=>e.replace(A,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,N=C(e=>e.replace(j,"-$1").toLowerCase()),P=C(e=>e.charAt(0).toUpperCase()+e.slice(1)),$=C(e=>e?`on${P(e)}`:""),I=(e,t)=>!Object.is(e,t),R=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},D=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},T=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let M;const q=()=>M||(M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function U(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=v(s)?B(s):U(s);if(r)for(const e in r)t[e]=r[e]}return t}if(v(e)||b(e))return e}const L=/;(?![^(]*\))/g,z=/:([^]+)/,W=/\/\*[^]*?\*\//g;function B(e){const t={};return e.replace(W,"").split(L).forEach(e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const s=H(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const J=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function K(e){return!!e||""===e}function Z(e,t){if(e===t)return!0;let n=g(e),s=g(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=_(e),s=_(t),n||s)return e===t;if(n=p(e),s=p(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Z(e[s],t[s]);return n}(e,t);if(n=b(e),s=b(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!Z(e[n],t[n]))return!1}}return String(e)===String(t)}const Q=e=>!(!e||!0!==e.__v_isRef),G=e=>v(e)?e:null==e?"":p(e)||b(e)&&(e.toString===x||!y(e.toString))?Q(e)?G(e.value):JSON.stringify(e,X,2):String(e),X=(e,t)=>Q(t)?X(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[Y(t,s)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Y(e))}:_(t)?Y(t):!b(t)||p(t)||E(t)?t:String(t),Y=(e,t="")=>{var n;return _(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
7
7
  /**
8
8
  * @vue/reactivity v3.5.30
9
9
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
10
10
  * @license MIT
11
11
  **/
12
- let ee,te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ee,!e&&ee&&(this.index=(ee.scopes||(ee.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ee;try{return ee=this,e()}finally{ee=t}}}on(){1===++this._on&&(this.prevScope=ee,ee=this)}off(){this._on>0&&0===--this._on&&(ee=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const se=new WeakSet;class re{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ee&&ee.active&&ee.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,se.has(this)&&(se.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ae(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Se(this),he(this);const e=te,t=ye;te=this,ye=!0;try{return this.fn()}finally{de(this),te=e,ye=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,Se(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){pe(this)&&this.run()}get dirty(){return pe(this)}}let ie,oe,le=0;function ae(e,t=!1){if(e.flags|=8,t)return e.next=oe,void(oe=e);e.next=ie,ie=e}function ce(){le++}function ue(){if(--le>0)return;if(oe){let e=oe;for(oe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ie;){let t=ie;for(ie=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function he(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function de(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),me(s),ge(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function pe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fe(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===xe)return;if(e.globalVersion=xe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!pe(e)))return;e.flags|=2;const t=e.dep,n=te,s=ye;te=e,ye=!0;try{he(e);const n=e.fn(e._value);(0===t.version||I(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{te=n,ye=s,de(e),e.flags&=-3}}function me(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 e=n.computed.deps;e;e=e.nextDep)me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ye=!0;const ve=[];function _e(){ve.push(ye),ye=!1}function be(){const e=ve.pop();ye=void 0===e||e}function Se(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=te;te=void 0;try{t()}finally{te=e}}}let xe=0;class ke{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ee{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!te||!ye||te===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==te)t=this.activeLink=new ke(te,this),te.deps?(t.prevDep=te.depsTail,te.depsTail.nextDep=t,te.depsTail=t):te.deps=te.depsTail=t,we(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=te.depsTail,t.nextDep=void 0,te.depsTail.nextDep=t,te.depsTail=t,te.deps===t&&(te.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ce();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ue()}}}function we(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)we(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ve=new WeakMap,Ce=Symbol(""),Ae=Symbol(""),Oe=Symbol("");function je(e,t,n){if(ye&&te){let t=Ve.get(e);t||Ve.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ee),s.map=t,s.key=n),s.track()}}function Pe(e,t,n,s,r,i){const o=Ve.get(e);if(!o)return void xe++;const l=e=>{e&&e.trigger()};if(ce(),"clear"===t)o.forEach(l);else{const r=p(e),i=r&&w(n);if(r&&"length"===n){const e=Number(s);o.forEach((t,n)=>{("length"===n||n===Oe||!_(n)&&n>=e)&&l(t)})}else switch((void 0!==n||o.has(void 0))&&l(o.get(n)),i&&l(o.get(Oe)),t){case"add":r?i&&l(o.get("length")):(l(o.get(Ce)),f(e)&&l(o.get(Ae)));break;case"delete":r||(l(o.get(Ce)),f(e)&&l(o.get(Ae)));break;case"set":f(e)&&l(o.get(Ce))}}ue()}function Ne(e){const t=yt(e);return t===e?t:(je(t,0,Oe),mt(e)?t:t.map(vt))}function $e(e){return je(e=yt(e),0,Oe),e}function Ie(e,t){return ft(e)?pt(e)?_t(vt(t)):_t(t):vt(t)}const Re={__proto__:null,[Symbol.iterator](){return De(this,Symbol.iterator,e=>Ie(this,e))},concat(...e){return Ne(this).concat(...e.map(e=>p(e)?Ne(e):e))},entries(){return De(this,"entries",e=>(e[1]=Ie(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,e=>e.map(e=>Ie(this,e)),arguments)},find(e,t){return Fe(this,"find",e,t,e=>Ie(this,e),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,e=>Ie(this,e),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return qe(this,"includes",e)},indexOf(...e){return qe(this,"indexOf",e)},join(e){return Ne(this).join(e)},lastIndexOf(...e){return qe(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return Ue(this,"pop")},push(...e){return Ue(this,"push",e)},reduce(e,...t){return Me(this,"reduce",e,t)},reduceRight(e,...t){return Me(this,"reduceRight",e,t)},shift(){return Ue(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return Ue(this,"splice",e)},toReversed(){return Ne(this).toReversed()},toSorted(e){return Ne(this).toSorted(e)},toSpliced(...e){return Ne(this).toSpliced(...e)},unshift(...e){return Ue(this,"unshift",e)},values(){return De(this,"values",e=>Ie(this,e))}};function De(e,t,n){const s=$e(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const Te=Array.prototype;function Fe(e,t,n,s,r,i){const o=$e(e),l=o!==e&&!mt(e),a=o[t];if(a!==Te[t]){const t=a.apply(e,i);return l?vt(t):t}let c=n;o!==e&&(l?c=function(t,s){return n.call(this,Ie(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=a.call(o,c,s);return l&&r?r(u):u}function Me(e,t,n,s){const r=$e(e),i=r!==e&&!mt(e);let o=n,l=!1;r!==e&&(i?(l=0===s.length,o=function(t,s,r){return l&&(l=!1,t=Ie(e,t)),n.call(this,t,Ie(e,s),r,e)}):n.length>3&&(o=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](o,...s);return l?Ie(e,a):a}function qe(e,t,n){const s=yt(e);je(s,0,Oe);const r=s[t](...n);return-1!==r&&!1!==r||!gt(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function Ue(e,t,n=[]){_e(),ce();const s=yt(e)[t].apply(e,n);return ue(),be(),s}const Le=n("__proto__,__v_isRef,__isVue"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function We(e){_(e)||(e=String(e));const t=yt(this);return je(t,0,e),t.hasOwnProperty(e)}class Be{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?at:lt:r?ot:it).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=p(e);if(!s){let e;if(i&&(e=Re[t]))return e;if("hasOwnProperty"===t)return We}const o=Reflect.get(e,t,bt(e)?e:n);if(_(t)?ze.has(t):Le(t))return o;if(s||je(e,0,t),r)return o;if(bt(o)){const e=i&&w(t)?o:o.value;return s&&b(e)?ht(e):e}return b(o)?s?ht(o):ut(o):o}}class He extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const i=p(e)&&w(t);if(!this._isShallow){const e=ft(r);if(mt(n)||ft(n)||(r=yt(r),n=yt(n)),!i&&bt(r)&&!bt(n))return e||(r.value=n),!0}const o=i?Number(t)<e.length:d(e,t),l=Reflect.set(e,t,n,bt(e)?e:s);return e===yt(s)&&(o?I(n,r)&&Pe(e,"set",t,n):Pe(e,"add",t,n)),l}deleteProperty(e,t){const n=d(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Pe(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return _(t)&&ze.has(t)||je(e,0,t),n}ownKeys(e){return je(e,0,p(e)?"length":Ce),Reflect.ownKeys(e)}}class Je extends Be{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ke=new He,Ze=new Je,Qe=new He(!0),Ge=e=>e,Xe=e=>Reflect.getPrototypeOf(e);function Ye(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function et(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),i=yt(n);e||(I(n,i)&&je(r,0,n),je(r,0,i));const{has:o}=Xe(r),l=t?Ge:e?_t:vt;return o.call(r,n)?l(s.get(n)):o.call(r,i)?l(s.get(i)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&je(yt(t),0,Ce),t.size},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(I(t,r)&&je(s,0,t),je(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,i=r.__v_raw,o=yt(i),l=t?Ge:e?_t:vt;return!e&&je(o,0,Ce),i.forEach((e,t)=>n.call(s,l(e),l(t),r))}};c(n,e?{add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear")}:{add(e){const n=yt(this),s=Xe(n),r=yt(e),i=t||mt(e)||ft(e)?e:r;return s.has.call(n,i)||I(e,i)&&s.has.call(n,e)||I(r,i)&&s.has.call(n,r)||(n.add(i),Pe(n,"add",i,i)),this},set(e,n){t||mt(n)||ft(n)||(n=yt(n));const s=yt(this),{has:r,get:i}=Xe(s);let o=r.call(s,e);o||(e=yt(e),o=r.call(s,e));const l=i.call(s,e);return s.set(e,n),o?I(n,l)&&Pe(s,"set",e,n):Pe(s,"add",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=Xe(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Pe(t,"delete",e,void 0),i},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&Pe(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,i=yt(r),o=f(i),l="entries"===e||e===Symbol.iterator&&o,a="keys"===e&&o,u=r[e](...s),h=n?Ge:t?_t:vt;return!t&&je(i,0,a?Ae:Ce),c(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}}})}}(s,e,t)}),n}function tt(e,t){const n=et(e,t);return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(d(n,s)&&s in t?n:t,s,r)}const nt={get:tt(!1,!1)},st={get:tt(!1,!0)},rt={get:tt(!0,!1)},it=new WeakMap,ot=new WeakMap,lt=new WeakMap,at=new WeakMap;function ct(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>k(e).slice(8,-1))(e))}function ut(e){return ft(e)?e:dt(e,!1,Ke,nt,it)}function ht(e){return dt(e,!0,Ze,rt,lt)}function dt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=ct(e);if(0===i)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,2===i?s:n);return r.set(e,l),l}function pt(e){return ft(e)?pt(e.__v_raw):!(!e||!e.__v_isReactive)}function ft(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function gt(e){return!!e&&!!e.__v_raw}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}const vt=e=>b(e)?ut(e):e,_t=e=>b(e)?ht(e):e;function bt(e){return!!e&&!0===e.__v_isRef}function St(e){return function(e,t){if(bt(e))return e;return new xt(e,t)}(e,!1)}class xt{constructor(e,t){this.dep=new Ee,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:vt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||ft(e);e=n?e:yt(e),I(e,t)&&(this._rawValue=e,this._value=n?e:vt(e),this.dep.trigger())}}function kt(e){return bt(e)?e.value:e}const Et={get:(e,t,n)=>"__v_raw"===t?e:kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return bt(r)&&!bt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function wt(e){return pt(e)?e:new Proxy(e,Et)}class Vt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ee(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&te!==this)return ae(this,!0),!0}get value(){const e=this.dep.track();return fe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Ct={},At=new WeakMap;let Ot;function jt(e,t,n=s){const{immediate:r,deep:o,once:l,scheduler:a,augmentJob:c,call:h}=n,d=e=>o?e:mt(e)||!1===o||0===o?Pt(e,1):Pt(e);let f,m,g,v,_=!1,b=!1;if(bt(e)?(m=()=>e.value,_=mt(e)):pt(e)?(m=()=>d(e),_=!0):p(e)?(b=!0,_=e.some(e=>pt(e)||mt(e)),m=()=>e.map(e=>bt(e)?e.value:pt(e)?d(e):y(e)?h?h(e,2):e():void 0)):m=y(e)?t?h?()=>h(e,2):e:()=>{if(g){_e();try{g()}finally{be()}}const t=Ot;Ot=f;try{return h?h(e,3,[v]):e(v)}finally{Ot=t}}:i,t&&o){const e=m,t=!0===o?1/0:o;m=()=>Pt(e(),t)}const S=ee,x=()=>{f.stop(),S&&S.active&&u(S.effects,f)};if(l&&t){const e=t;t=(...t)=>{e(...t),x()}}let k=b?new Array(e.length).fill(Ct):Ct;const E=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(o||_||(b?e.some((e,t)=>I(e,k[t])):I(e,k))){g&&g();const n=Ot;Ot=f;try{const n=[e,k===Ct?void 0:b&&k[0]===Ct?[]:k,v];k=e,h?h(t,3,n):t(...n)}finally{Ot=n}}}else f.run()};return c&&c(E),f=new re(m),f.scheduler=a?()=>a(E,!1):E,v=e=>function(e,t=!1,n=Ot){if(n){let t=At.get(n);t||At.set(n,t=[]),t.push(e)}}(e,!1,f),g=f.onStop=()=>{const e=At.get(f);if(e){if(h)h(e,4);else for(const t of e)t();At.delete(f)}},t?r?E(!0):k=f.run():a?a(E.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function Pt(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,bt(e))Pt(e.value,t,n);else if(p(e))for(let s=0;s<e.length;s++)Pt(e[s],t,n);else if(m(e)||f(e))e.forEach(e=>{Pt(e,t,n)});else if(E(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}
12
+ let ee,te;class ne{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ee,!e&&ee&&(this.index=(ee.scopes||(ee.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ee;try{return ee=this,e()}finally{ee=t}}}on(){1===++this._on&&(this.prevScope=ee,ee=this)}off(){this._on>0&&0===--this._on&&(ee=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const se=new WeakSet;class re{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ee&&ee.active&&ee.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,se.has(this)&&(se.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ae(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Se(this),he(this);const e=te,t=ye;te=this,ye=!0;try{return this.fn()}finally{de(this),te=e,ye=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,Se(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){pe(this)&&this.run()}get dirty(){return pe(this)}}let ie,oe,le=0;function ae(e,t=!1){if(e.flags|=8,t)return e.next=oe,void(oe=e);e.next=ie,ie=e}function ce(){le++}function ue(){if(--le>0)return;if(oe){let e=oe;for(oe=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ie;){let t=ie;for(ie=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function he(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function de(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),me(s),ge(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function pe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fe(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===xe)return;if(e.globalVersion=xe,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!pe(e)))return;e.flags|=2;const t=e.dep,n=te,s=ye;te=e,ye=!0;try{he(e);const n=e.fn(e._value);(0===t.version||I(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{te=n,ye=s,de(e),e.flags&=-3}}function me(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 e=n.computed.deps;e;e=e.nextDep)me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ye=!0;const ve=[];function _e(){ve.push(ye),ye=!1}function be(){const e=ve.pop();ye=void 0===e||e}function Se(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=te;te=void 0;try{t()}finally{te=e}}}let xe=0;class ke{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ee{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!te||!ye||te===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==te)t=this.activeLink=new ke(te,this),te.deps?(t.prevDep=te.depsTail,te.depsTail.nextDep=t,te.depsTail=t):te.deps=te.depsTail=t,Ve(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=te.depsTail,t.nextDep=void 0,te.depsTail.nextDep=t,te.depsTail=t,te.deps===t&&(te.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ce();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ue()}}}function Ve(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ve(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const we=new WeakMap,Ce=Symbol(""),Ae=Symbol(""),Oe=Symbol("");function je(e,t,n){if(ye&&te){let t=we.get(e);t||we.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ee),s.map=t,s.key=n),s.track()}}function Ne(e,t,n,s,r,i){const o=we.get(e);if(!o)return void xe++;const l=e=>{e&&e.trigger()};if(ce(),"clear"===t)o.forEach(l);else{const r=p(e),i=r&&V(n);if(r&&"length"===n){const e=Number(s);o.forEach((t,n)=>{("length"===n||n===Oe||!_(n)&&n>=e)&&l(t)})}else switch((void 0!==n||o.has(void 0))&&l(o.get(n)),i&&l(o.get(Oe)),t){case"add":r?i&&l(o.get("length")):(l(o.get(Ce)),f(e)&&l(o.get(Ae)));break;case"delete":r||(l(o.get(Ce)),f(e)&&l(o.get(Ae)));break;case"set":f(e)&&l(o.get(Ce))}}ue()}function Pe(e){const t=yt(e);return t===e?t:(je(t,0,Oe),mt(e)?t:t.map(vt))}function $e(e){return je(e=yt(e),0,Oe),e}function Ie(e,t){return ft(e)?pt(e)?_t(vt(t)):_t(t):vt(t)}const Re={__proto__:null,[Symbol.iterator](){return De(this,Symbol.iterator,e=>Ie(this,e))},concat(...e){return Pe(this).concat(...e.map(e=>p(e)?Pe(e):e))},entries(){return De(this,"entries",e=>(e[1]=Ie(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,e=>e.map(e=>Ie(this,e)),arguments)},find(e,t){return Fe(this,"find",e,t,e=>Ie(this,e),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,e=>Ie(this,e),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return qe(this,"includes",e)},indexOf(...e){return qe(this,"indexOf",e)},join(e){return Pe(this).join(e)},lastIndexOf(...e){return qe(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return Ue(this,"pop")},push(...e){return Ue(this,"push",e)},reduce(e,...t){return Me(this,"reduce",e,t)},reduceRight(e,...t){return Me(this,"reduceRight",e,t)},shift(){return Ue(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return Ue(this,"splice",e)},toReversed(){return Pe(this).toReversed()},toSorted(e){return Pe(this).toSorted(e)},toSpliced(...e){return Pe(this).toSpliced(...e)},unshift(...e){return Ue(this,"unshift",e)},values(){return De(this,"values",e=>Ie(this,e))}};function De(e,t,n){const s=$e(e),r=s[t]();return s===e||mt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const Te=Array.prototype;function Fe(e,t,n,s,r,i){const o=$e(e),l=o!==e&&!mt(e),a=o[t];if(a!==Te[t]){const t=a.apply(e,i);return l?vt(t):t}let c=n;o!==e&&(l?c=function(t,s){return n.call(this,Ie(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=a.call(o,c,s);return l&&r?r(u):u}function Me(e,t,n,s){const r=$e(e),i=r!==e&&!mt(e);let o=n,l=!1;r!==e&&(i?(l=0===s.length,o=function(t,s,r){return l&&(l=!1,t=Ie(e,t)),n.call(this,t,Ie(e,s),r,e)}):n.length>3&&(o=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](o,...s);return l?Ie(e,a):a}function qe(e,t,n){const s=yt(e);je(s,0,Oe);const r=s[t](...n);return-1!==r&&!1!==r||!gt(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function Ue(e,t,n=[]){_e(),ce();const s=yt(e)[t].apply(e,n);return ue(),be(),s}const Le=n("__proto__,__v_isRef,__isVue"),ze=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(_));function We(e){_(e)||(e=String(e));const t=yt(this);return je(t,0,e),t.hasOwnProperty(e)}class Be{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?at:lt:r?ot:it).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=p(e);if(!s){let e;if(i&&(e=Re[t]))return e;if("hasOwnProperty"===t)return We}const o=Reflect.get(e,t,bt(e)?e:n);if(_(t)?ze.has(t):Le(t))return o;if(s||je(e,0,t),r)return o;if(bt(o)){const e=i&&V(t)?o:o.value;return s&&b(e)?ht(e):e}return b(o)?s?ht(o):ut(o):o}}class He extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const i=p(e)&&V(t);if(!this._isShallow){const e=ft(r);if(mt(n)||ft(n)||(r=yt(r),n=yt(n)),!i&&bt(r)&&!bt(n))return e||(r.value=n),!0}const o=i?Number(t)<e.length:d(e,t),l=Reflect.set(e,t,n,bt(e)?e:s);return e===yt(s)&&(o?I(n,r)&&Ne(e,"set",t,n):Ne(e,"add",t,n)),l}deleteProperty(e,t){const n=d(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Ne(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return _(t)&&ze.has(t)||je(e,0,t),n}ownKeys(e){return je(e,0,p(e)?"length":Ce),Reflect.ownKeys(e)}}class Je extends Be{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ke=new He,Ze=new Je,Qe=new He(!0),Ge=e=>e,Xe=e=>Reflect.getPrototypeOf(e);function Ye(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function et(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),i=yt(n);e||(I(n,i)&&je(r,0,n),je(r,0,i));const{has:o}=Xe(r),l=t?Ge:e?_t:vt;return o.call(r,n)?l(s.get(n)):o.call(r,i)?l(s.get(i)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&je(yt(t),0,Ce),t.size},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(I(t,r)&&je(s,0,t),je(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,i=r.__v_raw,o=yt(i),l=t?Ge:e?_t:vt;return!e&&je(o,0,Ce),i.forEach((e,t)=>n.call(s,l(e),l(t),r))}};c(n,e?{add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear")}:{add(e){const n=yt(this),s=Xe(n),r=yt(e),i=t||mt(e)||ft(e)?e:r;return s.has.call(n,i)||I(e,i)&&s.has.call(n,e)||I(r,i)&&s.has.call(n,r)||(n.add(i),Ne(n,"add",i,i)),this},set(e,n){t||mt(n)||ft(n)||(n=yt(n));const s=yt(this),{has:r,get:i}=Xe(s);let o=r.call(s,e);o||(e=yt(e),o=r.call(s,e));const l=i.call(s,e);return s.set(e,n),o?I(n,l)&&Ne(s,"set",e,n):Ne(s,"add",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=Xe(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Ne(t,"delete",e,void 0),i},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&Ne(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,i=yt(r),o=f(i),l="entries"===e||e===Symbol.iterator&&o,a="keys"===e&&o,u=r[e](...s),h=n?Ge:t?_t:vt;return!t&&je(i,0,a?Ae:Ce),c(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[h(e[0]),h(e[1])]:h(e),done:t}}})}}(s,e,t)}),n}function tt(e,t){const n=et(e,t);return(t,s,r)=>"__v_isReactive"===s?!e:"__v_isReadonly"===s?e:"__v_raw"===s?t:Reflect.get(d(n,s)&&s in t?n:t,s,r)}const nt={get:tt(!1,!1)},st={get:tt(!1,!0)},rt={get:tt(!0,!1)},it=new WeakMap,ot=new WeakMap,lt=new WeakMap,at=new WeakMap;function ct(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>k(e).slice(8,-1))(e))}function ut(e){return ft(e)?e:dt(e,!1,Ke,nt,it)}function ht(e){return dt(e,!0,Ze,rt,lt)}function dt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=ct(e);if(0===i)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,2===i?s:n);return r.set(e,l),l}function pt(e){return ft(e)?pt(e.__v_raw):!(!e||!e.__v_isReactive)}function ft(e){return!(!e||!e.__v_isReadonly)}function mt(e){return!(!e||!e.__v_isShallow)}function gt(e){return!!e&&!!e.__v_raw}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}const vt=e=>b(e)?ut(e):e,_t=e=>b(e)?ht(e):e;function bt(e){return!!e&&!0===e.__v_isRef}function St(e){return function(e,t){if(bt(e))return e;return new xt(e,t)}(e,!1)}class xt{constructor(e,t){this.dep=new Ee,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:vt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||mt(e)||ft(e);e=n?e:yt(e),I(e,t)&&(this._rawValue=e,this._value=n?e:vt(e),this.dep.trigger())}}function kt(e){return bt(e)?e.value:e}const Et={get:(e,t,n)=>"__v_raw"===t?e:kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return bt(r)&&!bt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Vt(e){return pt(e)?e:new Proxy(e,Et)}class wt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ee(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&te!==this)return ae(this,!0),!0}get value(){const e=this.dep.track();return fe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Ct={},At=new WeakMap;let Ot;function jt(e,t,n=s){const{immediate:r,deep:o,once:l,scheduler:a,augmentJob:c,call:h}=n,d=e=>o?e:mt(e)||!1===o||0===o?Nt(e,1):Nt(e);let f,m,g,v,_=!1,b=!1;if(bt(e)?(m=()=>e.value,_=mt(e)):pt(e)?(m=()=>d(e),_=!0):p(e)?(b=!0,_=e.some(e=>pt(e)||mt(e)),m=()=>e.map(e=>bt(e)?e.value:pt(e)?d(e):y(e)?h?h(e,2):e():void 0)):m=y(e)?t?h?()=>h(e,2):e:()=>{if(g){_e();try{g()}finally{be()}}const t=Ot;Ot=f;try{return h?h(e,3,[v]):e(v)}finally{Ot=t}}:i,t&&o){const e=m,t=!0===o?1/0:o;m=()=>Nt(e(),t)}const S=ee,x=()=>{f.stop(),S&&S.active&&u(S.effects,f)};if(l&&t){const e=t;t=(...t)=>{e(...t),x()}}let k=b?new Array(e.length).fill(Ct):Ct;const E=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(o||_||(b?e.some((e,t)=>I(e,k[t])):I(e,k))){g&&g();const n=Ot;Ot=f;try{const n=[e,k===Ct?void 0:b&&k[0]===Ct?[]:k,v];k=e,h?h(t,3,n):t(...n)}finally{Ot=n}}}else f.run()};return c&&c(E),f=new re(m),f.scheduler=a?()=>a(E,!1):E,v=e=>function(e,t=!1,n=Ot){if(n){let t=At.get(n);t||At.set(n,t=[]),t.push(e)}}(e,!1,f),g=f.onStop=()=>{const e=At.get(f);if(e){if(h)h(e,4);else for(const t of e)t();At.delete(f)}},t?r?E(!0):k=f.run():a?a(E.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function Nt(e,t=1/0,n){if(t<=0||!b(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,bt(e))Nt(e.value,t,n);else if(p(e))for(let s=0;s<e.length;s++)Nt(e[s],t,n);else if(m(e)||f(e))e.forEach(e=>{Nt(e,t,n)});else if(E(e)){for(const s in e)Nt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Nt(e[s],t,n)}return e}
13
13
  /**
14
14
  * @vue/runtime-core v3.5.30
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/function Nt(e,t,n,s){try{return s?e(...s):e()}catch(e){It(e,t,n)}}function $t(e,t,n,s){if(y(e)){const r=Nt(e,t,n,s);return r&&S(r)&&r.catch(e=>{It(e,t,n)}),r}if(p(e)){const r=[];for(let i=0;i<e.length;i++)r.push($t(e[i],t,n,s));return r}}function It(e,t,n,r=!0){t&&t.vnode;const{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||s;if(t){let s=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;s=s.parent}if(i)return _e(),Nt(i,null,10,[e,r,o]),void be()}!function(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,r,o)}const Rt=[];let Dt=-1;const Tt=[];let Ft=null,Mt=0;const qt=Promise.resolve();let Ut=null;function Lt(e){const t=Ut||qt;return e?t.then(this?e.bind(this):e):t}function zt(e){if(!(1&e.flags)){const t=Jt(e),n=Rt[Rt.length-1];!n||!(2&e.flags)&&t>=Jt(n)?Rt.push(e):Rt.splice(function(e){let t=Dt+1,n=Rt.length;for(;t<n;){const s=t+n>>>1,r=Rt[s],i=Jt(r);i<e||i===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,Wt()}}function Wt(){Ut||(Ut=qt.then(Kt))}function Bt(e,t,n=Dt+1){for(;n<Rt.length;n++){const t=Rt[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Rt.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Ht(e){if(Tt.length){const e=[...new Set(Tt)].sort((e,t)=>Jt(e)-Jt(t));if(Tt.length=0,Ft)return void Ft.push(...e);for(Ft=e,Mt=0;Mt<Ft.length;Mt++){const e=Ft[Mt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Ft=null,Mt=0}}const Jt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Kt(e){try{for(Dt=0;Dt<Rt.length;Dt++){const e=Rt[Dt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Nt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Dt<Rt.length;Dt++){const e=Rt[Dt];e&&(e.flags&=-2)}Dt=-1,Rt.length=0,Ht(),Ut=null,(Rt.length||Tt.length)&&Kt()}}let Zt=null,Qt=null;function Gt(e){const t=Zt;return Zt=e,Qt=e&&e.type.__scopeId||null,t}function Xt(e,t){if(null===Zt)return e;const n=Er(Zt),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,o,l,a=s]=t[e];i&&(y(i)&&(i={mounted:i,updated:i}),i.deep&&Pt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Yt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(_e(),$t(a,n,8,[e.el,l,e,t]),be())}}function en(e,t,n=!1){const s=fr();if(s||is){let r=is?is._context.provides:s?null==s.parent||s.ce?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 tn=Symbol.for("v-scx");function nn(e,t,n){return sn(e,t,n)}function sn(e,t,n=s){const{immediate:r,deep:o,flush:l,once:a}=n,u=c({},n),h=t&&r||!t&&"post"!==l;let d;if(br)if("sync"===l){const e=en(tn);d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!h){const e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}const p=pr;u.call=(e,t,n)=>$t(e,p,t,n);let f=!1;"post"===l?u.scheduler=e=>{js(e,p&&p.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():zt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=jt(e,t,u);return br&&(d?d.push(m):h&&m()),m}function rn(e,t,n){const s=this.proxy,r=v(e)?e.includes(".")?on(s,e):()=>s[e]:e.bind(s,s);let i;y(t)?i=t:(i=t.handler,n=t);const o=yr(this),l=sn(r,i.bind(s),n);return o(),l}function on(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const ln=Symbol("_vte"),an=Symbol("_leaveCb");function cn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,cn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function un(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const dn=new WeakMap;function pn(e,t,n,r,i=!1){if(p(e))return void e.forEach((e,s)=>pn(e,t&&(p(t)?t[s]:t),n,r,i));if(mn(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&pn(e,t,n,r.component.subTree));const l=4&r.shapeFlag?Er(r.component):r.el,a=i?null:l,{i:c,r:h}=e,f=t&&t.r,m=c.refs===s?c.refs={}:c.refs,g=c.setupState,_=yt(g),b=g===s?o:e=>!hn(m,e)&&d(_,e),S=(e,t)=>!t||!hn(m,t);if(null!=f&&f!==h)if(fn(t),v(f))m[f]=null,b(f)&&(g[f]=null);else if(bt(f)){const e=t;S(0,e.k)&&(f.value=null),e.k&&(m[e.k]=null)}if(y(h))Nt(h,c,12,[a,m]);else{const t=v(h),s=bt(h);if(t||s){const r=()=>{if(e.f){const n=t?b(h)?g[h]:m[h]:S()||!e.k?h.value:m[e.k];if(i)p(n)&&u(n,l);else if(p(n))n.includes(l)||n.push(l);else if(t)m[h]=[l],b(h)&&(g[h]=m[h]);else{const t=[l];S(0,e.k)&&(h.value=t),e.k&&(m[e.k]=t)}}else t?(m[h]=a,b(h)&&(g[h]=a)):s&&(S(0,e.k)&&(h.value=a),e.k&&(m[e.k]=a))};if(a){const t=()=>{r(),dn.delete(e)};t.id=-1,dn.set(e,t),js(t,n)}else fn(e),r()}}}function fn(e){const t=dn.get(e);t&&(t.flags|=8,dn.delete(e))}q().requestIdleCallback,q().cancelIdleCallback;const mn=e=>!!e.type.__asyncLoader,gn=e=>e.type.__isKeepAlive;function yn(e,t){_n(e,"a",t)}function vn(e,t){_n(e,"da",t)}function _n(e,t,n=pr){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Sn(t,s,n),n){let e=n.parent;for(;e&&e.parent;)gn(e.parent.vnode)&&bn(s,t,n,e),e=e.parent}}function bn(e,t,n,s){const r=Sn(t,e,s,!0);An(()=>{u(s[t],r)},n)}function Sn(e,t,n=pr,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{_e();const r=yr(n),i=$t(t,n,e,s);return r(),be(),i});return s?r.unshift(i):r.push(i),i}}const xn=e=>(t,n=pr)=>{br&&"sp"!==e||Sn(e,(...e)=>t(...e),n)},kn=xn("bm"),En=xn("m"),wn=xn("bu"),Vn=xn("u"),Cn=xn("bum"),An=xn("um"),On=xn("sp"),jn=xn("rtg"),Pn=xn("rtc");function Nn(e,t=pr){Sn("ec",e,t)}const $n="components";function In(e,t){return Dn($n,e,!0,t)||e}const Rn=Symbol.for("v-ndc");function Dn(e,t,n=!0,s=!1){const r=Zt||pr;if(r){const n=r.type;{const e=wr(n,!1);if(e&&(e===t||e===O(t)||e===N(O(t))))return n}const i=Tn(r[e]||n[e],t)||Tn(r.appContext[e],t);return!i&&s?n:i}}function Tn(e,t){return e&&(e[t]||e[O(t)]||e[N(O(t))])}function Fn(e,t,n,s){let r;const i=n,o=p(e);if(o||v(e)){let n=!1,s=!1;o&&pt(e)&&(n=!mt(e),s=ft(e),e=$e(e)),r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(n?s?_t(vt(e[o])):vt(e[o]):e[o],o,void 0,i)}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i)}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,i));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,o=n.length;s<o;s++){const o=n[s];r[s]=t(e[o],o,s,i)}}else r=[];return r}const Mn=e=>e?_r(e)?Er(e):Mn(e.parent):null,qn=c(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=>Mn(e.parent),$root:e=>Mn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Kn(e),$forceUpdate:e=>e.f||(e.f=()=>{zt(e.update)}),$nextTick:e=>e.n||(e.n=Lt.bind(e.proxy)),$watch:e=>rn.bind(e)}),Un=(e,t)=>e!==s&&!e.__isScriptSetup&&d(e,t),Ln={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:a,appContext:c}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Un(r,t))return l[t]=1,r[t];if(i!==s&&d(i,t))return l[t]=2,i[t];if(d(o,t))return l[t]=3,o[t];if(n!==s&&d(n,t))return l[t]=4,n[t];Wn&&(l[t]=0)}}const u=qn[t];let h,p;return u?("$attrs"===t&&je(e.attrs,0,""),u(e)):(h=a.__cssModules)&&(h=h[t])?h:n!==s&&d(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Un(i,t)?(i[t]=n,!0):r!==s&&d(r,t)?(r[t]=n,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:o,type:l}},a){let c;return!!(n[a]||e!==s&&"$"!==a[0]&&d(e,a)||Un(t,a)||d(o,a)||d(r,a)||d(qn,a)||d(i.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zn(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Wn=!0;function Bn(e){const t=Kn(e),n=e.proxy,s=e.ctx;Wn=!1,t.beforeCreate&&Hn(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:a,provide:c,inject:u,created:h,beforeMount:d,mounted:f,beforeUpdate:m,updated:g,activated:v,deactivated:_,beforeDestroy:S,beforeUnmount:x,destroyed:k,unmounted:E,render:w,renderTracked:V,renderTriggered:C,errorCaptured:A,serverPrefetch:O,expose:j,inheritAttrs:P,components:N,directives:$,filters:I}=t;if(u&&function(e,t){p(e)&&(e=Xn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?en(s.from||n,s.default,!0):en(s.from||n):en(s),bt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),l)for(const e in l){const t=l[e];y(t)&&(s[e]=t.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=ut(t))}if(Wn=!0,o)for(const e in o){const t=o[e],r=y(t)?t.bind(n,n):y(t.get)?t.get.bind(n,n):i,l=!y(t)&&y(t.set)?t.set.bind(n):i,a=Vr({get:r,set:l});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)Jn(a[e],s,n,e);if(c){const e=y(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(pr){let n=pr.provides;const s=pr.parent&&pr.parent.provides;s===n&&(n=pr.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function R(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(h&&Hn(h,e,"c"),R(kn,d),R(En,f),R(wn,m),R(Vn,g),R(yn,v),R(vn,_),R(Nn,A),R(Pn,V),R(jn,C),R(Cn,x),R(An,E),R(On,O),p(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===i&&(e.render=w),null!=P&&(e.inheritAttrs=P),N&&(e.components=N),$&&(e.directives=$),O&&un(e)}function Hn(e,t,n){$t(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Jn(e,t,n,s){let r=s.includes(".")?on(n,s):()=>n[s];if(v(e)){const n=t[e];y(n)&&nn(r,n)}else if(y(e))nn(r,e.bind(n));else if(b(e))if(p(e))e.forEach(e=>Jn(e,t,n,s));else{const s=y(e.handler)?e.handler.bind(n):t[e.handler];y(s)&&nn(r,s,e)}}function Kn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:r.length||n||s?(a={},r.length&&r.forEach(e=>Zn(a,e,o,!0)),Zn(a,t,o)):a=t,b(t)&&i.set(t,a),a}function Zn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Zn(e,i,n,!0),r&&r.forEach(t=>Zn(e,t,n,!0));for(const r in t)if(s&&"expose"===r);else{const s=Qn[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Qn={data:Gn,props:ts,emits:ts,methods:es,computed:es,beforeCreate:Yn,created:Yn,beforeMount:Yn,mounted:Yn,beforeUpdate:Yn,updated:Yn,beforeDestroy:Yn,beforeUnmount:Yn,destroyed:Yn,unmounted:Yn,activated:Yn,deactivated:Yn,errorCaptured:Yn,serverPrefetch:Yn,components:es,directives:es,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const s in t)n[s]=Yn(e[s],t[s]);return n},provide:Gn,inject:function(e,t){return es(Xn(e),Xn(t))}};function Gn(e,t){return t?e?function(){return c(y(e)?e.call(this,this):e,y(t)?t.call(this,this):t)}:t:e}function Xn(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Yn(e,t){return e?[...new Set([].concat(e,t))]:t}function es(e,t){return e?c(Object.create(null),e,t):t}function ts(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:c(Object.create(null),zn(e),zn(null!=t?t:{})):t}function ns(){return{app:null,config:{isNativeTag:o,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 ss=0;function rs(e,t){return function(t,n=null){y(t)||(t=c({},t)),null==n||b(n)||(n=null);const s=ns(),r=new WeakSet,i=[];let o=!1;const l=s.app={_uid:ss++,_component:t,_props:n,_container:null,_context:s,_instance:null,version:Cr,get config(){return s.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&y(e.install)?(r.add(e),e.install(l,...t)):y(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),l),component:(e,t)=>t?(s.components[e]=t,l):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,l):s.directives[e],mount(r,i,a){if(!o){const i=l._ceVNode||nr(t,n);return i.appContext=s,!0===a?a="svg":!1===a&&(a=void 0),e(i,r,a),o=!0,l._container=r,r.__vue_app__=l,Er(i.component)}},onUnmount(e){i.push(e)},unmount(){o&&($t(i,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,l),runWithContext(e){const t=is;is=l;try{return e()}finally{is=t}}};return l}}let is=null;function os(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||s;let i=n;const o=t.startsWith("update:"),l=o&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${P(t)}Modifiers`])(r,t.slice(7));let a;l&&(l.trim&&(i=n.map(e=>v(e)?e.trim():e)),l.number&&(i=n.map(T)));let c=r[a=$(t)]||r[a=$(O(t))];!c&&o&&(c=r[a=$(P(t))]),c&&$t(c,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,$t(u,e,6,i)}}const ls=new WeakMap;function as(e,t,n=!1){const s=n?ls:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const i=e.emits;let o={},l=!1;if(!y(e)){const s=e=>{const n=as(e,t,!0);n&&(l=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return i||l?(p(i)?i.forEach(e=>o[e]=null):c(o,i),b(e)&&s.set(e,o),o):(b(e)&&s.set(e,null),null)}function cs(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,P(t))||d(e,t))}function us(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:h,props:d,data:p,setupState:f,ctx:m,inheritAttrs:g}=e,y=Gt(e);let v,_;try{if(4&n.shapeFlag){const e=r||s,t=e;v=lr(u.call(t,e,h,d,f,p,m)),_=l}else{const e=t;0,v=lr(e.length>1?e(d,{attrs:l,slots:o,emit:c}):e(d,null)),_=t.props?l:hs(l)}}catch(t){zs.length=0,It(t,e,1),v=nr(Us)}let b=v;if(_&&!1!==g){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(a)&&(_=ds(_,i)),b=sr(b,_,!1,!0))}return n.dirs&&(b=sr(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&cn(b,n.transition),v=b,Gt(y),v}const hs=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},ds=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function ps(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 i=s[r];if(fs(t,e,i)&&!cs(n,i))return!0}return!1}function fs(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!Z(s,r):s!==r}const ms={},gs=()=>Object.create(ms),ys=e=>Object.getPrototypeOf(e)===ms;function vs(e,t,n,s=!1){const r={},i=gs();e.propsDefaults=Object.create(null),_s(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=s?r:dt(r,!1,Qe,st,ot):e.type.props?e.props=r:e.props=i,e.attrs=i}function _s(e,t,n,r){const[i,o]=e.propsOptions;let l,a=!1;if(t)for(let s in t){if(V(s))continue;const c=t[s];let u;i&&d(i,u=O(s))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:cs(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,a=!0)}if(o){const t=yt(n),r=l||s;for(let s=0;s<o.length;s++){const l=o[s];n[l]=bs(i,t,l,r[l],e,!d(r,l))}}return a}function bs(e,t,n,s,r,i){const o=e[n];if(null!=o){const e=d(o,"default");if(e&&void 0===s){const e=o.default;if(o.type!==Function&&!o.skipFactory&&y(e)){const{propsDefaults:i}=r;if(n in i)s=i[n];else{const o=yr(r);s=i[n]=e.call(null,t),o()}}else s=e;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!e?s=!1:!o[1]||""!==s&&s!==P(n)||(s=!0))}return s}const Ss=new WeakMap;function xs(e,t,n=!1){const i=n?Ss:t.propsCache,o=i.get(e);if(o)return o;const l=e.props,a={},u=[];let h=!1;if(!y(e)){const s=e=>{h=!0;const[n,s]=xs(e,t,!0);c(a,n),s&&u.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!l&&!h)return b(e)&&i.set(e,r),r;if(p(l))for(let e=0;e<l.length;e++){const t=O(l[e]);ks(t)&&(a[t]=s)}else if(l)for(const e in l){const t=O(e);if(ks(t)){const n=l[e],s=a[t]=p(n)||y(n)?{type:n}:c({},n),r=s.type;let i=!1,o=!0;if(p(r))for(let e=0;e<r.length;++e){const t=r[e],n=y(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(o=!1)}else i=y(r)&&"Boolean"===r.name;s[0]=i,s[1]=o,(i||d(s,"default"))&&u.push(t)}}const f=[a,u];return b(e)&&i.set(e,f),f}function ks(e){return"$"!==e[0]&&!V(e)}const Es=e=>"_"===e||"_ctx"===e||"$stable"===e,ws=e=>p(e)?e.map(lr):[lr(e)],Vs=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Zt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Js(-1);const r=Gt(t);let i;try{i=e(...s)}finally{Gt(r),n._d&&Js(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>ws(t(...e)),n);return s._c=!1,s},Cs=(e,t,n)=>{const s=e._ctx;for(const n in e){if(Es(n))continue;const r=e[n];if(y(r))t[n]=Vs(0,r,s);else if(null!=r){const e=ws(r);t[n]=()=>e}}},As=(e,t)=>{const n=ws(t);e.slots.default=()=>n},Os=(e,t,n)=>{for(const s in t)!n&&Es(s)||(e[s]=t[s])},js=function(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):(p(n=e)?Tt.push(...n):Ft&&-1===n.id?Ft.splice(Mt+1,0,n):1&n.flags||(Tt.push(n),n.flags|=1),Wt());var n};function Ps(e){return function(e){q().__VUE__=!0;const{insert:t,remove:n,patchProp:o,createElement:l,createText:a,createComment:c,setText:u,setElementText:h,parentNode:p,nextSibling:f,setScopeId:m=i,insertStaticContent:g}=e,y=(e,t,n,s=null,r=null,i=null,o=void 0,l=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Xs(e,t)&&(s=X(e),J(e,r,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case qs:v(e,t,n,s);break;case Us:_(e,t,n,s);break;case Ls:null==e&&b(t,n,s,o);break;case Ms:I(e,t,n,s,r,i,o,l,a);break;default:1&h?E(e,t,n,s,r,i,o,l,a):6&h?T(e,t,n,s,r,i,o,l,a):(64&h||128&h)&&c.process(e,t,n,s,r,i,o,l,a,te)}null!=u&&r?pn(u,e&&e.ref,i,t||e,!t):null==u&&e&&null!=e.ref&&pn(e.ref,null,i,e,!0)},v=(e,n,s,r)=>{if(null==e)t(n.el=a(n.children),s,r);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},_=(e,n,s,r)=>{null==e?t(n.el=c(n.children||""),s,r):n.el=e.el},b=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},x=({el:e,anchor:n},s,r)=>{let i;for(;e&&e!==n;)i=f(e),t(e,s,r),e=i;t(n,s,r)},k=({el:e,anchor:t})=>{let s;for(;e&&e!==t;)s=f(e),n(e),e=s;n(t)},E=(e,t,n,s,r,i,o,l,a)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)w(t,n,s,r,i,o,l,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),j(e,t,r,i,o,l,a)}finally{n&&n._endPatch()}}},w=(e,n,s,r,i,a,c,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:y}=e;if(d=e.el=l(e.type,a,f&&f.is,f),8&m?h(d,e.children):16&m&&A(e.children,d,null,r,i,Ns(e,a),c,u),y&&Yt(e,null,r,"created"),C(d,e,e.scopeId,c,r),f){for(const e in f)"value"===e||V(e)||o(d,e,null,f[e],a,r);"value"in f&&o(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&ur(p,r,e)}y&&Yt(e,null,r,"beforeMount");const v=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,g);v&&g.beforeEnter(d),t(d,n,s),((p=f&&f.onVnodeMounted)||v||y)&&js(()=>{p&&ur(p,r,e),v&&g.enter(d),y&&Yt(e,null,r,"mounted")},i)},C=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let t=0;t<s.length;t++)m(e,s[t]);if(r){let n=r.subTree;if(t===n||Fs(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;C(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,s,r,i,o,l,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=l?ar(e[c]):lr(e[c]);y(null,a,t,n,s,r,i,o,l)}},j=(e,t,n,r,i,l,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&$s(n,!1),(g=m.onVnodeBeforeUpdate)&&ur(g,n,t,e),p&&Yt(t,e,n,"beforeUpdate"),n&&$s(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?N(e.dynamicChildren,d,c,n,r,Ns(t,i),l):a||z(e,t,c,null,n,r,Ns(t,i),l,!1),u>0){if(16&u)$(c,f,m,n,i);else if(2&u&&f.class!==m.class&&o(c,"class",null,m.class,i),4&u&&o(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],r=f[s],l=m[s];l===r&&"value"!==s||o(c,s,r,l,i,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=d||$(c,f,m,n,i);((g=m.onVnodeUpdated)||p)&&js(()=>{g&&ur(g,n,t,e),p&&Yt(t,e,n,"updated")},r)},N=(e,t,n,s,r,i,o)=>{for(let l=0;l<t.length;l++){const a=e[l],c=t[l],u=a.el&&(a.type===Ms||!Xs(a,c)||198&a.shapeFlag)?p(a.el):n;y(a,c,u,null,s,r,i,o,!0)}},$=(e,t,n,r,i)=>{if(t!==n){if(t!==s)for(const s in t)V(s)||s in n||o(e,s,t[s],null,i,r);for(const s in n){if(V(s))continue;const l=n[s],a=t[s];l!==a&&"value"!==s&&o(e,s,a,l,i,r)}"value"in n&&o(e,"value",t.value,n.value,i)}},I=(e,n,s,r,i,o,l,c,u)=>{const h=n.el=e?e.el:a(""),d=n.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=n;m&&(c=c?c.concat(m):m),null==e?(t(h,s,r),t(d,s,r),A(n.children||[],s,d,i,o,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(N(e.dynamicChildren,f,s,i,o,l,c),(null!=n.key||i&&n===i.subTree)&&Is(e,n,!0)):z(e,n,s,d,i,o,l,c,u)},T=(e,t,n,s,r,i,o,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,o,a):F(t,n,s,r,i,o,a):M(e,t,a)},F=(e,t,n,r,i,o,l)=>{const a=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||hr,o={uid:dr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xs(r,i),emitsOptions:as(r,i),emit:null,emitted:null,propsDefaults:s,inheritAttrs:r.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,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};o.ctx={_:o},o.root=t?t.root:o,o.emit=os.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(gn(e)&&(a.ctx.renderer=te),function(e,t=!1,n=!1){t&&gr(t);const{props:s,children:r}=e.vnode,i=_r(e);vs(e,s,i,t),((e,t,n)=>{const s=e.slots=gs();if(32&e.vnode.shapeFlag){const e=t._;e?(Os(s,t,n),n&&D(s,"_",e,!0)):Cs(t,s)}else t&&As(e,t)})(e,r,n||t);const o=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ln);const{setup:s}=n;if(s){_e();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,kr),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=yr(e),i=Nt(s,e,0,[e.props,n]),o=S(i);if(be(),r(),!o&&!e.sp||mn(e)||un(e),o){if(i.then(vr,vr),t)return i.then(t=>{Sr(e,t)}).catch(t=>{It(t,e,0)});e.asyncDep=i}else Sr(e,i)}else xr(e)}(e,t):void 0;t&&gr(!1)}(a,!1,l),a.asyncDep){if(i&&i.registerDep(a,U,l),!e.el){const s=a.subTree=nr(Us);_(null,s,t,n),e.placeholder=s.el}}else U(a,e,t,n,i,o,l)},M=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!l||l&&l.$stable)||s!==o&&(s?!o||ps(s,o,c):!!o);if(1024&a)return!0;if(16&a)return s?ps(s,o,c):!!o;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(fs(o,s,n)&&!cs(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void L(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},U=(e,t,n,s,r,i,o)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:l,vnode:a}=e;{const n=Rs(e);if(n)return t&&(t.el=a.el,L(e,t,o)),void n.asyncDep.then(()=>{js(()=>{e.isUnmounted||c()},r)})}let u,h=t;$s(e,!1),t?(t.el=a.el,L(e,t,o)):t=a,n&&R(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ur(u,l,t,a),$s(e,!0);const d=us(e),f=e.subTree;e.subTree=d,y(f,d,p(f.el),X(f),e,r,i),t.el=d.el,null===h&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),s&&js(s,r),(u=t.props&&t.props.onVnodeUpdated)&&js(()=>ur(u,l,t,a),r)}else{let o;const{el:l,props:a}=t,{bm:c,m:u,parent:h,root:d,type:p}=e,f=mn(t);$s(e,!1),c&&R(c),!f&&(o=a&&a.onVnodeBeforeMount)&&ur(o,h,t),$s(e,!0);{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const o=e.subTree=us(e);y(null,o,n,s,e,r,i),t.el=o.el}if(u&&js(u,r),!f&&(o=a&&a.onVnodeMounted)){const e=t;js(()=>ur(o,h,e),r)}(256&t.shapeFlag||h&&mn(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&js(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const a=e.effect=new re(l);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>zt(u),$s(e,!0),c()},L=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=yt(r),[a]=e.propsOptions;let c=!1;if(!(s||o>0)||16&o){let s;_s(e,t,r,i)&&(c=!0);for(const i in l)t&&(d(t,i)||(s=P(i))!==i&&d(t,s))||(a?!n||void 0===n[i]&&void 0===n[s]||(r[i]=bs(a,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&d(t,e)||(delete i[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let o=n[s];if(cs(e.emitsOptions,o))continue;const u=t[o];if(a)if(d(i,o))u!==i[o]&&(i[o]=u,c=!0);else{const t=O(o);r[t]=bs(a,l,t,u,e,!1)}else u!==i[o]&&(i[o]=u,c=!0)}}c&&Pe(e.attrs,"set","")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=s;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:Os(i,t,n):(o=!t.$stable,Cs(t,i)),l=t}else t&&(As(e,t),l={default:1});if(o)for(const e in i)Es(e)||null!=l[e]||delete i[e]})(e,t.children,n),_e(),Bt(e),be()},z=(e,t,n,s,r,i,o,l,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void B(c,d,n,s,r,i,o,l,a);if(256&p)return void W(c,d,n,s,r,i,o,l,a)}8&f?(16&u&&G(c,r,i),d!==c&&h(n,d)):16&u?16&f?B(c,d,n,s,r,i,o,l,a):G(c,r,i,!0):(8&u&&h(n,""),16&f&&A(d,n,s,r,i,o,l,a))},W=(e,t,n,s,i,o,l,a,c)=>{t=t||r;const u=(e=e||r).length,h=t.length,d=Math.min(u,h);let p;for(p=0;p<d;p++){const s=t[p]=c?ar(t[p]):lr(t[p]);y(e[p],s,n,null,i,o,l,a,c)}u>h?G(e,i,o,!0,!1,d):A(t,n,s,i,o,l,a,c,d)},B=(e,t,n,s,i,o,l,a,c)=>{let u=0;const h=t.length;let d=e.length-1,p=h-1;for(;u<=d&&u<=p;){const s=e[u],r=t[u]=c?ar(t[u]):lr(t[u]);if(!Xs(s,r))break;y(s,r,n,null,i,o,l,a,c),u++}for(;u<=d&&u<=p;){const s=e[d],r=t[p]=c?ar(t[p]):lr(t[p]);if(!Xs(s,r))break;y(s,r,n,null,i,o,l,a,c),d--,p--}if(u>d){if(u<=p){const e=p+1,r=e<h?t[e].el:s;for(;u<=p;)y(null,t[u]=c?ar(t[u]):lr(t[u]),n,r,i,o,l,a,c),u++}}else if(u>p)for(;u<=d;)J(e[u],i,o,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?ar(t[u]):lr(t[u]);null!=e.key&&g.set(e.key,u)}let v,_=0;const b=p-m+1;let S=!1,x=0;const k=new Array(b);for(u=0;u<b;u++)k[u]=0;for(u=f;u<=d;u++){const s=e[u];if(_>=b){J(s,i,o,!0);continue}let r;if(null!=s.key)r=g.get(s.key);else for(v=m;v<=p;v++)if(0===k[v-m]&&Xs(s,t[v])){r=v;break}void 0===r?J(s,i,o,!0):(k[r-m]=u+1,r>=x?x=r:S=!0,y(s,t[r],n,null,i,o,l,a,c),_++)}const E=S?function(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<a?i=l+1:o=l;a<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}i=n.length,o=n[i-1];for(;i-- >0;)n[i]=o,o=t[o];return n}(k):r;for(v=E.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],d=t[e+1],p=e+1<h?d.el||Ts(d):s;0===k[u]?y(null,r,n,p,i,o,l,a,c):S&&(v<0||u!==E[v]?H(r,n,p,2):v--)}}},H=(e,s,r,i,o=null)=>{const{el:l,type:a,transition:c,children:u,shapeFlag:h}=e;if(6&h)return void H(e.component.subTree,s,r,i);if(128&h)return void e.suspense.move(s,r,i);if(64&h)return void a.move(e,s,r,te);if(a===Ms){t(l,s,r);for(let e=0;e<u.length;e++)H(u[e],s,r,i);return void t(e.anchor,s,r)}if(a===Ls)return void x(e,s,r);if(2!==i&&1&h&&c)if(0===i)c.beforeEnter(l),t(l,s,r),js(()=>c.enter(l),o);else{const{leave:i,delayLeave:o,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?n(l):t(l,s,r)},h=()=>{l._isLeaving&&l[an](!0),i(l,()=>{u(),a&&a()})};o?o(l,u,h):h()}else t(l,s,r)},J=(e,t,n,s=!1,r=!1)=>{const{type:i,props:o,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(r=!1),null!=l&&(_e(),pn(l,null,n,e,!0),be()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,m=!mn(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&ur(g,t,e),6&u)Q(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Yt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,s):c&&!c.hasOnce&&(i!==Ms||h>0&&64&h)?G(c,t,n,!1,!0):(i===Ms&&384&h||!r&&16&u)&&G(a,t,n),s&&K(e)}(m&&(g=o&&o.onVnodeUnmounted)||f)&&js(()=>{g&&ur(g,t,e),f&&Yt(e,null,t,"unmounted")},n)},K=e=>{const{type:t,el:s,anchor:r,transition:i}=e;if(t===Ms)return void Z(s,r);if(t===Ls)return void k(e);const o=()=>{n(s),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:n}=i,r=()=>t(s,o);n?n(e.el,o,r):r()}else o()},Z=(e,t)=>{let s;for(;e!==t;)s=f(e),n(e),e=s;n(t)},Q=(e,t,n)=>{const{bum:s,scope:r,job:i,subTree:o,um:l,m:a,a:c}=e;Ds(a),Ds(c),s&&R(s),r.stop(),i&&(i.flags|=8,J(o,e,t,n)),l&&js(l,t),js(()=>{e.isUnmounted=!0},t)},G=(e,t,n,s=!1,r=!1,i=0)=>{for(let o=i;o<e.length;o++)J(e[o],t,n,s,r)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[ln];return n?f(n):t};let Y=!1;const ee=(e,t,n)=>{let s;null==e?t._vnode&&(J(t._vnode,null,null,!0),s=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Y||(Y=!0,Bt(s),Ht(),Y=!1)},te={p:y,um:J,m:H,r:K,mt:F,mc:A,pc:z,pbc:N,n:X,o:e};let se;return{render:ee,hydrate:se,createApp:rs(ee)}}(e)}function Ns({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $s({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Is(e,t,n=!1){const s=e.children,r=t.children;if(p(s)&&p(r))for(let e=0;e<s.length;e++){const t=s[e];let i=r[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[e]=ar(r[e]),i.el=t.el),n||-2===i.patchFlag||Is(t,i)),i.type===qs&&(-1===i.patchFlag&&(i=r[e]=ar(i)),i.el=t.el),i.type!==Us||i.el||(i.el=t.el)}}function Rs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Rs(t)}function Ds(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ts(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ts(t.subTree):null}const Fs=e=>e.__isSuspense;const Ms=Symbol.for("v-fgt"),qs=Symbol.for("v-txt"),Us=Symbol.for("v-cmt"),Ls=Symbol.for("v-stc"),zs=[];let Ws=null;function Bs(e=!1){zs.push(Ws=e?null:[])}let Hs=1;function Js(e,t=!1){Hs+=e,e<0&&Ws&&t&&(Ws.hasOnce=!0)}function Ks(e){return e.dynamicChildren=Hs>0?Ws||r:null,zs.pop(),Ws=zs[zs.length-1]||null,Hs>0&&Ws&&Ws.push(e),e}function Zs(e,t,n,s,r,i){return Ks(tr(e,t,n,s,r,i,!0))}function Qs(e,t,n,s,r){return Ks(nr(e,t,n,s,r,!0))}function Gs(e){return!!e&&!0===e.__v_isVNode}function Xs(e,t){return e.type===t.type&&e.key===t.key}const Ys=({key:e})=>null!=e?e:null,er=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||bt(e)||y(e)?{i:Zt,r:e,k:t,f:!!n}:e:null);function tr(e,t=null,n=null,s=0,r=null,i=(e===Ms?0:1),o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ys(t),ref:t&&er(t),scopeId:Qt,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Zt};return l?(cr(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=v(n)?8:16),Hs>0&&!o&&Ws&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Ws.push(a),a}const nr=function(e,t=null,n=null,s=0,r=null,i=!1){e&&e!==Rn||(e=Us);if(Gs(e)){const s=sr(e,t,!0);return n&&cr(s,n),Hs>0&&!i&&Ws&&(6&s.shapeFlag?Ws[Ws.indexOf(e)]=s:Ws.push(s)),s.patchFlag=-2,s}o=e,y(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?gt(e)||ys(e)?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=H(e)),b(n)&&(gt(n)&&!p(n)&&(n=c({},n)),t.style=U(n))}const l=v(e)?1:Fs(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:y(e)?2:0;return tr(e,t,n,s,r,l,i,!0)};function sr(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:c}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=H([t.class,s.class]));else if("style"===e)t.style=U([t.style,s.style]);else if(l(e)){const n=t[e],r=s[e];!r||n===r||p(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ys(u),ref:t&&t.ref?n&&i?p(i)?i.concat(er(t)):[i,er(t)]:er(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ms?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sr(e.ssContent),ssFallback:e.ssFallback&&sr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&cn(h,c.clone(h)),h}function rr(e=" ",t=0){return nr(qs,null,e,t)}function ir(e,t){const n=nr(Ls,null,e);return n.staticCount=t,n}function or(e="",t=!1){return t?(Bs(),Qs(Us,null,e)):nr(Us,null,e)}function lr(e){return null==e||"boolean"==typeof e?nr(Us):p(e)?nr(Ms,null,e.slice()):Gs(e)?ar(e):nr(qs,null,String(e))}function ar(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:sr(e)}function cr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),cr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||ys(t)?3===s&&Zt&&(1===Zt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Zt}}else y(t)?(t={default:t,_ctx:Zt},n=32):(t=String(t),64&s?(n=16,t=[rr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ur(e,t,n,s=null){$t(e,t,7,[n,s])}const hr=ns();let dr=0;let pr=null;const fr=()=>pr||Zt;let mr,gr;{const e=q(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};mr=t("__VUE_INSTANCE_SETTERS__",e=>pr=e),gr=t("__VUE_SSR_SETTERS__",e=>br=e)}const yr=e=>{const t=pr;return mr(e),e.scope.on(),()=>{e.scope.off(),mr(t)}},vr=()=>{pr&&pr.scope.off(),mr(null)};function _r(e){return 4&e.vnode.shapeFlag}let br=!1;function Sr(e,t,n){y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=wt(t)),xr(e)}function xr(e,t,n){const s=e.type;e.render||(e.render=s.render||i);{const t=yr(e);_e();try{Bn(e)}finally{be(),t()}}}const kr={get:(e,t)=>(je(e,0,""),e[t])};function Er(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wt((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&D(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in qn?qn[n](e):void 0,has:(e,t)=>t in e||t in qn})):e.proxy;var t}function wr(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}const Vr=(e,t)=>{const n=function(e,t,n=!1){let s,r;return y(e)?s=e:(s=e.get,r=e.set),new Vt(s,r,n)}(e,0,br);return n};const Cr="3.5.30";
17
+ **/function Pt(e,t,n,s){try{return s?e(...s):e()}catch(e){It(e,t,n)}}function $t(e,t,n,s){if(y(e)){const r=Pt(e,t,n,s);return r&&S(r)&&r.catch(e=>{It(e,t,n)}),r}if(p(e)){const r=[];for(let i=0;i<e.length;i++)r.push($t(e[i],t,n,s));return r}}function It(e,t,n,r=!0){t&&t.vnode;const{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||s;if(t){let s=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const t=s.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;s=s.parent}if(i)return _e(),Pt(i,null,10,[e,r,o]),void be()}!function(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,r,o)}const Rt=[];let Dt=-1;const Tt=[];let Ft=null,Mt=0;const qt=Promise.resolve();let Ut=null;function Lt(e){const t=Ut||qt;return e?t.then(this?e.bind(this):e):t}function zt(e){if(!(1&e.flags)){const t=Jt(e),n=Rt[Rt.length-1];!n||!(2&e.flags)&&t>=Jt(n)?Rt.push(e):Rt.splice(function(e){let t=Dt+1,n=Rt.length;for(;t<n;){const s=t+n>>>1,r=Rt[s],i=Jt(r);i<e||i===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,Wt()}}function Wt(){Ut||(Ut=qt.then(Kt))}function Bt(e,t,n=Dt+1){for(;n<Rt.length;n++){const t=Rt[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Rt.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Ht(e){if(Tt.length){const e=[...new Set(Tt)].sort((e,t)=>Jt(e)-Jt(t));if(Tt.length=0,Ft)return void Ft.push(...e);for(Ft=e,Mt=0;Mt<Ft.length;Mt++){const e=Ft[Mt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Ft=null,Mt=0}}const Jt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Kt(e){try{for(Dt=0;Dt<Rt.length;Dt++){const e=Rt[Dt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Pt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Dt<Rt.length;Dt++){const e=Rt[Dt];e&&(e.flags&=-2)}Dt=-1,Rt.length=0,Ht(),Ut=null,(Rt.length||Tt.length)&&Kt()}}let Zt=null,Qt=null;function Gt(e){const t=Zt;return Zt=e,Qt=e&&e.type.__scopeId||null,t}function Xt(e,t){if(null===Zt)return e;const n=Er(Zt),r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,o,l,a=s]=t[e];i&&(y(i)&&(i={mounted:i,updated:i}),i.deep&&Nt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Yt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(_e(),$t(a,n,8,[e.el,l,e,t]),be())}}function en(e,t,n=!1){const s=fr();if(s||is){let r=is?is._context.provides:s?null==s.parent||s.ce?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 tn=Symbol.for("v-scx");function nn(e,t,n){return sn(e,t,n)}function sn(e,t,n=s){const{immediate:r,deep:o,flush:l,once:a}=n,u=c({},n),h=t&&r||!t&&"post"!==l;let d;if(br)if("sync"===l){const e=en(tn);d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!h){const e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}const p=pr;u.call=(e,t,n)=>$t(e,p,t,n);let f=!1;"post"===l?u.scheduler=e=>{js(e,p&&p.suspense)}:"sync"!==l&&(f=!0,u.scheduler=(e,t)=>{t?e():zt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=jt(e,t,u);return br&&(d?d.push(m):h&&m()),m}function rn(e,t,n){const s=this.proxy,r=v(e)?e.includes(".")?on(s,e):()=>s[e]:e.bind(s,s);let i;y(t)?i=t:(i=t.handler,n=t);const o=yr(this),l=sn(r,i.bind(s),n);return o(),l}function on(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const ln=Symbol("_vte"),an=Symbol("_leaveCb");function cn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,cn(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function un(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const dn=new WeakMap;function pn(e,t,n,r,i=!1){if(p(e))return void e.forEach((e,s)=>pn(e,t&&(p(t)?t[s]:t),n,r,i));if(mn(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&pn(e,t,n,r.component.subTree));const l=4&r.shapeFlag?Er(r.component):r.el,a=i?null:l,{i:c,r:h}=e,f=t&&t.r,m=c.refs===s?c.refs={}:c.refs,g=c.setupState,_=yt(g),b=g===s?o:e=>!hn(m,e)&&d(_,e),S=(e,t)=>!t||!hn(m,t);if(null!=f&&f!==h)if(fn(t),v(f))m[f]=null,b(f)&&(g[f]=null);else if(bt(f)){const e=t;S(0,e.k)&&(f.value=null),e.k&&(m[e.k]=null)}if(y(h))Pt(h,c,12,[a,m]);else{const t=v(h),s=bt(h);if(t||s){const r=()=>{if(e.f){const n=t?b(h)?g[h]:m[h]:S()||!e.k?h.value:m[e.k];if(i)p(n)&&u(n,l);else if(p(n))n.includes(l)||n.push(l);else if(t)m[h]=[l],b(h)&&(g[h]=m[h]);else{const t=[l];S(0,e.k)&&(h.value=t),e.k&&(m[e.k]=t)}}else t?(m[h]=a,b(h)&&(g[h]=a)):s&&(S(0,e.k)&&(h.value=a),e.k&&(m[e.k]=a))};if(a){const t=()=>{r(),dn.delete(e)};t.id=-1,dn.set(e,t),js(t,n)}else fn(e),r()}}}function fn(e){const t=dn.get(e);t&&(t.flags|=8,dn.delete(e))}q().requestIdleCallback,q().cancelIdleCallback;const mn=e=>!!e.type.__asyncLoader,gn=e=>e.type.__isKeepAlive;function yn(e,t){_n(e,"a",t)}function vn(e,t){_n(e,"da",t)}function _n(e,t,n=pr){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Sn(t,s,n),n){let e=n.parent;for(;e&&e.parent;)gn(e.parent.vnode)&&bn(s,t,n,e),e=e.parent}}function bn(e,t,n,s){const r=Sn(t,e,s,!0);An(()=>{u(s[t],r)},n)}function Sn(e,t,n=pr,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{_e();const r=yr(n),i=$t(t,n,e,s);return r(),be(),i});return s?r.unshift(i):r.push(i),i}}const xn=e=>(t,n=pr)=>{br&&"sp"!==e||Sn(e,(...e)=>t(...e),n)},kn=xn("bm"),En=xn("m"),Vn=xn("bu"),wn=xn("u"),Cn=xn("bum"),An=xn("um"),On=xn("sp"),jn=xn("rtg"),Nn=xn("rtc");function Pn(e,t=pr){Sn("ec",e,t)}const $n="components";function In(e,t){return Dn($n,e,!0,t)||e}const Rn=Symbol.for("v-ndc");function Dn(e,t,n=!0,s=!1){const r=Zt||pr;if(r){const n=r.type;{const e=Vr(n,!1);if(e&&(e===t||e===O(t)||e===P(O(t))))return n}const i=Tn(r[e]||n[e],t)||Tn(r.appContext[e],t);return!i&&s?n:i}}function Tn(e,t){return e&&(e[t]||e[O(t)]||e[P(O(t))])}function Fn(e,t,n,s){let r;const i=n,o=p(e);if(o||v(e)){let n=!1,s=!1;o&&pt(e)&&(n=!mt(e),s=ft(e),e=$e(e)),r=new Array(e.length);for(let o=0,l=e.length;o<l;o++)r[o]=t(n?s?_t(vt(e[o])):vt(e[o]):e[o],o,void 0,i)}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i)}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,i));else{const n=Object.keys(e);r=new Array(n.length);for(let s=0,o=n.length;s<o;s++){const o=n[s];r[s]=t(e[o],o,s,i)}}else r=[];return r}const Mn=e=>e?_r(e)?Er(e):Mn(e.parent):null,qn=c(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=>Mn(e.parent),$root:e=>Mn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Kn(e),$forceUpdate:e=>e.f||(e.f=()=>{zt(e.update)}),$nextTick:e=>e.n||(e.n=Lt.bind(e.proxy)),$watch:e=>rn.bind(e)}),Un=(e,t)=>e!==s&&!e.__isScriptSetup&&d(e,t),Ln={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:a,appContext:c}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Un(r,t))return l[t]=1,r[t];if(i!==s&&d(i,t))return l[t]=2,i[t];if(d(o,t))return l[t]=3,o[t];if(n!==s&&d(n,t))return l[t]=4,n[t];Wn&&(l[t]=0)}}const u=qn[t];let h,p;return u?("$attrs"===t&&je(e.attrs,0,""),u(e)):(h=a.__cssModules)&&(h=h[t])?h:n!==s&&d(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Un(i,t)?(i[t]=n,!0):r!==s&&d(r,t)?(r[t]=n,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:o,type:l}},a){let c;return!!(n[a]||e!==s&&"$"!==a[0]&&d(e,a)||Un(t,a)||d(o,a)||d(r,a)||d(qn,a)||d(i.config.globalProperties,a)||(c=l.__cssModules)&&c[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:d(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zn(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let Wn=!0;function Bn(e){const t=Kn(e),n=e.proxy,s=e.ctx;Wn=!1,t.beforeCreate&&Hn(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:a,provide:c,inject:u,created:h,beforeMount:d,mounted:f,beforeUpdate:m,updated:g,activated:v,deactivated:_,beforeDestroy:S,beforeUnmount:x,destroyed:k,unmounted:E,render:V,renderTracked:w,renderTriggered:C,errorCaptured:A,serverPrefetch:O,expose:j,inheritAttrs:N,components:P,directives:$,filters:I}=t;if(u&&function(e,t){p(e)&&(e=Xn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?en(s.from||n,s.default,!0):en(s.from||n):en(s),bt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),l)for(const e in l){const t=l[e];y(t)&&(s[e]=t.bind(n))}if(r){const t=r.call(n,n);b(t)&&(e.data=ut(t))}if(Wn=!0,o)for(const e in o){const t=o[e],r=y(t)?t.bind(n,n):y(t.get)?t.get.bind(n,n):i,l=!y(t)&&y(t.set)?t.set.bind(n):i,a=wr({get:r,set:l});Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)Jn(a[e],s,n,e);if(c){const e=y(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(pr){let n=pr.provides;const s=pr.parent&&pr.parent.provides;s===n&&(n=pr.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function R(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(h&&Hn(h,e,"c"),R(kn,d),R(En,f),R(Vn,m),R(wn,g),R(yn,v),R(vn,_),R(Pn,A),R(Nn,w),R(jn,C),R(Cn,x),R(An,E),R(On,O),p(j))if(j.length){const t=e.exposed||(e.exposed={});j.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});V&&e.render===i&&(e.render=V),null!=N&&(e.inheritAttrs=N),P&&(e.components=P),$&&(e.directives=$),O&&un(e)}function Hn(e,t,n){$t(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Jn(e,t,n,s){let r=s.includes(".")?on(n,s):()=>n[s];if(v(e)){const n=t[e];y(n)&&nn(r,n)}else if(y(e))nn(r,e.bind(n));else if(b(e))if(p(e))e.forEach(e=>Jn(e,t,n,s));else{const s=y(e.handler)?e.handler.bind(n):t[e.handler];y(s)&&nn(r,s,e)}}function Kn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:r.length||n||s?(a={},r.length&&r.forEach(e=>Zn(a,e,o,!0)),Zn(a,t,o)):a=t,b(t)&&i.set(t,a),a}function Zn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Zn(e,i,n,!0),r&&r.forEach(t=>Zn(e,t,n,!0));for(const r in t)if(s&&"expose"===r);else{const s=Qn[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Qn={data:Gn,props:ts,emits:ts,methods:es,computed:es,beforeCreate:Yn,created:Yn,beforeMount:Yn,mounted:Yn,beforeUpdate:Yn,updated:Yn,beforeDestroy:Yn,beforeUnmount:Yn,destroyed:Yn,unmounted:Yn,activated:Yn,deactivated:Yn,errorCaptured:Yn,serverPrefetch:Yn,components:es,directives:es,watch:function(e,t){if(!e)return t;if(!t)return e;const n=c(Object.create(null),e);for(const s in t)n[s]=Yn(e[s],t[s]);return n},provide:Gn,inject:function(e,t){return es(Xn(e),Xn(t))}};function Gn(e,t){return t?e?function(){return c(y(e)?e.call(this,this):e,y(t)?t.call(this,this):t)}:t:e}function Xn(e){if(p(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Yn(e,t){return e?[...new Set([].concat(e,t))]:t}function es(e,t){return e?c(Object.create(null),e,t):t}function ts(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:c(Object.create(null),zn(e),zn(null!=t?t:{})):t}function ns(){return{app:null,config:{isNativeTag:o,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 ss=0;function rs(e,t){return function(t,n=null){y(t)||(t=c({},t)),null==n||b(n)||(n=null);const s=ns(),r=new WeakSet,i=[];let o=!1;const l=s.app={_uid:ss++,_component:t,_props:n,_container:null,_context:s,_instance:null,version:Cr,get config(){return s.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&y(e.install)?(r.add(e),e.install(l,...t)):y(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),l),component:(e,t)=>t?(s.components[e]=t,l):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,l):s.directives[e],mount(r,i,a){if(!o){const i=l._ceVNode||nr(t,n);return i.appContext=s,!0===a?a="svg":!1===a&&(a=void 0),e(i,r,a),o=!0,l._container=r,r.__vue_app__=l,Er(i.component)}},onUnmount(e){i.push(e)},unmount(){o&&($t(i,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,l),runWithContext(e){const t=is;is=l;try{return e()}finally{is=t}}};return l}}let is=null;function os(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||s;let i=n;const o=t.startsWith("update:"),l=o&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${N(t)}Modifiers`])(r,t.slice(7));let a;l&&(l.trim&&(i=n.map(e=>v(e)?e.trim():e)),l.number&&(i=n.map(T)));let c=r[a=$(t)]||r[a=$(O(t))];!c&&o&&(c=r[a=$(N(t))]),c&&$t(c,e,6,i);const u=r[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,$t(u,e,6,i)}}const ls=new WeakMap;function as(e,t,n=!1){const s=n?ls:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const i=e.emits;let o={},l=!1;if(!y(e)){const s=e=>{const n=as(e,t,!0);n&&(l=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return i||l?(p(i)?i.forEach(e=>o[e]=null):c(o,i),b(e)&&s.set(e,o),o):(b(e)&&s.set(e,null),null)}function cs(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,N(t))||d(e,t))}function us(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:h,props:d,data:p,setupState:f,ctx:m,inheritAttrs:g}=e,y=Gt(e);let v,_;try{if(4&n.shapeFlag){const e=r||s,t=e;v=lr(u.call(t,e,h,d,f,p,m)),_=l}else{const e=t;0,v=lr(e.length>1?e(d,{attrs:l,slots:o,emit:c}):e(d,null)),_=t.props?l:hs(l)}}catch(t){zs.length=0,It(t,e,1),v=nr(Us)}let b=v;if(_&&!1!==g){const e=Object.keys(_),{shapeFlag:t}=b;e.length&&7&t&&(i&&e.some(a)&&(_=ds(_,i)),b=sr(b,_,!1,!0))}return n.dirs&&(b=sr(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&cn(b,n.transition),v=b,Gt(y),v}const hs=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},ds=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function ps(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 i=s[r];if(fs(t,e,i)&&!cs(n,i))return!0}return!1}function fs(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!Z(s,r):s!==r}const ms={},gs=()=>Object.create(ms),ys=e=>Object.getPrototypeOf(e)===ms;function vs(e,t,n,s=!1){const r={},i=gs();e.propsDefaults=Object.create(null),_s(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=s?r:dt(r,!1,Qe,st,ot):e.type.props?e.props=r:e.props=i,e.attrs=i}function _s(e,t,n,r){const[i,o]=e.propsOptions;let l,a=!1;if(t)for(let s in t){if(w(s))continue;const c=t[s];let u;i&&d(i,u=O(s))?o&&o.includes(u)?(l||(l={}))[u]=c:n[u]=c:cs(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,a=!0)}if(o){const t=yt(n),r=l||s;for(let s=0;s<o.length;s++){const l=o[s];n[l]=bs(i,t,l,r[l],e,!d(r,l))}}return a}function bs(e,t,n,s,r,i){const o=e[n];if(null!=o){const e=d(o,"default");if(e&&void 0===s){const e=o.default;if(o.type!==Function&&!o.skipFactory&&y(e)){const{propsDefaults:i}=r;if(n in i)s=i[n];else{const o=yr(r);s=i[n]=e.call(null,t),o()}}else s=e;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!e?s=!1:!o[1]||""!==s&&s!==N(n)||(s=!0))}return s}const Ss=new WeakMap;function xs(e,t,n=!1){const i=n?Ss:t.propsCache,o=i.get(e);if(o)return o;const l=e.props,a={},u=[];let h=!1;if(!y(e)){const s=e=>{h=!0;const[n,s]=xs(e,t,!0);c(a,n),s&&u.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}if(!l&&!h)return b(e)&&i.set(e,r),r;if(p(l))for(let e=0;e<l.length;e++){const t=O(l[e]);ks(t)&&(a[t]=s)}else if(l)for(const e in l){const t=O(e);if(ks(t)){const n=l[e],s=a[t]=p(n)||y(n)?{type:n}:c({},n),r=s.type;let i=!1,o=!0;if(p(r))for(let e=0;e<r.length;++e){const t=r[e],n=y(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(o=!1)}else i=y(r)&&"Boolean"===r.name;s[0]=i,s[1]=o,(i||d(s,"default"))&&u.push(t)}}const f=[a,u];return b(e)&&i.set(e,f),f}function ks(e){return"$"!==e[0]&&!w(e)}const Es=e=>"_"===e||"_ctx"===e||"$stable"===e,Vs=e=>p(e)?e.map(lr):[lr(e)],ws=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Zt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Js(-1);const r=Gt(t);let i;try{i=e(...s)}finally{Gt(r),n._d&&Js(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>Vs(t(...e)),n);return s._c=!1,s},Cs=(e,t,n)=>{const s=e._ctx;for(const n in e){if(Es(n))continue;const r=e[n];if(y(r))t[n]=ws(0,r,s);else if(null!=r){const e=Vs(r);t[n]=()=>e}}},As=(e,t)=>{const n=Vs(t);e.slots.default=()=>n},Os=(e,t,n)=>{for(const s in t)!n&&Es(s)||(e[s]=t[s])},js=function(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):(p(n=e)?Tt.push(...n):Ft&&-1===n.id?Ft.splice(Mt+1,0,n):1&n.flags||(Tt.push(n),n.flags|=1),Wt());var n};function Ns(e){return function(e){q().__VUE__=!0;const{insert:t,remove:n,patchProp:o,createElement:l,createText:a,createComment:c,setText:u,setElementText:h,parentNode:p,nextSibling:f,setScopeId:m=i,insertStaticContent:g}=e,y=(e,t,n,s=null,r=null,i=null,o=void 0,l=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Xs(e,t)&&(s=X(e),J(e,r,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:h}=t;switch(c){case qs:v(e,t,n,s);break;case Us:_(e,t,n,s);break;case Ls:null==e&&b(t,n,s,o);break;case Ms:I(e,t,n,s,r,i,o,l,a);break;default:1&h?E(e,t,n,s,r,i,o,l,a):6&h?T(e,t,n,s,r,i,o,l,a):(64&h||128&h)&&c.process(e,t,n,s,r,i,o,l,a,te)}null!=u&&r?pn(u,e&&e.ref,i,t||e,!t):null==u&&e&&null!=e.ref&&pn(e.ref,null,i,e,!0)},v=(e,n,s,r)=>{if(null==e)t(n.el=a(n.children),s,r);else{const t=n.el=e.el;n.children!==e.children&&u(t,n.children)}},_=(e,n,s,r)=>{null==e?t(n.el=c(n.children||""),s,r):n.el=e.el},b=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},x=({el:e,anchor:n},s,r)=>{let i;for(;e&&e!==n;)i=f(e),t(e,s,r),e=i;t(n,s,r)},k=({el:e,anchor:t})=>{let s;for(;e&&e!==t;)s=f(e),n(e),e=s;n(t)},E=(e,t,n,s,r,i,o,l,a)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)V(t,n,s,r,i,o,l,a);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),j(e,t,r,i,o,l,a)}finally{n&&n._endPatch()}}},V=(e,n,s,r,i,a,c,u)=>{let d,p;const{props:f,shapeFlag:m,transition:g,dirs:y}=e;if(d=e.el=l(e.type,a,f&&f.is,f),8&m?h(d,e.children):16&m&&A(e.children,d,null,r,i,Ps(e,a),c,u),y&&Yt(e,null,r,"created"),C(d,e,e.scopeId,c,r),f){for(const e in f)"value"===e||w(e)||o(d,e,null,f[e],a,r);"value"in f&&o(d,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&ur(p,r,e)}y&&Yt(e,null,r,"beforeMount");const v=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,g);v&&g.beforeEnter(d),t(d,n,s),((p=f&&f.onVnodeMounted)||v||y)&&js(()=>{p&&ur(p,r,e),v&&g.enter(d),y&&Yt(e,null,r,"mounted")},i)},C=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let t=0;t<s.length;t++)m(e,s[t]);if(r){let n=r.subTree;if(t===n||Fs(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;C(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,s,r,i,o,l,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=l?ar(e[c]):lr(e[c]);y(null,a,t,n,s,r,i,o,l)}},j=(e,t,n,r,i,l,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&$s(n,!1),(g=m.onVnodeBeforeUpdate)&&ur(g,n,t,e),p&&Yt(t,e,n,"beforeUpdate"),n&&$s(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),d?P(e.dynamicChildren,d,c,n,r,Ps(t,i),l):a||z(e,t,c,null,n,r,Ps(t,i),l,!1),u>0){if(16&u)$(c,f,m,n,i);else if(2&u&&f.class!==m.class&&o(c,"class",null,m.class,i),4&u&&o(c,"style",f.style,m.style,i),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const s=e[t],r=f[s],l=m[s];l===r&&"value"!==s||o(c,s,r,l,i,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else a||null!=d||$(c,f,m,n,i);((g=m.onVnodeUpdated)||p)&&js(()=>{g&&ur(g,n,t,e),p&&Yt(t,e,n,"updated")},r)},P=(e,t,n,s,r,i,o)=>{for(let l=0;l<t.length;l++){const a=e[l],c=t[l],u=a.el&&(a.type===Ms||!Xs(a,c)||198&a.shapeFlag)?p(a.el):n;y(a,c,u,null,s,r,i,o,!0)}},$=(e,t,n,r,i)=>{if(t!==n){if(t!==s)for(const s in t)w(s)||s in n||o(e,s,t[s],null,i,r);for(const s in n){if(w(s))continue;const l=n[s],a=t[s];l!==a&&"value"!==s&&o(e,s,a,l,i,r)}"value"in n&&o(e,"value",t.value,n.value,i)}},I=(e,n,s,r,i,o,l,c,u)=>{const h=n.el=e?e.el:a(""),d=n.anchor=e?e.anchor:a("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=n;m&&(c=c?c.concat(m):m),null==e?(t(h,s,r),t(d,s,r),A(n.children||[],s,d,i,o,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(P(e.dynamicChildren,f,s,i,o,l,c),(null!=n.key||i&&n===i.subTree)&&Is(e,n,!0)):z(e,n,s,d,i,o,l,c,u)},T=(e,t,n,s,r,i,o,l,a)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,o,a):F(t,n,s,r,i,o,a):M(e,t,a)},F=(e,t,n,r,i,o,l)=>{const a=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||hr,o={uid:dr++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xs(r,i),emitsOptions:as(r,i),emit:null,emitted:null,propsDefaults:s,inheritAttrs:r.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,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};o.ctx={_:o},o.root=t?t.root:o,o.emit=os.bind(null,o),e.ce&&e.ce(o);return o}(e,r,i);if(gn(e)&&(a.ctx.renderer=te),function(e,t=!1,n=!1){t&&gr(t);const{props:s,children:r}=e.vnode,i=_r(e);vs(e,s,i,t),((e,t,n)=>{const s=e.slots=gs();if(32&e.vnode.shapeFlag){const e=t._;e?(Os(s,t,n),n&&D(s,"_",e,!0)):Cs(t,s)}else t&&As(e,t)})(e,r,n||t);const o=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ln);const{setup:s}=n;if(s){_e();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,kr),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=yr(e),i=Pt(s,e,0,[e.props,n]),o=S(i);if(be(),r(),!o&&!e.sp||mn(e)||un(e),o){if(i.then(vr,vr),t)return i.then(t=>{Sr(e,t)}).catch(t=>{It(t,e,0)});e.asyncDep=i}else Sr(e,i)}else xr(e)}(e,t):void 0;t&&gr(!1)}(a,!1,l),a.asyncDep){if(i&&i.registerDep(a,U,l),!e.el){const s=a.subTree=nr(Us);_(null,s,t,n),e.placeholder=s.el}}else U(a,e,t,n,i,o,l)},M=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!l||l&&l.$stable)||s!==o&&(s?!o||ps(s,o,c):!!o);if(1024&a)return!0;if(16&a)return s?ps(s,o,c):!!o;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(fs(o,s,n)&&!cs(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void L(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},U=(e,t,n,s,r,i,o)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:l,vnode:a}=e;{const n=Rs(e);if(n)return t&&(t.el=a.el,L(e,t,o)),void n.asyncDep.then(()=>{js(()=>{e.isUnmounted||c()},r)})}let u,h=t;$s(e,!1),t?(t.el=a.el,L(e,t,o)):t=a,n&&R(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ur(u,l,t,a),$s(e,!0);const d=us(e),f=e.subTree;e.subTree=d,y(f,d,p(f.el),X(f),e,r,i),t.el=d.el,null===h&&function({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,d.el),s&&js(s,r),(u=t.props&&t.props.onVnodeUpdated)&&js(()=>ur(u,l,t,a),r)}else{let o;const{el:l,props:a}=t,{bm:c,m:u,parent:h,root:d,type:p}=e,f=mn(t);$s(e,!1),c&&R(c),!f&&(o=a&&a.onVnodeBeforeMount)&&ur(o,h,t),$s(e,!0);{d.ce&&d.ce._hasShadowRoot()&&d.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const o=e.subTree=us(e);y(null,o,n,s,e,r,i),t.el=o.el}if(u&&js(u,r),!f&&(o=a&&a.onVnodeMounted)){const e=t;js(()=>ur(o,h,e),r)}(256&t.shapeFlag||h&&mn(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&js(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const a=e.effect=new re(l);e.scope.off();const c=e.update=a.run.bind(a),u=e.job=a.runIfDirty.bind(a);u.i=e,u.id=e.uid,a.scheduler=()=>zt(u),$s(e,!0),c()},L=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=yt(r),[a]=e.propsOptions;let c=!1;if(!(s||o>0)||16&o){let s;_s(e,t,r,i)&&(c=!0);for(const i in l)t&&(d(t,i)||(s=N(i))!==i&&d(t,s))||(a?!n||void 0===n[i]&&void 0===n[s]||(r[i]=bs(a,l,i,void 0,e,!0)):delete r[i]);if(i!==l)for(const e in i)t&&d(t,e)||(delete i[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let s=0;s<n.length;s++){let o=n[s];if(cs(e.emitsOptions,o))continue;const u=t[o];if(a)if(d(i,o))u!==i[o]&&(i[o]=u,c=!0);else{const t=O(o);r[t]=bs(a,l,t,u,e,!1)}else u!==i[o]&&(i[o]=u,c=!0)}}c&&Ne(e.attrs,"set","")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=s;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:Os(i,t,n):(o=!t.$stable,Cs(t,i)),l=t}else t&&(As(e,t),l={default:1});if(o)for(const e in i)Es(e)||null!=l[e]||delete i[e]})(e,t.children,n),_e(),Bt(e),be()},z=(e,t,n,s,r,i,o,l,a=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void B(c,d,n,s,r,i,o,l,a);if(256&p)return void W(c,d,n,s,r,i,o,l,a)}8&f?(16&u&&G(c,r,i),d!==c&&h(n,d)):16&u?16&f?B(c,d,n,s,r,i,o,l,a):G(c,r,i,!0):(8&u&&h(n,""),16&f&&A(d,n,s,r,i,o,l,a))},W=(e,t,n,s,i,o,l,a,c)=>{t=t||r;const u=(e=e||r).length,h=t.length,d=Math.min(u,h);let p;for(p=0;p<d;p++){const s=t[p]=c?ar(t[p]):lr(t[p]);y(e[p],s,n,null,i,o,l,a,c)}u>h?G(e,i,o,!0,!1,d):A(t,n,s,i,o,l,a,c,d)},B=(e,t,n,s,i,o,l,a,c)=>{let u=0;const h=t.length;let d=e.length-1,p=h-1;for(;u<=d&&u<=p;){const s=e[u],r=t[u]=c?ar(t[u]):lr(t[u]);if(!Xs(s,r))break;y(s,r,n,null,i,o,l,a,c),u++}for(;u<=d&&u<=p;){const s=e[d],r=t[p]=c?ar(t[p]):lr(t[p]);if(!Xs(s,r))break;y(s,r,n,null,i,o,l,a,c),d--,p--}if(u>d){if(u<=p){const e=p+1,r=e<h?t[e].el:s;for(;u<=p;)y(null,t[u]=c?ar(t[u]):lr(t[u]),n,r,i,o,l,a,c),u++}}else if(u>p)for(;u<=d;)J(e[u],i,o,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?ar(t[u]):lr(t[u]);null!=e.key&&g.set(e.key,u)}let v,_=0;const b=p-m+1;let S=!1,x=0;const k=new Array(b);for(u=0;u<b;u++)k[u]=0;for(u=f;u<=d;u++){const s=e[u];if(_>=b){J(s,i,o,!0);continue}let r;if(null!=s.key)r=g.get(s.key);else for(v=m;v<=p;v++)if(0===k[v-m]&&Xs(s,t[v])){r=v;break}void 0===r?J(s,i,o,!0):(k[r-m]=u+1,r>=x?x=r:S=!0,y(s,t[r],n,null,i,o,l,a,c),_++)}const E=S?function(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const a=e[s];if(0!==a){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<a?i=l+1:o=l;a<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}i=n.length,o=n[i-1];for(;i-- >0;)n[i]=o,o=t[o];return n}(k):r;for(v=E.length-1,u=b-1;u>=0;u--){const e=m+u,r=t[e],d=t[e+1],p=e+1<h?d.el||Ts(d):s;0===k[u]?y(null,r,n,p,i,o,l,a,c):S&&(v<0||u!==E[v]?H(r,n,p,2):v--)}}},H=(e,s,r,i,o=null)=>{const{el:l,type:a,transition:c,children:u,shapeFlag:h}=e;if(6&h)return void H(e.component.subTree,s,r,i);if(128&h)return void e.suspense.move(s,r,i);if(64&h)return void a.move(e,s,r,te);if(a===Ms){t(l,s,r);for(let e=0;e<u.length;e++)H(u[e],s,r,i);return void t(e.anchor,s,r)}if(a===Ls)return void x(e,s,r);if(2!==i&&1&h&&c)if(0===i)c.beforeEnter(l),t(l,s,r),js(()=>c.enter(l),o);else{const{leave:i,delayLeave:o,afterLeave:a}=c,u=()=>{e.ctx.isUnmounted?n(l):t(l,s,r)},h=()=>{l._isLeaving&&l[an](!0),i(l,()=>{u(),a&&a()})};o?o(l,u,h):h()}else t(l,s,r)},J=(e,t,n,s=!1,r=!1)=>{const{type:i,props:o,ref:l,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:h,dirs:d,cacheIndex:p}=e;if(-2===h&&(r=!1),null!=l&&(_e(),pn(l,null,n,e,!0),be()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const f=1&u&&d,m=!mn(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&ur(g,t,e),6&u)Q(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);f&&Yt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,s):c&&!c.hasOnce&&(i!==Ms||h>0&&64&h)?G(c,t,n,!1,!0):(i===Ms&&384&h||!r&&16&u)&&G(a,t,n),s&&K(e)}(m&&(g=o&&o.onVnodeUnmounted)||f)&&js(()=>{g&&ur(g,t,e),f&&Yt(e,null,t,"unmounted")},n)},K=e=>{const{type:t,el:s,anchor:r,transition:i}=e;if(t===Ms)return void Z(s,r);if(t===Ls)return void k(e);const o=()=>{n(s),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:n}=i,r=()=>t(s,o);n?n(e.el,o,r):r()}else o()},Z=(e,t)=>{let s;for(;e!==t;)s=f(e),n(e),e=s;n(t)},Q=(e,t,n)=>{const{bum:s,scope:r,job:i,subTree:o,um:l,m:a,a:c}=e;Ds(a),Ds(c),s&&R(s),r.stop(),i&&(i.flags|=8,J(o,e,t,n)),l&&js(l,t),js(()=>{e.isUnmounted=!0},t)},G=(e,t,n,s=!1,r=!1,i=0)=>{for(let o=i;o<e.length;o++)J(e[o],t,n,s,r)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[ln];return n?f(n):t};let Y=!1;const ee=(e,t,n)=>{let s;null==e?t._vnode&&(J(t._vnode,null,null,!0),s=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Y||(Y=!0,Bt(s),Ht(),Y=!1)},te={p:y,um:J,m:H,r:K,mt:F,mc:A,pc:z,pbc:P,n:X,o:e};let se;return{render:ee,hydrate:se,createApp:rs(ee)}}(e)}function Ps({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $s({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Is(e,t,n=!1){const s=e.children,r=t.children;if(p(s)&&p(r))for(let e=0;e<s.length;e++){const t=s[e];let i=r[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[e]=ar(r[e]),i.el=t.el),n||-2===i.patchFlag||Is(t,i)),i.type===qs&&(-1===i.patchFlag&&(i=r[e]=ar(i)),i.el=t.el),i.type!==Us||i.el||(i.el=t.el)}}function Rs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Rs(t)}function Ds(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ts(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ts(t.subTree):null}const Fs=e=>e.__isSuspense;const Ms=Symbol.for("v-fgt"),qs=Symbol.for("v-txt"),Us=Symbol.for("v-cmt"),Ls=Symbol.for("v-stc"),zs=[];let Ws=null;function Bs(e=!1){zs.push(Ws=e?null:[])}let Hs=1;function Js(e,t=!1){Hs+=e,e<0&&Ws&&t&&(Ws.hasOnce=!0)}function Ks(e){return e.dynamicChildren=Hs>0?Ws||r:null,zs.pop(),Ws=zs[zs.length-1]||null,Hs>0&&Ws&&Ws.push(e),e}function Zs(e,t,n,s,r,i){return Ks(tr(e,t,n,s,r,i,!0))}function Qs(e,t,n,s,r){return Ks(nr(e,t,n,s,r,!0))}function Gs(e){return!!e&&!0===e.__v_isVNode}function Xs(e,t){return e.type===t.type&&e.key===t.key}const Ys=({key:e})=>null!=e?e:null,er=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||bt(e)||y(e)?{i:Zt,r:e,k:t,f:!!n}:e:null);function tr(e,t=null,n=null,s=0,r=null,i=(e===Ms?0:1),o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ys(t),ref:t&&er(t),scopeId:Qt,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Zt};return l?(cr(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=v(n)?8:16),Hs>0&&!o&&Ws&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Ws.push(a),a}const nr=function(e,t=null,n=null,s=0,r=null,i=!1){e&&e!==Rn||(e=Us);if(Gs(e)){const s=sr(e,t,!0);return n&&cr(s,n),Hs>0&&!i&&Ws&&(6&s.shapeFlag?Ws[Ws.indexOf(e)]=s:Ws.push(s)),s.patchFlag=-2,s}o=e,y(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?gt(e)||ys(e)?c({},e):e:null}(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=H(e)),b(n)&&(gt(n)&&!p(n)&&(n=c({},n)),t.style=U(n))}const l=v(e)?1:Fs(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:y(e)?2:0;return tr(e,t,n,s,r,l,i,!0)};function sr(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:c}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const e in s)if("class"===e)t.class!==s.class&&(t.class=H([t.class,s.class]));else if("style"===e)t.style=U([t.style,s.style]);else if(l(e)){const n=t[e],r=s[e];!r||n===r||p(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ys(u),ref:t&&t.ref?n&&i?p(i)?i.concat(er(t)):[i,er(t)]:er(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ms?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sr(e.ssContent),ssFallback:e.ssFallback&&sr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&cn(h,c.clone(h)),h}function rr(e=" ",t=0){return nr(qs,null,e,t)}function ir(e,t){const n=nr(Ls,null,e);return n.staticCount=t,n}function or(e="",t=!1){return t?(Bs(),Qs(Us,null,e)):nr(Us,null,e)}function lr(e){return null==e||"boolean"==typeof e?nr(Us):p(e)?nr(Ms,null,e.slice()):Gs(e)?ar(e):nr(qs,null,String(e))}function ar(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:sr(e)}function cr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(p(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),cr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||ys(t)?3===s&&Zt&&(1===Zt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Zt}}else y(t)?(t={default:t,_ctx:Zt},n=32):(t=String(t),64&s?(n=16,t=[rr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ur(e,t,n,s=null){$t(e,t,7,[n,s])}const hr=ns();let dr=0;let pr=null;const fr=()=>pr||Zt;let mr,gr;{const e=q(),t=(t,n)=>{let s;return(s=e[t])||(s=e[t]=[]),s.push(n),e=>{s.length>1?s.forEach(t=>t(e)):s[0](e)}};mr=t("__VUE_INSTANCE_SETTERS__",e=>pr=e),gr=t("__VUE_SSR_SETTERS__",e=>br=e)}const yr=e=>{const t=pr;return mr(e),e.scope.on(),()=>{e.scope.off(),mr(t)}},vr=()=>{pr&&pr.scope.off(),mr(null)};function _r(e){return 4&e.vnode.shapeFlag}let br=!1;function Sr(e,t,n){y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Vt(t)),xr(e)}function xr(e,t,n){const s=e.type;e.render||(e.render=s.render||i);{const t=yr(e);_e();try{Bn(e)}finally{be(),t()}}}const kr={get:(e,t)=>(je(e,0,""),e[t])};function Er(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vt((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&D(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in qn?qn[n](e):void 0,has:(e,t)=>t in e||t in qn})):e.proxy;var t}function Vr(e,t=!0){return y(e)?e.displayName||e.name:e.name||t&&e.__name}const wr=(e,t)=>{const n=function(e,t,n=!1){let s,r;return y(e)?s=e:(s=e.get,r=e.set),new wt(s,r,n)}(e,0,br);return n};const Cr="3.5.30";
18
18
  /**
19
19
  * @vue/runtime-dom v3.5.30
20
20
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
21
  * @license MIT
22
- **/let Ar;const Or="undefined"!=typeof window&&window.trustedTypes;if(Or)try{Ar=Or.createPolicy("vue",{createHTML:e=>e})}catch(e){}const jr=Ar?e=>Ar.createHTML(e):e=>e,Pr="undefined"!=typeof document?document:null,Nr=Pr&&Pr.createElement("template"),$r={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="svg"===t?Pr.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Pr.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Pr.createElement(e,{is:n}):Pr.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>Pr.createTextNode(e),createComment:e=>Pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Nr.innerHTML=jr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Nr.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ir=Symbol("_vtc");const Rr=Symbol("_vod"),Dr=Symbol("_vsh"),Tr={name:"show",beforeMount(e,{value:t},{transition:n}){e[Rr]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Fr(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),Fr(e,!0),s.enter(e)):s.leave(e,()=>{Fr(e,!1)}):Fr(e,t))},beforeUnmount(e,{value:t}){Fr(e,t)}};function Fr(e,t){e.style.display=t?e[Rr]:"none",e[Dr]=!t}const Mr=Symbol(""),qr=/(?:^|;)\s*display\s*:/;const Ur=/\s*!important$/;function Lr(e,t,n){if(p(n))n.forEach(n=>Lr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=Wr[t];if(n)return n;let s=O(t);if("filter"!==s&&s in e)return Wr[t]=s;s=N(s);for(let n=0;n<zr.length;n++){const r=zr[n]+s;if(r in e)return Wr[t]=r}return t}(e,t);Ur.test(n)?e.setProperty(P(s),n.replace(Ur,""),"important"):e[s]=n}}const zr=["Webkit","Moz","ms"],Wr={};const Br="http://www.w3.org/1999/xlink";function Hr(e,t,n,s,r,i=J(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Br,t.slice(6,t.length)):e.setAttributeNS(Br,t,n):null==n||i&&!K(n)?e.removeAttribute(t):e.setAttribute(t,i?"":_(n)?String(n):n)}function Jr(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?jr(n):n));const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){const s="OPTION"===i?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return s===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=K(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(r||t)}function Kr(e,t,n,s){e.addEventListener(t,n,s)}const Zr=Symbol("_vei");function Qr(e,t,n,s,r=null){const i=e[Zr]||(e[Zr]={}),o=i[t];if(s&&o)o.value=s;else{const[n,l]=function(e){let t;if(Gr.test(e)){let n;for(t={};n=e.match(Gr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):P(e.slice(2));return[n,t]}(t);if(s){const o=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();$t(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ei(),n}(s,r);Kr(e,n,o,l)}else o&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,o,l),i[t]=void 0)}}const Gr=/(?:Once|Passive|Capture)$/;let Xr=0;const Yr=Promise.resolve(),ei=()=>Xr||(Yr.then(()=>Xr=0),Xr=Date.now());const ti=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const ni={};const si="undefined"!=typeof HTMLElement?HTMLElement:class{};class ri extends si{constructor(e,t={},n=vi){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==vi?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof ri){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Lt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:s}=e;let r;if(n&&!p(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=F(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(s),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>kt(t[e])})}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):ni;const s=O(e);t&&this._numberProps&&this._numberProps[s]&&(n=F(n)),this._setProp(s,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!1){if(t!==this._props[e]&&(this._dirty=!0,t===ni?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),s&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(P(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(P(e),t+""):t||this.removeAttribute(P(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),yi(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=nr(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,E(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),P(e)!==e&&t(P(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const s=this._nonce,r=this.shadowRoot,i=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let o=null;for(let l=e.length-1;l>=0;l--){const a=document.createElement("style");s&&a.setAttribute("nonce",s),a.textContent=e[l],r.insertBefore(a,o||i),o=a,0===l&&(n||this._styleAnchors.set(this._def,a),t&&this._styleAnchors.set(t,a))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const s=e[n],r=s.getAttribute("name")||"default",i=this._slots[r],o=s.parentNode;if(i)for(const e of i){if(t&&1===e.nodeType){const n=t+"-s",s=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=s.nextNode();)r.setAttribute(n,"")}o.insertBefore(e,s)}else for(;s.firstChild;)o.insertBefore(s.firstChild,s);o.removeChild(s)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}const ii=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>R(t,e):t};function oi(e){e.target.composing=!0}function li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ai=Symbol("_assign");function ci(e,t,n){return t&&(e=e.trim()),n&&(e=T(e)),e}const ui={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ai]=ii(r);const i=s||r.props&&"number"===r.props.type;Kr(e,t?"change":"input",t=>{t.target.composing||e[ai](ci(e.value,n,i))}),(n||i)&&Kr(e,"change",()=>{e.value=ci(e.value,n,i)}),t||(Kr(e,"compositionstart",oi),Kr(e,"compositionend",li),Kr(e,"change",li))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ai]=ii(o),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:T(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},hi=["ctrl","shift","alt","meta"],di={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>hi.some(n=>e[`${n}Key`]&&!t.includes(n))},pi=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(n,...s)=>{for(let e=0;e<t.length;e++){const s=di[t[e]];if(s&&s(n,t))return}return e(n,...s)})},fi=c({patchProp:(e,t,n,s,r,i)=>{const o="svg"===r;"class"===t?function(e,t,n){const s=e[Ir];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,o):"style"===t?function(e,t,n){const s=e.style,r=v(n);let i=!1;if(n&&!r){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Lr(s,t,"")}else for(const e in t)null==n[e]&&Lr(s,e,"");for(const e in n)"display"===e&&(i=!0),Lr(s,e,n[e])}else if(r){if(t!==n){const e=s[Mr];e&&(n+=";"+e),s.cssText=n,i=qr.test(n)}}else t&&e.removeAttribute("style");Rr in e&&(e[Rr]=i?s.display:"",e[Dr]&&(s.display="none"))}(e,n,s):l(t)?a(t)||Qr(e,t,0,s,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&ti(t)&&y(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(ti(t)&&v(n))return!1;return t in e}(e,t,s,o))?(Jr(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Hr(e,t,s,o,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=O(t);return Array.isArray(n)?n.some(e=>O(e)===s):Object.keys(n).some(e=>O(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(s)))?Jr(e,O(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Hr(e,t,s,o))}},$r);let mi;function gi(){return mi||(mi=Ps(fi))}const yi=(...e)=>{gi().render(...e)},vi=(...e)=>{const t=gi().createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){if(v(e)){return document.querySelector(e)}return e}(e);if(!s)return;const r=t._component;y(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const i=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};const _i={key:0,class:"sf-null-badge"},bi=["value","placeholder"],Si=["value","placeholder"],xi={key:0,class:"errorlist"};t.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},[rr(G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",_i,"null")):or("v-if",!0)],2),tr("div",{class:H(i.isNullable?"sf-input-row":null)},[i.isLong?(Bs(),Zs("textarea",{key:0,class:"sf-input sf-textarea",rows:"3",value:i.isNullValue?"":n.modelValue,placeholder:i.isNullValue?"null":n.schema.placeholder||"",onInput:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},null,40,bi)):(Bs(),Zs("input",{key:1,type:"text",class:"sf-input",value:i.isNullValue?"":null!=n.modelValue?String(n.modelValue):"",placeholder:i.isNullValue?"null":n.schema.placeholder||"",onInput:t[1]||(t[1]=t=>e.$emit("update:modelValue",t.target.value))},null,40,Si)),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:2,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[2]||(t[2]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)],2),i.fieldErrors.length?(Bs(),Zs("ul",xi,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},t.__file="src/editors/StringEditor.vue";var ki={name:"NumberEditor",props:{schema:{type:Object,required:!0},modelValue:{default:0},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},isNullable(){return!!this.schema._nullable},isNullValue(){return null===this.modelValue||void 0===this.modelValue},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onInput(e){const t=e.target.value;""===t?this.$emit("update:modelValue",0):this.$emit("update:modelValue","integer"===this.schema.type?parseInt(t,10):parseFloat(t))}}};const Ei={key:0,class:"sf-null-badge"},wi=["step","min","max","value","placeholder"],Vi={key:0,class:"errorlist"};ki.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},[rr(G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",Ei,"null")):or("v-if",!0)],2),tr("div",{class:H(i.isNullable?"sf-input-row":null)},[tr("input",{type:"number",class:"sf-input",step:"integer"===n.schema.type?"1":"any",min:null!=n.schema.minimum?String(n.schema.minimum):void 0,max:null!=n.schema.maximum?String(n.schema.maximum):void 0,value:i.isNullValue?"":n.modelValue,placeholder:i.isNullValue?"null":void 0,onInput:t[0]||(t[0]=(...e)=>i.onInput&&i.onInput(...e))},null,40,wi),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:0,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[1]||(t[1]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)],2),i.fieldErrors.length?(Bs(),Zs("ul",Vi,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},ki.__file="src/editors/NumberEditor.vue";var Ci={name:"BooleanEditor",props:{schema:{type:Object,required:!0},modelValue:{default:!1},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isNullable(){return!!this.schema._nullable},isNullValue(){return null===this.modelValue||void 0===this.modelValue},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Ai={class:"sf-boolean-row"},Oi={class:"sf-checkbox-label"},ji=["checked"],Pi={key:0,class:"sf-null-badge"},Ni={key:0,class:"errorlist"};Ci.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field sf-field-boolean",{errors:i.fieldErrors.length}])},[tr("div",Ai,[tr("label",Oi,[tr("input",{type:"checkbox",class:"sf-checkbox",checked:!!n.modelValue,onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.checked))},null,40,ji),rr(" "+G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",Pi,"null")):or("v-if",!0)]),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:0,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[1]||(t[1]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)]),i.fieldErrors.length?(Bs(),Zs("ul",Ni,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},Ci.__file="src/editors/BooleanEditor.vue";var $i={name:"SelectEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},isNullable(){return!!this.schema._nullable},isNullValue(){return null===this.modelValue||void 0===this.modelValue},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Ii={key:0,class:"sf-null-badge"},Ri=["value"],Di={key:0,value:"",disabled:"",selected:""},Ti=["value"],Fi={key:0,class:"errorlist"};$i.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},[rr(G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",Ii,"null")):or("v-if",!0)],2),tr("div",{class:H(i.isNullable?"sf-input-row":null)},[tr("select",{class:"sf-input sf-select",value:i.isNullValue?"":null!=n.modelValue?String(n.modelValue):"",onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},[i.isNullable&&i.isNullValue?(Bs(),Zs("option",Di,"null")):or("v-if",!0),(Bs(!0),Zs(Ms,null,Fn(n.schema.enum||[],e=>(Bs(),Zs("option",{key:e,value:String(e)},G(e),9,Ti))),128))],40,Ri),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:0,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[1]||(t[1]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)],2),i.fieldErrors.length?(Bs(),Zs("ul",Fi,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},$i.__file="src/editors/SelectEditor.vue";var Mi={name:"HiddenEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{resolvedValue(){return"const"in this.schema?this.schema.const:this.schema.enum&&1===this.schema.enum.length?this.schema.enum[0]:this.modelValue}},mounted(){this.resolvedValue!==this.modelValue&&this.$emit("update:modelValue",this.resolvedValue)},methods:{getValue(){return this.resolvedValue}}};const qi={style:{display:"none"}};Mi.render=function(e,t,n,s,r,i){return Bs(),Zs("div",qi)},Mi.__file="src/editors/HiddenEditor.vue";var Ui={name:"SfIcon",props:{name:{type:String,required:!0},size:{type:[Number,String],default:14}}};const Li=["width","height"],zi={key:4,points:"6 9 12 15 18 9"},Wi={key:5,points:"18 15 12 9 6 15"};function Bi(e,t){if(null==e||"object"!=typeof e)return!1;if(!(t in e))return!1;const n=e[t];return null!=n&&""!==n}function Hi(e,t){if(!t||"object"!=typeof t)return!0;if("const"in t)return e===t.const;if(Array.isArray(t.enum))return t.enum.includes(e);if(t.type){const n=t.type;if("string"===n&&"string"!=typeof e)return!1;if("number"===n&&"number"!=typeof e)return!1;if("integer"===n&&("number"!=typeof e||!Number.isInteger(e)))return!1;if("boolean"===n&&"boolean"!=typeof e)return!1;if("null"===n&&null!==e)return!1;if("array"===n&&!Array.isArray(e))return!1;if("object"===n&&(null==e||"object"!=typeof e||Array.isArray(e)))return!1}if("number"==typeof e){if("number"==typeof t.minimum&&e<t.minimum)return!1;if("number"==typeof t.maximum&&e>t.maximum)return!1;if("number"==typeof t.exclusiveMinimum&&e<=t.exclusiveMinimum)return!1;if("number"==typeof t.exclusiveMaximum&&e>=t.exclusiveMaximum)return!1;if("number"==typeof t.multipleOf&&t.multipleOf>0){const n=e/t.multipleOf;if(Math.abs(n-Math.round(n))>1e-9)return!1}}if("string"==typeof e){if("number"==typeof t.minLength&&e.length<t.minLength)return!1;if("number"==typeof t.maxLength&&e.length>t.maxLength)return!1;if("string"==typeof t.pattern)try{if(!new RegExp(t.pattern).test(e))return!1}catch(e){return!1}}return!t.not||!Ji(e,t.not)}function Ji(e,t){if(!t||"object"!=typeof t)return!0;if(Array.isArray(t.required))for(const n of t.required)if(!Bi(e,n))return!1;if(t.properties&&"object"==typeof t.properties)for(const[n,s]of Object.entries(t.properties))if(null!=e&&n in e&&!Hi(e[n],s))return!1;if(t.not&&Ji(e,t.not))return!1;if(Array.isArray(t.allOf)&&!t.allOf.every(t=>Ji(e,t)))return!1;if(Array.isArray(t.anyOf)&&!t.anyOf.some(t=>Ji(e,t)))return!1;if(Array.isArray(t.oneOf)){if(1!==t.oneOf.filter(t=>Ji(e,t)).length)return!1}return!0}function Ki(e,t,n){if(!t||"object"!=typeof t)return e;if(t.properties){const s=[];for(const[n,r]of Object.entries(t.properties)){const t=e.properties&&e.properties[n];s.push([n,t?{...t,...r}:r])}e.properties=function(e,t,n){const s=Object.keys(e),r=t?s.indexOf(t):-1;if(-1===r){const t={...e};for(const[e,s]of n)t[e]=s;return t}const i={};for(let t=0;t<s.length;t++){const o=s[t];if(i[o]=e[o],t===r)for(const[t,s]of n)t in e||(i[t]=s)}for(const[t,s]of n)t in e&&(i[t]=s);return i}(e.properties||{},n,s)}if(Array.isArray(t.required)){const n=new Set(e.required||[]);for(const e of t.required)n.add(e);e.required=Array.from(n)}return t.allOf&&(e.allOf=[...e.allOf||[],...t.allOf]),t.if&&(e.allOf=[...e.allOf||[],{if:t.if,then:t.then,else:t.else}]),t.dependentSchemas&&(e.dependentSchemas={...e.dependentSchemas||{},...t.dependentSchemas}),t.dependentRequired&&(e.dependentRequired={...e.dependentRequired||{},...t.dependentRequired}),e}function Zi(e,t,n){const s="function"==typeof n?n:e=>e;if(!e||"object"!=typeof e)return e;if("object"!==e.type&&!e.properties)return e;let r={...e,properties:{...e.properties||{}},required:Array.isArray(e.required)?[...e.required]:[]};const i=t&&"object"==typeof t?t:{},o=e=>{if(!e||"object"!=typeof e)return null;const t=e.properties&&Object.keys(e.properties);return t&&t.length?t[0]:Array.isArray(e.required)&&e.required.length?e.required[0]:null},l=[];if(r.if&&l.push({if:r.if,then:r.then,else:r.else,anchor:o(r.if)}),Array.isArray(r.allOf))for(const e of r.allOf)e&&"object"==typeof e&&e.if?l.push({if:e.if,then:e.then,else:e.else,anchor:o(e.if)}):e&&"object"==typeof e&&(e.properties||e.required)&&Ki(r,e);for(let e=0;e<8;e++){let e=!1;const t=JSON.stringify({p:r.properties,r:r.required});for(const e of l){const t=Ji(i,e.if)?e.then:e.else;t&&Ki(r,s(t),e.anchor)}if(r.dependentSchemas)for(const[e,t]of Object.entries(r.dependentSchemas))Bi(i,e)&&Ki(r,s(t),e);if(r.dependentRequired)for(const[e,t]of Object.entries(r.dependentRequired))if(Bi(i,e)&&Array.isArray(t)){const e=new Set(r.required||[]);for(const n of t)e.add(n);r.required=Array.from(e)}if(JSON.stringify({p:r.properties,r:r.required})!==t&&(e=!0),!e)break}return r}function Qi(e){return!(!e||"object"!=typeof e)&&(!!(e.if||e.dependentSchemas||e.dependentRequired)||!!Array.isArray(e.allOf)&&e.allOf.some(e=>e&&"object"==typeof e&&(e.if||e.dependentSchemas)))}Ui.render=function(e,t,n,s,r,i){return Bs(),Zs("svg",{class:"sf-icon",width:n.size,height:n.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},["plus"===n.name?(Bs(),Zs(Ms,{key:0},[t[0]||(t[0]=tr("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1)),t[1]||(t[1]=tr("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1))],64)):"times"===n.name?(Bs(),Zs(Ms,{key:1},[t[2]||(t[2]=tr("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)),t[3]||(t[3]=tr("line",{x1:"6",y1:"18",x2:"18",y2:"6"},null,-1))],64)):"arrow-up"===n.name?(Bs(),Zs(Ms,{key:2},[t[4]||(t[4]=tr("line",{x1:"12",y1:"19",x2:"12",y2:"5"},null,-1)),t[5]||(t[5]=tr("polyline",{points:"5 12 12 5 19 12"},null,-1))],64)):"arrow-down"===n.name?(Bs(),Zs(Ms,{key:3},[t[6]||(t[6]=tr("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1)),t[7]||(t[7]=tr("polyline",{points:"19 12 12 19 5 12"},null,-1))],64)):"chevron-down"===n.name?(Bs(),Zs("polyline",zi)):"chevron-up"===n.name?(Bs(),Zs("polyline",Wi)):"grip"===n.name?(Bs(),Zs(Ms,{key:6},[t[8]||(t[8]=ir('<circle cx="9" cy="7" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="7" r="1" fill="currentColor" stroke="none"></circle><circle cx="9" cy="12" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="12" r="1" fill="currentColor" stroke="none"></circle><circle cx="9" cy="17" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="17" r="1" fill="currentColor" stroke="none"></circle>',6))],64)):or("v-if",!0)],8,Li)},Ui.__file="src/editors/SfIcon.vue";var Gi={name:"ObjectEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=nl,this.$options.components.SfIcon=Ui},props:{schema:{type:Object,required:!0},modelValue:{default:()=>({})},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data:()=>({collapsed:!1}),computed:{isRoot(){return 0===this.path.length},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},effectiveSchema(){return Qi(this.schema)?Zi(this.schema,this.modelValue||{},this.form?.resolveSchema):this.schema},summary(){const e=this.modelValue||{},t=[];for(const n of Object.keys(this.effectiveSchema.properties||{})){if(t.length>=3)break;const s=e[n];null!=s&&""!==s&&"object"!=typeof s&&t.push(String(s))}return t.join(" · ")}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",collapse(){this.collapsed=!0},expand(){this.collapsed=!1},onChildChange(e,t){const n={...this.modelValue||{},[e]:t};this.$emit("update:modelValue",this.pruneInactive(n))},pruneInactive(e){if(!Qi(this.schema))return e;const t=Zi(this.schema,e,this.form?.resolveSchema),n=new Set(Object.keys(t.properties||{}));let s=!1;const r={};for(const t of Object.keys(e))n.has(t)?r[t]=e[t]:s=!0;return s?r:e}}};const Xi={key:0,class:"sf-object sf-object-root"},Yi={class:"sf-object-fields"},eo={class:"sf-object-title"},to=["aria-label"],no={class:"sf-object-title-text"},so={key:0,class:"sf-object-summary"},ro={class:"sf-object-fields"};function io(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(io);const t={};for(const n of Object.keys(e))t[n]=io(e[n]);return t}function oo(e){if("default"in e)return io(e.default);if("object"===e.type){const t={};for(const[n,s]of Object.entries(e.properties||{}))"default"in s?t[n]=io(s.default):"string"===s.type?t[n]="":"integer"===s.type||"number"===s.type?t[n]=0:"boolean"===s.type?t[n]=!1:"array"===s.type&&(t[n]=[]);return t}return"array"===e.type?[]:"string"===e.type?"":"integer"===e.type||"number"===e.type?0:"boolean"!==e.type&&("relation"===e.type&&e.multiple?[]:null)}Gi.render=function(e,t,n,s,r,i){const o=In("SchemaEditor"),l=In("SfIcon");return i.isRoot?(Bs(),Zs("div",Xi,[tr("div",Yi,[(Bs(!0),Zs(Ms,null,Fn(i.effectiveSchema.properties||{},(e,t)=>(Bs(),Qs(o,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>i.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))])])):(Bs(),Zs("fieldset",{key:1,class:H(["sf-object",{"sf-object-collapsed":r.collapsed}])},[tr("legend",eo,[tr("button",{type:"button",class:"sf-collapse-btn","aria-label":r.collapsed?"Expand":"Collapse",onClick:t[0]||(t[0]=e=>r.collapsed=!r.collapsed)},[nr(l,{name:r.collapsed?"chevron-down":"chevron-up",size:12},null,8,["name"])],8,to),tr("span",no,G(i.title),1),r.collapsed&&i.summary?(Bs(),Zs("span",so,G(i.summary),1)):or("v-if",!0)]),Xt(tr("div",ro,[(Bs(!0),Zs(Ms,null,Fn(i.effectiveSchema.properties||{},(e,t)=>(Bs(),Qs(o,{key:t,schema:n.form.resolveSchema(e),"model-value":(n.modelValue||{})[t],path:[...n.path,t],form:n.form,"onUpdate:modelValue":e=>i.onChildChange(t,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))),128))],512),[[Tr,!r.collapsed]])],2))},Gi.__file="src/editors/ObjectEditor.vue";let lo=0;var ao={name:"ArrayEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=nl,this.$options.components.SfIcon=Ui},props:{schema:{type:Object,required:!0},modelValue:{default:()=>[]},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{items:(Array.isArray(this.modelValue)?this.modelValue:[]).map(e=>({_key:lo++,value:e})),dragSourceIndex:null,dragOverIndex:null,allCollapsed:!1}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},itemSchema(){return this.form.resolveSchema(this.schema.items||{})},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",addItem(){const e=oo(this.itemSchema);this.items.push({_key:lo++,value:e}),this.emitValue()},removeItem(e){this.items.splice(e,1),this.emitValue()},moveItem(e,t){const n=e+t;if(n<0||n>=this.items.length)return;const s=this.items[e];this.items.splice(e,1,this.items[n]),this.items.splice(n,1,s),this.emitValue()},onItemChange(e,t){this.items[e].value=t,this.emitValue()},onDragStart(e,t){this.dragSourceIndex=e,t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",String(e))},onDragOver(e){null!==this.dragSourceIndex&&e!==this.dragSourceIndex&&(this.dragOverIndex=e)},onDragLeave(e){this.dragOverIndex===e&&(this.dragOverIndex=null)},onDrop(e){if(null===this.dragSourceIndex||this.dragSourceIndex===e)return;const t=this.items.splice(this.dragSourceIndex,1)[0];this.items.splice(e,0,t),this.dragSourceIndex=null,this.dragOverIndex=null,this.emitValue()},onDragEnd(){this.dragSourceIndex=null,this.dragOverIndex=null},toggleCollapseAll(){this.allCollapsed=!this.allCollapsed;const e=this.$refs.itemEditors;if(!e)return;const t=Array.isArray(e)?e:[e];this.allCollapsed?t.forEach(e=>e?.collapseAll?.()):t.forEach(e=>e?.expandAll?.())},emitValue(){this.$emit("update:modelValue",this.items.map(e=>e.value))}}};const co={class:"sf-array-header"},uo={class:"sf-label"},ho={class:"sf-array-count"},po=["title"],fo={class:"sf-array-items"},mo=["onDragstart","onDragover","onDragleave","onDrop"],go={class:"sf-array-item-header"},yo={class:"sf-array-item-left"},vo={class:"sf-drag-handle",title:"Drag to reorder"},_o={class:"sf-array-item-index"},bo={class:"sf-array-item-actions"},So=["onClick"],xo=["onClick"],ko=["onClick"],Eo=["onDrop"],wo={key:0,class:"errorlist"};ao.render=function(e,t,n,s,r,i){const o=In("SfIcon"),l=In("SchemaEditor");return Bs(),Zs("div",{class:H(["sf-array",{errors:i.fieldErrors.length}])},[tr("div",co,[tr("span",uo,G(i.title),1),tr("span",ho,G(r.items.length),1),tr("button",{type:"button",class:"sf-btn sf-btn-add",onClick:t[0]||(t[0]=e=>i.addItem())},[nr(o,{name:"plus"}),t[4]||(t[4]=rr(" Add ",-1))]),r.items.length?(Bs(),Zs("span",{key:0,class:"sf-array-collapse-toggle",title:r.allCollapsed?"Expand all":"Collapse all",onClick:t[1]||(t[1]=(...e)=>i.toggleCollapseAll&&i.toggleCollapseAll(...e))},[nr(o,{name:r.allCollapsed?"chevron-down":"chevron-up"},null,8,["name"])],8,po)):or("v-if",!0)]),tr("div",fo,[(Bs(!0),Zs(Ms,null,Fn(r.items,(e,s)=>(Bs(),Zs("div",{key:e._key,class:H(["sf-array-item",{"sf-drag-over":r.dragOverIndex===s,"sf-dragging":r.dragSourceIndex===s}]),draggable:"true",onDragstart:e=>i.onDragStart(s,e),onDragover:pi(e=>i.onDragOver(s),["prevent"]),onDragleave:e=>i.onDragLeave(s),onDrop:pi(e=>i.onDrop(s),["prevent"]),onDragend:t[3]||(t[3]=(...e)=>i.onDragEnd&&i.onDragEnd(...e))},[tr("div",go,[tr("div",yo,[tr("span",vo,[nr(o,{name:"grip"})]),tr("span",_o,"#"+G(s+1),1)]),tr("div",bo,[s>0?(Bs(),Zs("button",{key:0,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,-1)},[nr(o,{name:"arrow-up"})],8,So)):or("v-if",!0),s<r.items.length-1?(Bs(),Zs("button",{key:1,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,1)},[nr(o,{name:"arrow-down"})],8,xo)):or("v-if",!0),tr("button",{type:"button",class:"sf-btn sf-btn-sm sf-btn-danger",onClick:e=>i.removeItem(s)},[nr(o,{name:"times"})],8,ko)])]),tr("div",{class:"sf-array-item-body",onDragover:t[2]||(t[2]=pi(()=>{},["prevent"])),onDrop:pi(e=>i.onDrop(s),["prevent"])},[nr(l,{ref_for:!0,ref:"itemEditors",schema:i.itemSchema,"model-value":e.value,path:[...n.path,String(s)],form:n.form,"onUpdate:modelValue":e=>i.onItemChange(s,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])],40,Eo)],42,mo))),128))]),i.fieldErrors.length?(Bs(),Zs("ul",wo,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},ao.__file="src/editors/ArrayEditor.vue";var Vo={name:"NullableEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=nl,this.$options.components.SfIcon=Ui},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{isNull:null===this.modelValue||void 0===this.modelValue}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},innerSchema(){const e={...this.schema};return delete e._nullable,e},toggleClass(){return this.isNull?"sf-btn sf-btn-sm sf-btn-add":"sf-btn sf-btn-sm sf-btn-danger"},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){this.isNull=null==e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",toggle(){this.isNull?(this.isNull=!1,this.$emit("update:modelValue",oo(this.innerSchema))):(this.isNull=!0,this.$emit("update:modelValue",null))}}};const Co={class:"sf-nullable-header"},Ao={class:"sf-nullable-body"},Oo={key:0,class:"errorlist"};Vo.render=function(e,t,n,s,r,i){const o=In("SfIcon"),l=In("SchemaEditor");return Bs(),Zs("div",{class:H(["sf-nullable",{errors:i.fieldErrors.length}])},[tr("div",Co,[tr("span",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),tr("button",{type:"button",class:H(i.toggleClass),onClick:t[0]||(t[0]=(...e)=>i.toggle&&i.toggle(...e))},[r.isNull?(Bs(),Zs(Ms,{key:0},[nr(o,{name:"plus"}),t[2]||(t[2]=rr(" Add ",-1))],64)):(Bs(),Zs(Ms,{key:1},[nr(o,{name:"times"}),t[3]||(t[3]=rr(" Remove ",-1))],64))],2)]),tr("div",Ao,[r.isNull?or("v-if",!0):(Bs(),Qs(l,{key:0,schema:i.innerSchema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]))]),i.fieldErrors.length?(Bs(),Zs("ul",Oo,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},Vo.__file="src/editors/NullableEditor.vue";var jo={name:"UnionEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=nl},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){const e=this.schema.discriminator.propertyName,t=this.schema.discriminator.mapping;return{discriminatorProp:e,mapping:t,currentType:this.modelValue?this.modelValue[e]:Object.keys(t)[0]}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},typeKeys(){return Object.keys(this.mapping)},currentSchema(){const e=this.mapping[this.currentType];return this.form.resolveSchema({$ref:e})},innerValue(){if(this.modelValue&&this.modelValue[this.discriminatorProp]===this.currentType)return this.modelValue;const e=oo(this.currentSchema);return e[this.discriminatorProp]=this.currentType,e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onTypeChange(e){this.currentType=e.target.value;const t=oo(this.currentSchema);t[this.discriminatorProp]=this.currentType,this.$emit("update:modelValue",t)},onInnerChange(e){e&&(e[this.discriminatorProp]=this.currentType),this.$emit("update:modelValue",e)}}};const Po={class:"sf-union"},No={class:"sf-field"},$o={class:"sf-label"},Io=["value"],Ro=["value"],Do={class:"sf-union-body"};jo.render=function(e,t,n,s,r,i){const o=In("SchemaEditor");return Bs(),Zs("div",Po,[tr("div",No,[tr("span",$o,G(i.title),1),tr("select",{class:"sf-input sf-select",value:r.currentType,onChange:t[0]||(t[0]=(...e)=>i.onTypeChange&&i.onTypeChange(...e))},[(Bs(!0),Zs(Ms,null,Fn(i.typeKeys,e=>(Bs(),Zs("option",{key:e,value:e},G(i.humanize(e)),9,Ro))),128))],40,Io)]),tr("div",Do,[(Bs(),Qs(o,{key:r.currentType,schema:i.currentSchema,"model-value":i.innerValue,path:n.path,form:n.form,"onUpdate:modelValue":i.onInnerChange},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))])])},jo.__file="src/editors/UnionEditor.vue";var To={name:"RelationEditor",components:{SfIcon:Ui},inject:{language:{from:"language",default:()=>()=>""}},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){const e=!!this.schema.multiple,t=this.modelValue;let n;return n=e?Array.isArray(t)?[...t]:[]:t?[t]:[],{isMultiple:e,allowClear:this.schema.options?.select2?.allowClear??!0,placeholder:this.schema.options?.select2?.placeholder||"Search...",searchUrl:this.schema.options?.select2?.ajax?.url||"",selected:n,dropdownVisible:!1,searchResults:[],currentPage:1,hasMore:!1,loading:!1,highlightIndex:-1,searchQuery:""}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},showSearch(){return!(!this.isMultiple&&this.selected.length>0)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]},filteredResults(){const e=new Set(this.selected.map(e=>this.itemKey(e)));return this.searchResults.filter(t=>!e.has(this.itemKey(t)))}},created(){this._doSearch=function(e,t){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>e.apply(this,s),t)}}(e=>this.fetchResults(e,1),300),this._onDocClick=e=>{this.$refs.root&&!this.$refs.root.contains(e.target)&&this.closeDropdown()}},mounted(){document.addEventListener("click",this._onDocClick)},beforeUnmount(){document.removeEventListener("click",this._onDocClick)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",getDisplayName(e){if(!e)return"";for(const t of["__str__","name","title","label"])if(e[t])return String(e[t]);return`#${e.id||"?"}`},itemKey:e=>`${e.id}-${e.model||""}`,onSearchInput(){this._doSearch(this.searchQuery)},openDropdown(){this.dropdownVisible||(this.dropdownVisible=!0,this.fetchResults(this.searchQuery,1))},closeDropdown(){this.dropdownVisible=!1,this.highlightIndex=-1},async fetchResults(e,t){if(this.searchUrl){this.loading=!0,this.currentPage=t;try{const n=new URL(this.searchUrl,window.location.origin);n.searchParams.set("_q",e||""),n.searchParams.set("page",String(t));const s="function"==typeof this.language?this.language():this.language;s&&n.searchParams.set("_lang",s);const r=await fetch(n,{credentials:"same-origin"});if(!r.ok)return;const i=await r.json();this.searchResults=1===t?i.items||[]:this.searchResults.concat(i.items||[]),this.hasMore=i.more}finally{this.loading=!1}}},handleKeyDown(e){this.filteredResults.length&&("ArrowDown"===e.key?(e.preventDefault(),this.highlightIndex=Math.min(this.highlightIndex+1,this.filteredResults.length-1)):"ArrowUp"===e.key?(e.preventDefault(),this.highlightIndex=Math.max(this.highlightIndex-1,0)):"Enter"===e.key?(e.preventDefault(),this.highlightIndex>=0&&this.highlightIndex<this.filteredResults.length&&this.selectItem(this.filteredResults[this.highlightIndex])):"Escape"===e.key&&this.closeDropdown())},selectItem(e){this.isMultiple?this.selected.push(e):this.selected=[e],this.searchQuery="",this.highlightIndex=-1,this.closeDropdown(),this.emitValue()},removeItem(e){this.selected=this.selected.filter(t=>!(t.id===e.id&&(t.model||"")===(e.model||""))),this.emitValue()},emitValue(){this.isMultiple?this.$emit("update:modelValue",[...this.selected]):this.$emit("update:modelValue",this.selected[0]||null)}}};const Fo={class:"sf-relation-wrapper"},Mo={key:0,class:"sf-relation-selected"},qo={class:"sf-relation-tag-text"},Uo=["onClick"],Lo={class:"sf-relation-search"},zo=["placeholder"],Wo={class:"sf-relation-dropdown"},Bo={key:0,class:"sf-relation-dropdown-empty"},Ho=["onClick"],Jo={key:0,class:"errorlist"};To.render=function(e,t,n,s,r,i){const o=In("SfIcon");return Bs(),Zs("div",{class:H(["sf-field sf-relation",{errors:i.fieldErrors.length}]),ref:"root"},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),tr("div",Fo,[or(" Selected items "),r.selected.length?(Bs(),Zs("div",Mo,[(Bs(!0),Zs(Ms,null,Fn(r.selected,e=>(Bs(),Zs("div",{key:i.itemKey(e),class:"sf-relation-tag"},[tr("span",qo,G(i.getDisplayName(e)),1),r.isMultiple||r.allowClear?(Bs(),Zs("button",{key:0,type:"button",class:"sf-relation-tag-remove",onClick:pi(t=>i.removeItem(e),["stop"])},[nr(o,{name:"times"})],8,Uo)):or("v-if",!0)]))),128))])):or("v-if",!0),or(" Search box "),Xt(tr("div",Lo,[Xt(tr("input",{ref:"searchInput",type:"text",class:"sf-input sf-relation-input",placeholder:r.placeholder,autocomplete:"off","onUpdate:modelValue":t[0]||(t[0]=e=>r.searchQuery=e),onInput:t[1]||(t[1]=(...e)=>i.onSearchInput&&i.onSearchInput(...e)),onFocus:t[2]||(t[2]=(...e)=>i.openDropdown&&i.openDropdown(...e)),onKeydown:t[3]||(t[3]=(...e)=>i.handleKeyDown&&i.handleKeyDown(...e))},null,40,zo),[[ui,r.searchQuery]]),or(" Dropdown "),Xt(tr("div",Wo,[0!==i.filteredResults.length||r.loading?or("v-if",!0):(Bs(),Zs("div",Bo," No results found ")),(Bs(!0),Zs(Ms,null,Fn(i.filteredResults,(e,t)=>(Bs(),Zs("div",{key:i.itemKey(e),class:H(["sf-relation-dropdown-item",{highlighted:t===r.highlightIndex}]),onClick:t=>i.selectItem(e)},G(i.getDisplayName(e)),11,Ho))),128)),r.hasMore?(Bs(),Zs("div",{key:1,class:"sf-relation-dropdown-more",onClick:t[4]||(t[4]=e=>i.fetchResults(r.searchQuery,r.currentPage+1))}," Load more... ")):or("v-if",!0)],512),[[Tr,r.dropdownVisible]])],512),[[Tr,i.showSearch]])]),i.fieldErrors.length?(Bs(),Zs("ul",Jo,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},To.__file="src/editors/RelationEditor.vue";const Ko="https://cdnjs.cloudflare.com/ajax/libs/ace/1.37.5/ace.min.js";var Zo={name:"JsonEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{rawValue:null!=this.modelValue?JSON.stringify(this.modelValue,null,2):"{}",ready:!1,hasErrors:!1,loadError:null,_editor:null,_silent:!1}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){if(this._silent)return;const t=null!=e?JSON.stringify(e,null,2):"{}";try{JSON.stringify(JSON.parse(this.rawValue))!==JSON.stringify(e)&&(this.rawValue=t,this._editor&&(this._silent=!0,this._editor.setValue(t,-1),this._silent=!1))}catch{}}},async mounted(){try{const e=await(window.ace?Promise.resolve(window.ace):new Promise((e,t)=>{const n=document.querySelector(`script[src="${Ko}"]`);if(n)return n.addEventListener("load",()=>e(window.ace)),void n.addEventListener("error",t);const s=document.createElement("script");s.src=Ko,s.async=!0,s.onload=()=>e(window.ace),s.onerror=()=>t(new Error("Failed to load Ace Editor")),document.head.appendChild(s)})),t=this.$refs.aceContainer;if(!t)return;const n=e.edit(t);n.setTheme(this._isDark()?"ace/theme/one_dark":"ace/theme/chrome"),n.session.setMode("ace/mode/json"),n.session.setTabSize(2),n.session.setUseSoftTabs(!0),n.setShowPrintMargin(!1),n.setOption("minLines",5),n.setOption("maxLines",20),n.setValue(this.rawValue,-1),n.$blockScrolling=1/0,n.session.on("change",()=>{if(this._silent)return;const e=n.getValue();this.rawValue=e;try{const t=JSON.parse(e);this.hasErrors=!1,this._silent=!0,this.$emit("update:modelValue",t),this._silent=!1}catch{this.hasErrors=!0}}),n.session.on("changeAnnotation",()=>{const e=n.session.getAnnotations();this.hasErrors=e.some(e=>"error"===e.type)}),this._editor=n,this.ready=!0}catch(e){this.loadError=`Editor unavailable: ${e.message}`}},beforeUnmount(){this._editor&&(this._editor.destroy(),this._editor=null)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",_isDark:()=>"dark"===document.documentElement.dataset.colorScheme||window.matchMedia?.("(prefers-color-scheme: dark)").matches,format(){if(this._editor)try{const e=JSON.stringify(JSON.parse(this._editor.getValue()),null,2);this._silent=!0,this._editor.setValue(e,-1),this._silent=!1,this.rawValue=e}catch{}},onFallbackInput(e){this.rawValue=e.target.value;try{this.$emit("update:modelValue",JSON.parse(this.rawValue))}catch{}}}};const Qo={class:"sf-json-toolbar"},Go={key:0,class:"sf-json-error-msg"},Xo={ref:"aceContainer",class:"sf-json-ace-container"},Yo=["value"],el={key:0,class:"errorlist"};Zo.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field sf-field-json",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),tr("div",{class:H(["sf-json-editor",{"sf-json-error":r.hasErrors}])},[tr("div",Qo,[r.loadError?(Bs(),Zs("span",Go,G(r.loadError),1)):or("v-if",!0),r.ready?(Bs(),Zs("button",{key:1,type:"button",class:"sf-btn sf-btn-sm sf-json-format-btn",onClick:t[0]||(t[0]=(...e)=>i.format&&i.format(...e))}," Format ")):or("v-if",!0)]),tr("div",Xo,null,512),r.ready?or("v-if",!0):(Bs(),Zs("textarea",{key:0,class:"sf-input sf-textarea sf-json-textarea-fallback",value:r.rawValue,spellcheck:"false",onInput:t[1]||(t[1]=(...e)=>i.onFallbackInput&&i.onFallbackInput(...e))},null,40,Yo))],2),i.fieldErrors.length?(Bs(),Zs("ul",el,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},Zo.__file="src/editors/JsonEditor.vue";var tl={name:"WebComponentWrapper",props:{tagName:{type:String,required:!0},schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=St(null);function s(){const t=n.value;t&&(t.schema=e.schema,t.modelValue=e.modelValue,t.path=e.path,t.form=e.form)}function r(e){const n=null!=e.detail?Array.isArray(e.detail)?e.detail[0]:e.detail:void 0;t("update:modelValue",n)}return En(()=>{s();const e=n.value;e&&(e.addEventListener("update:model-value",r),e.addEventListener("change",r))}),Cn(()=>{const e=n.value;e&&(e.removeEventListener("update:model-value",r),e.removeEventListener("change",r))}),nn(()=>[e.schema,e.modelValue,e.path,e.form],s,{deep:!0}),()=>function(e,t,n){try{Js(-1);const s=arguments.length;return 2===s?b(t)&&!p(t)?Gs(t)?nr(e,null,[t]):nr(e,t):nr(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):3===s&&Gs(n)&&(n=[n]),nr(e,t,n))}finally{Js(1)}}(e.tagName,{ref:n})},__file:"src/editors/WebComponentWrapper.vue"};var nl={name:"SchemaEditor",components:{StringEditor:t,NumberEditor:ki,BooleanEditor:Ci,SelectEditor:$i,HiddenEditor:Mi,ObjectEditor:Gi,ArrayEditor:ao,NullableEditor:Vo,UnionEditor:jo,RelationEditor:To,JsonEditor:Zo,WebComponentWrapper:tl},inject:{customEditors:{default:()=>()=>[]}},props:{schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],methods:{collapseAll(){const e=this.$refs.editor;e?.collapse&&e.collapse(),e?.collapseAll&&e.collapseAll()},expandAll(){const e=this.$refs.editor;e?.expand&&e.expand(),e?.expandAll&&e.expandAll()}},computed:{isWebComponent(){const e=this.editorComponent;return"string"==typeof e&&e.includes("-")},editorComponent(){const e=this.schema;if(this.path.length>12)return"StringEditor";const t=this.customEditors();for(const n of t)if(n.match(e,this.path))return n.component;return"relation"===e.type?"RelationEditor":e.oneOf&&e.discriminator?"UnionEditor":"const"in e||e.enum&&1===e.enum.length&&"string"===e.type?"HiddenEditor":!e._nullable||"object"!==e.type&&"array"!==e.type?"object"===e.type&&e.properties?"ObjectEditor":"object"===e.type?"JsonEditor":"array"===e.type?"ArrayEditor":e.enum?"SelectEditor":"boolean"===e.type?"BooleanEditor":"number"===e.type||"integer"===e.type?"NumberEditor":"StringEditor":"NullableEditor"}}};nl.render=function(e,t,n,s,r,i){const o=In("WebComponentWrapper");return i.isWebComponent?(Bs(),Qs(o,{key:0,ref:"editor","tag-name":i.editorComponent,schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["tag-name","schema","model-value","path","form"])):(Bs(),Qs((l=i.editorComponent,v(l)?Dn($n,l,!1)||l:l||Rn),{key:1,ref:"editor",schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]));var l},nl.__file="src/editors/SchemaEditor.vue";var sl={name:"SchemaForm",components:{SchemaEditor:nl},props:{schema:{type:[Object,String],default:()=>({})},initialData:{default:void 0},errors:{type:Object,default:()=>({})},customEditors:{type:Array,default:()=>[]},language:{type:String,default:""}},emits:["change"],expose:["getValue"],provide(){return{customEditors:()=>this.customEditors,language:()=>this.language}},data(){const e="string"==typeof this.schema?JSON.parse(this.schema):this.schema;return{rootSchema:e,defs:e.$defs||e.definitions||{},currentValue:null!=this.initialData?io(this.initialData):void 0}},computed:{resolvedSchema(){return this.resolveSchema(this.rootSchema)},formApi(){return{resolveSchema:e=>this.resolveSchema(e),getSchemaAtPath:e=>this.getSchemaAtPath(e),getEffectiveSchemaAtPath:e=>this.getEffectiveSchemaAtPath(e),getErrorsForPath:e=>this.getErrorsForPath(e)}}},watch:{schema:{handler(e){const t="string"==typeof e?JSON.parse(e):e;this.rootSchema=t,this.defs=t.$defs||t.definitions||{}},deep:!0},initialData:{handler(e){this.currentValue=null!=e?io(e):void 0},deep:!0}},methods:{resolveSchema(e){if(!e)return{type:"string"};if(e.$ref){const t=e.$ref.replace(/^#\/\$defs\//,"").replace(/^#\/definitions\//,""),n=this.defs[t];if(!n)return{type:"string",title:t};const{$ref:s,...r}=e;return{...this.resolveSchema(n),...r}}if(e.anyOf){const t=e.anyOf.filter(e=>"null"!==e.type);if(e.anyOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}if(e.oneOf&&e.discriminator)return e;if(e.oneOf){const t=e.oneOf.filter(e=>"null"!==e.type);if(e.oneOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]);return{...n,_nullable:!0,title:e.title||n.title,default:"default"in e?e.default:null}}if(t.length>=1)return this.resolveSchema(t[0])}return e},getSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema);for(const n of e){if(!t)return null;if(t.properties&&t.properties[n])t=this.resolveSchema(t.properties[n]);else{if(!t.items)return null;t=this.resolveSchema(t.items)}}return t},getEffectiveSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema),n=this.currentValue;for(const s of e){if(!t)return null;if((t.properties||t.if||t.allOf||t.dependentSchemas)&&Qi(t)&&(t=Zi(t,n||{},e=>this.resolveSchema(e))),t.properties&&void 0!==t.properties[s])t=this.resolveSchema(t.properties[s]),n=null!=n?n[s]:void 0;else{if(!t.items)return null;t=this.resolveSchema(t.items),n=Array.isArray(n)?n[s]:void 0}}return t&&Qi(t)&&(t=Zi(t,n||{})),t},onValueChange(e){this.currentValue=e,this.$emit("change",e)},getErrorsForPath(e){if(!this.errors||"object"!=typeof this.errors)return[];const t=e.join(".");return this.errors[t]||[]},getValue(){return this.currentValue}}};const rl={class:"structured-field-editor"};sl.render=function(e,t,n,s,r,i){const o=In("SchemaEditor");return Bs(),Zs("div",rl,[i.resolvedSchema?(Bs(),Qs(o,{key:0,schema:i.resolvedSchema,"model-value":r.currentValue,path:[],form:i.formApi,"onUpdate:modelValue":i.onValueChange},null,8,["schema","model-value","form","onUpdate:modelValue"])):or("v-if",!0)])},sl.__file="src/SchemaForm.vue";class il extends HTMLElement{constructor(){super(),this._schema={},this._modelValue=void 0,this._path=[],this._form=null,this._connected=!1}get schema(){return this._schema}set schema(e){this._schema=e,this._connected&&this.update()}get modelValue(){return this._modelValue}set modelValue(e){this._modelValue=e,this._connected&&this.update()}get path(){return this._path}set path(e){this._path=e,this._connected&&this.update()}get form(){return this._form}set form(e){this._form=e,this._connected&&this.update()}connectedCallback(){this._connected=!0,this.render()}disconnectedCallback(){this._connected=!1}emitChange(e){this.dispatchEvent(new CustomEvent("change",{detail:e}))}getErrors(){return this._form?.getErrorsForPath?.(this._path)??[]}render(){}update(){}}const ol=function(e,t,n){let s=function(e,t){return y(e)?(()=>c({name:e.name},t,{setup:e}))():e}(e,t);E(s)&&(s=c({},s,t));class r extends ri{constructor(e){super(s,e,n)}}return r.def=s,r}({...sl,shadowRoot:!1});return e.ArrayEditor=ao,e.BaseEditorElement=il,e.BooleanEditor=Ci,e.HiddenEditor=Mi,e.NullableEditor=Vo,e.NumberEditor=ki,e.ObjectEditor=Gi,e.RelationEditor=To,e.SchemaEditor=nl,e.SchemaForm=sl,e.SchemaFormElement=ol,e.SelectEditor=$i,e.StringEditor=t,e.UnionEditor=jo,e.WebComponentWrapper=tl,e.applyConditionals=Zi,e.hasConditionals=Qi,e.matchesSchema=Ji,e.registerCustomElement=function(e="schema-form"){customElements.get(e)||customElements.define(e,ol)},e}({});
22
+ **/let Ar;const Or="undefined"!=typeof window&&window.trustedTypes;if(Or)try{Ar=Or.createPolicy("vue",{createHTML:e=>e})}catch(e){}const jr=Ar?e=>Ar.createHTML(e):e=>e,Nr="undefined"!=typeof document?document:null,Pr=Nr&&Nr.createElement("template"),$r={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="svg"===t?Nr.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Nr.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Nr.createElement(e,{is:n}):Nr.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>Nr.createTextNode(e),createComment:e=>Nr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Pr.innerHTML=jr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Pr.content;if("svg"===s||"mathml"===s){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ir=Symbol("_vtc");const Rr=Symbol("_vod"),Dr=Symbol("_vsh"),Tr={name:"show",beforeMount(e,{value:t},{transition:n}){e[Rr]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Fr(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),Fr(e,!0),s.enter(e)):s.leave(e,()=>{Fr(e,!1)}):Fr(e,t))},beforeUnmount(e,{value:t}){Fr(e,t)}};function Fr(e,t){e.style.display=t?e[Rr]:"none",e[Dr]=!t}const Mr=Symbol(""),qr=/(?:^|;)\s*display\s*:/;const Ur=/\s*!important$/;function Lr(e,t,n){if(p(n))n.forEach(n=>Lr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=Wr[t];if(n)return n;let s=O(t);if("filter"!==s&&s in e)return Wr[t]=s;s=P(s);for(let n=0;n<zr.length;n++){const r=zr[n]+s;if(r in e)return Wr[t]=r}return t}(e,t);Ur.test(n)?e.setProperty(N(s),n.replace(Ur,""),"important"):e[s]=n}}const zr=["Webkit","Moz","ms"],Wr={};const Br="http://www.w3.org/1999/xlink";function Hr(e,t,n,s,r,i=J(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Br,t.slice(6,t.length)):e.setAttributeNS(Br,t,n):null==n||i&&!K(n)?e.removeAttribute(t):e.setAttribute(t,i?"":_(n)?String(n):n)}function Jr(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?jr(n):n));const i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){const s="OPTION"===i?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return s===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let o=!1;if(""===n||null==n){const s=typeof e[t];"boolean"===s?n=K(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(r||t)}function Kr(e,t,n,s){e.addEventListener(t,n,s)}const Zr=Symbol("_vei");function Qr(e,t,n,s,r=null){const i=e[Zr]||(e[Zr]={}),o=i[t];if(s&&o)o.value=s;else{const[n,l]=function(e){let t;if(Gr.test(e)){let n;for(t={};n=e.match(Gr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):N(e.slice(2));return[n,t]}(t);if(s){const o=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();$t(function(e,t){if(p(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=ei(),n}(s,r);Kr(e,n,o,l)}else o&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,o,l),i[t]=void 0)}}const Gr=/(?:Once|Passive|Capture)$/;let Xr=0;const Yr=Promise.resolve(),ei=()=>Xr||(Yr.then(()=>Xr=0),Xr=Date.now());const ti=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const ni={};const si="undefined"!=typeof HTMLElement?HTMLElement:class{};class ri extends si{constructor(e,t={},n=vi){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==vi?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(c({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof ri){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Lt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:s}=e;let r;if(n&&!p(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=F(this._props[e])),(r||(r=Object.create(null)))[O(e)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(s),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>kt(t[e])})}_resolveProps(e){const{props:t}=e,n=p(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(O))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):ni;const s=O(e);t&&this._numberProps&&this._numberProps[s]&&(n=F(n)),this._setProp(s,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!1){if(t!==this._props[e]&&(this._dirty=!0,t===ni?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),s&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(N(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(N(e),t+""):t||this.removeAttribute(N(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),yi(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=nr(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,E(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),N(e)!==e&&t(N(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const s=this._nonce,r=this.shadowRoot,i=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let o=null;for(let l=e.length-1;l>=0;l--){const a=document.createElement("style");s&&a.setAttribute("nonce",s),a.textContent=e[l],r.insertBefore(a,o||i),o=a,0===l&&(n||this._styleAnchors.set(this._def,a),t&&this._styleAnchors.set(t,a))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const s=e[n],r=s.getAttribute("name")||"default",i=this._slots[r],o=s.parentNode;if(i)for(const e of i){if(t&&1===e.nodeType){const n=t+"-s",s=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=s.nextNode();)r.setAttribute(n,"")}o.insertBefore(e,s)}else for(;s.firstChild;)o.insertBefore(s.firstChild,s);o.removeChild(s)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){}}const ii=e=>{const t=e.props["onUpdate:modelValue"]||!1;return p(t)?e=>R(t,e):t};function oi(e){e.target.composing=!0}function li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ai=Symbol("_assign");function ci(e,t,n){return t&&(e=e.trim()),n&&(e=T(e)),e}const ui={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ai]=ii(r);const i=s||r.props&&"number"===r.props.type;Kr(e,t?"change":"input",t=>{t.target.composing||e[ai](ci(e.value,n,i))}),(n||i)&&Kr(e,"change",()=>{e.value=ci(e.value,n,i)}),t||(Kr(e,"compositionstart",oi),Kr(e,"compositionend",li),Kr(e,"change",li))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ai]=ii(o),e.composing)return;const l=null==t?"":t;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:T(e.value))!==l){if(document.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===l)return}e.value=l}}},hi=["ctrl","shift","alt","meta"],di={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&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>hi.some(n=>e[`${n}Key`]&&!t.includes(n))},pi=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(n,...s)=>{for(let e=0;e<t.length;e++){const s=di[t[e]];if(s&&s(n,t))return}return e(n,...s)})},fi=c({patchProp:(e,t,n,s,r,i)=>{const o="svg"===r;"class"===t?function(e,t,n){const s=e[Ir];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,o):"style"===t?function(e,t,n){const s=e.style,r=v(n);let i=!1;if(n&&!r){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Lr(s,t,"")}else for(const e in t)null==n[e]&&Lr(s,e,"");for(const e in n)"display"===e&&(i=!0),Lr(s,e,n[e])}else if(r){if(t!==n){const e=s[Mr];e&&(n+=";"+e),s.cssText=n,i=qr.test(n)}}else t&&e.removeAttribute("style");Rr in e&&(e[Rr]=i?s.display:"",e[Dr]&&(s.display="none"))}(e,n,s):l(t)?a(t)||Qr(e,t,0,s,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,s){if(s)return"innerHTML"===t||"textContent"===t||!!(t in e&&ti(t)&&y(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(ti(t)&&v(n))return!1;return t in e}(e,t,s,o))?(Jr(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Hr(e,t,s,o,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=O(t);return Array.isArray(n)?n.some(e=>O(e)===s):Object.keys(n).some(e=>O(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(s)))?Jr(e,O(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Hr(e,t,s,o))}},$r);let mi;function gi(){return mi||(mi=Ns(fi))}const yi=(...e)=>{gi().render(...e)},vi=(...e)=>{const t=gi().createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){if(v(e)){return document.querySelector(e)}return e}(e);if(!s)return;const r=t._component;y(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const i=n(s,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};const _i={key:0,class:"sf-null-badge"},bi=["value","placeholder"],Si=["value","placeholder"],xi={key:0,class:"errorlist"};t.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},[rr(G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",_i,"null")):or("v-if",!0)],2),tr("div",{class:H(i.isNullable?"sf-input-row":null)},[i.isLong?(Bs(),Zs("textarea",{key:0,class:"sf-input sf-textarea",rows:"3",value:i.isNullValue?"":n.modelValue,placeholder:i.isNullValue?"null":n.schema.placeholder||"",onInput:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))},null,40,bi)):(Bs(),Zs("input",{key:1,type:"text",class:"sf-input",value:i.isNullValue?"":null!=n.modelValue?String(n.modelValue):"",placeholder:i.isNullValue?"null":n.schema.placeholder||"",onInput:t[1]||(t[1]=t=>e.$emit("update:modelValue",t.target.value))},null,40,Si)),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:2,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[2]||(t[2]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)],2),i.fieldErrors.length?(Bs(),Zs("ul",xi,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},t.__file="src/editors/StringEditor.vue";var ki={name:"NumberEditor",props:{schema:{type:Object,required:!0},modelValue:{default:0},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},isNullable(){return!!this.schema._nullable},isNullValue(){return null===this.modelValue||void 0===this.modelValue},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onInput(e){const t=e.target.value;""===t?this.$emit("update:modelValue",0):this.$emit("update:modelValue","integer"===this.schema.type?parseInt(t,10):parseFloat(t))}}};const Ei={key:0,class:"sf-null-badge"},Vi=["step","min","max","value","placeholder"],wi={key:0,class:"errorlist"};ki.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},[rr(G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",Ei,"null")):or("v-if",!0)],2),tr("div",{class:H(i.isNullable?"sf-input-row":null)},[tr("input",{type:"number",class:"sf-input",step:"integer"===n.schema.type?"1":"any",min:null!=n.schema.minimum?String(n.schema.minimum):void 0,max:null!=n.schema.maximum?String(n.schema.maximum):void 0,value:i.isNullValue?"":n.modelValue,placeholder:i.isNullValue?"null":void 0,onInput:t[0]||(t[0]=(...e)=>i.onInput&&i.onInput(...e))},null,40,Vi),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:0,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[1]||(t[1]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)],2),i.fieldErrors.length?(Bs(),Zs("ul",wi,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},ki.__file="src/editors/NumberEditor.vue";var Ci={name:"BooleanEditor",props:{schema:{type:Object,required:!0},modelValue:{default:!1},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isNullable(){return!!this.schema._nullable},isNullValue(){return null===this.modelValue||void 0===this.modelValue},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Ai={class:"sf-boolean-row"},Oi={class:"sf-checkbox-label"},ji=["checked"],Ni={key:0,class:"sf-null-badge"},Pi={key:0,class:"errorlist"};Ci.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field sf-field-boolean",{errors:i.fieldErrors.length}])},[tr("div",Ai,[tr("label",Oi,[tr("input",{type:"checkbox",class:"sf-checkbox",checked:!!n.modelValue,onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.checked))},null,40,ji),rr(" "+G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",Ni,"null")):or("v-if",!0)]),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:0,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[1]||(t[1]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)]),i.fieldErrors.length?(Bs(),Zs("ul",Pi,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},Ci.__file="src/editors/BooleanEditor.vue";var $i={name:"DateEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{isDateTime(){return"date-time"===this.schema.format},inputType(){return this.isDateTime?"datetime-local":"date"},displayValue(){if(this.isNullValue)return"";const e=String(this.modelValue);if(this.isDateTime){const t=e.match(/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2}(?:\.\d+)?))?/);return t?t[3]?`${t[1]}T${t[2]}:${t[3]}`:`${t[1]}T${t[2]}`:e}return e.slice(0,10)},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},isNullable(){return!!this.schema._nullable},isNullValue(){return null===this.modelValue||void 0===this.modelValue},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{onInput(e){const t=e.target.value;""!==t?this.$emit("update:modelValue",t):this.$emit("update:modelValue",this.isNullable?null:"")},humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Ii={key:0,class:"sf-null-badge"},Ri=["type","value","placeholder","min","max"],Di={key:0,class:"errorlist"};function Ti(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ti);const t={};for(const n of Object.keys(e))t[n]=Ti(e[n]);return t}function Fi(e){return Array.isArray(e)&&e.length>0&&e.every(e=>e&&"object"==typeof e&&"const"in e&&!("properties"in e)&&"null"!==e.type)}function Mi(e){if("default"in e)return Ti(e.default);if("object"===e.type){const t={};for(const[n,s]of Object.entries(e.properties||{}))"default"in s?t[n]=Ti(s.default):"string"===s.type?t[n]="":"integer"===s.type||"number"===s.type?t[n]=0:"boolean"===s.type?t[n]=!1:"array"===s.type&&(t[n]=[]);return t}return"array"===e.type?[]:"string"===e.type?"":"integer"===e.type||"number"===e.type?0:"boolean"!==e.type&&("relation"===e.type&&e.multiple?[]:null)}$i.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},[rr(G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",Ii,"null")):or("v-if",!0)],2),tr("div",{class:H(i.isNullable?"sf-input-row":null)},[tr("input",{type:i.inputType,class:"sf-input",value:i.displayValue,placeholder:i.isNullValue?"null":n.schema.placeholder||"",min:n.schema.minimum||n.schema.formatMinimum||null,max:n.schema.maximum||n.schema.formatMaximum||null,onInput:t[0]||(t[0]=(...e)=>i.onInput&&i.onInput(...e))},null,40,Ri),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:0,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[1]||(t[1]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)],2),i.fieldErrors.length?(Bs(),Zs("ul",Di,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},$i.__file="src/editors/DateEditor.vue";var qi={name:"SelectEditor",props:{schema:{type:Object,required:!0},modelValue:{default:""},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{options(){return Fi(this.schema.oneOf)?this.schema.oneOf.map(e=>({value:e.const,label:null!=e.title?e.title:String(e.const)})):(this.schema.enum||[]).map(e=>({value:e,label:String(e)}))},selectedIndex(){return this.options.findIndex(e=>e.value===this.modelValue)},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},isNullable(){return!!this.schema._nullable},isNullValue(){return null===this.modelValue||void 0===this.modelValue},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{onChange(e){const t=this.options[Number(e)];void 0!==t&&this.$emit("update:modelValue",t.value)},humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):""}};const Ui={key:0,class:"sf-null-badge"},Li=["value"],zi={key:0,value:"",disabled:"",selected:""},Wi=["value"],Bi={key:0,class:"errorlist"};qi.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},[rr(G(i.title)+" ",1),i.isNullable&&i.isNullValue?(Bs(),Zs("span",Ui,"null")):or("v-if",!0)],2),tr("div",{class:H(i.isNullable?"sf-input-row":null)},[tr("select",{class:"sf-input sf-select",value:-1===i.selectedIndex?"":String(i.selectedIndex),onChange:t[0]||(t[0]=e=>i.onChange(e.target.value))},[-1===i.selectedIndex?(Bs(),Zs("option",zi,G(i.isNullValue?"null":""),1)):or("v-if",!0),(Bs(!0),Zs(Ms,null,Fn(i.options,(e,t)=>(Bs(),Zs("option",{key:t,value:String(t)},G(e.label),9,Wi))),128))],40,Li),i.isNullable&&!i.isNullValue?(Bs(),Zs("button",{key:0,type:"button",class:"sf-null-clear-btn",title:"Set to null",onClick:t[1]||(t[1]=t=>e.$emit("update:modelValue",null))},"✕")):or("v-if",!0)],2),i.fieldErrors.length?(Bs(),Zs("ul",Bi,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},qi.__file="src/editors/SelectEditor.vue";var Hi={name:"HiddenEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],computed:{resolvedValue(){return"const"in this.schema?this.schema.const:this.schema.enum&&1===this.schema.enum.length?this.schema.enum[0]:this.modelValue}},mounted(){this.resolvedValue!==this.modelValue&&this.$emit("update:modelValue",this.resolvedValue)},methods:{getValue(){return this.resolvedValue}}};const Ji={style:{display:"none"}};Hi.render=function(e,t,n,s,r,i){return Bs(),Zs("div",Ji)},Hi.__file="src/editors/HiddenEditor.vue";var Ki={name:"SfIcon",props:{name:{type:String,required:!0},size:{type:[Number,String],default:14}}};const Zi=["width","height"],Qi={key:4,points:"6 9 12 15 18 9"},Gi={key:5,points:"18 15 12 9 6 15"};function Xi(e,t){if(null==e||"object"!=typeof e)return!1;if(!(t in e))return!1;const n=e[t];return null!=n&&""!==n}function Yi(e,t){if(!t||"object"!=typeof t)return!0;if("const"in t)return e===t.const;if(Array.isArray(t.enum))return t.enum.includes(e);if(t.type){const n=t.type;if("string"===n&&"string"!=typeof e)return!1;if("number"===n&&"number"!=typeof e)return!1;if("integer"===n&&("number"!=typeof e||!Number.isInteger(e)))return!1;if("boolean"===n&&"boolean"!=typeof e)return!1;if("null"===n&&null!==e)return!1;if("array"===n&&!Array.isArray(e))return!1;if("object"===n&&(null==e||"object"!=typeof e||Array.isArray(e)))return!1}if("number"==typeof e){if("number"==typeof t.minimum&&e<t.minimum)return!1;if("number"==typeof t.maximum&&e>t.maximum)return!1;if("number"==typeof t.exclusiveMinimum&&e<=t.exclusiveMinimum)return!1;if("number"==typeof t.exclusiveMaximum&&e>=t.exclusiveMaximum)return!1;if("number"==typeof t.multipleOf&&t.multipleOf>0){const n=e/t.multipleOf;if(Math.abs(n-Math.round(n))>1e-9)return!1}}if("string"==typeof e){if("number"==typeof t.minLength&&e.length<t.minLength)return!1;if("number"==typeof t.maxLength&&e.length>t.maxLength)return!1;if("string"==typeof t.pattern)try{if(!new RegExp(t.pattern).test(e))return!1}catch(e){return!1}}return!t.not||!eo(e,t.not)}function eo(e,t){if(!t||"object"!=typeof t)return!0;if(Array.isArray(t.required))for(const n of t.required)if(!Xi(e,n))return!1;if(t.properties&&"object"==typeof t.properties)for(const[n,s]of Object.entries(t.properties))if(null!=e&&n in e&&!Yi(e[n],s))return!1;if(t.not&&eo(e,t.not))return!1;if(Array.isArray(t.allOf)&&!t.allOf.every(t=>eo(e,t)))return!1;if(Array.isArray(t.anyOf)&&!t.anyOf.some(t=>eo(e,t)))return!1;if(Array.isArray(t.oneOf)){if(1!==t.oneOf.filter(t=>eo(e,t)).length)return!1}return!0}function to(e,t,n){if(!t||"object"!=typeof t)return e;if(t.properties){const s=[];for(const[n,r]of Object.entries(t.properties)){const t=e.properties&&e.properties[n];s.push([n,t?{...t,...r}:r])}e.properties=function(e,t,n){const s=Object.keys(e),r=t?s.indexOf(t):-1;if(-1===r){const t={...e};for(const[e,s]of n)t[e]=s;return t}const i={};for(let t=0;t<s.length;t++){const o=s[t];if(i[o]=e[o],t===r)for(const[t,s]of n)t in e||(i[t]=s)}for(const[t,s]of n)t in e&&(i[t]=s);return i}(e.properties||{},n,s)}if(Array.isArray(t.required)){const n=new Set(e.required||[]);for(const e of t.required)n.add(e);e.required=Array.from(n)}return t.allOf&&(e.allOf=[...e.allOf||[],...t.allOf]),t.if&&(e.allOf=[...e.allOf||[],{if:t.if,then:t.then,else:t.else}]),t.dependentSchemas&&(e.dependentSchemas={...e.dependentSchemas||{},...t.dependentSchemas}),t.dependentRequired&&(e.dependentRequired={...e.dependentRequired||{},...t.dependentRequired}),e}function no(e,t,n){const s="function"==typeof n?n:e=>e;if(!e||"object"!=typeof e)return e;if("object"!==e.type&&!e.properties)return e;let r={...e,properties:{...e.properties||{}},required:Array.isArray(e.required)?[...e.required]:[]};const i=t&&"object"==typeof t?t:{},o=e=>{if(!e||"object"!=typeof e)return null;const t=e.properties&&Object.keys(e.properties);return t&&t.length?t[0]:Array.isArray(e.required)&&e.required.length?e.required[0]:null},l=[];if(r.if&&l.push({if:r.if,then:r.then,else:r.else,anchor:o(r.if)}),Array.isArray(r.allOf))for(const e of r.allOf)e&&"object"==typeof e&&e.if?l.push({if:e.if,then:e.then,else:e.else,anchor:o(e.if)}):e&&"object"==typeof e&&(e.properties||e.required)&&to(r,e);for(let e=0;e<8;e++){let e=!1;const t=JSON.stringify({p:r.properties,r:r.required});for(const e of l){const t=eo(i,e.if)?e.then:e.else;t&&to(r,s(t),e.anchor)}if(r.dependentSchemas)for(const[e,t]of Object.entries(r.dependentSchemas))Xi(i,e)&&to(r,s(t),e);if(r.dependentRequired)for(const[e,t]of Object.entries(r.dependentRequired))if(Xi(i,e)&&Array.isArray(t)){const e=new Set(r.required||[]);for(const n of t)e.add(n);r.required=Array.from(e)}if(JSON.stringify({p:r.properties,r:r.required})!==t&&(e=!0),!e)break}return r}function so(e){return!(!e||"object"!=typeof e)&&(!!(e.if||e.dependentSchemas||e.dependentRequired)||!!Array.isArray(e.allOf)&&e.allOf.some(e=>e&&"object"==typeof e&&(e.if||e.dependentSchemas)))}Ki.render=function(e,t,n,s,r,i){return Bs(),Zs("svg",{class:"sf-icon",width:n.size,height:n.size,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},["plus"===n.name?(Bs(),Zs(Ms,{key:0},[t[0]||(t[0]=tr("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1)),t[1]||(t[1]=tr("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1))],64)):"times"===n.name?(Bs(),Zs(Ms,{key:1},[t[2]||(t[2]=tr("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)),t[3]||(t[3]=tr("line",{x1:"6",y1:"18",x2:"18",y2:"6"},null,-1))],64)):"arrow-up"===n.name?(Bs(),Zs(Ms,{key:2},[t[4]||(t[4]=tr("line",{x1:"12",y1:"19",x2:"12",y2:"5"},null,-1)),t[5]||(t[5]=tr("polyline",{points:"5 12 12 5 19 12"},null,-1))],64)):"arrow-down"===n.name?(Bs(),Zs(Ms,{key:3},[t[6]||(t[6]=tr("line",{x1:"12",y1:"5",x2:"12",y2:"19"},null,-1)),t[7]||(t[7]=tr("polyline",{points:"19 12 12 19 5 12"},null,-1))],64)):"chevron-down"===n.name?(Bs(),Zs("polyline",Qi)):"chevron-up"===n.name?(Bs(),Zs("polyline",Gi)):"grip"===n.name?(Bs(),Zs(Ms,{key:6},[t[8]||(t[8]=ir('<circle cx="9" cy="7" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="7" r="1" fill="currentColor" stroke="none"></circle><circle cx="9" cy="12" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="12" r="1" fill="currentColor" stroke="none"></circle><circle cx="9" cy="17" r="1" fill="currentColor" stroke="none"></circle><circle cx="15" cy="17" r="1" fill="currentColor" stroke="none"></circle>',6))],64)):or("v-if",!0)],8,Zi)},Ki.__file="src/editors/SfIcon.vue";const ro=["xs","sm","md","lg","full"],io=["before","after","both"];function oo(e){return"string"==typeof e?{size:ro.includes(e)?e:null,break:null}:e&&"object"==typeof e&&!Array.isArray(e)?{size:ro.includes(e.size)?e.size:null,break:io.includes(e.break)?e.break:null}:{size:null,break:null}}const lo={xs:"sm",sm:"md"};function ao(e,t){return t._nullable&&lo[e]||e}function co(e,t){return ao(e.length<=8&&e.every(e=>String(e??"").length<=12)?"sm":"md",t)}function uo(e){if(!e||"object"!=typeof e)return"full";const t=function(e){if("relation"===e.type)return e.multiple?"lg":"md";if(e.oneOf&&e.discriminator)return"full";if(Fi(e.oneOf))return co(e.oneOf.map(e=>e.title??e.const),e);if("const"in e)return"hidden";if(e.enum&&1===e.enum.length&&"string"===e.type)return"hidden";if("object"===e.type||"array"===e.type)return"full";if(e.enum)return co(e.enum,e);if("boolean"===e.type)return ao("xs",e);if("number"===e.type||"integer"===e.type)return ao("xs",e);if("string"===e.type)return"date"===e.format?ao("sm",e):"date-time"===e.format?ao("md",e):"textarea"===e.format||e.maxLength>255?"full":e.maxLength>0&&e.maxLength<=40?ao("sm",e):"md";return"full"}(e);return"hidden"===t?"hidden":oo(e.layout).size||t}function ho(e,{resolveSchema:t,customEditors:n=[],basePath:s=[]}={}){const r=[];let i=!1;const o=s.length+1>12;for(const[l,a]of Object.entries(e||{})){const e=t?t(a):a,c=oo(e.layout),u=!o&&n.find(t=>t.match&&t.match(e,[...s,l]));let h;h=o?"md":u?c.size||oo(u.layout).size||"full":uo(e);const d=["sf-cell",`sf-cell-${h}`],p=!("boolean"!==e.type||u||o||e.enum||e.oneOf||"const"in e);let f=!1;"hidden"!==h&&(p&&d.push("sf-cell-bool"),f=i||"before"===c.break||"both"===c.break,i="after"===c.break||"both"===c.break),r.push({key:l,schema:e,classes:d.join(" "),breakBefore:f})}return r}var po={name:"ObjectEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=yl,this.$options.components.SfIcon=Ki},inject:{customEditors:{default:()=>()=>[]}},props:{schema:{type:Object,required:!0},modelValue:{default:()=>({})},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data:()=>({collapsed:!1,prunedStash:{}}),computed:{isRoot(){return 0===this.path.length},title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},effectiveSchema(){return so(this.schema)?no(this.schema,this.modelValue||{},this.form?.resolveSchema):this.schema},cells(){return ho(this.effectiveSchema.properties,{resolveSchema:this.form?.resolveSchema,customEditors:this.customEditors(),basePath:this.path})},summary(){const e=this.modelValue||{},t=[];for(const n of Object.keys(this.effectiveSchema.properties||{})){if(t.length>=3)break;const s=e[n];null!=s&&""!==s&&"object"!=typeof s&&t.push(String(s))}return t.join(" · ")}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",collapse(){this.collapsed=!0},expand(){this.collapsed=!1},onChildChange(e,t){const n={...this.modelValue||{},[e]:t};this.$emit("update:modelValue",this.pruneInactive(n))},pruneInactive(e){if(!so(this.schema))return e;const t=no(this.schema,e,this.form?.resolveSchema),n=new Set(Object.keys(t.properties||{}));let s=!1;const r={};for(const t of n)!(t in e)&&t in this.prunedStash&&(r[t]=this.prunedStash[t],delete this.prunedStash[t],s=!0);for(const t of Object.keys(e))n.has(t)?r[t]=e[t]:(this.prunedStash[t]=e[t],s=!0);return s?r:e}}};const fo={key:0,class:"sf-object sf-object-root"},mo={class:"sf-object-fields"},go={key:0,class:"sf-flow-break","aria-hidden":"true"},yo={class:"sf-object-title"},vo=["aria-label"],_o={class:"sf-object-title-text"},bo={key:0,class:"sf-object-summary"},So={class:"sf-object-fields"},xo={key:0,class:"sf-flow-break","aria-hidden":"true"};po.render=function(e,t,n,s,r,i){const o=In("SchemaEditor"),l=In("SfIcon");return i.isRoot?(Bs(),Zs("div",fo,[tr("div",mo,[(Bs(!0),Zs(Ms,null,Fn(i.cells,e=>(Bs(),Zs(Ms,{key:e.key},[e.breakBefore?(Bs(),Zs("div",go)):or("v-if",!0),tr("div",{class:H(e.classes)},[nr(o,{schema:e.schema,"model-value":(n.modelValue||{})[e.key],path:[...n.path,e.key],form:n.form,"onUpdate:modelValue":t=>i.onChildChange(e.key,t)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])],2)],64))),128))])])):(Bs(),Zs("fieldset",{key:1,class:H(["sf-object",{"sf-object-collapsed":r.collapsed}])},[tr("legend",yo,[tr("button",{type:"button",class:"sf-collapse-btn","aria-label":r.collapsed?"Expand":"Collapse",onClick:t[0]||(t[0]=e=>r.collapsed=!r.collapsed)},[nr(l,{name:r.collapsed?"chevron-down":"chevron-up",size:12},null,8,["name"])],8,vo),tr("span",_o,G(i.title),1),r.collapsed&&i.summary?(Bs(),Zs("span",bo,G(i.summary),1)):or("v-if",!0)]),Xt(tr("div",So,[(Bs(!0),Zs(Ms,null,Fn(i.cells,e=>(Bs(),Zs(Ms,{key:e.key},[e.breakBefore?(Bs(),Zs("div",xo)):or("v-if",!0),tr("div",{class:H(e.classes)},[nr(o,{schema:e.schema,"model-value":(n.modelValue||{})[e.key],path:[...n.path,e.key],form:n.form,"onUpdate:modelValue":t=>i.onChildChange(e.key,t)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])],2)],64))),128))],512),[[Tr,!r.collapsed]])],2))},po.__file="src/editors/ObjectEditor.vue";let ko=0;var Eo={name:"ArrayEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=yl,this.$options.components.SfIcon=Ki},props:{schema:{type:Object,required:!0},modelValue:{default:()=>[]},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){return{items:(Array.isArray(this.modelValue)?this.modelValue:[]).map(e=>({_key:ko++,value:e})),dragSourceIndex:null,dragOverIndex:null,allCollapsed:!1}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},itemSchema(){return this.form.resolveSchema(this.schema.items||{})},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",addItem(){const e=Mi(this.itemSchema);this.items.push({_key:ko++,value:e}),this.emitValue()},removeItem(e){this.items.splice(e,1),this.emitValue()},moveItem(e,t){const n=e+t;if(n<0||n>=this.items.length)return;const s=this.items[e];this.items.splice(e,1,this.items[n]),this.items.splice(n,1,s),this.emitValue()},onItemChange(e,t){this.items[e].value=t,this.emitValue()},onDragStart(e,t){this.dragSourceIndex=e,t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",String(e))},onDragOver(e){null!==this.dragSourceIndex&&e!==this.dragSourceIndex&&(this.dragOverIndex=e)},onDragLeave(e){this.dragOverIndex===e&&(this.dragOverIndex=null)},onDrop(e){if(null===this.dragSourceIndex||this.dragSourceIndex===e)return;const t=this.items.splice(this.dragSourceIndex,1)[0];this.items.splice(e,0,t),this.dragSourceIndex=null,this.dragOverIndex=null,this.emitValue()},onDragEnd(){this.dragSourceIndex=null,this.dragOverIndex=null},toggleCollapseAll(){this.allCollapsed=!this.allCollapsed;const e=this.$refs.itemEditors;if(!e)return;const t=Array.isArray(e)?e:[e];this.allCollapsed?t.forEach(e=>e?.collapseAll?.()):t.forEach(e=>e?.expandAll?.())},emitValue(){this.$emit("update:modelValue",this.items.map(e=>e.value))}}};const Vo={class:"sf-array-header"},wo={class:"sf-label"},Co={class:"sf-array-count"},Ao=["title"],Oo={class:"sf-array-items"},jo=["onDragstart","onDragover","onDragleave","onDrop"],No={class:"sf-array-item-header"},Po={class:"sf-array-item-left"},$o={class:"sf-drag-handle",title:"Drag to reorder"},Io={class:"sf-array-item-index"},Ro={class:"sf-array-item-actions"},Do=["onClick"],To=["onClick"],Fo=["onClick"],Mo=["onDrop"],qo={key:0,class:"errorlist"};Eo.render=function(e,t,n,s,r,i){const o=In("SfIcon"),l=In("SchemaEditor");return Bs(),Zs("div",{class:H(["sf-array",{errors:i.fieldErrors.length}])},[tr("div",Vo,[tr("span",wo,G(i.title),1),tr("span",Co,G(r.items.length),1),tr("button",{type:"button",class:"sf-btn sf-btn-add",onClick:t[0]||(t[0]=e=>i.addItem())},[nr(o,{name:"plus"}),t[4]||(t[4]=rr(" Add ",-1))]),r.items.length?(Bs(),Zs("span",{key:0,class:"sf-array-collapse-toggle",title:r.allCollapsed?"Expand all":"Collapse all",onClick:t[1]||(t[1]=(...e)=>i.toggleCollapseAll&&i.toggleCollapseAll(...e))},[nr(o,{name:r.allCollapsed?"chevron-down":"chevron-up"},null,8,["name"])],8,Ao)):or("v-if",!0)]),tr("div",Oo,[(Bs(!0),Zs(Ms,null,Fn(r.items,(e,s)=>(Bs(),Zs("div",{key:e._key,class:H(["sf-array-item",{"sf-drag-over":r.dragOverIndex===s,"sf-dragging":r.dragSourceIndex===s}]),draggable:"true",onDragstart:e=>i.onDragStart(s,e),onDragover:pi(e=>i.onDragOver(s),["prevent"]),onDragleave:e=>i.onDragLeave(s),onDrop:pi(e=>i.onDrop(s),["prevent"]),onDragend:t[3]||(t[3]=(...e)=>i.onDragEnd&&i.onDragEnd(...e))},[tr("div",No,[tr("div",Po,[tr("span",$o,[nr(o,{name:"grip"})]),tr("span",Io,"#"+G(s+1),1)]),tr("div",Ro,[s>0?(Bs(),Zs("button",{key:0,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,-1)},[nr(o,{name:"arrow-up"})],8,Do)):or("v-if",!0),s<r.items.length-1?(Bs(),Zs("button",{key:1,type:"button",class:"sf-btn sf-btn-sm",onClick:e=>i.moveItem(s,1)},[nr(o,{name:"arrow-down"})],8,To)):or("v-if",!0),tr("button",{type:"button",class:"sf-btn sf-btn-sm sf-btn-danger",onClick:e=>i.removeItem(s)},[nr(o,{name:"times"})],8,Fo)])]),tr("div",{class:"sf-array-item-body",onDragover:t[2]||(t[2]=pi(()=>{},["prevent"])),onDrop:pi(e=>i.onDrop(s),["prevent"])},[nr(l,{ref_for:!0,ref:"itemEditors",schema:i.itemSchema,"model-value":e.value,path:[...n.path,String(s)],form:n.form,"onUpdate:modelValue":e=>i.onItemChange(s,e)},null,8,["schema","model-value","path","form","onUpdate:modelValue"])],40,Mo)],42,jo))),128))]),i.fieldErrors.length?(Bs(),Zs("ul",qo,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},Eo.__file="src/editors/ArrayEditor.vue";var Uo={name:"NullableEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=yl,this.$options.components.SfIcon=Ki},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{isNull:null===this.modelValue||void 0===this.modelValue}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},innerSchema(){const e={...this.schema};return delete e._nullable,e},toggleClass(){return this.isNull?"sf-btn sf-btn-sm sf-btn-add":"sf-btn sf-btn-sm sf-btn-danger"},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){this.isNull=null==e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",toggle(){this.isNull?(this.isNull=!1,this.$emit("update:modelValue",Mi(this.innerSchema))):(this.isNull=!0,this.$emit("update:modelValue",null))}}};const Lo={class:"sf-nullable-header"},zo={class:"sf-nullable-body"},Wo={key:0,class:"errorlist"};Uo.render=function(e,t,n,s,r,i){const o=In("SfIcon"),l=In("SchemaEditor");return Bs(),Zs("div",{class:H(["sf-nullable",{errors:i.fieldErrors.length}])},[tr("div",Lo,[tr("span",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),tr("button",{type:"button",class:H(i.toggleClass),onClick:t[0]||(t[0]=(...e)=>i.toggle&&i.toggle(...e))},[r.isNull?(Bs(),Zs(Ms,{key:0},[nr(o,{name:"plus"}),t[2]||(t[2]=rr(" Add ",-1))],64)):(Bs(),Zs(Ms,{key:1},[nr(o,{name:"times"}),t[3]||(t[3]=rr(" Remove ",-1))],64))],2)]),tr("div",zo,[r.isNull?or("v-if",!0):(Bs(),Qs(l,{key:0,schema:i.innerSchema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]))]),i.fieldErrors.length?(Bs(),Zs("ul",Wo,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},Uo.__file="src/editors/NullableEditor.vue";var Bo={name:"UnionEditor",beforeCreate(){this.$options.components||(this.$options.components={}),this.$options.components.SchemaEditor=yl},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],data(){const e=this.schema.discriminator.propertyName,t=this.schema.discriminator.mapping;return{discriminatorProp:e,mapping:t,currentType:this.modelValue?this.modelValue[e]:Object.keys(t)[0]}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},typeKeys(){return Object.keys(this.mapping)},currentSchema(){const e=this.mapping[this.currentType];return this.form.resolveSchema({$ref:e})},innerValue(){if(this.modelValue&&this.modelValue[this.discriminatorProp]===this.currentType)return this.modelValue;const e=Mi(this.currentSchema);return e[this.discriminatorProp]=this.currentType,e}},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",onTypeChange(e){this.currentType=e.target.value;const t=Mi(this.currentSchema);t[this.discriminatorProp]=this.currentType,this.$emit("update:modelValue",t)},onInnerChange(e){e&&(e[this.discriminatorProp]=this.currentType),this.$emit("update:modelValue",e)}}};const Ho={class:"sf-union"},Jo={class:"sf-field"},Ko={class:"sf-label"},Zo=["value"],Qo=["value"],Go={class:"sf-union-body"};Bo.render=function(e,t,n,s,r,i){const o=In("SchemaEditor");return Bs(),Zs("div",Ho,[tr("div",Jo,[tr("span",Ko,G(i.title),1),tr("select",{class:"sf-input sf-select",value:r.currentType,onChange:t[0]||(t[0]=(...e)=>i.onTypeChange&&i.onTypeChange(...e))},[(Bs(!0),Zs(Ms,null,Fn(i.typeKeys,e=>(Bs(),Zs("option",{key:e,value:e},G(i.humanize(e)),9,Qo))),128))],40,Zo)]),tr("div",Go,[(Bs(),Qs(o,{key:r.currentType,schema:i.currentSchema,"model-value":i.innerValue,path:n.path,form:n.form,"onUpdate:modelValue":i.onInnerChange},null,8,["schema","model-value","path","form","onUpdate:modelValue"]))])])},Bo.__file="src/editors/UnionEditor.vue";var Xo={name:"RelationEditor",components:{SfIcon:Ki},inject:{language:{from:"language",default:()=>()=>""}},props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){const e=!!this.schema.multiple,t=this.modelValue;let n;return n=e?Array.isArray(t)?[...t]:[]:t?[t]:[],{isMultiple:e,allowClear:this.schema.options?.select2?.allowClear??!0,placeholder:this.schema.options?.select2?.placeholder||"Search...",searchUrl:this.schema.options?.select2?.ajax?.url||"",selected:n,dropdownVisible:!1,searchResults:[],currentPage:1,hasMore:!1,loading:!1,highlightIndex:-1,searchQuery:""}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},showSearch(){return!(!this.isMultiple&&this.selected.length>0)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]},filteredResults(){const e=new Set(this.selected.map(e=>this.itemKey(e)));return this.searchResults.filter(t=>!e.has(this.itemKey(t)))}},created(){this._doSearch=function(e,t){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>e.apply(this,s),t)}}(e=>this.fetchResults(e,1),300),this._onDocClick=e=>{this.$refs.root&&!this.$refs.root.contains(e.target)&&this.closeDropdown()}},mounted(){document.addEventListener("click",this._onDocClick)},beforeUnmount(){document.removeEventListener("click",this._onDocClick)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",getDisplayName(e){if(!e)return"";for(const t of["__str__","name","title","label"])if(e[t])return String(e[t]);return`#${e.id||"?"}`},itemKey:e=>`${e.id}-${e.model||""}`,onSearchInput(){this._doSearch(this.searchQuery)},openDropdown(){this.dropdownVisible||(this.dropdownVisible=!0,this.fetchResults(this.searchQuery,1))},closeDropdown(){this.dropdownVisible=!1,this.highlightIndex=-1},async fetchResults(e,t){if(this.searchUrl){this.loading=!0,this.currentPage=t;try{const n=new URL(this.searchUrl,window.location.origin);n.searchParams.set("_q",e||""),n.searchParams.set("page",String(t));const s="function"==typeof this.language?this.language():this.language;s&&n.searchParams.set("_lang",s);const r=await fetch(n,{credentials:"same-origin"});if(!r.ok)return;const i=await r.json();this.searchResults=1===t?i.items||[]:this.searchResults.concat(i.items||[]),this.hasMore=i.more}finally{this.loading=!1}}},handleKeyDown(e){this.filteredResults.length&&("ArrowDown"===e.key?(e.preventDefault(),this.highlightIndex=Math.min(this.highlightIndex+1,this.filteredResults.length-1)):"ArrowUp"===e.key?(e.preventDefault(),this.highlightIndex=Math.max(this.highlightIndex-1,0)):"Enter"===e.key?(e.preventDefault(),this.highlightIndex>=0&&this.highlightIndex<this.filteredResults.length&&this.selectItem(this.filteredResults[this.highlightIndex])):"Escape"===e.key&&this.closeDropdown())},selectItem(e){this.isMultiple?this.selected.push(e):this.selected=[e],this.searchQuery="",this.highlightIndex=-1,this.closeDropdown(),this.emitValue()},removeItem(e){this.selected=this.selected.filter(t=>!(t.id===e.id&&(t.model||"")===(e.model||""))),this.emitValue()},emitValue(){this.isMultiple?this.$emit("update:modelValue",[...this.selected]):this.$emit("update:modelValue",this.selected[0]||null)}}};const Yo={class:"sf-relation-wrapper"},el={key:0,class:"sf-relation-selected"},tl={class:"sf-relation-tag-text"},nl=["onClick"],sl={class:"sf-relation-search"},rl=["placeholder"],il={class:"sf-relation-dropdown"},ol={key:0,class:"sf-relation-dropdown-empty"},ll=["onClick"],al={key:0,class:"errorlist"};Xo.render=function(e,t,n,s,r,i){const o=In("SfIcon");return Bs(),Zs("div",{class:H(["sf-field sf-relation",{errors:i.fieldErrors.length,"sf-relation-multiple":r.isMultiple,"sf-relation-open":r.dropdownVisible}]),ref:"root"},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),tr("div",Yo,[or(" Selected items "),r.selected.length?(Bs(),Zs("div",el,[(Bs(!0),Zs(Ms,null,Fn(r.selected,e=>(Bs(),Zs("div",{key:i.itemKey(e),class:"sf-relation-tag"},[tr("span",tl,G(i.getDisplayName(e)),1),r.isMultiple||r.allowClear?(Bs(),Zs("button",{key:0,type:"button",class:"sf-relation-tag-remove",onClick:pi(t=>i.removeItem(e),["stop"])},[nr(o,{name:"times"})],8,nl)):or("v-if",!0)]))),128))])):or("v-if",!0),or(" Search box "),Xt(tr("div",sl,[Xt(tr("input",{ref:"searchInput",type:"text",class:"sf-input sf-relation-input",placeholder:r.placeholder,autocomplete:"off","onUpdate:modelValue":t[0]||(t[0]=e=>r.searchQuery=e),onInput:t[1]||(t[1]=(...e)=>i.onSearchInput&&i.onSearchInput(...e)),onFocus:t[2]||(t[2]=(...e)=>i.openDropdown&&i.openDropdown(...e)),onKeydown:t[3]||(t[3]=(...e)=>i.handleKeyDown&&i.handleKeyDown(...e))},null,40,rl),[[ui,r.searchQuery]]),or(" Dropdown "),Xt(tr("div",il,[0!==i.filteredResults.length||r.loading?or("v-if",!0):(Bs(),Zs("div",ol," No results found ")),(Bs(!0),Zs(Ms,null,Fn(i.filteredResults,(e,t)=>(Bs(),Zs("div",{key:i.itemKey(e),class:H(["sf-relation-dropdown-item",{highlighted:t===r.highlightIndex}]),onClick:t=>i.selectItem(e)},G(i.getDisplayName(e)),11,ll))),128)),r.hasMore?(Bs(),Zs("div",{key:1,class:"sf-relation-dropdown-more",onClick:t[4]||(t[4]=e=>i.fetchResults(r.searchQuery,r.currentPage+1))}," Load more... ")):or("v-if",!0)],512),[[Tr,r.dropdownVisible]])],512),[[Tr,i.showSearch]])]),i.fieldErrors.length?(Bs(),Zs("ul",al,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},Xo.__file="src/editors/RelationEditor.vue";const cl="https://cdnjs.cloudflare.com/ajax/libs/ace/1.37.5/ace.min.js";var ul={name:"JsonEditor",props:{schema:{type:Object,required:!0},modelValue:{default:null},path:{type:Array,default:()=>[]},form:{type:Object,default:null}},emits:["update:modelValue"],data(){return{rawValue:null!=this.modelValue?JSON.stringify(this.modelValue,null,2):"{}",ready:!1,hasErrors:!1,loadError:null,_editor:null,_silent:!1}},computed:{title(){return this.schema.title||this.humanize(this.path[this.path.length-1])||""},isRequired(){if(this.path.length<2||!this.form)return!1;const e=this.path.slice(0,-1),t=this.path[this.path.length-1],n=this.form.getSchemaAtPath(e);return n&&Array.isArray(n.required)&&n.required.includes(t)},fieldErrors(){return this.form&&this.form.getErrorsForPath?this.form.getErrorsForPath(this.path):[]}},watch:{modelValue(e){if(this._silent)return;const t=null!=e?JSON.stringify(e,null,2):"{}";try{JSON.stringify(JSON.parse(this.rawValue))!==JSON.stringify(e)&&(this.rawValue=t,this._editor&&(this._silent=!0,this._editor.setValue(t,-1),this._silent=!1))}catch{}}},async mounted(){try{const e=await(window.ace?Promise.resolve(window.ace):new Promise((e,t)=>{const n=document.querySelector(`script[src="${cl}"]`);if(n)return n.addEventListener("load",()=>e(window.ace)),void n.addEventListener("error",t);const s=document.createElement("script");s.src=cl,s.async=!0,s.onload=()=>e(window.ace),s.onerror=()=>t(new Error("Failed to load Ace Editor")),document.head.appendChild(s)})),t=this.$refs.aceContainer;if(!t)return;const n=e.edit(t);n.setTheme(this._isDark()?"ace/theme/one_dark":"ace/theme/chrome"),n.session.setMode("ace/mode/json"),n.session.setTabSize(2),n.session.setUseSoftTabs(!0),n.setShowPrintMargin(!1),n.setOption("minLines",5),n.setOption("maxLines",20),n.setValue(this.rawValue,-1),n.$blockScrolling=1/0,n.session.on("change",()=>{if(this._silent)return;const e=n.getValue();this.rawValue=e;try{const t=JSON.parse(e);this.hasErrors=!1,this._silent=!0,this.$emit("update:modelValue",t),this._silent=!1}catch{this.hasErrors=!0}}),n.session.on("changeAnnotation",()=>{const e=n.session.getAnnotations();this.hasErrors=e.some(e=>"error"===e.type)}),this._editor=n,this.ready=!0}catch(e){this.loadError=`Editor unavailable: ${e.message}`}},beforeUnmount(){this._editor&&(this._editor.destroy(),this._editor=null)},methods:{humanize:e=>e?e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase()):"",_isDark:()=>"dark"===document.documentElement.dataset.colorScheme||window.matchMedia?.("(prefers-color-scheme: dark)").matches,format(){if(this._editor)try{const e=JSON.stringify(JSON.parse(this._editor.getValue()),null,2);this._silent=!0,this._editor.setValue(e,-1),this._silent=!1,this.rawValue=e}catch{}},onFallbackInput(e){this.rawValue=e.target.value;try{this.$emit("update:modelValue",JSON.parse(this.rawValue))}catch{}}}};const hl={class:"sf-json-toolbar"},dl={key:0,class:"sf-json-error-msg"},pl={ref:"aceContainer",class:"sf-json-ace-container"},fl=["value"],ml={key:0,class:"errorlist"};ul.render=function(e,t,n,s,r,i){return Bs(),Zs("div",{class:H(["sf-field sf-field-json",{errors:i.fieldErrors.length}])},[tr("span",{class:H(["sf-label",{required:i.isRequired}])},G(i.title),3),tr("div",{class:H(["sf-json-editor",{"sf-json-error":r.hasErrors}])},[tr("div",hl,[r.loadError?(Bs(),Zs("span",dl,G(r.loadError),1)):or("v-if",!0),r.ready?(Bs(),Zs("button",{key:1,type:"button",class:"sf-btn sf-btn-sm sf-json-format-btn",onClick:t[0]||(t[0]=(...e)=>i.format&&i.format(...e))}," Format ")):or("v-if",!0)]),tr("div",pl,null,512),r.ready?or("v-if",!0):(Bs(),Zs("textarea",{key:0,class:"sf-input sf-textarea sf-json-textarea-fallback",value:r.rawValue,spellcheck:"false",onInput:t[1]||(t[1]=(...e)=>i.onFallbackInput&&i.onFallbackInput(...e))},null,40,fl))],2),i.fieldErrors.length?(Bs(),Zs("ul",ml,[(Bs(!0),Zs(Ms,null,Fn(i.fieldErrors,(e,t)=>(Bs(),Zs("li",{key:t},G(e),1))),128))])):or("v-if",!0)],2)},ul.__file="src/editors/JsonEditor.vue";var gl={name:"WebComponentWrapper",props:{tagName:{type:String,required:!0},schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=St(null);function s(){const t=n.value;t&&(t.schema=e.schema,t.modelValue=e.modelValue,t.path=e.path,t.form=e.form)}function r(e){const n=null!=e.detail?Array.isArray(e.detail)?e.detail[0]:e.detail:void 0;t("update:modelValue",n)}return En(()=>{s();const e=n.value;e&&(e.addEventListener("update:model-value",r),e.addEventListener("change",r))}),Cn(()=>{const e=n.value;e&&(e.removeEventListener("update:model-value",r),e.removeEventListener("change",r))}),nn(()=>[e.schema,e.modelValue,e.path,e.form],s,{deep:!0}),()=>function(e,t,n){try{Js(-1);const s=arguments.length;return 2===s?b(t)&&!p(t)?Gs(t)?nr(e,null,[t]):nr(e,t):nr(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):3===s&&Gs(n)&&(n=[n]),nr(e,t,n))}finally{Js(1)}}(e.tagName,{ref:n})},__file:"src/editors/WebComponentWrapper.vue"},yl={name:"SchemaEditor",components:{StringEditor:t,NumberEditor:ki,BooleanEditor:Ci,DateEditor:$i,SelectEditor:qi,HiddenEditor:Hi,ObjectEditor:po,ArrayEditor:Eo,NullableEditor:Uo,UnionEditor:Bo,RelationEditor:Xo,JsonEditor:ul,WebComponentWrapper:gl},inject:{customEditors:{default:()=>()=>[]}},props:{schema:{type:Object,required:!0},modelValue:{default:void 0},path:{type:Array,default:()=>[]},form:{type:Object,required:!0}},emits:["update:modelValue"],methods:{collapseAll(){const e=this.$refs.editor;e?.collapse&&e.collapse(),e?.collapseAll&&e.collapseAll()},expandAll(){const e=this.$refs.editor;e?.expand&&e.expand(),e?.expandAll&&e.expandAll()}},computed:{isWebComponent(){const e=this.editorComponent;return"string"==typeof e&&e.includes("-")},editorComponent(){const e=this.schema;if(this.path.length>12)return"StringEditor";const t=this.customEditors();for(const n of t)if(n.match(e,this.path))return n.component;return"relation"===e.type?"RelationEditor":e.oneOf&&e.discriminator?"UnionEditor":Fi(e.oneOf)?"SelectEditor":"const"in e||e.enum&&1===e.enum.length&&"string"===e.type?"HiddenEditor":!e._nullable||"object"!==e.type&&"array"!==e.type?"object"===e.type&&e.properties?"ObjectEditor":"object"===e.type?"JsonEditor":"array"===e.type?"ArrayEditor":e.enum?"SelectEditor":"boolean"===e.type?"BooleanEditor":"number"===e.type||"integer"===e.type?"NumberEditor":"string"!==e.type||"date"!==e.format&&"date-time"!==e.format?"StringEditor":"DateEditor":"NullableEditor"}}};yl.render=function(e,t,n,s,r,i){const o=In("WebComponentWrapper");return i.isWebComponent?(Bs(),Qs(o,{key:0,ref:"editor","tag-name":i.editorComponent,schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))},null,8,["tag-name","schema","model-value","path","form"])):(Bs(),Qs((l=i.editorComponent,v(l)?Dn($n,l,!1)||l:l||Rn),{key:1,ref:"editor",schema:n.schema,"model-value":n.modelValue,path:n.path,form:n.form,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},null,8,["schema","model-value","path","form"]));var l},yl.__file="src/editors/SchemaEditor.vue";var vl={name:"SchemaForm",components:{SchemaEditor:yl},props:{schema:{type:[Object,String],default:()=>({})},initialData:{default:void 0},errors:{type:Object,default:()=>({})},customEditors:{type:Array,default:()=>[]},language:{type:String,default:""}},emits:["change"],expose:["getValue"],provide(){return{customEditors:()=>this.customEditors,language:()=>this.language}},data(){const e="string"==typeof this.schema?JSON.parse(this.schema):this.schema;return{rootSchema:e,defs:e.$defs||e.definitions||{},currentValue:null!=this.initialData?Ti(this.initialData):void 0}},computed:{resolvedSchema(){return this.resolveSchema(this.rootSchema)},formApi(){return{resolveSchema:e=>this.resolveSchema(e),getSchemaAtPath:e=>this.getSchemaAtPath(e),getEffectiveSchemaAtPath:e=>this.getEffectiveSchemaAtPath(e),getErrorsForPath:e=>this.getErrorsForPath(e)}}},watch:{schema:{handler(e){const t="string"==typeof e?JSON.parse(e):e;this.rootSchema=t,this.defs=t.$defs||t.definitions||{}},deep:!0},initialData:{handler(e){this.currentValue=null!=e?Ti(e):void 0},deep:!0}},methods:{resolveSchema(e){if(!e)return{type:"string"};if(e.$ref){const t=e.$ref.replace(/^#\/\$defs\//,"").replace(/^#\/definitions\//,""),n=this.defs[t];if(!n)return{type:"string",title:t};const{$ref:s,...r}=e;return{...this.resolveSchema(n),...r}}if(e.anyOf){const t=e.anyOf.filter(e=>"null"!==e.type);if(e.anyOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]),{anyOf:s,oneOf:r,...i}=e,o={...n,...i,_nullable:!0};return"default"in e||(o.default=null),Fi(r)&&(o.oneOf=r),o}if(t.length>=1)return this.resolveSchema(t[0])}if(e.oneOf&&e.discriminator)return e;if(Fi(e.oneOf))return e;if(e.oneOf){const t=e.oneOf.filter(e=>"null"!==e.type);if(e.oneOf.some(e=>"null"===e.type)&&1===t.length){const n=this.resolveSchema(t[0]),{anyOf:s,oneOf:r,...i}=e,o={...n,...i,_nullable:!0};return"default"in e||(o.default=null),o}if(t.length>=1)return this.resolveSchema(t[0])}return e},getSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema);for(const n of e){if(!t)return null;if(t.properties&&t.properties[n])t=this.resolveSchema(t.properties[n]);else{if(!t.items)return null;t=this.resolveSchema(t.items)}}return t},getEffectiveSchemaAtPath(e){let t=this.resolveSchema(this.rootSchema),n=this.currentValue;for(const s of e){if(!t)return null;if((t.properties||t.if||t.allOf||t.dependentSchemas)&&so(t)&&(t=no(t,n||{},e=>this.resolveSchema(e))),t.properties&&void 0!==t.properties[s])t=this.resolveSchema(t.properties[s]),n=null!=n?n[s]:void 0;else{if(!t.items)return null;t=this.resolveSchema(t.items),n=Array.isArray(n)?n[s]:void 0}}return t&&so(t)&&(t=no(t,n||{})),t},onValueChange(e){this.currentValue=e,this.$emit("change",e)},getErrorsForPath(e){if(!this.errors||"object"!=typeof this.errors)return[];const t=e.join(".");return this.errors[t]||[]},getValue(){return this.currentValue}}};const _l={class:"structured-field-editor"};vl.render=function(e,t,n,s,r,i){const o=In("SchemaEditor");return Bs(),Zs("div",_l,[i.resolvedSchema?(Bs(),Qs(o,{key:0,schema:i.resolvedSchema,"model-value":r.currentValue,path:[],form:i.formApi,"onUpdate:modelValue":i.onValueChange},null,8,["schema","model-value","form","onUpdate:modelValue"])):or("v-if",!0)])},vl.__file="src/SchemaForm.vue";class bl extends HTMLElement{constructor(){super(),this._schema={},this._modelValue=void 0,this._path=[],this._form=null,this._connected=!1}get schema(){return this._schema}set schema(e){this._schema=e,this._connected&&this.update()}get modelValue(){return this._modelValue}set modelValue(e){this._modelValue=e,this._connected&&this.update()}get path(){return this._path}set path(e){this._path=e,this._connected&&this.update()}get form(){return this._form}set form(e){this._form=e,this._connected&&this.update()}connectedCallback(){this._connected=!0,this.render()}disconnectedCallback(){this._connected=!1}emitChange(e){this.dispatchEvent(new CustomEvent("change",{detail:e}))}getErrors(){return this._form?.getErrorsForPath?.(this._path)??[]}render(){}update(){}}const Sl=function(e,t,n){let s=function(e,t){return y(e)?(()=>c({name:e.name},t,{setup:e}))():e}(e,t);E(s)&&(s=c({},s,t));class r extends ri{constructor(e){super(s,e,n)}}return r.def=s,r}({...vl,shadowRoot:!1});return e.ArrayEditor=Eo,e.BaseEditorElement=bl,e.BooleanEditor=Ci,e.DateEditor=$i,e.HiddenEditor=Hi,e.NullableEditor=Uo,e.NumberEditor=ki,e.ObjectEditor=po,e.RelationEditor=Xo,e.SchemaEditor=yl,e.SchemaForm=vl,e.SchemaFormElement=Sl,e.SelectEditor=qi,e.StringEditor=t,e.UnionEditor=Bo,e.WebComponentWrapper=gl,e.applyConditionals=no,e.fieldSize=uo,e.hasConditionals=so,e.layoutCells=ho,e.matchesSchema=eo,e.normalizeLayoutHint=oo,e.registerCustomElement=function(e="schema-form"){customElements.get(e)||customElements.define(e,Sl)},e}({});
23
23
  //# sourceMappingURL=structured-widget-editor.js.map