phanpy-cz/assets/useTitle-KMkGka9H.js

39 lines
120 KiB
JavaScript
Raw Permalink Normal View History

2024-07-01 17:34:06 +00:00
const __vite__fileDeps=["./polyfill-force-g2mcly7m.js","./index-dbOm7oTI.js","./compose-2Y_rtJfC.js","./fuse-GSnTzOyH.js","./tinyld-light-PxOyhYWY.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();"AbortSignal"in window&&(AbortSignal.timeout=AbortSignal.timeout||(e=>{const t=new AbortController;return setTimeout(()=>t.abort(),e),t.signal}));"URL"in window&&typeof URL.parse!="function"&&(URL.parse=function(e,t){if(!e)return null;try{return t?new URL(e,t):new URL(e)}catch{return null}});var ut,k,Fn,_a,De,Hr,qn,Yt,pr,Gt,Jt,zn,ot={},Hn=[],wa=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Lt=Array.isArray;function me(e,t){for(var r in t)e[r]=t[r];return e}function Wn(e){var t=e.parentNode;t&&t.removeChild(e)}function H(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?ut.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return tt(e,i,n,o,null)}function tt(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Fn,__i:-1,__u:0};return o==null&&k.vnode!=null&&k.vnode(a),a}function Kn(){return{current:null}}function ce(e){return e.children}function ue(e,t){this.props=e,this.context=t}function Ne(e,t){if(t==null)return e.__?Ne(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Ne(e):null}function Vn(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Vn(e)}}function Zt(e){(!e.__d&&(e.__d=!0)&&De.push(e)&&!_t.__r++||Hr!==k.debounceRendering)&&((Hr=k.debounceRendering)||qn)(_t)}function _t(){var e,t,r,n,o,a,i,s;for(De.sort(Yt);e=De.shift();)e.__d&&(t=De.length,n=void 0,a=(o=(r=e).__v).__e,i=[],s=[],r.__P&&((n=me({},o)).__v=o.__v+1,k.vnode&&k.vnode(n),mr(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,i,a??Ne(o),!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,Gn(i,n,s),n.__e!=a&&Vn(n)),De.length>t&&De.sort(Yt));_t.__r=0}function Bn(e,t,r,n,o,a,i,s,l,c,d){var u,f,h,m,y,w=n&&n.__k||Hn,g=t.length;for(r.__d=l,ba(r,t,w),l=r.__d,u=0;u<g;u++)(h=r.__k[u])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?ot:w[h.__i]||ot,h.__i=u,mr(e,h,f,o,a,i,s,l,c,d),m=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&vr(f.ref,null,h),d.push(h.ref,h.__c||m,h)),y==null&&m!=null&&(y=m),65536&h.__u||f.__k===h.__k?(l&&!l.isConnected&&(l=Ne(f)),l=Yn(h,l,e)):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=y}function ba(e,t,r){var n,o,a,i,s,l=t.length,c=r.length,d=c,u=0;for(e.__k=[],n=0;n<l;n++)i=n+u,(o=e.__k[n]=(o=t[n])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?tt(null,o,null,null,null):Lt(o)?tt(ce,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?tt(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,s=Ea(o,r,i,d),o.__i=s,a=null,s!==-1&&(d--,(a=r[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):s!==i&&(s===i+1?u++:s>i?d>l-i?u+=s-i:u--:s<i?s==i-1&&(u=s-i):u=0,s!==n+u&&(o.__u|=65536))):(a=r[i])&&a.key==null&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Ne(a)),Qt(a,a,!1),r[i]=null,d--);if(d)for(n=0;n<c;n++)(a=r[n])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Ne(a)),Qt(a,a))}function Yn(
* @remix-run/router v1.2.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Et.apply(this,arguments)}var Ce;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ce||(Ce={}));const ln="popstate";function Ha(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=ke(o.location.hash.substr(1));return tr("",{pathname:i,search:s,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let i=o.document.querySelector("base"),s="";if(i&&i.getAttribute("href")){let l=o.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof a=="string"?a:Rr(a))}function n(o,a){Wa(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Ba(t,r,n,e)}function Q(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ka(){return Math.random().toString(36).substr(2,8)}function cn(e){return{usr:e.state,key:e.key}}function tr(e,t,r,n){return r===void 0&&(r=null),Et({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ke(t):t,{state:r,key:t&&t.key||n||Ka()})}function Rr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ke(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Va(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof e=="string"?e:Rr(e);return Q(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Ba(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Ce.Pop,l=null;function c(){s=Ce.Pop,l&&l({action:s,location:f.location})}function d(h,m){s=Ce.Push;let y=tr(f.location,h,m);r&&r(y,h);let w=cn(y),g=f.createHref(y);try{i.pushState(w,"",g)}catch{o.location.assign(g)}a&&l&&l({action:s,location:f.location})}function u(h,m){s=Ce.Replace;let y=tr(f.location,h,m);r&&r(y,h);let w=cn(y),g=f.createHref(y);i.replaceState(w,"",g),a&&l&&l({action:s,location:f.location})}let f={get action(){return s},get location(){return e(o,i)},listen(h){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(ln,c),l=h,()=>{o.removeEventListener(ln,c),l=null}},createHref(h){return t(o,h)},encodeLocation(h){let m=Va(typeof h=="string"?h:Rr(h));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:u,go(h){return i.go(h)}};return f}var fn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fn||(fn={}));function Ya(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ke(t):t,o=Po(n.pathname||"/",r);if(o==null)return null;let a=So(e);Ga(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=oi(a[s],ii(o));return i}function So(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(Q(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Te([n,l.relativePath]),d=r.concat(l);a.children&&a.children.length>0&&(Q(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),So(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:ri(c,a.index),routesMeta:d})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of Co(a.
* React Router v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function nr(){return nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nr.apply(this,arguments)}function yi(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const _i=typeof Object.is=="function"?Object.is:yi,{useState:wi,useEffect:bi,useLayoutEffect:Ei,useDebugValue:Si}=bt;function Ci(e,t,r){const n=t(),[{inst:o},a]=wi({inst:{value:n,getSnapshot:t}});return Ei(()=>{o.value=n,o.getSnapshot=t,Ht(o)&&a({inst:o})},[e,n,t]),bi(()=>(Ht(o)&&a({inst:o}),e(()=>{Ht(o)&&a({inst:o})})),[e]),Si(n),n}function Ht(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!_i(r,n)}catch{return!0}}function Pi(e,t,r){return t()}const Ai=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ri=!Ai,xi=Ri?Pi:Ci,Rl="useSyncExternalStore"in bt?(e=>e.useSyncExternalStore)(bt):xi,Ro=Pe(null),xo=Pe(null);const Or=Pe(null),jt=Pe(null),Ye=Pe({outlet:null,matches:[]}),Oo=Pe(null);function It(){return re(jt)!=null}function Dr(){return It()||Q(!1),re(jt).location}function Oi(){It()||Q(!1);let{basename:e,navigator:t}=re(Or),{matches:r}=re(Ye),{pathname:n}=Dr(),o=JSON.stringify(ci(r).map(s=>s.pathnameBase)),a=ye(!1);return Ae(()=>{a.current=!0}),Ve(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=fi(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:Te([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function xl(){let{matches:e}=re(Ye),t=e[e.length-1];return t?t.params:{}}function Di(e,t){It()||Q(!1);let{navigator:r}=re(Or),n=re(xo),{matches:o}=re(Ye),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route,d=Dr(),u;if(t){var f;let g=typeof t=="string"?ke(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||Q(!1),u=g}else u=d;let h=u.pathname||"/",m=l==="/"?h:h.slice(l.length)||"/",y=Ya(e,{pathname:m}),w=Mi(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:Te([l,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Te([l,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n||void 0);return t&&w?H(jt.Provider,{value:{location:nr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ce.Pop}},w):w}function Ti(){let e=ki(),t=vi(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n};return H(ce,null,H("h2",null,"Unhandled Thrown Error!"),H("h3",{style:{fontStyle:"italic"}},t),r?H("pre",{style:o},r):null,H("p",null,"💿 Hey developer 👋"),H("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",H("code",{style:a},"errorElement")," props on ",H("code",{style:a},"<Route>")))}class Li extends ue{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?H(Ye.Provider,{value:this.props.routeContext},H(Oo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ni(e){let{routeContext:t,match:r,children:n}=e,o=re(Ro);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),H(Ye.Provider,{value:t},n)}function Mi(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,o=r==null?void 0:r.errors;if(o!=null){let a=n.findIndex(i=>i.route.id&&(o==null?void 0:o[i.route.id]));a>=0||Q(!1),n=n.slice(0,Math.min(n.length,a+1))}return n.reduceRight((a,i,s)=>{let l=i.route.id?
* React Router DOM v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ar(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function qi(e,t){let r=ar(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function Tl(e){let{basename:t,children:r,window:n}=e,o=ye();o.current==null&&(o.current=Ha({window:n,v5Compat:!0}));let a=o.current,[i,s]=$e({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),H(Fi,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var mn;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(mn||(mn={}));var vn;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vn||(vn={}));function Ll(e){let t=ye(ar(e)),r=Dr(),n=_e(()=>qi(r.search,t.current),[r.search]),o=Oi(),a=Ve((i,s)=>{const l=ar(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const zi=Symbol(),Tr=Symbol(),Ze="a",nt="w";let Hi=(e,t)=>new Proxy(e,t);const ir=Object.getPrototypeOf,sr=new WeakMap,Do=e=>e&&(sr.has(e)?sr.get(e):ir(e)===Object.prototype||ir(e)===Array.prototype),Ct=e=>typeof e=="object"&&e!==null,Wi=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0}),Object.create(ir(e),t)},Lr=e=>e[Tr]||e,To=(e,t,r,n)=>{if(!Do(e))return e;let o=n&&n.get(e);if(!o){const l=Lr(e);o=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(d=>!d.configurable&&!d.writable))(l)?[l,Wi(l)]:[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return s&&s[1].f===!!i||(s=((l,c)=>{const d={f:c};let u=!1;const f=(m,y)=>{if(!u){let w=d[Ze].get(l);if(w||(w={},d[Ze].set(l,w)),m===nt)w[nt]=!0;else{let g=w[m];g||(g=new Set,w[m]=g),g.add(y)}}},h={get:(m,y)=>y===Tr?l:(f("k",y),To(Reflect.get(m,y),d[Ze],d.c,d.t)),has:(m,y)=>y===zi?(u=!0,d[Ze].delete(l),!0):(f("h",y),Reflect.has(m,y)),getOwnPropertyDescriptor:(m,y)=>(f("o",y),Reflect.getOwnPropertyDescriptor(m,y)),ownKeys:m=>(f(nt),Reflect.ownKeys(m))};return c&&(h.set=h.deleteProperty=()=>!1),[h,d]})(a,!!i),s[1].p=Hi(i||a,s[0]),r&&r.set(a,s)),s[1][Ze]=t,s[1].c=r,s[1].t=n,s[1].p},Lo=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Ct(e)||!Ct(t))return!0;const a=r.get(Lr(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s.n===t)return s.g;n.set(e,{n:t,g:!1})}let i=null;try{for(const s of a.h||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[nt]===!0){if(i=((s,l)=>{const c=Reflect.ownKeys(s),d=Reflect.ownKeys(l);return c.length!==d.length||c.some((u,f)=>u!==d[f])})(e,t),i)return i}else for(const s of a.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),i)return i;for(const s of a.k||[])if(i=Lo(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{n:t,g:i})}};const Ki=e=>Do(e)&&e[Tr]||null,gn=(e,t=!0)=>{sr.set(e,t)},Vi=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{if(o.has(i))return;Ct(i)&&o.add(i);const l=Ct(i)&&t.get(Lr(i));if(l){var c,d;if((c=l.h)==null||c.forEach(f=>{const h=`:has(${String(f)})`;n.push(s?[...s,h]:[h])}),l[nt]===!0){const f=":ownKeys";n.push(s?[...s,f]:[f])}else{var u;(u=l.o)==null||u.forEach(f=>{const h=`:hasOwn(${String(f)})`;n.push(s?[...s,h]:[h])})}(d=l.k)==null||d.forEach(f=>{r&&!("value"in(Object.getOwnPropertyDescriptor(i,f)||{}))||a(i[f],s?[...s,f]:[f])})}else s&&n.push(s)};return a(e),n};var Pt={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Wt=e=>typeof e=="object"&&e!==null,Ee=new WeakMap,pt=new WeakSet,Bi=(e=Object.is,t=(c,d)=>new Proxy(c,d),r=c=>Wt(c)&&!pt.has(c)&&(Array.isArray(c)||!(Symbol.iterator in c))&&!(c instanceof WeakMap)&&!
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ke=Zi;function Qi(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xi=typeof Object.is=="function"?Object.is:Qi,es=Ke.useState,ts=Ke.useEffect,rs=Ke.useLayoutEffect,ns=Ke.useDebugValue;function os(e,t){var r=t(),n=es({inst:{value:r,getSnapshot:t}}),o=n[0].inst,a=n[1];return rs(function(){o.value=r,o.getSnapshot=t,Kt(o)&&a({inst:o})},[e,r,t]),ts(function(){return Kt(o)&&a({inst:o}),e(function(){Kt(o)&&a({inst:o})})},[e]),ns(r),r}function Kt(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Xi(e,r)}catch{return!0}}function as(e,t){return t()}var is=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?as:os,Nl=Mo.useSyncExternalStore=Ke.useSyncExternalStore!==void 0?Ke.useSyncExternalStore:is,Ml=jr.exports;jr.exports=Mo;var ss=jr.exports;const us=No(ss);var ls={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:yn}=Eo,{useSyncExternalStore:cs}=us,fs=(e,t)=>{const r=ye();Ae(()=>{r.current=Vi(e,t,!0)}),Mt(r.current)},ds=new WeakMap;function jl(e,t){const r=t==null?void 0:t.sync,n=ye(),o=ye();let a=!0;const i=cs(Ve(c=>{const d=Nr(e,c,r);return c(),d},[e,r]),()=>{const c=ur(e,yn);try{if(!a&&n.current&&o.current&&!Lo(n.current,c,o.current,new WeakMap))return n.current}catch{}return c},()=>ur(e,yn));a=!1;const s=new WeakMap;Ae(()=>{n.current=i,o.current=s}),(ls?"production":void 0)!=="production"&&fs(i,s);const l=_e(()=>new WeakMap,[]);return To(i,s,l,ds)}var hs=0,Il=Array.isArray;function At(e,t,r,n,o,a){t||(t={});var i,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?i=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--hs,__i:-1,__u:0,__source:o,__self:a};if(typeof e=="function"&&(i=e.defaultProps))for(s in i)l[s]===void 0&&(l[s]=i[s]);return k.vnode&&k.vnode(c),c}function ps(e,t){var r=Object.setPrototypeOf;r?r(e,t):e.__proto__=t}function ms(e,t){t===void 0&&(t=e.constructor);var r=Error.captureStackTrace;r&&r(e,t)}var vs=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},e(r,n)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ge=function(e){vs(t,e);function t(r,n){var o=this.constructor,a=e.call(this,r,n)||this;return Object.defineProperty(a,"name",{value:o.name,enumerable:!1,configurable:!0}),ps(a,o.prototype),ms(a),a}return t}(Error);var qe=null;typeof WebSocket<"u"?qe=WebSocket:typeof MozWebSocket<"u"?qe=MozWebSocket:typeof global<"u"?qe=global.WebSocket||global.MozWebSocket:typeof window<"u"?qe=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(qe=self.WebSocket||self.MozWebSocket);const Ir=qe;function gs(){let e,t;const r=new Promise((...n)=>[e,t]=n);return Object.freeze({resolve:e,reject:t,promise:r})}function ys(e,t){const r=[],n=[],o=e((...d)=>{const u=n.shift();u?u.resolve({value:d,done:!1}):r.push(d)}),a=t==null?void 0:t.signal;let i=!1,s=null;const l=()=>{s=new Error("Abort Error")},c=()=>{o==null||o(),a==null||a.removeEventListener("abort",l)};return a==null||a.addEventListener("abort",l,{once:!0}),{async next(){const d=r.shift();if(d)return{value:d,done:!1};if(i)return{value:void 0,done:!0};if(s)return Promise.reject(s);const u=gs();return n.push(u),u.promise},async return(){i=!0,c();for(const d of n)d.resolve({value:void 0,done:!0});return{value:void 0,done:!0}},async throw(d){return s=d,c(),{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}var lr=function(e,t){return lr=Object.setPrototypeOf||{__proto__:[]}instanc
//# sourceMappingURL=useTitle-KMkGka9H.js.map