PageSourceSearch

https://avaloniaui.net/assets/root-CH88Louh.js

js avaloniaui.net collected 2026-10-02 02:40:43 UTC 6,443 bytes, 80 lines download raw bytes

1import{w as l,c,M as d,d as m,S as p,e as h,O as g,i as f,r as u}from"./chunk-LFPYN7LY-BFxOW0GP.js";import{j as e}from"./jsx-runtime-u17CrQMm.js";import{o as y,w as S,s as x}from"./structured-data-BFMMei1x.js";import{S as w,b as j}from"./analytics-C7906a3W.js";function T({children:o}){return e.jsxs("html",{lang:"en",children:[e.jsxs("head",{children:[e.jsx("meta",{charSet:"UTF-8"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"48x48",href:"/favicon-48x48.png"}),e.jsx("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/favicon-192x192.png"}),e.jsx("link",{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}),e.jsx("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),e.jsx("link",{rel:"manifest",href:"/site.webmanifest",crossOrigin:"use-credentials"}),e.jsx("meta",{name:"apple-mobile-web-app-title",content:"Avalonia UI"}),e.jsx("meta",{name:"application-name",content:"Avalonia UI"}),e.jsx("meta",{name:"theme-color",content:"#1e1e2e"}),e.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),e.jsx("link",{rel:"alternate",type:"application/rss+xml",title:"Avalonia UI Blog",href:"/blog/rss.xml"}),e.jsx("script",{dangerouslySetInnerHTML:{__html:`
2(function () {
3  var rule = ':root{--hero-field:var(--hero-field-' + (1 + Math.floor(Math.random() * 6)) + ')}';
4  try {
5    if (typeof CSSStyleSheet === 'function' &&
6        'replaceSync' in CSSStyleSheet.prototype &&
7        Array.isArray(document.adoptedStyleSheets)) {
8      var sheet = new CSSStyleSheet();
9      sheet.replaceSync(rule);
10      document.adoptedStyleSheets = document.adoptedStyleSheets.concat(sheet);
11      return;
12    }
13  } catch (e) { /* fall through to the <style> path */ }
14  try {
15    var el = document.createElement('style');
16    el.textContent = rule;
17    document.head.appendChild(el);
18  } catch (e) { /* variant 1 stands */ }
19})();
20`}}),e.jsx("script",{src:"/scripts/announcement-banner.js?v=1"}),e.jsx("link",{rel:"preload",href:"/fonts/SaansRegular.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.jsx("link",{rel:"preload",href:"/fonts/SaansUprights-VF.woff2",as:"font",type:"font/woff2",crossOrigin:"anonymous"}),e.jsx("script",{dangerouslySetInnerHTML:{__html:`
21(function () {
22  if (!document.fonts || !document.fonts.load) return;
23  var rule = ':root{--hero-rise-play:paused}';
24  var sheet = null;
25  var el = null;
26  try {
27    if (typeof CSSStyleSheet === 'function' &&
28        'replaceSync' in CSSStyleSheet.prototype &&
29        Array.isArray(document.adoptedStyleSheets)) {
30      sheet = new CSSStyleSheet();
31      sheet.replaceSync(rule);
32      document.adoptedStyleSheets = document.adoptedStyleSheets.concat(sheet);
33    }
34  } catch (e) { sheet = null; }
35  if (!sheet) {
36    try {
37      var head = document.head;
38      el = document.createElement('style');
39      el.textContent = rule;
40      head.appendChild(el);
41    } catch (e) { return; /* ungated entrance, same as JS off */ }
42  }
43  var done = function () {
44    try { if (sheet) sheet.replaceSync(''); } catch (e) { /* gate stuck shut is worse than no gate */ }
45    if (el && el.parentNode) el.parentNode.removeChild(el);
46  };
47  Promise.race([
48    Promise.all([
49      document.fonts.load('380 1em "Saans Regular"'),
50      document.fonts.load('400 1em "Saans"')
51    ]),
52    new Promise(function (r) { setTimeout(r, 1500); })
53  ]).then(done, done);
54})();
55`}}),e.jsx("script",{dangerouslySetInnerHTML:{__html:`
56window.dataLayer = window.dataLayer || [];
57function gtag(){dataLayer.push(arguments);}
58gtag('consent', 'default', {
59  ad_storage: 'denied',
60  ad_user_data: 'denied',
61  ad_personalization: 'denied',
62  analytics_storage: 'denied',
63  functionality_storage: 'granted',
64  personalization_storage: 'denied',
65  security_storage: 'granted',
66  wait_for_update: 500
67});
68window.dataLayer.push({
69  'gtm.start': new Date().getTime(),
70  event: 'gtm.js'
71});
72(function(w,d,s,l,i){
73  var firstScript=d.getElementsByTagName(s)[0];
74  var gtmScript=d.createElement(s);
75  var layer=l!='dataLayer'?'&l='+l:'';
76  gtmScript.async=true;
77  gtmScript.src='https://www.googletagmanager.com/gtm.js?id='+i+layer;
78  firstScript.parentNode.insertBefore(gtmScript,firstScript);
79})(window,document,'script','dataLayer','GTM-P3B9LZDZ');
80`}}),e.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify([y(),S(),x()])}}),e.jsx(d,{}),e.jsx(m,{})]}),e.jsxs("body",{children:[e.jsx("noscript",{children:e.jsx("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-P3B9LZDZ",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})}),o,e.jsx(p,{}),e.jsx(h,{})]})]})}function k(){return[{title:"Avalonia UI - The Cross-Platform .NET UI Framework"},{name:"description",content:"Build cross-platform desktop and mobile apps with .NET. One codebase for Windows, macOS, Linux, iOS, Android, and WebAssembly."},{property:"og:image",content:`${w}/images/og/default.png`},{property:"og:image:width",content:"2048"},{property:"og:image:height",content:"1152"},{property:"og:image:type",content:"image/png"},{property:"og:site_name",content:"Avalonia UI"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:site",content:"@AvaloniaUI"}]}const b=l(function(){return e.jsx(g,{})}),A=c(function({error:n}){const r=f(n),t=r?n.status:500,s=r?n.statusText:"Internal Server Error",i=t===404?"Page not found":"Something went wrong",a=t===404?"The page you are looking for does not exist or has been moved.":r?s:n instanceof Error?n.message:"An unexpected error occurred";return u.useEffect(()=>{j(t,a,window.location.pathname)},[t,a]),e.jsxs(e.Fragment,{children:[e.jsx("meta",{name:"robots",content:"noindex"}),e.jsx("title",{children:`${t} ${s} - Avalonia UI`}),e.jsx("meta",{name:"description",content:a}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"100vh",fontFamily:"system-ui, sans-serif"},children:[e.jsx("h1",{style:{fontSize:"4rem",margin:0},children:t}),e.jsx("h2",{style:{fontSize:"1.5rem",margin:"0.5rem 0 0",fontWeight:380},children:i}),e.jsx("p",{style:{fontSize:"1.25rem",color:"#666"},children:a}),e.jsx("a",{href:"/",style:{marginTop:"1rem",color:"#0066cc"},children:"Go home"})]})]})});export{A as ErrorBoundary,T as Layout,b as default,k as meta};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.