nuxt-og-image 2.0.6 → 2.0.7

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.
@@ -2,7 +2,7 @@ function Ux(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.leng
2
2
  * vue-router v4.2.4
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */const ul=typeof window<"u";function sG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Wn=Object.assign;function S1(e,t){const n={};for(const r in t){const o=t[r];n[r]=ya(o)?o.map(e):e(o)}return n}const qd=()=>{},ya=Array.isArray,cG=/\/$/,uG=e=>e.replace(cG,"");function C1(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=hG(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function lG(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function D$(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fG(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&uf(t.matched[r],n.matched[o])&&vI(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function uf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vI(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!dG(e[n],t[n]))return!1;return!0}function dG(e,t){return ya(e)?L$(e,t):ya(t)?L$(t,e):e===t}function L$(e,t){return ya(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function hG(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var mh;(function(e){e.pop="pop",e.push="push"})(mh||(mh={}));var Wd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wd||(Wd={}));function pG(e){if(!e)if(ul){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uG(e)}const vG=/^[^#]+#/;function mG(e,t){return e.replace(vG,"#")+t}function gG(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const f0=()=>({left:window.pageXOffset,top:window.pageYOffset});function yG(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=gG(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function z$(e,t){return(history.state?history.state.position-t:-1)+e}const Pb=new Map;function bG(e,t){Pb.set(e,t)}function wG(e){const t=Pb.get(e);return Pb.delete(e),t}let xG=()=>location.protocol+"//"+location.host;function mI(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(s);return c[0]!=="/"&&(c="/"+c),D$(c,"")}return D$(n,e)+r+o}function kG(e,t,n,r){let o=[],i=[],a=null;const s=({state:d})=>{const h=mI(e,location),p=n.value,v=t.value;let m=0;if(d){if(n.value=h,t.value=d,a&&a===p){a=null;return}m=v?d.position-v.position:0}else r(h);o.forEach(g=>{g(n.value,p,{delta:m,type:mh.pop,direction:m?m>0?Wd.forward:Wd.back:Wd.unknown})})};function c(){a=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function l(){const{history:d}=window;d.state&&d.replaceState(Wn({},d.state,{scroll:f0()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function B$(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?f0():null}}function jG(e){const{history:t,location:n}=window,r={value:mI(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,l){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:xG()+e+c;try{t[l?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[l?"replace":"assign"](d)}}function a(c,u){const l=Wn({},t.state,B$(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,l,!0),r.value=c}function s(c,u){const l=Wn({},o.value,t.state,{forward:c,scroll:f0()});i(l.current,l,!0);const f=Wn({},B$(r.value,c,null),{position:l.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:o,push:s,replace:a}}function gI(e){e=pG(e);const t=jG(e),n=kG(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Wn({location:"",base:e,go:r,createHref:mG.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function _G(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),gI(e)}function $G(e){return typeof e=="string"||e&&typeof e=="object"}function yI(e){return typeof e=="string"||typeof e=="symbol"}const Ra={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},bI=Symbol("");var F$;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(F$||(F$={}));function lf(e,t){return Wn(new Error,{type:e,[bI]:!0},t)}function vs(e,t){return e instanceof Error&&bI in e&&(t==null||!!(e.type&t))}const H$="[^/]+?",SG={sensitive:!1,strict:!1,start:!0,end:!0},CG=/[.+*?^${}()[\]/\\]/g;function EG(e,t){const n=Wn({},SG,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(CG,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:m,regexp:g}=d;i.push({name:p,repeatable:v,optional:m});const y=g||H$;if(y!==H$){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+w.message)}}let b=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),o+=b,h+=20,m&&(h+=-8),v&&(h+=-20),y===".*"&&(h+=-50)}l.push(h)}r.push(l)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const l=u.match(a),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function c(u){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===0)l+=h.value;else if(h.type===1){const{value:p,repeatable:v,optional:m}=h,g=p in u?u[p]:"";if(ya(g)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=ya(g)?g.join("/"):g;if(!y)if(m)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);l+=y}}return l||"/"}return{re:a,score:r,keys:i,parse:s,stringify:c}}function OG(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function MG(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=OG(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(V$(r))return 1;if(V$(o))return-1}return o.length-r.length}function V$(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const PG={type:0,value:""},AG=/[a-zA-Z0-9_]/;function TG(e){if(!e)return[[]];if(e==="/")return[[PG]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,c,u="",l="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;s<e.length;){if(c=e[s++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),a()):c===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:c==="("?n=2:AG.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--);break;case 2:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=3:l+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--,l="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function RG(e,t,n){const r=EG(TG(e.path),n),o=Wn(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function IG(e,t){const n=[],r=new Map;t=U$({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function i(l,f,d){const h=!d,p=NG(l);p.aliasOf=d&&d.record;const v=U$(t,l),m=[p];if("alias"in l){const b=typeof l.alias=="string"?[l.alias]:l.alias;for(const w of b)m.push(Wn({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let g,y;for(const b of m){const{path:w}=b;if(f&&w[0]!=="/"){const k=f.record.path,x=k[k.length-1]==="/"?"":"/";b.path=f.record.path+(w&&x+w)}if(g=RG(b,f,v),d?d.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),h&&l.name&&!W$(g)&&a(l.name)),p.children){const k=p.children;for(let x=0;x<k.length;x++)i(k[x],g,d&&d.children[x])}d=d||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&c(g)}return y?()=>{a(y)}:qd}function a(l){if(yI(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(a),l.alias.forEach(a))}}function s(){return n}function c(l){let f=0;for(;f<n.length&&MG(l,n[f])>=0&&(l.record.path!==n[f].record.path||!wI(l,n[f]));)f++;n.splice(f,0,l),l.record.name&&!W$(l)&&r.set(l.record.name,l)}function u(l,f){let d,h={},p,v;if("name"in l&&l.name){if(d=r.get(l.name),!d)throw lf(1,{location:l});v=d.record.name,h=Wn(q$(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),l.params&&q$(l.params,d.keys.map(y=>y.name))),p=d.stringify(h)}else if("path"in l)p=l.path,d=n.find(y=>y.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw lf(1,{location:l,currentLocation:f});v=d.record.name,h=Wn({},f.params,l.params),p=d.stringify(h)}const m=[];let g=d;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:LG(m)}}return e.forEach(l=>i(l)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function q$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function NG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:DG(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function DG(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function W$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function LG(e){return e.reduce((t,n)=>Wn(t,n.meta),{})}function U$(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function wI(e,t){return t.children.some(n=>n===e||wI(e,n))}const xI=/#/g,zG=/&/g,BG=/\//g,FG=/=/g,HG=/\?/g,kI=/\+/g,VG=/%5B/g,qG=/%5D/g,jI=/%5E/g,WG=/%60/g,_I=/%7B/g,UG=/%7C/g,$I=/%7D/g,KG=/%20/g;function kk(e){return encodeURI(""+e).replace(UG,"|").replace(VG,"[").replace(qG,"]")}function JG(e){return kk(e).replace(_I,"{").replace($I,"}").replace(jI,"^")}function Ab(e){return kk(e).replace(kI,"%2B").replace(KG,"+").replace(xI,"%23").replace(zG,"%26").replace(WG,"`").replace(_I,"{").replace($I,"}").replace(jI,"^")}function GG(e){return Ab(e).replace(FG,"%3D")}function QG(e){return kk(e).replace(xI,"%23").replace(HG,"%3F")}function YG(e){return e==null?"":QG(e).replace(BG,"%2F")}function Vm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ZG(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(kI," "),a=i.indexOf("="),s=Vm(a<0?i:i.slice(0,a)),c=a<0?null:Vm(i.slice(a+1));if(s in t){let u=t[s];ya(u)||(u=t[s]=[u]),u.push(c)}else t[s]=c}return t}function K$(e){let t="";for(let n in e){const r=e[n];if(n=GG(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ya(r)?r.map(i=>i&&Ab(i)):[r&&Ab(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function XG(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ya(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const tQ=Symbol(""),J$=Symbol(""),jk=Symbol(""),SI=Symbol(""),Tb=Symbol("");function id(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function rc(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(lf(4,{from:n,to:t})):f instanceof Error?s(f):$G(f)?s(lf(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(r&&r.instances[o],t,n,c);let l=Promise.resolve(u);e.length<3&&(l=l.then(c)),l.catch(f=>s(f))})}function E1(e,t,n,r){const o=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(eQ(s)){const u=(s.__vccOpts||s)[t];u&&o.push(rc(u,n,r,i,a))}else{let c=s();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const l=sG(u)?u.default:u;i.components[a]=l;const d=(l.__vccOpts||l)[t];return d&&rc(d,n,r,i,a)()}))}}return o}function eQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function G$(e){const t=ci(jk),n=ci(SI),r=sr(()=>t.resolve(Ie(e.to))),o=sr(()=>{const{matched:c}=r.value,{length:u}=c,l=c[u-1],f=n.matched;if(!l||!f.length)return-1;const d=f.findIndex(uf.bind(null,l));if(d>-1)return d;const h=Q$(c[u-2]);return u>1&&Q$(l)===h&&f[f.length-1].path!==h?f.findIndex(uf.bind(null,c[u-2])):d}),i=sr(()=>o.value>-1&&iQ(n.params,r.value.params)),a=sr(()=>o.value>-1&&o.value===n.matched.length-1&&vI(n.params,r.value.params));function s(c={}){return oQ(c)?t[Ie(e.replace)?"replace":"push"](Ie(e.to)).catch(qd):Promise.resolve()}return{route:r,href:sr(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}const nQ=Bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:G$,setup(e,{slots:t}){const n=Xa(G$(e)),{options:r}=ci(jk),o=sr(()=>({[Y$(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Y$(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Do("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),rQ=nQ;function oQ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function iQ(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ya(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function Q$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Y$=(e,t,n)=>e??t??n,aQ=Bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ci(Tb),o=sr(()=>e.route||r.value),i=ci(J$,0),a=sr(()=>{let u=Ie(i);const{matched:l}=o.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),s=sr(()=>o.value.matched[a.value]);Dl(J$,sr(()=>a.value+1)),Dl(tQ,s),Dl(Tb,o);const c=Tn();return no(()=>[c.value,s.value,e.name],([u,l,f],[d,h,p])=>{l&&(l.instances[f]=u,h&&h!==l&&u&&u===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),u&&l&&(!h||!uf(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,l=e.name,f=s.value,d=f&&f.components[l];if(!d)return Z$(n.default,{Component:d,route:u});const h=f.props[l],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Do(d,Wn({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return Z$(n.default,{Component:m,route:u})||m}}});function Z$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const CI=aQ;function sQ(e){const t=IG(e.routes,e),n=e.parseQuery||ZG,r=e.stringifyQuery||K$,o=e.history,i=id(),a=id(),s=id(),c=ef(Ra);let u=Ra;ul&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=S1.bind(null,G=>""+G),f=S1.bind(null,YG),d=S1.bind(null,Vm);function h(G,pt){let gt,_t;return yI(G)?(gt=t.getRecordMatcher(G),_t=pt):_t=G,t.addRoute(_t,gt)}function p(G){const pt=t.getRecordMatcher(G);pt&&t.removeRoute(pt)}function v(){return t.getRoutes().map(G=>G.record)}function m(G){return!!t.getRecordMatcher(G)}function g(G,pt){if(pt=Wn({},pt||c.value),typeof G=="string"){const X=C1(n,G,pt.path),wt=t.resolve({path:X.path},pt),ft=o.createHref(X.fullPath);return Wn(X,wt,{params:d(wt.params),hash:Vm(X.hash),redirectedFrom:void 0,href:ft})}let gt;if("path"in G)gt=Wn({},G,{path:C1(n,G.path,pt.path).path});else{const X=Wn({},G.params);for(const wt in X)X[wt]==null&&delete X[wt];gt=Wn({},G,{params:f(X)}),pt.params=f(pt.params)}const _t=t.resolve(gt,pt),yt=G.hash||"";_t.params=l(d(_t.params));const Q=lG(r,Wn({},G,{hash:JG(yt),path:_t.path})),P=o.createHref(Q);return Wn({fullPath:Q,hash:yt,query:r===K$?XG(G.query):G.query||{}},_t,{redirectedFrom:void 0,href:P})}function y(G){return typeof G=="string"?C1(n,G,c.value.path):Wn({},G)}function b(G,pt){if(u!==G)return lf(8,{from:pt,to:G})}function w(G){return O(G)}function k(G){return w(Wn(y(G),{replace:!0}))}function x(G){const pt=G.matched[G.matched.length-1];if(pt&&pt.redirect){const{redirect:gt}=pt;let _t=typeof gt=="function"?gt(G):gt;return typeof _t=="string"&&(_t=_t.includes("?")||_t.includes("#")?_t=y(_t):{path:_t},_t.params={}),Wn({query:G.query,hash:G.hash,params:"path"in _t?{}:G.params},_t)}}function O(G,pt){const gt=u=g(G),_t=c.value,yt=G.state,Q=G.force,P=G.replace===!0,X=x(gt);if(X)return O(Wn(y(X),{state:typeof X=="object"?Wn({},yt,X.state):yt,force:Q,replace:P}),pt||gt);const wt=gt;wt.redirectedFrom=pt;let ft;return!Q&&fG(r,_t,gt)&&(ft=lf(16,{to:wt,from:_t}),B(_t,_t,!0,!1)),(ft?Promise.resolve(ft):T(wt,_t)).catch(L=>vs(L)?vs(L,2)?L:C(L):A(L,wt,_t)).then(L=>{if(L){if(vs(L,2))return O(Wn({replace:P},y(L.to),{state:typeof L.to=="object"?Wn({},yt,L.to.state):yt,force:Q}),pt||wt)}else L=I(wt,_t,!0,P,yt);return R(wt,_t,L),L})}function _(G,pt){const gt=b(G,pt);return gt?Promise.reject(gt):Promise.resolve()}function M(G){const pt=K.values().next().value;return pt&&typeof pt.runWithContext=="function"?pt.runWithContext(G):G()}function T(G,pt){let gt;const[_t,yt,Q]=cQ(G,pt);gt=E1(_t.reverse(),"beforeRouteLeave",G,pt);for(const X of _t)X.leaveGuards.forEach(wt=>{gt.push(rc(wt,G,pt))});const P=_.bind(null,G,pt);return gt.push(P),st(gt).then(()=>{gt=[];for(const X of i.list())gt.push(rc(X,G,pt));return gt.push(P),st(gt)}).then(()=>{gt=E1(yt,"beforeRouteUpdate",G,pt);for(const X of yt)X.updateGuards.forEach(wt=>{gt.push(rc(wt,G,pt))});return gt.push(P),st(gt)}).then(()=>{gt=[];for(const X of Q)if(X.beforeEnter)if(ya(X.beforeEnter))for(const wt of X.beforeEnter)gt.push(rc(wt,G,pt));else gt.push(rc(X.beforeEnter,G,pt));return gt.push(P),st(gt)}).then(()=>(G.matched.forEach(X=>X.enterCallbacks={}),gt=E1(Q,"beforeRouteEnter",G,pt),gt.push(P),st(gt))).then(()=>{gt=[];for(const X of a.list())gt.push(rc(X,G,pt));return gt.push(P),st(gt)}).catch(X=>vs(X,8)?X:Promise.reject(X))}function R(G,pt,gt){s.list().forEach(_t=>M(()=>_t(G,pt,gt)))}function I(G,pt,gt,_t,yt){const Q=b(G,pt);if(Q)return Q;const P=pt===Ra,X=ul?history.state:{};gt&&(_t||P?o.replace(G.fullPath,Wn({scroll:P&&X&&X.scroll},yt)):o.push(G.fullPath,yt)),c.value=G,B(G,pt,gt,P),C()}let H;function S(){H||(H=o.listen((G,pt,gt)=>{if(!J.listening)return;const _t=g(G),yt=x(_t);if(yt){O(Wn(yt,{replace:!0}),_t).catch(qd);return}u=_t;const Q=c.value;ul&&bG(z$(Q.fullPath,gt.delta),f0()),T(_t,Q).catch(P=>vs(P,12)?P:vs(P,2)?(O(P.to,_t).then(X=>{vs(X,20)&&!gt.delta&&gt.type===mh.pop&&o.go(-1,!1)}).catch(qd),Promise.reject()):(gt.delta&&o.go(-gt.delta,!1),A(P,_t,Q))).then(P=>{P=P||I(_t,Q,!1),P&&(gt.delta&&!vs(P,8)?o.go(-gt.delta,!1):gt.type===mh.pop&&vs(P,20)&&o.go(-1,!1)),R(_t,Q,P)}).catch(qd)}))}let D=id(),V=id(),N;function A(G,pt,gt){C(G);const _t=V.list();return _t.length?_t.forEach(yt=>yt(G,pt,gt)):console.error(G),Promise.reject(G)}function $(){return N&&c.value!==Ra?Promise.resolve():new Promise((G,pt)=>{D.add([G,pt])})}function C(G){return N||(N=!G,S(),D.list().forEach(([pt,gt])=>G?gt(G):pt()),D.reset()),G}function B(G,pt,gt,_t){const{scrollBehavior:yt}=e;if(!ul||!yt)return Promise.resolve();const Q=!gt&&wG(z$(G.fullPath,0))||(_t||!gt)&&history.state&&history.state.scroll||null;return Uu().then(()=>yt(G,pt,Q)).then(P=>P&&yG(P)).catch(P=>A(P,G,pt))}const F=G=>o.go(G);let j;const K=new Set,J={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:e,push:w,replace:k,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:V.add,isReady:$,install(G){const pt=this;G.component("RouterLink",rQ),G.component("RouterView",CI),G.config.globalProperties.$router=pt,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>Ie(c)}),ul&&!j&&c.value===Ra&&(j=!0,w(o.location).catch(yt=>{}));const gt={};for(const yt in Ra)Object.defineProperty(gt,yt,{get:()=>c.value[yt],enumerable:!0});G.provide(jk,pt),G.provide(SI,tp(gt)),G.provide(Tb,c);const _t=G.unmount;K.add(G),G.unmount=function(){K.delete(G),K.size<1&&(u=Ra,H&&H(),H=null,c.value=Ra,j=!1,N=!1),_t()}}};function st(G){return G.reduce((pt,gt)=>pt.then(()=>M(gt)),Promise.resolve())}return J}function cQ(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>uf(u,s))?r.push(s):n.push(s));const c=e.matched[a];c&&(t.matched.find(u=>uf(u,c))||o.push(c))}return[n,r,o]}const X$=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./index.0cbeeabd.js"),["./index.0cbeeabd.js","./index.ffbea0a9.css"],import.meta.url).then(e=>e.default||e)},{name:"options",path:"/options",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./options.1070a0ba.js"),["./options.1070a0ba.js","./shiki.4671d705.js"],import.meta.url).then(e=>e.default||e)},{name:"png",path:"/png",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./png.e3b1ce6b.js"),["./png.e3b1ce6b.js","./ImageLoader.45e71895.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"svg",path:"/svg",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./svg.26cfe41e.js"),["./svg.26cfe41e.js","./ImageLoader.45e71895.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"vnodes",path:"/vnodes",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./vnodes.7d34f085.js"),["./vnodes.7d34f085.js","./shiki.4671d705.js"],import.meta.url).then(e=>e.default||e)}],uQ={scrollBehavior(e,t,n){const r=cr();let o=n||void 0;if(!o&&t&&e&&e.meta.scrollToTop!==!1&&lQ(t,e)&&(o={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:tS(e.hash)}}const i=s=>!!(s.meta.pageTransition??Sb),a=i(t)&&i(e)?"page:transition:finish":"page:finish";return new Promise(s=>{r.hooks.hookOnce(a,async()=>{await Uu(),e.hash&&(o={el:e.hash,top:tS(e.hash)}),s(o)})})}};function tS(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function lQ(e,t){const n=t.matched.every((r,o)=>r.components?.default===e.matched[o]?.components?.default);return!!(!n||n&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const fQ={},Zs={...fQ,...uQ},dQ=async e=>{let t,n;if(!e.meta?.validate)return;const r=cr(),o=Ls();if(([t,n]=Bm(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const a=l0({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),s=o.beforeResolve(c=>{if(s(),c===e){const u=o.afterEach(async()=>{u(),await r.runWithContext(()=>wl(a)),window.history.pushState({},"",e.fullPath)});return!1}})},hQ=[dQ],Rb={};function pQ(e,t,n){const{pathname:r,search:o,hash:i}=t,a=e.indexOf("#");if(a>-1){const c=i.includes(e.slice(a))?e.slice(a).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),_$(u,"")}const s=n||_$(r,e);return s+(s.includes("?")?"":o)+i}const vQ=Ds({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=wk().app.baseURL;Zs.hashMode&&!r.includes("#")&&(r+="#");const o=Zs.history?.(r)??(Zs.hashMode?_G(r):gI(r)),i=Zs.routes?.(X$)??X$;let a;const s=pQ(r,window.location,e.payload.path),c=sQ({...Zs,scrollBehavior:(v,m,g)=>{if(m===Ra){a=g;return}return c.options.scrollBehavior=Zs.scrollBehavior,Zs.scrollBehavior?.(v,Ra,a||g)},history:o,routes:i});e.vueApp.use(c);const u=ef(c.currentRoute.value);c.afterEach((v,m)=>{u.value=m}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const l=ef(c.resolve(s)),f=()=>{l.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((v,m)=>{v.matched[0]?.components?.default===m.matched[0]?.components?.default&&f()});const d={};for(const v in l.value)Object.defineProperty(d,v,{get:()=>l.value[v]});e._route=tp(d),e._middleware=e._middleware||{global:[],named:{}};const h=u0();try{[t,n]=Bm(()=>c.isReady()),await t,n()}catch(v){[t,n]=Bm(()=>e.runWithContext(()=>wl(v))),await t,n()}const p=s0("_layout");return c.beforeEach(async(v,m)=>{v.meta=Xa(v.meta),e.isHydrating&&p.value&&!Mu(v.meta.layout)&&(v.meta.layout=p.value),e._processingMiddleware=!0;{const g=new Set([...hQ,...e._middleware.global]);for(const y of v.matched){const b=y.meta.middleware;if(b)if(Array.isArray(b))for(const w of b)g.add(w);else g.add(b)}for(const y of g){const b=typeof y=="string"?e._middleware.named[y]||await Rb[y]?.().then(k=>k.default||k):y;if(!b)throw new Error(`Unknown route middleware: '${y}'.`);const w=await e.runWithContext(()=>b(v,m));if(!e.payload.serverRendered&&e.isHydrating&&(w===!1||w instanceof Error)){const k=w||Ob({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await e.runWithContext(()=>wl(k)),!1}if(w||w===!1)return w}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(v,m,g)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(oG),v.matched.length===0&&await e.runWithContext(()=>wl(Ob({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(s),name:void 0,force:!0}),c.options.scrollBehavior=Zs.scrollBehavior}catch(v){await e.runWithContext(()=>wl(v))}}),{provide:{router:c}}}}),mQ=Ds({name:"nuxt:payload",setup(e){KJ()&&(e.hooks.hook("link:prefetch",async t=>{op(t).protocol||await R$(t)}),Ls().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await R$(t.path);r&&Object.assign(e.static.data,r.data)}))}}),gQ=Im(()=>za(()=>Promise.resolve().then(()=>nZ),void 0,import.meta.url).then(e=>e.default)),yQ=Im(()=>za(()=>import("./IconCSS.acbfc761.js"),["./IconCSS.acbfc761.js","./IconCSS.b41b9663.css"],import.meta.url).then(e=>e.default)),bQ=[["Icon",gQ],["IconCSS",yQ]],wQ=Ds({name:"nuxt:global-components",setup(e){for(const[t,n]of bQ)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),xQ=Ds({name:"nuxt:head",setup(e){const n=DJ();n.push(HJ),e.vueApp.use(n);{let r=!0;const o=()=>{r=!1,n.hooks.callHook("entries:updated",n)};n.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",o),e.hooks.hook("app:suspense:resolve",o)}}}),Vp={},kQ=Ds({name:"nuxt:prefetch",setup(e){const t=Ls();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Vp[r]=="function"&&await Vp[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Lf(n))return;const r=t.resolve(n);if(!r)return;const o=r?.meta?.layout;let i=Array.isArray(r?.meta?.middleware)?r?.meta?.middleware:[r?.meta?.middleware];i=i.filter(a=>typeof a=="string");for(const a of i)typeof Rb[a]=="function"&&Rb[a]();o&&typeof Vp[o]=="function"&&Vp[o]()})}}),Ib=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),jQ=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),_Q=e=>{const t=cr();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Ib(e)}):Ib(e)},$Q=()=>null;function _k(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");o.server=o.server??!0,o.default=o.default??$Q,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0;const i=cr(),a=()=>i.isHydrating?i.payload.data[n]:i.static.data[n],s=()=>a()!==void 0;i._asyncData[n]||(i._asyncData[n]={data:Tn(a()??o.default()),pending:Tn(!s()),error:ak(i.payload._errors,n),status:Tn("idle")});const c={...i._asyncData[n]};c.refresh=c.execute=(d={})=>{if(i._asyncDataPromises[n]){if(d.dedupe===!1)return i._asyncDataPromises[n];i._asyncDataPromises[n].cancelled=!0}if((d._initial||i.isHydrating&&d._initial!==!1)&&s())return a();c.pending.value=!0,c.status.value="pending";const h=new Promise((p,v)=>{try{p(r(i))}catch(m){v(m)}}).then(p=>{if(h.cancelled)return i._asyncDataPromises[n];let v=p;o.transform&&(v=o.transform(p)),o.pick&&(v=SQ(v,o.pick)),c.data.value=v,c.error.value=null,c.status.value="success"}).catch(p=>{if(h.cancelled)return i._asyncDataPromises[n];c.error.value=p,c.data.value=Ie(o.default()),c.status.value="error"}).finally(()=>{h.cancelled||(c.pending.value=!1,i.payload.data[n]=c.data.value,c.error.value&&(i.payload._errors[n]=l0(c.error.value)),delete i._asyncDataPromises[n])});return i._asyncDataPromises[n]=h,i._asyncDataPromises[n]};const u=()=>c.refresh({_initial:!0}),l=o.server!==!1&&i.payload.serverRendered;{const d=cs();if(d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const p=d._nuxtOnBeforeMountCbs;d&&(w9(()=>{p.forEach(v=>{v()}),p.splice(0,p.length)}),nf(()=>p.splice(0,p.length)))}l&&i.isHydrating&&s()?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):d&&(i.payload.serverRendered&&i.isHydrating||o.lazy)&&o.immediate?d._nuxtOnBeforeMountCbs.push(u):o.immediate&&u(),o.watch&&no(o.watch,()=>c.refresh());const h=i.hook("app:data:refresh",p=>{if(!p||p.includes(n))return c.refresh()});d&&nf(h)}const f=Promise.resolve(i._asyncDataPromises[n]).then(()=>c);return Object.assign(f,c),f}function SQ(e,t){const n={};for(const r of t)n[r]=e[r];return n}async function EI(e,t=Ls()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>EI(e,t));t._routePreloaded.add(n);const i=r.map(a=>a.components?.default).filter(a=>typeof a=="function");for(const a of i){const s=Promise.resolve(a()).catch(()=>{}).finally(()=>o.splice(o.indexOf(s)));o.push(s)}await Promise.all(o)}function CQ(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:cr().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const EQ=(...e)=>e.find(t=>t!==void 0),OQ="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function MQ(e){const t=e.componentName||"NuxtLink",n=(r,o)=>{if(!r||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return r;const i=e.trailingSlash==="append"?G9:bk;if(typeof r=="string")return i(r,!0);const a="path"in r?r.path:o(r).path;return{...r,name:void 0,path:i(a,!0)}};return Bo({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(r,{slots:o}){const i=Ls(),a=sr(()=>{const f=r.to||r.href||"";return n(f,i.resolve)}),s=sr(()=>r.external||r.target&&r.target!=="_self"?!0:typeof a.value=="object"?!1:a.value===""||Lf(a.value,{acceptRelative:!0})),c=Tn(!1),u=Tn(null),l=f=>{u.value=r.custom?f?.$el?.nextElementSibling:f?.$el};if(r.prefetch!==!1&&r.noPrefetch!==!0&&r.target!=="_blank"&&!AQ()){const d=cr();let h,p=null;Ku(()=>{const v=PQ();_Q(()=>{h=Ib(()=>{u?.value?.tagName&&(p=v.observe(u.value,async()=>{p?.(),p=null;const m=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",m).catch(()=>{}),!s.value&&EI(a.value,i).catch(()=>{})]),c.value=!0}))})})}),np(()=>{h&&jQ(h),p?.(),p=null})}return()=>{if(!s.value){const v={ref:l,to:a.value,activeClass:r.activeClass||e.activeClass,exactActiveClass:r.exactActiveClass||e.exactActiveClass,replace:r.replace,ariaCurrentValue:r.ariaCurrentValue,custom:r.custom};return r.custom||(c.value&&(v.class=r.prefetchedClass||e.prefetchedClass),v.rel=r.rel),Do(NW("RouterLink"),v,o.default)}const f=typeof a.value=="object"?i.resolve(a.value)?.href??null:a.value||null,d=r.target||null,h=r.noRel?null:EQ(r.rel,e.externalRelAttribute,f?OQ:"")||null,p=()=>rG(f,{replace:r.replace});return r.custom?o.default?o.default({href:f,navigate:p,get route(){if(!f)return;const v=op(f);return{path:v.pathname,fullPath:v.pathname,get query(){return J9(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f}},rel:h,target:d,isExternal:s.value,isActive:!1,isExactActive:!1}):null:Do("a",{ref:u,href:f,rel:h,target:d},o.default?.())}}})}const OI=MQ({componentName:"NuxtLink"});function PQ(){const e=cr();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,a)=>(t||(t=new IntersectionObserver(s=>{for(const c of s){const u=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&u&&u()}})),n.set(i,a),t.observe(i),()=>{n.delete(i),t.unobserve(i),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function AQ(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const TQ={},RQ=YJ(TQ);function IQ(){const e=cr();return e._appConfig||(e._appConfig=Xa(RQ)),e._appConfig}const NQ="__NUXT_COLOR_MODE__",DQ="ColorScheme",LQ="nuxt-color-mode",ms=window[NQ],zQ=Ds(e=>{const t=s0("color-mode",()=>Xa({preference:ms.preference,value:ms.value,unknown:!1,forced:!1})).value;Ls().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ms.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ms.getColorScheme())}))}no(()=>t.preference,o=>{t.forced||(o==="system"?(t.value=ms.getColorScheme(),r()):t.value=o,window.localStorage?.setItem(LQ,o))},{immediate:!0}),no(()=>t.value,(o,i)=>{ms.removeColorScheme(i),ms.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ms.preference,t.value=ms.value,t.unknown=!1)}),e.provide("colorMode",t)});const BQ=Ds(()=>{}),FQ=Ds({name:"nuxt:chunk-reload",setup(e){const t=Ls(),n=wk(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)}),t.onError((o,i)=>{if(r.has(o)){const s="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:rp(n.app.baseURL,i.fullPath);CQ({path:s,persistState:!0})}})}}),HQ=[aG,vQ,mQ,wQ,xQ,kQ,zQ,BQ,FQ],$k=Bo({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Ln(),ri("div",{class:Vr(["n-icon",t.icon])},null,2))}}),VQ=Bo({__name:"NButton",props:{to:{},icon:{}},setup(e){return(t,n)=>{const r=$k;return Ln(),go(fk(t.to?Ie(OI):"button"),mk({to:t.to},t.$attrs,{class:"n-button n-button-base active:n-button-active focus-visible:n-focus-base n-transition hover:n-button-hover n-disabled:n-disabled"}),{default:to(()=>[Pu(t.$slots,"icon",{},()=>[t.icon?(Ln(),go(r,{key:0,icon:t.icon,class:"n-button-icon"},null,8,["icon"])):Ta("",!0)]),Pu(t.$slots,"default")]),_:3},16,["to"])}}}),qQ=Bo({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Tn(!1);return Ku(()=>{r.value=!0}),o=>{if(r.value)return t.default?.();const i=t.fallback||t.placeholder;if(i)return i();const a=o.fallback||o.placeholder||"",s=o.fallbackTag||o.placeholderTag||"span";return ri(s,n,a)}}}),MI=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},WQ={name:DQ,props:{placeholder:String,tag:{type:String,default:"span"}}};function UQ(e,t,n,r,o,i){const a=qQ;return Ln(),go(a,{placeholder:n.placeholder,"placeholder-tag":n.tag},{default:to(()=>[Pu(e.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const KQ=MI(WQ,[["render",UQ]]),PI=()=>s0("color-mode").value,JQ=Bo({__name:"NDarkToggle",setup(e){const t=PI(),n=sr({get(){return t.value==="dark"},set(){t.preference=n.value?"light":"dark"}}),r=typeof document<"u"&&document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(a){if(!r||!a){n.value=!n.value;return}const s=a.clientX,c=a.clientY,u=Math.hypot(Math.max(s,innerWidth-s),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{n.value=!n.value,await Uu()}).ready.then(()=>{const f=[`circle(0px at ${s}px ${c}px)`,`circle(${u}px at ${s}px ${c}px)`];document.documentElement.animate({clipPath:n.value?[...f].reverse():f},{duration:400,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const i={mode:t,isDark:n,toggle:o};return(a,s)=>{const c=KQ;return Ln(),go(c,{tag:"span"},{default:to(()=>[Pu(a.$slots,"default",B7(pk(i)))]),_:3})}}}),AI=Object.freeze({left:0,top:0,width:16,height:16}),TI=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Sk=Object.freeze({...AI,...TI});Object.freeze({...Sk,body:"",hidden:!1});({...AI});const RI=Object.freeze({width:null,height:null}),II=Object.freeze({...RI,...TI});function GQ(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in RI?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const QQ=/[\s,]+/;function YQ(e,t){t.split(QQ).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ZQ(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const XQ=/(-?[0-9.]*[0-9]+[0-9.]*)/g,tY=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function eS(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(XQ);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=tY.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const eY=e=>e==="unset"||e==="undefined"||e==="none";function nY(e,t){const n={...Sk,...e},r={...II,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(p=>{const v=[],m=p.hFlip,g=p.vFlip;let y=p.rotate;m?g?y+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):g&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=o.height/2+o.top,v.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,v.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),v.length&&(i='<g transform="'+v.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let l,f;a===null?(f=s===null?"1em":s==="auto"?u:s,l=eS(f,c/u)):(l=a==="auto"?c:a,f=s===null?eS(l,u/c):s==="auto"?u:s);const d={},h=(p,v)=>{eY(v)||(d[p]=v.toString())};return h("width",l),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:d,body:i}}const rY=/\sid="(\S+)"/g,oY="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let iY=0;function aY(e,t=oY){const n=[];let r;for(;r=rY.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(iY++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function sY(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function cY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function uY(e){return"data:image/svg+xml,"+cY(e)}function lY(e){return'url("'+uY(e)+'")'}const nS={...II,inline:!1},fY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},dY={display:"inline-block"},Nb={backgroundColor:"currentColor"},NI={backgroundColor:"transparent"},rS={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},oS={webkitMask:Nb,mask:Nb,background:NI};for(const e in oS){const t=oS[e];for(const n in rS)t[e+n]=rS[n]}const em={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";em[e+"-flip"]=t,em[e.slice(0,1)+"-flip"]=t,em[e+"Flip"]=t});function iS(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const hY=(e,t)=>{const n=GQ(nS,t),r={...fY},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const m=t[v];if(m!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&YQ(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[v]=ZQ(m):typeof m=="number"&&(n[v]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete r["aria-hidden"];break;default:{const g=em[v];g?(m===!0||m==="true"||m===1)&&(n[g]=!0):nS[v]===void 0&&(r[v]=m)}}}const c=nY(e,n),u=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),r.innerHTML=aY(c.body,m?()=>m+"ID"+v++:"iconifyVue"),Do("svg",r)}const{body:l,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),p=sY(l,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":lY(p),width:iS(u.width),height:iS(u.height),...dY,...h?Nb:NI,...s},Do("span",r)},pY=Object.create(null),vY=Bo({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?pY[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:hY({...Sk,...n},e)}}),Ud=/^[a-z0-9]+(-[a-z0-9]+)*$/,d0=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return t&&!nm(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!nm(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!nm(s,n)?null:s}return null},nm=(e,t)=>e?!!((e.provider===""||e.provider.match(Ud))&&(t&&e.prefix===""||e.prefix.match(Ud))&&e.name.match(Ud)):!1,DI=Object.freeze({left:0,top:0,width:16,height:16}),qm=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ck=Object.freeze({...DI,...qm}),Db=Object.freeze({...Ck,body:"",hidden:!1});function mY(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function aS(e,t){const n=mY(e,t);for(const r in Db)r in qm?r in e&&!(r in n)&&(n[r]=qm[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function gY(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function yY(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=aS(r[s]||o[s],i)}return a(t),n.forEach(a),aS(e,i)}function LI(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=gY(e);for(const o in r){const i=r[o];i&&(t(o,yY(e,o,i)),n.push(o))}return n}const bY={provider:"",aliases:{},not_found:{},...DI};function O1(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function zI(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!O1(e,bY))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Ud)||typeof i.body!="string"||!O1(i,Db))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(Ud)||typeof a!="string"||!n[a]&&!r[a]||!O1(i,Db))return null}return t}const sS=Object.create(null);function wY(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Au(e,t){const n=sS[e]||(sS[e]=Object.create(null));return n[t]||(n[t]=wY(e,t))}function Ek(e,t){return zI(t)?LI(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function xY(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let gh=!1;function BI(e){return typeof e=="boolean"&&(gh=e),gh}function kY(e){const t=typeof e=="string"?d0(e,!0,gh):e;if(t){const n=Au(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function jY(e,t){const n=d0(e,!0,gh);if(!n)return!1;const r=Au(n.provider,n.prefix);return xY(r,n.name,t)}function _Y(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),gh&&!t&&!e.prefix){let o=!1;return zI(e)&&(e.prefix="",LI(e,(i,a)=>{a&&jY(i,a)&&(o=!0)})),o}const n=e.prefix;if(!nm({provider:t,prefix:n,name:"a"}))return!1;const r=Au(t,n);return!!Ek(r,e)}const $Y=Object.freeze({width:null,height:null}),SY=Object.freeze({...$Y,...qm});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Lb=Object.create(null);function CY(e,t){Lb[e]=t}function zb(e){return Lb[e]||Lb[""]}function Ok(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Mk=Object.create(null),ad=["https://api.simplesvg.com","https://api.unisvg.com"],rm=[];for(;ad.length>0;)ad.length===1||Math.random()>.5?rm.push(ad.shift()):rm.push(ad.pop());Mk[""]=Ok({resources:["https://api.iconify.design"].concat(rm)});function EY(e,t){const n=Ok(t);return n===null?!1:(Mk[e]=n,!0)}function Pk(e){return Mk[e]}const OY=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let cS=OY();function MY(e,t){const n=Pk(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function PY(e){return e===404}const AY=(e,t,n)=>{const r=[],o=MY(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function TY(e){if(typeof e=="string"){const t=Pk(e);if(t)return t.path}return"/"}const RY=(e,t,n)=>{if(!cS){n("abort",424);return}let r=TY(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;cS(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(PY(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},IY={prepare:AY,send:RY};function NY(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=n[i]||(n[i]=Object.create(null)),u=c[a]||(c[a]=Au(i,a));let l;s in u.icons?l=t.loaded:a===""||u.missing.has(s)?l=t.missing:l=t.pending;const f={provider:i,prefix:a,name:s};l.push(f)}),t}function FI(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function DY(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||FI([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let LY=0;function zY(e,t,n){const r=LY++,o=FI.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function BY(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?d0(o,t,n):o;i&&r.push(i)}),r}var FY={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function HY(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let x=e.resources.slice(0);for(a=[];x.length>1;){const O=Math.floor(Math.random()*x.length);a.push(x[O]),x=x.slice(0,O).concat(x.slice(O+1))}a=a.concat(x)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,l,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){c==="pending"&&(c="aborted"),p(),d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function m(x,O){O&&(h=[]),typeof x=="function"&&h.push(x)}function g(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:d.length,subscribe:m,abort:v}}function y(){c="failed",h.forEach(x=>{x(void 0,l)})}function b(){d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function w(x,O,_){const M=O!=="success";switch(d=d.filter(T=>T!==x),c){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){l=_,y();return}if(M){l=_,d.length||(a.length?k():y());return}if(p(),b(),!e.random){const T=e.resources.indexOf(x.resource);T!==-1&&T!==e.index&&(e.index=T)}c="completed",h.forEach(T=>{T(_)})}function k(){if(c!=="pending")return;p();const x=a.shift();if(x===void 0){if(d.length){f=setTimeout(()=>{p(),c==="pending"&&(b(),y())},e.timeout);return}y();return}const O={status:"pending",resource:x,callback:(_,M)=>{w(O,_,M)}};d.push(O),u++,f=setTimeout(k,e.rotate),n(x,t,O.callback)}return setTimeout(k),g}function HI(e){const t={...FY,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function o(s,c,u){const l=HY(t,s,c,(f,d)=>{r(),u&&u(f,d)});return n.push(l),l}function i(s){return n.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function uS(){}const M1=Object.create(null);function VY(e){if(!M1[e]){const t=Pk(e);if(!t)return;const n=HI(t),r={config:t,redundancy:n};M1[e]=r}return M1[e]}function qY(e,t,n){let r,o;if(typeof e=="string"){const i=zb(e);if(!i)return n(void 0,424),uS;o=i.send;const a=VY(e);a&&(r=a.redundancy)}else{const i=Ok(e);if(i){r=HI(i);const a=e.resources?e.resources[0]:"",s=zb(a);s&&(o=s.send)}}return!r||!o?(n(void 0,424),uS):r.query(t,o,n)().abort}const lS="iconify2",yh="iconify",VI=yh+"-count",fS=yh+"-version",qI=36e5,WY=168;function Bb(e,t){try{return e.getItem(t)}catch{}}function Ak(e,t,n){try{return e.setItem(t,n),!0}catch{}}function dS(e,t){try{e.removeItem(t)}catch{}}function Fb(e,t){return Ak(e,VI,t.toString())}function Hb(e){return parseInt(Bb(e,VI))||0}const h0={local:!0,session:!0},WI={local:new Set,session:new Set};let Tk=!1;function UY(e){Tk=e}let qp=typeof window>"u"?{}:window;function UI(e){const t=e+"Storage";try{if(qp&&qp[t]&&typeof qp[t].length=="number")return qp[t]}catch{}h0[e]=!1}function KI(e,t){const n=UI(e);if(!n)return;const r=Bb(n,fS);if(r!==lS){if(r){const s=Hb(n);for(let c=0;c<s;c++)dS(n,yh+c.toString())}Ak(n,fS,lS),Fb(n,0);return}const o=Math.floor(Date.now()/qI)-WY,i=s=>{const c=yh+s.toString(),u=Bb(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&t(l,s))return!0}catch{}dS(n,c)}};let a=Hb(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Fb(n,a)):WI[e].add(s))}function JI(){if(!Tk){UY(!0);for(const e in h0)KI(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=Au(r,o);if(!Ek(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function KY(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in h0)KI(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function JY(e,t){Tk||JI();function n(r){let o;if(!h0[r]||!(o=UI(r)))return;const i=WI[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Hb(o),!Fb(o,a+1))return;const s={cached:Math.floor(Date.now()/qI),provider:e.provider,data:t};return Ak(o,yh+a.toString(),JSON.stringify(s))}t.lastModified&&!KY(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function hS(){}function GY(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,DY(e)}))}function QY(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=zb(n)))return;i.prepare(n,r,o).forEach(s=>{qY(n,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Ek(e,c);if(!u.length)return;const l=e.pendingIcons;l&&u.forEach(f=>{l.delete(f)}),JY(e,c)}catch(u){console.error(u)}GY(e)})})}))}const YY=(e,t)=>{const n=BY(e,!0,BI()),r=NY(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,hS)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===s&&u===a)return;a=u,s=l,i.push(Au(u,l));const f=o[u]||(o[u]=Object.create(null));f[l]||(f[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:f}=c,d=Au(u,l),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][l].push(f))}),i.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&QY(c,o[u][l])}),t?zY(t,r,i):hS},ZY=e=>new Promise((t,n)=>{const r=typeof e=="string"?d0(e,!0):e;if(!r){n(e);return}YY([r||e],o=>{if(o.length&&r){const i=kY(r);if(i){t({...Ck,...i});return}}n(e)})});({...SY});const pS={backgroundColor:"currentColor"},XY={backgroundColor:"transparent"},vS={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},mS={webkitMask:pS,mask:pS,background:XY};for(const e in mS){const t=mS[e];for(const n in vS)t[e+n]=vS[n]}const P1={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";P1[e+"-flip"]=t,P1[e.slice(0,1)+"-flip"]=t,P1[e+"Flip"]=t});BI(!0);CY("",IY);if(typeof document<"u"&&typeof window<"u"){JI();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!_Y(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;EY(n,o)||console.error(r)}catch{console.error(r)}}}}({...Ck});const tZ=["width","height"],eZ=Bo({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=e,o=cr(),i=IQ();i?.nuxtIcon?.aliases;const a=s0("icons",()=>({})),s=Tn(!1),c=sr(()=>(i.nuxtIcon?.aliases||{})[r.name]||r.name),u=sr(()=>a.value?.[c.value]),l=sr(()=>o.vueApp.component(c.value)),f=sr(()=>{if(!r.size&&typeof i.nuxtIcon?.size=="boolean"&&!i.nuxtIcon?.size)return;const p=r.size||i.nuxtIcon?.size||"1em";return String(Number(p))===p?`${p}px`:p}),d=sr(()=>i?.nuxtIcon?.class??"icon");async function h(){l.value||a.value?.[c.value]||(s.value=!0,a.value[c.value]=await ZY(c.value).catch(()=>{}),s.value=!1)}return no(()=>c.value,h),!l.value&&([t,n]=db(()=>h()),t=await t,n()),(p,v)=>s.value?(Ln(),ri("span",{key:0,class:Vr(d.value),width:f.value,height:f.value},null,10,tZ)):u.value?(Ln(),go(Ie(vY),{key:1,icon:u.value,class:Vr(d.value),width:f.value,height:f.value},null,8,["icon","class","width","height"])):l.value?(Ln(),go(fk(l.value),{key:2,class:Vr(d.value),width:f.value,height:f.value},null,8,["class","width","height"])):(Ln(),ri("span",{key:3,class:Vr(d.value),style:Wu({fontSize:f.value,lineHeight:f.value,width:f.value,height:f.value})},[Pu(p.$slots,"default",{},()=>[vu(Xv(e.name),1)],!0)],6))}});const GI=MI(eZ,[["__scopeId","data-v-fed4f909"]]),nZ=Object.freeze(Object.defineProperty({__proto__:null,default:GI},Symbol.toStringTag,{value:"Module"}));function gS(e){return typeof e=="function"?e():Ie(e)}const rZ=e=>typeof e<"u",yS=()=>{};function oZ(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function iZ(e,t={}){let n,r,o=yS;const i=s=>{clearTimeout(s),o(),o=yS};return s=>{const c=gS(e),u=gS(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((l,f)=>{o=t.rejectOnCancel?f:l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,l(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,l(s())},c)})}}function Rk(e,t=200,n={}){return oZ(iZ(t,n),e)}function aZ(e){return JSON.parse(JSON.stringify(e))}function sZ(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:c=!1,eventName:u,deep:l=!1,defaultValue:f,shouldEmit:d}=r,h=cs(),p=n||h?.emit||((o=h?.$emit)==null?void 0:o.bind(h))||((a=(i=h?.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h?.proxy));let v=u;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=b=>s?typeof s=="function"?s(b):aZ(b):b,g=()=>rZ(e[t])?m(e[t]):f,y=b=>{d?d(b)&&p(v,b):p(v,b)};if(c){const b=g(),w=Tn(b);return no(()=>e[t],k=>w.value=m(k)),no(w,k=>{(k!==e[t]||l)&&y(k)},{deep:l}),w}else return sr({get(){return g()},set(b){y(b)}})}const cZ={class:"n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base"},uZ=Bo({__name:"NTextInput",props:{modelValue:{default:""},icon:{},placeholder:{},disabled:{type:Boolean},type:{default:"text"}},setup(e,{emit:t}){const r=sZ(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=$k;return Ln(),ri("div",cZ,[Pu(o.$slots,"icon",{},()=>[o.icon?(Ln(),go(a,{key:0,icon:o.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):Ta("",!0)]),$W(Qn("input",mk({"onUpdate:modelValue":i[0]||(i[0]=s=>Ur(r)?r.value=s:null)},o.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[DU,Ie(r)]])])}}}),lZ=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>e.params[n.slice(1)]?.toString()||""),Vb=(e,t)=>{const n=e.route.matched.find(o=>o.components?.default===e.Component.type),r=t??n?.meta.key??(n&&lZ(e.route,n));return typeof r=="function"?r(e.route):r},fZ=(e,t)=>({default:()=>e?Do(MW,e===!0?{}:e,t):t}),dZ=Bo({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Dl(c0,tp(r)),()=>Do(e.vnode,{ref:e.vnodeRef})}}),hZ=(e,t,n)=>(t=t===!0?{}:t,{default:()=>t?Do(e,t,n):n.default?.()}),pZ=Bo({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=cr(),o=Tn(),i=ci(c0,null);n({pageRef:o});const a=ci(eG,null);let s;return()=>Do(CI,{name:e.name,route:e.route,...t},{default:c=>{const u=gZ(i,c.route,c.Component),l=i&&i.matched.length===c.route.matched.length;if(!c.Component)return s&&!l?s:void 0;if(s&&a&&!a.isCurrent(c.route))return s;if(u&&i&&(!a||a?.isCurrent(i)))return l?s:null;const f=Vb(c,e.pageKey),d=r.deferHydration(),h=!!(e.transition??c.route.meta.pageTransition??Sb),p=h&&mZ([e.transition,c.route.meta.pageTransition,Sb,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return s=hZ(yk,h&&p,fZ(e.keepalive??c.route.meta.keepalive??VJ,Do(f9,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{Uu(()=>r.callHook("page:finish",c.Component).finally(d))}},{default:()=>Do(dZ,{key:f,vnode:c.Component,route:c.route,renderKey:f,trackRootNodes:h,vnodeRef:o})}))).default(),s}})}});function vZ(e){return Array.isArray(e)?e:e?[e]:[]}function mZ(e){const t=e.map(n=>({...n,onAfterLeave:vZ(n.onAfterLeave)}));return QJ(...t)}function gZ(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>o.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((o,i)=>o.components?.default!==e.matched[i]?.components?.default)||n&&Vb({route:t,Component:n})!==Vb({route:e,Component:n})}const yZ=6e4;function QI(e){return e}const bZ=QI,{setTimeout:wZ}=globalThis,xZ=Math.random.bind(Math);function kZ(e,t){const{post:n,on:r,eventNames:o=[],serialize:i=QI,deserialize:a=bZ,resolver:s,timeout:c=yZ}=t,u=new Map;let l;const f=new Proxy({},{get(d,h){if(h==="$functions")return e;const p=(...m)=>{n(i({m:h,a:m,t:"q"}))};if(o.includes(h))return p.asEvent=p,p;const v=async(...m)=>(await l,new Promise((g,y)=>{const b=_Z();u.set(b,{resolve:g,reject:y}),n(i({m:h,a:m,i:b,t:"q"})),c>=0&&wZ(()=>{y(new Error(`[birpc] timeout on calling "${h}"`)),u.delete(b)},c)}));return v.asEvent=p,v}});return l=r(async(d,...h)=>{const p=a(d);if(p.t==="q"){const{m:v,a:m}=p;let g,y;const b=s?s(v,e[v]):e[v];if(!b)y=new Error(`[birpc] function "${v}" not found`);else try{g=await b.apply(f,m)}catch(w){y=w}p.i&&(y&&t.onError&&t.onError(y,v,m),n(i({t:"s",i:p.i,r:g,e:y}),...h))}else{const{i:v,r:m,e:g}=p,y=u.get(v);y&&(g?y.reject(g):y.resolve(m)),u.delete(v)}}),f}const jZ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function _Z(e=21){let t="",n=e;for(;n--;)t+=jZ[xZ()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:$Z,stringify:SZ}=JSON,{keys:CZ}=Object,bh=String,YI="string",bS={},Wm="object",ZI=(e,t)=>t,EZ=e=>e instanceof bh?bh(e):e,OZ=(e,t)=>typeof t===YI?new bh(t):t,XI=(e,t,n,r)=>{const o=[];for(let i=CZ(n),{length:a}=i,s=0;s<a;s++){const c=i[s],u=n[c];if(u instanceof bh){const l=e[u];typeof l===Wm&&!t.has(l)?(t.add(l),n[c]=bS,o.push({k:c,a:[e,t,l,r]})):n[c]=r.call(n,c,l)}else n[c]!==bS&&(n[c]=r.call(n,c,u))}for(let{length:i}=o,a=0;a<i;a++){const{k:s,a:c}=o[a];n[s]=r.call(n,s,XI.apply(null,c))}return n},wS=(e,t,n)=>{const r=bh(t.push(n)-1);return e.set(n,r),r},MZ=(e,t)=>{const n=$Z(e,OZ).map(EZ),r=n[0],o=t||ZI,i=typeof r===Wm&&r?XI(n,new Set,r,o):r;return o.call({"":i},"",i)},PZ=(e,t,n)=>{const r=t&&typeof t===Wm?(l,f)=>l===""||-1<t.indexOf(l)?f:void 0:t||ZI,o=new Map,i=[],a=[];let s=+wS(o,i,r.call({"":e},"",e)),c=!s;for(;s<i.length;)c=!0,a[s]=SZ(i[s++],u,n);return"["+a.join(",")+"]";function u(l,f){if(c)return c=!c,f;const d=r.call(this,l,f);switch(typeof d){case Wm:if(d===null)return d;case YI:return o.get(d)||wS(o,i,d)}return d}},AZ=2e3;let tN=()=>{};const xS=Tn(!0),kS=Tn(),eN=Tn(null);function TZ(e){const t=kZ(e,{post:n=>eN.value.send(n),on:n=>{tN=n},serialize:PZ,deserialize:MZ});return{useServerConfig:async function(){return(await _k("server-config",()=>t.getConfig())).data}}}async function nN(e){const t=new WebSocket(`ws://${e}/__nuxt_og_image__/entry`);return t.addEventListener("message",n=>tN(String(n.data))),t.addEventListener("error",n=>{kS.value=n}),t.addEventListener("close",()=>{console.log("[nuxt-og-image] WebSocket closed, reconnecting..."),setTimeout(async()=>{eN.value=await nN(e)},AZ)}),xS.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(n=>t.addEventListener("open",n)),console.log("[nuxt-og-image] WebSocket connected."),xS.value=!1,kS.value=null,t}const p0=Tn(Date.now()),jS=Tn(null),rN=window.location.host,Ha=Tn("/"),oN=Tn("/"),Wp=Tn({}),Md=Tn({}),ou=Tn(!1),A1=Tn({}),Pd=Rk(()=>{p0.value=Date.now()},200),RZ=Rk(()=>{p0.value=Date.now()},1e3),IZ={refresh(){ou.value=!1,Md.value={},Pd()}};await nN(rN);TZ(IZ);const ol=Tn(null),Ik=sr(()=>Q9(oN.value,`${window.location.protocol}//${rN}`)),P3t=sr(()=>`${Ik.value}${Ha.value==="/"?"":Ha.value}`);async function _S(){const{data:e}=await _k(()=>$fetch("/api/og-image-options",{baseURL:Ik.value,query:{path:Ha.value}}),{watch:[Ha,p0]},"$XVR8o8RMBy");return e}async function A3t(){const{data:e}=await _k(()=>$fetch("/api/og-image-vnode",{query:{path:Ha.value},baseURL:Ik.value}),{watch:[Ha,p0]},"$cHgKigQ0kS");return e}var T1,$S,SS,CS,ES,OS,MS,PS,AS,TS,RS,IS,NS,DS,LS,zS,BS,FS,HS,VS,qS,WS,US,KS,JS,GS,QS,YS,ZS,XS,tC,eC,nC,rC,oC,iC,aC,sC,cC,uC,lC,fC,dC,hC,pC,vC,mC,gC,yC,bC,wC,xC,kC,jC,_C,$C,SC,CC,EC,OC,MC,PC,AC,TC,RC,IC,NC,DC,LC,zC,BC,FC,HC,VC,qC,WC,UC,KC,JC,GC,QC,YC,ZC,XC,t3,e3,n3,r3,o3,i3,a3,s3,c3,u3,l3,f3,d3,h3,p3,v3,m3,g3,y3,b3,w3,x3,k3,j3,_3,$3,S3,C3,E3,O3,M3,P3,A3,T3,R3,I3,N3,D3,L3,z3,B3,F3,H3,V3,q3,W3,U3,K3,J3,G3,Q3,Y3,Z3,X3,t4,e4,n4,r4,o4,i4,a4,s4,c4,u4,l4,f4,d4,h4,p4,v4,m4,g4,y4,b4,w4,x4,k4,j4,_4,$4,S4,C4,E4,O4,M4,P4,A4,T4,R4,I4,N4,D4,L4,z4,B4,F4,H4,V4,q4,W4,U4,K4,J4,G4,Q4,Y4,Z4,X4,t8,e8,n8,r8,o8,i8,a8,s8,c8,u8,l8,f8,d8,h8,p8,v8,m8,g8,y8,b8,w8,x8,k8,j8,_8,$8,S8,C8,E8,O8,M8,P8,A8,T8,R8,I8,N8,D8,L8,z8,B8,F8,H8,V8,q8,W8,U8,K8,J8,G8,Q8,Y8,Z8,X8,t5,e5,n5,r5,o5,i5,a5,s5,c5,u5,l5,f5,d5,h5,p5,v5,m5,g5,y5,b5,w5,x5,k5,j5,_5,$5,S5,C5,E5,O5,M5,P5,A5,T5,R5,I5,N5,NZ=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],DZ=["mainAxis","crossAxis","limiter"];function it(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function iN(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var c,u,l={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],s.indexOf(c)>=0||(l[c]=a[c]);return l}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v0(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ */const ul=typeof window<"u";function sG(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Wn=Object.assign;function S1(e,t){const n={};for(const r in t){const o=t[r];n[r]=ya(o)?o.map(e):e(o)}return n}const qd=()=>{},ya=Array.isArray,cG=/\/$/,uG=e=>e.replace(cG,"");function C1(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s<c&&s>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=hG(r??t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function lG(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function D$(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fG(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&uf(t.matched[r],n.matched[o])&&vI(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function uf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function vI(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!dG(e[n],t[n]))return!1;return!0}function dG(e,t){return ya(e)?L$(e,t):ya(t)?L$(t,e):e===t}function L$(e,t){return ya(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function hG(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var mh;(function(e){e.pop="pop",e.push="push"})(mh||(mh={}));var Wd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Wd||(Wd={}));function pG(e){if(!e)if(ul){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uG(e)}const vG=/^[^#]+#/;function mG(e,t){return e.replace(vG,"#")+t}function gG(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const f0=()=>({left:window.pageXOffset,top:window.pageYOffset});function yG(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=gG(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function z$(e,t){return(history.state?history.state.position-t:-1)+e}const Pb=new Map;function bG(e,t){Pb.set(e,t)}function wG(e){const t=Pb.get(e);return Pb.delete(e),t}let xG=()=>location.protocol+"//"+location.host;function mI(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,c=o.slice(s);return c[0]!=="/"&&(c="/"+c),D$(c,"")}return D$(n,e)+r+o}function kG(e,t,n,r){let o=[],i=[],a=null;const s=({state:d})=>{const h=mI(e,location),p=n.value,v=t.value;let m=0;if(d){if(n.value=h,t.value=d,a&&a===p){a=null;return}m=v?d.position-v.position:0}else r(h);o.forEach(g=>{g(n.value,p,{delta:m,type:mh.pop,direction:m?m>0?Wd.forward:Wd.back:Wd.unknown})})};function c(){a=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function l(){const{history:d}=window;d.state&&d.replaceState(Wn({},d.state,{scroll:f0()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:c,listen:u,destroy:f}}function B$(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?f0():null}}function jG(e){const{history:t,location:n}=window,r={value:mI(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,l){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:xG()+e+c;try{t[l?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[l?"replace":"assign"](d)}}function a(c,u){const l=Wn({},t.state,B$(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});i(c,l,!0),r.value=c}function s(c,u){const l=Wn({},o.value,t.state,{forward:c,scroll:f0()});i(l.current,l,!0);const f=Wn({},B$(r.value,c,null),{position:l.position+1},u);i(c,f,!1),r.value=c}return{location:r,state:o,push:s,replace:a}}function gI(e){e=pG(e);const t=jG(e),n=kG(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}const o=Wn({location:"",base:e,go:r,createHref:mG.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function _G(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),gI(e)}function $G(e){return typeof e=="string"||e&&typeof e=="object"}function yI(e){return typeof e=="string"||typeof e=="symbol"}const Ra={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},bI=Symbol("");var F$;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(F$||(F$={}));function lf(e,t){return Wn(new Error,{type:e,[bI]:!0},t)}function vs(e,t){return e instanceof Error&&bI in e&&(t==null||!!(e.type&t))}const H$="[^/]+?",SG={sensitive:!1,strict:!1,start:!0,end:!0},CG=/[.+*?^${}()[\]/\\]/g;function EG(e,t){const n=Wn({},SG,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const l=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(CG,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:m,regexp:g}=d;i.push({name:p,repeatable:v,optional:m});const y=g||H$;if(y!==H$){h+=10;try{new RegExp(`(${y})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+w.message)}}let b=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(b=m&&u.length<2?`(?:/${b})`:"/"+b),m&&(b+="?"),o+=b,h+=20,m&&(h+=-8),v&&(h+=-20),y===".*"&&(h+=-50)}l.push(h)}r.push(l)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");function s(u){const l=u.match(a),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function c(u){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===0)l+=h.value;else if(h.type===1){const{value:p,repeatable:v,optional:m}=h,g=p in u?u[p]:"";if(ya(g)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=ya(g)?g.join("/"):g;if(!y)if(m)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);l+=y}}return l||"/"}return{re:a,score:r,keys:i,parse:s,stringify:c}}function OG(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function MG(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=OG(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(V$(r))return 1;if(V$(o))return-1}return o.length-r.length}function V$(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const PG={type:0,value:""},AG=/[a-zA-Z0-9_]/;function TG(e){if(!e)return[[]];if(e==="/")return[[PG]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s=0,c,u="",l="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:l,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=c}for(;s<e.length;){if(c=e[s++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(u&&f(),a()):c===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:c==="("?n=2:AG.test(c)?d():(f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--);break;case 2:c===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+c:n=3:l+=c;break;case 3:f(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&s--,l="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function RG(e,t,n){const r=EG(TG(e.path),n),o=Wn(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function IG(e,t){const n=[],r=new Map;t=U$({strict:!1,end:!0,sensitive:!1},t);function o(l){return r.get(l)}function i(l,f,d){const h=!d,p=NG(l);p.aliasOf=d&&d.record;const v=U$(t,l),m=[p];if("alias"in l){const b=typeof l.alias=="string"?[l.alias]:l.alias;for(const w of b)m.push(Wn({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let g,y;for(const b of m){const{path:w}=b;if(f&&w[0]!=="/"){const k=f.record.path,x=k[k.length-1]==="/"?"":"/";b.path=f.record.path+(w&&x+w)}if(g=RG(b,f,v),d?d.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),h&&l.name&&!W$(g)&&a(l.name)),p.children){const k=p.children;for(let x=0;x<k.length;x++)i(k[x],g,d&&d.children[x])}d=d||g,(g.record.components&&Object.keys(g.record.components).length||g.record.name||g.record.redirect)&&c(g)}return y?()=>{a(y)}:qd}function a(l){if(yI(l)){const f=r.get(l);f&&(r.delete(l),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(l);f>-1&&(n.splice(f,1),l.record.name&&r.delete(l.record.name),l.children.forEach(a),l.alias.forEach(a))}}function s(){return n}function c(l){let f=0;for(;f<n.length&&MG(l,n[f])>=0&&(l.record.path!==n[f].record.path||!wI(l,n[f]));)f++;n.splice(f,0,l),l.record.name&&!W$(l)&&r.set(l.record.name,l)}function u(l,f){let d,h={},p,v;if("name"in l&&l.name){if(d=r.get(l.name),!d)throw lf(1,{location:l});v=d.record.name,h=Wn(q$(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),l.params&&q$(l.params,d.keys.map(y=>y.name))),p=d.stringify(h)}else if("path"in l)p=l.path,d=n.find(y=>y.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw lf(1,{location:l,currentLocation:f});v=d.record.name,h=Wn({},f.params,l.params),p=d.stringify(h)}const m=[];let g=d;for(;g;)m.unshift(g.record),g=g.parent;return{name:v,path:p,params:h,matched:m,meta:LG(m)}}return e.forEach(l=>i(l)),{addRoute:i,resolve:u,removeRoute:a,getRoutes:s,getRecordMatcher:o}}function q$(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function NG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:DG(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function DG(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function W$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function LG(e){return e.reduce((t,n)=>Wn(t,n.meta),{})}function U$(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function wI(e,t){return t.children.some(n=>n===e||wI(e,n))}const xI=/#/g,zG=/&/g,BG=/\//g,FG=/=/g,HG=/\?/g,kI=/\+/g,VG=/%5B/g,qG=/%5D/g,jI=/%5E/g,WG=/%60/g,_I=/%7B/g,UG=/%7C/g,$I=/%7D/g,KG=/%20/g;function kk(e){return encodeURI(""+e).replace(UG,"|").replace(VG,"[").replace(qG,"]")}function JG(e){return kk(e).replace(_I,"{").replace($I,"}").replace(jI,"^")}function Ab(e){return kk(e).replace(kI,"%2B").replace(KG,"+").replace(xI,"%23").replace(zG,"%26").replace(WG,"`").replace(_I,"{").replace($I,"}").replace(jI,"^")}function GG(e){return Ab(e).replace(FG,"%3D")}function QG(e){return kk(e).replace(xI,"%23").replace(HG,"%3F")}function YG(e){return e==null?"":QG(e).replace(BG,"%2F")}function Vm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ZG(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(kI," "),a=i.indexOf("="),s=Vm(a<0?i:i.slice(0,a)),c=a<0?null:Vm(i.slice(a+1));if(s in t){let u=t[s];ya(u)||(u=t[s]=[u]),u.push(c)}else t[s]=c}return t}function K$(e){let t="";for(let n in e){const r=e[n];if(n=GG(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ya(r)?r.map(i=>i&&Ab(i)):[r&&Ab(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function XG(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ya(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const tQ=Symbol(""),J$=Symbol(""),jk=Symbol(""),SI=Symbol(""),Tb=Symbol("");function id(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function rc(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(lf(4,{from:n,to:t})):f instanceof Error?s(f):$G(f)?s(lf(2,{from:t,to:f})):(i&&r.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=e.call(r&&r.instances[o],t,n,c);let l=Promise.resolve(u);e.length<3&&(l=l.then(c)),l.catch(f=>s(f))})}function E1(e,t,n,r){const o=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(eQ(s)){const u=(s.__vccOpts||s)[t];u&&o.push(rc(u,n,r,i,a))}else{let c=s();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const l=sG(u)?u.default:u;i.components[a]=l;const d=(l.__vccOpts||l)[t];return d&&rc(d,n,r,i,a)()}))}}return o}function eQ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function G$(e){const t=ci(jk),n=ci(SI),r=sr(()=>t.resolve(Ie(e.to))),o=sr(()=>{const{matched:c}=r.value,{length:u}=c,l=c[u-1],f=n.matched;if(!l||!f.length)return-1;const d=f.findIndex(uf.bind(null,l));if(d>-1)return d;const h=Q$(c[u-2]);return u>1&&Q$(l)===h&&f[f.length-1].path!==h?f.findIndex(uf.bind(null,c[u-2])):d}),i=sr(()=>o.value>-1&&iQ(n.params,r.value.params)),a=sr(()=>o.value>-1&&o.value===n.matched.length-1&&vI(n.params,r.value.params));function s(c={}){return oQ(c)?t[Ie(e.replace)?"replace":"push"](Ie(e.to)).catch(qd):Promise.resolve()}return{route:r,href:sr(()=>r.value.href),isActive:i,isExactActive:a,navigate:s}}const nQ=Bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:G$,setup(e,{slots:t}){const n=Xa(G$(e)),{options:r}=ci(jk),o=sr(()=>({[Y$(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Y$(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Do("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),rQ=nQ;function oQ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function iQ(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!ya(o)||o.length!==r.length||r.some((i,a)=>i!==o[a]))return!1}return!0}function Q$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Y$=(e,t,n)=>e??t??n,aQ=Bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ci(Tb),o=sr(()=>e.route||r.value),i=ci(J$,0),a=sr(()=>{let u=Ie(i);const{matched:l}=o.value;let f;for(;(f=l[u])&&!f.components;)u++;return u}),s=sr(()=>o.value.matched[a.value]);Dl(J$,sr(()=>a.value+1)),Dl(tQ,s),Dl(Tb,o);const c=Tn();return no(()=>[c.value,s.value,e.name],([u,l,f],[d,h,p])=>{l&&(l.instances[f]=u,h&&h!==l&&u&&u===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),u&&l&&(!h||!uf(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=o.value,l=e.name,f=s.value,d=f&&f.components[l];if(!d)return Z$(n.default,{Component:d,route:u});const h=f.props[l],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=Do(d,Wn({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[l]=null)},ref:c}));return Z$(n.default,{Component:m,route:u})||m}}});function Z$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const CI=aQ;function sQ(e){const t=IG(e.routes,e),n=e.parseQuery||ZG,r=e.stringifyQuery||K$,o=e.history,i=id(),a=id(),s=id(),c=ef(Ra);let u=Ra;ul&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=S1.bind(null,G=>""+G),f=S1.bind(null,YG),d=S1.bind(null,Vm);function h(G,pt){let gt,_t;return yI(G)?(gt=t.getRecordMatcher(G),_t=pt):_t=G,t.addRoute(_t,gt)}function p(G){const pt=t.getRecordMatcher(G);pt&&t.removeRoute(pt)}function v(){return t.getRoutes().map(G=>G.record)}function m(G){return!!t.getRecordMatcher(G)}function g(G,pt){if(pt=Wn({},pt||c.value),typeof G=="string"){const X=C1(n,G,pt.path),wt=t.resolve({path:X.path},pt),ft=o.createHref(X.fullPath);return Wn(X,wt,{params:d(wt.params),hash:Vm(X.hash),redirectedFrom:void 0,href:ft})}let gt;if("path"in G)gt=Wn({},G,{path:C1(n,G.path,pt.path).path});else{const X=Wn({},G.params);for(const wt in X)X[wt]==null&&delete X[wt];gt=Wn({},G,{params:f(X)}),pt.params=f(pt.params)}const _t=t.resolve(gt,pt),yt=G.hash||"";_t.params=l(d(_t.params));const Q=lG(r,Wn({},G,{hash:JG(yt),path:_t.path})),P=o.createHref(Q);return Wn({fullPath:Q,hash:yt,query:r===K$?XG(G.query):G.query||{}},_t,{redirectedFrom:void 0,href:P})}function y(G){return typeof G=="string"?C1(n,G,c.value.path):Wn({},G)}function b(G,pt){if(u!==G)return lf(8,{from:pt,to:G})}function w(G){return O(G)}function k(G){return w(Wn(y(G),{replace:!0}))}function x(G){const pt=G.matched[G.matched.length-1];if(pt&&pt.redirect){const{redirect:gt}=pt;let _t=typeof gt=="function"?gt(G):gt;return typeof _t=="string"&&(_t=_t.includes("?")||_t.includes("#")?_t=y(_t):{path:_t},_t.params={}),Wn({query:G.query,hash:G.hash,params:"path"in _t?{}:G.params},_t)}}function O(G,pt){const gt=u=g(G),_t=c.value,yt=G.state,Q=G.force,P=G.replace===!0,X=x(gt);if(X)return O(Wn(y(X),{state:typeof X=="object"?Wn({},yt,X.state):yt,force:Q,replace:P}),pt||gt);const wt=gt;wt.redirectedFrom=pt;let ft;return!Q&&fG(r,_t,gt)&&(ft=lf(16,{to:wt,from:_t}),B(_t,_t,!0,!1)),(ft?Promise.resolve(ft):T(wt,_t)).catch(L=>vs(L)?vs(L,2)?L:C(L):A(L,wt,_t)).then(L=>{if(L){if(vs(L,2))return O(Wn({replace:P},y(L.to),{state:typeof L.to=="object"?Wn({},yt,L.to.state):yt,force:Q}),pt||wt)}else L=I(wt,_t,!0,P,yt);return R(wt,_t,L),L})}function _(G,pt){const gt=b(G,pt);return gt?Promise.reject(gt):Promise.resolve()}function M(G){const pt=K.values().next().value;return pt&&typeof pt.runWithContext=="function"?pt.runWithContext(G):G()}function T(G,pt){let gt;const[_t,yt,Q]=cQ(G,pt);gt=E1(_t.reverse(),"beforeRouteLeave",G,pt);for(const X of _t)X.leaveGuards.forEach(wt=>{gt.push(rc(wt,G,pt))});const P=_.bind(null,G,pt);return gt.push(P),st(gt).then(()=>{gt=[];for(const X of i.list())gt.push(rc(X,G,pt));return gt.push(P),st(gt)}).then(()=>{gt=E1(yt,"beforeRouteUpdate",G,pt);for(const X of yt)X.updateGuards.forEach(wt=>{gt.push(rc(wt,G,pt))});return gt.push(P),st(gt)}).then(()=>{gt=[];for(const X of Q)if(X.beforeEnter)if(ya(X.beforeEnter))for(const wt of X.beforeEnter)gt.push(rc(wt,G,pt));else gt.push(rc(X.beforeEnter,G,pt));return gt.push(P),st(gt)}).then(()=>(G.matched.forEach(X=>X.enterCallbacks={}),gt=E1(Q,"beforeRouteEnter",G,pt),gt.push(P),st(gt))).then(()=>{gt=[];for(const X of a.list())gt.push(rc(X,G,pt));return gt.push(P),st(gt)}).catch(X=>vs(X,8)?X:Promise.reject(X))}function R(G,pt,gt){s.list().forEach(_t=>M(()=>_t(G,pt,gt)))}function I(G,pt,gt,_t,yt){const Q=b(G,pt);if(Q)return Q;const P=pt===Ra,X=ul?history.state:{};gt&&(_t||P?o.replace(G.fullPath,Wn({scroll:P&&X&&X.scroll},yt)):o.push(G.fullPath,yt)),c.value=G,B(G,pt,gt,P),C()}let H;function S(){H||(H=o.listen((G,pt,gt)=>{if(!J.listening)return;const _t=g(G),yt=x(_t);if(yt){O(Wn(yt,{replace:!0}),_t).catch(qd);return}u=_t;const Q=c.value;ul&&bG(z$(Q.fullPath,gt.delta),f0()),T(_t,Q).catch(P=>vs(P,12)?P:vs(P,2)?(O(P.to,_t).then(X=>{vs(X,20)&&!gt.delta&&gt.type===mh.pop&&o.go(-1,!1)}).catch(qd),Promise.reject()):(gt.delta&&o.go(-gt.delta,!1),A(P,_t,Q))).then(P=>{P=P||I(_t,Q,!1),P&&(gt.delta&&!vs(P,8)?o.go(-gt.delta,!1):gt.type===mh.pop&&vs(P,20)&&o.go(-1,!1)),R(_t,Q,P)}).catch(qd)}))}let D=id(),V=id(),N;function A(G,pt,gt){C(G);const _t=V.list();return _t.length?_t.forEach(yt=>yt(G,pt,gt)):console.error(G),Promise.reject(G)}function $(){return N&&c.value!==Ra?Promise.resolve():new Promise((G,pt)=>{D.add([G,pt])})}function C(G){return N||(N=!G,S(),D.list().forEach(([pt,gt])=>G?gt(G):pt()),D.reset()),G}function B(G,pt,gt,_t){const{scrollBehavior:yt}=e;if(!ul||!yt)return Promise.resolve();const Q=!gt&&wG(z$(G.fullPath,0))||(_t||!gt)&&history.state&&history.state.scroll||null;return Uu().then(()=>yt(G,pt,Q)).then(P=>P&&yG(P)).catch(P=>A(P,G,pt))}const F=G=>o.go(G);let j;const K=new Set,J={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,hasRoute:m,getRoutes:v,resolve:g,options:e,push:w,replace:k,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:V.add,isReady:$,install(G){const pt=this;G.component("RouterLink",rQ),G.component("RouterView",CI),G.config.globalProperties.$router=pt,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>Ie(c)}),ul&&!j&&c.value===Ra&&(j=!0,w(o.location).catch(yt=>{}));const gt={};for(const yt in Ra)Object.defineProperty(gt,yt,{get:()=>c.value[yt],enumerable:!0});G.provide(jk,pt),G.provide(SI,tp(gt)),G.provide(Tb,c);const _t=G.unmount;K.add(G),G.unmount=function(){K.delete(G),K.size<1&&(u=Ra,H&&H(),H=null,c.value=Ra,j=!1,N=!1),_t()}}};function st(G){return G.reduce((pt,gt)=>pt.then(()=>M(gt)),Promise.resolve())}return J}function cQ(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const s=t.matched[a];s&&(e.matched.find(u=>uf(u,s))?r.push(s):n.push(s));const c=e.matched[a];c&&(t.matched.find(u=>uf(u,c))||o.push(c))}return[n,r,o]}const X$=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./index.4bbde254.js"),["./index.4bbde254.js","./index.ffbea0a9.css"],import.meta.url).then(e=>e.default||e)},{name:"options",path:"/options",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./options.ed57f98c.js"),["./options.ed57f98c.js","./shiki.87c664fb.js"],import.meta.url).then(e=>e.default||e)},{name:"png",path:"/png",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./png.31a238a6.js"),["./png.31a238a6.js","./ImageLoader.3238b676.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"svg",path:"/svg",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./svg.45bd4aa7.js"),["./svg.45bd4aa7.js","./ImageLoader.3238b676.js","./ImageLoader.7571516f.css"],import.meta.url).then(e=>e.default||e)},{name:"vnodes",path:"/vnodes",meta:{},alias:[],redirect:void 0,component:()=>za(()=>import("./vnodes.f494cd39.js"),["./vnodes.f494cd39.js","./shiki.87c664fb.js"],import.meta.url).then(e=>e.default||e)}],uQ={scrollBehavior(e,t,n){const r=cr();let o=n||void 0;if(!o&&t&&e&&e.meta.scrollToTop!==!1&&lQ(t,e)&&(o={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:tS(e.hash)}}const i=s=>!!(s.meta.pageTransition??Sb),a=i(t)&&i(e)?"page:transition:finish":"page:finish";return new Promise(s=>{r.hooks.hookOnce(a,async()=>{await Uu(),e.hash&&(o={el:e.hash,top:tS(e.hash)}),s(o)})})}};function tS(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function lQ(e,t){const n=t.matched.every((r,o)=>r.components?.default===e.matched[o]?.components?.default);return!!(!n||n&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const fQ={},Zs={...fQ,...uQ},dQ=async e=>{let t,n;if(!e.meta?.validate)return;const r=cr(),o=Ls();if(([t,n]=Bm(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const a=l0({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),s=o.beforeResolve(c=>{if(s(),c===e){const u=o.afterEach(async()=>{u(),await r.runWithContext(()=>wl(a)),window.history.pushState({},"",e.fullPath)});return!1}})},hQ=[dQ],Rb={};function pQ(e,t,n){const{pathname:r,search:o,hash:i}=t,a=e.indexOf("#");if(a>-1){const c=i.includes(e.slice(a))?e.slice(a).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),_$(u,"")}const s=n||_$(r,e);return s+(s.includes("?")?"":o)+i}const vQ=Ds({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=wk().app.baseURL;Zs.hashMode&&!r.includes("#")&&(r+="#");const o=Zs.history?.(r)??(Zs.hashMode?_G(r):gI(r)),i=Zs.routes?.(X$)??X$;let a;const s=pQ(r,window.location,e.payload.path),c=sQ({...Zs,scrollBehavior:(v,m,g)=>{if(m===Ra){a=g;return}return c.options.scrollBehavior=Zs.scrollBehavior,Zs.scrollBehavior?.(v,Ra,a||g)},history:o,routes:i});e.vueApp.use(c);const u=ef(c.currentRoute.value);c.afterEach((v,m)=>{u.value=m}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const l=ef(c.resolve(s)),f=()=>{l.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((v,m)=>{v.matched[0]?.components?.default===m.matched[0]?.components?.default&&f()});const d={};for(const v in l.value)Object.defineProperty(d,v,{get:()=>l.value[v]});e._route=tp(d),e._middleware=e._middleware||{global:[],named:{}};const h=u0();try{[t,n]=Bm(()=>c.isReady()),await t,n()}catch(v){[t,n]=Bm(()=>e.runWithContext(()=>wl(v))),await t,n()}const p=s0("_layout");return c.beforeEach(async(v,m)=>{v.meta=Xa(v.meta),e.isHydrating&&p.value&&!Mu(v.meta.layout)&&(v.meta.layout=p.value),e._processingMiddleware=!0;{const g=new Set([...hQ,...e._middleware.global]);for(const y of v.matched){const b=y.meta.middleware;if(b)if(Array.isArray(b))for(const w of b)g.add(w);else g.add(b)}for(const y of g){const b=typeof y=="string"?e._middleware.named[y]||await Rb[y]?.().then(k=>k.default||k):y;if(!b)throw new Error(`Unknown route middleware: '${y}'.`);const w=await e.runWithContext(()=>b(v,m));if(!e.payload.serverRendered&&e.isHydrating&&(w===!1||w instanceof Error)){const k=w||Ob({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await e.runWithContext(()=>wl(k)),!1}if(w||w===!1)return w}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(v,m,g)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(oG),v.matched.length===0&&await e.runWithContext(()=>wl(Ob({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(s),name:void 0,force:!0}),c.options.scrollBehavior=Zs.scrollBehavior}catch(v){await e.runWithContext(()=>wl(v))}}),{provide:{router:c}}}}),mQ=Ds({name:"nuxt:payload",setup(e){KJ()&&(e.hooks.hook("link:prefetch",async t=>{op(t).protocol||await R$(t)}),Ls().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await R$(t.path);r&&Object.assign(e.static.data,r.data)}))}}),gQ=Im(()=>za(()=>Promise.resolve().then(()=>nZ),void 0,import.meta.url).then(e=>e.default)),yQ=Im(()=>za(()=>import("./IconCSS.444dbaf2.js"),["./IconCSS.444dbaf2.js","./IconCSS.b41b9663.css"],import.meta.url).then(e=>e.default)),bQ=[["Icon",gQ],["IconCSS",yQ]],wQ=Ds({name:"nuxt:global-components",setup(e){for(const[t,n]of bQ)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),xQ=Ds({name:"nuxt:head",setup(e){const n=DJ();n.push(HJ),e.vueApp.use(n);{let r=!0;const o=()=>{r=!1,n.hooks.callHook("entries:updated",n)};n.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",o),e.hooks.hook("app:suspense:resolve",o)}}}),Vp={},kQ=Ds({name:"nuxt:prefetch",setup(e){const t=Ls();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Vp[r]=="function"&&await Vp[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Lf(n))return;const r=t.resolve(n);if(!r)return;const o=r?.meta?.layout;let i=Array.isArray(r?.meta?.middleware)?r?.meta?.middleware:[r?.meta?.middleware];i=i.filter(a=>typeof a=="string");for(const a of i)typeof Rb[a]=="function"&&Rb[a]();o&&typeof Vp[o]=="function"&&Vp[o]()})}}),Ib=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),jQ=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),_Q=e=>{const t=cr();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Ib(e)}):Ib(e)},$Q=()=>null;function _k(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,o={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");o.server=o.server??!0,o.default=o.default??$Q,o.lazy=o.lazy??!1,o.immediate=o.immediate??!0;const i=cr(),a=()=>i.isHydrating?i.payload.data[n]:i.static.data[n],s=()=>a()!==void 0;i._asyncData[n]||(i._asyncData[n]={data:Tn(a()??o.default()),pending:Tn(!s()),error:ak(i.payload._errors,n),status:Tn("idle")});const c={...i._asyncData[n]};c.refresh=c.execute=(d={})=>{if(i._asyncDataPromises[n]){if(d.dedupe===!1)return i._asyncDataPromises[n];i._asyncDataPromises[n].cancelled=!0}if((d._initial||i.isHydrating&&d._initial!==!1)&&s())return a();c.pending.value=!0,c.status.value="pending";const h=new Promise((p,v)=>{try{p(r(i))}catch(m){v(m)}}).then(p=>{if(h.cancelled)return i._asyncDataPromises[n];let v=p;o.transform&&(v=o.transform(p)),o.pick&&(v=SQ(v,o.pick)),c.data.value=v,c.error.value=null,c.status.value="success"}).catch(p=>{if(h.cancelled)return i._asyncDataPromises[n];c.error.value=p,c.data.value=Ie(o.default()),c.status.value="error"}).finally(()=>{h.cancelled||(c.pending.value=!1,i.payload.data[n]=c.data.value,c.error.value&&(i.payload._errors[n]=l0(c.error.value)),delete i._asyncDataPromises[n])});return i._asyncDataPromises[n]=h,i._asyncDataPromises[n]};const u=()=>c.refresh({_initial:!0}),l=o.server!==!1&&i.payload.serverRendered;{const d=cs();if(d&&!d._nuxtOnBeforeMountCbs){d._nuxtOnBeforeMountCbs=[];const p=d._nuxtOnBeforeMountCbs;d&&(w9(()=>{p.forEach(v=>{v()}),p.splice(0,p.length)}),nf(()=>p.splice(0,p.length)))}l&&i.isHydrating&&s()?(c.pending.value=!1,c.status.value=c.error.value?"error":"success"):d&&(i.payload.serverRendered&&i.isHydrating||o.lazy)&&o.immediate?d._nuxtOnBeforeMountCbs.push(u):o.immediate&&u(),o.watch&&no(o.watch,()=>c.refresh());const h=i.hook("app:data:refresh",p=>{if(!p||p.includes(n))return c.refresh()});d&&nf(h)}const f=Promise.resolve(i._asyncDataPromises[n]).then(()=>c);return Object.assign(f,c),f}function SQ(e,t){const n={};for(const r of t)n[r]=e[r];return n}async function EI(e,t=Ls()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>EI(e,t));t._routePreloaded.add(n);const i=r.map(a=>a.components?.default).filter(a=>typeof a=="function");for(const a of i){const s=Promise.resolve(a()).catch(()=>{}).finally(()=>o.splice(o.indexOf(s)));o.push(s)}await Promise.all(o)}function CQ(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:cr().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const EQ=(...e)=>e.find(t=>t!==void 0),OQ="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function MQ(e){const t=e.componentName||"NuxtLink",n=(r,o)=>{if(!r||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return r;const i=e.trailingSlash==="append"?G9:bk;if(typeof r=="string")return i(r,!0);const a="path"in r?r.path:o(r).path;return{...r,name:void 0,path:i(a,!0)}};return Bo({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(r,{slots:o}){const i=Ls(),a=sr(()=>{const f=r.to||r.href||"";return n(f,i.resolve)}),s=sr(()=>r.external||r.target&&r.target!=="_self"?!0:typeof a.value=="object"?!1:a.value===""||Lf(a.value,{acceptRelative:!0})),c=Tn(!1),u=Tn(null),l=f=>{u.value=r.custom?f?.$el?.nextElementSibling:f?.$el};if(r.prefetch!==!1&&r.noPrefetch!==!0&&r.target!=="_blank"&&!AQ()){const d=cr();let h,p=null;Ku(()=>{const v=PQ();_Q(()=>{h=Ib(()=>{u?.value?.tagName&&(p=v.observe(u.value,async()=>{p?.(),p=null;const m=typeof a.value=="string"?a.value:i.resolve(a.value).fullPath;await Promise.all([d.hooks.callHook("link:prefetch",m).catch(()=>{}),!s.value&&EI(a.value,i).catch(()=>{})]),c.value=!0}))})})}),np(()=>{h&&jQ(h),p?.(),p=null})}return()=>{if(!s.value){const v={ref:l,to:a.value,activeClass:r.activeClass||e.activeClass,exactActiveClass:r.exactActiveClass||e.exactActiveClass,replace:r.replace,ariaCurrentValue:r.ariaCurrentValue,custom:r.custom};return r.custom||(c.value&&(v.class=r.prefetchedClass||e.prefetchedClass),v.rel=r.rel),Do(NW("RouterLink"),v,o.default)}const f=typeof a.value=="object"?i.resolve(a.value)?.href??null:a.value||null,d=r.target||null,h=r.noRel?null:EQ(r.rel,e.externalRelAttribute,f?OQ:"")||null,p=()=>rG(f,{replace:r.replace});return r.custom?o.default?o.default({href:f,navigate:p,get route(){if(!f)return;const v=op(f);return{path:v.pathname,fullPath:v.pathname,get query(){return J9(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f}},rel:h,target:d,isExternal:s.value,isActive:!1,isExactActive:!1}):null:Do("a",{ref:u,href:f,rel:h,target:d},o.default?.())}}})}const OI=MQ({componentName:"NuxtLink"});function PQ(){const e=cr();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,a)=>(t||(t=new IntersectionObserver(s=>{for(const c of s){const u=n.get(c.target);(c.isIntersecting||c.intersectionRatio>0)&&u&&u()}})),n.set(i,a),t.observe(i),()=>{n.delete(i),t.unobserve(i),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function AQ(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const TQ={},RQ=YJ(TQ);function IQ(){const e=cr();return e._appConfig||(e._appConfig=Xa(RQ)),e._appConfig}const NQ="__NUXT_COLOR_MODE__",DQ="ColorScheme",LQ="nuxt-color-mode",ms=window[NQ],zQ=Ds(e=>{const t=s0("color-mode",()=>Xa({preference:ms.preference,value:ms.value,unknown:!1,forced:!1})).value;Ls().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ms.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ms.getColorScheme())}))}no(()=>t.preference,o=>{t.forced||(o==="system"?(t.value=ms.getColorScheme(),r()):t.value=o,window.localStorage?.setItem(LQ,o))},{immediate:!0}),no(()=>t.value,(o,i)=>{ms.removeColorScheme(i),ms.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ms.preference,t.value=ms.value,t.unknown=!1)}),e.provide("colorMode",t)});const BQ=Ds(()=>{}),FQ=Ds({name:"nuxt:chunk-reload",setup(e){const t=Ls(),n=wk(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)}),t.onError((o,i)=>{if(r.has(o)){const s="href"in i&&i.href.startsWith("#")?n.app.baseURL+i.href:rp(n.app.baseURL,i.fullPath);CQ({path:s,persistState:!0})}})}}),HQ=[aG,vQ,mQ,wQ,xQ,kQ,zQ,BQ,FQ],$k=Bo({__name:"NIcon",props:{icon:{}},setup(e){return(t,n)=>(Ln(),ri("div",{class:Vr(["n-icon",t.icon])},null,2))}}),VQ=Bo({__name:"NButton",props:{to:{},icon:{}},setup(e){return(t,n)=>{const r=$k;return Ln(),go(fk(t.to?Ie(OI):"button"),mk({to:t.to},t.$attrs,{class:"n-button n-button-base active:n-button-active focus-visible:n-focus-base n-transition hover:n-button-hover n-disabled:n-disabled"}),{default:to(()=>[Pu(t.$slots,"icon",{},()=>[t.icon?(Ln(),go(r,{key:0,icon:t.icon,class:"n-button-icon"},null,8,["icon"])):Ta("",!0)]),Pu(t.$slots,"default")]),_:3},16,["to"])}}}),qQ=Bo({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Tn(!1);return Ku(()=>{r.value=!0}),o=>{if(r.value)return t.default?.();const i=t.fallback||t.placeholder;if(i)return i();const a=o.fallback||o.placeholder||"",s=o.fallbackTag||o.placeholderTag||"span";return ri(s,n,a)}}}),MI=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},WQ={name:DQ,props:{placeholder:String,tag:{type:String,default:"span"}}};function UQ(e,t,n,r,o,i){const a=qQ;return Ln(),go(a,{placeholder:n.placeholder,"placeholder-tag":n.tag},{default:to(()=>[Pu(e.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const KQ=MI(WQ,[["render",UQ]]),PI=()=>s0("color-mode").value,JQ=Bo({__name:"NDarkToggle",setup(e){const t=PI(),n=sr({get(){return t.value==="dark"},set(){t.preference=n.value?"light":"dark"}}),r=typeof document<"u"&&document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(a){if(!r||!a){n.value=!n.value;return}const s=a.clientX,c=a.clientY,u=Math.hypot(Math.max(s,innerWidth-s),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{n.value=!n.value,await Uu()}).ready.then(()=>{const f=[`circle(0px at ${s}px ${c}px)`,`circle(${u}px at ${s}px ${c}px)`];document.documentElement.animate({clipPath:n.value?[...f].reverse():f},{duration:400,easing:"ease-in",pseudoElement:n.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}const i={mode:t,isDark:n,toggle:o};return(a,s)=>{const c=KQ;return Ln(),go(c,{tag:"span"},{default:to(()=>[Pu(a.$slots,"default",B7(pk(i)))]),_:3})}}}),AI=Object.freeze({left:0,top:0,width:16,height:16}),TI=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Sk=Object.freeze({...AI,...TI});Object.freeze({...Sk,body:"",hidden:!1});({...AI});const RI=Object.freeze({width:null,height:null}),II=Object.freeze({...RI,...TI});function GQ(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in RI?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const QQ=/[\s,]+/;function YQ(e,t){t.split(QQ).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ZQ(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const XQ=/(-?[0-9.]*[0-9]+[0-9.]*)/g,tY=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function eS(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(XQ);if(r===null||!r.length)return e;const o=[];let i=r.shift(),a=tY.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");a=!a}}const eY=e=>e==="unset"||e==="undefined"||e==="none";function nY(e,t){const n={...Sk,...e},r={...II,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(p=>{const v=[],m=p.hFlip,g=p.vFlip;let y=p.rotate;m?g?y+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):g&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let b;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:b=o.height/2+o.top,v.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,v.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}y%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),v.length&&(i='<g transform="'+v.join(" ")+'">'+i+"</g>")});const a=r.width,s=r.height,c=o.width,u=o.height;let l,f;a===null?(f=s===null?"1em":s==="auto"?u:s,l=eS(f,c/u)):(l=a==="auto"?c:a,f=s===null?eS(l,u/c):s==="auto"?u:s);const d={},h=(p,v)=>{eY(v)||(d[p]=v.toString())};return h("width",l),h("height",f),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:d,body:i}}const rY=/\sid="(\S+)"/g,oY="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let iY=0;function aY(e,t=oY){const n=[];let r;for(;r=rY.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(iY++).toString(),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function sY(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function cY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function uY(e){return"data:image/svg+xml,"+cY(e)}function lY(e){return'url("'+uY(e)+'")'}const nS={...II,inline:!1},fY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},dY={display:"inline-block"},Nb={backgroundColor:"currentColor"},NI={backgroundColor:"transparent"},rS={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},oS={webkitMask:Nb,mask:Nb,background:NI};for(const e in oS){const t=oS[e];for(const n in rS)t[e+n]=rS[n]}const em={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";em[e+"-flip"]=t,em[e.slice(0,1)+"-flip"]=t,em[e+"Flip"]=t});function iS(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const hY=(e,t)=>{const n=GQ(nS,t),r={...fY},o=t.mode||"svg",i={},a=t.style,s=typeof a=="object"&&!(a instanceof Array)?a:{};for(let v in t){const m=t[v];if(m!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&YQ(n,m);break;case"color":i.color=m;break;case"rotate":typeof m=="string"?n[v]=ZQ(m):typeof m=="number"&&(n[v]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete r["aria-hidden"];break;default:{const g=em[v];g?(m===!0||m==="true"||m===1)&&(n[g]=!0):nS[v]===void 0&&(r[v]=m)}}}const c=nY(e,n),u=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...s},Object.assign(r,u);let v=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),r.innerHTML=aY(c.body,m?()=>m+"ID"+v++:"iconifyVue"),Do("svg",r)}const{body:l,width:f,height:d}=e,h=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),p=sY(l,{...u,width:f+"",height:d+""});return r.style={...i,"--svg":lY(p),width:iS(u.width),height:iS(u.height),...dY,...h?Nb:NI,...s},Do("span",r)},pY=Object.create(null),vY=Bo({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?pY[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:hY({...Sk,...n},e)}}),Ud=/^[a-z0-9]+(-[a-z0-9]+)*$/,d0=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:s};return t&&!nm(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!nm(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:i};return t&&!nm(s,n)?null:s}return null},nm=(e,t)=>e?!!((e.provider===""||e.provider.match(Ud))&&(t&&e.prefix===""||e.prefix.match(Ud))&&e.name.match(Ud)):!1,DI=Object.freeze({left:0,top:0,width:16,height:16}),qm=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ck=Object.freeze({...DI,...qm}),Db=Object.freeze({...Ck,body:"",hidden:!1});function mY(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function aS(e,t){const n=mY(e,t);for(const r in Db)r in qm?r in e&&!(r in n)&&(n[r]=qm[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function gY(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(a){if(n[a])return o[a]=[];if(!(a in o)){o[a]=null;const s=r[a]&&r[a].parent,c=s&&i(s);c&&(o[a]=[s].concat(c))}return o[a]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function yY(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(s){i=aS(r[s]||o[s],i)}return a(t),n.forEach(a),aS(e,i)}function LI(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=gY(e);for(const o in r){const i=r[o];i&&(t(o,yY(e,o,i)),n.push(o))}return n}const bY={provider:"",aliases:{},not_found:{},...DI};function O1(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function zI(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!O1(e,bY))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Ud)||typeof i.body!="string"||!O1(i,Db))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],a=i.parent;if(!o.match(Ud)||typeof a!="string"||!n[a]&&!r[a]||!O1(i,Db))return null}return t}const sS=Object.create(null);function wY(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Au(e,t){const n=sS[e]||(sS[e]=Object.create(null));return n[t]||(n[t]=wY(e,t))}function Ek(e,t){return zI(t)?LI(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function xY(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let gh=!1;function BI(e){return typeof e=="boolean"&&(gh=e),gh}function kY(e){const t=typeof e=="string"?d0(e,!0,gh):e;if(t){const n=Au(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function jY(e,t){const n=d0(e,!0,gh);if(!n)return!1;const r=Au(n.provider,n.prefix);return xY(r,n.name,t)}function _Y(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),gh&&!t&&!e.prefix){let o=!1;return zI(e)&&(e.prefix="",LI(e,(i,a)=>{a&&jY(i,a)&&(o=!0)})),o}const n=e.prefix;if(!nm({provider:t,prefix:n,name:"a"}))return!1;const r=Au(t,n);return!!Ek(r,e)}const $Y=Object.freeze({width:null,height:null}),SY=Object.freeze({...$Y,...qm});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const Lb=Object.create(null);function CY(e,t){Lb[e]=t}function zb(e){return Lb[e]||Lb[""]}function Ok(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Mk=Object.create(null),ad=["https://api.simplesvg.com","https://api.unisvg.com"],rm=[];for(;ad.length>0;)ad.length===1||Math.random()>.5?rm.push(ad.shift()):rm.push(ad.pop());Mk[""]=Ok({resources:["https://api.iconify.design"].concat(rm)});function EY(e,t){const n=Ok(t);return n===null?!1:(Mk[e]=n,!0)}function Pk(e){return Mk[e]}const OY=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let cS=OY();function MY(e,t){const n=Pk(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(a=>{o=Math.max(o,a.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function PY(e){return e===404}const AY=(e,t,n)=>{const r=[],o=MY(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((c,u)=>{s+=c.length+1,s>=o&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=c.length),a.icons.push(c)}),r.push(a),r};function TY(e){if(typeof e=="string"){const t=Pk(e);if(t)return t.path}return"/"}const RY=(e,t,n)=>{if(!cS){n("abort",424);return}let r=TY(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(","),c=new URLSearchParams({icons:s});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;cS(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(PY(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},IY={prepare:AY,send:RY};function NY(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,a=o.prefix,s=o.name,c=n[i]||(n[i]=Object.create(null)),u=c[a]||(c[a]=Au(i,a));let l;s in u.icons?l=t.loaded:a===""||u.missing.has(s)?l=t.missing:l=t.pending;const f={provider:i,prefix:a,name:s};l.push(f)}),t}function FI(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function DY(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const a=i.icons,s=a.pending.length;a.pending=a.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(e.icons[u])a.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),a.pending.length!==s&&(n||FI([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let LY=0;function zY(e,t,n){const r=LY++,o=FI.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),o}function BY(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?d0(o,t,n):o;i&&r.push(i)}),r}var FY={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function HY(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let x=e.resources.slice(0);for(a=[];x.length>1;){const O=Math.floor(Math.random()*x.length);a.push(x[O]),x=x.slice(0,O).concat(x.slice(O+1))}a=a.concat(x)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let c="pending",u=0,l,f=null,d=[],h=[];typeof r=="function"&&h.push(r);function p(){f&&(clearTimeout(f),f=null)}function v(){c==="pending"&&(c="aborted"),p(),d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function m(x,O){O&&(h=[]),typeof x=="function"&&h.push(x)}function g(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:d.length,subscribe:m,abort:v}}function y(){c="failed",h.forEach(x=>{x(void 0,l)})}function b(){d.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),d=[]}function w(x,O,_){const M=O!=="success";switch(d=d.filter(T=>T!==x),c){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(O==="abort"){l=_,y();return}if(M){l=_,d.length||(a.length?k():y());return}if(p(),b(),!e.random){const T=e.resources.indexOf(x.resource);T!==-1&&T!==e.index&&(e.index=T)}c="completed",h.forEach(T=>{T(_)})}function k(){if(c!=="pending")return;p();const x=a.shift();if(x===void 0){if(d.length){f=setTimeout(()=>{p(),c==="pending"&&(b(),y())},e.timeout);return}y();return}const O={status:"pending",resource:x,callback:(_,M)=>{w(O,_,M)}};d.push(O),u++,f=setTimeout(k,e.rotate),n(x,t,O.callback)}return setTimeout(k),g}function HI(e){const t={...FY,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function o(s,c,u){const l=HY(t,s,c,(f,d)=>{r(),u&&u(f,d)});return n.push(l),l}function i(s){return n.find(c=>s(c))||null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function uS(){}const M1=Object.create(null);function VY(e){if(!M1[e]){const t=Pk(e);if(!t)return;const n=HI(t),r={config:t,redundancy:n};M1[e]=r}return M1[e]}function qY(e,t,n){let r,o;if(typeof e=="string"){const i=zb(e);if(!i)return n(void 0,424),uS;o=i.send;const a=VY(e);a&&(r=a.redundancy)}else{const i=Ok(e);if(i){r=HI(i);const a=e.resources?e.resources[0]:"",s=zb(a);s&&(o=s.send)}}return!r||!o?(n(void 0,424),uS):r.query(t,o,n)().abort}const lS="iconify2",yh="iconify",VI=yh+"-count",fS=yh+"-version",qI=36e5,WY=168;function Bb(e,t){try{return e.getItem(t)}catch{}}function Ak(e,t,n){try{return e.setItem(t,n),!0}catch{}}function dS(e,t){try{e.removeItem(t)}catch{}}function Fb(e,t){return Ak(e,VI,t.toString())}function Hb(e){return parseInt(Bb(e,VI))||0}const h0={local:!0,session:!0},WI={local:new Set,session:new Set};let Tk=!1;function UY(e){Tk=e}let qp=typeof window>"u"?{}:window;function UI(e){const t=e+"Storage";try{if(qp&&qp[t]&&typeof qp[t].length=="number")return qp[t]}catch{}h0[e]=!1}function KI(e,t){const n=UI(e);if(!n)return;const r=Bb(n,fS);if(r!==lS){if(r){const s=Hb(n);for(let c=0;c<s;c++)dS(n,yh+c.toString())}Ak(n,fS,lS),Fb(n,0);return}const o=Math.floor(Date.now()/qI)-WY,i=s=>{const c=yh+s.toString(),u=Bb(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&t(l,s))return!0}catch{}dS(n,c)}};let a=Hb(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,Fb(n,a)):WI[e].add(s))}function JI(){if(!Tk){UY(!0);for(const e in h0)KI(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=Au(r,o);if(!Ek(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function KY(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in h0)KI(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function JY(e,t){Tk||JI();function n(r){let o;if(!h0[r]||!(o=UI(r)))return;const i=WI[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=Hb(o),!Fb(o,a+1))return;const s={cached:Math.floor(Date.now()/qI),provider:e.provider,data:t};return Ak(o,yh+a.toString(),JSON.stringify(s))}t.lastModified&&!KY(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function hS(){}function GY(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,DY(e)}))}function QY(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=zb(n)))return;i.prepare(n,r,o).forEach(s=>{qY(n,s,c=>{if(typeof c!="object")s.icons.forEach(u=>{e.missing.add(u)});else try{const u=Ek(e,c);if(!u.length)return;const l=e.pendingIcons;l&&u.forEach(f=>{l.delete(f)}),JY(e,c)}catch(u){console.error(u)}GY(e)})})}))}const YY=(e,t)=>{const n=BY(e,!0,BI()),r=NY(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,hS)}),()=>{c=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===s&&u===a)return;a=u,s=l,i.push(Au(u,l));const f=o[u]||(o[u]=Object.create(null));f[l]||(f[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:f}=c,d=Au(u,l),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),o[u][l].push(f))}),i.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&QY(c,o[u][l])}),t?zY(t,r,i):hS},ZY=e=>new Promise((t,n)=>{const r=typeof e=="string"?d0(e,!0):e;if(!r){n(e);return}YY([r||e],o=>{if(o.length&&r){const i=kY(r);if(i){t({...Ck,...i});return}}n(e)})});({...SY});const pS={backgroundColor:"currentColor"},XY={backgroundColor:"transparent"},vS={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},mS={webkitMask:pS,mask:pS,background:XY};for(const e in mS){const t=mS[e];for(const n in vS)t[e+n]=vS[n]}const P1={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";P1[e+"-flip"]=t,P1[e.slice(0,1)+"-flip"]=t,P1[e+"Flip"]=t});BI(!0);CY("",IY);if(typeof document<"u"&&typeof window<"u"){JI();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!_Y(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;EY(n,o)||console.error(r)}catch{console.error(r)}}}}({...Ck});const tZ=["width","height"],eZ=Bo({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=e,o=cr(),i=IQ();i?.nuxtIcon?.aliases;const a=s0("icons",()=>({})),s=Tn(!1),c=sr(()=>(i.nuxtIcon?.aliases||{})[r.name]||r.name),u=sr(()=>a.value?.[c.value]),l=sr(()=>o.vueApp.component(c.value)),f=sr(()=>{if(!r.size&&typeof i.nuxtIcon?.size=="boolean"&&!i.nuxtIcon?.size)return;const p=r.size||i.nuxtIcon?.size||"1em";return String(Number(p))===p?`${p}px`:p}),d=sr(()=>i?.nuxtIcon?.class??"icon");async function h(){l.value||a.value?.[c.value]||(s.value=!0,a.value[c.value]=await ZY(c.value).catch(()=>{}),s.value=!1)}return no(()=>c.value,h),!l.value&&([t,n]=db(()=>h()),t=await t,n()),(p,v)=>s.value?(Ln(),ri("span",{key:0,class:Vr(d.value),width:f.value,height:f.value},null,10,tZ)):u.value?(Ln(),go(Ie(vY),{key:1,icon:u.value,class:Vr(d.value),width:f.value,height:f.value},null,8,["icon","class","width","height"])):l.value?(Ln(),go(fk(l.value),{key:2,class:Vr(d.value),width:f.value,height:f.value},null,8,["class","width","height"])):(Ln(),ri("span",{key:3,class:Vr(d.value),style:Wu({fontSize:f.value,lineHeight:f.value,width:f.value,height:f.value})},[Pu(p.$slots,"default",{},()=>[vu(Xv(e.name),1)],!0)],6))}});const GI=MI(eZ,[["__scopeId","data-v-fed4f909"]]),nZ=Object.freeze(Object.defineProperty({__proto__:null,default:GI},Symbol.toStringTag,{value:"Module"}));function gS(e){return typeof e=="function"?e():Ie(e)}const rZ=e=>typeof e<"u",yS=()=>{};function oZ(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function iZ(e,t={}){let n,r,o=yS;const i=s=>{clearTimeout(s),o(),o=yS};return s=>{const c=gS(e),u=gS(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((l,f)=>{o=t.rejectOnCancel?f:l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,l(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,l(s())},c)})}}function Rk(e,t=200,n={}){return oZ(iZ(t,n),e)}function aZ(e){return JSON.parse(JSON.stringify(e))}function sZ(e,t,n,r={}){var o,i,a;const{clone:s=!1,passive:c=!1,eventName:u,deep:l=!1,defaultValue:f,shouldEmit:d}=r,h=cs(),p=n||h?.emit||((o=h?.$emit)==null?void 0:o.bind(h))||((a=(i=h?.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h?.proxy));let v=u;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=b=>s?typeof s=="function"?s(b):aZ(b):b,g=()=>rZ(e[t])?m(e[t]):f,y=b=>{d?d(b)&&p(v,b):p(v,b)};if(c){const b=g(),w=Tn(b);return no(()=>e[t],k=>w.value=m(k)),no(w,k=>{(k!==e[t]||l)&&y(k)},{deep:l}),w}else return sr({get(){return g()},set(b){y(b)}})}const cZ={class:"n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base"},uZ=Bo({__name:"NTextInput",props:{modelValue:{default:""},icon:{},placeholder:{},disabled:{type:Boolean},type:{default:"text"}},setup(e,{emit:t}){const r=sZ(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=$k;return Ln(),ri("div",cZ,[Pu(o.$slots,"icon",{},()=>[o.icon?(Ln(),go(a,{key:0,icon:o.icon,class:"ml-0.3em mr-0.1em text-1.1em op50"},null,8,["icon"])):Ta("",!0)]),$W(Qn("input",mk({"onUpdate:modelValue":i[0]||(i[0]=s=>Ur(r)?r.value=s:null)},o.$props,{class:"ml-0.4em w-full flex-auto n-bg-base !outline-none"}),null,16),[[DU,Ie(r)]])])}}}),lZ=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>e.params[n.slice(1)]?.toString()||""),Vb=(e,t)=>{const n=e.route.matched.find(o=>o.components?.default===e.Component.type),r=t??n?.meta.key??(n&&lZ(e.route,n));return typeof r=="function"?r(e.route):r},fZ=(e,t)=>({default:()=>e?Do(MW,e===!0?{}:e,t):t}),dZ=Bo({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return Dl(c0,tp(r)),()=>Do(e.vnode,{ref:e.vnodeRef})}}),hZ=(e,t,n)=>(t=t===!0?{}:t,{default:()=>t?Do(e,t,n):n.default?.()}),pZ=Bo({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=cr(),o=Tn(),i=ci(c0,null);n({pageRef:o});const a=ci(eG,null);let s;return()=>Do(CI,{name:e.name,route:e.route,...t},{default:c=>{const u=gZ(i,c.route,c.Component),l=i&&i.matched.length===c.route.matched.length;if(!c.Component)return s&&!l?s:void 0;if(s&&a&&!a.isCurrent(c.route))return s;if(u&&i&&(!a||a?.isCurrent(i)))return l?s:null;const f=Vb(c,e.pageKey),d=r.deferHydration(),h=!!(e.transition??c.route.meta.pageTransition??Sb),p=h&&mZ([e.transition,c.route.meta.pageTransition,Sb,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return s=hZ(yk,h&&p,fZ(e.keepalive??c.route.meta.keepalive??VJ,Do(f9,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{Uu(()=>r.callHook("page:finish",c.Component).finally(d))}},{default:()=>Do(dZ,{key:f,vnode:c.Component,route:c.route,renderKey:f,trackRootNodes:h,vnodeRef:o})}))).default(),s}})}});function vZ(e){return Array.isArray(e)?e:e?[e]:[]}function mZ(e){const t=e.map(n=>({...n,onAfterLeave:vZ(n.onAfterLeave)}));return QJ(...t)}function gZ(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>o.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((o,i)=>o.components?.default!==e.matched[i]?.components?.default)||n&&Vb({route:t,Component:n})!==Vb({route:e,Component:n})}const yZ=6e4;function QI(e){return e}const bZ=QI,{setTimeout:wZ}=globalThis,xZ=Math.random.bind(Math);function kZ(e,t){const{post:n,on:r,eventNames:o=[],serialize:i=QI,deserialize:a=bZ,resolver:s,timeout:c=yZ}=t,u=new Map;let l;const f=new Proxy({},{get(d,h){if(h==="$functions")return e;const p=(...m)=>{n(i({m:h,a:m,t:"q"}))};if(o.includes(h))return p.asEvent=p,p;const v=async(...m)=>(await l,new Promise((g,y)=>{const b=_Z();u.set(b,{resolve:g,reject:y}),n(i({m:h,a:m,i:b,t:"q"})),c>=0&&wZ(()=>{y(new Error(`[birpc] timeout on calling "${h}"`)),u.delete(b)},c)}));return v.asEvent=p,v}});return l=r(async(d,...h)=>{const p=a(d);if(p.t==="q"){const{m:v,a:m}=p;let g,y;const b=s?s(v,e[v]):e[v];if(!b)y=new Error(`[birpc] function "${v}" not found`);else try{g=await b.apply(f,m)}catch(w){y=w}p.i&&(y&&t.onError&&t.onError(y,v,m),n(i({t:"s",i:p.i,r:g,e:y}),...h))}else{const{i:v,r:m,e:g}=p,y=u.get(v);y&&(g?y.reject(g):y.resolve(m)),u.delete(v)}}),f}const jZ="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function _Z(e=21){let t="",n=e;for(;n--;)t+=jZ[xZ()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:$Z,stringify:SZ}=JSON,{keys:CZ}=Object,bh=String,YI="string",bS={},Wm="object",ZI=(e,t)=>t,EZ=e=>e instanceof bh?bh(e):e,OZ=(e,t)=>typeof t===YI?new bh(t):t,XI=(e,t,n,r)=>{const o=[];for(let i=CZ(n),{length:a}=i,s=0;s<a;s++){const c=i[s],u=n[c];if(u instanceof bh){const l=e[u];typeof l===Wm&&!t.has(l)?(t.add(l),n[c]=bS,o.push({k:c,a:[e,t,l,r]})):n[c]=r.call(n,c,l)}else n[c]!==bS&&(n[c]=r.call(n,c,u))}for(let{length:i}=o,a=0;a<i;a++){const{k:s,a:c}=o[a];n[s]=r.call(n,s,XI.apply(null,c))}return n},wS=(e,t,n)=>{const r=bh(t.push(n)-1);return e.set(n,r),r},MZ=(e,t)=>{const n=$Z(e,OZ).map(EZ),r=n[0],o=t||ZI,i=typeof r===Wm&&r?XI(n,new Set,r,o):r;return o.call({"":i},"",i)},PZ=(e,t,n)=>{const r=t&&typeof t===Wm?(l,f)=>l===""||-1<t.indexOf(l)?f:void 0:t||ZI,o=new Map,i=[],a=[];let s=+wS(o,i,r.call({"":e},"",e)),c=!s;for(;s<i.length;)c=!0,a[s]=SZ(i[s++],u,n);return"["+a.join(",")+"]";function u(l,f){if(c)return c=!c,f;const d=r.call(this,l,f);switch(typeof d){case Wm:if(d===null)return d;case YI:return o.get(d)||wS(o,i,d)}return d}},AZ=2e3;let tN=()=>{};const xS=Tn(!0),kS=Tn(),eN=Tn(null);function TZ(e){const t=kZ(e,{post:n=>eN.value.send(n),on:n=>{tN=n},serialize:PZ,deserialize:MZ});return{useServerConfig:async function(){return(await _k("server-config",()=>t.getConfig())).data}}}async function nN(e){const t=new WebSocket(`ws://${e}/__nuxt_og_image__/entry`);return t.addEventListener("message",n=>tN(String(n.data))),t.addEventListener("error",n=>{kS.value=n}),t.addEventListener("close",()=>{console.log("[nuxt-og-image] WebSocket closed, reconnecting..."),setTimeout(async()=>{eN.value=await nN(e)},AZ)}),xS.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(n=>t.addEventListener("open",n)),console.log("[nuxt-og-image] WebSocket connected."),xS.value=!1,kS.value=null,t}const p0=Tn(Date.now()),jS=Tn(null),rN=window.location.host,Ha=Tn("/"),oN=Tn("/"),Wp=Tn({}),Md=Tn({}),ou=Tn(!1),A1=Tn({}),Pd=Rk(()=>{p0.value=Date.now()},200),RZ=Rk(()=>{p0.value=Date.now()},1e3),IZ={refresh(){ou.value=!1,Md.value={},Pd()}};await nN(rN);TZ(IZ);const ol=Tn(null),Ik=sr(()=>Q9(oN.value,`${window.location.protocol}//${rN}`)),P3t=sr(()=>`${Ik.value}${Ha.value==="/"?"":Ha.value}`);async function _S(){const{data:e}=await _k(()=>$fetch("/api/og-image-options",{baseURL:Ik.value,query:{path:Ha.value}}),{watch:[Ha,p0]},"$XVR8o8RMBy");return e}async function A3t(){const{data:e}=await _k(()=>$fetch("/api/og-image-vnode",{query:{path:Ha.value},baseURL:Ik.value}),{watch:[Ha,p0]},"$cHgKigQ0kS");return e}var T1,$S,SS,CS,ES,OS,MS,PS,AS,TS,RS,IS,NS,DS,LS,zS,BS,FS,HS,VS,qS,WS,US,KS,JS,GS,QS,YS,ZS,XS,tC,eC,nC,rC,oC,iC,aC,sC,cC,uC,lC,fC,dC,hC,pC,vC,mC,gC,yC,bC,wC,xC,kC,jC,_C,$C,SC,CC,EC,OC,MC,PC,AC,TC,RC,IC,NC,DC,LC,zC,BC,FC,HC,VC,qC,WC,UC,KC,JC,GC,QC,YC,ZC,XC,t3,e3,n3,r3,o3,i3,a3,s3,c3,u3,l3,f3,d3,h3,p3,v3,m3,g3,y3,b3,w3,x3,k3,j3,_3,$3,S3,C3,E3,O3,M3,P3,A3,T3,R3,I3,N3,D3,L3,z3,B3,F3,H3,V3,q3,W3,U3,K3,J3,G3,Q3,Y3,Z3,X3,t4,e4,n4,r4,o4,i4,a4,s4,c4,u4,l4,f4,d4,h4,p4,v4,m4,g4,y4,b4,w4,x4,k4,j4,_4,$4,S4,C4,E4,O4,M4,P4,A4,T4,R4,I4,N4,D4,L4,z4,B4,F4,H4,V4,q4,W4,U4,K4,J4,G4,Q4,Y4,Z4,X4,t8,e8,n8,r8,o8,i8,a8,s8,c8,u8,l8,f8,d8,h8,p8,v8,m8,g8,y8,b8,w8,x8,k8,j8,_8,$8,S8,C8,E8,O8,M8,P8,A8,T8,R8,I8,N8,D8,L8,z8,B8,F8,H8,V8,q8,W8,U8,K8,J8,G8,Q8,Y8,Z8,X8,t5,e5,n5,r5,o5,i5,a5,s5,c5,u5,l5,f5,d5,h5,p5,v5,m5,g5,y5,b5,w5,x5,k5,j5,_5,$5,S5,C5,E5,O5,M5,P5,A5,T5,R5,I5,N5,NZ=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],DZ=["mainAxis","crossAxis","limiter"];function it(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function iN(e,t){if(e==null)return{};var n,r,o=function(a,s){if(a==null)return{};var c,u,l={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],s.indexOf(c)>=0||(l[c]=a[c]);return l}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=v0(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
6
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */qt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(I,H,S){I[H]=S.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(I,H,S){return Object.defineProperty(I,H,{value:S,enumerable:!0,configurable:!0,writable:!0}),I[H]}try{c({},"")}catch{c=function(H,S,D){return H[S]=D}}function u(I,H,S,D){var V=H&&H.prototype instanceof d?H:d,N=Object.create(V.prototype),A=new M(D||[]);return r(N,"_invoke",{value:k(I,S,A)}),N}function l(I,H,S){try{return{type:"normal",arg:I.call(H,S)}}catch(D){return{type:"throw",arg:D}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var v={};c(v,i,function(){return this});var m=Object.getPrototypeOf,g=m&&m(m(T([])));g&&g!==t&&n.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Object.create(v);function b(I){["next","throw","return"].forEach(function(H){c(I,H,function(S){return this._invoke(H,S)})})}function w(I,H){function S(V,N,A,$){var C=l(I[V],I,N);if(C.type!=="throw"){var B=C.arg,F=B.value;return F&&le(F)=="object"&&n.call(F,"__await")?H.resolve(F.__await).then(function(j){S("next",j,A,$)},function(j){S("throw",j,A,$)}):H.resolve(F).then(function(j){B.value=j,A(B)},function(j){return S("throw",j,A,$)})}$(C.arg)}var D;r(this,"_invoke",{value:function(V,N){function A(){return new H(function($,C){S(V,N,$,C)})}return D=D?D.then(A,A):A()}})}function k(I,H,S){var D="suspendedStart";return function(V,N){if(D==="executing")throw new Error("Generator is already running");if(D==="completed"){if(V==="throw")throw N;return R()}for(S.method=V,S.arg=N;;){var A=S.delegate;if(A){var $=x(A,S);if($){if($===f)continue;return $}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(D==="suspendedStart")throw D="completed",S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);D="executing";var C=l(I,H,S);if(C.type==="normal"){if(D=S.done?"completed":"suspendedYield",C.arg===f)continue;return{value:C.arg,done:S.done}}C.type==="throw"&&(D="completed",S.method="throw",S.arg=C.arg)}}}function x(I,H){var S=H.method,D=I.iterator[S];if(D===void 0)return H.delegate=null,S==="throw"&&I.iterator.return&&(H.method="return",H.arg=void 0,x(I,H),H.method==="throw")||S!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+S+"' method")),f;var V=l(D,I.iterator,H.arg);if(V.type==="throw")return H.method="throw",H.arg=V.arg,H.delegate=null,f;var N=V.arg;return N?N.done?(H[I.resultName]=N.value,H.next=I.nextLoc,H.method!=="return"&&(H.method="next",H.arg=void 0),H.delegate=null,f):N:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,f)}function O(I){var H={tryLoc:I[0]};1 in I&&(H.catchLoc=I[1]),2 in I&&(H.finallyLoc=I[2],H.afterLoc=I[3]),this.tryEntries.push(H)}function _(I){var H=I.completion||{};H.type="normal",delete H.arg,I.completion=H}function M(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(O,this),this.reset(!0)}function T(I){if(I){var H=I[i];if(H)return H.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var S=-1,D=function V(){for(;++S<I.length;)if(n.call(I,S))return V.value=I[S],V.done=!1,V;return V.value=void 0,V.done=!0,V};return D.next=D}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(I){var H=typeof I=="function"&&I.constructor;return!!H&&(H===h||(H.displayName||H.name)==="GeneratorFunction")},e.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,p):(I.__proto__=p,c(I,s,"GeneratorFunction")),I.prototype=Object.create(y),I},e.awrap=function(I){return{__await:I}},b(w.prototype),c(w.prototype,a,function(){return this}),e.AsyncIterator=w,e.async=function(I,H,S,D,V){V===void 0&&(V=Promise);var N=new w(u(I,H,S,D),V);return e.isGeneratorFunction(H)?N:N.next().then(function(A){return A.done?A.value:N.next()})},b(y),c(y,s,"Generator"),c(y,i,function(){return this}),c(y,"toString",function(){return"[object Generator]"}),e.keys=function(I){var H=Object(I),S=[];for(var D in H)S.push(D);return S.reverse(),function V(){for(;S.length;){var N=S.pop();if(N in H)return V.value=N,V.done=!1,V}return V.done=!0,V}},e.values=T,M.prototype={constructor:M,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!I)for(var H in this)H.charAt(0)==="t"&&n.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var H=this;function S(C,B){return N.type="throw",N.arg=I,H.next=C,B&&(H.method="next",H.arg=void 0),!!B}for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D],N=V.completion;if(V.tryLoc==="root")return S("end");if(V.tryLoc<=this.prev){var A=n.call(V,"catchLoc"),$=n.call(V,"finallyLoc");if(A&&$){if(this.prev<V.catchLoc)return S(V.catchLoc,!0);if(this.prev<V.finallyLoc)return S(V.finallyLoc)}else if(A){if(this.prev<V.catchLoc)return S(V.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return S(V.finallyLoc)}}}},abrupt:function(I,H){for(var S=this.tryEntries.length-1;S>=0;--S){var D=this.tryEntries[S];if(D.tryLoc<=this.prev&&n.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var V=D;break}}V&&(I==="break"||I==="continue")&&V.tryLoc<=H&&H<=V.finallyLoc&&(V=null);var N=V?V.completion:{};return N.type=I,N.arg=H,V?(this.method="next",this.next=V.finallyLoc,f):this.complete(N)},complete:function(I,H){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&H&&(this.next=H),f},finish:function(I){for(var H=this.tryEntries.length-1;H>=0;--H){var S=this.tryEntries[H];if(S.finallyLoc===I)return this.complete(S.completion,S.afterLoc),_(S),f}},catch:function(I){for(var H=this.tryEntries.length-1;H>=0;--H){var S=this.tryEntries[H];if(S.tryLoc===I){var D=S.completion;if(D.type==="throw"){var V=D.arg;_(S)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(I,H,S){return this.delegate={iterator:T(I),resultName:H,nextLoc:S},this.method==="next"&&(this.arg=void 0),f}},e}function D5(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function Ne(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){D5(i,r,o,a,s,"next",c)}function s(c){D5(i,r,o,a,s,"throw",c)}a(void 0)})}}function Me(e,t){return sN(e)||function(n,r){var o=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(o!=null){var i,a,s,c,u=[],l=!0,f=!1;try{if(s=(o=o.call(n)).next,r===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(i=s.call(o)).done)&&(u.push(i.value),u.length!==r);l=!0);}catch(d){f=!0,a=d}finally{try{if(!l&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||v0(e,t)||aN()}function aN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
7
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sN(e){if(Array.isArray(e))return e}function ff(e){var t=typeof Map=="function"?new Map:void 0;return ff=function(n){if(n===null||(r=n,Function.toString.call(r).indexOf("[native code]")===-1))return n;var r;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return qb(n,arguments,en(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),wh(o,n)},ff(e)}function qb(e,t,n){return qb=cN()?Reflect.construct.bind():function(r,o,i){var a=[null];a.push.apply(a,o);var s=new(Function.bind.apply(r,a));return i&&wh(s,i.prototype),s},qb.apply(null,arguments)}function L5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L5(Object(n),!0).forEach(function(r){Jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jo(e,t,n){return(t=uN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(){return yn=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=en(i))!==null;);return i}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},yn.apply(this,arguments)}function Tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wh(e,t)}function wh(e,t){return wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wh(e,t)}function Rt(e){var t=cN();return function(){var n,r=en(e);if(t){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(i,a){if(a&&(le(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return he(i)}(this,n)}}function he(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},en(e)}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z5(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uN(r.key),r)}}function ot(e,t,n){return t&&z5(e.prototype,t),n&&z5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uN(e){var t=function(n,r){if(le(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(le(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return le(t)==="symbol"?t:String(t)}function Te(e){return function(t){if(Array.isArray(t))return Wb(t)}(e)||lN(e)||v0(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
8
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v0(e,t){if(e){if(typeof e=="string")return Wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wb(e,t):void 0}}function lN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function le(e){return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},le(e)}function Bt(){}var fN=function(e){return e};function Yo(e,t){for(var n in t)e[n]=t[n];return e}function dN(e){return e()}function B5(){return Object.create(null)}function Hn(e){e.forEach(dN)}function ro(e){return typeof e=="function"}function Qr(e,t){return e!=e?t==t:e!==t||e&&le(e)==="object"||typeof e=="function"}function qe(e,t){return e!=e?t==t:e!==t}function br(e,t,n,r){if(e){var o=hN(e,t,n,r);return e[0](o)}}function hN(e,t,n,r){return e[1]&&r?Yo(n.ctx.slice(),e[1](r(t))):n.ctx}function wr(e,t,n,r){if(e[2]&&r){var o=e[2](r(n));if(t.dirty===void 0)return o;if(le(o)==="object"){for(var i=[],a=Math.max(t.dirty.length,o.length),s=0;s<a;s+=1)i[s]=t.dirty[s]|o[s];return i}return t.dirty|o}return t.dirty}function xr(e,t,n,r,o,i){if(o){var a=hN(t,n,r,i);e.p(a,o)}}function kr(e){if(e.ctx.length>32){for(var t=[],n=e.ctx.length/32,r=0;r<n;r++)t[r]=-1;return t}return-1}function pN(e){var t={};for(var n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function Um(e,t){var n={};for(var r in t=new Set(t),e)t.has(r)||r[0]==="$"||(n[r]=e[r]);return n}function ar(e){return e??""}function io(e){return e&&ro(e.destroy)?e.destroy:Bt}var vN=typeof window<"u",LZ=vN?function(){return window.performance.now()}:function(){return Date.now()},Nk=vN?function(e){return requestAnimationFrame(e)}:Bt,Kd=new Set;function mN(e){Kd.forEach(function(t){t.c(e)||(Kd.delete(t),t.f())}),Kd.size!==0&&Nk(mN)}var Dk=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function W(e,t){e.appendChild(t)}function De(e,t,n){var r=Lk(e);if(!r.getElementById(t)){var o=Z("style");o.id=t,o.textContent=n,gN(r,o)}}function Lk(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function zZ(e){var t=Z("style");return gN(Lk(e),t),t.sheet}function gN(e,t){return W(e.head||e,t),t.sheet}function lt(e,t,n){e.insertBefore(t,n||null)}function ut(e){e.parentNode&&e.parentNode.removeChild(e)}function Or(e,t){for(var n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function Z(e){return document.createElement(e)}function ts(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Qt(e){return document.createTextNode(e)}function jt(){return Qt(" ")}function xn(){return Qt("")}function zt(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Tu(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Sc(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function E(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}var BZ=["width","height"];function F5(e,t){var n=Object.getOwnPropertyDescriptors(e.__proto__);for(var r in t)t[r]==null?e.removeAttribute(r):r==="style"?e.style.cssText=t[r]:r==="__value"?e.value=e[r]=t[r]:n[r]&&n[r].set&&BZ.indexOf(r)===-1?e[r]=t[r]:E(e,r,t[r])}function df(e,t){for(var n in t)E(e,n,t[n])}function $e(e,t){t=""+t,e.data!==t&&(e.data=t)}function Cc(e,t){e.value=t??""}function lc(e,t,n,r){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function H5(e,t,n){for(var r=0;r<e.options.length;r+=1){var o=e.options[r];if(o.__value===t)return void(o.selected=!0)}n&&t===void 0||(e.selectedIndex=-1)}function Nt(e,t,n){e.classList[n?"add":"remove"](t)}function yN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.bubbles,o=r!==void 0&&r,i=n.cancelable,a=i!==void 0&&i,s=document.createEvent("CustomEvent");return s.initCustomEvent(e,o,a,t),s}function es(e,t){return new e(t)}var xh,Km=new Map,Ub=0;function V5(e,t,n,r,o,i,a){for(var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:0,c=16.666/r,u=`{
@@ -138,6 +138,6 @@ return query;
138
138
  * Copyright 2017-2021 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
139
139
  * Released under the ISC license.
140
140
  */var x_=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k_=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Jv=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(n,r){var o=[],i=!0,a=!1,s=void 0;try{for(var c,u=n[Symbol.iterator]();!(i=(c=u.next()).done)&&(o.push(c.value),!r||o.length!==r);i=!0);}catch(l){a=!0,s=l}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(e){return this.indexOf(e)===0},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var Ckt={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function XR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return(t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString())||"0"}var Ekt=function(){function e(t,n,r,o){x_(this,e);var i=this;if(t!==void 0)if(Array.isArray(t))this.rgba=t;else if(r===void 0){var a=t&&""+t;a&&function(s){if(s.startsWith("hsl")){var c=s.match(/([\-\d\.e]+)/g).map(Number),u=Jv(c,4),l=u[0],f=u[1],d=u[2],h=u[3];h===void 0&&(h=1),l/=360,f/=100,d/=100,i.hsla=[l,f,d,h]}else if(s.startsWith("rgb")){var p=s.match(/([\-\d\.e]+)/g).map(Number),v=Jv(p,4),m=v[0],g=v[1],y=v[2],b=v[3];b===void 0&&(b=1),i.rgba=[m,g,y,b]}else s.startsWith("#")?i.rgba=e.hexToRgb(s):i.rgba=e.nameToRgb(s)||e.hexToRgb(s)}(a.toLowerCase())}else this.rgba=[t,n,r,o===void 0?1:o]}return k_(e,[{key:"printRGB",value:function(t){var n=(t?this.rgba:this.rgba.slice(0,3)).map(function(r,o){return XR(r,o===3?3:0)});return t?"rgba("+n+")":"rgb("+n+")"}},{key:"printHSL",value:function(t){var n=[360,100,100,1],r=["","%","%",""],o=(t?this.hsla:this.hsla.slice(0,3)).map(function(i,a){return XR(i*n[a],a===3?3:1)+r[a]});return t?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(t){var n=this.hex;return t?n:n.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(t){t.length===3&&(t[3]=1),this._rgba=t,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(t){t.length===3&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var t=this.rgba.map(function(n,r){return r<3?n.toString(16):Math.round(255*n).toString(16)});return"#"+t.map(function(n){return n.padStart(2,"0")}).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(t){var n=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!n.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var r=n.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(o){return parseInt(o,16)});return r[3]=r[3]/255,r}},{key:"nameToRgb",value:function(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=Ckt[n];return r===void 0?r:e.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var n=Jv(t,4),r=n[0],o=n[1],i=n[2],a=n[3];r/=255,o/=255,i/=255;var s=Math.max(r,o,i),c=Math.min(r,o,i),u=void 0,l=void 0,f=(s+c)/2;if(s===c)u=l=0;else{var d=s-c;switch(l=f>.5?d/(2-s-c):d/(s+c),s){case r:u=(o-i)/d+(o<i?6:0);break;case o:u=(i-r)/d+2;break;case i:u=(r-o)/d+4}u/=6}return[u,l,f,a]}},{key:"hslToRgb",value:function(t){var n=Jv(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=void 0,c=void 0,u=void 0;if(o===0)s=c=u=i;else{var l=function(p,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<.16666666666666666?p+6*(v-p)*m:m<.5?v:m<.6666666666666666?p+(v-p)*(.6666666666666666-m)*6:p},f=i<.5?i*(1+o):i+o-i*o,d=2*i-f;s=l(d,f,r+1/3),c=l(d,f,r),u=l(d,f,r-1/3)}var h=[255*s,255*c,255*u].map(Math.round);return h[3]=a,h}}]),e}(),Okt=function(){function e(){x_(this,e),this._events=[]}return k_(e,[{key:"add",value:function(t,n,r){t.addEventListener(n,r,!1),this._events.push({target:t,type:n,handler:r})}},{key:"remove",value:function(t,n,r){this._events=this._events.filter(function(o){var i=!0;return t&&t!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&e._doRemove(o.target,o.type,o.handler),!i})}},{key:"destroy",value:function(){this._events.forEach(function(t){return e._doRemove(t.target,t.type,t.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(t,n,r){t.removeEventListener(n,r,!1)}}]),e}();function Yy(e,t,n){var r=!1;function o(c,u,l){return Math.max(u,Math.min(c,l))}function i(c,u,l){if(l&&(r=!0),r){c.preventDefault();var f=t.getBoundingClientRect(),d=f.width,h=f.height,p=u.clientX,v=u.clientY,m=o(p-f.left,0,d),g=o(v-f.top,0,h);n(m/d,g/h)}}function a(c,u){(c.buttons===void 0?c.which:c.buttons)===1?i(c,c,u):r=!1}function s(c,u){c.touches.length===1?i(c,c.touches[0],u):r=!1}e.add(t,"mousedown",function(c){a(c,!0)}),e.add(t,"touchstart",function(c){s(c,!0)}),e.add(window,"mousemove",a),e.add(t,"touchmove",s),e.add(window,"mouseup",function(c){r=!1}),e.add(t,"touchend",function(c){r=!1}),e.add(t,"touchcancel",function(c){r=!1})}var _V="keydown",Gv="mousedown",Zy="focusin";function Pa(e,t){return(t||document).querySelector(e)}function $V(e){e.preventDefault(),e.stopPropagation()}function Xy(e,t,n,r,o){e.add(t,_V,function(i){n.indexOf(i.key)>=0&&(o&&$V(i),r(i))})}var SV=function(){function e(t){x_(this,e),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new Okt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return k_(e,[{key:"setOptions",value:function(t){var n=this;if(t){var r=this.settings;if(t instanceof HTMLElement)r.parent=t;else{r.parent&&t.parent&&r.parent!==t.parent&&(this._events.remove(r.parent),this._popupInited=!1),function(s,c,u){for(var l in s)u&&u.indexOf(l)>=0||(c[l]=s[l])}(t,r),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose);var o=t.color||t.colour;o&&this._setColor(o)}var i=r.parent;if(i&&r.popup&&!this._popupInited){var a=function(s){return n.openHandler(s)};this._events.add(i,"click",a),Xy(this._events,i,[" ","Spacebar","Enter"],a),this._popupInited=!0}else t.parent&&!r.popup&&this.show()}}},{key:"openHandler",value:function(t){if(this.show()){t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none";var n=t&&t.type===_V?this._domEdit:this.domElement;setTimeout(function(){return n.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(t){var n=t&&t.type,r=!1;if(t)if(n===Gv||n===Zy){var o=(this.__containedEvent||0)+100;t.timeStamp>o&&(r=!0)}else $V(t),r=!0;else r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",n!==Gv&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,n){this.closeHandler(),this.setOptions(t),n&&this.openHandler()}},{key:"setColor",value:function(t,n){this._setColor(t,{silent:n})}},{key:"_setColor",value:function(t,n){if(typeof t=="string"&&(t=t.trim()),t){n=n||{};var r=void 0;try{r=new Ekt(t)}catch(i){if(n.failSilently)return;throw i}if(!this.settings.alpha){var o=r.hsla;o[3]=1,r.hsla=o}this.colour=this.color=r,this._setHSLA(null,null,null,null,n)}}},{key:"setColour",value:function(t,n){this.setColor(t,n)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var n,r,o=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',i=(n=o,(r=document.createElement("div")).innerHTML=n,r.firstElementChild);return this.domElement=i,this._domH=Pa(".picker_hue",i),this._domSL=Pa(".picker_sl",i),this._domA=Pa(".picker_alpha",i),this._domEdit=Pa(".picker_editor input",i),this._domSample=Pa(".picker_sample",i),this._domOkay=Pa(".picker_done button",i),this._domCancel=Pa(".picker_cancel button",i),i.classList.add("layout_"+this.settings.layout),this.settings.alpha||i.classList.add("no_alpha"),this.settings.editor||i.classList.add("no_editor"),this.settings.cancelButton||i.classList.add("no_cancel"),this._ifPopup(function(){return i.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var t=this,n=this,r=this.domElement,o=this._events;function i(c,u,l){o.add(c,u,l)}i(r,"click",function(c){return c.preventDefault()}),Yy(o,this._domH,function(c,u){return n._setHSLA(c)}),Yy(o,this._domSL,function(c,u){return n._setHSLA(null,c,1-u)}),this.settings.alpha&&Yy(o,this._domA,function(c,u){return n._setHSLA(null,null,null,1-u)});var a=this._domEdit;i(a,"input",function(c){n._setColor(this.value,{fromEditor:!0,failSilently:!0})}),i(a,"focus",function(c){var u=this;u.selectionStart===u.selectionEnd&&u.select()}),this._ifPopup(function(){var c=function(l){return t.closeHandler(l)};i(window,Gv,c),i(window,Zy,c),Xy(o,r,["Esc","Escape"],c);var u=function(l){t.__containedEvent=l.timeStamp};i(r,Gv,u),i(r,Zy,u),i(t._domCancel,"click",c)});var s=function(c){t._ifPopup(function(){return t.closeHandler(c)}),t.onDone&&t.onDone(t.colour)};i(this._domOkay,"click",s),Xy(o,r,["Enter"],s)}},{key:"_setPosition",value:function(){var t=this.settings.parent,n=this.domElement;t!==n.parentNode&&t.appendChild(n),this._ifPopup(function(r){getComputedStyle(t).position==="static"&&(t.style.position="relative");var o=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(i){i===o?n.classList.add(i):n.classList.remove(i)}),n.classList.add(o)})}},{key:"_setHSLA",value:function(t,n,r,o,i){i=i||{};var a=this.colour,s=a.hsla;[t,n,r,o].forEach(function(c,u){(c||c===0)&&(s[u]=c)}),a.hsla=s,this._updateUI(i),this.onChange&&!i.silent&&this.onChange(a)}},{key:"_updateUI",value:function(t){if(this.domElement){t=t||{};var n=this.colour,r=n.hsla,o="hsl("+360*r[0]+", 100%, 50%)",i=n.hslString,a=n.hslaString,s=this._domH,c=this._domSL,u=this._domA,l=Pa(".picker_selector",s),f=Pa(".picker_selector",c),d=Pa(".picker_selector",u);b(0,l,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=o,b(0,f,r[1]),w(0,f,1-r[2]),c.style.color=i,w(0,d,1-r[3]);var h=i,p=h.replace("hsl","hsla").replace(")",", 0)"),v="linear-gradient("+[h,p]+")";if(this._domA.style.background=v+`, linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
141
- linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,!t.fromEditor){var m=this.settings.editorFormat,g=this.settings.alpha,y=void 0;switch(m){case"rgb":y=n.printRGB(g);break;case"hsl":y=n.printHSL(g);break;default:y=n.printHex(g)}this._domEdit.value=y}this._domSample.style.color=a}function b(k,x,O){x.style.left=100*O+"%"}function w(k,x,O){x.style.top=100*O+"%"}}},{key:"_ifPopup",value:function(t,n){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):n&&n()}},{key:"_toggleDOM",value:function(t){var n=this.domElement;if(!n)return!1;var r=t?"":"none",o=n.style.display!==r;return o&&(n.style.display=r),o}}]),e}(),tb=document.createElement("style");tb.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(tb),SV.StyleElement=tb;var Mkt=Object.freeze({__proto__:null,default:SV}),Pkt=typeof global=="object"&&global&&global.Object===Object&&global;const CV=Pkt;var Akt=typeof self=="object"&&self&&self.Object===Object&&self,Tkt=CV||Akt||Function("return this")();const fs=Tkt;var Rkt=fs.Symbol;const as=Rkt;var EV=Object.prototype,Ikt=EV.hasOwnProperty,Nkt=EV.toString,jd=as?as.toStringTag:void 0;function Dkt(e){var t=Ikt.call(e,jd),n=e[jd];try{e[jd]=void 0;var r=!0}catch{}var o=Nkt.call(e);return r&&(t?e[jd]=n:delete e[jd]),o}var Lkt=Object.prototype,zkt=Lkt.toString;function Bkt(e){return zkt.call(e)}var Fkt="[object Null]",Hkt="[object Undefined]",t7=as?as.toStringTag:void 0;function tl(e){return e==null?e===void 0?Hkt:Fkt:t7&&t7 in Object(e)?Dkt(e):Bkt(e)}function ss(e){return e!=null&&typeof e=="object"}var Vkt="[object Symbol]";function j_(e){return typeof e=="symbol"||ss(e)&&tl(e)==Vkt}function qkt(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Wkt=Array.isArray;const Bi=Wkt;var Ukt=1/0,e7=as?as.prototype:void 0,n7=e7?e7.toString:void 0;function OV(e){if(typeof e=="string")return e;if(Bi(e))return qkt(e,OV)+"";if(j_(e))return n7?n7.call(e):"";var t=e+"";return t=="0"&&1/e==-Ukt?"-0":t}function ds(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function __(e){return e}var Kkt="[object AsyncFunction]",Jkt="[object Function]",Gkt="[object GeneratorFunction]",Qkt="[object Proxy]";function $_(e){if(!ds(e))return!1;var t=tl(e);return t==Jkt||t==Gkt||t==Kkt||t==Qkt}var Ykt=fs["__core-js_shared__"];const eb=Ykt;var r7=function(){var e=/[^.]+$/.exec(eb&&eb.keys&&eb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Zkt(e){return!!r7&&r7 in e}var Xkt=Function.prototype,t2t=Xkt.toString;function el(e){if(e!=null){try{return t2t.call(e)}catch{}try{return e+""}catch{}}return""}var e2t=/[\\^$.*+?()[\]{}|]/g,n2t=/^\[object .+?Constructor\]$/,r2t=Function.prototype,o2t=Object.prototype,i2t=r2t.toString,a2t=o2t.hasOwnProperty,s2t=RegExp("^"+i2t.call(a2t).replace(e2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c2t(e){if(!ds(e)||Zkt(e))return!1;var t=$_(e)?s2t:n2t;return t.test(el(e))}function u2t(e,t){return e?.[t]}function nl(e,t){var n=u2t(e,t);return c2t(n)?n:void 0}var l2t=nl(fs,"WeakMap");const Lx=l2t;var o7=Object.create,f2t=function(){function e(){}return function(t){if(!ds(t))return{};if(o7)return o7(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const d2t=f2t;function h2t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function MV(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var p2t=800,v2t=16,m2t=Date.now;function g2t(e){var t=0,n=0;return function(){var r=m2t(),o=v2t-(r-n);if(n=r,o>0){if(++t>=p2t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function y2t(e){return function(){return e}}var b2t=function(){try{var e=nl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Wg=b2t;var w2t=Wg?function(e,t){return Wg(e,"toString",{configurable:!0,enumerable:!1,value:y2t(t),writable:!0})}:__;const x2t=w2t;var k2t=g2t(x2t);const j2t=k2t;function _2t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var $2t=9007199254740991,S2t=/^(?:0|[1-9]\d*)$/;function S_(e,t){var n=typeof e;return t=t??$2t,!!t&&(n=="number"||n!="symbol"&&S2t.test(e))&&e>-1&&e%1==0&&e<t}function s1(e,t,n){t=="__proto__"&&Wg?Wg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ep(e,t){return e===t||e!==e&&t!==t}var C2t=Object.prototype,E2t=C2t.hasOwnProperty;function PV(e,t,n){var r=e[t];(!(E2t.call(e,t)&&Ep(r,n))||n===void 0&&!(t in e))&&s1(e,t,n)}function td(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),o?s1(n,s,c):PV(n,s,c)}return n}var i7=Math.max;function O2t(e,t,n){return t=i7(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=i7(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),h2t(e,this,s)}}function M2t(e,t){return j2t(O2t(e,t,__),e+"")}var P2t=9007199254740991;function C_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=P2t}function c1(e){return e!=null&&C_(e.length)&&!$_(e)}function A2t(e,t,n){if(!ds(n))return!1;var r=typeof t;return(r=="number"?c1(n)&&S_(t,n.length):r=="string"&&t in n)?Ep(n[t],e):!1}function AV(e){return M2t(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&A2t(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var T2t=Object.prototype;function E_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||T2t;return e===n}function R2t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var I2t="[object Arguments]";function a7(e){return ss(e)&&tl(e)==I2t}var TV=Object.prototype,N2t=TV.hasOwnProperty,D2t=TV.propertyIsEnumerable,L2t=a7(function(){return arguments}())?a7:function(e){return ss(e)&&N2t.call(e,"callee")&&!D2t.call(e,"callee")};const Ug=L2t;function z2t(){return!1}var RV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,s7=RV&&typeof module=="object"&&module&&!module.nodeType&&module,B2t=s7&&s7.exports===RV,c7=B2t?fs.Buffer:void 0,F2t=c7?c7.isBuffer:void 0,H2t=F2t||z2t;const Gh=H2t;var V2t="[object Arguments]",q2t="[object Array]",W2t="[object Boolean]",U2t="[object Date]",K2t="[object Error]",J2t="[object Function]",G2t="[object Map]",Q2t="[object Number]",Y2t="[object Object]",Z2t="[object RegExp]",X2t="[object Set]",tjt="[object String]",ejt="[object WeakMap]",njt="[object ArrayBuffer]",rjt="[object DataView]",ojt="[object Float32Array]",ijt="[object Float64Array]",ajt="[object Int8Array]",sjt="[object Int16Array]",cjt="[object Int32Array]",ujt="[object Uint8Array]",ljt="[object Uint8ClampedArray]",fjt="[object Uint16Array]",djt="[object Uint32Array]",lr={};lr[ojt]=lr[ijt]=lr[ajt]=lr[sjt]=lr[cjt]=lr[ujt]=lr[ljt]=lr[fjt]=lr[djt]=!0;lr[V2t]=lr[q2t]=lr[njt]=lr[W2t]=lr[rjt]=lr[U2t]=lr[K2t]=lr[J2t]=lr[G2t]=lr[Q2t]=lr[Y2t]=lr[Z2t]=lr[X2t]=lr[tjt]=lr[ejt]=!1;function hjt(e){return ss(e)&&C_(e.length)&&!!lr[tl(e)]}function O_(e){return function(t){return e(t)}}var IV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ch=IV&&typeof module=="object"&&module&&!module.nodeType&&module,pjt=ch&&ch.exports===IV,nb=pjt&&CV.process,vjt=function(){try{var e=ch&&ch.require&&ch.require("util").types;return e||nb&&nb.binding&&nb.binding("util")}catch{}}();const Pf=vjt;var u7=Pf&&Pf.isTypedArray,mjt=u7?O_(u7):hjt;const M_=mjt;var gjt=Object.prototype,yjt=gjt.hasOwnProperty;function NV(e,t){var n=Bi(e),r=!n&&Ug(e),o=!n&&!r&&Gh(e),i=!n&&!r&&!o&&M_(e),a=n||r||o||i,s=a?R2t(e.length,String):[],c=s.length;for(var u in e)(t||yjt.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||S_(u,c)))&&s.push(u);return s}function DV(e,t){return function(n){return e(t(n))}}var bjt=DV(Object.keys,Object);const wjt=bjt;var xjt=Object.prototype,kjt=xjt.hasOwnProperty;function jjt(e){if(!E_(e))return wjt(e);var t=[];for(var n in Object(e))kjt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Op(e){return c1(e)?NV(e):jjt(e)}function _jt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $jt=Object.prototype,Sjt=$jt.hasOwnProperty;function Cjt(e){if(!ds(e))return _jt(e);var t=E_(e),n=[];for(var r in e)r=="constructor"&&(t||!Sjt.call(e,r))||n.push(r);return n}function ed(e){return c1(e)?NV(e,!0):Cjt(e)}var Ejt=AV(function(e,t,n,r){td(t,ed(t),e,r)});const Ojt=Ejt;var Mjt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pjt=/^\w*$/;function P_(e,t){if(Bi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||j_(e)?!0:Pjt.test(e)||!Mjt.test(e)||t!=null&&e in Object(t)}var Ajt=nl(Object,"create");const Qh=Ajt;function Tjt(){this.__data__=Qh?Qh(null):{},this.size=0}function Rjt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ijt="__lodash_hash_undefined__",Njt=Object.prototype,Djt=Njt.hasOwnProperty;function Ljt(e){var t=this.__data__;if(Qh){var n=t[e];return n===Ijt?void 0:n}return Djt.call(t,e)?t[e]:void 0}var zjt=Object.prototype,Bjt=zjt.hasOwnProperty;function Fjt(e){var t=this.__data__;return Qh?t[e]!==void 0:Bjt.call(t,e)}var Hjt="__lodash_hash_undefined__";function Vjt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qh&&t===void 0?Hjt:t,this}function qu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qu.prototype.clear=Tjt;qu.prototype.delete=Rjt;qu.prototype.get=Ljt;qu.prototype.has=Fjt;qu.prototype.set=Vjt;function qjt(){this.__data__=[],this.size=0}function u1(e,t){for(var n=e.length;n--;)if(Ep(e[n][0],t))return n;return-1}var Wjt=Array.prototype,Ujt=Wjt.splice;function Kjt(e){var t=this.__data__,n=u1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ujt.call(t,n,1),--this.size,!0}function Jjt(e){var t=this.__data__,n=u1(t,e);return n<0?void 0:t[n][1]}function Gjt(e){return u1(this.__data__,e)>-1}function Qjt(e,t){var n=this.__data__,r=u1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ws(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ws.prototype.clear=qjt;Ws.prototype.delete=Kjt;Ws.prototype.get=Jjt;Ws.prototype.has=Gjt;Ws.prototype.set=Qjt;var Yjt=nl(fs,"Map");const Yh=Yjt;function Zjt(){this.size=0,this.__data__={hash:new qu,map:new(Yh||Ws),string:new qu}}function Xjt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function l1(e,t){var n=e.__data__;return Xjt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function t_t(e){var t=l1(this,e).delete(e);return this.size-=t?1:0,t}function e_t(e){return l1(this,e).get(e)}function n_t(e){return l1(this,e).has(e)}function r_t(e,t){var n=l1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Us(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Us.prototype.clear=Zjt;Us.prototype.delete=t_t;Us.prototype.get=e_t;Us.prototype.has=n_t;Us.prototype.set=r_t;var o_t="Expected a function";function A_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(o_t);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(A_.Cache||Us),n}A_.Cache=Us;var i_t=500;function a_t(e){var t=A_(e,function(r){return n.size===i_t&&n.clear(),r}),n=t.cache;return t}var s_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c_t=/\\(\\)?/g,u_t=a_t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(s_t,function(n,r,o,i){t.push(o?i.replace(c_t,"$1"):r||n)}),t});const l_t=u_t;function f_t(e){return e==null?"":OV(e)}function LV(e,t){return Bi(e)?e:P_(e,t)?[e]:l_t(f_t(e))}var d_t=1/0;function f1(e){if(typeof e=="string"||j_(e))return e;var t=e+"";return t=="0"&&1/e==-d_t?"-0":t}function zV(e,t){t=LV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[f1(t[n++])];return n&&n==r?e:void 0}function h_t(e,t,n){var r=e==null?void 0:zV(e,t);return r===void 0?n:r}function BV(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var p_t=DV(Object.getPrototypeOf,Object);const T_=p_t;var v_t="[object Object]",m_t=Function.prototype,g_t=Object.prototype,FV=m_t.toString,y_t=g_t.hasOwnProperty,b_t=FV.call(Object);function HV(e){if(!ss(e)||tl(e)!=v_t)return!1;var t=T_(e);if(t===null)return!0;var n=y_t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&FV.call(n)==b_t}function w_t(){this.__data__=new Ws,this.size=0}function x_t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function k_t(e){return this.__data__.get(e)}function j_t(e){return this.__data__.has(e)}var __t=200;function $_t(e,t){var n=this.__data__;if(n instanceof Ws){var r=n.__data__;if(!Yh||r.length<__t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Us(r)}return n.set(e,t),this.size=n.size,this}function ga(e){var t=this.__data__=new Ws(e);this.size=t.size}ga.prototype.clear=w_t;ga.prototype.delete=x_t;ga.prototype.get=k_t;ga.prototype.has=j_t;ga.prototype.set=$_t;function S_t(e,t){return e&&td(t,Op(t),e)}function C_t(e,t){return e&&td(t,ed(t),e)}var VV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,l7=VV&&typeof module=="object"&&module&&!module.nodeType&&module,E_t=l7&&l7.exports===VV,f7=E_t?fs.Buffer:void 0,d7=f7?f7.allocUnsafe:void 0;function qV(e,t){if(t)return e.slice();var n=e.length,r=d7?d7(n):new e.constructor(n);return e.copy(r),r}function O_t(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function WV(){return[]}var M_t=Object.prototype,P_t=M_t.propertyIsEnumerable,h7=Object.getOwnPropertySymbols,A_t=h7?function(e){return e==null?[]:(e=Object(e),O_t(h7(e),function(t){return P_t.call(e,t)}))}:WV;const R_=A_t;function T_t(e,t){return td(e,R_(e),t)}var R_t=Object.getOwnPropertySymbols,I_t=R_t?function(e){for(var t=[];e;)BV(t,R_(e)),e=T_(e);return t}:WV;const UV=I_t;function N_t(e,t){return td(e,UV(e),t)}function KV(e,t,n){var r=t(e);return Bi(e)?r:BV(r,n(e))}function zx(e){return KV(e,Op,R_)}function D_t(e){return KV(e,ed,UV)}var L_t=nl(fs,"DataView");const Bx=L_t;var z_t=nl(fs,"Promise");const Fx=z_t;var B_t=nl(fs,"Set");const Hx=B_t;var p7="[object Map]",F_t="[object Object]",v7="[object Promise]",m7="[object Set]",g7="[object WeakMap]",y7="[object DataView]",H_t=el(Bx),V_t=el(Yh),q_t=el(Fx),W_t=el(Hx),U_t=el(Lx),au=tl;(Bx&&au(new Bx(new ArrayBuffer(1)))!=y7||Yh&&au(new Yh)!=p7||Fx&&au(Fx.resolve())!=v7||Hx&&au(new Hx)!=m7||Lx&&au(new Lx)!=g7)&&(au=function(e){var t=tl(e),n=t==F_t?e.constructor:void 0,r=n?el(n):"";if(r)switch(r){case H_t:return y7;case V_t:return p7;case q_t:return v7;case W_t:return m7;case U_t:return g7}return t});const Zh=au;var K_t=Object.prototype,J_t=K_t.hasOwnProperty;function G_t(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&J_t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Q_t=fs.Uint8Array;const Kg=Q_t;function I_(e){var t=new e.constructor(e.byteLength);return new Kg(t).set(new Kg(e)),t}function Y_t(e,t){var n=t?I_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Z_t=/\w*$/;function X_t(e){var t=new e.constructor(e.source,Z_t.exec(e));return t.lastIndex=e.lastIndex,t}var b7=as?as.prototype:void 0,w7=b7?b7.valueOf:void 0;function t$t(e){return w7?Object(w7.call(e)):{}}function JV(e,t){var n=t?I_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var e$t="[object Boolean]",n$t="[object Date]",r$t="[object Map]",o$t="[object Number]",i$t="[object RegExp]",a$t="[object Set]",s$t="[object String]",c$t="[object Symbol]",u$t="[object ArrayBuffer]",l$t="[object DataView]",f$t="[object Float32Array]",d$t="[object Float64Array]",h$t="[object Int8Array]",p$t="[object Int16Array]",v$t="[object Int32Array]",m$t="[object Uint8Array]",g$t="[object Uint8ClampedArray]",y$t="[object Uint16Array]",b$t="[object Uint32Array]";function w$t(e,t,n){var r=e.constructor;switch(t){case u$t:return I_(e);case e$t:case n$t:return new r(+e);case l$t:return Y_t(e,n);case f$t:case d$t:case h$t:case p$t:case v$t:case m$t:case g$t:case y$t:case b$t:return JV(e,n);case r$t:return new r;case o$t:case s$t:return new r(e);case i$t:return X_t(e);case a$t:return new r;case c$t:return t$t(e)}}function GV(e){return typeof e.constructor=="function"&&!E_(e)?d2t(T_(e)):{}}var x$t="[object Map]";function k$t(e){return ss(e)&&Zh(e)==x$t}var x7=Pf&&Pf.isMap,j$t=x7?O_(x7):k$t;const _$t=j$t;var $$t="[object Set]";function S$t(e){return ss(e)&&Zh(e)==$$t}var k7=Pf&&Pf.isSet,C$t=k7?O_(k7):S$t;const E$t=C$t;var O$t=1,M$t=2,P$t=4,QV="[object Arguments]",A$t="[object Array]",T$t="[object Boolean]",R$t="[object Date]",I$t="[object Error]",YV="[object Function]",N$t="[object GeneratorFunction]",D$t="[object Map]",L$t="[object Number]",ZV="[object Object]",z$t="[object RegExp]",B$t="[object Set]",F$t="[object String]",H$t="[object Symbol]",V$t="[object WeakMap]",q$t="[object ArrayBuffer]",W$t="[object DataView]",U$t="[object Float32Array]",K$t="[object Float64Array]",J$t="[object Int8Array]",G$t="[object Int16Array]",Q$t="[object Int32Array]",Y$t="[object Uint8Array]",Z$t="[object Uint8ClampedArray]",X$t="[object Uint16Array]",tSt="[object Uint32Array]",rr={};rr[QV]=rr[A$t]=rr[q$t]=rr[W$t]=rr[T$t]=rr[R$t]=rr[U$t]=rr[K$t]=rr[J$t]=rr[G$t]=rr[Q$t]=rr[D$t]=rr[L$t]=rr[ZV]=rr[z$t]=rr[B$t]=rr[F$t]=rr[H$t]=rr[Y$t]=rr[Z$t]=rr[X$t]=rr[tSt]=!0;rr[I$t]=rr[YV]=rr[V$t]=!1;function Sm(e,t,n,r,o,i){var a,s=t&O$t,c=t&M$t,u=t&P$t;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!ds(e))return e;var l=Bi(e);if(l){if(a=G_t(e),!s)return MV(e,a)}else{var f=Zh(e),d=f==YV||f==N$t;if(Gh(e))return qV(e,s);if(f==ZV||f==QV||d&&!o){if(a=c||d?{}:GV(e),!s)return c?N_t(e,C_t(a,e)):T_t(e,S_t(a,e))}else{if(!rr[f])return o?e:{};a=w$t(e,f,s)}}i||(i=new ga);var h=i.get(e);if(h)return h;i.set(e,a),E$t(e)?e.forEach(function(m){a.add(Sm(m,t,n,m,e,i))}):_$t(e)&&e.forEach(function(m,g){a.set(g,Sm(m,t,n,g,e,i))});var p=u?c?D_t:zx:c?ed:Op,v=l?void 0:p(e);return _2t(v||e,function(m,g){v&&(g=m,m=e[g]),PV(a,g,Sm(m,t,n,g,e,i))}),a}var eSt=1,nSt=4;function rSt(e){return Sm(e,eSt|nSt)}var oSt="__lodash_hash_undefined__";function iSt(e){return this.__data__.set(e,oSt),this}function aSt(e){return this.__data__.has(e)}function Jg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Us;++t<n;)this.add(e[t])}Jg.prototype.add=Jg.prototype.push=iSt;Jg.prototype.has=aSt;function sSt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function cSt(e,t){return e.has(t)}var uSt=1,lSt=2;function XV(e,t,n,r,o,i){var a=n&uSt,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=n&lSt?new Jg:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!sSt(t,function(g,y){if(!cSt(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(!(p===v||o(p,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function fSt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function dSt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var hSt=1,pSt=2,vSt="[object Boolean]",mSt="[object Date]",gSt="[object Error]",ySt="[object Map]",bSt="[object Number]",wSt="[object RegExp]",xSt="[object Set]",kSt="[object String]",jSt="[object Symbol]",_St="[object ArrayBuffer]",$St="[object DataView]",j7=as?as.prototype:void 0,rb=j7?j7.valueOf:void 0;function SSt(e,t,n,r,o,i,a){switch(n){case $St:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _St:return!(e.byteLength!=t.byteLength||!i(new Kg(e),new Kg(t)));case vSt:case mSt:case bSt:return Ep(+e,+t);case gSt:return e.name==t.name&&e.message==t.message;case wSt:case kSt:return e==t+"";case ySt:var s=fSt;case xSt:var c=r&hSt;if(s||(s=dSt),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=pSt,a.set(e,t);var l=XV(s(e),s(t),r,o,i,a);return a.delete(e),l;case jSt:if(rb)return rb.call(e)==rb.call(t)}return!1}var CSt=1,ESt=Object.prototype,OSt=ESt.hasOwnProperty;function MSt(e,t,n,r,o,i){var a=n&CSt,s=zx(e),c=s.length,u=zx(t),l=u.length;if(c!=l&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:OSt.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=a;++f<c;){d=s[f];var g=e[d],y=t[d];if(r)var b=a?r(y,g,d,t,e,i):r(g,y,d,e,t,i);if(!(b===void 0?g===y||o(g,y,n,r,i):b)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=e.constructor,k=t.constructor;w!=k&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof k=="function"&&k instanceof k)&&(v=!1)}return i.delete(e),i.delete(t),v}var PSt=1,_7="[object Arguments]",$7="[object Array]",Qv="[object Object]",ASt=Object.prototype,S7=ASt.hasOwnProperty;function TSt(e,t,n,r,o,i){var a=Bi(e),s=Bi(t),c=a?$7:Zh(e),u=s?$7:Zh(t);c=c==_7?Qv:c,u=u==_7?Qv:u;var l=c==Qv,f=u==Qv,d=c==u;if(d&&Gh(e)){if(!Gh(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new ga),a||M_(e)?XV(e,t,n,r,o,i):SSt(e,t,c,n,r,o,i);if(!(n&PSt)){var h=l&&S7.call(e,"__wrapped__"),p=f&&S7.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new ga),o(v,m,n,r,i)}}return d?(i||(i=new ga),MSt(e,t,n,r,o,i)):!1}function N_(e,t,n,r,o){return e===t?!0:e==null||t==null||!ss(e)&&!ss(t)?e!==e&&t!==t:TSt(e,t,n,r,N_,o)}var RSt=1,ISt=2;function NSt(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var c=s[0],u=e[c],l=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var f=new ga;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?N_(l,u,RSt|ISt,r,f):d))return!1}}return!0}function tq(e){return e===e&&!ds(e)}function DSt(e){for(var t=Op(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,tq(o)]}return t}function eq(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function LSt(e){var t=DSt(e);return t.length==1&&t[0][2]?eq(t[0][0],t[0][1]):function(n){return n===e||NSt(n,e,t)}}function zSt(e,t){return e!=null&&t in Object(e)}function BSt(e,t,n){t=LV(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=f1(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&C_(o)&&S_(a,o)&&(Bi(e)||Ug(e)))}function FSt(e,t){return e!=null&&BSt(e,t,zSt)}var HSt=1,VSt=2;function qSt(e,t){return P_(e)&&tq(t)?eq(f1(e),t):function(n){var r=h_t(n,e);return r===void 0&&r===t?FSt(n,e):N_(t,r,HSt|VSt)}}function WSt(e){return function(t){return t?.[e]}}function USt(e){return function(t){return zV(t,e)}}function KSt(e){return P_(e)?WSt(f1(e)):USt(e)}function JSt(e){return typeof e=="function"?e:e==null?__:typeof e=="object"?Bi(e)?qSt(e[0],e[1]):LSt(e):KSt(e)}function GSt(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var QSt=GSt();const nq=QSt;function YSt(e,t){return e&&nq(e,t,Op)}function Vx(e,t,n){(n!==void 0&&!Ep(e[t],n)||n===void 0&&!(t in e))&&s1(e,t,n)}function ZSt(e){return ss(e)&&c1(e)}function qx(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function XSt(e){return td(e,ed(e))}function tCt(e,t,n,r,o,i,a){var s=qx(e,n),c=qx(t,n),u=a.get(c);if(u){Vx(e,n,u);return}var l=i?i(s,c,n+"",e,t,a):void 0,f=l===void 0;if(f){var d=Bi(c),h=!d&&Gh(c),p=!d&&!h&&M_(c);l=c,d||h||p?Bi(s)?l=s:ZSt(s)?l=MV(s):h?(f=!1,l=qV(c,!0)):p?(f=!1,l=JV(c,!0)):l=[]:HV(c)||Ug(c)?(l=s,Ug(s)?l=XSt(s):(!ds(s)||$_(s))&&(l=GV(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),Vx(e,n,l)}function rq(e,t,n,r,o){e!==t&&nq(t,function(i,a){if(o||(o=new ga),ds(i))tCt(e,t,a,n,rq,r,o);else{var s=r?r(qx(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Vx(e,a,s)}},ed)}var eCt=AV(function(e,t,n,r){rq(e,t,n,r)});const nCt=eCt;function rCt(e,t){var n={};return t=JSt(t),YSt(e,function(r,o,i){s1(n,t(r,o,i),r)}),n}var Gg=function(){return Gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gg.apply(this,arguments)};function oCt(e){return e.toLowerCase()}var iCt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],aCt=/[^A-Z0-9]+/gi;function sCt(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?iCt:n,o=t.stripRegexp,i=o===void 0?aCt:o,a=t.transform,s=a===void 0?oCt:a,c=t.delimiter,u=c===void 0?" ":c,l=C7(C7(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;l.charAt(f)==="\0";)f++;for(;l.charAt(d-1)==="\0";)d--;return l.slice(f,d).split("\0").map(s).join(u)}function C7(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function oq(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function cCt(e,t){return t===void 0&&(t={}),sCt(e,Gg({delimiter:"",transform:oq},t))}function uCt(e,t){return t===0?e.toLowerCase():oq(e,t)}function lCt(e,t){return t===void 0&&(t={}),cCt(e,Gg({transform:uCt},t))}function fCt(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const dCt=fCt("String,Number,Boolean,Function,Symbol,BigInt");function hCt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function pCt(e,t){let n;const r=hCt(t);if(dCt(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=ds(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function vCt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const o=Array.isArray(t)?t:[t],i=[];for(let a=0;a<o.length&&!r;a++){const{valid:s,expectedType:c}=pCt(e,o[a]);i.push(c||""),r=s}if(!r)throw new Error(`Invalid prop: type check failed, expecting [${i.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function mCt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let i=e.length-1;i>=0;i--)r.push(e[i]);const o=n?(i,a)=>typeof i=="function"&&typeof a=="function"?n(a,i):void 0:void 0;return t==="deep"?nCt(...r,o):Ojt(...r,o)}function gCt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function yl(e,t={}){const{type:n,default:r,defaultIsDynamic:o=!1,required:i=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:c=!1,mergeFunctionApplyOnlyToDefault:u=!0}=t;let{mergeObject:l="deep",mergeFunction:f=!1}=t;const d=[];let h,p=!1,v=!1;const m=g=>{if(g!==void 0){vCt({type:n,prop:g,validator:a});const y=HV(g),b=typeof g=="function";return p=y,v=b,y?(g=rSt(g),s?rCt(g,(w,k)=>lCt(k,{stripRegexp:/-/g})):g):g}};for(const g of e)d.push(m(g));if(!o)d.push(m(r));else if(typeof r!="function")throw new TypeError(`Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`);p||(l=!1,v||(f=!1));for(let g=0;g<d.length;g++){const y=d[g];if(y!==void 0){g===d.length-1?h=y:l?h=mCt(c?[y,r]:d,{mergeObject:l,mergeFunction:f}):f?h=gCt(u?[y,r]:d,{mergeFunction:f}):h=y;break}}if(i&&[void 0,null].includes(h))throw new Error("Missing required prop");return o?yl(e,{...t,default:r(h),defaultIsDynamic:!1}):h}function E7(e){const t=Array.from(e);return t[0]=t[0].toUpperCase(),t.unshift("n"),t.unshift("o"),t.join("")}function yCt(e,t=[]){const n={props:{},attrs:{},listeners:{},hooks:{},slots:{}},r=Array.isArray(t)?t:Object.keys(t);for(const o in e)if(o.startsWith("@")){const i=o.substring(1);i.startsWith("vnode")?n.hooks[E7(i)]=e[o]:n.listeners[E7(i)]=e[o]}else if(o.startsWith("#")){const i=o.substring(1);i&&(n.slots[i]=e[o])}else r.includes(o)?n.props[o]=e[o]:n.attrs[o]=e[o];return n}var bCt=typeof global=="object"&&global&&global.Object===Object&&global;const wCt=bCt;var xCt=typeof self=="object"&&self&&self.Object===Object&&self,kCt=wCt||xCt||Function("return this")();const iq=kCt;var jCt=iq.Symbol;const Qg=jCt;var aq=Object.prototype,_Ct=aq.hasOwnProperty,$Ct=aq.toString,_d=Qg?Qg.toStringTag:void 0;function SCt(e){var t=_Ct.call(e,_d),n=e[_d];try{e[_d]=void 0;var r=!0}catch{}var o=$Ct.call(e);return r&&(t?e[_d]=n:delete e[_d]),o}var CCt=Object.prototype,ECt=CCt.toString;function OCt(e){return ECt.call(e)}var MCt="[object Null]",PCt="[object Undefined]",O7=Qg?Qg.toStringTag:void 0;function ACt(e){return e==null?e===void 0?PCt:MCt:O7&&O7 in Object(e)?SCt(e):OCt(e)}function TCt(e){return e!=null&&typeof e=="object"}var RCt="[object Symbol]";function ICt(e){return typeof e=="symbol"||TCt(e)&&ACt(e)==RCt}var NCt=/\s/;function DCt(e){for(var t=e.length;t--&&NCt.test(e.charAt(t)););return t}var LCt=/^\s+/;function zCt(e){return e&&e.slice(0,DCt(e)+1).replace(LCt,"")}function Wx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var M7=0/0,BCt=/^[-+]0x[0-9a-f]+$/i,FCt=/^0b[01]+$/i,HCt=/^0o[0-7]+$/i,VCt=parseInt;function P7(e){if(typeof e=="number")return e;if(ICt(e))return M7;if(Wx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zCt(e);var n=FCt.test(e);return n||HCt.test(e)?VCt(e.slice(2),n?2:8):BCt.test(e)?M7:+e}var qCt=function(){return iq.Date.now()};const ob=qCt;var WCt="Expected a function",UCt=Math.max,KCt=Math.min;function JCt(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(WCt);t=P7(t)||0,Wx(n)&&(l=!!n.leading,f="maxWait"in n,i=f?UCt(P7(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(x){var O=r,_=o;return r=o=void 0,u=x,a=e.apply(_,O),a}function p(x){return u=x,s=setTimeout(g,t),l?h(x):a}function v(x){var O=x-c,_=x-u,M=t-O;return f?KCt(M,i-_):M}function m(x){var O=x-c,_=x-u;return c===void 0||O>=t||O<0||f&&_>=i}function g(){var x=ob();if(m(x))return y(x);s=setTimeout(g,v(x))}function y(x){return s=void 0,d&&r?h(x):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function w(){return s===void 0?a:y(ob())}function k(){var x=ob(),O=m(x);if(r=arguments,o=this,c=x,O){if(s===void 0)return p(c);if(f)return clearTimeout(s),s=setTimeout(g,t),h(c)}return s===void 0&&(s=setTimeout(g,t)),a}return k.cancel=b,k.flush=w,k}const GCt="JsonEditorVue",Yv="modelValue",A7="update:modelValue",Zv=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],sq=Bo({name:GCt,props:{[Yv]:{},mode:{type:String},...Object.fromEntries(Zv.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[A7](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var o;const i=(o=cs())==null?void 0:o.proxy,a=Tn(),s=Tn(!1),c=Tn(!1),u=yl([e.mode,Cm.mode],{type:String}),l=yl([e[Yv],Cm[Yv]]),f=Object.fromEntries(Array.from(Zv,m=>[m,yl([e[m],Cm[m]])]).filter(([,m])=>m!==void 0)),d=JCt(m=>{if(c.value){c.value=!1;return}s.value=!0,n(A7,m.text===void 0?m.json:m.text)},100),h=m=>{n("update:mode",m)},p=(m,g)=>(...y)=>{m(...y),g(...y)},v=yl([t,cq,{onChange:d,onChangeMode:h,mode:u,...f,...l!==void 0&&{content:{json:l}}}],{type:Object,mergeFunction:p});return no(()=>e[Yv],m=>{var g;if(s.value){s.value=!1;return}c.value=!0,(g=a.value)==null||g.update([void 0,""].includes(m)?{text:""}:{json:m})},{deep:!0}),no(()=>e.mode,m=>{var g;(g=a.value)==null||g.updateProps({mode:m})}),no(()=>Array.from(Zv,m=>e[m]),m=>{a.value.updateProps(Object.fromEntries(Array.from(m,(g,y)=>[Zv[y],g]).filter(([,g])=>g!==void 0)))}),no(()=>t,m=>{const g={};m.onChange&&(g.onChange=d),m.onChangeMode&&(g.onChangeMode=h),a.value.updateProps(Object.getOwnPropertyNames(g).length>0?yl([m,g],{type:Object,mergeFunction:p}):m)},{deep:!0}),r?.({jsonEditor:a}),nf(()=>{a.value.destroy()}),Ku(()=>{a.value=new wwt({target:i?.$refs.jsonEditorRef,props:v}),r||(r=m=>{for(const g in m)i[g]=Ie(m[g])},r({jsonEditor:a}))}),()=>Do("div",{ref:"jsonEditorRef"})}}),Cm={},cq={};function QCt(e){return e.install=(t,n={})=>{const{props:r,attrs:o}=yCt(n,sq.props);Object.assign(Cm,r),Object.assign(cq,o),t.component(e.name,e)},e}const YCt=QCt(sq);const ZCt={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,o)=>(r.size=o===t?r.max:r.min,o!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),o),r);let a=[t,t+1],s=this.panes[a[0]]||null,c=this.panes[a[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(u||l){u?(s.size=s.max,c.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:a}=f),s=this.panes[a[0]]||null,c=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((o,i)=>{i>r[0]&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((o,i)=>{i>0&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((o,i)=>{i>n&&i<r[1]&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((o,i)=>{i<this.panesCount-1&&i>=n+1&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(o.ontouchstart=i=>this.onMouseDown(i,r)),o.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(o.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(o=>(o.className.includes("splitpanes__pane")&&t++,o===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((o,i)=>o.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,o)=>r.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let o=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),o-=i.size}),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const o=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(a=>{e&&e.givenSize!==null&&e.id===a.id||(a.size=Math.max(Math.min(n,a.max),a.min)),r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),r>.1&&this.readjustSizes(r,o,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((o,i)=>{if(e>0&&!t.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}else if(!n.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Do("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},XCt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},t3t={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function e3t(e,t,n,r,o,i){return Ln(),ri("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=a=>i.onPaneClick(a,e._.uid)),style:Wu(e.style)},[Pu(e.$slots,"default")],4)}const T7=XCt(t3t,[["render",e3t]]),n3t="2.0.6";let bl;const $d=[];function r3t(e){if($d.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&$d.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&$d.forEach(n=>n(t))},get(){return bl.value},configurable:!0}),()=>{$d.splice($d.indexOf(e),1)}}function o3t(){bl||(bl=ef(),r3t(e));function e(t){bl.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",()=>{tW(bl)})}return bl}const R7=o3t();const i3t={class:"flex-row flex h-screen"},a3t={class:"border-r-1 border-light-400 dark:border-dark-400 dark:bg-dark-900 dark:text-light bg-white text-dark-800 flex flex-col justify-between h-screen z-5"},s3t={class:"flex-grow hidden md:block"},c3t={class:"py-3 w-full flex items-start px-5 justify-between space-x-5"},u3t=Qn("h1",{class:"text-base w-40"}," OG Image Playground ",-1),l3t=Qn("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),f3t={class:"py-7 px-5 text-sm flex flex-col space-y-3"},d3t=Qn("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),h3t={key:0,class:"py-7 px-5 text-sm flex flex-col space-y-3"},p3t={class:"p-3 text-gray-400 text-sm text-center"},v3t={class:"mx-auto flex flex-col w-full bg-white dark:bg-black max-h-screen overflow-hidden dark:bg-dark-700 bg-light-200"},m3t={class:"py-9px dark:bg-dark-800 bg-light-200 px-10 opacity-80 flex items-center max-w-full block space-x-5"},g3t={class:"text-sm flex items-center space-x-5"},y3t=Qn("div",{class:"text-xs opacity-40"}," Path ",-1),b3t={class:"flex items-center space-x-1"},w3t={key:0,class:"text-xs opacity-70"},x3t=Qn("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),k3t=Qn("h2",{class:"font-semibold text-lg mb-5"}," Props ",-1),j3t={class:"relative"},_3t={key:0,class:"absolute top-1 right-1 text-10px ml-1 bg-blue-100 text-blue-700 px-1 py-2px rounded"},$3t={key:0,class:"text-xs p-2 text-gray-300"},S3t=Bo({__name:"app",async setup(e){let t,n;FJ({title:"OG Image Playground"});const r=sr(()=>!!R7.value),o=sr(()=>R7.value?.host.nuxt.vueApp.config?.globalProperties?.$route?.path||void 0);Ha.value=o.value||Od().query.path||"/",oN.value=Od().query.base||"/",no(()=>o.value,d=>{Md.value={},ou.value=!1,Ha.value=d});const i=sr(()=>Od().path!=="/vnodes"&&Od().path!=="/options"),a=([t,n]=db(()=>_S()),t=await t,n(),t);no(a,d=>{Wp.value=Ie(d),d={...Ie(d)},delete d.path,delete d.cache,delete d.cacheTtl,delete d.component,delete d.provider,delete d.componentHash,A1.value=d},{immediate:!0});const s=Rk(d=>{Md.value={},ou.value=!1,Ha.value=d.target.value,Pd()},1e3),c=PI();function u(d){Md.value=d,ou.value=!0,Pd()}const l=sr(()=>c.value==="dark");async function f(d=!0){d&&await _S(),Md.value={},ou.value=!1;const h={...Wp.value};delete h.path,delete h.cache,delete h.cacheTtl,delete h.component,delete h.provider,delete h.componentHash,A1.value=h,d&&Pd()}return[t,n]=db(()=>f(!1)),await t,n(),(d,h)=>{const p=$k,v=VQ,m=JQ,g=GI,y=OI,b=uZ,w=pZ;return Ln(),ri("div",i3t,[Qn("header",a3t,[Qn("div",s3t,[Qn("div",c3t,[u3t,Ie(r)?Ta("",!0):(Ln(),go(m,{key:0},{default:to(({toggle:k})=>[Ze(v,{n:"borderless lg m-0","p-0":"",op50:"",onClick:k},{default:to(()=>[Ze(p,{icon:"dark:carbon-moon carbon-sun"})]),_:2},1032,["onClick"])]),_:1}))]),l3t,Qn("div",f3t,[Ze(y,{to:"/",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:image-search",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Template HTML ",2)]),_:1}),Ie(Wp)?.provider==="satori"?(Ln(),go(y,{key:0,to:"/svg",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:svg",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Preview SVG ",2)]),_:1})):Ta("",!0),Ze(y,{to:"/png",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:png",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Preview PNG ",2)]),_:1}),Ze(y,{to:"/options",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:operations-record",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Options ",2)]),_:1}),Ze(y,{to:"/vnodes",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:ibm-cloud-pak-manta-automated-data-lineage",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," vNodes ",2)]),_:1})]),d3t,Ie(i)?(Ln(),ri("div",h3t,[Ie(ol)!==504?(Ln(),ri("div",{key:0,onClick:h[0]||(h[0]=k=>ol.value=504)},[Ze(v,null,{default:to(()=>[Ze(g,{name:"carbon:mobile"}),vu(" Small ")]),_:1})])):Ta("",!0),Ie(ol)!==null?(Ln(),ri("div",{key:1,onClick:h[1]||(h[1]=k=>ol.value=null)},[Ze(v,null,{default:to(()=>[Ze(g,{name:"carbon:laptop"}),vu(" Full width ")]),_:1})])):Ta("",!0),Qn("div",null,[Ze(v,{onClick:Ie(Pd)},{default:to(()=>[vu(" Refresh ")]),_:1},8,["onClick"])])])):Ta("",!0)]),Qn("div",p3t," v"+Xv(Ie(n3t)),1)]),Qn("main",v3t,[Qn("div",m3t,[Qn("div",g3t,[y3t,Qn("div",b3t,[Ze(b,{"model-value":Ie(Ha),placeholder:"Search...",n:"primary",onInput:Ie(s)},null,8,["model-value","onInput"])])]),Ie(jS)?(Ln(),ri("div",w3t,Xv(Ie(jS)),1)):Ta("",!0)]),x3t,Qn("div",{class:"h-full max-h-full overflow-hidden lg:p-5 p-2",style:Wu({width:Ie(ol)&&Ie(i)?`${Ie(ol)}px`:"100%"})},[Ze(Ie(ZCt),{class:"default-theme",onResize:Ie(RZ)},{default:to(()=>[Ze(Ie(T7),{size:"80"},{default:to(()=>[Ze(w)]),_:1}),Ze(Ie(T7),{size:"20"},{default:to(()=>[k3t,Qn("div",j3t,[Ze(Ie(YCt),{"model-value":Ie(A1),class:Vr(Ie(l)?["jse-theme-dark"]:[]),"main-menu-bar":!1,"navigation-bar":!1,"onUpdate:modelValue":u},null,8,["model-value","class"]),Ie(ou)?(Ln(),ri("span",_3t,"modified")):Ta("",!0)]),Ie(ou)?(Ln(),ri("div",$3t,[Qn("div",null,[vu(" Update "+Xv(Ie(Wp).component)+" to persist the changes. ",1),Qn("button",{type:"button",class:"underline",onClick:h[2]||(h[2]=k=>f(!0))}," Reset ")])])):Ta("",!0)]),_:1})]),_:1},8,["onResize"])],4)])])}}});const C3t={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(`
141
+ linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,!t.fromEditor){var m=this.settings.editorFormat,g=this.settings.alpha,y=void 0;switch(m){case"rgb":y=n.printRGB(g);break;case"hsl":y=n.printHSL(g);break;default:y=n.printHex(g)}this._domEdit.value=y}this._domSample.style.color=a}function b(k,x,O){x.style.left=100*O+"%"}function w(k,x,O){x.style.top=100*O+"%"}}},{key:"_ifPopup",value:function(t,n){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):n&&n()}},{key:"_toggleDOM",value:function(t){var n=this.domElement;if(!n)return!1;var r=t?"":"none",o=n.style.display!==r;return o&&(n.style.display=r),o}}]),e}(),tb=document.createElement("style");tb.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(tb),SV.StyleElement=tb;var Mkt=Object.freeze({__proto__:null,default:SV}),Pkt=typeof global=="object"&&global&&global.Object===Object&&global;const CV=Pkt;var Akt=typeof self=="object"&&self&&self.Object===Object&&self,Tkt=CV||Akt||Function("return this")();const fs=Tkt;var Rkt=fs.Symbol;const as=Rkt;var EV=Object.prototype,Ikt=EV.hasOwnProperty,Nkt=EV.toString,jd=as?as.toStringTag:void 0;function Dkt(e){var t=Ikt.call(e,jd),n=e[jd];try{e[jd]=void 0;var r=!0}catch{}var o=Nkt.call(e);return r&&(t?e[jd]=n:delete e[jd]),o}var Lkt=Object.prototype,zkt=Lkt.toString;function Bkt(e){return zkt.call(e)}var Fkt="[object Null]",Hkt="[object Undefined]",t7=as?as.toStringTag:void 0;function tl(e){return e==null?e===void 0?Hkt:Fkt:t7&&t7 in Object(e)?Dkt(e):Bkt(e)}function ss(e){return e!=null&&typeof e=="object"}var Vkt="[object Symbol]";function j_(e){return typeof e=="symbol"||ss(e)&&tl(e)==Vkt}function qkt(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Wkt=Array.isArray;const Bi=Wkt;var Ukt=1/0,e7=as?as.prototype:void 0,n7=e7?e7.toString:void 0;function OV(e){if(typeof e=="string")return e;if(Bi(e))return qkt(e,OV)+"";if(j_(e))return n7?n7.call(e):"";var t=e+"";return t=="0"&&1/e==-Ukt?"-0":t}function ds(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function __(e){return e}var Kkt="[object AsyncFunction]",Jkt="[object Function]",Gkt="[object GeneratorFunction]",Qkt="[object Proxy]";function $_(e){if(!ds(e))return!1;var t=tl(e);return t==Jkt||t==Gkt||t==Kkt||t==Qkt}var Ykt=fs["__core-js_shared__"];const eb=Ykt;var r7=function(){var e=/[^.]+$/.exec(eb&&eb.keys&&eb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Zkt(e){return!!r7&&r7 in e}var Xkt=Function.prototype,t2t=Xkt.toString;function el(e){if(e!=null){try{return t2t.call(e)}catch{}try{return e+""}catch{}}return""}var e2t=/[\\^$.*+?()[\]{}|]/g,n2t=/^\[object .+?Constructor\]$/,r2t=Function.prototype,o2t=Object.prototype,i2t=r2t.toString,a2t=o2t.hasOwnProperty,s2t=RegExp("^"+i2t.call(a2t).replace(e2t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c2t(e){if(!ds(e)||Zkt(e))return!1;var t=$_(e)?s2t:n2t;return t.test(el(e))}function u2t(e,t){return e?.[t]}function nl(e,t){var n=u2t(e,t);return c2t(n)?n:void 0}var l2t=nl(fs,"WeakMap");const Lx=l2t;var o7=Object.create,f2t=function(){function e(){}return function(t){if(!ds(t))return{};if(o7)return o7(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const d2t=f2t;function h2t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function MV(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var p2t=800,v2t=16,m2t=Date.now;function g2t(e){var t=0,n=0;return function(){var r=m2t(),o=v2t-(r-n);if(n=r,o>0){if(++t>=p2t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function y2t(e){return function(){return e}}var b2t=function(){try{var e=nl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Wg=b2t;var w2t=Wg?function(e,t){return Wg(e,"toString",{configurable:!0,enumerable:!1,value:y2t(t),writable:!0})}:__;const x2t=w2t;var k2t=g2t(x2t);const j2t=k2t;function _2t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var $2t=9007199254740991,S2t=/^(?:0|[1-9]\d*)$/;function S_(e,t){var n=typeof e;return t=t??$2t,!!t&&(n=="number"||n!="symbol"&&S2t.test(e))&&e>-1&&e%1==0&&e<t}function s1(e,t,n){t=="__proto__"&&Wg?Wg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ep(e,t){return e===t||e!==e&&t!==t}var C2t=Object.prototype,E2t=C2t.hasOwnProperty;function PV(e,t,n){var r=e[t];(!(E2t.call(e,t)&&Ep(r,n))||n===void 0&&!(t in e))&&s1(e,t,n)}function td(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),o?s1(n,s,c):PV(n,s,c)}return n}var i7=Math.max;function O2t(e,t,n){return t=i7(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=i7(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),h2t(e,this,s)}}function M2t(e,t){return j2t(O2t(e,t,__),e+"")}var P2t=9007199254740991;function C_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=P2t}function c1(e){return e!=null&&C_(e.length)&&!$_(e)}function A2t(e,t,n){if(!ds(n))return!1;var r=typeof t;return(r=="number"?c1(n)&&S_(t,n.length):r=="string"&&t in n)?Ep(n[t],e):!1}function AV(e){return M2t(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&A2t(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var T2t=Object.prototype;function E_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||T2t;return e===n}function R2t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var I2t="[object Arguments]";function a7(e){return ss(e)&&tl(e)==I2t}var TV=Object.prototype,N2t=TV.hasOwnProperty,D2t=TV.propertyIsEnumerable,L2t=a7(function(){return arguments}())?a7:function(e){return ss(e)&&N2t.call(e,"callee")&&!D2t.call(e,"callee")};const Ug=L2t;function z2t(){return!1}var RV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,s7=RV&&typeof module=="object"&&module&&!module.nodeType&&module,B2t=s7&&s7.exports===RV,c7=B2t?fs.Buffer:void 0,F2t=c7?c7.isBuffer:void 0,H2t=F2t||z2t;const Gh=H2t;var V2t="[object Arguments]",q2t="[object Array]",W2t="[object Boolean]",U2t="[object Date]",K2t="[object Error]",J2t="[object Function]",G2t="[object Map]",Q2t="[object Number]",Y2t="[object Object]",Z2t="[object RegExp]",X2t="[object Set]",tjt="[object String]",ejt="[object WeakMap]",njt="[object ArrayBuffer]",rjt="[object DataView]",ojt="[object Float32Array]",ijt="[object Float64Array]",ajt="[object Int8Array]",sjt="[object Int16Array]",cjt="[object Int32Array]",ujt="[object Uint8Array]",ljt="[object Uint8ClampedArray]",fjt="[object Uint16Array]",djt="[object Uint32Array]",lr={};lr[ojt]=lr[ijt]=lr[ajt]=lr[sjt]=lr[cjt]=lr[ujt]=lr[ljt]=lr[fjt]=lr[djt]=!0;lr[V2t]=lr[q2t]=lr[njt]=lr[W2t]=lr[rjt]=lr[U2t]=lr[K2t]=lr[J2t]=lr[G2t]=lr[Q2t]=lr[Y2t]=lr[Z2t]=lr[X2t]=lr[tjt]=lr[ejt]=!1;function hjt(e){return ss(e)&&C_(e.length)&&!!lr[tl(e)]}function O_(e){return function(t){return e(t)}}var IV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ch=IV&&typeof module=="object"&&module&&!module.nodeType&&module,pjt=ch&&ch.exports===IV,nb=pjt&&CV.process,vjt=function(){try{var e=ch&&ch.require&&ch.require("util").types;return e||nb&&nb.binding&&nb.binding("util")}catch{}}();const Pf=vjt;var u7=Pf&&Pf.isTypedArray,mjt=u7?O_(u7):hjt;const M_=mjt;var gjt=Object.prototype,yjt=gjt.hasOwnProperty;function NV(e,t){var n=Bi(e),r=!n&&Ug(e),o=!n&&!r&&Gh(e),i=!n&&!r&&!o&&M_(e),a=n||r||o||i,s=a?R2t(e.length,String):[],c=s.length;for(var u in e)(t||yjt.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||S_(u,c)))&&s.push(u);return s}function DV(e,t){return function(n){return e(t(n))}}var bjt=DV(Object.keys,Object);const wjt=bjt;var xjt=Object.prototype,kjt=xjt.hasOwnProperty;function jjt(e){if(!E_(e))return wjt(e);var t=[];for(var n in Object(e))kjt.call(e,n)&&n!="constructor"&&t.push(n);return t}function Op(e){return c1(e)?NV(e):jjt(e)}function _jt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $jt=Object.prototype,Sjt=$jt.hasOwnProperty;function Cjt(e){if(!ds(e))return _jt(e);var t=E_(e),n=[];for(var r in e)r=="constructor"&&(t||!Sjt.call(e,r))||n.push(r);return n}function ed(e){return c1(e)?NV(e,!0):Cjt(e)}var Ejt=AV(function(e,t,n,r){td(t,ed(t),e,r)});const Ojt=Ejt;var Mjt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pjt=/^\w*$/;function P_(e,t){if(Bi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||j_(e)?!0:Pjt.test(e)||!Mjt.test(e)||t!=null&&e in Object(t)}var Ajt=nl(Object,"create");const Qh=Ajt;function Tjt(){this.__data__=Qh?Qh(null):{},this.size=0}function Rjt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ijt="__lodash_hash_undefined__",Njt=Object.prototype,Djt=Njt.hasOwnProperty;function Ljt(e){var t=this.__data__;if(Qh){var n=t[e];return n===Ijt?void 0:n}return Djt.call(t,e)?t[e]:void 0}var zjt=Object.prototype,Bjt=zjt.hasOwnProperty;function Fjt(e){var t=this.__data__;return Qh?t[e]!==void 0:Bjt.call(t,e)}var Hjt="__lodash_hash_undefined__";function Vjt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qh&&t===void 0?Hjt:t,this}function qu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qu.prototype.clear=Tjt;qu.prototype.delete=Rjt;qu.prototype.get=Ljt;qu.prototype.has=Fjt;qu.prototype.set=Vjt;function qjt(){this.__data__=[],this.size=0}function u1(e,t){for(var n=e.length;n--;)if(Ep(e[n][0],t))return n;return-1}var Wjt=Array.prototype,Ujt=Wjt.splice;function Kjt(e){var t=this.__data__,n=u1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ujt.call(t,n,1),--this.size,!0}function Jjt(e){var t=this.__data__,n=u1(t,e);return n<0?void 0:t[n][1]}function Gjt(e){return u1(this.__data__,e)>-1}function Qjt(e,t){var n=this.__data__,r=u1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ws(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ws.prototype.clear=qjt;Ws.prototype.delete=Kjt;Ws.prototype.get=Jjt;Ws.prototype.has=Gjt;Ws.prototype.set=Qjt;var Yjt=nl(fs,"Map");const Yh=Yjt;function Zjt(){this.size=0,this.__data__={hash:new qu,map:new(Yh||Ws),string:new qu}}function Xjt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function l1(e,t){var n=e.__data__;return Xjt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function t_t(e){var t=l1(this,e).delete(e);return this.size-=t?1:0,t}function e_t(e){return l1(this,e).get(e)}function n_t(e){return l1(this,e).has(e)}function r_t(e,t){var n=l1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Us(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Us.prototype.clear=Zjt;Us.prototype.delete=t_t;Us.prototype.get=e_t;Us.prototype.has=n_t;Us.prototype.set=r_t;var o_t="Expected a function";function A_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(o_t);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(A_.Cache||Us),n}A_.Cache=Us;var i_t=500;function a_t(e){var t=A_(e,function(r){return n.size===i_t&&n.clear(),r}),n=t.cache;return t}var s_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c_t=/\\(\\)?/g,u_t=a_t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(s_t,function(n,r,o,i){t.push(o?i.replace(c_t,"$1"):r||n)}),t});const l_t=u_t;function f_t(e){return e==null?"":OV(e)}function LV(e,t){return Bi(e)?e:P_(e,t)?[e]:l_t(f_t(e))}var d_t=1/0;function f1(e){if(typeof e=="string"||j_(e))return e;var t=e+"";return t=="0"&&1/e==-d_t?"-0":t}function zV(e,t){t=LV(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[f1(t[n++])];return n&&n==r?e:void 0}function h_t(e,t,n){var r=e==null?void 0:zV(e,t);return r===void 0?n:r}function BV(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var p_t=DV(Object.getPrototypeOf,Object);const T_=p_t;var v_t="[object Object]",m_t=Function.prototype,g_t=Object.prototype,FV=m_t.toString,y_t=g_t.hasOwnProperty,b_t=FV.call(Object);function HV(e){if(!ss(e)||tl(e)!=v_t)return!1;var t=T_(e);if(t===null)return!0;var n=y_t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&FV.call(n)==b_t}function w_t(){this.__data__=new Ws,this.size=0}function x_t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function k_t(e){return this.__data__.get(e)}function j_t(e){return this.__data__.has(e)}var __t=200;function $_t(e,t){var n=this.__data__;if(n instanceof Ws){var r=n.__data__;if(!Yh||r.length<__t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Us(r)}return n.set(e,t),this.size=n.size,this}function ga(e){var t=this.__data__=new Ws(e);this.size=t.size}ga.prototype.clear=w_t;ga.prototype.delete=x_t;ga.prototype.get=k_t;ga.prototype.has=j_t;ga.prototype.set=$_t;function S_t(e,t){return e&&td(t,Op(t),e)}function C_t(e,t){return e&&td(t,ed(t),e)}var VV=typeof exports=="object"&&exports&&!exports.nodeType&&exports,l7=VV&&typeof module=="object"&&module&&!module.nodeType&&module,E_t=l7&&l7.exports===VV,f7=E_t?fs.Buffer:void 0,d7=f7?f7.allocUnsafe:void 0;function qV(e,t){if(t)return e.slice();var n=e.length,r=d7?d7(n):new e.constructor(n);return e.copy(r),r}function O_t(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function WV(){return[]}var M_t=Object.prototype,P_t=M_t.propertyIsEnumerable,h7=Object.getOwnPropertySymbols,A_t=h7?function(e){return e==null?[]:(e=Object(e),O_t(h7(e),function(t){return P_t.call(e,t)}))}:WV;const R_=A_t;function T_t(e,t){return td(e,R_(e),t)}var R_t=Object.getOwnPropertySymbols,I_t=R_t?function(e){for(var t=[];e;)BV(t,R_(e)),e=T_(e);return t}:WV;const UV=I_t;function N_t(e,t){return td(e,UV(e),t)}function KV(e,t,n){var r=t(e);return Bi(e)?r:BV(r,n(e))}function zx(e){return KV(e,Op,R_)}function D_t(e){return KV(e,ed,UV)}var L_t=nl(fs,"DataView");const Bx=L_t;var z_t=nl(fs,"Promise");const Fx=z_t;var B_t=nl(fs,"Set");const Hx=B_t;var p7="[object Map]",F_t="[object Object]",v7="[object Promise]",m7="[object Set]",g7="[object WeakMap]",y7="[object DataView]",H_t=el(Bx),V_t=el(Yh),q_t=el(Fx),W_t=el(Hx),U_t=el(Lx),au=tl;(Bx&&au(new Bx(new ArrayBuffer(1)))!=y7||Yh&&au(new Yh)!=p7||Fx&&au(Fx.resolve())!=v7||Hx&&au(new Hx)!=m7||Lx&&au(new Lx)!=g7)&&(au=function(e){var t=tl(e),n=t==F_t?e.constructor:void 0,r=n?el(n):"";if(r)switch(r){case H_t:return y7;case V_t:return p7;case q_t:return v7;case W_t:return m7;case U_t:return g7}return t});const Zh=au;var K_t=Object.prototype,J_t=K_t.hasOwnProperty;function G_t(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&J_t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Q_t=fs.Uint8Array;const Kg=Q_t;function I_(e){var t=new e.constructor(e.byteLength);return new Kg(t).set(new Kg(e)),t}function Y_t(e,t){var n=t?I_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Z_t=/\w*$/;function X_t(e){var t=new e.constructor(e.source,Z_t.exec(e));return t.lastIndex=e.lastIndex,t}var b7=as?as.prototype:void 0,w7=b7?b7.valueOf:void 0;function t$t(e){return w7?Object(w7.call(e)):{}}function JV(e,t){var n=t?I_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var e$t="[object Boolean]",n$t="[object Date]",r$t="[object Map]",o$t="[object Number]",i$t="[object RegExp]",a$t="[object Set]",s$t="[object String]",c$t="[object Symbol]",u$t="[object ArrayBuffer]",l$t="[object DataView]",f$t="[object Float32Array]",d$t="[object Float64Array]",h$t="[object Int8Array]",p$t="[object Int16Array]",v$t="[object Int32Array]",m$t="[object Uint8Array]",g$t="[object Uint8ClampedArray]",y$t="[object Uint16Array]",b$t="[object Uint32Array]";function w$t(e,t,n){var r=e.constructor;switch(t){case u$t:return I_(e);case e$t:case n$t:return new r(+e);case l$t:return Y_t(e,n);case f$t:case d$t:case h$t:case p$t:case v$t:case m$t:case g$t:case y$t:case b$t:return JV(e,n);case r$t:return new r;case o$t:case s$t:return new r(e);case i$t:return X_t(e);case a$t:return new r;case c$t:return t$t(e)}}function GV(e){return typeof e.constructor=="function"&&!E_(e)?d2t(T_(e)):{}}var x$t="[object Map]";function k$t(e){return ss(e)&&Zh(e)==x$t}var x7=Pf&&Pf.isMap,j$t=x7?O_(x7):k$t;const _$t=j$t;var $$t="[object Set]";function S$t(e){return ss(e)&&Zh(e)==$$t}var k7=Pf&&Pf.isSet,C$t=k7?O_(k7):S$t;const E$t=C$t;var O$t=1,M$t=2,P$t=4,QV="[object Arguments]",A$t="[object Array]",T$t="[object Boolean]",R$t="[object Date]",I$t="[object Error]",YV="[object Function]",N$t="[object GeneratorFunction]",D$t="[object Map]",L$t="[object Number]",ZV="[object Object]",z$t="[object RegExp]",B$t="[object Set]",F$t="[object String]",H$t="[object Symbol]",V$t="[object WeakMap]",q$t="[object ArrayBuffer]",W$t="[object DataView]",U$t="[object Float32Array]",K$t="[object Float64Array]",J$t="[object Int8Array]",G$t="[object Int16Array]",Q$t="[object Int32Array]",Y$t="[object Uint8Array]",Z$t="[object Uint8ClampedArray]",X$t="[object Uint16Array]",tSt="[object Uint32Array]",rr={};rr[QV]=rr[A$t]=rr[q$t]=rr[W$t]=rr[T$t]=rr[R$t]=rr[U$t]=rr[K$t]=rr[J$t]=rr[G$t]=rr[Q$t]=rr[D$t]=rr[L$t]=rr[ZV]=rr[z$t]=rr[B$t]=rr[F$t]=rr[H$t]=rr[Y$t]=rr[Z$t]=rr[X$t]=rr[tSt]=!0;rr[I$t]=rr[YV]=rr[V$t]=!1;function Sm(e,t,n,r,o,i){var a,s=t&O$t,c=t&M$t,u=t&P$t;if(n&&(a=o?n(e,r,o,i):n(e)),a!==void 0)return a;if(!ds(e))return e;var l=Bi(e);if(l){if(a=G_t(e),!s)return MV(e,a)}else{var f=Zh(e),d=f==YV||f==N$t;if(Gh(e))return qV(e,s);if(f==ZV||f==QV||d&&!o){if(a=c||d?{}:GV(e),!s)return c?N_t(e,C_t(a,e)):T_t(e,S_t(a,e))}else{if(!rr[f])return o?e:{};a=w$t(e,f,s)}}i||(i=new ga);var h=i.get(e);if(h)return h;i.set(e,a),E$t(e)?e.forEach(function(m){a.add(Sm(m,t,n,m,e,i))}):_$t(e)&&e.forEach(function(m,g){a.set(g,Sm(m,t,n,g,e,i))});var p=u?c?D_t:zx:c?ed:Op,v=l?void 0:p(e);return _2t(v||e,function(m,g){v&&(g=m,m=e[g]),PV(a,g,Sm(m,t,n,g,e,i))}),a}var eSt=1,nSt=4;function rSt(e){return Sm(e,eSt|nSt)}var oSt="__lodash_hash_undefined__";function iSt(e){return this.__data__.set(e,oSt),this}function aSt(e){return this.__data__.has(e)}function Jg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Us;++t<n;)this.add(e[t])}Jg.prototype.add=Jg.prototype.push=iSt;Jg.prototype.has=aSt;function sSt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function cSt(e,t){return e.has(t)}var uSt=1,lSt=2;function XV(e,t,n,r,o,i){var a=n&uSt,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),l=i.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=n&lSt?new Jg:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var m=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!sSt(t,function(g,y){if(!cSt(h,y)&&(p===g||o(p,g,n,r,i)))return h.push(y)})){d=!1;break}}else if(!(p===v||o(p,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function fSt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function dSt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var hSt=1,pSt=2,vSt="[object Boolean]",mSt="[object Date]",gSt="[object Error]",ySt="[object Map]",bSt="[object Number]",wSt="[object RegExp]",xSt="[object Set]",kSt="[object String]",jSt="[object Symbol]",_St="[object ArrayBuffer]",$St="[object DataView]",j7=as?as.prototype:void 0,rb=j7?j7.valueOf:void 0;function SSt(e,t,n,r,o,i,a){switch(n){case $St:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _St:return!(e.byteLength!=t.byteLength||!i(new Kg(e),new Kg(t)));case vSt:case mSt:case bSt:return Ep(+e,+t);case gSt:return e.name==t.name&&e.message==t.message;case wSt:case kSt:return e==t+"";case ySt:var s=fSt;case xSt:var c=r&hSt;if(s||(s=dSt),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=pSt,a.set(e,t);var l=XV(s(e),s(t),r,o,i,a);return a.delete(e),l;case jSt:if(rb)return rb.call(e)==rb.call(t)}return!1}var CSt=1,ESt=Object.prototype,OSt=ESt.hasOwnProperty;function MSt(e,t,n,r,o,i){var a=n&CSt,s=zx(e),c=s.length,u=zx(t),l=u.length;if(c!=l&&!a)return!1;for(var f=c;f--;){var d=s[f];if(!(a?d in t:OSt.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var m=a;++f<c;){d=s[f];var g=e[d],y=t[d];if(r)var b=a?r(y,g,d,t,e,i):r(g,y,d,e,t,i);if(!(b===void 0?g===y||o(g,y,n,r,i):b)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var w=e.constructor,k=t.constructor;w!=k&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof k=="function"&&k instanceof k)&&(v=!1)}return i.delete(e),i.delete(t),v}var PSt=1,_7="[object Arguments]",$7="[object Array]",Qv="[object Object]",ASt=Object.prototype,S7=ASt.hasOwnProperty;function TSt(e,t,n,r,o,i){var a=Bi(e),s=Bi(t),c=a?$7:Zh(e),u=s?$7:Zh(t);c=c==_7?Qv:c,u=u==_7?Qv:u;var l=c==Qv,f=u==Qv,d=c==u;if(d&&Gh(e)){if(!Gh(t))return!1;a=!0,l=!1}if(d&&!l)return i||(i=new ga),a||M_(e)?XV(e,t,n,r,o,i):SSt(e,t,c,n,r,o,i);if(!(n&PSt)){var h=l&&S7.call(e,"__wrapped__"),p=f&&S7.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,m=p?t.value():t;return i||(i=new ga),o(v,m,n,r,i)}}return d?(i||(i=new ga),MSt(e,t,n,r,o,i)):!1}function N_(e,t,n,r,o){return e===t?!0:e==null||t==null||!ss(e)&&!ss(t)?e!==e&&t!==t:TSt(e,t,n,r,N_,o)}var RSt=1,ISt=2;function NSt(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var c=s[0],u=e[c],l=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var f=new ga;if(r)var d=r(u,l,c,e,t,f);if(!(d===void 0?N_(l,u,RSt|ISt,r,f):d))return!1}}return!0}function tq(e){return e===e&&!ds(e)}function DSt(e){for(var t=Op(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,tq(o)]}return t}function eq(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function LSt(e){var t=DSt(e);return t.length==1&&t[0][2]?eq(t[0][0],t[0][1]):function(n){return n===e||NSt(n,e,t)}}function zSt(e,t){return e!=null&&t in Object(e)}function BSt(e,t,n){t=LV(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=f1(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&C_(o)&&S_(a,o)&&(Bi(e)||Ug(e)))}function FSt(e,t){return e!=null&&BSt(e,t,zSt)}var HSt=1,VSt=2;function qSt(e,t){return P_(e)&&tq(t)?eq(f1(e),t):function(n){var r=h_t(n,e);return r===void 0&&r===t?FSt(n,e):N_(t,r,HSt|VSt)}}function WSt(e){return function(t){return t?.[e]}}function USt(e){return function(t){return zV(t,e)}}function KSt(e){return P_(e)?WSt(f1(e)):USt(e)}function JSt(e){return typeof e=="function"?e:e==null?__:typeof e=="object"?Bi(e)?qSt(e[0],e[1]):LSt(e):KSt(e)}function GSt(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var QSt=GSt();const nq=QSt;function YSt(e,t){return e&&nq(e,t,Op)}function Vx(e,t,n){(n!==void 0&&!Ep(e[t],n)||n===void 0&&!(t in e))&&s1(e,t,n)}function ZSt(e){return ss(e)&&c1(e)}function qx(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function XSt(e){return td(e,ed(e))}function tCt(e,t,n,r,o,i,a){var s=qx(e,n),c=qx(t,n),u=a.get(c);if(u){Vx(e,n,u);return}var l=i?i(s,c,n+"",e,t,a):void 0,f=l===void 0;if(f){var d=Bi(c),h=!d&&Gh(c),p=!d&&!h&&M_(c);l=c,d||h||p?Bi(s)?l=s:ZSt(s)?l=MV(s):h?(f=!1,l=qV(c,!0)):p?(f=!1,l=JV(c,!0)):l=[]:HV(c)||Ug(c)?(l=s,Ug(s)?l=XSt(s):(!ds(s)||$_(s))&&(l=GV(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),Vx(e,n,l)}function rq(e,t,n,r,o){e!==t&&nq(t,function(i,a){if(o||(o=new ga),ds(i))tCt(e,t,a,n,rq,r,o);else{var s=r?r(qx(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Vx(e,a,s)}},ed)}var eCt=AV(function(e,t,n,r){rq(e,t,n,r)});const nCt=eCt;function rCt(e,t){var n={};return t=JSt(t),YSt(e,function(r,o,i){s1(n,t(r,o,i),r)}),n}var Gg=function(){return Gg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gg.apply(this,arguments)};function oCt(e){return e.toLowerCase()}var iCt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],aCt=/[^A-Z0-9]+/gi;function sCt(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?iCt:n,o=t.stripRegexp,i=o===void 0?aCt:o,a=t.transform,s=a===void 0?oCt:a,c=t.delimiter,u=c===void 0?" ":c,l=C7(C7(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;l.charAt(f)==="\0";)f++;for(;l.charAt(d-1)==="\0";)d--;return l.slice(f,d).split("\0").map(s).join(u)}function C7(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function oq(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function cCt(e,t){return t===void 0&&(t={}),sCt(e,Gg({delimiter:"",transform:oq},t))}function uCt(e,t){return t===0?e.toLowerCase():oq(e,t)}function lCt(e,t){return t===void 0&&(t={}),cCt(e,Gg({transform:uCt},t))}function fCt(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const dCt=fCt("String,Number,Boolean,Function,Symbol,BigInt");function hCt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function pCt(e,t){let n;const r=hCt(t);if(dCt(r)){const o=typeof e;n=o===r.toLowerCase(),!n&&o==="object"&&(n=e instanceof t)}else r==="Object"?n=ds(e):r==="Array"?n=Array.isArray(e):r==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:r}}function vCt({prop:e,type:t,validator:n}){if(![void 0,null].includes(e)&&t){let r=!1;const o=Array.isArray(t)?t:[t],i=[];for(let a=0;a<o.length&&!r;a++){const{valid:s,expectedType:c}=pCt(e,o[a]);i.push(c||""),r=s}if(!r)throw new Error(`Invalid prop: type check failed, expecting [${i.join(", ")}], receiving: ${e}`)}if(n&&!n(e))throw new Error(`Invalid prop: validator check failed, receiving: ${e}`)}function mCt(e,{mergeObject:t,mergeFunction:n}){const r=[];for(let i=e.length-1;i>=0;i--)r.push(e[i]);const o=n?(i,a)=>typeof i=="function"&&typeof a=="function"?n(a,i):void 0:void 0;return t==="deep"?nCt(...r,o):Ojt(...r,o)}function gCt(e,{mergeFunction:t}){return e.reduce(t,()=>{})}function yl(e,t={}){const{type:n,default:r,defaultIsDynamic:o=!1,required:i=!1,validator:a,camelizeObjectKeys:s=!1,mergeObjectApplyOnlyToDefault:c=!1,mergeFunctionApplyOnlyToDefault:u=!0}=t;let{mergeObject:l="deep",mergeFunction:f=!1}=t;const d=[];let h,p=!1,v=!1;const m=g=>{if(g!==void 0){vCt({type:n,prop:g,validator:a});const y=HV(g),b=typeof g=="function";return p=y,v=b,y?(g=rSt(g),s?rCt(g,(w,k)=>lCt(k,{stripRegexp:/-/g})):g):g}};for(const g of e)d.push(m(g));if(!o)d.push(m(r));else if(typeof r!="function")throw new TypeError(`Invalid option: config.default should be Function when config.defaultIsDynamic enabled, receiving: ${r}`);p||(l=!1,v||(f=!1));for(let g=0;g<d.length;g++){const y=d[g];if(y!==void 0){g===d.length-1?h=y:l?h=mCt(c?[y,r]:d,{mergeObject:l,mergeFunction:f}):f?h=gCt(u?[y,r]:d,{mergeFunction:f}):h=y;break}}if(i&&[void 0,null].includes(h))throw new Error("Missing required prop");return o?yl(e,{...t,default:r(h),defaultIsDynamic:!1}):h}function E7(e){const t=Array.from(e);return t[0]=t[0].toUpperCase(),t.unshift("n"),t.unshift("o"),t.join("")}function yCt(e,t=[]){const n={props:{},attrs:{},listeners:{},hooks:{},slots:{}},r=Array.isArray(t)?t:Object.keys(t);for(const o in e)if(o.startsWith("@")){const i=o.substring(1);i.startsWith("vnode")?n.hooks[E7(i)]=e[o]:n.listeners[E7(i)]=e[o]}else if(o.startsWith("#")){const i=o.substring(1);i&&(n.slots[i]=e[o])}else r.includes(o)?n.props[o]=e[o]:n.attrs[o]=e[o];return n}var bCt=typeof global=="object"&&global&&global.Object===Object&&global;const wCt=bCt;var xCt=typeof self=="object"&&self&&self.Object===Object&&self,kCt=wCt||xCt||Function("return this")();const iq=kCt;var jCt=iq.Symbol;const Qg=jCt;var aq=Object.prototype,_Ct=aq.hasOwnProperty,$Ct=aq.toString,_d=Qg?Qg.toStringTag:void 0;function SCt(e){var t=_Ct.call(e,_d),n=e[_d];try{e[_d]=void 0;var r=!0}catch{}var o=$Ct.call(e);return r&&(t?e[_d]=n:delete e[_d]),o}var CCt=Object.prototype,ECt=CCt.toString;function OCt(e){return ECt.call(e)}var MCt="[object Null]",PCt="[object Undefined]",O7=Qg?Qg.toStringTag:void 0;function ACt(e){return e==null?e===void 0?PCt:MCt:O7&&O7 in Object(e)?SCt(e):OCt(e)}function TCt(e){return e!=null&&typeof e=="object"}var RCt="[object Symbol]";function ICt(e){return typeof e=="symbol"||TCt(e)&&ACt(e)==RCt}var NCt=/\s/;function DCt(e){for(var t=e.length;t--&&NCt.test(e.charAt(t)););return t}var LCt=/^\s+/;function zCt(e){return e&&e.slice(0,DCt(e)+1).replace(LCt,"")}function Wx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var M7=0/0,BCt=/^[-+]0x[0-9a-f]+$/i,FCt=/^0b[01]+$/i,HCt=/^0o[0-7]+$/i,VCt=parseInt;function P7(e){if(typeof e=="number")return e;if(ICt(e))return M7;if(Wx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zCt(e);var n=FCt.test(e);return n||HCt.test(e)?VCt(e.slice(2),n?2:8):BCt.test(e)?M7:+e}var qCt=function(){return iq.Date.now()};const ob=qCt;var WCt="Expected a function",UCt=Math.max,KCt=Math.min;function JCt(e,t,n){var r,o,i,a,s,c,u=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(WCt);t=P7(t)||0,Wx(n)&&(l=!!n.leading,f="maxWait"in n,i=f?UCt(P7(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(x){var O=r,_=o;return r=o=void 0,u=x,a=e.apply(_,O),a}function p(x){return u=x,s=setTimeout(g,t),l?h(x):a}function v(x){var O=x-c,_=x-u,M=t-O;return f?KCt(M,i-_):M}function m(x){var O=x-c,_=x-u;return c===void 0||O>=t||O<0||f&&_>=i}function g(){var x=ob();if(m(x))return y(x);s=setTimeout(g,v(x))}function y(x){return s=void 0,d&&r?h(x):(r=o=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function w(){return s===void 0?a:y(ob())}function k(){var x=ob(),O=m(x);if(r=arguments,o=this,c=x,O){if(s===void 0)return p(c);if(f)return clearTimeout(s),s=setTimeout(g,t),h(c)}return s===void 0&&(s=setTimeout(g,t)),a}return k.cancel=b,k.flush=w,k}const GCt="JsonEditorVue",Yv="modelValue",A7="update:modelValue",Zv=["mainMenuBar","navigationBar","statusBar","askToFormat","readOnly","escapeControlCharacters","escapeUnicodeCharacters","flattenColumns"],sq=Bo({name:GCt,props:{[Yv]:{},mode:{type:String},...Object.fromEntries(Zv.map(e=>[e,{type:Boolean,default:void 0}]))},emits:{[A7](e){return!0},"update:mode":function(e){return!0}},setup(e,{attrs:t,emit:n,expose:r}){var o;const i=(o=cs())==null?void 0:o.proxy,a=Tn(),s=Tn(!1),c=Tn(!1),u=yl([e.mode,Cm.mode],{type:String}),l=yl([e[Yv],Cm[Yv]]),f=Object.fromEntries(Array.from(Zv,m=>[m,yl([e[m],Cm[m]])]).filter(([,m])=>m!==void 0)),d=JCt(m=>{if(c.value){c.value=!1;return}s.value=!0,n(A7,m.text===void 0?m.json:m.text)},100),h=m=>{n("update:mode",m)},p=(m,g)=>(...y)=>{m(...y),g(...y)},v=yl([t,cq,{onChange:d,onChangeMode:h,mode:u,...f,...l!==void 0&&{content:{json:l}}}],{type:Object,mergeFunction:p});return no(()=>e[Yv],m=>{var g;if(s.value){s.value=!1;return}c.value=!0,(g=a.value)==null||g.update([void 0,""].includes(m)?{text:""}:{json:m})},{deep:!0}),no(()=>e.mode,m=>{var g;(g=a.value)==null||g.updateProps({mode:m})}),no(()=>Array.from(Zv,m=>e[m]),m=>{a.value.updateProps(Object.fromEntries(Array.from(m,(g,y)=>[Zv[y],g]).filter(([,g])=>g!==void 0)))}),no(()=>t,m=>{const g={};m.onChange&&(g.onChange=d),m.onChangeMode&&(g.onChangeMode=h),a.value.updateProps(Object.getOwnPropertyNames(g).length>0?yl([m,g],{type:Object,mergeFunction:p}):m)},{deep:!0}),r?.({jsonEditor:a}),nf(()=>{a.value.destroy()}),Ku(()=>{a.value=new wwt({target:i?.$refs.jsonEditorRef,props:v}),r||(r=m=>{for(const g in m)i[g]=Ie(m[g])},r({jsonEditor:a}))}),()=>Do("div",{ref:"jsonEditorRef"})}}),Cm={},cq={};function QCt(e){return e.install=(t,n={})=>{const{props:r,attrs:o}=yCt(n,sq.props);Object.assign(Cm,r),Object.assign(cq,o),t.component(e.name,e)},e}const YCt=QCt(sq);const ZCt={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map((r,o)=>(r.size=o===t?r.max:r.min,o!==t&&(n+=r.min),r)),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),o=100-(this.pushOtherPanes?0:n.nextPanesSize),i=Math.max(Math.min(this.getCurrentDragPercentage(e),o),r);let a=[t,t+1],s=this.panes[a[0]]||null,c=this.panes[a[1]]||null;const u=s.max<100&&i>=s.max+n.prevPanesSize,l=c.max<100&&i<=100-(c.max+this.sumNextPanesSize(t+1));if(u||l){u?(s.size=s.max,c.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-c.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),c.size=c.max);return}if(this.pushOtherPanes){const f=this.doPushOtherPanes(n,i);if(!f)return;({sums:n,panesToResize:a}=f),s=this.panes[a[0]]||null,c=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(i-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),c!==null&&(c.size=Math.min(Math.max(100-i-n.nextPanesSize-n.nextReachedMinPanes,c.min),c.max))},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t<e.prevPanesSize+this.panes[r[0]].min&&(r[0]=this.findPrevExpandedPane(n).index,e.prevReachedMinPanes=0,r[0]<n&&this.panes.forEach((o,i)=>{i>r[0]&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),e.prevPanesSize=this.sumPrevPanesSize(r[0]),r[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((o,i)=>{i>0&&i<=n&&(o.size=o.min,e.prevReachedMinPanes+=o.min)}),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach((o,i)=>{i>n&&i<r[1]&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),e.nextPanesSize=this.sumNextPanesSize(r[1]-1),r[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((o,i)=>{i<this.panesCount-1&&i>=n+1&&(o.size=o.min,e.nextReachedMinPanes+=o.min)}),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r<e?n.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,n,r)=>t+(r>e+1?n.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");!t&&!n&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,n=!1){const r=e-1,o=document.createElement("div");o.classList.add("splitpanes__splitter"),n||(o.onmousedown=i=>this.onMouseDown(i,r),typeof window<"u"&&"ontouchstart"in window&&(o.ontouchstart=i=>this.onMouseDown(i,r)),o.onclick=i=>this.onSplitterClick(i,r+1)),this.dblClickSplitter&&(o.ondblclick=i=>this.onSplitterDblClick(i,r+1)),t.parentNode.insertBefore(o,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(n=>{n.className.includes("splitpanes__splitter")&&this.removeSplitter(n)});let t=0;e.forEach(n=>{n.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,n,!0):t&&this.addSplitter(t,n),t++)})},requestUpdate({target:e,...t}){const n=this.indexedPanes[e._.uid];Object.entries(t).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(o=>(o.className.includes("splitpanes__pane")&&t++,o===e.$el));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((o,i)=>o.index=i),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(r=>r.id===e._.uid),n=this.panes.splice(t,1)[0];this.panes.forEach((r,o)=>r.index=o),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...n,index:t}}),this.$emit("pane-remove",{removed:n,panes:this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const n=[],r=[];this.panes.forEach(o=>{o.size=Math.max(Math.min(e,o.max),o.min),t-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){let e=100;const t=[],n=[];let r=0;this.panes.forEach(i=>{e-=i.size,i.size!==null&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)});let o=100;e>.1&&(this.panes.forEach(i=>{i.size===null&&(i.size=Math.max(Math.min(e/(this.panesCount-r),i.max),i.min)),o-=i.size}),o>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0;const o=[],i=[];e&&e.givenSize!==null&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),!(Math.abs(r)<.1)&&(this.panes.forEach(a=>{e&&e.givenSize!==null&&e.id===a.id||(a.size=Math.max(Math.min(n,a.max),a.min)),r-=a.size,a.size>=a.max&&o.push(a.id),a.size<=a.min&&i.push(a.id)}),r>.1&&this.readjustSizes(r,o,i))},readjustSizes(e,t,n){let r;e>0?r=e/(this.panesCount-t.length):r=e/(this.panesCount-n.length),this.panes.forEach((o,i)=>{if(e>0&&!t.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}else if(!n.includes(o.id)){const a=Math.max(Math.min(o.size+r,o.max),o.min),s=a-o.size;e-=s,o.size=a}o.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[o.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,n)=>{t.ondblclick=e?r=>this.onSplitterDblClick(r,n):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return Do("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},XCt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},t3t={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function e3t(e,t,n,r,o,i){return Ln(),ri("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=a=>i.onPaneClick(a,e._.uid)),style:Wu(e.style)},[Pu(e.$slots,"default")],4)}const T7=XCt(t3t,[["render",e3t]]),n3t="2.0.7";let bl;const $d=[];function r3t(e){if($d.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&$d.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&$d.forEach(n=>n(t))},get(){return bl.value},configurable:!0}),()=>{$d.splice($d.indexOf(e),1)}}function o3t(){bl||(bl=ef(),r3t(e));function e(t){bl.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",()=>{tW(bl)})}return bl}const R7=o3t();const i3t={class:"flex-row flex h-screen"},a3t={class:"border-r-1 border-light-400 dark:border-dark-400 dark:bg-dark-900 dark:text-light bg-white text-dark-800 flex flex-col justify-between h-screen z-5"},s3t={class:"flex-grow hidden md:block"},c3t={class:"py-3 w-full flex items-start px-5 justify-between space-x-5"},u3t=Qn("h1",{class:"text-base w-40"}," OG Image Playground ",-1),l3t=Qn("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),f3t={class:"py-7 px-5 text-sm flex flex-col space-y-3"},d3t=Qn("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),h3t={key:0,class:"py-7 px-5 text-sm flex flex-col space-y-3"},p3t={class:"p-3 text-gray-400 text-sm text-center"},v3t={class:"mx-auto flex flex-col w-full bg-white dark:bg-black max-h-screen overflow-hidden dark:bg-dark-700 bg-light-200"},m3t={class:"py-9px dark:bg-dark-800 bg-light-200 px-10 opacity-80 flex items-center max-w-full block space-x-5"},g3t={class:"text-sm flex items-center space-x-5"},y3t=Qn("div",{class:"text-xs opacity-40"}," Path ",-1),b3t={class:"flex items-center space-x-1"},w3t={key:0,class:"text-xs opacity-70"},x3t=Qn("hr",{class:"border-1 border-light-400 dark:border-dark-400"},null,-1),k3t=Qn("h2",{class:"font-semibold text-lg mb-5"}," Props ",-1),j3t={class:"relative"},_3t={key:0,class:"absolute top-1 right-1 text-10px ml-1 bg-blue-100 text-blue-700 px-1 py-2px rounded"},$3t={key:0,class:"text-xs p-2 text-gray-300"},S3t=Bo({__name:"app",async setup(e){let t,n;FJ({title:"OG Image Playground"});const r=sr(()=>!!R7.value),o=sr(()=>R7.value?.host.nuxt.vueApp.config?.globalProperties?.$route?.path||void 0);Ha.value=o.value||Od().query.path||"/",oN.value=Od().query.base||"/",no(()=>o.value,d=>{Md.value={},ou.value=!1,Ha.value=d});const i=sr(()=>Od().path!=="/vnodes"&&Od().path!=="/options"),a=([t,n]=db(()=>_S()),t=await t,n(),t);no(a,d=>{Wp.value=Ie(d),d={...Ie(d)},delete d.path,delete d.cache,delete d.cacheTtl,delete d.component,delete d.provider,delete d.componentHash,A1.value=d},{immediate:!0});const s=Rk(d=>{Md.value={},ou.value=!1,Ha.value=d.target.value,Pd()},1e3),c=PI();function u(d){Md.value=d,ou.value=!0,Pd()}const l=sr(()=>c.value==="dark");async function f(d=!0){d&&await _S(),Md.value={},ou.value=!1;const h={...Wp.value};delete h.path,delete h.cache,delete h.cacheTtl,delete h.component,delete h.provider,delete h.componentHash,A1.value=h,d&&Pd()}return[t,n]=db(()=>f(!1)),await t,n(),(d,h)=>{const p=$k,v=VQ,m=JQ,g=GI,y=OI,b=uZ,w=pZ;return Ln(),ri("div",i3t,[Qn("header",a3t,[Qn("div",s3t,[Qn("div",c3t,[u3t,Ie(r)?Ta("",!0):(Ln(),go(m,{key:0},{default:to(({toggle:k})=>[Ze(v,{n:"borderless lg m-0","p-0":"",op50:"",onClick:k},{default:to(()=>[Ze(p,{icon:"dark:carbon-moon carbon-sun"})]),_:2},1032,["onClick"])]),_:1}))]),l3t,Qn("div",f3t,[Ze(y,{to:"/",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:image-search",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Template HTML ",2)]),_:1}),Ie(Wp)?.provider==="satori"?(Ln(),go(y,{key:0,to:"/svg",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:svg",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Preview SVG ",2)]),_:1})):Ta("",!0),Ze(y,{to:"/png",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:png",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Preview PNG ",2)]),_:1}),Ze(y,{to:"/options",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:operations-record",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," Options ",2)]),_:1}),Ze(y,{to:"/vnodes",class:"transition-all hover:ml-1 whitespace-nowrap"},{default:to(({isActive:k})=>[Ze(g,{name:"carbon:ibm-cloud-pak-manta-automated-data-lineage",class:Vr(["mr-1",[k?"opacity-90":"opacity-60"]])},null,8,["class"]),Qn("span",{class:Vr([k?"underline":"opacity-60"])}," vNodes ",2)]),_:1})]),d3t,Ie(i)?(Ln(),ri("div",h3t,[Ie(ol)!==504?(Ln(),ri("div",{key:0,onClick:h[0]||(h[0]=k=>ol.value=504)},[Ze(v,null,{default:to(()=>[Ze(g,{name:"carbon:mobile"}),vu(" Small ")]),_:1})])):Ta("",!0),Ie(ol)!==null?(Ln(),ri("div",{key:1,onClick:h[1]||(h[1]=k=>ol.value=null)},[Ze(v,null,{default:to(()=>[Ze(g,{name:"carbon:laptop"}),vu(" Full width ")]),_:1})])):Ta("",!0),Qn("div",null,[Ze(v,{onClick:Ie(Pd)},{default:to(()=>[vu(" Refresh ")]),_:1},8,["onClick"])])])):Ta("",!0)]),Qn("div",p3t," v"+Xv(Ie(n3t)),1)]),Qn("main",v3t,[Qn("div",m3t,[Qn("div",g3t,[y3t,Qn("div",b3t,[Ze(b,{"model-value":Ie(Ha),placeholder:"Search...",n:"primary",onInput:Ie(s)},null,8,["model-value","onInput"])])]),Ie(jS)?(Ln(),ri("div",w3t,Xv(Ie(jS)),1)):Ta("",!0)]),x3t,Qn("div",{class:"h-full max-h-full overflow-hidden lg:p-5 p-2",style:Wu({width:Ie(ol)&&Ie(i)?`${Ie(ol)}px`:"100%"})},[Ze(Ie(ZCt),{class:"default-theme",onResize:Ie(RZ)},{default:to(()=>[Ze(Ie(T7),{size:"80"},{default:to(()=>[Ze(w)]),_:1}),Ze(Ie(T7),{size:"20"},{default:to(()=>[k3t,Qn("div",j3t,[Ze(Ie(YCt),{"model-value":Ie(A1),class:Vr(Ie(l)?["jse-theme-dark"]:[]),"main-menu-bar":!1,"navigation-bar":!1,"onUpdate:modelValue":u},null,8,["model-value","class"]),Ie(ou)?(Ln(),ri("span",_3t,"modified")):Ta("",!0)]),Ie(ou)?(Ln(),ri("div",$3t,[Qn("div",null,[vu(" Update "+Xv(Ie(Wp).component)+" to persist the changes. ",1),Qn("button",{type:"button",class:"underline",onClick:h[2]||(h[2]=k=>f(!0))}," Reset ")])])):Ta("",!0)]),_:1})]),_:1},8,["onResize"])],4)])])}}});const C3t={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(`
142
142
  `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
143
- `);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),a=n.message||n.toString(),s=void 0,l=o?Im(()=>za(()=>import("./error-404.0a0b8ce2.js"),["./error-404.0a0b8ce2.js","./error-404.f3dd5020.css"],import.meta.url).then(f=>f.default||f)):Im(()=>za(()=>import("./error-500.20847d33.js"),["./error-500.20847d33.js","./error-500.06915589.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(Ln(),go(Ie(l),B7(pk({statusCode:Ie(r),statusMessage:Ie(i),description:Ie(a),stack:Ie(s)})),null,16))}},I7={__name:"nuxt-root",setup(e){const t=()=>null,n=cr(),r=n.deferHydration(),o=!1;Dl(c0,Od()),n.hooks.callHookWith(s=>s.map(c=>c()),"vue:setup");const i=u0();k9((s,c,u)=>{if(n.hooks.callHook("vue:error",s,c,u).catch(l=>console.error("[nuxt] Error in `vue:error` hook",l)),iG(s)&&(s.fatal||s.unhandled))return n.runWithContext(()=>wl(s)),!1});const{islandContext:a}=!1;return(s,c)=>(Ln(),go(f9,{onResolve:Ie(r)},{default:to(()=>[Ie(i)?(Ln(),go(Ie(C3t),{key:0,error:Ie(i)},null,8,["error"])):Ie(a)?(Ln(),go(Ie(t),{key:1,context:Ie(a)},null,8,["context"])):Ie(o)?(Ln(),go(fk(Ie(o)),{key:2})):(Ln(),go(Ie(S3t),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=SK.create({baseURL:EK()}));let N7;{let e;N7=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered||document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?HU(I7):FU(I7),o=FK({vueApp:r});try{await VK(o,HQ)}catch(i){await o.callHook("app:error",i),o.payload.error=o.payload.error||i}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount("#"+qJ),await o.hooks.callHook("app:mounted",r),await Uu()}catch(i){await o.callHook("app:error",i),o.payload.error=o.payload.error||i}return r},e=N7().catch(t=>{console.error("Error while mounting app:",t)})}export{p0 as A,Ik as B,Pd as C,P3t as D,go as E,db as F,A3t as G,M3t as H,IQ as I,MI as _,Qn as a,Ze as b,ri as c,vu as d,OI as e,O3t as f,Bo as g,PI as h,Rk as i,Wp as j,Ku as k,no as l,ol as m,sr as n,Ln as o,E3t as p,jS as q,Tn as r,Wu as s,Xv as t,FJ as u,Ie as v,to as w,Y9 as x,Md as y,Ha as z};
143
+ `);const r=Number(n.statusCode||500),o=r===404,i=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),a=n.message||n.toString(),s=void 0,l=o?Im(()=>za(()=>import("./error-404.01ee9ac3.js"),["./error-404.01ee9ac3.js","./error-404.f3dd5020.css"],import.meta.url).then(f=>f.default||f)):Im(()=>za(()=>import("./error-500.f700afa0.js"),["./error-500.f700afa0.js","./error-500.06915589.css"],import.meta.url).then(f=>f.default||f));return(f,d)=>(Ln(),go(Ie(l),B7(pk({statusCode:Ie(r),statusMessage:Ie(i),description:Ie(a),stack:Ie(s)})),null,16))}},I7={__name:"nuxt-root",setup(e){const t=()=>null,n=cr(),r=n.deferHydration(),o=!1;Dl(c0,Od()),n.hooks.callHookWith(s=>s.map(c=>c()),"vue:setup");const i=u0();k9((s,c,u)=>{if(n.hooks.callHook("vue:error",s,c,u).catch(l=>console.error("[nuxt] Error in `vue:error` hook",l)),iG(s)&&(s.fatal||s.unhandled))return n.runWithContext(()=>wl(s)),!1});const{islandContext:a}=!1;return(s,c)=>(Ln(),go(f9,{onResolve:Ie(r)},{default:to(()=>[Ie(i)?(Ln(),go(Ie(C3t),{key:0,error:Ie(i)},null,8,["error"])):Ie(a)?(Ln(),go(Ie(t),{key:1,context:Ie(a)},null,8,["context"])):Ie(o)?(Ln(),go(fk(Ie(o)),{key:2})):(Ln(),go(Ie(S3t),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=SK.create({baseURL:EK()}));let N7;{let e;N7=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered||document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?HU(I7):FU(I7),o=FK({vueApp:r});try{await VK(o,HQ)}catch(i){await o.callHook("app:error",i),o.payload.error=o.payload.error||i}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount("#"+qJ),await o.hooks.callHook("app:mounted",r),await Uu()}catch(i){await o.callHook("app:error",i),o.payload.error=o.payload.error||i}return r},e=N7().catch(t=>{console.error("Error while mounting app:",t)})}export{p0 as A,Ik as B,Pd as C,P3t as D,go as E,db as F,A3t as G,M3t as H,IQ as I,MI as _,Qn as a,Ze as b,ri as c,vu as d,OI as e,O3t as f,Bo as g,PI as h,Rk as i,Wp as j,Ku as k,no as l,ol as m,sr as n,Ln as o,E3t as p,jS as q,Tn as r,Wu as s,Xv as t,FJ as u,Ie as v,to as w,Y9 as x,Md as y,Ha as z};