relaton-cli 3.0.0 → 3.0.2
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.
- checksums.yaml +4 -4
- data/CLAUDE.md +14 -0
- data/Gemfile +19 -4
- data/frontend/dist/app.iife.js +1 -1
- data/lib/relaton/cli/index_site_generator.rb +140 -8
- data/relaton-cli.gemspec +3 -4
- metadata +14 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5124965fc2609067b6d048a31e07f34d331d905c21e63a80868308cadefaea36
|
|
4
|
+
data.tar.gz: 82e5b782b4bc99c48f712d345eeb9c79ee813954ac0cc359bca1625c3c6671c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 455a9cd62c95fea7a02c5a20b23771b748e81c76f01fe42fb426dcc1bee2fe4726f78a832ee74eb69764956852545638895aa5954a7311081cd86dcfd5c00be5
|
|
7
|
+
data.tar.gz: ba75fbe719266b0c2816d8fcdbd4cfa56e5ab96d526292bd610b51089d53097ee3a0f140c1cb2e73cc66ee46d5388bcd2b0e72cd0e3b73406e9c6fd91d23851e
|
data/CLAUDE.md
CHANGED
|
@@ -204,6 +204,20 @@ way. Four decisions, all settled deliberately — don't re-derive them:
|
|
|
204
204
|
`add` uses its hash **verbatim**, so the site's row is byte-identical to the
|
|
205
205
|
repo's. Only a row neither path resolves is dropped, counted in
|
|
206
206
|
`skipped_count`, and warned about.
|
|
207
|
+
**A committed row also wins when it only adds an edition**
|
|
208
|
+
(`MachineIndex#refine`): when its hash equals the parse's plus keys in
|
|
209
|
+
`REFINABLE_KEYS` (`version`, `edition`, `volume`) — the components a printed
|
|
210
|
+
docid omits by design. An IHO record prints `B-12` and keeps its edition in
|
|
211
|
+
`edition:`; an ECMA one prints `ECMA-262` with no ` ed<N>`. Without this the
|
|
212
|
+
published Pages indexes (2026-10-29) carried no IHO `version` (0 of 325 rows)
|
|
213
|
+
and no ECMA `edition` (0 of 804; the committed index has 740), so every
|
|
214
|
+
edition-qualified reference answered not-found (relaton-data-iho#20). Only
|
|
215
|
+
the hash is taken; the parse still gives the rendered spellings, so a docid
|
|
216
|
+
alias `B-12` stays deduplicated against the canonical `IHO B-12`. **Don't
|
|
217
|
+
widen this to pubid `===`**: it reads an omitted part, co-publisher or
|
|
218
|
+
sub-registry as a wildcard (`ISO 1000 === ISO/IEC 1000`, `IANA foo ===
|
|
219
|
+
IANA foo/bar`), `committed_index` keeps only a file's *first* row, and the
|
|
220
|
+
extra `from_hash` per row doubled the build time.
|
|
207
221
|
|
|
208
222
|
**The monolith's hand-rolled YAML writer must preserve type, not just text.**
|
|
209
223
|
`write_monolith` avoids Psych (40 min on 177k rows), so `yaml_nested`/`yaml_scalar`
|
data/Gemfile
CHANGED
|
@@ -6,6 +6,20 @@ gemspec
|
|
|
6
6
|
# The single combined `relaton` gem lives at the repo root.
|
|
7
7
|
gem "relaton", path: "../.."
|
|
8
8
|
|
|
9
|
+
# parsanol 1.3.111 is the trivia-exempt release (parsanol#355): the
|
|
10
|
+
# emission-2 artifacts (pubid#614) parse parameter-shaped under it, so
|
|
11
|
+
# the pin rides it; the root gemspec floor carries the same story.
|
|
12
|
+
|
|
13
|
+
# The pubid 2.0.0 FINAL gem still ships emission-1 artifacts - under
|
|
14
|
+
# 1.3.111 its parses break exactly as parsanol#352 describes. Both
|
|
15
|
+
# gemspecs floor pubid at 2.0.1, the first final release without that
|
|
16
|
+
# defect ("Unknown parameter type: colon" on a part+date docid).
|
|
17
|
+
#
|
|
18
|
+
# TEMP: ride pubid main like the root bundle (pubid#620, relaton#49):
|
|
19
|
+
# #620 merged after the v2.0.1 tag. Return to a released pin with the
|
|
20
|
+
# root Gemfile.
|
|
21
|
+
gem "pubid", git: "https://github.com/metanorma/pubid.git", branch: "main"
|
|
22
|
+
|
|
9
23
|
# https://github.com/rails/rails/issues/55886
|
|
10
24
|
# add openssl as an explicit gem to fix SSL verification issues in GHA.
|
|
11
25
|
# gem "openssl"
|
|
@@ -29,7 +43,8 @@ gem "moxml", ">= 0.5.113" # lutaml/moxml#336: the formattedref add_child TypeErr
|
|
|
29
43
|
gem "simplecov"
|
|
30
44
|
gem "vcr"
|
|
31
45
|
gem "webmock"
|
|
32
|
-
# leptris 1.9.
|
|
33
|
-
#
|
|
34
|
-
# re-run accompanies this bump.
|
|
35
|
-
gem "leptris", "1.9.
|
|
46
|
+
# leptris 1.9.386.0: the floor moxml's adapter names (older bindings load
|
|
47
|
+
# unusable and every XML path silently falls back to nokogiri), pinned to
|
|
48
|
+
# match the relaton root bundle — the battery re-run accompanies this bump.
|
|
49
|
+
gem "leptris", "1.9.391.0"
|
|
50
|
+
|
data/frontend/dist/app.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}var t,n={},s=[],r=()=>{},l=()=>!1,o=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),i=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>"[object Map]"===w(e),h=e=>"[object Set]"===w(e),v=e=>"[object Date]"===w(e),m=e=>"function"==typeof e,g=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,x=e=>(b(e)||m(e))&&m(e.then)&&m(e.catch),_=Object.prototype.toString,w=e=>_.call(e),k=e=>"[object Object]"===w(e),S=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-\w/g,E=M(e=>e.replace(O,e=>e.slice(1).toUpperCase())),T=/\B([A-Z])/g,P=M(e=>e.replace(T,"-$1").toLowerCase()),A=M(e=>e.charAt(0).toUpperCase()+e.slice(1)),D=M(e=>e?`on${A(e)}`:""),$=(e,t)=>!Object.is(e,t),j=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},R=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},F=e=>{const t=parseFloat(e);return isNaN(t)?e:t},I=()=>t||(t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function L(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=g(s)?z(s):L(s);if(r)for(const e in r)t[e]=r[e]}return t}if(g(e)||b(e))return e}var V=/;(?![^(]*\))/g,N=/:([^]+)/,U=/\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(U,"").split(V).forEach(e=>{if(e){const n=e.split(N);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function B(e){let t="";if(g(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const s=B(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var H="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",W=e(H);function q(e){return!!e||""===e}function K(e,t){if(e===t)return!0;let n=v(e),s=v(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=y(e),s=y(t),n||s)return e===t;if(n=f(e),s=f(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=K(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||!K(e[n],t[n]))return!1}}return String(e)===String(t)}var G,J,X=e=>!(!e||!0!==e.__v_isRef),Z=e=>g(e)?e:null==e?"":f(e)||b(e)&&(e.toString===_||!m(e.toString))?X(e)?Z(e.value):JSON.stringify(e,Y,2):String(e),Y=(e,t)=>X(t)?Y(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[Q(t,s)+" =>"]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Q(e))}:y(t)?Q(t):!b(t)||f(t)||k(t)?t:String(t),Q=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},ee=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&G&&(G.active?(this.parent=G,this.index=(G.scopes||(G.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[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){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=G;try{return G=this,e()}finally{G=t}}}on(){1===++this._on&&(this.prevScope=G,G=this)}off(){if(this._on>0&&0===--this._on){if(G===this)G=this.prevScope;else{let e=G;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.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){const e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[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}}};var te,ne,se=new WeakSet,re=class{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,G&&(G.active?G.effects.push(this):this.flags&=-2)}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||oe(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,be(this),ce(this);const e=J,t=ve;J=this,ve=!0;try{return this.fn()}finally{ue(this),J=e,ve=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)pe(e);this.deps=this.depsTail=void 0,be(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?se.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){de(this)&&this.run()}get dirty(){return de(this)}},le=0;function oe(e,t=!1){if(e.flags|=8,t)return e.next=ne,void(ne=e);e.next=te,te=e}function ae(){le++}function ie(){if(--le>0)return;if(ne){let e=ne;for(ne=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;te;){let n=te;for(te=void 0;n;){const s=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function ce(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ue(e){let t,n=e.depsTail,s=n;for(;s;){const e=s.prevDep;-1===s.version?(s===n&&(n=e),pe(s),he(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=e}e.deps=t,e.depsTail=n}function de(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||!de(e)))return;e.flags|=2;const t=e.dep,n=J,s=ve;J=e,ve=!0;try{ce(e);const n=e.fn(e._value);(0===t.version||$(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{J=n,ve=s,ue(e),e.flags&=-3}}function pe(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)pe(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function he(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var ve=!0,me=[];function ge(){me.push(ve),ve=!1}function ye(){const e=me.pop();ve=void 0===e||e}function be(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=J;J=void 0;try{t()}finally{J=e}}}var xe=0,_e=class{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}},we=class{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(!J||!ve||J===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==J)t=this.activeLink=new _e(J,this),J.deps?(t.prevDep=J.depsTail,J.depsTail.nextDep=t,J.depsTail=t):J.deps=J.depsTail=t,ke(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=J.depsTail,t.nextDep=void 0,J.depsTail.nextDep=t,J.depsTail=t,J.deps===t&&(J.deps=e)}return t}trigger(e){this.version++,xe++,this.notify(e)}notify(e){ae();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ie()}}};function ke(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)ke(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Se=new WeakMap,Ce=Symbol(""),Me=Symbol(""),Oe=Symbol("");function Ee(e,t,n){if(ve&&J){let t=Se.get(e);t||Se.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new we),s.map=t,s.key=n),s.track()}}function Te(e,t,n,s,r,l){const o=Se.get(e);if(!o)return void xe++;const a=e=>{e&&e.trigger()};if(ae(),"clear"===t)o.forEach(a);else{const r=f(e),l=r&&S(n);if(r&&"length"===n){const e=Number(s);o.forEach((t,n)=>{("length"===n||n===Oe||!y(n)&&n>=e)&&a(t)})}else switch((void 0!==n||o.has(void 0))&&a(o.get(n)),l&&a(o.get(Oe)),t){case"add":r?l&&a(o.get("length")):(a(o.get(Ce)),p(e)&&a(o.get(Me)));break;case"delete":r||(a(o.get(Ce)),p(e)&&a(o.get(Me)));break;case"set":p(e)&&a(o.get(Ce))}}ie()}function Pe(e){const t=ht(e);return t===e?t:(Ee(t,0,Oe),ft(e)?t:t.map(vt))}function Ae(e){return Ee(e=ht(e),0,Oe),e}function De(e,t){return dt(e)?mt(ut(e)?vt(t):t):vt(t)}var $e={__proto__:null,[Symbol.iterator](){return je(this,Symbol.iterator,e=>De(this,e))},concat(...e){return Pe(this).concat(...e.map(e=>f(e)?Pe(e):e))},entries(){return je(this,"entries",e=>(e[1]=De(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=>De(this,e)),arguments)},find(e,t){return Fe(this,"find",e,t,e=>De(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=>De(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 Le(this,"includes",e)},indexOf(...e){return Le(this,"indexOf",e)},join(e){return Pe(this).join(e)},lastIndexOf(...e){return Le(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return Ve(this,"pop")},push(...e){return Ve(this,"push",e)},reduce(e,...t){return Ie(this,"reduce",e,t)},reduceRight(e,...t){return Ie(this,"reduceRight",e,t)},shift(){return Ve(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return Ve(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 Ve(this,"unshift",e)},values(){return je(this,"values",e=>De(this,e))}};function je(e,t,n){const s=Ae(e),r=s[t]();return s===e||ft(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}var Re=Array.prototype;function Fe(e,t,n,s,r,l){const o=Ae(e),a=o!==e&&!ft(e),i=o[t];if(i!==Re[t]){const t=i.apply(e,l);return a?vt(t):t}let c=n;o!==e&&(a?c=function(t,s){return n.call(this,De(e,t),s,e)}:n.length>2&&(c=function(t,s){return n.call(this,t,s,e)}));const u=i.call(o,c,s);return a&&r?r(u):u}function Ie(e,t,n,s){const r=Ae(e);let l=n,o=!1;r!==e&&(r!==e&&!ft(e)?(o=0===s.length,l=function(t,s,r){return o&&(o=!1,t=De(e,t)),n.call(this,t,De(e,s),r,e)}):n.length>3&&(l=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](l,...s);return o?De(e,a):a}function Le(e,t,n){const s=ht(e);Ee(s,0,Oe);const r=s[t](...n);return-1!==r&&!1!==r||!pt(n[0])?r:(n[0]=ht(n[0]),s[t](...n))}function Ve(e,t,n=[]){ge(),ae();const s=ht(e)[t].apply(e,n);return ie(),ye(),s}var Ne=e("__proto__,__v_isRef,__isVue"),Ue=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function ze(e){y(e)||(e=String(e));const t=ht(this);return Ee(t,0,e),t.hasOwnProperty(e)}var Be=class{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?ot:lt:r?rt:st).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const l=f(e);if(!s){let e;if(l&&(e=$e[t]))return e;if("hasOwnProperty"===t)return ze}const o=Reflect.get(e,t,gt(e)?e:n);if(y(t)?Ue.has(t):Ne(t))return o;if(s||Ee(e,0,t),r)return o;if(gt(o)){const e=l&&S(t)?o:o.value;return s&&b(e)?it(e):e}return b(o)?s?it(o):at(o):o}},He=class extends Be{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const l=f(e)&&S(t);if(!this._isShallow){const e=dt(r);if(ft(n)||dt(n)||(r=ht(r),n=ht(n)),!l&>(r)&&!gt(n))return e||(r.value=n),!0}const o=l?Number(t)<e.length:d(e,t),a=Reflect.set(e,t,n,gt(e)?e:s);return e===ht(s)&&a&&(o?$(n,r)&&Te(e,"set",t,n):Te(e,"add",t,n)),a}deleteProperty(e,t){const n=d(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return y(t)&&Ue.has(t)||Ee(e,0,t),n}ownKeys(e){return Ee(e,0,f(e)?"length":Ce),Reflect.ownKeys(e)}},We=class extends Be{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},qe=new He,Ke=new We,Ge=new He(!0),Je=e=>e,Xe=e=>Reflect.getPrototypeOf(e);function Ze(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ye(e,t){const n={get(n){const s=this.__v_raw,r=ht(s),l=ht(n);e||($(n,l)&&Ee(r,0,n),Ee(r,0,l));const{has:o}=Xe(r),a=t?Je:e?mt:vt;return o.call(r,n)?a(s.get(n)):o.call(r,l)?a(s.get(l)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Ee(ht(t),0,Ce),t.size},has(t){const n=this.__v_raw,s=ht(n),r=ht(t);return e||($(t,r)&&Ee(s,0,t),Ee(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,l=r.__v_raw,o=t?Je:e?mt:vt;return!e&&Ee(ht(l),0,Ce),l.forEach((e,t)=>n.call(s,o(e),o(t),r))}};return i(n,e?{add:Ze("add"),set:Ze("set"),delete:Ze("delete"),clear:Ze("clear")}:{add(e){const n=ht(this),s=Xe(n),r=ht(e),l=t||ft(e)||dt(e)?e:r;return s.has.call(n,l)||$(e,l)&&s.has.call(n,e)||$(r,l)&&s.has.call(n,r)||(n.add(l),Te(n,"add",l,l)),this},set(e,n){t||ft(n)||dt(n)||(n=ht(n));const s=ht(this),{has:r,get:l}=Xe(s);let o=r.call(s,e);o||(e=ht(e),o=r.call(s,e));const a=l.call(s,e);return s.set(e,n),o?$(n,a)&&Te(s,"set",e,n):Te(s,"add",e,n),this},delete(e){const t=ht(this),{has:n,get:s}=Xe(t);let r=n.call(t,e);r||(e=ht(e),r=n.call(t,e));s&&s.call(t,e);const l=t.delete(e);return r&&Te(t,"delete",e,void 0),l},clear(){const e=ht(this),t=0!==e.size,n=e.clear();return t&&Te(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,l=ht(r),o=p(l),a="entries"===e||e===Symbol.iterator&&o,c="keys"===e&&o,u=r[e](...s),d=n?Je:t?mt:vt;return!t&&Ee(l,0,c?Me:Ce),i(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(s,e,t)}),n}function Qe(e,t){const n=Ye(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)}var et={get:Qe(!1,!1)},tt={get:Qe(!1,!0)},nt={get:Qe(!0,!1)},st=new WeakMap,rt=new WeakMap,lt=new WeakMap,ot=new WeakMap;function at(e){return dt(e)?e:ct(e,!1,qe,et,st)}function it(e){return ct(e,!0,Ke,nt,lt)}function ct(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const l=r.get(e);if(l)return l;const o=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(e).slice(8,-1));if(0===o)return e;const a=new Proxy(e,2===o?s:n);return r.set(e,a),a}function ut(e){return dt(e)?ut(e.__v_raw):!(!e||!e.__v_isReactive)}function dt(e){return!(!e||!e.__v_isReadonly)}function ft(e){return!(!e||!e.__v_isShallow)}function pt(e){return!!e&&!!e.__v_raw}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}var vt=e=>b(e)?at(e):e,mt=e=>b(e)?it(e):e;function gt(e){return!!e&&!0===e.__v_isRef}function yt(e){return n=!1,gt(t=e)?t:new bt(t,n);var t,n}var bt=class{constructor(e,t){this.dep=new we,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:ht(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||ft(e)||dt(e);$(e=n?e:ht(e),t)&&(this._rawValue=e,this._value=n?e:vt(e),this.dep.trigger())}};var xt={get:(e,t,n)=>{return"__v_raw"===t?e:gt(s=Reflect.get(e,t,n))?s.value:s;var s},set:(e,t,n,s)=>{const r=e[t];return gt(r)&&!gt(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function _t(e){return ut(e)?e:new Proxy(e,xt)}var wt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new we(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)&&J!==this)return oe(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)}};var kt={},St=new WeakMap,Ct=void 0;function Mt(e,t,s=n){const{immediate:l,deep:o,once:a,scheduler:i,augmentJob:u,call:d}=s,p=e=>o?e:ft(e)||!1===o||0===o?Ot(e,1):Ot(e);let h,v,g,y,b=!1,x=!1;if(gt(e)?(v=()=>e.value,b=ft(e)):ut(e)?(v=()=>p(e),b=!0):f(e)?(x=!0,b=e.some(e=>ut(e)||ft(e)),v=()=>e.map(e=>gt(e)?e.value:ut(e)?p(e):m(e)?d?d(e,2):e():void 0)):v=m(e)?t?d?()=>d(e,2):e:()=>{if(g){ge();try{g()}finally{ye()}}const t=Ct;Ct=h;try{return d?d(e,3,[y]):e(y)}finally{Ct=t}}:r,t&&o){const e=v,t=!0===o?1/0:o;v=()=>Ot(e(),t)}const _=G,w=()=>{h.stop(),_&&_.active&&c(_.effects,h)};if(a&&t){const e=t;t=(...t)=>{const n=e(...t);return w(),n}}let k=x?new Array(e.length).fill(kt):kt;const S=e=>{if(1&h.flags&&(h.dirty||e))if(t){const n=h.run();if(e||o||b||(x?n.some((e,t)=>$(e,k[t])):$(n,k))){g&&g();const e=Ct;Ct=h;try{const e=[n,k===kt?void 0:x&&k[0]===kt?[]:k,y];k=n,d?d(t,3,e):t(...e)}finally{Ct=e}}}else h.run()};return u&&u(S),h=new re(v),h.scheduler=i?()=>i(S,!1):S,y=e=>function(e,t=!1,n=Ct){if(n){let t=St.get(n);t||St.set(n,t=[]),t.push(e)}}(e,!1,h),g=h.onStop=()=>{const e=St.get(h);if(e){if(d)d(e,4);else for(const t of e)t();St.delete(h)}},t?l?S(!0):k=h.run():i?i(S.bind(null,!0),!0):h.run(),w.pause=h.pause.bind(h),w.resume=h.resume.bind(h),w.stop=w,w}function Ot(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--,gt(e))Ot(e.value,t,n);else if(f(e))for(let s=0;s<e.length;s++)Ot(e[s],t,n);else if(h(e)||p(e))e.forEach(e=>{Ot(e,t,n)});else if(k(e)){for(const s in e)Ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ot(e[s],t,n)}return e}function Et(e,t,n,s){try{return s?e(...s):e()}catch(r){Pt(r,t,n)}}function Tt(e,t,n,s){if(m(e)){const r=Et(e,t,n,s);return r&&x(r)&&r.catch(e=>{Pt(e,t,n)}),r}if(f(e)){const r=[];for(let l=0;l<e.length;l++)r.push(Tt(e[l],t,n,s));return r}}function Pt(e,t,s,r=!0){t&&t.vnode;const{errorHandler:l,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||n;if(t){let n=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${s}`;for(;n;){const t=n.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;n=n.parent}if(l)return ge(),Et(l,null,10,[e,r,o]),void ye()}!function(e,t,n,s=!0,r=!1){if(r)throw e}(e,0,0,r,o)}var At=[],Dt=-1,$t=[],jt=null,Rt=0,Ft=Promise.resolve(),It=null;function Lt(e){const t=It||Ft;return e?t.then(this?e.bind(this):e):t}function Vt(e){if(!(1&e.flags)){const t=Bt(e),n=At[At.length-1];!n||!(2&e.flags)&&t>=Bt(n)?At.push(e):At.splice(function(e){let t=Dt+1,n=At.length;for(;t<n;){const s=t+n>>>1,r=At[s],l=Bt(r);l<e||l===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,Nt()}}function Nt(){It||(It=Ft.then(Ht))}function Ut(e,t,n=Dt+1){for(;n<At.length;n++){const t=At[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;At.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function zt(e){if($t.length){const e=[...new Set($t)].sort((e,t)=>Bt(e)-Bt(t));if($t.length=0,jt)return void jt.push(...e);for(jt=e,Rt=0;Rt<jt.length;Rt++){const e=jt[Rt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}jt=null,Rt=0}}var Bt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Ht(e){try{for(Dt=0;Dt<At.length;Dt++){const e=At[Dt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Et(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Dt<At.length;Dt++){const e=At[Dt];e&&(e.flags&=-2)}Dt=-1,At.length=0,zt(),It=null,(At.length||$t.length)&&Ht(e)}}var Wt=null,qt=null;function Kt(e){const t=Wt;return Wt=e,qt=e&&e.type.__scopeId||null,t}function Gt(e,t){if(null===Wt)return e;const s=br(Wt),r=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[e,o,a,i=n]=t[l];e&&(m(e)&&(e={mounted:e,updated:e}),e.deep&&Ot(o),r.push({dir:e,instance:s,value:o,oldValue:void 0,arg:a,modifiers:i}))}return e}function Jt(e,t,n,s){const r=e.dirs,l=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];l&&(a.oldValue=l[o].value);let i=a.dir[s];i&&(ge(),Tt(i,n,8,[e.el,a,e,t]),ye())}}function Xt(e,t,n=!1){const s=cr();if(s||Yn){let r=Yn?Yn._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&&m(t)?t.call(s&&s.proxy):t}}var Zt=Symbol.for("v-scx");function Yt(e,t,n){return Qt(e,t,n)}function Qt(e,t,s=n){const{immediate:l,deep:o,flush:a,once:c}=s,u=i({},s),d=t&&l||!t&&"post"!==a;let f;if(vr)if("sync"===a){const e=Xt(Zt);f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}const p=ir;u.call=(e,t,n)=>Tt(e,p,t,n);let h=!1;"post"===a?u.scheduler=e=>{ks(e,p&&p.suspense)}:"sync"!==a&&(h=!0,u.scheduler=(e,t)=>{t?e():Vt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const v=Mt(e,t,u);return vr&&(f?f.push(v):d&&v()),v}function en(e,t,n){const s=this.proxy,r=g(e)?e.includes(".")?tn(s,e):()=>s[e]:e.bind(s,s);let l;m(t)?l=t:(l=t.handler,n=t);const o=ur(this),a=Qt(r,l.bind(s),n);return o(),a}function tn(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}}var nn=Symbol("_vte"),sn=Symbol("_leaveCb");function rn(e,t){6&e.shapeFlag&&e.component?(e.transition=t,rn(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 ln(e,t){return m(e)?(()=>i({name:e.name},t,{setup:e}))():e}function on(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function an(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}var cn=new WeakMap;function un(e,t,s,r,o=!1){if(f(e))return void e.forEach((e,n)=>un(e,t&&(f(t)?t[n]:t),s,r,o));if(fn(r)&&!o)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&un(e,t,s,r.component.subTree));const a=4&r.shapeFlag?br(r.component):r.el,i=o?null:a,{i:u,r:p}=e,h=t&&t.r,v=u.refs===n?u.refs={}:u.refs,y=u.setupState,b=ht(y),x=y===n?l:e=>!an(v,e)&&d(b,e),_=(e,t)=>!t||!an(v,t);if(null!=h&&h!==p)if(dn(t),g(h))v[h]=null,x(h)&&(y[h]=null);else if(gt(h)){const e=t;_(0,e.k)&&(h.value=null),e.k&&(v[e.k]=null)}if(m(p))Et(p,u,12,[i,v]);else{const t=g(p),n=gt(p);if(t||n){const r=()=>{if(e.f){const n=t?x(p)?y[p]:v[p]:_()||!e.k?p.value:v[e.k];if(o)f(n)&&c(n,a);else if(f(n))n.includes(a)||n.push(a);else if(t)v[p]=[a],x(p)&&(y[p]=v[p]);else{const t=[a];_(0,e.k)&&(p.value=t),e.k&&(v[e.k]=t)}}else t?(v[p]=i,x(p)&&(y[p]=i)):n&&(_(0,e.k)&&(p.value=i),e.k&&(v[e.k]=i))};if(i){const t=()=>{r(),cn.delete(e)};t.id=-1,cn.set(e,t),ks(t,s)}else dn(e),r()}}}function dn(e){const t=cn.get(e);t&&(t.flags|=8,cn.delete(e))}I().requestIdleCallback,I().cancelIdleCallback;var fn=e=>!!e.type.__asyncLoader,pn=e=>e.type.__isKeepAlive;function hn(e,t){mn(e,"a",t)}function vn(e,t){mn(e,"da",t)}function mn(e,t,n=ir){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(yn(t,s,n),n){let e=n.parent;for(;e&&e.parent;)pn(e.parent.vnode)&&gn(s,t,n,e),e=e.parent}}function gn(e,t,n,s){const r=yn(t,e,s,!0);Cn(()=>{c(s[t],r)},n)}function yn(e,t,n=ir,s=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{ge();const r=ur(n),l=Tt(t,n,e,s);return r(),ye(),l});return s?r.unshift(l):r.push(l),l}}var bn=e=>(t,n=ir)=>{vr&&"sp"!==e||yn(e,(...e)=>t(...e),n)},xn=bn("bm"),_n=bn("m"),wn=bn("bu"),kn=bn("u"),Sn=bn("bum"),Cn=bn("um"),Mn=bn("sp"),On=bn("rtg"),En=bn("rtc");function Tn(e,t=ir){yn("ec",e,t)}var Pn=Symbol.for("v-ndc");function An(e,t,n,s){let r;const l=n&&n[s],o=f(e);if(o||g(e)){let n=!1,s=!1;o&&ut(e)&&(n=!ft(e),s=dt(e),e=Ae(e)),r=new Array(e.length);for(let o=0,a=e.length;o<a;o++)r[o]=t(n?s?mt(vt(e[o])):vt(e[o]):e[o],o,void 0,l&&l[o])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,l&&l[n])}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,l&&l[n]));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,l&&l[s])}}else r=[];return n&&(n[s]=r),r}var Dn=e=>e?fr(e)?br(e):Dn(e.parent):null,$n=i(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=>Dn(e.parent),$root:e=>Dn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Un(e),$forceUpdate:e=>e.f||(e.f=()=>{Vt(e.update)}),$nextTick:e=>e.n||(e.n=Lt.bind(e.proxy)),$watch:e=>en.bind(e)}),jn=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Rn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:s,setupState:r,data:l,props:o,accessCache:a,type:i,appContext:c}=e;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return l[t];case 4:return s[t];case 3:return o[t]}else{if(jn(r,t))return a[t]=1,r[t];if(l!==n&&d(l,t))return a[t]=2,l[t];if(d(o,t))return a[t]=3,o[t];if(s!==n&&d(s,t))return a[t]=4,s[t];In&&(a[t]=0)}}const u=$n[t];let f,p;return u?("$attrs"===t&&Ee(e.attrs,0,""),u(e)):(f=i.__cssModules)&&(f=f[t])?f:s!==n&&d(s,t)?(a[t]=4,s[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,s){const{data:r,setupState:l,ctx:o}=e;return jn(l,t)?(l[t]=s,!0):r!==n&&d(r,t)?(r[t]=s,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=s,!0))},has({_:{data:e,setupState:t,accessCache:s,ctx:r,appContext:l,props:o,type:a}},i){let c;return!!(s[i]||e!==n&&"$"!==i[0]&&d(e,i)||jn(t,i)||d(o,i)||d(r,i)||d($n,i)||d(l.config.globalProperties,i)||(c=a.__cssModules)&&c[i])},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 Fn(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var In=!0;function Ln(e){const t=Un(e),n=e.proxy,s=e.ctx;In=!1,t.beforeCreate&&Vn(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:a,watch:i,provide:c,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:v,updated:g,activated:y,deactivated:x,beforeDestroy:_,beforeUnmount:w,destroyed:k,unmounted:S,render:C,renderTracked:M,renderTriggered:O,errorCaptured:E,serverPrefetch:T,expose:P,inheritAttrs:A,components:D,directives:$,filters:j}=t;if(u&&function(e,t){f(e)&&(e=Wn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?Xt(s.from||n,s.default,!0):Xt(s.from||n):Xt(s),gt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),a)for(const r in a){const e=a[r];m(e)&&(s[r]=e.bind(n))}if(l){const t=l.call(n,n);b(t)&&(e.data=at(t))}if(In=!0,o)for(const f in o){const e=o[f],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):r,l=!m(e)&&m(e.set)?e.set.bind(n):r,a=xr({get:t,set:l});Object.defineProperty(s,f,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(i)for(const r in i)Nn(i[r],s,n,r);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(ir){let n=ir.provides;const s=ir.parent&&ir.parent.provides;s===n&&(n=ir.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function R(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&Vn(d,e,"c"),R(xn,p),R(_n,h),R(wn,v),R(kn,g),R(hn,y),R(vn,x),R(Tn,E),R(En,M),R(On,O),R(Sn,w),R(Cn,S),R(Mn,T),f(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===r&&(e.render=C),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),$&&(e.directives=$),T&&on(e)}function Vn(e,t,n){Tt(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nn(e,t,n,s){let r=s.includes(".")?tn(n,s):()=>n[s];if(g(e)){const n=t[e];m(n)&&Yt(r,n)}else if(m(e))Yt(r,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>Nn(e,t,n,s));else{const s=m(e.handler)?e.handler.bind(n):t[e.handler];m(s)&&Yt(r,s,e)}}function Un(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,a=l.get(t);let i;return a?i=a:r.length||n||s?(i={},r.length&&r.forEach(e=>zn(i,e,o,!0)),zn(i,t,o)):i=t,b(t)&&l.set(t,i),i}function zn(e,t,n,s=!1){const{mixins:r,extends:l}=t;l&&zn(e,l,n,!0),r&&r.forEach(t=>zn(e,t,n,!0));for(const o in t)if(s&&"expose"===o);else{const s=Bn[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Bn={data:Hn,props:Gn,emits:Gn,methods:Kn,computed:Kn,beforeCreate:qn,created:qn,beforeMount:qn,mounted:qn,beforeUpdate:qn,updated:qn,beforeDestroy:qn,beforeUnmount:qn,destroyed:qn,unmounted:qn,activated:qn,deactivated:qn,errorCaptured:qn,serverPrefetch:qn,components:Kn,directives:Kn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=i(Object.create(null),e);for(const s in t)n[s]=qn(e[s],t[s]);return n},provide:Hn,inject:function(e,t){return Kn(Wn(e),Wn(t))}};function Hn(e,t){return t?e?function(){return i(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function Wn(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qn(e,t){return e?[...new Set([].concat(e,t))]:t}function Kn(e,t){return e?i(Object.create(null),e,t):t}function Gn(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:i(Object.create(null),Fn(e),Fn(null!=t?t:{})):t}function Jn(){return{app:null,config:{isNativeTag:l,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}}var Xn=0;function Zn(e,t){return function(n,s=null){m(n)||(n=i({},n)),null==s||b(s)||(s=null);const r=Jn(),l=new WeakSet,o=[];let a=!1;const c=r.app={_uid:Xn++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:_r,get config(){return r.config},set config(e){},use:(e,...t)=>(l.has(e)||(e&&m(e.install)?(l.add(e),e.install(c,...t)):m(e)&&(l.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(l,o,i){if(!a){const u=c._ceVNode||Xs(n,s);return u.appContext=r,!0===i?i="svg":!1===i&&(i=void 0),o&&t?t(u,l):e(u,l,i),a=!0,c._container=l,l.__vue_app__=c,br(u.component)}},onUnmount(e){o.push(e)},unmount(){a&&(Tt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c),runWithContext(e){const t=Yn;Yn=c;try{return e()}finally{Yn=t}}};return c}}var Yn=null;function Qn(e,t,...s){if(e.isUnmounted)return;const r=e.vnode.props||n;let l=s;const o=t.startsWith("update:"),a=o&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${P(t)}Modifiers`])(r,t.slice(7));let i;a&&(a.trim&&(l=s.map(e=>g(e)?e.trim():e)),a.number&&(l=s.map(F)));let c=r[i=D(t)]||r[i=D(E(t))];!c&&o&&(c=r[i=D(P(t))]),c&&Tt(c,e,6,l);const u=r[i+"Once"];if(u){if(e.emitted){if(e.emitted[i])return}else e.emitted={};e.emitted[i]=!0,Tt(u,e,6,l)}}var es=new WeakMap;function ts(e,t,n=!1){const s=n?es:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const l=e.emits;let o={},a=!1;if(!m(e)){const s=e=>{const n=ts(e,t,!0);n&&(a=!0,i(o,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return l||a?(f(l)?l.forEach(e=>o[e]=null):i(o,l),b(e)&&s.set(e,o),o):(b(e)&&s.set(e,null),null)}function ns(e,t){return!(!e||!o(t))&&(t="Once"===(t=t.slice(2))?t:t.replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,P(t))||d(e,t))}function ss(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[l],slots:o,attrs:i,emit:c,render:u,renderCache:d,props:f,data:p,setupState:h,ctx:v,inheritAttrs:m}=e,g=Kt(e);let y,b;try{if(4&n.shapeFlag){const e=r||s,t=e;y=er(u.call(t,e,d,f,h,p,v)),b=i}else{const e=t;y=er(e.length>1?e(f,{attrs:i,slots:o,emit:c}):e(f,null)),b=t.props?i:rs(i)}}catch(_){Fs.length=0,Pt(_,e,1),y=Xs(js)}let x=y;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=x;e.length&&7&t&&(l&&e.some(a)&&(b=ls(b,l)),x=Zs(x,b,!1,!0))}return n.dirs&&(x=Zs(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&rn(x,n.transition),y=x,Kt(g),y}var rs=e=>{let t;for(const n in e)("class"===n||"style"===n||o(n))&&((t||(t={}))[n]=e[n]);return t},ls=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function os(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 l=s[r];if(as(t,e,l)&&!ns(n,l))return!0}return!1}function as(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!K(s,r):s!==r}var is={},cs=()=>Object.create(is),us=e=>Object.getPrototypeOf(e)===is;function ds(e,t,n,s=!1){const r={},l=cs();e.propsDefaults=Object.create(null),fs(e,t,r,l);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:ct(r,!1,Ge,tt,rt):e.type.props?e.props=r:e.props=l,e.attrs=l}function fs(e,t,s,r){const[l,o]=e.propsOptions;let a,i=!1;if(t)for(let n in t){if(C(n))continue;const c=t[n];let u;l&&d(l,u=E(n))?o&&o.includes(u)?(a||(a={}))[u]=c:s[u]=c:ns(e.emitsOptions,n)||n in r&&c===r[n]||(r[n]=c,i=!0)}if(o){const t=ht(s),r=a||n;for(let n=0;n<o.length;n++){const a=o[n];s[a]=ps(l,t,a,r[a],e,!d(r,a))}}return i}function ps(e,t,n,s,r,l){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&&m(e)){const{propsDefaults:l}=r;if(n in l)s=l[n];else{const o=ur(r);s=l[n]=e.call(null,t),o()}}else s=e;r.ce&&r.ce._setProp(n,s)}o[0]&&(l&&!e?s=!1:!o[1]||""!==s&&s!==P(n)||(s=!0))}return s}var hs=new WeakMap;function vs(e,t,r=!1){const l=r?hs:t.propsCache,o=l.get(e);if(o)return o;const a=e.props,c={},u=[];let p=!1;if(!m(e)){const n=e=>{p=!0;const[n,s]=vs(e,t,!0);i(c,n),s&&u.push(...s)};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!a&&!p)return b(e)&&l.set(e,s),s;if(f(a))for(let s=0;s<a.length;s++){const e=E(a[s]);ms(e)&&(c[e]=n)}else if(a)for(const n in a){const e=E(n);if(ms(e)){const t=a[n],s=c[e]=f(t)||m(t)?{type:t}:i({},t),r=s.type;let l=!1,o=!0;if(f(r))for(let e=0;e<r.length;++e){const t=r[e],n=m(t)&&t.name;if("Boolean"===n){l=!0;break}"String"===n&&(o=!1)}else l=m(r)&&"Boolean"===r.name;s[0]=l,s[1]=o,(l||d(s,"default"))&&u.push(e)}}const h=[c,u];return b(e)&&l.set(e,h),h}function ms(e){return"$"!==e[0]&&!C(e)}var gs=e=>"_"===e||"_ctx"===e||"$stable"===e,ys=e=>f(e)?e.map(er):[er(e)],bs=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Wt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Us(-1);const r=Kt(t),l=Fs.length;let o;try{o=e(...s)}finally{for(let e=Fs.length;e>l;e--)Vs();Kt(r),n._d&&Us(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>ys(t(...e)),n);return s._c=!1,s},xs=(e,t,n)=>{const s=e._ctx;for(const r in e){if(gs(r))continue;const n=e[r];if(m(n))t[r]=bs(0,n,s);else if(null!=n){const e=ys(n);t[r]=()=>e}}},_s=(e,t)=>{const n=ys(t);e.slots.default=()=>n},ws=(e,t,n)=>{for(const s in t)!n&&gs(s)||(e[s]=t[s])},ks=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):(n=e,f(n)?$t.push(...n):jt&&-1===n.id?jt.splice(Rt+1,0,n):1&n.flags||($t.push(n),n.flags|=1),Nt());var n};function Ss(e){return function(e,t){I().__VUE__=!0;const{insert:l,remove:o,patchProp:a,createElement:i,createText:c,createComment:u,setText:f,setElementText:p,parentNode:h,nextSibling:v,setScopeId:m=r,insertStaticContent:g}=e,y=(e,t,n,s=null,r=null,l=null,o=void 0,a=null,i=!!t.dynamicChildren)=>{if(e===t)return;e&&!qs(e,t)&&(s=Q(e),G(e,r,l,!0),e=null),-2===t.patchFlag&&(i=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case $s:b(e,t,n,s);break;case js:_(e,t,n,s);break;case Rs:null==e&&w(t,n,s,o);break;case Ds:L(e,t,n,s,r,l,o,a,i);break;default:1&d?M(e,t,n,s,r,l,o,a,i):6&d?V(e,t,n,s,r,l,o,a,i):(64&d||128&d)&&c.process(e,t,n,s,r,l,o,a,i,se)}null!=u&&r?un(u,e&&e.ref,l,t||e,!t):null==u&&e&&null!=e.ref&&un(e.ref,null,l,e,!0)},b=(e,t,n,s)=>{if(null==e)l(t.el=c(t.children),n,s);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},_=(e,t,n,s)=>{null==e?l(t.el=u(t.children||""),n,s):t.el=e.el},w=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},k=({el:e,anchor:t},n,s)=>{let r;for(;e&&e!==t;)r=v(e),l(e,n,s),e=r;l(t,n,s)},S=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),o(e),e=n;o(t)},M=(e,t,n,s,r,l,o,a,i)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)O(t,n,s,r,l,o,a,i);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,r,l,o,a,i)}finally{n&&n._endPatch()}}},O=(e,t,n,s,r,o,c,u)=>{let d,f;const{props:h,shapeFlag:v,transition:m,dirs:g}=e;if(d=e.el=i(e.type,o,h&&h.is,h),8&v?p(d,e.children):16&v&&A(e.children,d,null,s,r,Cs(e,o),c,u),g&&Jt(e,null,s,"created"),T(d,e,e.scopeId,c,s),h){for(const e in h)"value"===e||C(e)||a(d,e,null,h[e],o,s);"value"in h&&a(d,"value",null,h.value,o),(f=h.onVnodeBeforeMount)&&sr(f,s,e)}g&&Jt(e,null,s,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(r,m);y&&m.beforeEnter(d),l(d,t,n),((f=h&&h.onVnodeMounted)||y||g)&&ks(()=>{try{f&&sr(f,s,e),y&&m.enter(d),g&&Jt(e,null,s,"mounted")}finally{}},r)},T=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let l=0;l<s.length;l++)m(e,s[l]);if(r){let n=r.subTree;if(t===n||As(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;T(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,s,r,l,o,a,i=0)=>{for(let c=i;c<e.length;c++){const i=e[c]=a?tr(e[c]):er(e[c]);y(null,i,t,n,s,r,l,o,a)}},D=(e,t,s,r,l,o,i)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||n,v=t.props||n;let m;if(s&&Ms(s,!1),(m=v.onVnodeBeforeUpdate)&&sr(m,s,t,e),f&&Jt(t,e,s,"beforeUpdate"),s&&Ms(s,!0),!d||e.dynamicChildren&&e.dynamicChildren.length===d.length||(u=0,i=!1,d=null),(h.innerHTML&&null==v.innerHTML||h.textContent&&null==v.textContent)&&p(c,""),d?$(e.dynamicChildren,d,c,s,r,Cs(t,l),o):i||H(e,t,c,null,s,r,Cs(t,l),o,!1),u>0){if(16&u)F(c,h,v,s,l);else if(2&u&&h.class!==v.class&&a(c,"class",null,v.class,l),4&u&&a(c,"style",h.style,v.style,l),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],r=h[n],o=v[n];o===r&&"value"!==n||a(c,n,r,o,l,s)}}1&u&&e.children!==t.children&&p(c,t.children)}else i||null!=d||F(c,h,v,s,l);((m=v.onVnodeUpdated)||f)&&ks(()=>{m&&sr(m,s,t,e),f&&Jt(t,e,s,"updated")},r)},$=(e,t,n,s,r,l,o)=>{for(let a=0;a<t.length;a++){const i=e[a],c=t[a],u=i.el&&(i.type===Ds||!qs(i,c)||198&i.shapeFlag)?h(i.el):n;y(i,c,u,null,s,r,l,o,!0)}},F=(e,t,s,r,l)=>{if(t!==s){if(t!==n)for(const n in t)C(n)||n in s||a(e,n,t[n],null,l,r);for(const n in s){if(C(n))continue;const o=s[n],i=t[n];o!==i&&"value"!==n&&a(e,n,i,o,l,r)}"value"in s&&a(e,"value",t.value,s.value,l)}},L=(e,t,n,s,r,o,a,i,u)=>{const d=t.el=e?e.el:c(""),f=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=t;v&&(i=i?i.concat(v):v),null==e?(l(d,n,s),l(f,n,s),A(t.children||[],n,f,r,o,a,i,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?($(e.dynamicChildren,h,n,r,o,a,i),(null!=t.key||r&&t===r.subTree)&&Os(e,t,!0)):H(e,t,n,f,r,o,a,i,u)},V=(e,t,n,s,r,l,o,a,i)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,o,i):N(t,n,s,r,l,o,i):U(e,t,i)},N=(e,t,s,r,l,o,a)=>{const i=e.component=function(e,t,s){const r=e.type,l=(t?t.appContext:e.appContext)||rr,o={uid:lr++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ee(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vs(r,l),emitsOptions:ts(r,l),emit:null,emitted:null,propsDefaults:n,inheritAttrs:r.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:s,suspenseId:s?s.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=Qn.bind(null,o),e.ce&&e.ce(o);return o}(e,r,l);if(pn(e)&&(i.ctx.renderer=se),function(e,t=!1,n=!1){t&&ar(t);const{props:s,children:r}=e.vnode,l=fr(e);ds(e,s,l,t),((e,t,n)=>{const s=e.slots=cs();if(32&e.vnode.shapeFlag){const e=t._;e?(ws(s,t,n),n&&R(s,"_",e,!0)):xs(t,s)}else t&&_s(e,t)})(e,r,n||t);const o=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Rn);const{setup:s}=n;if(s){ge();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,yr),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=ur(e),l=Et(s,e,0,[e.props,n]),o=x(l);if(ye(),r(),!o&&!e.sp||fn(e)||on(e),o){if(l.then(dr,dr),t)return l.then(n=>{mr(e,n,t)}).catch(t=>{Pt(t,e,0)});e.asyncDep=l}else mr(e,l,t)}else gr(e,t)}(e,t):void 0;t&&ar(!1)}(i,!1,a),i.asyncDep){if(l&&l.registerDep(i,z,a),!e.el){const n=i.subTree=Xs(js);_(null,n,t,s),e.placeholder=n.el}}else z(i,e,t,s,l,o,a)},U=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:l}=e,{props:o,children:a,patchFlag:i}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&i>=0))return!(!r&&!a||a&&a.$stable)||s!==o&&(s?!o||os(s,o,c):!!o);if(1024&i)return!0;if(16&i)return s?os(s,o,c):!!o;if(8&i){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(as(o,s,n)&&!ns(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return void B(s,t,n);s.next=t,s.update()}else t.el=e.el,s.vnode=t},z=(e,t,n,s,r,l,o)=>{const a=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:a,vnode:i}=e;{const n=Es(e);if(n)return t&&(t.el=i.el,B(e,t,o)),void n.asyncDep.then(()=>{ks(()=>{e.isUnmounted||c()},r)})}let u,d=t;Ms(e,!1),t?(t.el=i.el,B(e,t,o)):t=i,n&&j(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&sr(u,a,t,i),Ms(e,!0);const f=ss(e),p=e.subTree;e.subTree=f,y(p,f,h(p.el),Q(p),e,r,l),t.el=f.el,null===d&&function({vnode:e,parent:t,suspense:n},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=s,e=n),n!==e)break;(e=t.vnode).el=s,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=s)}(e,f.el),s&&ks(s,r),(u=t.props&&t.props.onVnodeUpdated)&&ks(()=>sr(u,a,t,i),r)}else{let o;const{el:a,props:i}=t,{bm:c,m:u,parent:d,root:f,type:p}=e,h=fn(t);if(Ms(e,!1),c&&j(c),!h&&(o=i&&i.onVnodeBeforeMount)&&sr(o,d,t),Ms(e,!0),a&&oe){const t=()=>{e.subTree=ss(e),oe(a,e.subTree,e,r,null)};h&&p.__asyncHydrate?p.__asyncHydrate(a,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const o=e.subTree=ss(e);y(null,o,n,s,e,r,l),t.el=o.el}if(u&&ks(u,r),!h&&(o=i&&i.onVnodeMounted)){const e=t;ks(()=>sr(o,d,e),r)}(256&t.shapeFlag||d&&fn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&ks(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const i=e.effect=new re(a);e.scope.off();const c=e.update=i.run.bind(i),u=e.job=i.runIfDirty.bind(i);u.i=e,u.id=e.uid,i.scheduler=()=>Vt(u),Ms(e,!0),c()},B=(e,t,s)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:l,vnode:{patchFlag:o}}=e,a=ht(r),[i]=e.propsOptions;let c=!1;if(!(s||o>0)||16&o){let s;fs(e,t,r,l)&&(c=!0);for(const l in a)t&&(d(t,l)||(s=P(l))!==l&&d(t,s))||(i?!n||void 0===n[l]&&void 0===n[s]||(r[l]=ps(i,a,l,void 0,e,!0)):delete r[l]);if(l!==a)for(const e in l)t&&d(t,e)||(delete l[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(ns(e.emitsOptions,o))continue;const u=t[o];if(i)if(d(l,o))u!==l[o]&&(l[o]=u,c=!0);else{const t=E(o);r[t]=ps(i,a,t,u,e,!1)}else u!==l[o]&&(l[o]=u,c=!0)}}c&&Te(e.attrs,"set","")}(e,t.props,r,s),((e,t,s)=>{const{vnode:r,slots:l}=e;let o=!0,a=n;if(32&r.shapeFlag){const e=t._;e?s&&1===e?o=!1:ws(l,t,s):(o=!t.$stable,xs(t,l)),a=t}else t&&(_s(e,t),a={default:1});if(o)for(const n in l)gs(n)||null!=a[n]||delete l[n]})(e,t.children,s),ge(),Ut(e),ye()},H=(e,t,n,s,r,l,o,a,i=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void q(c,d,n,s,r,l,o,a,i);if(256&f)return void W(c,d,n,s,r,l,o,a,i)}8&h?(16&u&&Y(c,r,l),d!==c&&p(n,d)):16&u?16&h?q(c,d,n,s,r,l,o,a,i):Y(c,r,l,!0):(8&u&&p(n,""),16&h&&A(d,n,s,r,l,o,a,i))},W=(e,t,n,r,l,o,a,i,c)=>{t=t||s;const u=(e=e||s).length,d=t.length,f=Math.min(u,d);let p;for(p=0;p<f;p++){const s=t[p]=c?tr(t[p]):er(t[p]);y(e[p],s,n,null,l,o,a,i,c)}u>d?Y(e,l,o,!0,!1,f):A(t,n,r,l,o,a,i,c,f)},q=(e,t,n,r,l,o,a,i,c)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const s=e[u],r=t[u]=c?tr(t[u]):er(t[u]);if(!qs(s,r))break;y(s,r,n,null,l,o,a,i,c),u++}for(;u<=f&&u<=p;){const s=e[f],r=t[p]=c?tr(t[p]):er(t[p]);if(!qs(s,r))break;y(s,r,n,null,l,o,a,i,c),f--,p--}if(u>f){if(u<=p){const e=p+1,s=e<d?t[e].el:r;for(;u<=p;)y(null,t[u]=c?tr(t[u]):er(t[u]),n,s,l,o,a,i,c),u++}}else if(u>p)for(;u<=f;)G(e[u],l,o,!0),u++;else{const h=u,v=u,m=new Map;for(u=v;u<=p;u++){const e=t[u]=c?tr(t[u]):er(t[u]);null!=e.key&&m.set(e.key,u)}let g,b=0;const x=p-v+1;let _=!1,w=0;const k=new Array(x);for(u=0;u<x;u++)k[u]=0;for(u=h;u<=f;u++){const s=e[u];if(b>=x){G(s,l,o,!0);continue}let r;if(null!=s.key)r=m.get(s.key);else for(g=v;g<=p;g++)if(0===k[g-v]&&qs(s,t[g])){r=g;break}void 0===r?G(s,l,o,!0):(k[r-v]=u+1,r>=w?w=r:_=!0,y(s,t[r],n,null,l,o,a,i,c),b++)}const S=_?function(e){const t=e.slice(),n=[0];let s,r,l,o,a;const i=e.length;for(s=0;s<i;s++){const i=e[s];if(0!==i){if(r=n[n.length-1],e[r]<i){t[s]=r,n.push(s);continue}for(l=0,o=n.length-1;l<o;)a=l+o>>1,e[n[a]]<i?l=a+1:o=a;i<e[n[l]]&&(l>0&&(t[s]=n[l-1]),n[l]=s)}}l=n.length,o=n[l-1];for(;l-- >0;)n[l]=o,o=t[o];return n}(k):s;for(g=S.length-1,u=x-1;u>=0;u--){const e=v+u,s=t[e],f=t[e+1],p=e+1<d?f.el||Ps(f):r;0===k[u]?y(null,s,n,p,l,o,a,i,c):_&&(g<0||u!==S[g]?K(s,n,p,2):g--)}}},K=(e,t,n,s,r=null)=>{const{el:a,type:i,transition:c,children:u,shapeFlag:d}=e;if(6&d)K(e.component.subTree,t,n,s);else if(128&d)e.suspense.move(t,n,s);else if(64&d)i.move(e,t,n,se);else if(i!==Ds)if(i!==Rs)if(2!==s&&1&d&&c)if(0===s)c.persisted&&!a[sn]?l(a,t,n):(c.beforeEnter(a),l(a,t,n),ks(()=>c.enter(a),r));else{const{leave:s,delayLeave:r,afterLeave:i}=c,u=()=>{e.ctx.isUnmounted?o(a):l(a,t,n)},d=()=>{const e=a._isLeaving||!!a[sn];a._isLeaving&&a[sn](!0),c.persisted&&!e?u():s(a,()=>{u(),i&&i()})};r?r(a,u,d):d()}else l(a,t,n);else k(e,t,n);else{l(a,t,n);for(let e=0;e<u.length;e++)K(u[e],t,n,s);l(e.anchor,t,n)}},G=(e,t,n,s=!1,r=!1)=>{const{type:l,props:o,ref:a,children:i,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:h}=e;if(-2===d&&(r=!1),null!=a&&(ge(),un(a,null,n,e,!0),ye()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const v=1&u&&f,m=!fn(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&sr(g,t,e),6&u)Z(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);v&&Jt(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,se,s):c&&!c.hasOnce&&(l!==Ds||d>0&&64&d)?Y(c,t,n,!1,!0):(l===Ds&&384&d||!r&&16&u)&&Y(i,t,n),s&&J(e)}const y=null!=h&&null==p;(m&&(g=o&&o.onVnodeUnmounted)||v||y)&&ks(()=>{g&&sr(g,t,e),v&&Jt(e,null,t,"unmounted"),y&&(e.el=null)},n)},J=e=>{const{type:t,el:n,anchor:s,transition:r}=e;if(t===Ds)return void X(n,s);if(t===Rs)return void S(e);const l=()=>{o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:s}=r,o=()=>t(n,l);s?s(e.el,l,o):o()}else l()},X=(e,t)=>{let n;for(;e!==t;)n=v(e),o(e),e=n;o(t)},Z=(e,t,n)=>{const{bum:s,scope:r,job:l,subTree:o,um:a,m:i,a:c}=e;Ts(i),Ts(c),s&&j(s),r.stop(),l&&(l.flags|=8,G(o,e,t,n)),a&&ks(a,t),ks(()=>{e.isUnmounted=!0},t)},Y=(e,t,n,s=!1,r=!1,l=0)=>{for(let o=l;o<e.length;o++)G(e[o],t,n,s,r)},Q=e=>{if(6&e.shapeFlag)return Q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=v(e.anchor||e.el),n=t&&t[nn];return n?v(n):t};let te=!1;const ne=(e,t,n)=>{let s;null==e?t._vnode&&(G(t._vnode,null,null,!0),s=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,te||(te=!0,Ut(s),zt(),te=!1)},se={p:y,um:G,m:K,r:J,mt:N,mc:A,pc:H,pbc:$,n:Q,o:e};let le,oe;t&&([le,oe]=t(se));return{render:ne,hydrate:le,createApp:Zn(ne,le)}}(e)}function Cs({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 Ms({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Os(e,t,n=!1){const s=e.children,r=t.children;if(f(s)&&f(r))for(let l=0;l<s.length;l++){const e=s[l];let t=r[l];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[l]=tr(r[l]),t.el=e.el),n||-2===t.patchFlag||Os(e,t)),t.type===$s&&(-1===t.patchFlag&&(t=r[l]=tr(t)),t.el=e.el),t.type!==js||t.el||(t.el=e.el)}}function Es(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Es(t)}function Ts(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ps(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ps(t.subTree):null}var As=e=>e.__isSuspense;var Ds=Symbol.for("v-fgt"),$s=Symbol.for("v-txt"),js=Symbol.for("v-cmt"),Rs=Symbol.for("v-stc"),Fs=[],Is=null;function Ls(e=!1){Fs.push(Is=e?null:[])}function Vs(){Fs.pop(),Is=Fs[Fs.length-1]||null}var Ns=1;function Us(e,t=!1){Ns+=e,e<0&&Is&&t&&(Is.hasOnce=!0)}function zs(e){return e.dynamicChildren=Ns>0?Is||s:null,Vs(),Ns>0&&Is&&Is.push(e),e}function Bs(e,t,n,s,r,l){return zs(Js(e,t,n,s,r,l,!0))}function Hs(e,t,n,s,r){return zs(Xs(e,t,n,s,r,!0))}function Ws(e){return!!e&&!0===e.__v_isVNode}function qs(e,t){return e.type===t.type&&e.key===t.key}var Ks=({key:e})=>null!=e?e:null,Gs=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||gt(e)||m(e)?{i:Wt,r:e,k:t,f:!!n}:e:null);function Js(e,t=null,n=null,s=0,r=null,l=(e===Ds?0:1),o=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&Gs(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:l,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Wt};return a?(nr(i,n),128&l&&e.normalize(i)):n&&(i.shapeFlag|=g(n)?8:16),Ns>0&&!o&&Is&&(i.patchFlag>0||6&l)&&32!==i.patchFlag&&Is.push(i),i}var Xs=function(e,t=null,n=null,s=0,r=null,l=!1){e&&e!==Pn||(e=js);if(Ws(e)){const s=Zs(e,t,!0);return n&&nr(s,n),Ns>0&&!l&&Is&&(6&s.shapeFlag?Is[Is.indexOf(e)]=s:Is.push(s)),s.patchFlag=-2,s}o=e,m(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?pt(e)||us(e)?i({},e):e:null}(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=B(e)),b(n)&&(pt(n)&&!f(n)&&(n=i({},n)),t.style=L(n))}const a=g(e)?1:As(e)?128:(e=>e.__isTeleport)(e)?64:b(e)?4:m(e)?2:0;return Js(e,t,n,s,r,a,l,!0)};function Zs(e,t,n=!1,s=!1){const{props:r,ref:l,patchFlag:i,children:c,transition:u}=e,d=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=B([t.class,s.class]));else if("style"===e)t.style=L([t.style,s.style]);else if(o(e)){const n=t[e],r=s[e];!r||n===r||f(n)&&n.includes(r)?null!=r||null!=n||a(e)||(t[e]=r):t[e]=n?[].concat(n,r):r}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Ks(d),ref:t&&t.ref?n&&l?f(l)?l.concat(Gs(t)):[l,Gs(t)]:Gs(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ds?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zs(e.ssContent),ssFallback:e.ssFallback&&Zs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&rn(p,u.clone(p)),p}function Ys(e=" ",t=0){return Xs($s,null,e,t)}function Qs(e="",t=!1){return t?(Ls(),Hs(js,null,e)):Xs(js,null,e)}function er(e){return null==e||"boolean"==typeof e?Xs(js):f(e)?Xs(Ds,null,e.slice()):Ws(e)?tr(e):Xs($s,null,String(e))}function tr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Zs(e)}function nr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),nr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||us(t)?3===s&&Wt&&(1===Wt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Wt}}else if(m(t)){if(65&s)return void nr(e,{default:t});t={default:t,_ctx:Wt},n=32}else t=String(t),64&s?(n=16,t=[Ys(t)]):n=8;e.children=t,e.shapeFlag|=n}function sr(e,t,n,s=null){Tt(e,t,7,[n,s])}var rr=Jn(),lr=0;var or,ar,ir=null,cr=()=>ir||Wt;{const e=I(),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)}};or=t("__VUE_INSTANCE_SETTERS__",e=>ir=e),ar=t("__VUE_SSR_SETTERS__",e=>vr=e)}var ur=e=>{const t=ir;return or(e),e.scope.on(),()=>{e.scope.off(),or(t)}},dr=()=>{ir&&ir.scope.off(),or(null)};function fr(e){return 4&e.vnode.shapeFlag}var pr,hr,vr=!1;function mr(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=_t(t)),gr(e,n)}function gr(e,t,n){const s=e.type;if(!e.render){if(!t&&pr&&!s.render){const t=s.template||Un(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:o}=s,a=i(i({isCustomElement:n,delimiters:l},r),o);s.render=pr(t,a)}}e.render=s.render||r,hr&&hr(e)}{const t=ur(e);ge();try{Ln(e)}finally{ye(),t()}}}var yr={get:(e,t)=>(Ee(e,0,""),e[t])};function br(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_t((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&R(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in $n?$n[n](e):void 0,has:(e,t)=>t in e||t in $n})):e.proxy;var t}var xr=(e,t)=>function(e,t,n=!1){let s,r;return m(e)?s=e:(s=e.get,r=e.set),new wt(s,r,n)}(e,0,vr),_r="3.5.40",wr=void 0,kr="undefined"!=typeof window&&window.trustedTypes;if(kr)try{wr=kr.createPolicy("vue",{createHTML:e=>e})}catch(ia){}var Sr=wr?e=>wr.createHTML(e):e=>e,Cr="undefined"!=typeof document?document:null,Mr=Cr&&Cr.createElement("template"),Or={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?Cr.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Cr.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Cr.createElement(e,{is:n}):Cr.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>Cr.createTextNode(e),createComment:e=>Cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,l){const o=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==l&&(r=r.nextSibling););else{Mr.innerHTML=Sr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Mr.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]}},Er=Symbol("_vtc");var Tr=Symbol("_vod"),Pr=Symbol("_vsh"),Ar=Symbol(""),Dr=/(?:^|;)\s*display\s*:/;var $r=/\s*!important$/;function jr(e,t,n){if(f(n))n.forEach(n=>jr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=function(e,t){const n=Fr[t];if(n)return n;let s=E(t);if("filter"!==s&&s in e)return Fr[t]=s;s=A(s);for(let r=0;r<Rr.length;r++){const n=Rr[r]+s;if(n in e)return Fr[t]=n}return t}(e,t);$r.test(n)?e.setProperty(P(s),n.replace($r,""),"important"):e[s]=n}}var Rr=["Webkit","Moz","ms"],Fr={};function Ir(e,t,n,s){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&g(s)&&n===s}var Lr="http://www.w3.org/1999/xlink";function Vr(e,t,n,s,r,l=W(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Lr,t.slice(6,t.length)):e.setAttributeNS(Lr,t,n):null==n||l&&!q(n)?e.removeAttribute(t):e.setAttribute(t,l?"":y(n)?String(n):n)}function Nr(e,t,n,s,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Sr(n):n));const l=e.tagName;if("value"===t&&"PROGRESS"!==l&&!l.includes("-")){const s="OPTION"===l?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=q(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(ia){}o&&e.removeAttribute(r||t)}function Ur(e,t,n,s){e.addEventListener(t,n,s)}var zr=Symbol("_vei");function Br(e,t,n,s,r=null){const l=e[zr]||(e[zr]={}),o=l[t];if(s&&o)o.value=s;else{const[n,a]=function(e){let t,n;for(;(n=e.match(Hr))&&!Wr.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):P(e.slice(2)),t]}(t);s?Ur(e,n,l[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const s=n.value;if(f(s)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const r=s.slice(),l=[e];for(let s=0;s<r.length&&!e._stopped;s++){const e=r[s];e&&Tt(e,t,5,l)}}else Tt(s,t,5,[e])};return n.value=e,n.attached=Gr(),n}(s,r),a):o&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,o,a),l[t]=void 0)}}var Hr=/(Once|Passive|Capture)$/,Wr=/^on:?(?:Once|Passive|Capture)$/;var qr=0,Kr=Promise.resolve(),Gr=()=>qr||(Kr.then(()=>qr=0),qr=Date.now());var Jr=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;var Xr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>j(t,e):t};function Zr(e){e.target.composing=!0}function Yr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Qr=Symbol("_assign");function el(e,t,n){return t&&(e=e.trim()),n&&(e=F(e)),e}var tl,nl={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Qr]=Xr(r);const l=s||r.props&&"number"===r.props.type;Ur(e,t?"change":"input",t=>{t.target.composing||e[Qr](el(e.value,n,l))}),(n||l)&&Ur(e,"change",()=>{e.value=el(e.value,n,l)}),t||(Ur(e,"compositionstart",Zr),Ur(e,"compositionend",Yr),Ur(e,"change",Yr))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:l}},o){if(e[Qr]=Xr(o),e.composing)return;const a=null==t?"":t;if((!l&&"number"!==e.type||/^0\d/.test(e.value)?e.value:F(e.value))===a)return;const i=e.getRootNode();if((i instanceof Document||i instanceof ShadowRoot)&&i.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===a)return}e.value=a}},sl=["ctrl","shift","alt","meta"],rl={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)=>sl.some(n=>e[`${n}Key`]&&!t.includes(n))},ll=(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=rl[t[e]];if(s&&s(n,t))return}return e(n,...s)})},ol=i({patchProp:(e,t,n,s,r,l)=>{const i="svg"===r;"class"===t?function(e,t,n){const s=e[Er];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,r=g(n);let l=!1;if(n&&!r){if(t)if(g(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&jr(s,t,"")}else for(const e in t)null==n[e]&&jr(s,e,"");for(const r in n){"display"===r&&(l=!0);const o=n[r];null!=o?Ir(e,r,!g(t)&&t?t[r]:void 0,o)||jr(s,r,o):jr(s,r,"")}}else if(r){if(t!==n){const e=s[Ar];e&&(n+=";"+e),s.cssText=n,l=Dr.test(n)}}else t&&e.removeAttribute("style");Tr in e&&(e[Tr]=l?s.display:"",e[Pr]&&(s.display="none"))}(e,n,s):o(t)?a(t)||Br(e,t,0,s,l):("."===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&&Jr(t)&&m(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}return(!Jr(t)||!g(n))&&t in e}(e,t,s,i))?(Nr(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Vr(e,t,s,i,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=E(t);return Array.isArray(n)?n.some(e=>E(e)===s):Object.keys(n).some(e=>E(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(s)))?Nr(e,E(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Vr(e,t,s,i))}},Or);var al=(...e)=>{const t=(tl||(tl=Ss(ol))).createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){return g(e)?document.querySelector(e):e}(e);if(!s)return;const r=t._component;m(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const l=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","")),l},t};function il(e,t){const n=new Set;for(const s of e){const e=s[t];e&&n.add(e)}return Array.from(n).sort((e,t)=>e.localeCompare(t))}var cl=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function ul(e,t){return e.filter(e=>!!function(e,t){const n=t.trim().toLowerCase();if(!n)return!0;const s=function(e){return`${e.id} ${e.title} ${e.doctype??""}`.toLowerCase()}(e);return n.split(/\s+/).every(e=>s.includes(e))}(e,t.query)&&(!!(!t.doctypes.size||e.doctype&&t.doctypes.has(e.doctype))&&!!(!t.stages.size||e.stage&&t.stages.has(e.stage)))).sort((e,n)=>function(e,t,n,s){let r=0;switch(n){case"date":{const n=e.date,s=t.date;if(!n&&!s)return 0;if(!n)return 1;if(!s)return-1;r=n.localeCompare(s);break}case"title":r=cl.compare(e.title,t.title);break;default:r=cl.compare(e.id,t.id)}return"asc"===s?r:-r}(e,n,t.sortKey,t.sortDir))}var dl="page";function fl(e=("undefined"!=typeof window?window.location.search:"")){const t=new URLSearchParams(e).get(dl);if(null===t)return 1;const n=Number(t);return Number.isInteger(n)&&n>=1?n:1}function pl(e,t="replace"){if("undefined"==typeof window||!window.history)return;const n=new URL(window.location.href);e<=1?n.searchParams.delete(dl):n.searchParams.set(dl,String(e));const s=`${n.pathname}${n.search}${n.hash}`;"push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s)}function hl(e){return`${vl()}/doc/${encodeURIComponent(e)}`}function vl(){const e=window.location.pathname,t=e.lastIndexOf("/doc/"),n=t>=0?e.slice(0,t):e.replace(/\/index\.html$/,"");return"/"===n?"":n.replace(/\/+$/,"")}function ml(e=("undefined"!=typeof window?window.location.search:"")){if(e===("undefined"!=typeof window?window.location.search:"")){const e=window.location.pathname.match(/\/doc\/([^/?#]+)$/);if(e){const t=decodeURIComponent(e[1]);if(""!==t.trim())return t}}const t=new URLSearchParams(e).get("doc");return t&&""!==t.trim()?t:null}function gl(e,t="replace"){if("undefined"==typeof window||!window.history)return;const n=new URL(window.location.href);if(e){const s=`${vl()}/doc/${encodeURIComponent(e)}${n.search&&n.searchParams.has(dl)?`?${n.searchParams}`:""}${n.hash}`;return void("push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s))}n.searchParams.delete("doc");const s=`${vl()}/${n.search}${n.hash}`;"push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s)}var yl={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24","aria-hidden":"true"},bl=["d"],xl=ln({__name:"Icon",props:{name:{}},setup(e){const t={sun:["M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"],moon:["M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"],search:["M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"],"chevron-up":["M5 15l7-7 7 7"],"chevron-down":["M19 9l-7 7-7-7"],"chevron-right":["M9 5l7 7-7 7"],"arrow-left":["M10 19l-7-7m0 0l7-7m-7 7h18"],external:["M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"],list:["M4 6h16M4 12h16M4 18h16"],grid:["M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"],copy:["M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"],check:["M5 13l4 4L19 7"],document:["M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"]},n=e,s=xr(()=>t[n.name]??null);return(e,t)=>s.value?(Ls(),Bs("svg",yl,[(Ls(!0),Bs(Ds,null,An(s.value,(e,t)=>(Ls(),Bs("path",{key:t,d:e},null,8,bl))),128))])):Qs("",!0)}}),_l={class:"flex items-start justify-between gap-3"},wl={class:"min-w-0"},kl={class:"flex items-center gap-2"},Sl={class:"truncate font-mono text-sm font-semibold text-brand dark:text-brand-dark"},Cl=["href"],Ml=["aria-label","title"],Ol={class:"mt-1 text-sm text-slate-700 dark:text-slate-300"},El=["href"],Tl={class:"flex shrink-0 items-start gap-2"},Pl={class:"flex flex-col items-end gap-1 text-xs"},Al={class:"flex flex-wrap justify-end gap-1"},Dl={key:0,class:"rounded bg-slate-100 px-1.5 py-0.5 text-slate-600 dark:bg-slate-800 dark:text-slate-300"},$l={key:1,class:"rounded bg-emerald-100 px-1.5 py-0.5 text-emerald-700 dark:bg-emerald-900/50 dark:text-emerald-300"},jl={key:0,class:"text-slate-400"},Rl=["href"],Fl=ln({__name:"DocumentRow",props:{doc:{},view:{}},emits:["open"],setup(e){const t=e,n=xr(()=>hl(t.doc.id)),s=yt(!1);return(t,r)=>(Ls(),Bs("article",{class:B(["document group py-4","grid"===e.view?"rounded-xl border border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900":""])},[Js("div",_l,[Js("div",wl,[Js("div",kl,[Js("h2",Sl,[Js("a",{href:n.value,class:"hover:underline",onClick:r[0]||(r[0]=ll(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},Z(e.doc.id),9,Cl)]),Js("button",{type:"button",class:"rounded p-0.5 text-slate-400 opacity-0 transition group-hover:opacity-100 hover:text-brand","aria-label":`Copy DocID ${e.doc.id}`,title:s.value?"Copied!":"Copy DocID",onClick:r[1]||(r[1]=t=>async function(e){try{await navigator.clipboard.writeText(e),s.value=!0,setTimeout(()=>s.value=!1,1200)}catch{}}(e.doc.id))},[Xs(xl,{name:s.value?"check":"copy",class:"h-4 w-4"},null,8,["name"])],8,Ml)]),Js("p",Ol,[Js("a",{href:n.value,class:"hover:underline",tabindex:"-1",onClick:r[2]||(r[2]=ll(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},Z(e.doc.title),9,El)])]),Js("div",Tl,[Js("div",Pl,[Js("div",Al,[e.doc.doctype?(Ls(),Bs("span",Dl,Z(e.doc.doctype),1)):Qs("",!0),e.doc.stage?(Ls(),Bs("span",$l,Z(e.doc.stage),1)):Qs("",!0)]),e.doc.date?(Ls(),Bs("time",jl,Z(e.doc.date),1)):Qs("",!0)]),Js("a",{href:n.value,class:"mt-0.5 text-slate-300 transition group-hover:text-brand dark:text-slate-600 dark:group-hover:text-brand-dark","aria-hidden":"true",tabindex:"-1",onClick:r[3]||(r[3]=ll(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},[Xs(xl,{name:"chevron-right",class:"h-5 w-5"})],8,Rl)])])],2))}}),Il={class:"py-2"},Ll={class:"mb-6"},Vl={class:"flex items-center gap-2"},Nl={class:"font-mono text-lg font-semibold text-brand dark:text-brand-dark"},Ul=["aria-label","title"],zl={class:"mt-1 text-2xl font-semibold tracking-tight"},Bl={key:0,class:"mb-6"},Hl={class:"text-sm leading-relaxed text-slate-700 dark:text-slate-300"},Wl={key:1,class:"mb-6"},ql={class:"grid grid-cols-1 gap-x-6 gap-y-2 text-sm sm:grid-cols-2"},Kl={key:0,class:"flex gap-2"},Gl={key:1,class:"flex gap-2"},Jl={key:2,class:"flex gap-2"},Xl={key:3,class:"flex gap-2"},Zl={key:4,class:"flex gap-2"},Yl={key:5,class:"flex gap-2"},Ql={key:2,class:"mb-6"},eo={class:"flex flex-wrap gap-1.5"},to={key:3,class:"mb-6"},no={class:"space-y-1 text-sm"},so={class:"text-slate-700 dark:text-slate-300"},ro={key:0,class:"text-xs text-slate-500 dark:text-slate-400"},lo={key:4,class:"mb-6"},oo={class:"space-y-1 text-sm"},ao={class:"font-mono text-slate-700 dark:text-slate-300"},io={key:0,class:"text-xs text-slate-500 dark:text-slate-400"},co={key:5,class:"mb-6"},uo={class:"space-y-1 text-sm"},fo={class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},po=["href","onClick"],ho={key:1,class:"font-mono text-slate-700 dark:text-slate-300"},vo={key:6,class:"mb-6"},mo={class:"space-y-1 text-sm"},go={key:0,class:"text-slate-500 dark:text-slate-400"},yo={class:"text-slate-700 dark:text-slate-300"},bo={key:7,class:"flex flex-wrap gap-4 text-sm"},xo=["href"],_o=["href"],wo=ln({__name:"DocumentDetail",props:{doc:{},hasDoc:{type:Function}},emits:["back","open"],setup(e){const t=e,n=yt(!1);async function s(){try{await navigator.clipboard.writeText(t.doc.id),n.value=!0,setTimeout(()=>n.value=!1,1200)}catch{}}const r=xr(()=>(t.doc.languages??[]).join(", ")),l=xr(()=>t.doc.keywords??[]),o=xr(()=>t.doc.contributors??[]),a=xr(()=>t.doc.docids??[]),i=xr(()=>t.doc.dates??[]),c=xr(()=>!!t.doc.date&&0===i.value.length),u=xr(()=>!!(t.doc.doctype||t.doc.stage||t.doc.edition||r.value||t.doc.publisher||c.value));function d(e){return[e.type,e.language].filter(Boolean).join(" · ")}const f=xr(()=>(t.doc.relations??[]).map(e=>({...e,label:p(e.type),href:t.hasDoc?.(e.id)?hl(e.id):null})));function p(e){if(!e)return"Related";const t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}return(t,p)=>(Ls(),Bs("article",Il,[Js("button",{type:"button",class:"mb-6 inline-flex items-center gap-1.5 text-sm text-brand hover:underline dark:text-brand-dark","aria-label":"Back to index",onClick:p[0]||(p[0]=e=>t.$emit("back"))},[Xs(xl,{name:"arrow-left",class:"h-4 w-4"}),p[1]||(p[1]=Ys("Back to index ",-1))]),Js("header",Ll,[Js("div",Vl,[Js("h2",Nl,Z(e.doc.id),1),Js("button",{type:"button",class:"rounded p-0.5 text-slate-400 transition hover:text-brand","aria-label":`Copy DocID ${e.doc.id}`,title:n.value?"Copied!":"Copy DocID",onClick:s},[Xs(xl,{name:n.value?"check":"copy",class:"h-4 w-4"},null,8,["name"])],8,Ul)]),Js("h1",zl,Z(e.doc.title),1)]),e.doc.abstract?(Ls(),Bs("section",Bl,[p[2]||(p[2]=Js("h3",{class:"mb-1 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Abstract ",-1)),Js("p",Hl,Z(e.doc.abstract),1)])):Qs("",!0),u.value?(Ls(),Bs("section",Wl,[Js("dl",ql,[e.doc.doctype?(Ls(),Bs("div",Kl,[p[3]||(p[3]=Js("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Type",-1)),Js("dd",null,Z(e.doc.doctype),1)])):Qs("",!0),e.doc.stage?(Ls(),Bs("div",Gl,[p[4]||(p[4]=Js("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Stage",-1)),Js("dd",null,Z(e.doc.stage),1)])):Qs("",!0),e.doc.edition?(Ls(),Bs("div",Jl,[p[5]||(p[5]=Js("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Edition",-1)),Js("dd",null,Z(e.doc.edition),1)])):Qs("",!0),r.value?(Ls(),Bs("div",Xl,[p[6]||(p[6]=Js("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Language",-1)),Js("dd",null,Z(r.value),1)])):Qs("",!0),e.doc.publisher?(Ls(),Bs("div",Zl,[p[7]||(p[7]=Js("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Publisher",-1)),Js("dd",null,Z(e.doc.publisher),1)])):Qs("",!0),c.value?(Ls(),Bs("div",Yl,[p[8]||(p[8]=Js("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Date",-1)),Js("dd",null,Z(e.doc.date),1)])):Qs("",!0)])])):Qs("",!0),l.value.length?(Ls(),Bs("section",Ql,[p[9]||(p[9]=Js("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Keywords ",-1)),Js("div",eo,[(Ls(!0),Bs(Ds,null,An(l.value,e=>(Ls(),Bs("span",{key:e,class:"rounded-full bg-slate-100 px-3 py-1 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-300"},Z(e),1))),128))])])):Qs("",!0),o.value.length?(Ls(),Bs("section",to,[p[10]||(p[10]=Js("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Contributors ",-1)),Js("ul",no,[(Ls(!0),Bs(Ds,null,An(o.value,(e,t)=>(Ls(),Bs("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[Js("span",so,Z(e.name),1),e.role?(Ls(),Bs("span",ro,Z(e.role),1)):Qs("",!0)]))),128))])])):Qs("",!0),a.value.length?(Ls(),Bs("section",lo,[p[11]||(p[11]=Js("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Identifiers ",-1)),Js("ul",oo,[(Ls(!0),Bs(Ds,null,An(a.value,(e,t)=>(Ls(),Bs("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[Js("span",ao,Z(e.id),1),d(e)?(Ls(),Bs("span",io,Z(d(e)),1)):Qs("",!0)]))),128))])])):Qs("",!0),f.value.length?(Ls(),Bs("section",co,[p[12]||(p[12]=Js("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Relations ",-1)),Js("ul",uo,[(Ls(!0),Bs(Ds,null,An(f.value,(e,n)=>(Ls(),Bs("li",{key:n,class:"flex flex-wrap items-baseline gap-2"},[Js("span",fo,Z(e.label),1),e.href?(Ls(),Bs("a",{key:0,href:e.href,class:"font-mono text-brand hover:underline dark:text-brand-dark",onClick:ll(n=>t.$emit("open",e.id),["exact","prevent"])},Z(e.id),9,po)):(Ls(),Bs("span",ho,Z(e.id),1))]))),128))])])):Qs("",!0),i.value.length?(Ls(),Bs("section",vo,[p[13]||(p[13]=Js("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Dates ",-1)),Js("ul",mo,[(Ls(!0),Bs(Ds,null,An(i.value,(e,t)=>(Ls(),Bs("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[e.type?(Ls(),Bs("span",go,Z(e.type),1)):Qs("",!0),Js("time",yo,Z(e.value),1)]))),128))])])):Qs("",!0),e.doc.link||e.doc.yaml?(Ls(),Bs("section",bo,[e.doc.link?(Ls(),Bs("a",{key:0,href:e.doc.link,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1 text-brand hover:underline dark:text-brand-dark"},[Xs(xl,{name:"external",class:"h-4 w-4"}),p[14]||(p[14]=Ys("Landing page",-1))],8,xo)):Qs("",!0),e.doc.yaml?(Ls(),Bs("a",{key:1,href:e.doc.yaml,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1 text-brand hover:underline dark:text-brand-dark"},[Xs(xl,{name:"document",class:"h-4 w-4"}),p[15]||(p[15]=Ys("Raw YAML",-1))],8,_o)):Qs("",!0)])):Qs("",!0)]))}}),ko={key:0,class:"flex items-center justify-center gap-2 text-sm","aria-label":"Pagination"},So=["disabled"],Co={class:"text-slate-500 dark:text-slate-400"},Mo=["disabled"],Oo=ln({__name:"Pagination",props:{page:{},pageCount:{}},emits:["go"],setup(e,{emit:t}){const n=t;return(t,s)=>e.pageCount>1?(Ls(),Bs("nav",ko,[Js("button",{type:"button",class:"rounded-md border border-slate-300 px-3 py-1 disabled:opacity-40 dark:border-slate-700",disabled:1===e.page,onClick:s[0]||(s[0]=t=>n("go",e.page-1))},"Prev",8,So),Js("span",Co,"Page "+Z(e.page)+" of "+Z(e.pageCount),1),Js("button",{type:"button",class:"rounded-md border border-slate-300 px-3 py-1 disabled:opacity-40 dark:border-slate-700",disabled:e.page===e.pageCount,onClick:s[1]||(s[1]=t=>n("go",e.page+1))},"Next",8,Mo)])):Qs("",!0)}}),Eo=Oo,To={class:"min-h-screen bg-slate-50 text-slate-900 dark:bg-slate-950 dark:text-slate-100"},Po={class:"border-b border-slate-200 dark:border-slate-800"},Ao={class:"mx-auto flex max-w-5xl items-center justify-between gap-4 px-4 py-5"},Do={class:"text-2xl font-semibold tracking-tight"},$o={class:"mt-1 text-sm text-slate-500 dark:text-slate-400"},jo=["aria-label","title"],Ro={class:"mx-auto max-w-5xl px-4 py-6"},Fo={class:"sticky top-0 z-10 -mx-4 mb-4 bg-slate-50/90 px-4 py-3 backdrop-blur dark:bg-slate-950/90"},Io={class:"flex flex-wrap items-center gap-3"},Lo={class:"relative min-w-56 flex-1"},Vo={class:"pointer-events-none absolute inset-y-0 left-3 flex items-center text-slate-400"},No={class:"flex items-center gap-1 text-sm"},Uo=["onClick"],zo={class:"flex items-center gap-1 rounded-lg border border-slate-300 p-0.5 dark:border-slate-700"},Bo={key:0,class:"mt-3 flex flex-wrap items-center gap-2"},Ho=["onClick"],Wo=["onClick"],qo={class:"mt-3 flex items-center gap-3 text-xs text-slate-500 dark:text-slate-400"},Ko={key:0,class:"text-slate-400 dark:text-slate-500"},Go={key:1,class:"py-16 text-center text-slate-500 dark:text-slate-400"},Jo={class:"border-t border-slate-200 py-8 text-center text-xs text-slate-500 dark:border-slate-800 dark:text-slate-400"},Xo={key:0,class:"mt-1"},Zo=ln({__name:"App",props:{data:{},hydration:{},loadDetail:{type:Function}},setup(e){const t=e,n={loading:!1,total:null,requestAll:()=>{}},s=xr(()=>t.hydration??n),r=xr(()=>s.value.loading),l=yt(""),o=yt(new Set),a=yt(new Set),i=yt("id"),c=yt("asc"),u=yt(localStorage.getItem("relaton-index-view")||"list"),d=yt(document.documentElement.classList.contains("dark")),f=yt(null),p=xr(()=>t.data.documents),h=xr(()=>il(p.value,"doctype")),v=xr(()=>il(p.value,"stage")),m=xr(()=>Math.max(s.value.total??0,p.value.length)),g=yt(ml()),y=xr(()=>null==g.value?null:p.value.find(e=>e.id===g.value)??null);function b(e){g.value=e,gl(e,"push"),window.scrollTo({top:0})}const x=xr(()=>new Set(p.value.map(e=>e.id)));function _(e){return x.value.has(e)}function w(){g.value=null,gl(null,"replace")}const k=xr(()=>ul(p.value,{query:l.value,doctypes:o.value,stages:a.value,sortKey:i.value,sortDir:c.value})),S=yt(null),C={list:76,grid:128};function M(){const e=window.innerHeight||800,t=S.value?.getBoundingClientRect().top??300,n=Math.max(e-t-120,C.list),s="grid"===u.value&&window.innerWidth>=640?2:1,r=Math.floor(n/C[u.value])*s;return Math.min(100,Math.max(10,r))}const O=yt(M()),E=yt(fl()),T=xr(()=>Math.max(1,Math.ceil(k.value.length/O.value))),P=xr(()=>{const e=(E.value-1)*O.value;return k.value.slice(e,e+O.value)});function A(){const e=M();e!==O.value&&(O.value=e)}function D(){const e=Math.min(E.value,T.value);e!==E.value&&(E.value=e,pl(e,"replace"))}let $;function j(){clearTimeout($),$=setTimeout(A,150)}Yt(u,()=>Lt(A)),Yt([y,r],([e,t])=>{e||(Lt(A),null!=g.value&&(t?s.value.requestAll():(g.value=null,gl(null,"replace"))))},{immediate:!0}),Yt(O,()=>{r.value||D()}),Yt(r,e=>{e||D()}),Yt([l,o,a,i,c],()=>{1!==E.value&&(E.value=1,pl(1,"replace")),s.value.requestAll()});const R=new Set;function F(e){const t=Math.min(T.value,Math.max(1,e));t!==E.value&&(E.value=t,pl(t,"push")),document.getElementById("relaton-index-app")?.scrollIntoView({block:"start"})}function I(){g.value=ml();const e=Math.max(1,fl());E.value=r.value?e:Math.min(T.value,e)}function L(e,t){const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function V(){l.value="",o.value=new Set,a.value=new Set}function N(e){u.value=e,localStorage.setItem("relaton-index-view",e)}function U(){d.value=!d.value,document.documentElement.classList.toggle("dark",d.value);try{localStorage.setItem("relaton-index-theme",d.value?"dark":"light")}catch{}}Yt(y,e=>{const n=t.loadDetail;if(!e||!n)return;const s=function(e){return`${e.id}|${e.yaml??""}`}(e);if(R.has(s))return;R.add(s);const r=e.pos??p.value.indexOf(e);r<0||n(r,e.id).then(n=>{if(!n)return;const{r:s,...r}=n;Object.assign(e,r),r.relations?.length&&t.hydration?.requestAll()}).catch(()=>{})});const z=xr(()=>""!==l.value.trim()||o.value.size>0||a.value.size>0);function H(e){const t=e.target,n=t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable);"/"!==e.key||n?"Escape"===e.key&&t===f.value&&(l.value="",f.value?.blur()):(e.preventDefault(),f.value?.focus())}return _n(()=>{window.addEventListener("keydown",H),window.addEventListener("resize",j),window.addEventListener("popstate",I),Lt(()=>{A(),r.value||D()})}),Cn(()=>{window.removeEventListener("keydown",H),window.removeEventListener("resize",j),window.removeEventListener("popstate",I),clearTimeout($)}),(t,n)=>(Ls(),Bs("div",To,[Js("header",Po,[Js("div",Ao,[Js("div",null,[Js("h1",Do,Z(e.data.title),1),Js("p",$o,Z(e.data.description||"Please use the provided Relaton DocID to refer to an item."),1)]),Js("button",{type:"button",class:"rounded-lg border border-slate-300 p-2 text-slate-600 hover:bg-slate-100 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800","aria-label":d.value?"Switch to light theme":"Switch to dark theme",title:d.value?"Light theme":"Dark theme",onClick:U},[Xs(xl,{name:d.value?"sun":"moon",class:"h-5 w-5"},null,8,["name"])],8,jo)])]),Js("main",Ro,[y.value?(Ls(),Hs(wo,{key:0,doc:y.value,"has-doc":_,onBack:w,onOpen:b},null,8,["doc"])):(Ls(),Bs(Ds,{key:1},[Js("div",Fo,[Js("div",Io,[Js("div",Lo,[Js("span",Vo,[Xs(xl,{name:"search",class:"h-4 w-4"})]),Gt(Js("input",{ref_key:"searchEl",ref:f,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),type:"search",class:"w-full rounded-lg border border-slate-300 bg-white py-2 pl-9 pr-3 text-sm shadow-sm outline-none focus:border-brand focus:ring-2 focus:ring-brand/30 dark:border-slate-700 dark:bg-slate-900","aria-label":"Filter documents by identifier or title",placeholder:"Filter by identifier or title… ( / )"},null,512),[[nl,l.value]])]),Js("div",No,[n[3]||(n[3]=Js("span",{class:"text-slate-500 dark:text-slate-400"},"Sort",-1)),(Ls(),Bs(Ds,null,An(["id","date","title"],e=>Js("button",{key:e,type:"button",class:B(["rounded-md px-2 py-1 capitalize",i.value===e?"bg-brand text-white":"text-slate-600 hover:bg-slate-200 dark:text-slate-300 dark:hover:bg-slate-800"]),onClick:t=>{return n=e,void(i.value===n?c.value="asc"===c.value?"desc":"asc":(i.value=n,c.value="asc"));var n}},[Ys(Z(e),1),i.value===e?(Ls(),Hs(xl,{key:0,name:"asc"===c.value?"chevron-up":"chevron-down",class:"ml-0.5 inline h-3.5 w-3.5"},null,8,["name"])):Qs("",!0)],10,Uo)),64))]),Js("div",zo,[Js("button",{type:"button",class:B(["rounded-md px-2 py-1 text-sm","list"===u.value?"bg-brand text-white":"text-slate-600 dark:text-slate-300"]),"aria-label":"List view",onClick:n[1]||(n[1]=e=>N("list"))},[Xs(xl,{name:"list",class:"h-4 w-4"})],2),Js("button",{type:"button",class:B(["rounded-md px-2 py-1 text-sm","grid"===u.value?"bg-brand text-white":"text-slate-600 dark:text-slate-300"]),"aria-label":"Grid view",onClick:n[2]||(n[2]=e=>N("grid"))},[Xs(xl,{name:"grid",class:"h-4 w-4"})],2)])]),h.value.length||v.value.length?(Ls(),Bs("div",Bo,[(Ls(!0),Bs(Ds,null,An(h.value,e=>(Ls(),Bs("button",{key:"dt-"+e,type:"button",class:B(["rounded-full border px-3 py-1 text-xs",o.value.has(e)?"border-brand bg-brand text-white":"border-slate-300 text-slate-600 hover:border-brand dark:border-slate-700 dark:text-slate-300"]),onClick:t=>{return n=e,void(o.value=L(o.value,n));var n}},Z(e),11,Ho))),128)),(Ls(!0),Bs(Ds,null,An(v.value,e=>(Ls(),Bs("button",{key:"st-"+e,type:"button",class:B(["rounded-full border px-3 py-1 text-xs",a.value.has(e)?"border-emerald-500 bg-emerald-500 text-white":"border-slate-300 text-slate-600 hover:border-emerald-500 dark:border-slate-700 dark:text-slate-300"]),onClick:t=>{return n=e,void(a.value=L(a.value,n));var n}},Z(e),11,Wo))),128))])):Qs("",!0),Js("div",qo,[Js("span",null,Z(k.value.length)+" of "+Z(m.value)+" documents",1),r.value?(Ls(),Bs("span",Ko,"loading…")):Qs("",!0),z.value?(Ls(),Bs("button",{key:1,type:"button",class:"text-brand hover:underline dark:text-brand-dark",onClick:V},"Clear filters")):Qs("",!0)])]),Xs(Eo,{class:"mb-4",page:E.value,"page-count":T.value,onGo:F},null,8,["page","page-count"]),k.value.length?(Ls(),Bs("div",{key:0,ref_key:"listEl",ref:S,class:B("grid"===u.value?"grid grid-cols-1 gap-3 sm:grid-cols-2":"flex flex-col divide-y divide-slate-200 dark:divide-slate-800")},[(Ls(!0),Bs(Ds,null,An(P.value,e=>(Ls(),Hs(Fl,{key:e.id+"|"+(e.yaml??""),doc:e,view:u.value,onOpen:b},null,8,["doc","view"]))),128))],2)):(Ls(),Bs("p",Go," No documents match your filters. ")),Xs(Eo,{class:"mt-6",page:E.value,"page-count":T.value,onGo:F},null,8,["page","page-count"])],64))]),Js("footer",Jo,[n[4]||(n[4]=Js("p",null,[Ys(" An open source project by "),Js("a",{class:"text-brand hover:underline dark:text-brand-dark",href:"https://www.ribose.com"},"Ribose"),Ys(". Built with "),Js("a",{class:"text-brand hover:underline dark:text-brand-dark",href:"https://www.relaton.org"},"Relaton"),Ys(". ")],-1)),e.data.generated?(Ls(),Bs("p",Xo,"Generated "+Z(e.data.generated),1)):Qs("",!0)])]))}}),Yo=Zo;function Qo(e){const t=Number.parseInt(e??"",10);return Number.isFinite(t)&&t>0?t:0}function ea(e){return{total:Qo(e.dataset.total),shards:Qo(e.dataset.shards),shardSize:Qo(e.dataset.shardSize),detailShards:Qo(e.dataset.detailShards),detailShardSize:Qo(e.dataset.detailShardSize)}}function ta(e){return e.dataset.title||document.querySelector("h1")?.textContent?.trim()||document.title||"Relaton Index"}function na(e){return e.dataset.description||null}function sa(e,t){return`${e}-${String(t).padStart(4,"0")}.json`}async function ra(e){try{const t=await fetch(e);if(!t.ok)return null;const n=await t.json();return Array.isArray(n)?n:null}catch{return null}}async function la(e){const t=await ra(e);return t||ra(e)}function oa(e){const t=new Map,n=new Map;return async function(s,r){const{detailShards:l,detailShardSize:o}=e;if(l<=0||o<=0||s<0)return null;const a=Math.floor(s/o);if(a>=l)return null;let i=t.get(a);if(!i){let e=n.get(a);e||(e=ra(sa("detail",a)).then(e=>e??[]),n.set(a,e)),i=await e,t.set(a,i),n.delete(a)}const c=i[s%o];return c&&c.r===r?c:i.find(e=>null!=e&&e.r===r)??null}}function aa(){const e=document.getElementById("relaton-index-app");if(!e)return;!function(){try{const e=localStorage.getItem("relaton-index-theme"),t="dark"===e||null===e&&window.matchMedia?.("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",!!t)}catch{}}();const{data:t,shards:n}=function(e){return{data:{title:ta(e),description:na(e),documents:[],generated:e.dataset.generated||null},shards:ea(e)}}(e),s=at({...t});let r=!1;function l(){r||n.shards<=0||(r=!0,async function(e,t,n={}){const s=e.shards;if(s<=0)return;const r=n.flushMs??750,l=n.now??(()=>Date.now()),o=new Array(s).fill(null);let a=[],i=0,c=0,u=-1/0;const d=e=>{let n=!1;for(;i<s&&o[i];)a=a.concat(o[i]),o[i]=null,i++,n=!0;if(!n&&!e)return;const c=l();!e&&c-u<r||(u=c,t(a))},f=Math.max(1,Math.min(n.concurrency??4,s));await Promise.all(Array.from({length:f},async()=>{for(let t=c++;t<s;t=c++){const n=await la(sa("search",t));if(!n){o[t]=[],d(!1);continue}const s=t*e.shardSize;o[t]=n.map((e,t)=>{return r=s+t,{id:(n=e).r??"",title:n.c??"",doctype:n.t||null,stage:n.s||null,date:n.d||null,link:n.l||null,yaml:n.u||null,...void 0===r?{}:{pos:r}};var n,r}),d(!1)}})),d(!0)}(n,e=>{s.documents=e}).catch(e=>{}).finally(()=>{o.loading=!1}))}const o=at({loading:n.shards>0,total:n.total,requestAll:l});var a;n.shards>0&&(a=l,"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>a(),{timeout:2e3}):window.setTimeout(a,0)),al(Yo,{data:s,hydration:o,loadDetail:oa(n)}).mount(e)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",aa,{once:!0}):aa()}();
|
|
1
|
+
!function(){function e(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}var t,n={},s=[],r=()=>{},l=()=>!1,o=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),i=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u=Object.prototype.hasOwnProperty,d=(e,t)=>u.call(e,t),f=Array.isArray,p=e=>"[object Map]"===w(e),h=e=>"[object Set]"===w(e),v=e=>"[object Date]"===w(e),m=e=>"function"==typeof e,g=e=>"string"==typeof e,y=e=>"symbol"==typeof e,b=e=>null!==e&&"object"==typeof e,x=e=>(b(e)||m(e))&&m(e.then)&&m(e.catch),_=Object.prototype.toString,w=e=>_.call(e),k=e=>"[object Object]"===w(e),S=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,C=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},O=/-\w/g,E=M(e=>e.replace(O,e=>e.slice(1).toUpperCase())),T=/\B([A-Z])/g,P=M(e=>e.replace(T,"-$1").toLowerCase()),A=M(e=>e.charAt(0).toUpperCase()+e.slice(1)),D=M(e=>e?`on${A(e)}`:""),j=(e,t)=>!Object.is(e,t),$=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},I=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},R=e=>{const t=parseFloat(e);return isNaN(t)?e:t},F=()=>t||(t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function L(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=g(s)?z(s):L(s);if(r)for(const e in r)t[e]=r[e]}return t}if(g(e)||b(e))return e}var V=/;(?![^(]*\))/g,N=/:([^]+)/,U=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(U,e=>e.startsWith("/*")?"":e).split(V).forEach(e=>{if(e){const n=e.split(N);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function B(e){let t="";if(g(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const s=B(e[n]);s&&(t+=s+" ")}else if(b(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var W=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly");function H(e){return!!e||""===e}function q(e,t,n){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=X(e[r],t[r],n);return s}function K(e,t,n){if(e.size!==t.size)return!1;const s=Array.from(t),r=new Uint8Array(s.length);for(const l of e){let e=-1;for(let t=0;t<s.length;t++)if(!r[t]&&X(l,s[t],n)){e=t;break}if(e<0)return!1;r[e]=1}return!0}function G(e,t,n){let s=p(e),r=p(t);if(s||r)return!(!s||!r)&&K(e,t,n);if(s=h(e),r=h(t),s||r)return!(!s||!r)&&K(e,t,n);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const l in e){const s=e.hasOwnProperty(l),r=t.hasOwnProperty(l);if(s&&!r||!s&&r||!X(e[l],t[l],n))return!1}return String(e)===String(t)}function J(e,t,n,s){n||(n=[new Map,new Map]);const[r,l]=n;if(r.has(e)||l.has(t))return r.get(e)===t&&l.get(t)===e;r.set(e,t),l.set(t,e);const o=s(e,t,n);return r.delete(e),l.delete(t),o}function X(e,t,n){if(e===t)return!0;let s=v(e),r=v(t);return s||r?!(!s||!r)&&e.getTime()===t.getTime():(s=y(e),r=y(t),s||r?e===t:(s=f(e),r=f(t),s||r?!(!s||!r)&&J(e,t,n,q):(s=b(e),r=b(t),s||r?!(!s||!r)&&J(e,t,n,G):String(e)===String(t))))}var Z,Y,Q=e=>!(!e||!0!==e.__v_isRef),ee=e=>g(e)?e:null==e?"":f(e)||b(e)&&(e.toString===_||!m(e.toString))?Q(e)?ee(e.value):JSON.stringify(e,te,2):String(e),te=(e,t)=>Q(t)?te(e,t.value):p(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],s)=>(e[ne(t,s)+" =>"]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ne(e))}:y(t)?ne(t):!b(t)||f(t)||k(t)?t:String(t),ne=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},se=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Z&&(Z.active?(this.parent=Z,this.index=(Z.scopes||(Z.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[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){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=Z;try{return Z=this,e()}finally{Z=t}}}on(){1===++this._on&&(this.prevScope=Z,Z=this)}off(){if(this._on>0&&0===--this._on){if(Z===this)Z=this.prevScope;else{let e=Z;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.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){const e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[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}}};var re,le,oe=new WeakSet,ae=class{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,Z&&(Z.active?Z.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,oe.has(this)&&(oe.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ce(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,we(this),fe(this);const e=Y,t=ye;Y=this,ye=!0;try{return this.fn()}finally{pe(this),Y=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,we(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?oe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){he(this)&&this.run()}get dirty(){return he(this)}},ie=0;function ce(e,t=!1){if(e.flags|=8,t)return e.next=le,void(le=e);e.next=re,re=e}function ue(){ie++}function de(){if(--ie>0)return;if(le){let e=le;for(le=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;re;){let n=re;for(re=void 0;n;){const s=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=s}}if(e)throw e}function fe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pe(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 he(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ve(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===ke)return;if(e.globalVersion=ke,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!he(e)))return;e.flags|=2;const t=e.dep,n=Y,s=ye;Y=e,ye=!0;try{fe(e);const n=e.fn(e._value);(0===t.version||j(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(r){throw t.version++,r}finally{Y=n,ye=s,pe(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)}var ye=!0,be=[];function xe(){be.push(ye),ye=!1}function _e(){const e=be.pop();ye=void 0===e||e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Y;Y=void 0;try{t()}finally{Y=e}}}var ke=0,Se=class{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}},Ce=class{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(!Y||!ye||Y===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Y)t=this.activeLink=new Se(Y,this),Y.deps?(t.prevDep=Y.depsTail,Y.depsTail.nextDep=t,Y.depsTail=t):Y.deps=Y.depsTail=t,Me(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=Y.depsTail,t.nextDep=void 0,Y.depsTail.nextDep=t,Y.depsTail=t,Y.deps===t&&(Y.deps=e)}return t}trigger(e){this.version++,ke++,this.notify(e)}notify(e){ue();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{de()}}};function Me(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)Me(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Oe=new WeakMap,Ee=Symbol(""),Te=Symbol(""),Pe=Symbol("");function Ae(e,t,n){if(ye&&Y){let t=Oe.get(e);t||Oe.set(e,t=new Map);let s=t.get(n);s||(t.set(n,s=new Ce),s.map=t,s.key=n),s.track()}}function De(e,t,n,s,r,l){const o=Oe.get(e);if(!o)return void ke++;const a=e=>{e&&e.trigger()};if(ue(),"clear"===t)o.forEach(a);else{const r=f(e),l=r&&S(n);if(r&&"length"===n){const e=Number(s);o.forEach((t,n)=>{("length"===n||n===Pe||!y(n)&&n>=e)&&a(t)})}else switch((void 0!==n||o.has(void 0))&&a(o.get(n)),l&&a(o.get(Pe)),t){case"add":r?l&&a(o.get("length")):(a(o.get(Ee)),p(e)&&a(o.get(Te)));break;case"delete":r||(a(o.get(Ee)),p(e)&&a(o.get(Te)));break;case"set":p(e)&&a(o.get(Ee))}}de()}function je(e){const t=yt(e);return t===e?t:(Ae(t,0,Pe),mt(e)?t:vt(e)?ht(e)?t.map(e=>xt(bt(e))):t.map(xt):t.map(bt))}function $e(e){return Ae(e=yt(e),0,Pe),e}function Ie(e,t){return vt(e)?xt(ht(e)?bt(t):t):bt(t)}var Re={__proto__:null,[Symbol.iterator](){return Fe(this,Symbol.iterator,e=>Ie(this,e))},concat(...e){return je(this).concat(...e.map(e=>f(e)?je(e):e))},entries(){return Fe(this,"entries",e=>(e[1]=Ie(this,e[1]),e))},every(e,t){return Ne(this,"every",e,t,void 0,arguments)},filter(e,t){return Ne(this,"filter",e,t,e=>e.map(e=>Ie(this,e)),arguments)},find(e,t){return Ne(this,"find",e,t,e=>Ie(this,e),arguments)},findIndex(e,t){return Ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ne(this,"findLast",e,t,e=>Ie(this,e),arguments)},findLastIndex(e,t){return Ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return ze(this,"includes",e)},indexOf(...e){return ze(this,"indexOf",e)},join(e){return je(this).join(e)},lastIndexOf(...e){return ze(this,"lastIndexOf",e)},map(e,t){return Ne(this,"map",e,t,void 0,arguments)},pop(){return Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return Ue(this,"reduce",e,t)},reduceRight(e,...t){return Ue(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return Ne(this,"some",e,t,void 0,arguments)},splice(...e){return Be(this,"splice",e)},toReversed(){return je(this).toReversed()},toSorted(e){return je(this).toSorted(e)},toSpliced(...e){return je(this).toSpliced(...e)},unshift(...e){return Be(this,"unshift",e)},values(){return Fe(this,"values",e=>Ie(this,e))}};function Fe(e,t,n){const s=$e(e),r=s[t],l=r.call(s);if(s!==e&&!mt(e)){if("Array Iterator"===l[Symbol.toStringTag]){const e=Object.create(Object.getPrototypeOf(l));return e.next=()=>Le(l.next(),n),r!==Ve[t]&&Object.defineProperties(e,{return:{get(){const e=l.return;return"function"==typeof e?e.bind(l):e}},throw:{get(){const e=l.throw;return"function"==typeof e?e.bind(l):e}}}),e}l._next=l.next,l.next=()=>Le(l._next(),n)}return l}function Le(e,t){return e.done||(e.value=t(e.value)),e}var Ve=Array.prototype;function Ne(e,t,n,s,r,l){const o=$e(e),a=o!==e&&!mt(e),i=o[t];if(i!==Ve[t]){const t=i.apply(e,l);return a?bt(t):t}let c=n;o!==e&&(a?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=i.call(o,c,s);return a&&r?r(u):u}function Ue(e,t,n,s){const r=$e(e);let l=n,o=!1;r!==e&&(r!==e&&!mt(e)?(o=0===s.length,l=function(t,s,r){return o&&(o=!1,t=Ie(e,t)),n.call(this,t,Ie(e,s),r,e)}):n.length>3&&(l=function(t,s,r){return n.call(this,t,s,r,e)}));const a=r[t](l,...s);return o?Ie(e,a):a}function ze(e,t,n){const s=yt(e);Ae(s,0,Pe);const r=s[t](...n);return-1!==r&&!1!==r||!gt(n[0])?r:(n[0]=yt(n[0]),s[t](...n))}function Be(e,t,n=[]){xe(),ue();const s=yt(e)[t].apply(e,n);return de(),_e(),s}var We=e("__proto__,__v_isRef,__isVue"),He=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function qe(e){y(e)||(e=String(e));const t=yt(this);return Ae(t,0,e),t.hasOwnProperty(e)}var Ke=class{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?ut:ct:r?it:at).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const l=f(e);if(!s){let e;if(l&&(e=Re[t]))return e;if("hasOwnProperty"===t)return qe}const o=Reflect.get(e,t,_t(e)?e:n);if(y(t)?He.has(t):We(t))return o;if(s||Ae(e,0,t),r)return o;if(_t(o)){const e=l&&S(t)?o:o.value;return s&&b(e)?ft(e):e}return b(o)?s?ft(o):dt(o):o}},Ge=class extends Ke{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];const l=f(e)&&S(t);if(!this._isShallow){const e=vt(r);if(mt(n)||vt(n)||(r=yt(r),n=yt(n)),!l&&_t(r)&&!_t(n))return e||(r.value=n),!0}const o=l?Number(t)<e.length:d(e,t),a=Reflect.set(e,t,n,_t(e)?e:s);return e===yt(s)&&a&&(o?j(n,r)&&De(e,"set",t,n):De(e,"add",t,n)),a}deleteProperty(e,t){const n=d(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&De(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return y(t)&&He.has(t)||Ae(e,0,t),n}ownKeys(e){return Ae(e,0,f(e)?"length":Ee),Reflect.ownKeys(e)}},Je=class extends Ke{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Xe=new Ge,Ze=new Je,Ye=new Ge(!0),Qe=e=>e,et=e=>Reflect.getPrototypeOf(e);function tt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function nt(e,t){const n={get(n){const s=this.__v_raw,r=yt(s),l=yt(n);e||(j(n,l)&&Ae(r,0,n),Ae(r,0,l));const{has:o}=et(r),a=t?Qe:e?xt:bt;return o.call(r,n)?a(s.get(n)):o.call(r,l)?a(s.get(l)):void(s!==r&&s.get(n))},get size(){const t=this.__v_raw;return!e&&Ae(yt(t),0,Ee),t.size},has(t){const n=this.__v_raw,s=yt(n),r=yt(t);return e||(j(t,r)&&Ae(s,0,t),Ae(s,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,s){const r=this,l=r.__v_raw,o=t?Qe:e?xt:bt;return!e&&Ae(yt(l),0,Ee),l.forEach((e,t)=>n.call(s,o(e),o(t),r))}};return i(n,e?{add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear")}:{add(e){const n=yt(this),s=et(n),r=yt(e),l=t||mt(e)||vt(e)?e:r;return s.has.call(n,l)||j(e,l)&&s.has.call(n,e)||j(r,l)&&s.has.call(n,r)||(n.add(l),De(n,"add",l,l)),this},set(e,n){t||mt(n)||vt(n)||(n=yt(n));const s=yt(this),{has:r,get:l}=et(s);let o=r.call(s,e);o||(e=yt(e),o=r.call(s,e));const a=l.call(s,e);return s.set(e,n),o?j(n,a)&&De(s,"set",e,n):De(s,"add",e,n),this},delete(e){const t=yt(this),{has:n,get:s}=et(t);let r=n.call(t,e);r||(e=yt(e),r=n.call(t,e));s&&s.call(t,e);const l=t.delete(e);return r&&De(t,"delete",e,void 0),l},clear(){const e=yt(this),t=0!==e.size,n=e.clear();return t&&De(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=function(e,t,n){return function(...s){const r=this.__v_raw,l=yt(r),o=p(l),a="entries"===e||e===Symbol.iterator&&o,c="keys"===e&&o,u=r[e](...s),d=n?Qe:t?xt:bt;return!t&&Ae(l,0,c?Te:Ee),i(Object.create(u),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(s,e,t)}),n}function st(e,t){const n=nt(e,t);return(s,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_isShallow"===r?t:"__v_raw"===r?s:Reflect.get(d(n,r)&&r in s?n:s,r,l)}var rt={get:st(!1,!1)},lt={get:st(!1,!0)},ot={get:st(!0,!1)},at=new WeakMap,it=new WeakMap,ct=new WeakMap,ut=new WeakMap;function dt(e){return vt(e)?e:pt(e,!1,Xe,rt,at)}function ft(e){return pt(e,!0,Ze,ot,ct)}function pt(e,t,n,s,r){if(!b(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const l=r.get(e);if(l)return l;const o=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(w(e).slice(8,-1));if(0===o)return e;const a=new Proxy(e,2===o?s:n);return r.set(e,a),a}function ht(e){return vt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function vt(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}var bt=e=>b(e)?dt(e):e,xt=e=>b(e)?ft(e):e;function _t(e){return!!e&&!0===e.__v_isRef}function wt(e){return n=!1,_t(t=e)?t:new kt(t,n);var t,n}var kt=class{constructor(e,t){this.dep=new Ce,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:yt(e),this._value=t?e:bt(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)||vt(e);j(e=n?e:yt(e),t)&&(this._rawValue=e,this._value=n?e:bt(e),this.dep.trigger())}};var St={get:(e,t,n)=>{return"__v_raw"===t?e:_t(s=Reflect.get(e,t,n))?s.value:s;var s},set:(e,t,n,s)=>{const r=e[t];return _t(r)&&!_t(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ct(e){return ht(e)?e:new Proxy(e,St)}var Mt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ce(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ke-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&Y!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};var Ot={},Et=new WeakMap,Tt=void 0;function Pt(e,t,s=n){const{immediate:l,deep:o,once:a,scheduler:i,augmentJob:u,call:d}=s,p=e=>o?e:mt(e)||!1===o||0===o?At(e,1):At(e);let h,v,g,y,b=!1,x=!1;if(_t(e)?(v=()=>e.value,b=mt(e)):ht(e)?(v=()=>p(e),b=!0):f(e)?(x=!0,b=e.some(e=>ht(e)||mt(e)),v=()=>e.map(e=>_t(e)?e.value:ht(e)?p(e):m(e)?d?d(e,2):e():void 0)):v=m(e)?t?d?()=>d(e,2):e:()=>{if(g){xe();try{g()}finally{_e()}}const t=Tt;Tt=h;try{return d?d(e,3,[y]):e(y)}finally{Tt=t}}:r,t&&o){const e=v,t=!0===o?1/0:o;v=()=>At(e(),t)}const _=Z,w=()=>{h.stop(),_&&_.active&&c(_.effects,h)};if(a&&t){const e=t;t=(...t)=>{try{return e(...t)}finally{w()}}}let k=x?new Array(e.length).fill(Ot):Ot;const S=e=>{if(1&h.flags&&(h.dirty||e))if(t){const n=h.run();if(e||o||b||(x?n.some((e,t)=>j(e,k[t])):j(n,k))){const e=Tt;xe();try{g&&g(),Tt=h;const e=[n,k===Ot?void 0:x&&k[0]===Ot?[]:k,y];k=n,d?d(t,3,e):t(...e)}finally{Tt=e,_e()}}}else h.run()};return u&&u(S),h=new ae(v),h.scheduler=i?()=>i(S,!1):S,y=e=>function(e,t=!1,n=Tt){if(n){let t=Et.get(n);t||Et.set(n,t=[]),t.push(e)}}(e,!1,h),g=h.onStop=()=>{const e=Et.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Et.delete(h)}},t?l?S(!0):k=h.run():i?i(S.bind(null,!0),!0):h.run(),w.pause=h.pause.bind(h),w.resume=h.resume.bind(h),w.stop=w,w}function At(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--,_t(e))At(e.value,t,n);else if(f(e))for(let s=0;s<e.length;s++)At(e[s],t,n);else if(h(e)||p(e))e.forEach(e=>{At(e,t,n)});else if(k(e)){for(const s in e)At(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&At(e[s],t,n)}return e}function Dt(e,t,n,s){try{return s?e(...s):e()}catch(r){$t(r,t,n)}}function jt(e,t,n,s){if(m(e)){const r=Dt(e,t,n,s);return r&&x(r)&&r.catch(e=>{$t(e,t,n)}),r}if(f(e)){const r=[];for(let l=0;l<e.length;l++)r.push(jt(e[l],t,n,s));return r}}function $t(e,t,s,r=!0){t&&t.vnode;const{errorHandler:l,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||n;if(t){let n=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${s}`;for(;n;){const t=n.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;n=n.parent}if(l)return xe(),Dt(l,null,10,[e,r,o]),void _e()}!function(e,t,n,s=!0,r=!1){if(r)throw e}(e,0,0,r,o)}var It=[],Rt=-1,Ft=[],Lt=null,Vt=0,Nt=Promise.resolve(),Ut=null;function zt(e){const t=Ut||Nt;return e?t.then(this?e.bind(this):e):t}function Bt(e){if(!(1&e.flags)){const t=Gt(e),n=It[It.length-1];!n||!(2&e.flags)&&t>=Gt(n)?It.push(e):It.splice(function(e){let t=Rt+1,n=It.length;for(;t<n;){const s=t+n>>>1,r=It[s],l=Gt(r);l<e||l===e&&2&r.flags?t=s+1:n=s}return t}(t),0,e),e.flags|=1,Wt()}}function Wt(){Ut||(Ut=Nt.then(Jt))}function Ht(e,t,n,s=Rt+1){for(;s<It.length;s++){const n=It[s];if(n&&2&n.flags){if(e&&n.id!==e.uid||void 0!==t&&!(n.id>=t))continue;It.splice(s,1),s=e?s-1:Rt,4&n.flags&&(n.flags&=-2),n(),4&n.flags||(n.flags&=-2)}}}function qt(e,t,n=0){if(Ft.length){let e=Ft,s=0;if(t){e=[];for(let r=0;r<Ft.length;r++){const l=Ft[r];(void 0!==l.i?!l.i||l.i.uid<n:t.has(l))?Ft[s++]=l:e.push(l)}}const r=[...new Set(e)].sort((e,t)=>Gt(e)-Gt(t));if(Ft.length=s,Lt){for(let e=0;e<r.length;e++)Lt.push(r[e]);return}for(Lt=r,Vt=0;Vt<Lt.length;Vt++){const e=Lt[Vt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Lt=null,Vt=0}}var Kt=!1;var Gt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Jt(e){try{for(Rt=0;Rt<It.length;Rt++){const e=It[Rt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Dt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Rt<It.length;Rt++){const e=It[Rt];e&&(e.flags&=-2)}Rt=-1,It.length=0,qt(),Ut=null,(It.length||Ft.length)&&Jt(e)}}var Xt=null,Zt=null;function Yt(e){const t=Xt;return Xt=e,Zt=e&&e.type.__scopeId||null,t}function Qt(e,t){if(null===Xt)return e;const s=Er(Xt),r=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[e,o,a,i=n]=t[l];e&&(m(e)&&(e={mounted:e,updated:e}),e.deep&&At(o),r.push({dir:e,instance:s,value:o,oldValue:void 0,arg:a,modifiers:i}))}return e}function en(e,t,n,s){const r=e.dirs,l=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];l&&(a.oldValue=l[o].value);let i=a.dir[s];i&&(xe(),jt(i,n,8,[e.el,a,e,t]),_e())}}function tn(e,t,n=!1){const s=yr();if(s||os){let r=os?os._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&&m(t)?t.call(s&&s.proxy):t}}var nn=Symbol.for("v-scx");function sn(e,t,n){return rn(e,t,n)}function rn(e,t,s=n){const{immediate:l,deep:o,flush:a,once:c}=s,u=i({},s),d=t&&l||!t&&"post"!==a;let f;if(Sr)if("sync"===a){const e=tn(nn);f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}const p=gr;u.call=(e,t,n)=>jt(e,p,t,n);let h=!1;"post"===a?u.scheduler=e=>{e.i=p,Ds(e,p&&p.suspense)}:"sync"!==a&&(h=!0,u.scheduler=(e,t)=>{t?e():Bt(e)}),u.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const v=Pt(e,t,u);return Sr&&(f?f.push(v):d&&v()),v}function ln(e,t,n){const s=this.proxy,r=g(e)?e.includes(".")?on(s,e):()=>s[e]:e.bind(s,s);let l;m(t)?l=t:(l=t.handler,n=t);const o=br(this),a=rn(r,l.bind(s),n);return o(),a}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}}var an=Symbol("_vte"),cn=e=>e.__isTeleport,un=Symbol("_leaveCb");function dn(e){if(!_n(e))return cn(e.type)&&e.children?function(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==Bs){t=n;break}return t}(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&m(n.default))return n.default()}}function fn(e,t){if(6&e.shapeFlag&&e.component){e.transition=t;const n=e.component.subTree;fn(cn(n.type)&&dn(n)||n,t)}else if(128&e.shapeFlag)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===Us&&f(e.children)){const n=fs(e.children,!1);n&&fn(n,t)}}function pn(e){if(e.component)return pn(e.component.subTree);if(e.type===Us){const t=f(e.children)&&fs(e.children,!1);return t?pn(t):void 0}return e.type!==Bs?e:void 0}function hn(e,t){return m(e)?(()=>i({name:e.name},t,{setup:e}))():e}function vn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mn(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}var gn=new WeakMap;function yn(e,t,s,r,o=!1){if(f(e))return void e.forEach((e,n)=>yn(e,t&&(f(t)?t[n]:t),s,r,o));if(xn(r)&&!o)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&yn(e,t,s,r.component.subTree));const a=4&r.shapeFlag?Er(r.component):r.el,i=o?null:a,{i:u,r:p}=e,h=t&&t.r,v=u.refs===n?u.refs={}:u.refs,y=u.setupState,b=yt(y),x=y===n?l:e=>!mn(v,e)&&d(b,e),_=(e,t)=>!t||!mn(v,t);if(null!=h&&h!==p)if(bn(t),g(h))v[h]=null,x(h)&&(y[h]=null);else if(_t(h)){const e=t;_(0,e.k)&&(h.value=null),e.k&&(v[e.k]=null)}if(m(p))Dt(p,u,12,[i,v]);else{const t=g(p),n=_t(p);if(t||n){const r=()=>{if(e.f){const n=t?x(p)?y[p]:v[p]:_()||!e.k?p.value:v[e.k];if(o)f(n)&&c(n,a);else if(f(n))n.includes(a)||n.push(a);else if(t)v[p]=[a],x(p)&&(y[p]=v[p]);else{const t=[a];_(0,e.k)&&(p.value=t),e.k&&(v[e.k]=t)}}else t?(v[p]=i,x(p)&&(y[p]=i)):n&&(_(0,e.k)&&(p.value=i),e.k&&(v[e.k]=i))};if(i){const t=()=>{r(),gn.delete(e)};t.id=-1,gn.set(e,t),Ds(t,s)}else bn(e),r()}}}function bn(e){const t=gn.get(e);t&&(t.flags|=8,gn.delete(e))}F().requestIdleCallback,F().cancelIdleCallback;var xn=e=>!!e.type.__asyncLoader,_n=e=>e.type.__isKeepAlive;function wn(e,t){Sn(e,"a",t)}function kn(e,t){Sn(e,"da",t)}function Sn(e,t,n=gr){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Mn(t,s,n),n){let e=n.parent;for(;e&&e.parent;)_n(e.parent.vnode)&&Cn(s,t,n,e),e=e.parent}}function Cn(e,t,n,s){const r=Mn(t,e,s,!0);jn(()=>{c(s[t],r)},n)}function Mn(e,t,n=gr,s=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{xe();const r=br(n),l=jt(t,n,e,s);return r(),_e(),l});return s?r.unshift(l):r.push(l),l}}var On=e=>(t,n=gr)=>{Sr&&"sp"!==e||Mn(e,(...e)=>t(...e),n)},En=On("bm"),Tn=On("m"),Pn=On("bu"),An=On("u"),Dn=On("bum"),jn=On("um"),$n=On("sp"),In=On("rtg"),Rn=On("rtc");function Fn(e,t=gr){Mn("ec",e,t)}var Ln=Symbol.for("v-ndc");function Vn(e,t,n,s){let r;const l=n&&n[s],o=f(e);if(o||g(e)){let n=!1,s=!1;o&&ht(e)&&(n=!mt(e),s=vt(e),e=$e(e)),r=new Array(e.length);for(let o=0,a=e.length;o<a;o++)r[o]=t(n?s?xt(bt(e[o])):bt(e[o]):e[o],o,void 0,l&&l[o])}else if("number"==typeof e)if(!Number.isInteger(e)||e<0)r=[];else{r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,l&&l[n])}else if(b(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,l&&l[n]));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,l&&l[s])}}else r=[];return n&&(n[s]=r),r}var Nn=e=>e?_r(e)?Er(e):Nn(e.parent):null,Un=i(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=>Nn(e.parent),$root:e=>Nn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jn(e),$forceUpdate:e=>e.f||(e.f=()=>{Bt(e.update)}),$nextTick:e=>e.n||(e.n=zt.bind(e.proxy)),$watch:e=>ln.bind(e)}),zn=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),Bn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:s,setupState:r,data:l,props:o,accessCache:a,type:i,appContext:c}=e;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return l[t];case 4:return s[t];case 3:return o[t]}else{if(zn(r,t))return a[t]=1,r[t];if(l!==n&&d(l,t))return a[t]=2,l[t];if(d(o,t))return a[t]=3,o[t];if(s!==n&&d(s,t))return a[t]=4,s[t];Hn&&(a[t]=0)}}const u=Un[t];let f,p;return u?("$attrs"===t&&Ae(e.attrs,0,""),u(e)):(f=i.__cssModules)&&(f=f[t])?f:s!==n&&d(s,t)?(a[t]=4,s[t]):(p=c.config.globalProperties,d(p,t)?p[t]:void 0)},set({_:e},t,s){const{data:r,setupState:l,ctx:o}=e;return zn(l,t)?(l[t]=s,!0):r!==n&&d(r,t)?(r[t]=s,!0):!d(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=s,!0))},has({_:{data:e,setupState:t,accessCache:s,ctx:r,appContext:l,props:o,type:a}},i){let c;return!!(s[i]||e!==n&&"$"!==i[0]&&d(e,i)||zn(t,i)||d(o,i)||d(r,i)||d(Un,i)||d(l.config.globalProperties,i)||(c=a.__cssModules)&&c[i])},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 Wn(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Hn=!0;function qn(e){const t=Jn(e),n=e.proxy,s=e.ctx;Hn=!1,t.beforeCreate&&Kn(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:a,watch:i,provide:c,inject:u,created:d,beforeMount:p,mounted:h,beforeUpdate:v,updated:g,activated:y,deactivated:x,beforeDestroy:_,beforeUnmount:w,destroyed:k,unmounted:S,render:C,renderTracked:M,renderTriggered:O,errorCaptured:E,serverPrefetch:T,expose:P,inheritAttrs:A,components:D,directives:j,filters:$}=t;if(u&&function(e,t){f(e)&&(e=Qn(e));for(const n in e){const s=e[n];let r;r=b(s)?"default"in s?tn(s.from||n,s.default,!0):tn(s.from||n):tn(s),_t(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(u,s,null),a)for(const r in a){const e=a[r];m(e)&&(s[r]=e.bind(n))}if(l){const t=l.call(n,n);b(t)&&(e.data=dt(t))}if(Hn=!0,o)for(const f in o){const e=o[f],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):r,l=!m(e)&&m(e.set)?e.set.bind(n):r,a=Tr({get:t,set:l});Object.defineProperty(s,f,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(i)for(const r in i)Gn(i[r],s,n,r);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(gr){let n=gr.provides;const s=gr.parent&&gr.parent.provides;s===n&&(n=gr.provides=Object.create(s)),n[e]=t}}(t,e[t])})}function I(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&Kn(d,e,"c"),I(En,p),I(Tn,h),I(Pn,v),I(An,g),I(wn,y),I(kn,x),I(Fn,E),I(Rn,M),I(In,O),I(Dn,w),I(jn,S),I($n,T),f(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===r&&(e.render=C),null!=A&&(e.inheritAttrs=A),D&&(e.components=D),j&&(e.directives=j),T&&vn(e)}function Kn(e,t,n){jt(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gn(e,t,n,s){let r=s.includes(".")?on(n,s):()=>n[s];if(g(e)){const n=t[e];m(n)&&sn(r,n)}else if(m(e))sn(r,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>Gn(e,t,n,s));else{const s=m(e.handler)?e.handler.bind(n):t[e.handler];m(s)&&sn(r,s,e)}}function Jn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,a=l.get(t);let i;return a?i=a:r.length||n||s?(i={},r.length&&r.forEach(e=>Xn(i,e,o,!0)),Xn(i,t,o)):i=t,b(t)&&l.set(t,i),i}function Xn(e,t,n,s=!1){const{mixins:r,extends:l}=t;l&&Xn(e,l,n,!0),r&&r.forEach(t=>Xn(e,t,n,!0));for(const o in t)if(s&&"expose"===o);else{const s=Zn[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var Zn={data:Yn,props:ns,emits:ns,methods:ts,computed:ts,beforeCreate:es,created:es,beforeMount:es,mounted:es,beforeUpdate:es,updated:es,beforeDestroy:es,beforeUnmount:es,destroyed:es,unmounted:es,activated:es,deactivated:es,errorCaptured:es,serverPrefetch:es,components:ts,directives:ts,watch:function(e,t){if(!e)return t;if(!t)return e;const n=i(Object.create(null),e);for(const s in t)n[s]=es(e[s],t[s]);return n},provide:Yn,inject:function(e,t){return ts(Qn(e),Qn(t))}};function Yn(e,t){return t?e?function(){return i(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function Qn(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function es(e,t){return e?[...new Set([].concat(e,t))]:t}function ts(e,t){return e?i(Object.create(null),e,t):t}function ns(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:i(Object.create(null),Wn(e),Wn(null!=t?t:{})):t}function ss(){return{app:null,config:{isNativeTag:l,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}}var rs=0;function ls(e,t){return function(n,s=null){m(n)||(n=i({},n)),null==s||b(s)||(s=null);const r=ss(),l=new WeakSet,o=[];let a=!1;const c=r.app={_uid:rs++,_component:n,_props:s,_container:null,_context:r,_instance:null,version:Pr,get config(){return r.config},set config(e){},use:(e,...t)=>(l.has(e)||(e&&m(e.install)?(l.add(e),e.install(c,...t)):m(e)&&(l.add(e),e(c,...t))),c),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),c),component:(e,t)=>t?(r.components[e]=t,c):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,c):r.directives[e],mount(l,o,i){if(!a){const u=c._ceVNode||lr(n,s);return u.appContext=r,!0===i?i="svg":!1===i&&(i=void 0),o&&t?t(u,l):e(u,l,i),a=!0,c._container=l,l.__vue_app__=c,Er(u.component)}},onUnmount(e){o.push(e)},unmount(){a&&(jt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,c),runWithContext(e){const t=os;os=c;try{return e()}finally{os=t}}};return c}}var os=null;function as(e,t,...s){if(e.isUnmounted)return;const r=e.vnode.props||n;let l=s;const o=t.startsWith("update:"),a=o&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${P(t)}Modifiers`])(r,t.slice(7));let i;a&&(a.trim&&(l=s.map(e=>g(e)?e.trim():e)),a.number&&(l=l.map(R)));let c=r[i=D(t)]||r[i=D(E(t))];!c&&o&&(c=r[i=D(P(t))]),c&&jt(c,e,6,l);const u=r[i+"Once"];if(u){if(e.emitted){if(e.emitted[i])return}else e.emitted={};e.emitted[i]=!0,jt(u,e,6,l)}}var is=new WeakMap;function cs(e,t,n=!1){const s=n?is:t.emitsCache,r=s.get(e);if(void 0!==r)return r;const l=e.emits;let o={},a=!1;if(!m(e)){const s=e=>{const n=cs(e,t,!0);n&&(a=!0,i(o,n))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return l||a?(f(l)?l.forEach(e=>o[e]=null):i(o,l),b(e)&&s.set(e,o),o):(b(e)&&s.set(e,null),null)}function us(e,t){return!(!e||!o(t))&&(t="Once"===(t=t.slice(2))?t:t.replace(/Once$/,""),d(e,t[0].toLowerCase()+t.slice(1))||d(e,P(t))||d(e,t))}function ds(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[l],slots:o,attrs:i,emit:c,render:u,renderCache:d,props:f,data:p,setupState:h,ctx:v,inheritAttrs:m}=e,g=Yt(e);let y,b;try{if(4&n.shapeFlag){const e=r||s,t=e;y=cr(u.call(t,e,d,f,h,p,v)),b=i}else{const e=t;y=cr(e.length>1?e(f,{attrs:i,slots:o,emit:c}):e(f,null)),b=t.props?i:ps(i)}}catch(_){Hs.length=0,$t(_,e,1),y=lr(Bs)}let x=y;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=x;e.length&&7&t&&(l&&e.some(a)&&(b=hs(b,l)),x=or(x,b,!1,!0))}return n.dirs&&(x=or(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&fn(cn(x.type)&&dn(x)||x,n.transition),y=x,Yt(g),y}function fs(e,t=!0){let n;for(let s=0;s<e.length;s++){const t=e[s];if(!er(t))return;if(t.type!==Bs||"v-if"===t.children){if(n)return;n=t}}return n}var ps=e=>{let t;for(const n in e)("class"===n||"style"===n||o(n))&&((t||(t={}))[n]=e[n]);return t},hs=(e,t)=>{const n={};for(const s in e)a(s)&&s.slice(9)in t||(n[s]=e[s]);return n};function vs(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 l=s[r];if(!d(e,l)||ms(t,e,l)&&!us(n,l))return!0}return!1}function ms(e,t,n){const s=e[n],r=t[n];return"style"===n&&b(s)&&b(r)?!X(s,r):s!==r}var gs={},ys=()=>Object.create(gs),bs=e=>Object.getPrototypeOf(e)===gs;function xs(e,t,n,s=!1){const r={},l=ys();e.propsDefaults=Object.create(null),_s(e,t,r,l);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:pt(r,!1,Ye,lt,it):e.type.props?e.props=r:e.props=l,e.attrs=l}function _s(e,t,s,r){const[l,o]=e.propsOptions;let a,i=!1;if(t)for(let n in t){if(C(n))continue;const c=t[n];let u;l&&d(l,u=E(n))?o&&o.includes(u)?(a||(a={}))[u]=c:s[u]=c:us(e.emitsOptions,n)||n in r&&c===r[n]||(r[n]=c,i=!0)}if(o){const t=yt(s),r=a||n;for(let n=0;n<o.length;n++){const a=o[n];s[a]=ws(l,t,a,r[a],e,!d(r,a))}}return i}function ws(e,t,n,s,r,l){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&&m(e)){const{propsDefaults:l}=r;if(n in l)s=l[n];else{const o=br(r);s=l[n]=e.call(null,t),o()}}else s=e;r.ce&&r.ce._setProp(n,s)}o[0]&&(l&&!e?s=!1:!o[1]||""!==s&&s!==P(n)||(s=!0))}return s}var ks=new WeakMap;function Ss(e,t,r=!1){const l=r?ks:t.propsCache,o=l.get(e);if(o)return o;const a=e.props,c={},u=[];let p=!1;if(!m(e)){const n=e=>{p=!0;const[n,s]=Ss(e,t,!0);i(c,n),s&&u.push(...s)};!r&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!a&&!p)return b(e)&&l.set(e,s),s;if(f(a))for(let s=0;s<a.length;s++){const e=E(a[s]);Cs(e)&&(c[e]=n)}else if(a)for(const n in a){const e=E(n);if(Cs(e)){const t=a[n],s=c[e]=f(t)||m(t)?{type:t}:i({},t),r=s.type;let l=!1,o=!0;if(f(r))for(let e=0;e<r.length;++e){const t=r[e],n=m(t)&&t.name;if("Boolean"===n){l=!0;break}"String"===n&&(o=!1)}else l=m(r)&&"Boolean"===r.name;s[0]=l,s[1]=o,(l||d(s,"default"))&&u.push(e)}}const h=[c,u];return b(e)&&l.set(e,h),h}function Cs(e){return"$"!==e[0]&&!C(e)}var Ms=e=>"_"===e||"_ctx"===e||"$stable"===e,Os=e=>f(e)?e.map(cr):[cr(e)],Es=(e,t,n)=>{if(t._n)return t;const s=function(e,t=Xt){if(!t)return e;if(e._n)return e;const n=(...s)=>{n._d&&Xs(-1);const r=Yt(t),l=Hs.length;let o;try{o=e(...s)}finally{for(let e=Hs.length;e>l;e--)Gs();Yt(r),n._d&&Xs(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}((...e)=>Os(t(...e)),n);return s._c=!1,s},Ts=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ms(r))continue;const n=e[r];if(m(n))t[r]=Es(0,n,s);else if(null!=n){const e=Os(n);t[r]=()=>e}}},Ps=(e,t)=>{const n=Os(t);e.slots.default=()=>n},As=(e,t,n)=>{for(const s in t)!n&&Ms(s)||(e[s]=t[s])},Ds=function(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):function(e){if(f(e))for(let t=0;t<e.length;t++)Ft.push(e[t]);else Lt&&-1===e.id?Lt.splice(Vt+1,0,e):1&e.flags||(Ft.push(e),e.flags|=1);Wt()}(e)};function js(e){return function(e,t){F().__VUE__=!0;const{insert:l,remove:o,patchProp:a,createElement:i,createText:c,createComment:u,setText:f,setElementText:p,parentNode:h,nextSibling:v,setScopeId:m=r,insertStaticContent:g}=e,y=(e,t,n,r=null,l=null,o=null,a=void 0,i=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!tr(e,t)&&(r=Q(e),G(e,l,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===s&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);const{type:u,ref:d,shapeFlag:f}=t;switch(u){case zs:b(e,t,n,r);break;case Bs:_(e,t,n,r);break;case Ws:null==e&&w(t,n,r,a);break;case Us:L(e,t,n,r,l,o,a,i,c);break;default:1&f?M(e,t,n,r,l,o,a,i,c):6&f?V(e,t,n,r,l,o,a,i,c):(64&f||128&f)&&u.process(e,t,n,r,l,o,a,i,c,te)}null!=d&&l?yn(d,e&&e.ref,o,t||e,!t):null==d&&e&&null!=e.ref&&yn(e.ref,null,o,e,!0)},b=(e,t,n,s)=>{if(null==e)l(t.el=c(t.children),n,s);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},_=(e,t,n,s)=>{null==e?l(t.el=u(t.children||""),n,s):t.el=e.el},w=(e,t,n,s)=>{[e.el,e.anchor]=g(e.children,t,n,s,e.el,e.anchor)},k=({el:e,anchor:t},n,s)=>{let r;for(;e&&e!==t;)r=v(e),l(e,n,s),e=r;l(t,n,s)},S=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),o(e),e=n;o(t)},M=(e,t,n,s,r,l,o,a,i)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)O(t,n,s,r,l,o,a,i);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,r,l,o,a,i)}finally{n&&n._endPatch()}}},O=(e,t,n,s,r,o,c,u)=>{let d,f;const{props:h,shapeFlag:v,transition:m,dirs:g}=e;if(d=e.el=i(e.type,o,h&&h.is,h),8&v?p(d,e.children):16&v&&A(e.children,d,null,s,r,$s(e,o),c,u),g&&en(e,null,s,"created"),T(d,e,e.scopeId,c,s),h){for(const e in h)"value"===e||C(e)||a(d,e,null,h[e],o,s);"value"in h&&a(d,"value",null,h.value,o),(f=h.onVnodeBeforeMount)&&fr(f,s,e)}g&&en(e,null,s,"beforeMount");const y=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(r,m);y&&m.beforeEnter(d),l(d,t,n),((f=h&&h.onVnodeMounted)||y||g)&&Ds(()=>{try{f&&fr(f,s,e),y&&m.enter(d),g&&en(e,null,s,"mounted")}finally{}},r)},T=(e,t,n,s,r)=>{if(n&&m(e,n),s)for(let l=0;l<s.length;l++)m(e,s[l]);if(r){let n=r.subTree;if(t===n||Ns(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;T(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,s,r,l,o,a,i=0)=>{for(let c=i;c<e.length;c++){const i=e[c]=a?ur(e[c]):cr(e[c]);y(null,i,t,n,s,r,l,o,a)}},D=(e,t,s,r,l,o,i)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const h=e.props||n,v=t.props||n;let m;if(s&&Is(s,!1),(m=v.onVnodeBeforeUpdate)&&fr(m,s,t,e),f&&en(t,e,s,"beforeUpdate"),s&&Is(s,!0),!d||e.dynamicChildren&&e.dynamicChildren.length===d.length||(u=0,i=!1,d=null),(h.innerHTML&&null==v.innerHTML||h.textContent&&null==v.textContent)&&p(c,""),d?j(e.dynamicChildren,d,c,s,r,$s(t,l),o):i||W(e,t,c,null,s,r,$s(t,l),o,!1),u>0){if(16&u)R(c,h,v,s,l);else if(2&u&&h.class!==v.class&&a(c,"class",null,v.class,l),4&u&&a(c,"style",h.style,v.style,l),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],r=h[n],o=v[n];o===r&&"value"!==n||a(c,n,r,o,l,s)}}1&u&&e.children!==t.children&&p(c,t.children)}else i||null!=d||R(c,h,v,s,l);((m=v.onVnodeUpdated)||f)&&Ds(()=>{m&&fr(m,s,t,e),f&&en(t,e,s,"updated")},r)},j=(e,t,n,s,r,l,o)=>{for(let a=0;a<t.length;a++){const i=e[a],c=t[a],u=i.el||Vs(i),d=u&&(i.type===Us||!tr(i,c)||198&i.shapeFlag)?h(u):n;y(i,c,d,null,s,r,l,o,!0)}},R=(e,t,s,r,l)=>{if(t!==s){if(t!==n)for(const n in t)C(n)||n in s||a(e,n,t[n],null,l,r);for(const n in s){if(C(n))continue;const o=s[n],i=t[n];o!==i&&"value"!==n&&a(e,n,i,o,l,r)}"value"in s&&a(e,"value",t.value,s.value,l)}},L=(e,t,n,s,r,o,a,i,u)=>{const d=t.el=e?e.el:c(""),f=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:v}=t;v&&(i=i?i.concat(v):v),null==e?(l(d,n,s),l(f,n,s),A(t.children||[],n,f,r,o,a,i,u)):p>0&&64&p&&h&&e.dynamicChildren&&e.dynamicChildren.length===h.length?(j(e.dynamicChildren,h,n,r,o,a,i),(null!=t.key||r&&t===r.subTree)&&Rs(e,t,!0)):W(e,t,n,f,r,o,a,i,u)},V=(e,t,n,s,r,l,o,a,i)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,s,o,i):N(t,n,s,r,l,o,i):U(e,t,i)},N=(e,t,s,r,l,o,a)=>{const i=e.component=function(e,t,s){const r=e.type,l=(t?t.appContext:e.appContext)||pr,o={uid:hr++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new se(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ss(r,l),emitsOptions:cs(r,l),emit:null,emitted:null,propsDefaults:n,inheritAttrs:r.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:s,suspenseId:s?s.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=as.bind(null,o),e.ce&&e.ce(o);return o}(e,r,l);if(_n(e)&&(i.ctx.renderer=te),function(e,t=!1,n=!1){t&&mr(t);const{props:s,children:r}=e.vnode,l=_r(e);xs(e,s,l,t),((e,t,n)=>{const s=e.slots=ys();if(32&e.vnode.shapeFlag){const e=t._;e?(As(s,t,n),n&&I(s,"_",e,!0)):Ts(t,s)}else t&&Ps(e,t)})(e,r,n||t);const o=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Bn);const{setup:s}=n;if(s){xe();const n=e.setupContext=s.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Or),slots:e.slots,emit:e.emit,expose:t}}(e):null,r=br(e),l=Dt(s,e,0,[e.props,n]),o=x(l);if(_e(),r(),!o&&!e.sp||xn(e)||vn(e),o){if(l.then(xr,xr),t)return l.then(n=>{mr(!0);try{Cr(e,n,t)}finally{mr(!1)}}).catch(t=>{$t(t,e,0)});e.asyncDep=l}else Cr(e,l,t)}else Mr(e,t)}(e,t):void 0;t&&mr(!1)}(i,!1,a),i.asyncDep){if(l&&l.registerDep(i,z,a,o),!e.el){const n=i.subTree=lr(Bs);_(null,n,t,s),e.placeholder=n.el}}else z(i,e,t,s,l,o,a)},U=(e,t,n)=>{const s=t.component=e.component;if(function(e,t,n){const{props:s,children:r,component:l}=e,{props:o,children:a,patchFlag:i}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&i>=0))return!(!r&&!a||a&&a.$stable)||s!==o&&(s?!o||vs(s,o,c):!!o);if(1024&i)return!0;if(16&i)return s?vs(s,o,c):!!o;if(8&i){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(ms(o,s,n)&&!us(c,n))return!0}}return!1}(e,t,n)){if(s.asyncDep&&!s.asyncResolved)return t.el=e.el,t.placeholder=e.placeholder,void B(s,t,n);s.next=t,s.update()}else t.el=e.el,t.placeholder=e.placeholder,s.vnode=t},z=(e,t,n,s,r,l,o)=>{const a=()=>{if(e.isMounted){let{next:t,bu:n,u:s,parent:a,vnode:i}=e;{const n=Fs(e);if(n)return t&&(t.el=i.el,B(e,t,o)),void n.asyncDep.then(()=>{Ds(()=>{e.isUnmounted||c()},r)})}let u,d=t;Is(e,!1),t?(t.el=i.el,B(e,t,o)):t=i,n&&$(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&fr(u,a,t,i),Is(e,!0);const f=ds(e),p=e.subTree;e.subTree=f,y(p,f,h(p.el),Q(p),e,r,l),t.el=f.el,null===d&&function({vnode:e,parent:t,suspense:n},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=s,e=n),n!==e)break;(e=t.vnode).el=s,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=s)}(e,f.el),s&&Ds(s,r),(u=t.props&&t.props.onVnodeUpdated)&&Ds(()=>fr(u,a,t,i),r)}else{let o;const{el:a,props:i}=t,{bm:c,m:u,parent:d,root:f,type:p}=e,h=xn(t);if(Is(e,!1),c&&$(c),!h&&(o=i&&i.onVnodeBeforeMount)&&fr(o,d,t),Is(e,!0),a&&re){const t=()=>{e.subTree=ds(e),re(a,e.subTree,e,r,null)};h&&p.__asyncHydrate?p.__asyncHydrate(a,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const o=e.subTree=ds(e);y(null,o,n,s,e,r,l),t.el=o.el}if(u&&Ds(u,r),!h&&(o=i&&i.onVnodeMounted)){const e=t;Ds(()=>fr(o,d,e),r)}(256&t.shapeFlag||d&&xn(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ds(e.a,r),e.isMounted=!0,t=n=s=null}};e.scope.on();const i=e.effect=new ae(a);e.scope.off();const c=e.update=i.run.bind(i),u=e.job=i.runIfDirty.bind(i);u.i=e,u.id=e.uid,i.scheduler=()=>Bt(u),Is(e,!0),c()},B=(e,t,s)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,s){const{props:r,attrs:l,vnode:{patchFlag:o}}=e,a=yt(r),[i]=e.propsOptions;let c=!1;if(!(s||o>0)||16&o){let s;_s(e,t,r,l)&&(c=!0);for(const l in a)t&&(d(t,l)||(s=P(l))!==l&&d(t,s))||(i?!n||void 0===n[l]&&void 0===n[s]||(r[l]=ws(i,a,l,void 0,e,!0)):delete r[l]);if(l!==a)for(const e in l)t&&d(t,e)||(delete l[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(us(e.emitsOptions,o))continue;const u=t[o];if(i)if(d(l,o))u!==l[o]&&(l[o]=u,c=!0);else{const t=E(o);r[t]=ws(i,a,t,u,e,!1)}else u!==l[o]&&(l[o]=u,c=!0)}}c&&De(e.attrs,"set","")}(e,t.props,r,s),((e,t,s)=>{const{vnode:r,slots:l}=e;let o=!0,a=n;if(32&r.shapeFlag){const e=t._;e?s&&1===e?o=!1:As(l,t,s):(o=!t.$stable,Ts(t,l)),a=t}else t&&(Ps(e,t),a={default:1});if(o)for(const n in l)Ms(n)||null!=a[n]||delete l[n]})(e,t.children,s),xe(),Ht(e),_e()},W=(e,t,n,s,r,l,o,a,i=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void q(c,d,n,s,r,l,o,a,i);if(256&f)return void H(c,d,n,s,r,l,o,a,i)}8&h?(16&u&&Y(c,r,l),d!==c&&p(n,d)):16&u?16&h?q(c,d,n,s,r,l,o,a,i):Y(c,r,l,!0):(8&u&&p(n,""),16&h&&A(d,n,s,r,l,o,a,i))},H=(e,t,n,r,l,o,a,i,c)=>{t=t||s;const u=(e=e||s).length,d=t.length,f=Math.min(u,d);let p=0;for(;p<f;p++){const s=t[p]=c?ur(t[p]):cr(t[p]);y(e[p],s,n,null,l,o,a,i,c)}u>d?Y(e,l,o,!0,!1,f):A(t,n,r,l,o,a,i,c,f)},q=(e,t,n,r,l,o,a,i,c)=>{let u=0;const d=t.length;let f=e.length-1,p=d-1;for(;u<=f&&u<=p;){const s=e[u],r=t[u]=c?ur(t[u]):cr(t[u]);if(!tr(s,r))break;y(s,r,n,null,l,o,a,i,c),u++}for(;u<=f&&u<=p;){const s=e[f],r=t[p]=c?ur(t[p]):cr(t[p]);if(!tr(s,r))break;y(s,r,n,null,l,o,a,i,c),f--,p--}if(u>f){if(u<=p){const e=p+1,s=e<d?t[e].el:r;for(;u<=p;)y(null,t[u]=c?ur(t[u]):cr(t[u]),n,s,l,o,a,i,c),u++}}else if(u>p)for(;u<=f;)G(e[u],l,o,!0),u++;else{const h=u,v=u,m=new Map;for(u=v;u<=p;u++){const e=t[u]=c?ur(t[u]):cr(t[u]);null!=e.key&&m.set(e.key,u)}let g,b=0;const x=p-v+1;let _=!1,w=0;const k=new Array(x);for(u=0;u<x;u++)k[u]=0;for(u=h;u<=f;u++){const s=e[u];if(b>=x){G(s,l,o,!0);continue}let r;if(null!=s.key)r=m.get(s.key);else for(g=v;g<=p;g++)if(0===k[g-v]&&tr(s,t[g])){r=g;break}void 0===r?G(s,l,o,!0):(k[r-v]=u+1,r>=w?w=r:_=!0,y(s,t[r],n,null,l,o,a,i,c),b++)}const S=_?function(e){const t=e.slice(),n=[0];let s,r,l,o,a;const i=e.length;for(s=0;s<i;s++){const i=e[s];if(0!==i){if(r=n[n.length-1],e[r]<i){t[s]=r,n.push(s);continue}for(l=0,o=n.length-1;l<o;)a=l+o>>1,e[n[a]]<i?l=a+1:o=a;i<e[n[l]]&&(l>0&&(t[s]=n[l-1]),n[l]=s)}}l=n.length,o=n[l-1];for(;l-- >0;)n[l]=o,o=t[o];return n}(k):s;for(g=S.length-1,u=x-1;u>=0;u--){const e=v+u,s=t[e],f=t[e+1],p=e+1<d?f.el||Vs(f):r;0===k[u]?y(null,s,n,p,l,o,a,i,c):_&&(g<0||u!==S[g]?K(s,n,p,2):g--)}}},K=(e,t,n,s,r=null)=>{const{el:a,type:i,transition:c,children:u,shapeFlag:d}=e;if(6&d)K(e.component.subTree,t,n,s);else if(128&d)e.suspense.move(t,n,s);else if(64&d)i.move(e,t,n,te);else if(i!==Us)if(i!==Ws)if(2!==s&&1&d&&c)if(0===s)c.persisted&&!a[un]?l(a,t,n):(c.beforeEnter(a),l(a,t,n),Ds(()=>c.enter(a),r));else{const{leave:s,delayLeave:r,afterLeave:i}=c,u=()=>{e.ctx.isUnmounted?o(a):l(a,t,n)},d=()=>{const e=a._isLeaving||!!a[un];a._isLeaving&&a[un](!0),c.persisted&&!e?u():s(a,()=>{u(),i&&i()})};r?r(a,u,d):d()}else l(a,t,n);else k(e,t,n);else{l(a,t,n);for(let e=0;e<u.length;e++)K(u[e],t,n,s);l(e.anchor,t,n)}},G=(e,t,n,s=!1,r=!1)=>{const{type:l,props:o,ref:a,children:i,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:h}=e;if((-2===d||c&&c.hasOnce)&&(r=!1),null!=a&&(xe(),yn(a,null,n,e,!0),_e()),null==p||e.ctx&&e.ctx!==t||(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const v=1&u&&f,m=!xn(e);let g;if(m&&(g=o&&o.onVnodeBeforeUnmount)&&fr(g,t,e),6&u)Z(e.component,n,s);else{if(128&u)return void e.suspense.unmount(n,s);v&&en(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,te,s):c&&!c.hasOnce&&(l!==Us||d>0&&64&d)?Y(c,t,n,!1,!0):(l===Us&&384&d||!r&&16&u)&&Y(i,t,n),s&&J(e)}const y=null!=h&&null==p;(m&&(g=o&&o.onVnodeUnmounted)||v||y)&&Ds(()=>{g&&fr(g,t,e),v&&en(e,null,t,"unmounted"),y&&(e.el=null)},n)},J=e=>{const{type:t,el:n,anchor:s,transition:r}=e,l=t===Us;if(l&&!r)return void X(n,s);if(t===Ws)return S(e),void(r&&!r.persisted&&r.afterLeave&&r.afterLeave());const a=l?pn(e):e,i=()=>{l?h(n)&&X(n,s):o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(a&&1&a.shapeFlag&&r&&!r.persisted){const{leave:e,delayLeave:t}=r,n=a.el,s=()=>e(n,i);t?t(n,i,s):s()}else i()},X=(e,t)=>{let n;for(;e!==t;)n=v(e),o(e),e=n;o(t)},Z=(e,t,n)=>{const{bum:s,scope:r,job:l,subTree:o,um:a,m:i,a:c}=e;Ls(i),Ls(c),s&&$(s),r.stop(),l?(l.flags|=8,G(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,G(o,e,t,n)),a&&Ds(a,t),Ds(()=>{e.isUnmounted=!0},t)},Y=(e,t,n,s=!1,r=!1,l=0)=>{for(let o=l;o<e.length;o++)G(e[o],t,n,s,r)},Q=e=>{if(6&e.shapeFlag)return Q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=v(e.anchor||e.el),n=t&&t[an];return n?v(n):t},ee=(e,t,n)=>{!function(e,t){if(Kt)return void e();const n=void 0===t?void 0:new Set(Ft);e(),Kt=!0;try{Ht(void 0,t),qt(0,n,t)}finally{Kt=!1}}(()=>{null==e?t._vnode&&G(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:hr)},te={p:y,um:G,m:K,r:J,mt:N,mc:A,pc:W,pbc:j,n:Q,o:e};let ne,re;t&&([ne,re]=t(te));return{render:ee,hydrate:ne,createApp:ls(ee,ne)}}(e)}function $s({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 Is({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rs(e,t,n=!1){const s=e.children,r=t.children;if(f(s)&&f(r))for(let l=0;l<s.length;l++){const e=s[l];let t=r[l];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[l]=ur(r[l]),t.el=e.el),n||-2===t.patchFlag||Rs(e,t)),t.type===zs&&(-1===t.patchFlag&&(t=r[l]=ur(t)),t.el=e.el),t.type!==Bs||t.el||(t.el=e.el)}}function Fs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fs(t)}function Ls(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Vs(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Vs(t.subTree):null}var Ns=e=>e.__isSuspense;var Us=Symbol.for("v-fgt"),zs=Symbol.for("v-txt"),Bs=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),Hs=[],qs=null;function Ks(e=!1){Hs.push(qs=e?null:[])}function Gs(){Hs.pop(),qs=Hs[Hs.length-1]||null}var Js=1;function Xs(e,t=!1){Js+=e,e<0&&qs&&t&&(qs.hasOnce=!0)}function Zs(e){return e.dynamicChildren=Js>0?qs||s:null,Gs(),Js>0&&qs&&qs.push(e),e}function Ys(e,t,n,s,r,l){return Zs(rr(e,t,n,s,r,l,!0))}function Qs(e,t,n,s,r){return Zs(lr(e,t,n,s,r,!0))}function er(e){return!!e&&!0===e.__v_isVNode}function tr(e,t){return e.type===t.type&&e.key===t.key}var nr=({key:e})=>null!=e?e:null,sr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||_t(e)||m(e)?{i:Xt,r:e,k:t,f:!!n}:e:null);function rr(e,t=null,n=null,s=0,r=null,l=(e===Us?0:1),o=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nr(t),ref:t&&sr(t),scopeId:Zt,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:l,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Xt};return a?(dr(i,n),128&l&&e.normalize(i)):n&&(i.shapeFlag|=g(n)?8:16),Js>0&&!o&&qs&&(i.patchFlag>0||6&l)&&32!==i.patchFlag&&qs.push(i),i}var lr=function(e,t=null,n=null,s=0,r=null,l=!1){e&&e!==Ln||(e=Bs);if(er(e)){const s=or(e,t,!0);return n&&dr(s,n),Js>0&&!l&&qs&&(6&s.shapeFlag?qs[qs.indexOf(e)]=s:qs.push(s)),s.patchFlag=-2,s}o=e,m(o)&&"__vccOpts"in o&&(e=e.__vccOpts);var o;if(t){t=function(e){return e?gt(e)||bs(e)?i({},e):e:null}(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=B(e)),b(n)&&(gt(n)&&!f(n)&&(n=i({},n)),t.style=L(n))}const a=g(e)?1:Ns(e)?128:cn(e)?64:b(e)?4:m(e)?2:0;return rr(e,t,n,s,r,a,l,!0)};function or(e,t,n=!1,s=!1){const{props:r,ref:l,patchFlag:i,children:c,transition:u}=e,d=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=B([t.class,s.class]));else if("style"===e)t.style=L([t.style,s.style]);else if(o(e)){const n=t[e],r=s[e];!r||n===r||f(n)&&n.includes(r)?null!=r||null!=n||a(e)||(t[e]=r):t[e]=n?[].concat(n,r):r}else""!==e&&(t[e]=s[e])}return t}(r||{},t):r,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&nr(d),ref:t&&t.ref?n&&l?f(l)?l.concat(sr(t)):[l,sr(t)]:sr(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Us?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&or(e.ssContent),ssFallback:e.ssFallback&&or(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return u&&s&&fn(p,u.clone(p)),p}function ar(e=" ",t=0){return lr(zs,null,e,t)}function ir(e="",t=!1){return t?(Ks(),Qs(Bs,null,e)):lr(Bs,null,e)}function cr(e){return null==e||"boolean"==typeof e?lr(Bs):f(e)?lr(Us,null,e.slice()):er(e)?ur(e):lr(zs,null,String(e))}function ur(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:or(e)}function dr(e,t){let n=0;const{shapeFlag:s}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&s){const n=t.default;return void(n&&(n._c&&(n._d=!1),dr(e,n()),n._c&&(n._d=!0)))}{n=32;const s=t._;s||bs(t)?3===s&&Xt&&(1===Xt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Xt}}else if(m(t)){if(65&s)return void dr(e,{default:t});t={default:t,_ctx:Xt},n=32}else t=String(t),64&s?(n=16,t=[ar(t)]):n=8;e.children=t,e.shapeFlag|=n}function fr(e,t,n,s=null){jt(e,t,7,[n,s])}var pr=ss(),hr=0;var vr,mr,gr=null,yr=()=>gr||Xt;{const e=F(),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)}};vr=t("__VUE_INSTANCE_SETTERS__",e=>gr=e),mr=t("__VUE_SSR_SETTERS__",e=>Sr=e)}var br=e=>{const t=gr;return vr(e),e.scope.on(),()=>{e.scope.off(),vr(t)}},xr=()=>{gr&&gr.scope.off(),vr(null)};function _r(e){return 4&e.vnode.shapeFlag}var wr,kr,Sr=!1;function Cr(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=Ct(t)),Mr(e,n)}function Mr(e,t,n){const s=e.type;if(!e.render){if(!t&&wr&&!s.render){const t=s.template||Jn(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:o}=s,a=i(i({isCustomElement:n,delimiters:l},r),o);s.render=wr(t,a)}}e.render=s.render||r,kr&&kr(e)}{const t=br(e);xe();try{qn(e)}finally{_e(),t()}}}var Or={get:(e,t)=>(Ae(e,0,""),e[t])};function Er(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ct((t=e.exposed,!d(t,"__v_skip")&&Object.isExtensible(t)&&I(t,"__v_skip",!0),t)),{get:(t,n)=>n in t?t[n]:n in Un?Un[n](e):void 0,has:(e,t)=>t in e||t in Un})):e.proxy;var t}var Tr=(e,t)=>function(e,t,n=!1){let s,r;return m(e)?s=e:(s=e.get,r=e.set),new Mt(s,r,n)}(e,0,Sr),Pr="3.5.44",Ar=void 0,Dr="undefined"!=typeof window&&window.trustedTypes;if(Dr)try{Ar=Dr.createPolicy("vue",{createHTML:e=>e})}catch(ya){}var jr=Ar?e=>Ar.createHTML(e):e=>e,$r="undefined"!=typeof document?document:null,Ir=$r&&$r.createElement("template"),Rr={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?$r.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?$r.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?$r.createElement(e,{is:n}):$r.createElement(e);return"select"===e&&s&&null!=s.multiple&&r.setAttribute("multiple",s.multiple),r},createText:e=>$r.createTextNode(e),createComment:e=>$r.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$r.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,l){const o=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==l&&(r=r.nextSibling););else{Ir.innerHTML=jr("svg"===s?`<svg>${e}</svg>`:"mathml"===s?`<math>${e}</math>`:e);const r=Ir.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]}},Fr=Symbol("_vtc");var Lr=Symbol("_vod"),Vr=Symbol("_vsh"),Nr=Symbol(""),Ur=/(?:^|;)\s*display\s*:/;var zr=/\s*!important$/;function Br(e,t,n){if(f(n))n.forEach(n=>Br(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))zr.test(n)?e.setProperty(t,n.replace(zr,""),"important"):e.setProperty(t,n);else{const s=function(e,t){const n=Hr[t];if(n)return n;let s=E(t);if("filter"!==s&&s in e)return Hr[t]=s;s=A(s);for(let r=0;r<Wr.length;r++){const n=Wr[r]+s;if(n in e)return Hr[t]=n}return t}(e,t);zr.test(n)?e.setProperty(P(s),n.replace(zr,""),"important"):e[s]=n}}var Wr=["Webkit","Moz","ms"],Hr={};function qr(e,t,n,s){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&g(s)&&n===s}var Kr="http://www.w3.org/1999/xlink";function Gr(e,t,n,s,r,l=W(t)){s&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Kr,t.slice(6,t.length)):e.setAttributeNS(Kr,t,n):null==n||l&&!H(n)?e.removeAttribute(t):e.setAttribute(t,l?"":y(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 l=e.tagName;if("value"===t&&"PROGRESS"!==l&&!l.includes("-")){const s="OPTION"===l?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=H(n):null==n&&"string"===s?(n="",o=!0):"number"===s&&(n=0,o=!0)}try{e[t]=n}catch(ya){}o&&e.removeAttribute(r||t)}function Xr(e,t,n,s){e.addEventListener(t,n,s)}var Zr=Symbol("_vei");function Yr(e,t,n,s,r=null){const l=e[Zr]||(e[Zr]={}),o=l[t];if(s&&o)o.value=s;else{const[n,a]=function(e){let t,n;for(;(n=e.match(Qr))&&!el.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):P(e.slice(2)),t]}(t);s?Xr(e,n,l[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const s=n.value;if(f(s)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const r=s.slice(),l=[e];for(let s=0;s<r.length&&!e._stopped;s++){const e=r[s];e&&jt(e,t,5,l)}}else jt(s,t,5,[e])};return n.value=e,n.attached=sl(),n}(s,r),a):o&&(!function(e,t,n,s){e.removeEventListener(t,n,s)}(e,n,o,a),l[t]=void 0)}}var Qr=/(Once|Passive|Capture)$/,el=/^on:?(?:Once|Passive|Capture)$/;var tl=0,nl=Promise.resolve(),sl=()=>tl||(nl.then(()=>tl=0),tl=Date.now());var rl=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;var ll=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>$(t,e):t};function ol(e){e.target.composing=!0}function al(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var il=Symbol("_assign"),cl=Symbol("_initialValue");function ul(e,t,n){return t&&(e=e.trim()),n&&(e=R(e)),e}var dl,fl={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&("text"===e.type?e[cl]=e.defaultValue.replace(/[\r\n]/g,""):"textarea"===e.type&&(e[cl]=e.defaultValue.replace(/\r\n?/g,"\n"))),e[il]=ll(r);const l=s||r.props&&"number"===r.props.type;Xr(e,t?"change":"input",t=>{t.target.composing||e[il](ul(e.value,n,l))}),(n||l)&&Xr(e,"change",()=>{e.value=ul(e.value,n,l)}),t||(Xr(e,"compositionstart",ol),Xr(e,"compositionend",al),Xr(e,"change",al))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=null==t?"":t,l=e[cl];delete e[cl],void 0===l||"text"!==e.type&&"textarea"!==e.type||e.value===l?e.value=r:e[il](ul(e.value,n,s))},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:l}},o){if(e[il]=ll(o),e.composing)return;const a=null==t?"":t;if((!l&&"number"!==e.type||/^0\d/.test(e.value)?e.value:R(e.value))===a)return;const i=e.getRootNode();if((i instanceof Document||i instanceof ShadowRoot)&&i.activeElement===e&&"range"!==e.type){if(s&&t===n)return;if(r&&e.value.trim()===a)return}e.value=a}},pl=["ctrl","shift","alt","meta"],hl={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)=>pl.some(n=>e[`${n}Key`]&&!t.includes(n))},vl=(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=hl[t[e]];if(s&&s(n,t))return}return e(n,...s)})},ml=i({patchProp:(e,t,n,s,r,l)=>{const i="svg"===r;"class"===t?function(e,t,n){const s=e[Fr];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,s,i):"style"===t?function(e,t,n){const s=e.style,r=g(n);let l=!1;if(n&&!r){if(t)if(g(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Br(s,t,"")}else for(const e in t)null==n[e]&&Br(s,e,"");for(const r in n){"display"===r&&(l=!0);const o=n[r];null!=o?qr(e,r,!g(t)&&t?t[r]:void 0,o)||Br(s,r,o):Br(s,r,"")}}else if(r){if(t!==n){const e=s[Nr];e&&(n+=";"+e),s.cssText=n,l=Ur.test(n)}}else t&&e.removeAttribute("style");Lr in e&&(r&&t===n||(e[Lr]=l?s.display:""),e[Vr]&&(s.display="none"))}(e,n,s):o(t)?a(t)||Yr(e,t,0,s,l):("."===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&&rl(t)&&m(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}return(!rl(t)||!g(n))&&t in e}(e,t,s,i))?(Jr(e,t,s),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Gr(e,t,s,i,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const s=E(t);return Array.isArray(n)?n.some(e=>E(e)===s):Object.keys(n).some(e=>E(e)===s)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(s)))?Jr(e,E(t),s,0,t):("true-value"===t?e._trueValue=s:"false-value"===t&&(e._falseValue=s),Gr(e,t,s,i))}},Rr);var gl=(...e)=>{const t=(dl||(dl=js(ml))).createApp(...e),{mount:n}=t;return t.mount=e=>{const s=function(e){return g(e)?document.querySelector(e):e}(e);if(!s)return;const r=t._component;m(r)||r.render||r.template||(r.template=s.innerHTML),1===s.nodeType&&(s.textContent="");const l=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","")),l},t};function yl(e,t){const n=new Set;for(const s of e){const e=s[t];e&&n.add(e)}return Array.from(n).sort((e,t)=>e.localeCompare(t))}var bl=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function xl(e,t){return e.filter(e=>!!function(e,t){const n=t.trim().toLowerCase();if(!n)return!0;const s=function(e){return`${e.id} ${e.title} ${e.doctype??""}`.toLowerCase()}(e);return n.split(/\s+/).every(e=>s.includes(e))}(e,t.query)&&(!!(!t.doctypes.size||e.doctype&&t.doctypes.has(e.doctype))&&!!(!t.stages.size||e.stage&&t.stages.has(e.stage)))).sort((e,n)=>function(e,t,n,s){let r=0;switch(n){case"date":{const n=e.date,s=t.date;if(!n&&!s)return 0;if(!n)return 1;if(!s)return-1;r=n.localeCompare(s);break}case"title":r=bl.compare(e.title,t.title);break;default:r=bl.compare(e.id,t.id)}return"asc"===s?r:-r}(e,n,t.sortKey,t.sortDir))}var _l="page";function wl(e=("undefined"!=typeof window?window.location.search:"")){const t=new URLSearchParams(e).get(_l);if(null===t)return 1;const n=Number(t);return Number.isInteger(n)&&n>=1?n:1}function kl(e,t="replace"){if("undefined"==typeof window||!window.history)return;const n=new URL(window.location.href);e<=1?n.searchParams.delete(_l):n.searchParams.set(_l,String(e));const s=`${n.pathname}${n.search}${n.hash}`;"push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s)}function Sl(e){return`${Cl()}/doc/${encodeURIComponent(e)}`}function Cl(){const e=window.location.pathname,t=e.lastIndexOf("/doc/"),n=t>=0?e.slice(0,t):e.replace(/\/index\.html$/,"");return"/"===n?"":n.replace(/\/+$/,"")}function Ml(e=("undefined"!=typeof window?window.location.search:"")){if(e===("undefined"!=typeof window?window.location.search:"")){const e=window.location.pathname.match(/\/doc\/([^/?#]+)$/);if(e){const t=decodeURIComponent(e[1]);if(""!==t.trim())return t}}const t=new URLSearchParams(e).get("doc");return t&&""!==t.trim()?t:null}function Ol(e,t="replace"){if("undefined"==typeof window||!window.history)return;const n=new URL(window.location.href);if(e){const s=`${Cl()}/doc/${encodeURIComponent(e)}${n.search&&n.searchParams.has(_l)?`?${n.searchParams}`:""}${n.hash}`;return void("push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s))}n.searchParams.delete("doc");const s=`${Cl()}/${n.search}${n.hash}`;"push"===t?window.history.pushState(window.history.state,"",s):window.history.replaceState(window.history.state,"",s)}var El={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24","aria-hidden":"true"},Tl=["d"],Pl=hn({__name:"Icon",props:{name:{}},setup(e){const t={sun:["M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"],moon:["M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"],search:["M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"],"chevron-up":["M5 15l7-7 7 7"],"chevron-down":["M19 9l-7 7-7-7"],"chevron-right":["M9 5l7 7-7 7"],"arrow-left":["M10 19l-7-7m0 0l7-7m-7 7h18"],external:["M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"],list:["M4 6h16M4 12h16M4 18h16"],grid:["M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"],copy:["M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"],check:["M5 13l4 4L19 7"],document:["M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"]},n=e,s=Tr(()=>t[n.name]??null);return(e,t)=>s.value?(Ks(),Ys("svg",El,[(Ks(!0),Ys(Us,null,Vn(s.value,(e,t)=>(Ks(),Ys("path",{key:t,d:e},null,8,Tl))),128))])):ir("",!0)}}),Al={class:"flex items-start justify-between gap-3"},Dl={class:"min-w-0"},jl={class:"flex items-center gap-2"},$l={class:"truncate font-mono text-sm font-semibold text-brand dark:text-brand-dark"},Il=["href"],Rl=["aria-label","title"],Fl={class:"mt-1 text-sm text-slate-700 dark:text-slate-300"},Ll=["href"],Vl={class:"flex shrink-0 items-start gap-2"},Nl={class:"flex flex-col items-end gap-1 text-xs"},Ul={class:"flex flex-wrap justify-end gap-1"},zl={key:0,class:"rounded bg-slate-100 px-1.5 py-0.5 text-slate-600 dark:bg-slate-800 dark:text-slate-300"},Bl={key:1,class:"rounded bg-emerald-100 px-1.5 py-0.5 text-emerald-700 dark:bg-emerald-900/50 dark:text-emerald-300"},Wl={key:0,class:"text-slate-400"},Hl=["href"],ql=hn({__name:"DocumentRow",props:{doc:{},view:{}},emits:["open"],setup(e){const t=e,n=Tr(()=>Sl(t.doc.id)),s=wt(!1);return(t,r)=>(Ks(),Ys("article",{class:B(["document group py-4","grid"===e.view?"rounded-xl border border-slate-200 bg-white p-4 dark:border-slate-800 dark:bg-slate-900":""])},[rr("div",Al,[rr("div",Dl,[rr("div",jl,[rr("h2",$l,[rr("a",{href:n.value,class:"hover:underline",onClick:r[0]||(r[0]=vl(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},ee(e.doc.id),9,Il)]),rr("button",{type:"button",class:"rounded p-0.5 text-slate-400 opacity-0 transition group-hover:opacity-100 hover:text-brand","aria-label":`Copy DocID ${e.doc.id}`,title:s.value?"Copied!":"Copy DocID",onClick:r[1]||(r[1]=t=>async function(e){try{await navigator.clipboard.writeText(e),s.value=!0,setTimeout(()=>s.value=!1,1200)}catch{}}(e.doc.id))},[lr(Pl,{name:s.value?"check":"copy",class:"h-4 w-4"},null,8,["name"])],8,Rl)]),rr("p",Fl,[rr("a",{href:n.value,class:"hover:underline",tabindex:"-1",onClick:r[2]||(r[2]=vl(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},ee(e.doc.title),9,Ll)])]),rr("div",Vl,[rr("div",Nl,[rr("div",Ul,[e.doc.doctype?(Ks(),Ys("span",zl,ee(e.doc.doctype),1)):ir("",!0),e.doc.stage?(Ks(),Ys("span",Bl,ee(e.doc.stage),1)):ir("",!0)]),e.doc.date?(Ks(),Ys("time",Wl,ee(e.doc.date),1)):ir("",!0)]),rr("a",{href:n.value,class:"mt-0.5 text-slate-300 transition group-hover:text-brand dark:text-slate-600 dark:group-hover:text-brand-dark","aria-hidden":"true",tabindex:"-1",onClick:r[3]||(r[3]=vl(n=>t.$emit("open",e.doc.id),["exact","prevent"]))},[lr(Pl,{name:"chevron-right",class:"h-5 w-5"})],8,Hl)])])],2))}}),Kl={class:"py-2"},Gl={class:"mb-6"},Jl={class:"flex items-center gap-2"},Xl={class:"font-mono text-lg font-semibold text-brand dark:text-brand-dark"},Zl=["aria-label","title"],Yl={class:"mt-1 text-2xl font-semibold tracking-tight"},Ql={key:0,class:"mb-6"},eo={class:"text-sm leading-relaxed text-slate-700 dark:text-slate-300"},to={key:1,class:"mb-6"},no={class:"grid grid-cols-1 gap-x-6 gap-y-2 text-sm sm:grid-cols-2"},so={key:0,class:"flex gap-2"},ro={key:1,class:"flex gap-2"},lo={key:2,class:"flex gap-2"},oo={key:3,class:"flex gap-2"},ao={key:4,class:"flex gap-2"},io={key:5,class:"flex gap-2"},co={key:2,class:"mb-6"},uo={class:"flex flex-wrap gap-1.5"},fo={key:3,class:"mb-6"},po={class:"space-y-1 text-sm"},ho={class:"text-slate-700 dark:text-slate-300"},vo={key:0,class:"text-xs text-slate-500 dark:text-slate-400"},mo={key:4,class:"mb-6"},go={class:"space-y-1 text-sm"},yo={class:"font-mono text-slate-700 dark:text-slate-300"},bo={key:0,class:"text-xs text-slate-500 dark:text-slate-400"},xo={key:5,class:"mb-6"},_o={class:"space-y-1 text-sm"},wo={class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},ko=["href","onClick"],So={key:1,class:"font-mono text-slate-700 dark:text-slate-300"},Co={key:6,class:"mb-6"},Mo={class:"space-y-1 text-sm"},Oo={key:0,class:"text-slate-500 dark:text-slate-400"},Eo={class:"text-slate-700 dark:text-slate-300"},To={key:7,class:"flex flex-wrap gap-4 text-sm"},Po=["href"],Ao=["href"],Do=hn({__name:"DocumentDetail",props:{doc:{},hasDoc:{type:Function}},emits:["back","open"],setup(e){const t=e,n=wt(!1);async function s(){try{await navigator.clipboard.writeText(t.doc.id),n.value=!0,setTimeout(()=>n.value=!1,1200)}catch{}}const r=Tr(()=>(t.doc.languages??[]).join(", ")),l=Tr(()=>t.doc.keywords??[]),o=Tr(()=>t.doc.contributors??[]),a=Tr(()=>t.doc.docids??[]),i=Tr(()=>t.doc.dates??[]),c=Tr(()=>!!t.doc.date&&0===i.value.length),u=Tr(()=>!!(t.doc.doctype||t.doc.stage||t.doc.edition||r.value||t.doc.publisher||c.value));function d(e){return[e.type,e.language].filter(Boolean).join(" · ")}const f=Tr(()=>(t.doc.relations??[]).map(e=>({...e,label:p(e.type),href:t.hasDoc?.(e.id)?Sl(e.id):null})));function p(e){if(!e)return"Related";const t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}return(t,p)=>(Ks(),Ys("article",Kl,[rr("button",{type:"button",class:"mb-6 inline-flex items-center gap-1.5 text-sm text-brand hover:underline dark:text-brand-dark","aria-label":"Back to index",onClick:p[0]||(p[0]=e=>t.$emit("back"))},[lr(Pl,{name:"arrow-left",class:"h-4 w-4"}),p[1]||(p[1]=ar("Back to index ",-1))]),rr("header",Gl,[rr("div",Jl,[rr("h2",Xl,ee(e.doc.id),1),rr("button",{type:"button",class:"rounded p-0.5 text-slate-400 transition hover:text-brand","aria-label":`Copy DocID ${e.doc.id}`,title:n.value?"Copied!":"Copy DocID",onClick:s},[lr(Pl,{name:n.value?"check":"copy",class:"h-4 w-4"},null,8,["name"])],8,Zl)]),rr("h1",Yl,ee(e.doc.title),1)]),e.doc.abstract?(Ks(),Ys("section",Ql,[p[2]||(p[2]=rr("h3",{class:"mb-1 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Abstract ",-1)),rr("p",eo,ee(e.doc.abstract),1)])):ir("",!0),u.value?(Ks(),Ys("section",to,[rr("dl",no,[e.doc.doctype?(Ks(),Ys("div",so,[p[3]||(p[3]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Type",-1)),rr("dd",null,ee(e.doc.doctype),1)])):ir("",!0),e.doc.stage?(Ks(),Ys("div",ro,[p[4]||(p[4]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Stage",-1)),rr("dd",null,ee(e.doc.stage),1)])):ir("",!0),e.doc.edition?(Ks(),Ys("div",lo,[p[5]||(p[5]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Edition",-1)),rr("dd",null,ee(e.doc.edition),1)])):ir("",!0),r.value?(Ks(),Ys("div",oo,[p[6]||(p[6]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Language",-1)),rr("dd",null,ee(r.value),1)])):ir("",!0),e.doc.publisher?(Ks(),Ys("div",ao,[p[7]||(p[7]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Publisher",-1)),rr("dd",null,ee(e.doc.publisher),1)])):ir("",!0),c.value?(Ks(),Ys("div",io,[p[8]||(p[8]=rr("dt",{class:"w-28 shrink-0 text-slate-500 dark:text-slate-400"},"Date",-1)),rr("dd",null,ee(e.doc.date),1)])):ir("",!0)])])):ir("",!0),l.value.length?(Ks(),Ys("section",co,[p[9]||(p[9]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Keywords ",-1)),rr("div",uo,[(Ks(!0),Ys(Us,null,Vn(l.value,e=>(Ks(),Ys("span",{key:e,class:"rounded-full bg-slate-100 px-3 py-1 text-xs text-slate-600 dark:bg-slate-800 dark:text-slate-300"},ee(e),1))),128))])])):ir("",!0),o.value.length?(Ks(),Ys("section",fo,[p[10]||(p[10]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Contributors ",-1)),rr("ul",po,[(Ks(!0),Ys(Us,null,Vn(o.value,(e,t)=>(Ks(),Ys("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[rr("span",ho,ee(e.name),1),e.role?(Ks(),Ys("span",vo,ee(e.role),1)):ir("",!0)]))),128))])])):ir("",!0),a.value.length?(Ks(),Ys("section",mo,[p[11]||(p[11]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Identifiers ",-1)),rr("ul",go,[(Ks(!0),Ys(Us,null,Vn(a.value,(e,t)=>(Ks(),Ys("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[rr("span",yo,ee(e.id),1),d(e)?(Ks(),Ys("span",bo,ee(d(e)),1)):ir("",!0)]))),128))])])):ir("",!0),f.value.length?(Ks(),Ys("section",xo,[p[12]||(p[12]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Relations ",-1)),rr("ul",_o,[(Ks(!0),Ys(Us,null,Vn(f.value,(e,n)=>(Ks(),Ys("li",{key:n,class:"flex flex-wrap items-baseline gap-2"},[rr("span",wo,ee(e.label),1),e.href?(Ks(),Ys("a",{key:0,href:e.href,class:"font-mono text-brand hover:underline dark:text-brand-dark",onClick:vl(n=>t.$emit("open",e.id),["exact","prevent"])},ee(e.id),9,ko)):(Ks(),Ys("span",So,ee(e.id),1))]))),128))])])):ir("",!0),i.value.length?(Ks(),Ys("section",Co,[p[13]||(p[13]=rr("h3",{class:"mb-2 text-sm font-semibold uppercase tracking-wide text-slate-500 dark:text-slate-400"}," Dates ",-1)),rr("ul",Mo,[(Ks(!0),Ys(Us,null,Vn(i.value,(e,t)=>(Ks(),Ys("li",{key:t,class:"flex flex-wrap items-baseline gap-2"},[e.type?(Ks(),Ys("span",Oo,ee(e.type),1)):ir("",!0),rr("time",Eo,ee(e.value),1)]))),128))])])):ir("",!0),e.doc.link||e.doc.yaml?(Ks(),Ys("section",To,[e.doc.link?(Ks(),Ys("a",{key:0,href:e.doc.link,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1 text-brand hover:underline dark:text-brand-dark"},[lr(Pl,{name:"external",class:"h-4 w-4"}),p[14]||(p[14]=ar("Landing page",-1))],8,Po)):ir("",!0),e.doc.yaml?(Ks(),Ys("a",{key:1,href:e.doc.yaml,target:"_blank",rel:"noopener",class:"inline-flex items-center gap-1 text-brand hover:underline dark:text-brand-dark"},[lr(Pl,{name:"document",class:"h-4 w-4"}),p[15]||(p[15]=ar("Raw YAML",-1))],8,Ao)):ir("",!0)])):ir("",!0)]))}}),jo={key:0,class:"flex items-center justify-center gap-2 text-sm","aria-label":"Pagination"},$o=["disabled"],Io={class:"text-slate-500 dark:text-slate-400"},Ro=["disabled"],Fo=hn({__name:"Pagination",props:{page:{},pageCount:{}},emits:["go"],setup(e,{emit:t}){const n=t;return(t,s)=>e.pageCount>1?(Ks(),Ys("nav",jo,[rr("button",{type:"button",class:"rounded-md border border-slate-300 px-3 py-1 disabled:opacity-40 dark:border-slate-700",disabled:1===e.page,onClick:s[0]||(s[0]=t=>n("go",e.page-1))},"Prev",8,$o),rr("span",Io,"Page "+ee(e.page)+" of "+ee(e.pageCount),1),rr("button",{type:"button",class:"rounded-md border border-slate-300 px-3 py-1 disabled:opacity-40 dark:border-slate-700",disabled:e.page===e.pageCount,onClick:s[1]||(s[1]=t=>n("go",e.page+1))},"Next",8,Ro)])):ir("",!0)}}),Lo=Fo,Vo={class:"min-h-screen bg-slate-50 text-slate-900 dark:bg-slate-950 dark:text-slate-100"},No={class:"border-b border-slate-200 dark:border-slate-800"},Uo={class:"mx-auto flex max-w-5xl items-center justify-between gap-4 px-4 py-5"},zo={class:"text-2xl font-semibold tracking-tight"},Bo={class:"mt-1 text-sm text-slate-500 dark:text-slate-400"},Wo=["aria-label","title"],Ho={class:"mx-auto max-w-5xl px-4 py-6"},qo={class:"sticky top-0 z-10 -mx-4 mb-4 bg-slate-50/90 px-4 py-3 backdrop-blur dark:bg-slate-950/90"},Ko={class:"flex flex-wrap items-center gap-3"},Go={class:"relative min-w-56 flex-1"},Jo={class:"pointer-events-none absolute inset-y-0 left-3 flex items-center text-slate-400"},Xo={class:"flex items-center gap-1 text-sm"},Zo=["onClick"],Yo={class:"flex items-center gap-1 rounded-lg border border-slate-300 p-0.5 dark:border-slate-700"},Qo={key:0,class:"mt-3 flex flex-wrap items-center gap-2"},ea=["onClick"],ta=["onClick"],na={class:"mt-3 flex items-center gap-3 text-xs text-slate-500 dark:text-slate-400"},sa={key:0,class:"text-slate-400 dark:text-slate-500"},ra={key:1,class:"py-16 text-center text-slate-500 dark:text-slate-400"},la={class:"border-t border-slate-200 py-8 text-center text-xs text-slate-500 dark:border-slate-800 dark:text-slate-400"},oa={key:0,class:"mt-1"},aa=hn({__name:"App",props:{data:{},hydration:{},loadDetail:{type:Function}},setup(e){const t=e,n={loading:!1,total:null,requestAll:()=>{}},s=Tr(()=>t.hydration??n),r=Tr(()=>s.value.loading),l=wt(""),o=wt(new Set),a=wt(new Set),i=wt("id"),c=wt("asc"),u=wt(localStorage.getItem("relaton-index-view")||"list"),d=wt(document.documentElement.classList.contains("dark")),f=wt(null),p=Tr(()=>t.data.documents),h=Tr(()=>yl(p.value,"doctype")),v=Tr(()=>yl(p.value,"stage")),m=Tr(()=>Math.max(s.value.total??0,p.value.length)),g=wt(Ml()),y=Tr(()=>null==g.value?null:p.value.find(e=>e.id===g.value)??null);function b(e){g.value=e,Ol(e,"push"),window.scrollTo({top:0})}const x=Tr(()=>new Set(p.value.map(e=>e.id)));function _(e){return x.value.has(e)}function w(){g.value=null,Ol(null,"replace")}const k=Tr(()=>xl(p.value,{query:l.value,doctypes:o.value,stages:a.value,sortKey:i.value,sortDir:c.value})),S=wt(null),C={list:76,grid:128};function M(){const e=window.innerHeight||800,t=S.value?.getBoundingClientRect().top??300,n=Math.max(e-t-120,C.list),s="grid"===u.value&&window.innerWidth>=640?2:1,r=Math.floor(n/C[u.value])*s;return Math.min(100,Math.max(10,r))}const O=wt(M()),E=wt(wl()),T=Tr(()=>Math.max(1,Math.ceil(k.value.length/O.value))),P=Tr(()=>{const e=(E.value-1)*O.value;return k.value.slice(e,e+O.value)});function A(){const e=M();e!==O.value&&(O.value=e)}function D(){const e=Math.min(E.value,T.value);e!==E.value&&(E.value=e,kl(e,"replace"))}let j;function $(){clearTimeout(j),j=setTimeout(A,150)}sn(u,()=>zt(A)),sn([y,r],([e,t])=>{e||(zt(A),null!=g.value&&(t?s.value.requestAll():(g.value=null,Ol(null,"replace"))))},{immediate:!0}),sn(O,()=>{r.value||D()}),sn(r,e=>{e||D()}),sn([l,o,a,i,c],()=>{1!==E.value&&(E.value=1,kl(1,"replace")),s.value.requestAll()});const I=new Set;function R(e){const t=Math.min(T.value,Math.max(1,e));t!==E.value&&(E.value=t,kl(t,"push")),document.getElementById("relaton-index-app")?.scrollIntoView({block:"start"})}function F(){g.value=Ml();const e=Math.max(1,wl());E.value=r.value?e:Math.min(T.value,e)}function L(e,t){const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function V(){l.value="",o.value=new Set,a.value=new Set}function N(e){u.value=e,localStorage.setItem("relaton-index-view",e)}function U(){d.value=!d.value,document.documentElement.classList.toggle("dark",d.value);try{localStorage.setItem("relaton-index-theme",d.value?"dark":"light")}catch{}}sn(y,e=>{const n=t.loadDetail;if(!e||!n)return;const s=function(e){return`${e.id}|${e.yaml??""}`}(e);if(I.has(s))return;I.add(s);const r=e.pos??p.value.indexOf(e);r<0||n(r,e.id).then(n=>{if(!n)return;const{r:s,...r}=n;Object.assign(e,r),r.relations?.length&&t.hydration?.requestAll()}).catch(()=>{})});const z=Tr(()=>""!==l.value.trim()||o.value.size>0||a.value.size>0);function W(e){const t=e.target,n=t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable);"/"!==e.key||n?"Escape"===e.key&&t===f.value&&(l.value="",f.value?.blur()):(e.preventDefault(),f.value?.focus())}return Tn(()=>{window.addEventListener("keydown",W),window.addEventListener("resize",$),window.addEventListener("popstate",F),zt(()=>{A(),r.value||D()})}),jn(()=>{window.removeEventListener("keydown",W),window.removeEventListener("resize",$),window.removeEventListener("popstate",F),clearTimeout(j)}),(t,n)=>(Ks(),Ys("div",Vo,[rr("header",No,[rr("div",Uo,[rr("div",null,[rr("h1",zo,ee(e.data.title),1),rr("p",Bo,ee(e.data.description||"Please use the provided Relaton DocID to refer to an item."),1)]),rr("button",{type:"button",class:"rounded-lg border border-slate-300 p-2 text-slate-600 hover:bg-slate-100 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800","aria-label":d.value?"Switch to light theme":"Switch to dark theme",title:d.value?"Light theme":"Dark theme",onClick:U},[lr(Pl,{name:d.value?"sun":"moon",class:"h-5 w-5"},null,8,["name"])],8,Wo)])]),rr("main",Ho,[y.value?(Ks(),Qs(Do,{key:0,doc:y.value,"has-doc":_,onBack:w,onOpen:b},null,8,["doc"])):(Ks(),Ys(Us,{key:1},[rr("div",qo,[rr("div",Ko,[rr("div",Go,[rr("span",Jo,[lr(Pl,{name:"search",class:"h-4 w-4"})]),Qt(rr("input",{ref_key:"searchEl",ref:f,"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),type:"search",class:"w-full rounded-lg border border-slate-300 bg-white py-2 pl-9 pr-3 text-sm shadow-sm outline-none focus:border-brand focus:ring-2 focus:ring-brand/30 dark:border-slate-700 dark:bg-slate-900","aria-label":"Filter documents by identifier or title",placeholder:"Filter by identifier or title… ( / )"},null,512),[[fl,l.value]])]),rr("div",Xo,[n[3]||(n[3]=rr("span",{class:"text-slate-500 dark:text-slate-400"},"Sort",-1)),(Ks(),Ys(Us,null,Vn(["id","date","title"],e=>rr("button",{key:e,type:"button",class:B(["rounded-md px-2 py-1 capitalize",i.value===e?"bg-brand text-white":"text-slate-600 hover:bg-slate-200 dark:text-slate-300 dark:hover:bg-slate-800"]),onClick:t=>{return n=e,void(i.value===n?c.value="asc"===c.value?"desc":"asc":(i.value=n,c.value="asc"));var n}},[ar(ee(e),1),i.value===e?(Ks(),Qs(Pl,{key:0,name:"asc"===c.value?"chevron-up":"chevron-down",class:"ml-0.5 inline h-3.5 w-3.5"},null,8,["name"])):ir("",!0)],10,Zo)),64))]),rr("div",Yo,[rr("button",{type:"button",class:B(["rounded-md px-2 py-1 text-sm","list"===u.value?"bg-brand text-white":"text-slate-600 dark:text-slate-300"]),"aria-label":"List view",onClick:n[1]||(n[1]=e=>N("list"))},[lr(Pl,{name:"list",class:"h-4 w-4"})],2),rr("button",{type:"button",class:B(["rounded-md px-2 py-1 text-sm","grid"===u.value?"bg-brand text-white":"text-slate-600 dark:text-slate-300"]),"aria-label":"Grid view",onClick:n[2]||(n[2]=e=>N("grid"))},[lr(Pl,{name:"grid",class:"h-4 w-4"})],2)])]),h.value.length||v.value.length?(Ks(),Ys("div",Qo,[(Ks(!0),Ys(Us,null,Vn(h.value,e=>(Ks(),Ys("button",{key:"dt-"+e,type:"button",class:B(["rounded-full border px-3 py-1 text-xs",o.value.has(e)?"border-brand bg-brand text-white":"border-slate-300 text-slate-600 hover:border-brand dark:border-slate-700 dark:text-slate-300"]),onClick:t=>{return n=e,void(o.value=L(o.value,n));var n}},ee(e),11,ea))),128)),(Ks(!0),Ys(Us,null,Vn(v.value,e=>(Ks(),Ys("button",{key:"st-"+e,type:"button",class:B(["rounded-full border px-3 py-1 text-xs",a.value.has(e)?"border-emerald-500 bg-emerald-500 text-white":"border-slate-300 text-slate-600 hover:border-emerald-500 dark:border-slate-700 dark:text-slate-300"]),onClick:t=>{return n=e,void(a.value=L(a.value,n));var n}},ee(e),11,ta))),128))])):ir("",!0),rr("div",na,[rr("span",null,ee(k.value.length)+" of "+ee(m.value)+" documents",1),r.value?(Ks(),Ys("span",sa,"loading…")):ir("",!0),z.value?(Ks(),Ys("button",{key:1,type:"button",class:"text-brand hover:underline dark:text-brand-dark",onClick:V},"Clear filters")):ir("",!0)])]),lr(Lo,{class:"mb-4",page:E.value,"page-count":T.value,onGo:R},null,8,["page","page-count"]),k.value.length?(Ks(),Ys("div",{key:0,ref_key:"listEl",ref:S,class:B("grid"===u.value?"grid grid-cols-1 gap-3 sm:grid-cols-2":"flex flex-col divide-y divide-slate-200 dark:divide-slate-800")},[(Ks(!0),Ys(Us,null,Vn(P.value,e=>(Ks(),Qs(ql,{key:e.id+"|"+(e.yaml??""),doc:e,view:u.value,onOpen:b},null,8,["doc","view"]))),128))],2)):(Ks(),Ys("p",ra," No documents match your filters. ")),lr(Lo,{class:"mt-6",page:E.value,"page-count":T.value,onGo:R},null,8,["page","page-count"])],64))]),rr("footer",la,[n[4]||(n[4]=rr("p",null,[ar(" An open source project by "),rr("a",{class:"text-brand hover:underline dark:text-brand-dark",href:"https://www.ribose.com"},"Ribose"),ar(". Built with "),rr("a",{class:"text-brand hover:underline dark:text-brand-dark",href:"https://www.relaton.org"},"Relaton"),ar(". ")],-1)),e.data.generated?(Ks(),Ys("p",oa,"Generated "+ee(e.data.generated),1)):ir("",!0)])]))}}),ia=aa;function ca(e){const t=Number.parseInt(e??"",10);return Number.isFinite(t)&&t>0?t:0}function ua(e){return{total:ca(e.dataset.total),shards:ca(e.dataset.shards),shardSize:ca(e.dataset.shardSize),detailShards:ca(e.dataset.detailShards),detailShardSize:ca(e.dataset.detailShardSize)}}function da(e){return e.dataset.title||document.querySelector("h1")?.textContent?.trim()||document.title||"Relaton Index"}function fa(e){return e.dataset.description||null}function pa(e,t){return`${e}-${String(t).padStart(4,"0")}.json`}async function ha(e){try{const t=await fetch(e);if(!t.ok)return null;const n=await t.json();return Array.isArray(n)?n:null}catch{return null}}async function va(e){const t=await ha(e);return t||ha(e)}function ma(e){const t=new Map,n=new Map;return async function(s,r){const{detailShards:l,detailShardSize:o}=e;if(l<=0||o<=0||s<0)return null;const a=Math.floor(s/o);if(a>=l)return null;let i=t.get(a);if(!i){let e=n.get(a);e||(e=ha(pa("detail",a)).then(e=>e??[]),n.set(a,e)),i=await e,t.set(a,i),n.delete(a)}const c=i[s%o];return c&&c.r===r?c:i.find(e=>null!=e&&e.r===r)??null}}function ga(){const e=document.getElementById("relaton-index-app");if(!e)return;!function(){try{const e=localStorage.getItem("relaton-index-theme"),t="dark"===e||null===e&&window.matchMedia?.("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",!!t)}catch{}}();const{data:t,shards:n}=function(e){return{data:{title:da(e),description:fa(e),documents:[],generated:e.dataset.generated||null},shards:ua(e)}}(e),s=dt({...t});let r=!1;function l(){r||n.shards<=0||(r=!0,async function(e,t,n={}){const s=e.shards;if(s<=0)return;const r=n.flushMs??750,l=n.now??(()=>Date.now()),o=new Array(s).fill(null);let a=[],i=0,c=0,u=-1/0;const d=e=>{let n=!1;for(;i<s&&o[i];)a=a.concat(o[i]),o[i]=null,i++,n=!0;if(!n&&!e)return;const c=l();!e&&c-u<r||(u=c,t(a))},f=Math.max(1,Math.min(n.concurrency??4,s));await Promise.all(Array.from({length:f},async()=>{for(let t=c++;t<s;t=c++){const n=await va(pa("search",t));if(!n){o[t]=[],d(!1);continue}const s=t*e.shardSize;o[t]=n.map((e,t)=>{return r=s+t,{id:(n=e).r??"",title:n.c??"",doctype:n.t||null,stage:n.s||null,date:n.d||null,link:n.l||null,yaml:n.u||null,...void 0===r?{}:{pos:r}};var n,r}),d(!1)}})),d(!0)}(n,e=>{s.documents=e}).catch(e=>{}).finally(()=>{o.loading=!1}))}const o=dt({loading:n.shards>0,total:n.total,requestAll:l});var a;n.shards>0&&(a=l,"function"==typeof window.requestIdleCallback?window.requestIdleCallback(()=>a(),{timeout:2e3}):window.setTimeout(a,0)),gl(ia,{data:s,hydration:o,loadDetail:ma(n)}).mount(e)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ga,{once:!0}):ga()}();
|
|
@@ -119,6 +119,9 @@ module Relaton
|
|
|
119
119
|
TARGET_ROWS = 15
|
|
120
120
|
MIN_ROWS = 2000
|
|
121
121
|
MIN_SHARDS = 16
|
|
122
|
+
# Id components a record's printed docid omits by design, so only the
|
|
123
|
+
# committed row carries them (see #refine).
|
|
124
|
+
REFINABLE_KEYS = %w[version edition volume].freeze
|
|
122
125
|
MAX_SHARDS = 65_536
|
|
123
126
|
|
|
124
127
|
# Deliberately does NOT retain the pubid object: `add` extracts the only
|
|
@@ -127,7 +130,14 @@ module Relaton
|
|
|
127
130
|
# per row against 0.44 KB for the derived values alone — 543 MB vs 76 MB
|
|
128
131
|
# on a 177k-row corpus. Anything else derived from pubid must therefore
|
|
129
132
|
# be computed in `add` too; by write time the object is gone.
|
|
130
|
-
|
|
133
|
+
#
|
|
134
|
+
# `derived` marks an alias row (this document's other spellings, or a
|
|
135
|
+
# committed fetcher alias) as opposed to the document's own primary
|
|
136
|
+
# id — `indexed_rows` prunes a derived row whose render a document
|
|
137
|
+
# owns as its primary, so an alias can never repoint a spelling at
|
|
138
|
+
# the wrong file (`Type#add_or_update` keys on the rendered string
|
|
139
|
+
# and overwrites).
|
|
140
|
+
Row = Struct.new(:rendered, :file, :key, :id_hash, :derived)
|
|
131
141
|
|
|
132
142
|
attr_reader :rows
|
|
133
143
|
|
|
@@ -144,7 +154,24 @@ module Relaton
|
|
|
144
154
|
@rows = []
|
|
145
155
|
end
|
|
146
156
|
|
|
147
|
-
|
|
157
|
+
# Committed rows an id-sharing file already covers: the fetcher's
|
|
158
|
+
# aliases (a record-less registry's id pointing at the record-bearing
|
|
159
|
+
# document's file -- relaton-iana#8, #9). Carried as rows of their
|
|
160
|
+
# own so either spelling resolves to the one document.
|
|
161
|
+
def add_alias_rows(rows)
|
|
162
|
+
rows.each do |id_hash, file|
|
|
163
|
+
pubid = from_hash(id_hash)
|
|
164
|
+
next unless pubid
|
|
165
|
+
|
|
166
|
+
row = Row.new(pubid.to_s, file)
|
|
167
|
+
row.id_hash = id_hash
|
|
168
|
+
row.key = key_string(pubid)
|
|
169
|
+
row.derived = true
|
|
170
|
+
@rows << row
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
def add(rendered, file, alias_ids = nil)
|
|
148
175
|
row = Row.new(rendered, file)
|
|
149
176
|
# Precompute the expensive derived values (root.number walk,
|
|
150
177
|
# lutaml to_hash) once during the streaming pass — computing
|
|
@@ -158,11 +185,68 @@ module Relaton
|
|
|
158
185
|
# `indexed_rows` drops and `skipped_count` reports.
|
|
159
186
|
hash = pubid ? pubid.to_hash : @committed[file]
|
|
160
187
|
pubid ||= from_hash(hash)
|
|
188
|
+
hash = refine(hash, file)
|
|
161
189
|
if pubid
|
|
162
190
|
row.id_hash = hash
|
|
163
191
|
row.key = key_string(pubid)
|
|
164
192
|
end
|
|
165
193
|
@rows << row
|
|
194
|
+
add_rendered_alias_rows(pubid, hash, rendered, file, alias_ids)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# The document's other spellings as rows of their own, so every id
|
|
198
|
+
# the dataset prints resolves: the parse's canonical render of the
|
|
199
|
+
# primary ("ISO/IEC DIR 1" from the file's own
|
|
200
|
+
# "ISO/IEC Directives Part 1") and each further docidentifier's
|
|
201
|
+
# render. All point at the same file. A docid that does not parse
|
|
202
|
+
# is skipped, and one that renders as an already-added spelling of
|
|
203
|
+
# this document adds no second row. Cross-document collisions are
|
|
204
|
+
# not decided here — `indexed_rows` prunes a derived row whose
|
|
205
|
+
# spelling a document owns as its primary.
|
|
206
|
+
def add_rendered_alias_rows(pubid, primary_hash, rendered, file, alias_ids)
|
|
207
|
+
seen = { rendered => true }
|
|
208
|
+
canon = pubid&.to_s
|
|
209
|
+
if canon && !canon.empty? && !seen.key?(canon)
|
|
210
|
+
seen[canon] = true
|
|
211
|
+
push_derived_row(canon, file, primary_hash, key_string(pubid))
|
|
212
|
+
end
|
|
213
|
+
Array(alias_ids).each do |content|
|
|
214
|
+
alias_pubid = parse(content.to_s)
|
|
215
|
+
next unless alias_pubid
|
|
216
|
+
|
|
217
|
+
render = alias_pubid.to_s
|
|
218
|
+
next if render.empty? || seen.key?(render)
|
|
219
|
+
|
|
220
|
+
seen[render] = true
|
|
221
|
+
push_derived_row(render, file, alias_pubid.to_hash, key_string(alias_pubid))
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# The committed id hash for `file`, when it adds only components in
|
|
226
|
+
# REFINABLE_KEYS to the parse; else `hash`. Those are the components a
|
|
227
|
+
# record's printed docid omits by design: an IHO record prints `B-12`
|
|
228
|
+
# and keeps its edition in `edition:` (relaton-data-iho#20), and an
|
|
229
|
+
# ECMA one prints `ECMA-262` with no ` ed<N>`. Every other key must be
|
|
230
|
+
# equal, so the root number (the shard key) cannot change, and a part,
|
|
231
|
+
# a co-publisher or a sub-registry the parse omits is never taken.
|
|
232
|
+
# The parse still gives the rendered spellings, so a docid alias
|
|
233
|
+
# `B-12` stays deduplicated against the canonical `IHO B-12`.
|
|
234
|
+
def refine(hash, file)
|
|
235
|
+
committed = @committed[file]
|
|
236
|
+
return hash unless hash && committed.is_a?(Hash)
|
|
237
|
+
|
|
238
|
+
extra = committed.keys - hash.keys
|
|
239
|
+
return hash if extra.empty? || !(extra - REFINABLE_KEYS).empty?
|
|
240
|
+
|
|
241
|
+
committed.slice(*hash.keys) == hash ? committed : hash
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def push_derived_row(rendered, file, id_hash, key)
|
|
245
|
+
row = Row.new(rendered, file)
|
|
246
|
+
row.id_hash = id_hash
|
|
247
|
+
row.key = key
|
|
248
|
+
row.derived = true
|
|
249
|
+
@rows << row
|
|
166
250
|
end
|
|
167
251
|
|
|
168
252
|
def count
|
|
@@ -223,12 +307,36 @@ module Relaton
|
|
|
223
307
|
# `Relaton::Ieee::DataFetcher#build_index` already skips the same rows
|
|
224
308
|
# for the same reason and logs the loss; this matches it.
|
|
225
309
|
#
|
|
310
|
+
# A derived (alias) row is dropped when a document owns the spelling
|
|
311
|
+
# as its own primary id, or when an earlier alias row claimed it:
|
|
312
|
+
# `Type#add_or_update` keys id_lookup on the rendered string, so
|
|
313
|
+
# letting both publish would silently repoint the spelling at
|
|
314
|
+
# whichever file sorted last. The document's primary id — and, when
|
|
315
|
+
# two derived rows survive, the earlier document — wins.
|
|
316
|
+
#
|
|
226
317
|
# Memoized, and the single place the sort happens — `each_shard` and
|
|
227
318
|
# `write_monolith` previously sorted the corpus independently, so both
|
|
228
319
|
# ran on every build.
|
|
229
320
|
def indexed_rows
|
|
230
|
-
@indexed_rows ||=
|
|
231
|
-
|
|
321
|
+
@indexed_rows ||= begin
|
|
322
|
+
owned = {}
|
|
323
|
+
@rows.each { |row| owned[row.rendered] = true unless row.derived }
|
|
324
|
+
claimed = {}
|
|
325
|
+
@rows.reject { |row| row.id_hash.nil? }
|
|
326
|
+
.reject do |row|
|
|
327
|
+
next false unless row.derived
|
|
328
|
+
|
|
329
|
+
next true if owned.key?(row.rendered)
|
|
330
|
+
|
|
331
|
+
if claimed.key?(row.rendered)
|
|
332
|
+
true
|
|
333
|
+
else
|
|
334
|
+
claimed[row.rendered] = true
|
|
335
|
+
false
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
.sort_by { |row| [row.key, row.rendered] }
|
|
339
|
+
end
|
|
232
340
|
end
|
|
233
341
|
|
|
234
342
|
# Rows dropped by `indexed_rows` — reported so the loss is never silent.
|
|
@@ -504,12 +612,34 @@ module Relaton
|
|
|
504
612
|
# the same name carries plain strings, and one of those written into a
|
|
505
613
|
# row would break both the monolith (`yaml_nested` walks a Hash) and the
|
|
506
614
|
# consumer (`FileIO#deserialize_id` calls `from_hash`).
|
|
615
|
+
#
|
|
616
|
+
# The first id per file becomes the map; ids beyond the first are the
|
|
617
|
+
# fetcher's aliases onto that file (see .committed_alias_rows).
|
|
507
618
|
def read_committed_index(path)
|
|
508
619
|
rows = YAML.safe_load(File.read(path), permitted_classes: [Symbol])
|
|
509
|
-
Array(rows).
|
|
510
|
-
|
|
620
|
+
@committed_rows = Array(rows).select do |row|
|
|
621
|
+
row.is_a?(Hash) && row[:id].is_a?(Hash) && row[:file]
|
|
622
|
+
end
|
|
623
|
+
@committed_rows.each_with_object({}) do |row, acc|
|
|
624
|
+
acc[row[:file]] ||= row[:id]
|
|
625
|
+
end
|
|
626
|
+
end
|
|
511
627
|
|
|
512
|
-
|
|
628
|
+
# `{ id hash => file }` for committed rows beyond each file's first --
|
|
629
|
+
# the fetcher's alias ids, which no data file of their own carries.
|
|
630
|
+
# Without this pass the machine index drops them (the file-keyed
|
|
631
|
+
# fallback resolves one id per file), and a spelling the corpus
|
|
632
|
+
# aliased stops resolving.
|
|
633
|
+
def committed_alias_rows
|
|
634
|
+
committed_index # force the load and @committed_rows
|
|
635
|
+
seen = {}
|
|
636
|
+
(@committed_rows || []).filter_map do |row|
|
|
637
|
+
if seen[row[:file]]
|
|
638
|
+
[row[:id], row[:file]]
|
|
639
|
+
else
|
|
640
|
+
seen[row[:file]] = true
|
|
641
|
+
nil
|
|
642
|
+
end
|
|
513
643
|
end
|
|
514
644
|
end
|
|
515
645
|
|
|
@@ -567,7 +697,8 @@ module Relaton
|
|
|
567
697
|
# The machine-index input: rendered primary docid + repo-relative
|
|
568
698
|
# path (clients prefix their own baseurl onto file).
|
|
569
699
|
def machine_record(item)
|
|
570
|
-
[item["id"], item["yaml_path"]
|
|
700
|
+
[item["id"], item["yaml_path"],
|
|
701
|
+
Array(item["docids"]).filter_map { |d| d["id"] if d.is_a?(Hash) }]
|
|
571
702
|
end
|
|
572
703
|
|
|
573
704
|
def write_machine_index_manifest(total)
|
|
@@ -659,6 +790,7 @@ module Relaton
|
|
|
659
790
|
detail << detail_record(doc) if emit_detail?
|
|
660
791
|
machine&.add(*machine_record(doc))
|
|
661
792
|
end
|
|
793
|
+
machine&.add_alias_rows(committed_alias_rows)
|
|
662
794
|
summary.flush
|
|
663
795
|
detail.flush
|
|
664
796
|
@machine_index = machine
|
data/relaton-cli.gemspec
CHANGED
|
@@ -35,10 +35,9 @@ Gem::Specification.new do |spec|
|
|
|
35
35
|
# reference is unparseable (see command.rb / subcommand_collection.rb). It is
|
|
36
36
|
# already a runtime dep of `relaton`, but declare it here too so the require
|
|
37
37
|
# is self-supporting rather than dependent on relaton's transitive graph.
|
|
38
|
-
# 2.0.0
|
|
39
|
-
#
|
|
40
|
-
|
|
41
|
-
spec.add_dependency "pubid", "~> 2.0.0.pre.alpha.28"
|
|
38
|
+
# Match the relaton gemspec floor: pubid 2.0.0 ships the old emission-1
|
|
39
|
+
# parse artifacts, and 2.0.1 is the first final release that works.
|
|
40
|
+
spec.add_dependency "pubid", ">= 2.0.1", "< 2.1"
|
|
42
41
|
# relaton bundles every flavor plus Relaton::Bib, so depending on `relaton`
|
|
43
42
|
# alone is sufficient — relaton-bib is no longer published standalone.
|
|
44
43
|
spec.add_dependency "relaton", "= #{relaton_version}"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-cli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: liquid
|
|
@@ -28,30 +28,36 @@ dependencies:
|
|
|
28
28
|
name: pubid
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 2.0.1
|
|
34
|
+
- - "<"
|
|
32
35
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 2.
|
|
36
|
+
version: '2.1'
|
|
34
37
|
type: :runtime
|
|
35
38
|
prerelease: false
|
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
40
|
requirements:
|
|
38
|
-
- - "
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: 2.0.1
|
|
44
|
+
- - "<"
|
|
39
45
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 2.
|
|
46
|
+
version: '2.1'
|
|
41
47
|
- !ruby/object:Gem::Dependency
|
|
42
48
|
name: relaton
|
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
|
44
50
|
requirements:
|
|
45
51
|
- - '='
|
|
46
52
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 3.0.
|
|
53
|
+
version: 3.0.2
|
|
48
54
|
type: :runtime
|
|
49
55
|
prerelease: false
|
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
57
|
requirements:
|
|
52
58
|
- - '='
|
|
53
59
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 3.0.
|
|
60
|
+
version: 3.0.2
|
|
55
61
|
- !ruby/object:Gem::Dependency
|
|
56
62
|
name: relaton-render
|
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|