phanpy/assets/vendor--8C7Txey.js

142 lines
239 KiB
JavaScript
Raw Permalink Normal View History

var yn,W,aa,Fs,ct,Wo,sa,zr,ua,un={},ca=[],Hs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,rr=Array.isArray;function Ye(e,t){for(var n in t)e[n]=t[n];return e}function la(e){var t=e.parentNode;t&&t.removeChild(e)}function te(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?yn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return rn(e,a,r,o,null)}function rn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++aa,__i:-1,__u:0};return o==null&&W.vnode!=null&&W.vnode(i),i}function uo(){return{current:null}}function De(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function Nt(e,t){if(t==null)return e.__?Nt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Nt(e):null}function da(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return da(e)}}function jr(e){(!e.__d&&(e.__d=!0)&&ct.push(e)&&!In.__r++||Wo!==W.debounceRendering)&&((Wo=W.debounceRendering)||sa)(In)}function In(){var e,t,n,r,o,i,a,u,s;for(ct.sort(zr);e=ct.shift();)e.__d&&(t=ct.length,r=void 0,i=(o=(n=e).__v).__e,u=[],s=[],(a=n.__P)&&((r=Ye({},o)).__v=o.__v+1,W.vnode&&W.vnode(r),co(a,r,o,n.__n,a.ownerSVGElement!==void 0,32&o.__u?[i]:null,u,i??Nt(o),!!(32&o.__u),s),r.__.__k[r.__i]=r,pa(u,r,s),r.__e!=i&&da(r)),ct.length>t&&ct.sort(zr));In.__r=0}function fa(e,t,n,r,o,i,a,u,s,l,d){var c,f,h,p,m,y=r&&r.__k||ca,_=t.length;for(n.__d=s,Bs(n,t,y),s=n.__d,c=0;c<_;c++)(h=n.__k[c])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?un:y[h.__i]||un,h.__i=c,co(e,h,f,o,i,a,u,s,l,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&lo(f.ref,null,h),d.push(h.ref,h.__c||p,h)),m==null&&p!=null&&(m=p),65536&h.__u||f.__k===h.__k?s=ha(h,s,e):typeof h.type=="function"&&h.__d!==void 0?s=h.__d:p&&(s=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=s,n.__e=m}function Bs(e,t,n){var r,o,i,a,u,s=t.length,l=n.length,d=l,c=0;for(e.__k=[],r=0;r<s;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?rn(null,o,null,null,o):rr(o)?rn(De,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?rn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,u=Us(o,n,a=r+c,d),o.__i=u,i=null,u!==-1&&(d--,(i=n[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):u!==a&&(u===a+1?c++:u>a?d>s-a?c+=u-a:c--:c=u<a&&u==a-1?u-a:0,u!==r+c&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=Nt(i)),Fr(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Nt(i)),Fr(i,i))}function ha(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ha(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function Ve(e,t){return t=t||[],e==null||typeof e=="boolean"||(rr(e)?e.some(function(n){Ve(n,t)}):t.push(e)),t}function Us(e,t,n,r){var o=e.key,i=e.type,a=n-1,u=n+1,s=t[n];if(s===null||s&&o==s.key&&i===s.type)return n;if(r>(s!=null&&!(131072&s.__u)?1:0))for(;a>=0||u<t.length;){if(a>=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(u<t.length){if((s=t[u])&&!(131072&s.__u)&&o==s.key&&i===s.type)return u;u++}}return-1}function qo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Hs.test(t)?n:n+"px"}function En(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||qo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||qo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLower
* @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 $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$n.apply(this,arguments)}var tt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(tt||(tt={}));const li="popstate";function lu(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:u="",hash:s=""}=mt(o.location.hash.substr(1));return Ur("",{pathname:a,search:u,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),u="";if(a&&a.getAttribute("href")){let s=o.location.href,l=s.indexOf("#");u=l===-1?s:s.slice(0,l)}return u+"#"+(typeof i=="string"?i:vo(i))}function r(o,i){du(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return pu(t,n,r,e)}function ye(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function du(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fu(){return Math.random().toString(36).substr(2,8)}function di(e){return{usr:e.state,key:e.key}}function Ur(e,t,n,r){return n===void 0&&(n=null),$n({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mt(t):t,{state:n,key:t&&t.key||r||fu()})}function vo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mt(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hu(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:vo(e);return ye(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function pu(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=tt.Pop,s=null;function l(){u=tt.Pop,s&&s({action:u,location:f.location})}function d(h,p){u=tt.Push;let m=Ur(f.location,h,p);n&&n(m,h);let y=di(m),_=f.createHref(m);try{a.pushState(y,"",_)}catch{o.location.assign(_)}i&&s&&s({action:u,location:f.location})}function c(h,p){u=tt.Replace;let m=Ur(f.location,h,p);n&&n(m,h);let y=di(m),_=f.createHref(m);a.replaceState(y,"",_),i&&s&&s({action:u,location:f.location})}let f={get action(){return u},get location(){return e(o,a)},listen(h){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(li,l),s=h,()=>{o.removeEventListener(li,l),s=null}},createHref(h){return t(o,h)},encodeLocation(h){let p=hu(typeof h=="string"?h:vo(h));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:c,go(h){return a.go(h)}};return f}var fi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(fi||(fi={}));function mu(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?mt(t):t,o=Fa(r.pathname||"/",n);if(o==null)return null;let i=za(e);_u(i);let a=null;for(let u=0;a==null&&u<i.length;++u)a=xu(i[u],Mu(o));return a}function za(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,u)=>{let s={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ye(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let l=dt([r,s.relativePath]),d=n.concat(s);i.children&&i.children.length>0&&(ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),za(i.children,t,d,l)),!(i.path==null&&!i.index)&&t.push({path:l,score:Su(l,i.index),routesMeta:d})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let s of j
* 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 Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}function Fu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Hu=typeof Object.is=="function"?Object.is:Fu,{useState:Bu,useEffect:Uu,useLayoutEffect:Ku,useDebugValue:Wu}=kn;function qu(e,t,n){const r=t(),[{inst:o},i]=Bu({inst:{value:r,getSnapshot:t}});return Ku(()=>{o.value=r,o.getSnapshot=t,Er(o)&&i({inst:o})},[e,r,t]),Uu(()=>(Er(o)&&i({inst:o}),e(()=>{Er(o)&&i({inst:o})})),[e]),Wu(r),r}function Er(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Hu(n,r)}catch{return!0}}function Gu(e,t,n){return t()}const Yu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zu=!Yu,Vu=Zu?Gu:qu,Sh="useSyncExternalStore"in kn?(e=>e.useSyncExternalStore)(kn):Vu,Ba=be(null),Ua=be(null);const wo=be(null),ur=be(null),Bt=be({outlet:null,matches:[]}),Ka=be(null);function cr(){return ne(ur)!=null}function bo(){return cr()||ye(!1),ne(ur).location}function Ju(){cr()||ye(!1);let{basename:e,navigator:t}=ne(wo),{matches:n}=ne(Bt),{pathname:r}=bo(),o=JSON.stringify(Lu(n).map(u=>u.pathnameBase)),i=q(!1);return ie(()=>{i.current=!0}),_e(function(u,s){if(s===void 0&&(s={}),!i.current)return;if(typeof u=="number"){t.go(u);return}let l=Du(u,JSON.parse(o),r,s.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:dt([e,l.pathname])),(s.replace?t.replace:t.push)(l,s.state,s)},[e,t,o,r])}function Th(){let{matches:e}=ne(Bt),t=e[e.length-1];return t?t.params:{}}function Xu(e,t){cr()||ye(!1);let{navigator:n}=ne(wo),r=ne(Ua),{matches:o}=ne(Bt),i=o[o.length-1],a=i?i.params:{},u=i?i.pathname:"/",s=i?i.pathnameBase:"/",l=i&&i.route,d=bo(),c;if(t){var f;let _=typeof t=="string"?mt(t):t;s==="/"||(f=_.pathname)!=null&&f.startsWith(s)||ye(!1),c=_}else c=d;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",m=mu(e,{pathname:p}),y=nc(m&&m.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:dt([s,n.encodeLocation?n.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?s:dt([s,n.encodeLocation?n.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,r||void 0);return t&&y?te(ur.Provider,{value:{location:Kr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:tt.Pop}},y):y}function Qu(){let e=ac(),t=zu(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return te(De,null,te("h2",null,"Unhandled Thrown Error!"),te("h3",{style:{fontStyle:"italic"}},t),n?te("pre",{style:o},n):null,te("p",null,"💿 Hey developer 👋"),te("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",te("code",{style:i},"errorElement")," props on ",te("code",{style:i},"<Route>")))}class ec extends Pe{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?te(Bt.Provider,{value:this.props.routeContext},te(Ka.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tc(e){let{routeContext:t,match:n,children:r}=e,o=ne(Ba);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),te(Bt.Provider,{value:t},r)}function nc(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||ye(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,u)=>{l
* 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 qr(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function cc(e,t){let n=qr(e);for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}function Ah(e){let{basename:t,children:n,window:r}=e,o=q();o.current==null&&(o.current=lu({window:r,v5Compat:!0}));let i=o.current,[a,u]=me({action:i.action,location:i.location});return Xe(()=>i.listen(u),[i]),te(uc,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}var _i;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(_i||(_i={}));var yi;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yi||(yi={}));function Mh(e){let t=q(qr(e)),n=bo(),r=ae(()=>cc(n.search,t.current),[n.search]),o=Ju(),i=_e((a,u)=>{const s=qr(typeof a=="function"?a(r):a);o("?"+s,u)},[o,r]);return[r,i]}var Oh=lc;function lc(e,t,n){var r=null,o=null,i=function(){r&&(clearTimeout(r),o=null,r=null)},a=function(){var s=o;i(),s&&s()},u=function(){if(!t)return e.apply(this,arguments);var s=this,l=arguments,d=n&&!r;if(i(),o=function(){e.apply(s,l)},r=setTimeout(function(){if(r=null,!d){var c=o;return o=null,c()}},t),d)return o()};return u.cancel=i,u.flush=a,u}/*!
* swiped-events.js - v@version@
* Pure JavaScript swipe events
* https://github.com/john-doherty/swiped-events
* @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element
* @author John Doherty <www.johndoherty.info>
* @license MIT
*/(function(e,t){"use strict";typeof e.CustomEvent!="function"&&(e.CustomEvent=function(h,p){p=p||{bubbles:!1,cancelable:!1,detail:void 0};var m=t.createEvent("CustomEvent");return m.initCustomEvent(h,p.bubbles,p.cancelable,p.detail),m},e.CustomEvent.prototype=e.Event.prototype),t.addEventListener("touchstart",d,!1),t.addEventListener("touchmove",c,!1),t.addEventListener("touchend",l,!1);var n=null,r=null,o=null,i=null,a=null,u=null,s=0;function l(h){if(u===h.target){var p=parseInt(f(u,"data-swipe-threshold","20"),10),m=f(u,"data-swipe-unit","px"),y=parseInt(f(u,"data-swipe-timeout","500"),10),_=Date.now()-a,v="",T=h.changedTouches||h.touches||[];if(m==="vh"&&(p=Math.round(p/100*t.documentElement.clientHeight)),m==="vw"&&(p=Math.round(p/100*t.documentElement.clientWidth)),Math.abs(o)>Math.abs(i)?Math.abs(o)>p&&_<y&&(o>0?v="swiped-left":v="swiped-right"):Math.abs(i)>p&&_<y&&(i>0?v="swiped-up":v="swiped-down"),v!==""){var O={dir:v.replace(/swiped-/,""),touchType:(T[0]||{}).touchType||"direct",fingers:s,xStart:parseInt(n,10),xEnd:parseInt((T[0]||{}).clientX||-1,10),yStart:parseInt(r,10),yEnd:parseInt((T[0]||{}).clientY||-1,10)};u.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:O})),u.dispatchEvent(new CustomEvent(v,{bubbles:!0,cancelable:!0,detail:O}))}n=null,r=null,a=null}}function d(h){h.target.getAttribute("data-swipe-ignore")!=="true"&&(u=h.target,a=Date.now(),n=h.touches[0].clientX,r=h.touches[0].clientY,o=0,i=0,s=h.touches.length)}function c(h){if(!(!n||!r)){var p=h.touches[0].clientX,m=h.touches[0].clientY;o=n-p,i=r-m}}function f(h,p,m){for(;h&&h!==t.documentElement;){var y=h.getAttribute(p);if(y)return y;h=h.parentNode}return m}})(window,document);const dc=Symbol(),Eo=Symbol(),Zt="a",an="w";let fc=(e,t)=>new Proxy(e,t);const Gr=Object.getPrototypeOf,Yr=new WeakMap,Wa=e=>e&&(Yr.has(e)?Yr.get(e):Gr(e)===Object.prototype||Gr(e)===Array.prototype),jn=e=>typeof e=="object"&&e!==null,vi=new WeakMap,So=e=>e[Eo]||e,qa=(e,t,n)=>{if(!Wa(e))return e;const r=So(e),o=(a=>Object.isFrozen(a)||Object.values(Object.getOwnPropertyDescriptors(a)).some(u=>!u.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((a,u)=>{const s={f:u};let l=!1;const d=(f,h)=>{if(!l){let p=s[Zt].get(a);if(p||(p={},s[Zt].set(a,p)),f===an)p[an]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(h)}}},c={get:(f,h)=>h===Eo?a:(d("k",h),qa(Reflect.get(f,h),s[Zt],s.c)),has:(f,h)=>h===dc?(l=!0,s[Zt].delete(a),!0):(d("h",h),Reflect.has(f,h)),getOwnPropertyDescriptor:(f,h)=>(d("o",h),Reflect.getOwnPropertyDescriptor(f,h)),ownKeys:f=>(d(an),Reflect.ownKeys(f))};return u&&(c.set=c.deleteProperty=()=>!1),[c,s]})(r,o),i[1].p=fc(o?(a=>{let u=vi.get(a);if(!u){if(Array.isArray(a))u=Array.from(a);else{const s=Object.getOwnPropertyDescriptors(a);Object.values(s).forEach(l=>{l.configurable=!0}),u=Object.create(Gr(a),s)}vi.set(a,u)}return u})(r):r,i[0]),n&&n.set(r,i)),i[1][Zt]=t,i[1].c=n,i[1].p},Ga=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!jn(e)||!jn(t))return!0;const o=n.get(So(e));if(!o)return!0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[an]===!0){if(i=((a,u)=>{const s=Reflect.ownKeys(a),l=Reflect.ownKeys(u);return s.length!==l.length||s.some((d,c)=>d!==l[c])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=Ga(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}};const hc=e=>Wa(e)&&e[Eo]||null,gi=(e,t=!0)=>{Yr.set(e,t)},pc=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,u)=>{if(o.has(a))return;jn(a)&&o.add(a);const s=jn(a)&&t.get(So(a));if(s){var l,d;if((l=s.h)==null||l.forEach(f=>{const h=`:has(${String(f)})`;r.push(u?[...u,h]:[h])}),s[an]===!0){const f=":ownKeys";r.push(u?[...u,f]:[f])}else{var c;(c=s.o)==null||c.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(u?[...u,h]:[h])})}(d=s.k)==null||d.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,f)||{}))||i(a[f],u?[...u,f]:[
* @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 $t=gc;function wc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bc=typeof Object.is=="function"?Object.is:wc,Ec=$t.useState,Sc=$t.useEffect,Tc=$t.useLayoutEffect,xc=$t.useDebugValue;function Cc(e,t){var n=t(),r=Ec({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Tc(function(){o.value=n,o.getSnapshot=t,Tr(o)&&i({inst:o})},[e,n,t]),Sc(function(){return Tr(o)&&i({inst:o}),e(function(){Tr(o)&&i({inst:o})})},[e]),xc(n),n}function Tr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bc(e,n)}catch{return!0}}function Ac(e,t){return t()}var Mc=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ac:Cc,Ph=Za.useSyncExternalStore=$t.useSyncExternalStore!==void 0?$t.useSyncExternalStore:Mc,Rh=To.exports;To.exports=Za;var Oc=To.exports;const Pc=qe(Oc);var Rc={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:wi}=Ot,{useSyncExternalStore:Lc}=Pc,Dc=(e,t)=>{const n=q();ie(()=>{n.current=pc(e,t,!0)}),fo(n.current)};function Lh(e,t){const n=t==null?void 0:t.sync,r=q(),o=q();let i=!0;const a=Lc(_e(l=>{const d=Ya(e,l,n);return l(),d},[e,n]),()=>{const l=Zr(e,wi);try{if(!i&&r.current&&o.current&&!Ga(r.current,l,o.current,new WeakMap))return r.current}catch{}return l},()=>Zr(e,wi));i=!1;const u=new WeakMap;ie(()=>{r.current=a,o.current=u}),(Rc&&"production")!=="production"&&Dc(a,u);const s=ae(()=>new WeakMap,[]);return qa(a,u,s)}var Ic=0,Dh=Array.isArray;function se(e,t,n,r,o,i){var a,u,s={};for(u in t)u=="ref"?a=t[u]:s[u]=t[u];var l={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ic,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(u in a)s[u]===void 0&&(s[u]=a[u]);return W.vnode&&W.vnode(l),l}function Vr(){return Vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vr.apply(this,arguments)}var Va=["shift","alt","meta","mod","ctrl"],Nc={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nt(e){return(Nc[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function kc(e){return Va.includes(e)}function xr(e,t){return t===void 0&&(t=","),e.split(t)}function Cr(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return nt(a)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},i=r.filter(function(a){return!Va.includes(a)});return Vr({},o,{keys:i,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&Ja([nt(e.key),nt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&Xa([nt(e.key),nt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){rt.clear()})})();var rt=new Set;function xo(e){return Array.isArray(e)}function $c(e,t){t===void 0&&(t=",");var n=xo(e)?e:e.split(t);return n.every(function(r){return rt.has(r.trim().toLowerCase())})}function Ja(e){var t=Array.isArray(e)?e:[e];rt.has("meta")&&rt.forEach(function(n){return!kc(n)&&rt.delete(n.toLowerCase())}),t.forEach(function(n){return rt.add(n.toLowerCase())})}function Xa(e){var t=Array.isArray(e)?e:[e];e==="meta"?rt.clear():t.forEach(function(n){return rt.delete(n.toLowerCase())})}function zc(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function jc(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}func
* Toastify js 1.12.0
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
* Copyright (C) 2018 Varun A P
*/var $h=Oo.exports;(function(e){(function(t,n){e.exports?e.exports=n():t.Toastify=n()})(at,function(t){var n=function(a){return new n.lib.init(a)},r="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:r,constructor:n,init:function(a){return a||(a={}),this.options={},this.toastElement=null,this.options.text=a.text||n.defaults.text,this.options.node=a.node||n.defaults.node,this.options.duration=a.duration===0?0:a.duration||n.defaults.duration,this.options.selector=a.selector||n.defaults.selector,this.options.callback=a.callback||n.defaults.callback,this.options.destination=a.destination||n.defaults.destination,this.options.newWindow=a.newWindow||n.defaults.newWindow,this.options.close=a.close||n.defaults.close,this.options.gravity=a.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=a.positionLeft||n.defaults.positionLeft,this.options.position=a.position||n.defaults.position,this.options.backgroundColor=a.backgroundColor||n.defaults.backgroundColor,this.options.avatar=a.avatar||n.defaults.avatar,this.options.className=a.className||n.defaults.className,this.options.stopOnFocus=a.stopOnFocus===void 0?n.defaults.stopOnFocus:a.stopOnFocus,this.options.onClick=a.onClick||n.defaults.onClick,this.options.offset=a.offset||n.defaults.offset,this.options.escapeMarkup=a.escapeMarkup!==void 0?a.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=a.ariaLive||n.defaults.ariaLive,this.options.style=a.style||n.defaults.style,a.backgroundColor&&(this.options.style.background=a.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var a=document.createElement("div");a.className="toastify on "+this.options.className,this.options.position?a.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(a.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):a.className+=" toastify-right",a.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var u in this.options.style)a.style[u]=this.options.style[u];if(this.options.ariaLive&&a.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)a.appendChild(this.options.node);else if(this.options.escapeMarkup?a.innerText=this.options.text:a.innerHTML=this.options.text,this.options.avatar!==""){var s=document.createElement("img");s.src=this.options.avatar,s.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?a.appendChild(s):a.insertAdjacentElement("afterbegin",s)}if(this.options.close===!0){var l=document.createElement("button");l.type="button",l.setAttribute("aria-label","Close"),l.className="toast-close",l.innerHTML="&#10006;",l.addEventListener("click",(function(y){y.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?a.insertAdjacentElement("afterbegin",l):a.appendChild(l)}if(this.options.stopOnFocus&&this.options.duration>0){var c=this;a.addEventListener("mouseover",function(y){window.clearTimeout(a.timeOutValue)}),a.addEventListener("mouseleave",function(){a.timeOutValue=window.setTimeout(function(){c.removeElement(a)},c.options.duration)})}if(typeof this.options.destination<"u"&&a.addEventListener("click",(function(y){y.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination
`,n-1)>a||e.lastIndexOf(".",n-1)>a)return}else if(e.lastIndexOf(" ",n-1)>a)return;const u=e[a-1];return u&&!mf.test(u)?void 0:{text:e.substring(a+t.length,n),position:a+t.length}}const yf=["position:absolute;","overflow:auto;","word-wrap:break-word;","top:0px;","left:-9999px;"],Ki=["box-sizing","font-family","font-size","font-style","font-variant","font-weight","height","letter-spacing","line-height","max-height","min-height","padding-bottom","padding-left","padding-right","padding-top","border-bottom","border-left","border-right","border-top","text-decoration","text-indent","text-transform","width","word-spacing"],Wi=new WeakMap;function vf(e,t){const n=e.nodeName.toLowerCase();if(n!=="textarea"&&n!=="input")throw new Error("expected textField to a textarea or input");let r=Wi.get(e);if(r&&r.parentElement===e.parentElement)r.innerHTML="";else{r=document.createElement("div"),Wi.set(e,r);const u=window.getComputedStyle(e),s=yf.slice(0);n==="textarea"?s.push("white-space:pre-wrap;"):s.push("white-space:nowrap;");for(let l=0,d=Ki.length;l<d;l++){const c=Ki[l];s.push(`${c}:${u.getPropertyValue(c)};`)}r.style.cssText=s.join(" ")}const o=document.createElement("span");o.style.cssText="position: absolute;",o.innerHTML="&nbsp;";let i,a;if(typeof t=="number"){let u=e.value.substring(0,t);u&&(i=document.createTextNode(u)),u=e.value.substring(t),u&&(a=document.createTextNode(u))}else{const u=e.value;u&&(i=document.createTextNode(u))}if(i&&r.appendChild(i),r.appendChild(o),a&&r.appendChild(a),!r.parentElement){if(!e.parentElement)throw new Error("textField must have a parentElement to mirror");e.parentElement.insertBefore(r,e)}return r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft,{mirror:r,marker:o}}function gf(e,t=e.selectionEnd){const{mirror:n,marker:r}=vf(e,t),o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return setTimeout(()=>{n.remove()},5e3),{top:i.top-o.top,left:i.left-o.left}}const xn=new WeakMap;function wf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{if(e.matches("dialog:modal"))return!0}catch{}try{if(e.matches(":fullscreen"))return!0}catch{}return!1}class bf{constructor(t,n){this.expander=t,this.input=n,this.combobox=null,this.menu=null,this.match=null,this.justPasted=!1,this.lookBackIndex=0,this.oninput=this.onInput.bind(this),this.onpaste=this.onPaste.bind(this),this.onkeydown=this.onKeydown.bind(this),this.oncommit=this.onCommit.bind(this),this.onmousedown=this.onMousedown.bind(this),this.onblur=this.onBlur.bind(this),this.interactingWithList=!1,n.addEventListener("paste",this.onpaste),n.addEventListener("input",this.oninput),n.addEventListener("keydown",this.onkeydown),n.addEventListener("blur",this.onblur)}destroy(){this.input.removeEventListener("paste",this.onpaste),this.input.removeEventListener("input",this.oninput),this.input.removeEventListener("keydown",this.onkeydown),this.input.removeEventListener("blur",this.onblur)}dismissMenu(){this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex)}activate(t,n){var r,o;if(this.input!==document.activeElement&&this.input!==((o=(r=document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||o===void 0?void 0:o.activeElement))return;this.deactivate(),this.menu=n,n.id||(n.id=`text-expander-${Math.floor(Math.random()*1e5).toString()}`),this.expander.append(n),this.combobox=new cf(this.input,n),this.expander.dispatchEvent(new Event("text-expander-activate"));let{top:i,left:a}=gf(this.input,t.position);if(wf(n)){const u=this.input.getBoundingClientRect();i+=u.top,a+=u.left,getComputedStyle(n).position==="absolute"&&(i+=window.scrollY,a+=window.scrollX)}n.style.top=`${i}px`,n.style.left=`${a}px`,this.combobox.start(),n.addEventListener("combobox-commit",this.oncommit),n.addEventListener("mousedown",this.onmousedown),this.combobox.navigate(1)}deactivate(){const t=this.menu;return!t||!this.combobox?!1:(this.expander.dispatchEvent(new Event("text-expander-deactivate")),this.menu=null,t.removeEventListener("combobox-commit",this.oncommit),t.removeEventListener("mousedown",this.onmousedown),this.combobox.destroy(),this.
<style ${n}>
:host {
contain: content;
display: block;
position: relative;
width: 100%;
padding-bottom: calc(100% / (16 / 9));
}
@media (max-width: 40em) {
:host([short]) {
padding-bottom: calc(100% / (9 / 16));
}
}
#frame, #fallbackPlaceholder, iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
}
#frame {
cursor: pointer;
}
#fallbackPlaceholder {
object-fit: cover;
}
#frame::before {
content: '';
display: block;
position: absolute;
top: 0;
background-image: linear-gradient(180deg, #111 -20%, transparent 90%);
height: 60px;
width: 100%;
z-index: 1;
}
#playButton {
width: 68px;
height: 48px;
background-color: transparent;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
z-index: 1;
border: 0;
border-radius: inherit;
}
#playButton:before {
content: '';
border-style: solid;
border-width: 11px 0 11px 19px;
border-color: transparent transparent transparent #fff;
}
#playButton,
#playButton:before {
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
cursor: inherit;
}
/* Post-click styles */
.activated {
cursor: unset;
}
#frame.activated::before,
#frame.activated > #playButton {
display: none;
}
</style>
<div id="frame">
<picture>
<source id="webpPlaceholder" type="image/webp">
<source id="jpegPlaceholder" type="image/jpeg">
<img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy">
</picture>
<button id="playButton"></button>
</div>
`,this.domRefFrame=t.querySelector("#frame"),this.domRefImg={fallback:t.querySelector("#fallbackPlaceholder"),webp:t.querySelector("#webpPlaceholder"),jpeg:t.querySelector("#jpegPlaceholder")},this.domRefPlayButton=t.querySelector("#playButton")}setupComponent(){this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort())&&this.initIntersectionObserver()}attributeChangedCallback(t,n,r){switch(t){case"videoid":case"playlistid":case"videoTitle":case"videoPlay":{n!==r&&(this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1));break}default:break}}addIframe(t=!1){if(!this.isIframeLoaded){let n=t?0:1;const r=this.noCookie?"-nocookie":"";let o;this.playlistId?o=`?listType=playlist&list=${this.playlistId}&`:o=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1);const i=`
<iframe frameborder="0" title="${this.videoTitle}"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
src="https://www.youtube${r}.com/embed/${o}autoplay=${n}&${this.params}"
></iframe>`;this.domRefFrame.insertAdjacentHTML("beforeend",i),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var r,o;const t=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=t,this.domRefImg.jpeg.srcset=n,this.domRefImg.fallback.src=n,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(o=(r=this.domRefImg)==null?void 0:r.fallback)==null||o.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const t={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((r,o)=>{r.forEach(i=>{i.isIntersecting&&!this.isIframeLoaded&&(Le.warmConnections(),this.addIframe(!0),o.unobserve(this))})},t).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var t,n;(n=(t=this.shadowRoot.querySelector("iframe"))==null?void 0:t.contentWindow)==null||n.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(t,n){const r=document.createElement("link");r.rel=t,r.href=n,r.crossOrigin="true",document.head.append(r)}static warmConnections(){Le.isPreconnected||window.liteYouTubeIsPreconnected||(Le.addPrefetch("preconnect","https://i.ytimg.com/"),Le.addPrefetch("preconnect","https://s.ytimg.com"),Le.addPrefetch("preconnect","https://www.youtube.com"),Le.addPrefetch("preconnect","https://www.google.com"),Le.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Le.addPrefetch("preconnect","https://static.doubleclick.net"),Le.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Le.isPreconnected=!1;customElements.define("lite-youtube",Le);const Hf="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Dn=(e,t,n)=>{let r=0;for(;t<n;)r*=83,r+=Hf.indexOf(e[t++]);return r},Ms=Math.pow,_n=Math.PI,Bf=_n*2,Os=3294.6,Ps=269.025,Uf=e=>e>10.31475?Ms(e/Ps+.052132,2.4):e/Os,kr=e=>~~(e>1227e-8?Ps*Ms(e,.416666)-13.025:e*Os+1),sn=e=>(e<0?-1:1)*e*e,Ji=e=>{for(e+=_n/2;e>_n;)e-=Bf;const t=1.27323954*e-.405284735*sn(e);return .225*(sn(t)-t)+t};function Kf(e){const t=Dn(e,2,6);return[t>>16,t>>8&255,t&255]}function Op(e,t,n,r){const o=Dn(e,0,1),i=o%9+1,a=~~(o/9)+1,u=i*a;let s=0,l=0,d=0,c=0,f=0,h=0,p=0,m=0,y=0,_=0,v=0,T=0,O=0,x=0;const b=(Dn(e,1,2)+1)/13446*(r|1),M=new Float64Array(u*3),H=Kf(e);for(s=0;s<3;s++)M[s]=Uf(H[s]);for(s=1;s<u;s++)x=Dn(e,4+s*2,6+s*2),M[s*3]=sn(~~(x/(19*19))-9)*b,M[s*3+1]=sn(~~(x/19)%19-9)*b,M[s*3+2]=sn(x%19-9)*b;const E=t*4,L=new Uint8ClampedArray(E*n);for(c=0;c<n;c++)for(T=_n*c/n,d=0;d<t;d++){for(f=0,h=0,p=0,O=_n*d/t,l=0;l<a;l++)for(y=Ji(T*l),s=0;s<i;s++)m=Ji(O*s)*y,_=(s+l*i)*3,f+=M[_]*m,h+=M[_+1]*m,p+=M[_+2]*m;v=4*d+c*E,L[v]=kr(f),L[v+1]=kr(h),L[v+2]=kr(p),L[v+3]=255}return L}var tn=(e=>(e.Mouse="mouse",e.Touch="touch",e.Pointer="pointer",e))(tn||{}),nn=(e=>(e.CancelledByMovement="cancelled-by-movement",e.CancelledByRelease="cancelled-by-release",e.CancelledOutsideElement="cancelled-outside-element",e))(nn||{});const Rs=()=>typeof window=="object"?(window==null?void 0:window.PointerEvent)??null:null,Wf=()=>typeof window=="object"?(window==null?void 0:window.TouchEvent)??null:null;function Ls(e){const{nativeEvent:t}=e,n=Wf();return n&&t instanceof n||"touches"in e}function Ds(e){const t=Rs();return e.nativeEvent instanceof MouseEvent&&!(t&&e.nativeEvent instanceof t)}function Is(e){const{nativeEvent:t}=e;if(!t)return!1;const n=Rs();return n&&t instanceof n||"pointerId"in t}function Xi(e){return Ds(e)||Ls(e)||Is(e)}function Qi(e){return Ls(e)?{x:e.touches[0].pageX,y:e.touches[0].pageY}:Ds(e)||Is(e)?{x:e.pageX,y:e.pageY}:null}function qf(e){return{target:e.target,currentTarget:e.currentTarget,nativeEvent:e,persi
//# sourceMappingURL=vendor--8C7Txey.js.map