Fuwari/_astro/translation.DIdkVo7S.js

2 lines
12 KiB
JavaScript

function E(){}function Y(t,e){for(const n in e)t[n]=e[n];return t}function G(t){return t()}function P(){return Object.create(null)}function w(t){t.forEach(G)}function R(t){return typeof t=="function"}function Tt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function Z(t){return Object.keys(t).length===0}function $t(t,e,n,i){if(t){const s=U(t,e,n,i);return t[0](s)}}function U(t,e,n,i){return t[1]&&i?Y(n.ctx.slice(),t[1](i(e))):n.ctx}function Mt(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const l=[],r=Math.max(e.dirty.length,s.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|s[a];return l}return e.dirty|s}return e.dirty}function Et(t,e,n,i,s,l){if(s){const r=U(e,n,i,l);t.p(r,s)}}function Nt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function St(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}let T=!1;function I(){T=!0}function K(){T=!1}function tt(t,e,n,i){for(;t<e;){const s=t+(e-t>>1);n(s)<=i?t=s+1:e=s}return t}function et(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const u=[];for(let c=0;c<e.length;c++){const d=e[c];d.claim_order!==void 0&&u.push(d)}e=u}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let s=0;for(let u=0;u<e.length;u++){const c=e[u].claim_order,d=(s>0&&e[n[s]].claim_order<=c?s+1:tt(1,s,x=>e[n[x]].claim_order,c))-1;i[u]=n[d]+1;const f=d+1;n[f]=u,s=Math.max(f,s)}const l=[],r=[];let a=e.length-1;for(let u=n[s]+1;u!=0;u=i[u-1]){for(l.push(e[u-1]);a>=u;a--)r.push(e[a]);a--}for(;a>=0;a--)r.push(e[a]);l.reverse(),r.sort((u,c)=>u.claim_order-c.claim_order);for(let u=0,c=0;u<r.length;u++){for(;c<l.length&&r[u].claim_order>=l[c].claim_order;)c++;const d=c<l.length?l[c]:null;t.insertBefore(r[u],d)}}function nt(t,e){if(T){for(et(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function ot(t,e,n){t.insertBefore(e,n||null)}function it(t,e,n){T&&!n?nt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}function Ht(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function F(t){return document.createElement(t)}function W(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function H(t){return document.createTextNode(t)}function kt(){return H(" ")}function zt(){return H("")}function jt(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function q(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const st=["width","height"];function Pt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&st.indexOf(i)===-1?t[i]=e[i]:q(t,i,e[i])}function Lt(t,e){for(const n in e)q(t,n,e[n])}function Ot(t){return t===""?null:+t}function rt(t){return Array.from(t.childNodes)}function V(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function J(t,e,n,i,s=!1){V(t);const l=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const a=t[r];if(e(a)){const u=n(a);return u===void 0?t.splice(r,1):t[r]=u,s||(t.claim_info.last_index=r),a}}for(let r=t.claim_info.last_index-1;r>=0;r--){const a=t[r];if(e(a)){const u=n(a);return u===void 0?t.splice(r,1):t[r]=u,s?u===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,a}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function Q(t,e,n,i){return J(t,s=>s.nodeName===e,s=>{const l=[];for(let r=0;r<s.attributes.length;r++){const a=s.attributes[r];n[a.name]||l.push(a.name)}l.forEach(r=>s.removeAttribute(r))},()=>i(e))}function Dt(t,e,n){return Q(t,e,n,F)}function Bt(t,e,n){return Q(t,e,n,W)}function ut(t,e){return J(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>H(e),!0)}function Gt(t){return ut(t," ")}function L(t,e,n){for(let i=n;i<t.length;i+=1){const s=t[i];if(s.nodeType===8&&s.textContent.trim()===e)return i}return-1}function Rt(t,e){const n=L(t,"HTML_TAG_START",0),i=L(t,"HTML_TAG_END",n+1);if(n===-1||i===-1)return new $(e);V(t);const s=t.splice(n,i-n+1);A(s[0]),A(s[s.length-1]);const l=s.slice(1,s.length-1);if(l.length===0)return new $(e);for(const r of l)r.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new $(e,l)}function Ut(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ft(t,e){t.value=e??""}function Wt(t,e,n,i){t.style.setProperty(e,n,"")}function qt(t,e,n){t.classList.toggle(e,!!n)}function ct(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}class lt{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(e=!1){this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=W(n.nodeName):this.e=F(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)ot(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(A)}}class $ extends lt{l=void 0;constructor(e=!1,n){super(e),this.e=this.n=null,this.l=n}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)it(this.t,this.n[n],e)}}let b;function C(t){b=t}function k(){if(!b)throw new Error("Function called outside component initialization");return b}function Vt(t){k().$$.on_mount.push(t)}function Jt(t){k().$$.on_destroy.push(t)}function Qt(){const t=k();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const l=ct(e,n,{cancelable:i});return s.slice().forEach(r=>{r.call(t,l)}),!l.defaultPrevented}return!0}}const m=[],O=[];let g=[];const D=[],at=Promise.resolve();let N=!1;function ft(){N||(N=!0,at.then(X))}function S(t){g.push(t)}const M=new Set;let _=0;function X(){if(_!==0)return;const t=b;do{try{for(;_<m.length;){const e=m[_];_++,C(e),dt(e.$$)}}catch(e){throw m.length=0,_=0,e}for(C(null),m.length=0,_=0;O.length;)O.pop()();for(let e=0;e<g.length;e+=1){const n=g[e];M.has(n)||(M.add(n),n())}g.length=0}while(m.length);for(;D.length;)D.pop()();N=!1,M.clear(),C(t)}function dt(t){if(t.fragment!==null){t.update(),w(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(S)}}function ht(t){const e=[],n=[];g.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),g=e}const y=new Set;let h;function Xt(){h={r:0,c:[],p:h}}function Yt(){h.r||w(h.c),h=h.p}function _t(t,e){t&&t.i&&(y.delete(t),t.i(e))}function Zt(t,e,n,i){if(t&&t.o){if(y.has(t))return;y.add(t),h.c.push(()=>{y.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function It(t){t&&t.c()}function Kt(t,e){t&&t.l(e)}function mt(t,e,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),S(()=>{const l=t.$$.on_mount.map(G).filter(R);t.$$.on_destroy?t.$$.on_destroy.push(...l):w(l),t.$$.on_mount=[]}),s.forEach(S)}function gt(t,e){const n=t.$$;n.fragment!==null&&(ht(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pt(t,e){t.$$.dirty[0]===-1&&(m.push(t),ft(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function te(t,e,n,i,s,l,r=null,a=[-1]){const u=b;C(t);const c=t.$$={fragment:null,ctx:[],props:l,update:E,not_equal:s,bound:P(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:P(),dirty:a,skip_bound:!1,root:e.target||u.$$.root};r&&r(c.root);let d=!1;if(c.ctx=n?n(t,e.props||{},(f,x,...z)=>{const j=z.length?z[0]:x;return c.ctx&&s(c.ctx[f],c.ctx[f]=j)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](j),d&&pt(t,f)),x}):[],c.update(),d=!0,w(c.before_update),c.fragment=i?i(c.ctx):!1,e.target){if(e.hydrate){I();const f=rt(e.target);c.fragment&&c.fragment.l(f),f.forEach(A)}else c.fragment&&c.fragment.c();e.intro&&_t(t.$$.fragment),mt(t,e.target,e.anchor),K(),X()}C(u)}class ee{$$=void 0;$$set=void 0;$destroy(){gt(this,1),this.$destroy=E}$on(e,n){if(!R(n))return E;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!Z(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ct="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ct);var o=(t=>(t.home="home",t.about="about",t.archive="archive",t.search="search",t.tags="tags",t.categories="categories",t.recentPosts="recentPosts",t.comments="comments",t.untitled="untitled",t.uncategorized="uncategorized",t.noTags="noTags",t.wordCount="wordCount",t.wordsCount="wordsCount",t.minuteCount="minuteCount",t.minutesCount="minutesCount",t.postCount="postCount",t.postsCount="postsCount",t.themeColor="themeColor",t.lightMode="lightMode",t.darkMode="darkMode",t.systemMode="systemMode",t.more="more",t.author="author",t.publishedAt="publishedAt",t.license="license",t))(o||{}),v=(t=>(t[t.Home=0]="Home",t[t.Archive=1]="Archive",t[t.About=2]="About",t))(v||{});const bt={title:"Fuwari",subtitle:"Demo Site",lang:"en",themeColor:{hue:250,fixed:!1},banner:{enable:!1,src:"assets/images/demo-banner.png",position:"center"},favicon:[]};v.Home,v.Archive,v.About;const p={[o.home]:"Home",[o.about]:"About",[o.archive]:"Archive",[o.search]:"Search",[o.tags]:"Tags",[o.categories]:"Categories",[o.recentPosts]:"Recent Posts",[o.comments]:"Comments",[o.untitled]:"Untitled",[o.uncategorized]:"Uncategorized",[o.noTags]:"No Tags",[o.wordCount]:"word",[o.wordsCount]:"words",[o.minuteCount]:"minute",[o.minutesCount]:"minutes",[o.postCount]:"post",[o.postsCount]:"posts",[o.themeColor]:"Theme Color",[o.lightMode]:"Light",[o.darkMode]:"Dark",[o.systemMode]:"System",[o.more]:"More",[o.author]:"Author",[o.publishedAt]:"Published at",[o.license]:"License"},B={[o.home]:"Home",[o.about]:"About",[o.archive]:"Archive",[o.search]:"検索",[o.tags]:"タグ",[o.categories]:"カテゴリ",[o.recentPosts]:"最近の投稿",[o.comments]:"コメント",[o.untitled]:"タイトルなし",[o.uncategorized]:"カテゴリなし",[o.noTags]:"タグなし",[o.wordCount]:"文字",[o.wordsCount]:"文字",[o.minuteCount]:"分",[o.minutesCount]:"分",[o.postCount]:"件の投稿",[o.postsCount]:"件の投稿",[o.themeColor]:"テーマカラー",[o.lightMode]:"ライト",[o.darkMode]:"ダーク",[o.systemMode]:"システム",[o.more]:"もっと",[o.author]:"作者",[o.publishedAt]:"公開日",[o.license]:"ライセンス"},wt={[o.home]:"主页",[o.about]:"关于",[o.archive]:"归档",[o.search]:"搜索",[o.tags]:"标签",[o.categories]:"分类",[o.recentPosts]:"最新文章",[o.comments]:"评论",[o.untitled]:"无标题",[o.uncategorized]:"未分类",[o.noTags]:"无标签",[o.wordCount]:"字",[o.wordsCount]:"字",[o.minuteCount]:"分钟",[o.minutesCount]:"分钟",[o.postCount]:"篇文章",[o.postsCount]:"篇文章",[o.themeColor]:"主题色",[o.lightMode]:"亮色",[o.darkMode]:"暗色",[o.systemMode]:"跟随系统",[o.more]:"更多",[o.author]:"作者",[o.publishedAt]:"发布于",[o.license]:"许可协议"},xt={[o.home]:"首頁",[o.about]:"關於",[o.archive]:"彙整",[o.search]:"搜尋",[o.tags]:"標籤",[o.categories]:"分類",[o.recentPosts]:"最新文章",[o.comments]:"評論",[o.untitled]:"無標題",[o.uncategorized]:"未分類",[o.noTags]:"無標籤",[o.wordCount]:"字",[o.wordsCount]:"字",[o.minuteCount]:"分鐘",[o.minutesCount]:"分鐘",[o.postCount]:"篇文章",[o.postsCount]:"篇文章",[o.themeColor]:"主題色",[o.lightMode]:"亮色",[o.darkMode]:"暗色",[o.systemMode]:"跟隨系統",[o.more]:"更多",[o.author]:"作者",[o.publishedAt]:"發佈於",[o.license]:"許可協議"},yt=p,vt={en:p,en_us:p,en_gb:p,en_au:p,zh_cn:wt,zh_tw:xt,ja:B,ja_jp:B};function At(t){return vt[t.toLowerCase()]||yt}function ne(t){const e=bt.lang;return At(e)[t]}export{Ot as A,Yt as B,Ht as C,Vt as D,Rt as E,Xt as F,zt as G,$ as H,o as I,E as J,Jt as K,Y as L,St as M,Pt as N,W as O,Bt as P,Lt as Q,Qt as R,ee as S,It as T,Kt as U,mt as V,gt as W,ne as a,kt as b,$t as c,Dt as d,F as e,rt as f,ut as g,Gt as h,te as i,A as j,q as k,qt as l,Wt as m,it as n,nt as o,Ft as p,jt as q,Nt as r,Tt as s,H as t,Et as u,Mt as v,Ut as w,_t as x,Zt as y,w as z};