c/assets/chunks/theme.6qTfjPJt.js

5 lines
65 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.2NFSpAWU.js","assets/chunks/framework.CZKtKhAm.js"])))=>i.map(i=>d[i]);
import{d as _,o as s,c as u,r as c,n as M,a as oe,t as A,b as $,w as v,e as h,T as He,_ as y,u as xe,i as It,f as Et,g as Be,h as L,j as p,k as i,p as j,l as q,m as le,q as Ne,s as z,v as J,x as $e,y as te,z as Oe,A as De,B as Nt,C as Ct,D as ce,F as B,E as K,G as et,H as ye,I as k,J as x,K as tt,L as ve,M as re,N as Le,O as zt,P as ot,Q as Ce,R as Fe,S as nt,U as Pe,V as At,W as Mt,X as at,Y as st,Z as rt,$ as Ht,a0 as Bt,a1 as Ot,a2 as Dt,a3 as Ft,a4 as Gt,a5 as Ut}from"./framework.CZKtKhAm.js";const jt=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(s(),u("span",{class:M(["VPBadge",e.type])},[c(e.$slots,"default",{},()=>[oe(A(e.text),1)])],2))}}),qt={key:0,class:"VPBackdrop"},Rt=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(s(),$(He,{name:"fade"},{default:v(()=>[e.show?(s(),u("div",qt)):h("",!0)]),_:1}))}}),Wt=y(Rt,[["__scopeId","data-v-c79a1216"]]),w=xe;function Kt(o,e){let t,a=!1;return()=>{t&&clearTimeout(t),a?t=setTimeout(o,e):(o(),(a=!0)&&setTimeout(()=>a=!1,e))}}function ze(o){return/^\//.test(o)?o:`/${o}`}function Ge(o){const{pathname:e,search:t,hash:a,protocol:n}=new URL(o,"http://a.com");if(It(o)||o.startsWith("#")||!n.startsWith("http")||!Et(e))return o;const{site:r}=w(),l=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${a}`);return Be(l)}function pe({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:a,theme:n,hash:r}=w(),l=L(()=>{var m,g;return{label:(m=e.value.locales[t.value])==null?void 0:m.label,link:((g=e.value.locales[t.value])==null?void 0:g.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:L(()=>Object.entries(e.value.locales).flatMap(([m,g])=>l.value.label===g.label?[]:{text:g.label,link:Yt(g.link||(m==="root"?"/":`/${m}/`),n.value.i18nRouting!==!1&&o,a.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:l}}function Yt(o,e,t,a){return e?o.replace(/\/$/,"")+ze(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,a?".html":"")):o}const Jt=o=>(j("data-v-d6be1790"),o=o(),q(),o),Xt={class:"NotFound"},Zt={class:"code"},Qt={class:"title"},xt=Jt(()=>p("div",{class:"divider"},null,-1)),eo={class:"quote"},to={class:"action"},oo=["href","aria-label"],no=_({__name:"NotFound",setup(o){const{theme:e}=w(),{currentLang:t}=pe();return(a,n)=>{var r,l,d,m,g;return s(),u("div",Xt,[p("p",Zt,A(((r=i(e).notFound)==null?void 0:r.code)??"404"),1),p("h1",Qt,A(((l=i(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),xt,p("blockquote",eo,A(((d=i(e).notFound)==null?void 0:d.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),p("div",to,[p("a",{class:"link",href:i(Be)(i(t).link),"aria-label":((m=i(e).notFound)==null?void 0:m.linkLabel)??"go to home"},A(((g=i(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,oo)])])}}}),ao=y(no,[["__scopeId","data-v-d6be1790"]]);function it(o,e){if(Array.isArray(o))return ge(o);if(o==null)return[];e=ze(e);const t=Object.keys(o).sort((n,r)=>r.split("/").length-n.split("/").length).find(n=>e.startsWith(ze(n))),a=t?o[t]:[];return Array.isArray(a)?ge(a):ge(a.items,a.base)}function so(o){const e=[];let t=0;for(const a in o){const n=o[a];if(n.items){t=e.push(n);continue}e[t]||e.push({items:[]}),e[t].items.push(n)}return e}function ro(o){const e=[];function t(a){for(const n of a)n.text&&n.link&&e.push({text:n.text,link:n.link,docFooterText:n.docFooterText}),n.items&&t(n.items)}return t(o),e}function Ae(o,e){return Array.isArray(e)?e.some(t=>Ae(o,t)):le(o,e.link)?!0:e.items?Ae(o,e.items):!1}function ge(o,e){return[...o].map(t=>{const a={...t},n=a.base||e;return n&&a.link&&(a.link=n+a.link),a.items&&(a.items=ge(a.items,n)),a})}function ne(){const{frontmatter:o,page:e,theme:t}=w(),a=Ne("(min-width: 960px)"),n=z(!1),r=L(()=>{const D=t.value.sidebar,C=e.value.relativePath;return D?it(D,C):[]}),l=z(r.value);J(r,(D,C)=>{JSON.stringify(D)!==JSON.stringify(C)&&(l.value=r.value)});const d=L(()=>o.value.sidebar!==!1&&l.value.length>0&
Expects a CSS selector, a Node element, a NodeList or an array.
See: https://github.com/francoischalifour/medium-zoom`)}},ri=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},ii=function(e){var t=e.getBoundingClientRect(),a=t.top,n=t.left,r=t.width,l=t.height,d=e.cloneNode(),m=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,g=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return d.removeAttribute("id"),d.style.position="absolute",d.style.top=a+m+"px",d.style.left=n+g+"px",d.style.width=r+"px",d.style.height=l+"px",d.style.transform="",d},de=function(e,t){var a=ie({bubbles:!1,cancelable:!1,detail:void 0},t);if(typeof window.CustomEvent=="function")return new CustomEvent(e,a);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,a.bubbles,a.cancelable,a.detail),n},li=function o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=window.Promise||function(S){function T(){}S(T,T)},n=function(S){var T=S.target;if(T===fe){E();return}F.indexOf(T)!==-1&&D({target:T})},r=function(){if(!(Q||!f.original)){var S=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(Ke-S)>H.scrollOffset&&setTimeout(E,150)}},l=function(S){var T=S.key||S.keyCode;(T==="Escape"||T==="Esc"||T===27)&&E()},d=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=S;if(S.background&&(fe.style.background=S.background),S.container&&S.container instanceof Object&&(T.container=ie({},H.container,S.container)),S.template){var O=be(S.template)?S.template:document.querySelector(S.template);T.template=O}return H=ie({},H,T),F.forEach(function(G){G.dispatchEvent(de("medium-zoom:update",{detail:{zoom:U}}))}),U},m=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return o(ie({},H,S))},g=function(){for(var S=arguments.length,T=Array(S),O=0;O<S;O++)T[O]=arguments[O];var G=T.reduce(function(I,W){return[].concat(I,Ze(W))},[]);return G.filter(function(I){return F.indexOf(I)===-1}).forEach(function(I){F.push(I),I.classList.add("medium-zoom-image")}),ae.forEach(function(I){var W=I.type,Y=I.listener,ue=I.options;G.forEach(function(se){se.addEventListener(W,Y,ue)})}),U},P=function(){for(var S=arguments.length,T=Array(S),O=0;O<S;O++)T[O]=arguments[O];f.zoomed&&E();var G=T.length>0?T.reduce(function(I,W){return[].concat(I,Ze(W))},[]):F;return G.forEach(function(I){I.classList.remove("medium-zoom-image"),I.dispatchEvent(de("medium-zoom:detach",{detail:{zoom:U}}))}),F=F.filter(function(I){return G.indexOf(I)===-1}),U},b=function(S,T){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F.forEach(function(G){G.addEventListener("medium-zoom:"+S,T,O)}),ae.push({type:"medium-zoom:"+S,listener:T,options:O}),U},V=function(S,T){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F.forEach(function(G){G.removeEventListener("medium-zoom:"+S,T,O)}),ae=ae.filter(function(G){return!(G.type==="medium-zoom:"+S&&G.listener.toString()===T.toString())}),U},N=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=S.target,O=function(){var I={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},W=void 0,Y=void 0;if(H.container)if(H.container instanceof Object)I=ie({},I,H.container),W=I.width-I.left-I.right-H.margin*2,Y=I.height-I.top-I.bottom-H.margin*2;else{var ue=be(H.container)?H.container:document.querySelector(H.container),se=ue.getBoundingClientRect(),Ve=se.width,gt=se.height,bt=se.left,kt=se.top;I=ie({},I,{width:Ve,height:gt,left:bt,top:kt})}W=W||I.width-H.margin*2,Y=Y||I.height-H.margin*2;var me=f.zoomedHd||f.original,$t=Xe(me)?W:me.naturalWidth||W,yt=Xe(me)?Y:me.naturalHeight||Y,he=me.getBoundingClientRect(),Lt=he.top,Pt=he.left,we=he.width,Te=he.height,St=Math.min(Math.max(we,$t),W)/we,Vt=Math.min(Math.max(Te,yt),Y)/Te,Ie=Math.min(St,Vt),wt=(-Pt+(W-we)/2+H.margin+I.left)/Ie,Tt=(-Lt+(Y-Te)/2+H.margin+I.top)/Ie,Ye="scale("+Ie+") translate3d("+wt+"px, "+Tt+"px, 0)";f.zoomed.style.tra