Files
kasm-registry/1.1/_next/static/chunks/pages/_app-4365ea678029e7d6.js

1 line
45 KiB
JavaScript
Raw Normal View History

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0!==(n=(function(){return o}).apply(t,[]))&&(e.exports=n)}()},1118:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(9610)}])},8199:function(e,t){"use strict";var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return d}});let s="refresh",a="navigate",u="restore",c="server-patch",l="prefetch",f="fast-refresh",p="server-action";function d(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(i=r||(r={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7195:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(8337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=n(8754),o=n(5893),i=r._(n(7294)),s=n(6075),a=n(3955),u=n(8041),c=n(9903),l=n(5490),f=n(1928),p=n(257),d=n(4229),h=n(7195),y=n(9470),m=n(8199),v=new Set;function b(e,t,n,r,o,i){if(i||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let g=i.default.forwardRef(function(e,t){let n,r;let{href:u,as:v,children:g,prefetch:E=null,passHref:O,replace:j,shallow:_,scroll:C,locale:w,onClick:N,onMouseEnter:T,onTouchStart:P,legacyBehavior:k=!1,...S}=e;n=g,k&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let R=i.default.useContext(f.RouterContext),L=i.default.useContext(p.AppRouterContext),M=null!=R?R:L,A=!R,D=!1!==E,H=null===E?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:I,as:U}=i.default.useMemo(()=>{if(!R){let e=x(u);return{href:e,as:v?x(v):e}}let[e,t]=(0,s.resolveHref)(R,u,!0);return{href:e,as:v?(0,s.resolveHref)(R,v):t||e}},[R,u,v]),V=i.default.useRef(I),F=i.default.useRef(U);k&&(r=i.default.Children.only(n));let q=k?r&&"object"==typeof r&&r.ref:t,[W,K,Z]=(0,d.useIntersection)({rootMargin:"200px"}),B=i.default.useCallback(e=>{(F.current!==U||V.current!==I)&&(Z(),F.current=U,V.current=I),W(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[U,q,I,Z,W]);i.default.useEffect(()=>{M&&K&&D&&b(M,I,U,{locale:w},{kind:H},A)},[U,I,K,w,D,null==R?void 0:R.locale,M,A,H]);let z={ref:B,onClick(e){k||"function"!=typeof N||N(e),k&&r.props&&"function"==