@zaisma/game-server 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bench/glass.js +233 -65
  2. package/package.json +1 -1
package/bench/glass.js CHANGED
@@ -10654,8 +10654,9 @@ html { -webkit-tap-highlight-color: transparent; }
10654
10654
  --size-icon: 20px; --pad-icon: 12px;
10655
10655
  --control-height-tiny: 1.625rem; --control-height-small: 2.25rem; --control-height-regular: 2.75rem; --control-height-field: 3.25rem; --control-height-big: 3.5rem;
10656
10656
  /* The named sizes, the only widths a layout takes (layout.ts): a cell's least width in a grid, by what it holds; and the widest a
10657
- paragraph runs in a pane that fits what's in it, for reading. */
10658
- --size-cover: 180px; --size-card: 280px; --size-figure: 150px; --size-reading: 60ch;
10657
+ paragraph runs in a pane that fits what's in it, for reading. A cover's and a card's in rem (180 and 280px at the browser's own 16px), so
10658
+ a grid holds fewer across as its words grow, never cutting them. */
10659
+ --size-cover: 11.25rem; --size-two-across-least: calc(15rem - 120px); --size-card: 17.5rem; --size-figure: 150px; --size-reading: 60ch;
10659
10660
  /* Page shapes (layout.ts, html.ts's pageShape): a reading page's one column, and the wide frame every page's header, footer and panes sit in,
10660
10661
  so nothing stretches across a big screen. A 2560 screen shows the world either side of the frame; a laptop's frame is its width less the margins. */
10661
10662
  --size-page-reading: 820px; --size-page-wide: 1680px;
@@ -10893,12 +10894,17 @@ var ROW_LAYOUT_SCRIPT = `/* row layout */(function () {
10893
10894
  `;
10894
10895
  var MAXIMUM_ONE_LINE_COVER_COUNT = 6;
10895
10896
  var COVER_LEAST_PX = 180;
10897
+ var BROWSER_TEXT_PX = 16;
10896
10898
  var CONTROL_STACK_GAP_PX = 8;
10899
+ var coversShortOf = (coverCount) => `calc(${coverCount * COVER_LEAST_PX / BROWSER_TEXT_PX}rem + ${(coverCount - 1) * CONTROL_STACK_GAP_PX - 1}px)`;
10897
10900
  function grid(options) {
10898
10901
  if (options.itemSize === "cover" && options.isAllOnOneLine) {
10899
10902
  if (options.items.length > MAXIMUM_ONE_LINE_COVER_COUNT) throw new Error(`One line holds ${MAXIMUM_ONE_LINE_COVER_COUNT} covers at most, not ${options.items.length}: a longer list is a grid or a track.`);
10900
10903
  return asLayout(html`<div class="grid-one-line">${gridMarkup(options, ` is-one-line${options.isAtLeastTwoAcross ? " is-at-least-two-across" : ""}${options.isLeadWideAtTwoAcross ? " is-lead-wide" : ""}`)}</div>`);
10901
10904
  }
10905
+ const twoAcross = options.itemSize === "cover" && options.isAtLeastTwoAcross ? " is-at-least-two-across" : "";
10906
+ if (options.itemSize === "cover" && options.hasLeadCell) return asLayout(html`<div class="grid-lead-cell">${gridMarkup(options, ` has-lead-cell${twoAcross}`)}</div>`);
10907
+ if (twoAcross) return asLayout(gridMarkup(options, twoAcross));
10902
10908
  return asLayout(gridMarkup(options, ""));
10903
10909
  }
10904
10910
  function gridMarkup(options, variantClass) {
@@ -11129,10 +11135,21 @@ var GRID_STYLES = `
11129
11135
  /* Covers on one line, sharing it equally however many there are: goes by the width of what holds it (a container), to three, two and one across. */
11130
11136
  .grid-one-line { container-type: inline-size; width: 100%; min-width: 0; }
11131
11137
  .layout-grid.item-cover.is-one-line { gap: var(--gap-control-stack); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
11132
- @container (max-width: ${MAXIMUM_ONE_LINE_COVER_COUNT * COVER_LEAST_PX + (MAXIMUM_ONE_LINE_COVER_COUNT - 1) * CONTROL_STACK_GAP_PX - 1}px) { .layout-grid.item-cover.is-one-line { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
11133
- @container (max-width: ${3 * COVER_LEAST_PX + 2 * CONTROL_STACK_GAP_PX - 1}px) { .layout-grid.item-cover.is-one-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
11134
- @container (max-width: ${3 * COVER_LEAST_PX + 2 * CONTROL_STACK_GAP_PX - 1}px) { .layout-grid.item-cover.is-one-line.is-lead-wide > :first-child { grid-column: 1 / -1; } } }
11135
- @container (max-width: ${2 * COVER_LEAST_PX + CONTROL_STACK_GAP_PX - 1}px) { .layout-grid.item-cover.is-one-line:not(.is-at-least-two-across) { grid-template-columns: minmax(0, 1fr); } }
11138
+ @container (max-width: ${coversShortOf(MAXIMUM_ONE_LINE_COVER_COUNT)}) { .layout-grid.item-cover.is-one-line { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
11139
+ @container (max-width: ${coversShortOf(3)}) { .layout-grid.item-cover.is-one-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
11140
+ @container (max-width: ${coversShortOf(3)}) { .layout-grid.item-cover.is-one-line.is-lead-wide > :first-child { grid-column: 1 / -1; } }
11141
+ @container (max-width: ${coversShortOf(2)}) { .layout-grid.item-cover.is-one-line:not(.is-at-least-two-across) { grid-template-columns: minmax(0, 1fr); } }
11142
+ /* A lead cell: the first cover two cells wide and two lines tall where three or more fit across, so it's about twice the rest, never
11143
+ more; the whole line where two fit; one across, a cover like the rest. Every cover keeps its 16:9. */
11144
+ .grid-lead-cell { container-type: inline-size; width: 100%; min-width: 0; }
11145
+ /* Two to a line at the least: each cover a cover's least width or half the line, whichever is less, and one across where half the line is
11146
+ too narrow for a title: the floor is 120px at the usual text (two across on the narrowest phone) and grows faster than the text, 360px at
11147
+ twice it. */
11148
+ .layout-grid.item-cover.is-at-least-two-across:not(.is-one-line) { grid-template-columns: repeat(auto-fill, minmax(max(min(calc(50% - var(--gap-block-block) / 2), var(--size-cover)), var(--size-two-across-least)), 1fr)); }
11149
+ .layout-grid.has-lead-cell { grid-auto-flow: row dense; }
11150
+ .layout-grid.has-lead-cell > .grid-cell:first-child { grid-column: span 2; grid-row: span 2; }
11151
+ /* Below three across, the lead takes the whole line, never a column past it. */
11152
+ @container (max-width: ${coversShortOf(3)}) { .layout-grid.has-lead-cell > .grid-cell:first-child { grid-column: 1 / -1; grid-row: auto; } }
11136
11153
  `;
11137
11154
  var LEAD_AND_SIDE_STYLES = `
11138
11155
  .lead-and-side { container: lead-and-side / inline-size; width: 100%; min-width: 0; }
@@ -11147,9 +11164,9 @@ var LEAD_AND_SIDE_STYLES = `
11147
11164
  var TRACK_STYLES = `
11148
11165
  /* A track and its rail are one thing to what holds them: whatever gap it puts between its parts never falls between them. */
11149
11166
  .track-holder { display: flex; flex-direction: column; min-width: 0; }
11150
- /* A track: a row of cells that scrolls sideways, fading at an edge with more past it (data-fades-sideways). A cover's cell is a fifth of the
11151
- track's own width, from 200px to 260px, so a few show with the next peeking in; room above and below them for their lifted shadow, given
11152
- back. Its sides are its box's, so what scrolls by stops at the frame gap, where the first cover sits. */
11167
+ /* A track: a row of cells that scrolls sideways, fading at an edge with more past it (data-fades-sideways). A cover's or picture's cell is
11168
+ a fifth of the track's own width, from 200px to 260px (a cover's in rem, growing with its words), so a few show with the next peeking in;
11169
+ room above and below them for their lifted shadow, given back. Its sides are its box's, so what scrolls by stops at the frame gap, where the first cover sits. */
11153
11170
  .layout-track { --fade-sideways-px: 48px; --edge-room: var(--gap-words-control); container-type: inline-size; display: flex; gap: var(--gap-block-block); scroll-snap-type: x proximity;
11154
11171
  padding: var(--edge-room) 0; margin: calc(-1 * var(--edge-room)) 0; }
11155
11172
  /* Its rail (data-side-rail, Rail in Navigation) runs under it, past the room kept for what lifts in it, never into it. A track that fits
@@ -11165,7 +11182,9 @@ var TRACK_STYLES = `
11165
11182
  /* With no words under them, they keep no rail's room while they fit: nothing under them needs the words margin, so they sit at the frame gap
11166
11183
  from the pane's foot as any block does, and the rail takes its room only once there's something to scroll. */
11167
11184
  .layout-track:is(.item-picture, .item-thumbnail):not(.shows-side-rail) { margin-bottom: calc(-1 * var(--edge-room)); }
11168
- .layout-track:is(.item-cover, .item-picture) > * { flex: 0 0 clamp(200px, 20cqi, 260px); scroll-snap-align: start; }
11185
+ .layout-track.item-cover > * { flex: 0 0 clamp(12.5rem, 20cqi, 16.25rem); scroll-snap-align: start; }
11186
+ /* A picture has no words to grow with the text: its cell stays in px. */
11187
+ .layout-track.item-picture > * { flex: 0 0 clamp(200px, 20cqi, 260px); scroll-snap-align: start; }
11169
11188
  `;
11170
11189
  var COLUMNS_STYLES = `
11171
11190
  /* Columns: two halves of the width, by the layout's own width (a container); one over the other below two columns' least width. A column's
@@ -11458,18 +11477,18 @@ var MINIFIED_FIRST_PAINT_PIECES = {
11458
11477
  "page-switch": { sourceSha256: "b45fa541791f7d8f28b01a60604545e745d0d88561f101df463800a5458c050d", minifiedText: '!function(){var e=window.zaismaPieces=window.zaismaPieces||{};e["page-switch"]||(e["page-switch"]=!0,function(){var e="zaisma:opening-game",t=document.documentElement;function n(e){try{var t=new URL(e,location.href),n=t.origin===location.origin&&t.pathname.match(/^\\/g\\/([^/]+)$/);return n?n[1]:null}catch{return null}}document.addEventListener("click",(function(t){var r=t.target.closest&&t.target.closest("a[href]"),i=r&&n(r.href);try{sessionStorage.removeItem(e)}catch{}if(!(!i||!r.querySelector(".picture, img")||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||r.target&&"_self"!==r.target||i===n(location.href)))try{sessionStorage.setItem(e,JSON.stringify({slug:i,pressed_at_ms:Date.now()}))}catch{}}));var r=performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],i=!1;if(r&&"back_forward"!==r.type&&!matchMedia("(prefers-reduced-motion: reduce)").matches){try{i=new URL(document.referrer).origin===location.origin}catch{}var a=!1,s=!1;t.classList.add("is-page-arriving","is-page-held"),(!i||"navigate"!==r.type)&&t.classList.add("is-page-arriving-fresh"),document.prerendering?document.addEventListener("prerenderingchange",(function(){o(),c()}),{once:!0}):o();try{new PerformanceObserver((function(e){e.getEntriesByName("first-contentful-paint").length&&c()})).observe({type:"paint",buffered:!0})}catch{c()}setTimeout(c,1e3)}function o(){var r=null;try{r=JSON.parse(sessionStorage.getItem(e)||"null"),sessionStorage.removeItem(e)}catch{}r&&r.slug===n(location.href)&&Date.now()-r.pressed_at_ms<1e4&&t.classList.add("is-opening-game")}function c(){a=!0,s||!a||document.prerendering||(s=!0,requestAnimationFrame((function(){t.classList.remove("is-page-held"),setTimeout((function(){t.classList.remove("is-page-arriving","is-page-arriving-fresh","is-opening-game")}),1500)})))}}())}();' },
11459
11478
  "measured-glass": { sourceSha256: "1be0add557bf20979364501bb430bce7fb425e720b0059b4e0104eb39962d580", minifiedText: '!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["measured-glass"]||(t["measured-glass"]=!0,function(){function t(t){return t.closest(":has(> .backdrop)")}function a(t){var a=t&&t.querySelector(":scope > .backdrop[data-adapts-glass][data-glass-kind], :scope > .backdrop .backdrop[data-adapts-glass][data-glass-kind]");return a?{isSmoked:"smoked"===a.getAttribute("data-glass-kind"),tint:a.getAttribute("data-glass-tint")||""}:null}function e(t,a){t.classList.toggle("smoke",a.isSmoked),a.isSmoked?t.removeAttribute("data-theme-choice"):t.hasAttribute("data-theme-choice")||t.setAttribute("data-theme-choice","light"),a.tint&&t.style.setProperty("--glass-tint",a.tint)}window.zaismaWatch&&(window.zaismaWatch.eachArriving("[data-adapts-glass][data-glass-kind]",(function(i){var s=i.parentElement,o=a(s);s&&o&&function(t,a){void 0===t.ownThemeChoice&&(t.ownThemeChoice=t.getAttribute("data-theme-choice")),t.classList.toggle("smoke",a.isSmoked),a.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice",t.ownThemeChoice||"light")}(s,o),document.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(i){var s=a(t(i));s&&e(i,s)}))})),window.zaismaWatch.eachArriving("[data-glass]:not([data-cut-line])",(function(i){var s=a(t(i));s&&e(i,s)})))}())}();' },
11460
11479
  "pictures": { sourceSha256: "4ceee88fba7a67d95bf916e29f7dc4bd184c74e88a8a61816306015b97a0a61b", minifiedText: '!function(){var n=window.zaismaPieces=window.zaismaPieces||{};n.pictures||(n.pictures=!0,function(){function n(n,e){if(e)return n.classList.add("at-once"),void n.classList.add("is-shown");n.addEventListener("animationend",(function(){n.classList.add("at-once")}),{once:!0}),n.classList.contains("backdrop")&&window.zaismaWatch&&window.zaismaWatch.afterSettling?window.zaismaWatch.afterSettling((function(){n.classList.add("is-shown")})):n.classList.add("is-shown")}window.zaismaWatch.each("img.reveals",(function(e){var i=!!(window.performance&&performance.getEntriesByType&&performance.getEntriesByType("paint").length);e.complete&&e.naturalWidth&&!i?n(e,!0):e.complete&&e.naturalWidth?(e.decode?e.decode():Promise.resolve()).then((function(){n(e,!1)}),(function(){n(e,!1)})):e.addEventListener("load",(function(){(e.decode?e.decode():Promise.resolve()).then((function(){n(e,!1)}),(function(){n(e,!1)}))}))}))}())}();' },
11461
- "glass": { sourceSha256: "13bfcb3a841769ff5c5525b3971a8408680a8facc9a62c2880d18103a6e85ae3", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.glass||(t.glass=!0,function(){var t="http://www.w3.org/2000/svg",e={};function n(t){return t in e||(e[t]=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--"+t.replace(/-(large|small)$/,"-cut-$1")))||0),e[t]}function r(t,e){var r=(t.getAttribute("data-glass-corners")||e).trim().split(/\\s+/);return 1===r.length&&/^[a-z]+$/.test(r[0])&&(r=[r[0]+"-large",r[0]+"-small",r[0]+"-large",r[0]+"-small"]),r.map((function(t){return/^[a-z]+-(large|small)$/.test(t)?n(t):Number(t)||0}))}function a(t){return t.map((function(t){return t[0].toFixed(1)+","+t[1].toFixed(1)})).join(" ")}function i(t){var e=t.querySelector(":scope > .waiting-glint");if(function(t){var e=t.parentElement;return"true"===t.getAttribute("aria-busy")||!!t.querySelector(':scope > input[aria-busy="true"]')||!(!e||"true"!==e.getAttribute("aria-busy"))||t.hasAttribute("data-waits-here")&&!!t.closest('[aria-busy="true"]')}(t))e&&e.classList.contains("is-leaving")&&e.classList.remove("is-leaving"),e||((e=document.createElement("span")).className="waiting-glint",e.setAttribute("aria-hidden","true"),t.insertBefore(e,t.firstChild));else if(e&&!e.classList.contains("is-leaving")){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void e.remove();e.classList.add("is-leaving"),e.addEventListener("animationend",(function(t){"waiting-glint-leaves"===t.animationName&&e.classList.contains("is-leaving")&&e.remove()}))}}["pane","header","menu","strip"].forEach((function(t){n(t+"-large"),n(t+"-small")})),window.zaismaCorners=r,window.zaismaWaiting={redraw:function(t){[t,t.parentElement].concat(Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"))).forEach((function(t){t&&t.hasAttribute("data-cut-line")&&i(t)}))}};var o=[80,100,70,28,12,0,40,62],s={"top-left":80,top:100,"top-right":70,right:28,"bottom-right":12,bottom:0,"bottom-left":40,left:62};function l(e,n,r,i,o){for(;n.length<r.length;){var s=document.createElementNS(t,"polygon");e.appendChild(s),n.push(s)}for(;n.length>r.length;)e.removeChild(n.pop());n.forEach((function(t,e){var n=(e+1)%r.length;t.style.setProperty("--side-light",o[e]+"%"),t.setAttribute("points",a([r[e],r[n],i[n],i[e]]))}))}var c=null;function u(t,e){if(c)t();else{c={rects:new Map,sizes:new Map,groups:new Map,scrollers:new Map,isBatch:!!e,isMeasured:!1};try{t()}finally{c=null}}}function d(t){u(t,!0)}function f(){c.isMeasured=!0,document.querySelectorAll("[data-cut-line], [data-glass]").forEach((function(t){c.rects.set(t,t.getBoundingClientRect()),c.sizes.set(t,[t.offsetWidth,t.offsetHeight])})),document.querySelectorAll("[data-cut-line]").forEach((function(t){(function(t){var e=c.groups.get(t);return e||(e=[],c.groups.set(t,e)),e})(G(t)).push(t)})),document.querySelectorAll("body .own-scroll, body .scrolls, body .layout-track").forEach((function(t){c.scrollers.set(t,h(t))}))}function h(t){return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth}}function p(t){var e=c.scrollers.get(t);return e||(e=h(t),c.scrollers.set(t,e)),e}function m(t){c.isBatch&&!c.isMeasured&&f();var e=c.rects.get(t);return e||(e=t.getBoundingClientRect(),c.rects.set(t,e)),e}function g(t){c.isBatch&&!c.isMeasured&&f();var e=c.sizes.get(t);return e||(e=[t.offsetWidth,t.offsetHeight],c.sizes.set(t,e)),e}function v(t){if(c.isBatch&&!c.isMeasured&&f(),c.isMeasured)return c.groups.get(t)||[];var e=c.groups.get(t);return e||(e=Array.prototype.filter.call((t||document).querySelectorAll("[data-cut-line]"),(function(e){return G(e)===t})),c.groups.set(t,e)),e}var y=new Map,b=!1;function A(){d((function(){y.forEach((function(t,e){e.isConnected?t():y.delete(e)}))}))}window.zaismaRedrawEdges=A;var w=!(!document.fonts||!document.fonts.addEventListener);function E(){w||b||!document.fonts||!document.fonts.ready||"loading"!==document.fonts.status||(b=!0,document.fonts.ready.then((function(){b=!1,A()})))}w&&document.fonts.addEventListener("loadingdone",(function(){A(),lt()}));var M=-1;window.zaismaWatch.size(document.documentElement,(function(){var t=document.documentElement.clientWidth,e=M<0;t!==M&&(M=t,e||(A(),lt()))}),d);var x=0;function S(e,n){var r=e.querySelector(":scope > .edge"),i="zg"+x++,c=null,f="",h="",p=e.hasAttribute("data-cut-line");function m(e,n){var a=document.createElementNS(t,e);for(var i in n)a.setAttribute(i,n[i]);return r.appendChild(a),a}function v(){u(b)}function b(){var t=g(e),u=t[0],d=t[1];if(u&&d){var v,y,b=Math.min(u,d),A=Number(e.getAttribute("data-glass-band"))||Math.max(2,Math.min(4,.04*b));if(c||(r.innerHTML='<defs><linearGradient id="'+i+'fr" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#7fd8ff" stop-opacity="0.5"/><stop offset="0.5" stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#ffc58a" stop-opacity="0.5"/></linearGradient><linearGradient id="'+i+'in" x1="1" y1="1" x2="0" y2="0"><stop class="gleam" offset="0"/><stop class="gleam" offset="0.4" stop-opacity="0"/><stop class="gleam" offset="0.75" stop-opacity="0"/><stop class="gleam" offset="1" stop-opacity="0.35"/></linearGradient><linearGradient id="'+i+'sp" x1="0" y1="0" x2="1" y2="1"><stop class="spec" offset="0"/><stop class="spec" offset="0.08"/><stop class="spec" offset="0.3" stop-opacity="0"/></linearGradient></defs>',c={dense:m("path",{class:"dense","fill-rule":"evenodd"}),bevel:m("g",{class:"bevel"}),bevelQuads:[],hair:m("polygon",{class:"hair",fill:"none","stroke-width":"1.2"}),rimBand:m("g",{class:"rim-band"}),rimQuads:[],rim:m("polygon",{class:"rim",fill:"none","stroke-width":"1.6"}),spec:m("polygon",{class:"spec-line",fill:"none",stroke:"url(#"+i+"sp)","stroke-width":"1.4"}),fringe:m("polygon",{class:"fringe",fill:"none",stroke:"url(#"+i+"fr)","stroke-width":"0.8"}),inner:m("polygon",{class:"inner",fill:"none",stroke:"url(#"+i+"in)","stroke-width":"1"}),caustics:p?[]:[1,2,3,4].map((function(t){return{group:m("g",{class:"caustic step-"+t}),quads:[]}})),facets:[]}),p){var w=$(V(e,u,d)),E=u+"x"+d+":"+a(w);if(E===f)return;f=E,e.style.setProperty("--cut-shape",Q(w)),e.style.clipPath=Q(w),v=function(t){return I(w,t)},y=w.map((function(t,e){return s[D(t,w[(e+1)%w.length])]}))}else{var M=n().map((function(t){return Math.min(t,Math.round(.3*b))})),x=M.join(",")+":"+A;x!==f&&(f=x,e.style.setProperty("--glass-clip","polygon(0 "+M[0]+"px, "+M[0]+"px 0, calc(100% - "+M[1]+"px) 0, 100% "+M[1]+"px, 100% calc(100% - "+M[2]+"px), calc(100% - "+M[2]+"px) 100%, "+M[3]+"px 100%, 0 calc(100% - "+M[3]+"px))"),["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,n){e.style.setProperty("--glass-cut-"+t,M[n]+A*Math.SQRT2+"px")})),window.zaismaCast&&e.classList.contains("floating-pane")&&e.matches(":popover-open")&&window.zaismaCast(e));var S=e.zaismaEdgeShape?e.zaismaEdgeShape(u,d,M):null,C=Number(e.getAttribute("data-glass-lean"));!S&&C&&(S=[[d*C,0],[u,0],[u,d],[0,d]],e.style.setProperty("--glass-clip",Q(S))),S&&(S=$(S));var z=u+"x"+d+":"+A+":"+x+(S?":"+a(S):"");if(z===h)return;h&&function(t){it.add(t),st()}(e),h=z,S?(v=function(t){return I(S,t)},y=S.map((function(t,e){return s[D(t,S[(e+1)%S.length])]}))):(v=function(t){return function(t,e,n,r){var a=r,i=.414*r,o=n.map((function(t){return t>0?t+i:a}));return[[a,o[0]],[o[0],a],[t-o[1],a],[t-a,o[1]],[t-a,e-o[2]],[t-o[2],e-a],[o[3],e-a],[a,e-o[3]]]}(u,d,M,t)},y=o)}r.removeAttribute("viewBox"),c.dense.setAttribute("d","M"+a(v(0))+"Z M"+a(v(1.6*A))+"Z"),l(c.bevel,c.bevelQuads,v(0),v(A),y),l(c.rimBand,c.rimQuads,v(0),v(1.6),y),c.hair.setAttribute("points",a(v(.6))),c.rim.setAttribute("points",a(v(1.6))),c.spec.setAttribute("points",a(v(1.6))),c.fringe.setAttribute("points",a(v(Math.max(2.4,A-.8)))),c.inner.setAttribute("points",a(v(A)));var L=[A,A+2,A+5,A+9,A+14];c.caustics.forEach((function(t,e){l(t.group,t.quads,v(L[e]),v(L[e+1]),y)}));var q=v(0),k=[];for(q.forEach((function(t,e){var n=q[(e+1)%q.length],r=D(t,n);r.indexOf("-")>0&&Math.hypot(n[0]-t[0],n[1]-t[1])>.5&&k.push([t,n,r])}));c.facets.length<k.length;)c.facets.push(m("line",{}));c.facets.forEach((function(t,e){var n=k[e];if(t.style.display=n?"":"none",n){var r="top-left"===n[2];t.setAttribute("class",r?"facet lit":"facet"),t.setAttribute("stroke-width",r?"4.5":"3"),t.setAttribute("x1",n[0][0]),t.setAttribute("y1",n[0][1]),t.setAttribute("x2",n[1][0]),t.setAttribute("y2",n[1][1])}}))}}return r||((r=document.createElementNS(t,"svg")).setAttribute("class","edge"),r.setAttribute("aria-hidden","true"),e.appendChild(r)),v(),e.redrawGlass=function(){v()},window.zaismaWatch.size(e,v,d),p&&(y.set(e,v),E()),v}var C=getComputedStyle(document.documentElement),z=function(t,e){return parseFloat(C.getPropertyValue(t))||e},L=z("--control-slant",10),q=z("--gap-control-row",4),k=z("--gap-control-stack",8),P=4,W=q-L-.5,N=q-L+.5,F=[16,8,16,8],B=2;function T(t){var e=r(t,"header"),n=g(t),a=Math.min(n[0],n[1]);return e.map((function(t){return Math.min(t,Math.round(.3*a))}))}function G(t){var e=t.parentElement&&t.parentElement.closest("[data-glass], [data-cut-line], [data-on-no-pane]");return e&&!e.hasAttribute("data-on-no-pane")?e:null}function H(t,e,n,r){if(t===document.fullscreenElement)return[0,0,0,0];var a=G(t);if(!a&&t.hasAttribute("data-cut-square"))return[0,0,0,0];if(!a){var i=function(t){var e=m(t),n={above:!1,below:!1};return v(null).forEach((function(r){if(r!==t){var a=m(r);if(a.width&&a.height&&!(Math.min(e.right,a.right)-Math.max(e.left,a.left)<Math.min(e.width,a.width)/2)){var i=a.top-e.bottom,o=e.top-a.bottom,s=i>=-1&&i<=k+.5,l=o>=-1&&o<=k+.5;(s||l)&&!r.contains(t)&&!t.contains(r)&&(s&&(n.below=!0),l&&(n.above=!0))}}})),n}(t);return F.map((function(t,r){return(r<2?i.above:i.below)?0:Math.min(t,Math.round(.25*Math.min(e,n)))}))}var o=a===document.fullscreenElement?[0,0,0,0]:a.hasAttribute("data-cut-line")||a.cutCorners?a.cutCorners||[0,0,0,0]:T(a),s=m(t.parentElement&&t.parentElement.classList.contains("toggle-btn")?t.parentElement:t),l=function(t,e){var n=m(e),r=t.parentElement&&t.parentElement.closest(".own-scroll, .scrolls"),a=t.parentElement&&t.parentElement.closest(".layout-track");if(a&&a!==e&&e.contains(a)){var i=p(a);i.scrollWidth>i.clientWidth+1&&(n={top:n.top,bottom:n.bottom,left:n.left-i.scrollLeft,right:n.right+i.scrollWidth-i.clientWidth-i.scrollLeft})}if(!r||r===e||!e.contains(r)||t.parentElement&&"sticky"===getComputedStyle(t.parentElement).position)return n;var o=p(r);return o.scrollHeight<=o.clientHeight+1?n:{top:n.top-o.scrollTop,bottom:n.bottom+o.scrollHeight-o.clientHeight-o.scrollTop,left:n.left,right:n.right}}(t,a),c=r?r.ends:t.getAttribute("data-cut-ends")||"",u=s.top-l.top,d=l.bottom-s.bottom,f=r?r.stack:t.getAttribute("data-cut-stack");if(null!=f){var h=s.left-l.left;u=/first/.test(f)?h:1e6,d=/last/.test(f)?h:1e6}var g=/start/.test(c)?(u+d)/2:s.left-l.left,y=/end/.test(c)?(u+d)/2:l.right-s.right,b=parseFloat(getComputedStyle(a).getPropertyValue("--rail-inset"))||0,A=Math.max(e,n)<3*Math.min(e,n)?.5*Math.min(e,n):1/0;return[[g,u],[y,u],[y,d],[g,d]].map((function(t,e){var n=Math.max(0,t[0])+Math.max(0,t[1]),r=Math.max(0,(o[e]||0)-n+Math.SQRT2*Math.min(n/2,b));return Math.min(A,r>0?Math.max(P,r):0)}))}function R(t,e,n,r,a,i){var o=Math.min(n,t/3),s=r.map((function(t){return Math.min(t,e)}));[[0,3],[1,2]].forEach((function(t){var n=s[t[0]]+s[t[1]];n>e&&(s[t[0]]*=e/n,s[t[1]]*=e/n)}));var l=function(t,e,n,r){return t>=B?[e,n]:[r,r]},c=[].concat(a.start?[[o,0],[o,0]]:l(s[0],[0,s[0]],[s[0],0],[0,0]),a.end?[[t,0],[t,0]]:l(s[1],[t-s[1],0],[t,s[1]],[t,0]),a.end?[[t-o,e],[t-o,e]]:l(s[2],[t,e-s[2]],[t-s[2],e],[t,e]),a.start?[[0,e],[0,e]]:l(s[3],[s[3],e],[0,e-s[3]],[0,e]));if(t>=3*e||i){var u=r.map((function(t){return t>e+.5?t:0})),d=function(e){return Math.max(0,Math.min(t,e))};if(!a.end&&u[2]&&r[1]<B){var f=t+e-u[2];c.splice(2,4,[d(f),0],[d(f),0],[d(f),0],[d(t-u[2]),e])}if(!a.end&&u[1]&&r[2]<B){var h=t-u[1];c.splice(2,4,[d(h),0],[d(h+e),e],[d(h+e),e],[d(h+e),e])}if(!a.start&&u[0]&&r[3]<B){var p=u[0];c.splice(6,2,[d(p-e),e],[d(p-e),e]),c.splice(0,2,[d(p-e),e],[d(p),0])}if(!a.start&&u[3]&&r[0]<B){var m=u[3];c.splice(0,2,[d(m-e),0],[d(m-e),0]),c.splice(6,2,[d(m),e],[d(m-e),0])}}return c}function V(t,e,n,r){if(t.hasAttribute("data-cut-diamond"))return t.cutCorners=[e/2,e/2,e/2,e/2],[[e/2,0],[e,n/2],[e/2,n],[0,n/2]];var a=function(t,e){var n=e?e.beside:t.getAttribute("data-cut-beside");if(null!==n)return{start:/start/.test(n),end:/end/.test(n)};var r=G(t),a=m(t),i={start:!1,end:!1};return v(r).forEach((function(e){if(e!==t){var n=m(e);if(n.width&&n.height&&!(Math.min(a.bottom,n.bottom)-Math.max(a.top,n.top)<Math.min(a.height,n.height)/2)){var r=n.left-a.right,o=a.left-n.right,s=r>=W&&r<=N,l=o>=W&&o<=N;(s||l)&&!e.contains(t)&&!t.contains(e)&&(s&&(i.end=!0),l&&(i.start=!0))}}})),i}(t,r),i=H(t,e,n,r);if(t.hasAttribute("data-cut-beside")){var o=G(t),s=o&&o.getAttribute("data-slanted")||"",l=r?r.ends:t.getAttribute("data-cut-ends")||"";/start/.test(l)&&/start/.test(s)&&(a.start=!0),/end/.test(l)&&/end/.test(s)&&(a.end=!0)}var c=[a.start?0:i[0],a.end?0:i[1],a.end?0:i[2],a.start?0:i[3]].map((function(t){return Math.min(t,n)}));if([[0,3],[1,2]].forEach((function(t){var e=c[t[0]]+c[t[1]];e>n&&(c[t[0]]*=n/e,c[t[1]]*=n/e)})),t.cutCorners=c,!r){var u=((a.start?"start ":"")+(a.end?"end":"")).trim();(t.getAttribute("data-slanted")||"")!==u&&(u?t.setAttribute("data-slanted",u):t.removeAttribute("data-slanted"))}return R(e,n,t.hasAttribute("data-cut-beside")&&Number(t.getAttribute("data-cut-line"))||L,i,a)}function $(t,e){var n=e||.01;return t.filter((function(e,r){var a=t[(r+t.length-1)%t.length];return Math.abs(e[0]-a[0])>n||Math.abs(e[1]-a[1])>n}))}function Q(t){return"polygon("+t.map((function(t){return t[0].toFixed(2)+"px "+t[1].toFixed(2)+"px"})).join(", ")+")"}function I(t,e){if(!e)return t;var n=t.length,r=t.map((function(r,a){var i=t[(a+1)%n],o=i[0]-r[0],s=i[1]-r[1],l=Math.hypot(o,s)||1,c=-s/l,u=o/l;return{x:r[0]+c*e,y:r[1]+u*e,dx:o,dy:s,nx:c,ny:u}}));return r.map((function(t,e){var a=r[(e+n-1)%n],i=a.dx*t.dy-a.dy*t.dx;if(Math.abs(i)<1e-6)return[t.x,t.y];var o=((t.x-a.x)*t.dy-(t.y-a.y)*t.dx)/i;return[a.x+a.dx*o,a.y+a.dy*o]}))}var j=["right","top-right","top","top-left","left","bottom-left","bottom","bottom-right"];function D(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=180*Math.atan2(n,r)/Math.PI;return j[(Math.round(a/45)%8+8)%8]}function O(e){var n=e.querySelector(":scope > .cut-line");n||((n=document.createElementNS(t,"svg")).setAttribute("class","cut-line"),n.setAttribute("aria-hidden","true"),e.insertBefore(n,e.firstChild));var r=n.querySelector("polygon")||n.appendChild(document.createElementNS(t,"polygon")),a=[],o="";function s(t){return t.map((function(t){return t[0].toFixed(2)+","+t[1].toFixed(2)})).join(" ")}var l=null;function c(){u(f)}function f(){var u=g(e),d=u[0],f=u[1];if(d&&f){var h=d+"x"+f;l&&l.sizeKey!==h&&(l.sizeKey=h,l.toShape=V(e,d,f),l.fromShape=V(e,d,f,l.from));var p=l?l.toShape:V(e,d,f);if(l){var m=void 0!==l.progress?l.progress:Math.min(1,(performance.now()-l.startMs)/l.ms),v=l.ease?l.ease(m):1-Math.pow(1-m,3),y=l.fromShape;p=p.map((function(t,e){return[y[e][0]+(t[0]-y[e][0])*v,y[e][1]+(t[1]-y[e][1])*v]})),m>=1?l=null:l.isDriven||requestAnimationFrame(c)}var b=d+"x"+f+":"+s(p=$(p));if(b!==o){o=b,e.style.setProperty("--cut-shape",Q(p)),e.hasAttribute("data-cut-sizes")&&["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,n){e.style.setProperty("--cut-size-"+t,(e.cutCorners&&e.cutCorners[n]||0).toFixed(1)+"px")})),n.setAttribute("viewBox","0 0 "+d+" "+f),n.setAttribute("preserveAspectRatio","none"),l&&(n.classList.add("is-gliding"),clearTimeout(n.glideEnd),n.glideEnd=setTimeout((function(){n.classList.remove("is-gliding")}),l.ms+200));var A=I(p=$(p,1),1);r.setAttribute("points",s(A)),i(e);var w=Number(e.getAttribute("data-cut-ring"))||0;if(w){var E=n.querySelector(".cut-ring");E||((E=document.createElementNS(t,"polygon")).setAttribute("class","cut-ring"),n.appendChild(E)),E.setAttribute("points",s(I(p,-w)))}y=Number(e.getAttribute("data-cut-inset"))||0;for(var M=I(p,y),x=I(p,y+1.5),S=a.length;a.length<p.length;){var C=document.createElementNS(t,"path");n.insertBefore(C,r),a.push(C)}for(;a.length>p.length;)n.removeChild(a.pop());var z=S>0&&S!==a.length;a.forEach((function(t,e){var n=(e+1)%p.length,r="cut-band on-"+D(p[e],p[n]),a=t.getAttribute("class");a&&a!==r&&(z=!0),t.setAttribute("class",r),t.setAttribute("d","M"+s([M[e],M[n],x[n],x[e]])+"Z")})),z&&!n.classList.contains("is-reshaped")&&(n.classList.add("is-reshaped"),requestAnimationFrame((function(){requestAnimationFrame((function(){n.classList.remove("is-reshaped")}))})))}}}c(),e.redrawCut=function(t){if(t&&t.isFrame)return l&&void 0!==t.progress&&(l.progress=t.progress),void c();l=t&&t.ms>0&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?{from:t.from,ms:t.ms,ease:t.ease,isDriven:!!t.isDriven,startMs:performance.now()}:null,c()},window.zaismaWatch.size(e,c,d);var h=e.parentElement&&e.parentElement.closest("[data-glass], [data-on-no-pane]");h&&h.hasAttribute("data-glass")&&window.zaismaWatch.size(h,c,d),y.set(e,c),E()}var K=6,Z=new Map;function J(t,e){if(/^(IMG|VIDEO|CANVAS|IFRAME)$/.test(t.tagName)||"none"!==e.backgroundImage||function(t){return"none"!==t&&(t.match(/rgba?\\([^)]*\\)/g)||[""]).some((function(t){var e=t.match(/[\\d.]+/g);return!e||e.length<4||Number(e[3])>.04}))}(e.boxShadow))return!0;var n=e.backgroundColor.match(/[\\d.]+/g);return!(!n||!(n.length<4||Number(n[3])>.04))||["Top","Right","Bottom","Left"].some((function(t){return parseFloat(e["border"+t+"Width"])>0&&!/rgba\\(.*, 0\\)|transparent/.test(e["border"+t+"Color"])}))}function U(t){var e=[],n=m(t),r=Math.max.apply(null,T(t))/(1-Math.SQRT2/2);return function t(a){Array.prototype.forEach.call(a.children,(function(a){if(!(a instanceof SVGElement||a.matches("[data-glass], [data-cut-line], .edge, .cut-line, dialog"))){var i=a.getBoundingClientRect();if(i.width&&i.height&&function(t){return[[t.left-n.left,t.top-n.top],[n.right-t.right,t.top-n.top],[n.right-t.right,n.bottom-t.bottom],[t.left-n.left,n.bottom-t.bottom]].some((function(t){return Math.max(0,t[0])+Math.max(0,t[1])<r}))}(i)){if(Z.has(a))return void e.push(a);var o=getComputedStyle(a);if("contents"===o.display||"inline"===o.display||"fixed"===o.position)return t(a);"none"===o.clipPath&&Math.min(i.width,i.height)>=K&&J(a,o)?e.push(a):t(a)}}}))}(t),e}function X(t){if(!Z.has(t)){var e=null;Z.set(t,n),y.set(t,n),window.zaismaWatch.size(t,n,d),n()}function n(){u(r)}function r(){var n=g(t),r=n[0],a=n[1];if(r&&a&&t.isConnected){var i=$(R(r,a,0,H(t,r,a),{start:!1,end:!1},t.hasAttribute("data-cut-bar"))),o=4===i.length&&i.every((function(t){return!(0!==t[0]&&t[0]!==r||0!==t[1]&&t[1]!==a)}))?"":Q(i.length?i:[[0,0]]);o!==e&&(e=o,o?(t.style.setProperty("--cut-shape",o),t.style.clipPath=o):(t.style.removeProperty("--cut-shape"),t.style.removeProperty("clip-path")))}}}var Y,_="[data-glass]:not([data-cut-line])";function tt(){var t=ot?Array.prototype.slice.call(document.querySelectorAll(_)):Array.from(it);ot=!1,it.clear(),d((function(){t.forEach((function(t){t.isConnected&&U(t).forEach(X)}))})),document.querySelectorAll("[data-cut-line] > .track-holder > .layout-track, [data-cut-line] > .layout-grid, [data-cut-line] > .grid-one-line > .layout-grid, [data-cut-line] > .game-grid-group > .layout-grid").forEach((function(t){var e=t.edgedPieces=Array.prototype.map.call(t.children,et).filter(Boolean);d((function(){e.forEach(X)})),!t.isCutOnScroll&&(t.isCutOnScroll=!0,t.addEventListener("scroll",(function(){t.edgedPieces.forEach((function(t){var e=Z.get(t);e&&e()})),t.querySelectorAll("[data-cut-line]").forEach((function(t){t.redrawCut&&t.redrawCut()}))}),{passive:!0}))}))}function et(t){if(t instanceof SVGElement||t.matches("[data-glass], [data-cut-line], .edge, .cut-line"))return null;var e=getComputedStyle(t);if("none"===e.clipPath&&J(t,e))return t;for(var n=0;n<t.children.length;n+=1){var r=et(t.children[n]);if(r)return r}return null}window.zaismaSettings={set:function(t,e){var n=e||document.documentElement;n.classList.add("eases-settings"),void 0!==t.theme&&("light"===t.theme||"dark"===t.theme?n.setAttribute("data-theme-choice",t.theme):n.removeAttribute("data-theme-choice"));var r=t.glass;r&&void 0!==r.hueColor&&("string"==typeof r.hueColor&&/^#[0-9a-fA-F]{6}$/.test(r.hueColor)?n.style.setProperty("--glass-hue",r.hueColor):n.style.removeProperty("--glass-hue"))},read:function(t){var e=t||document.documentElement,n=e.style.getPropertyValue("--glass-hue").trim();return{theme:e.getAttribute("data-theme-choice")||null,glass:{hueColor:n||null}}}},window.zaismaGlass=S,document.addEventListener("fullscreenchange",(function(){var t=window.zaismaWatch;t&&requestAnimationFrame((function(){t.drawAll(),requestAnimationFrame(t.drawAll)}))})),window.zaismaCutLine=O,window.zaismaInput=(Y=!1,document.addEventListener("keydown",(function(t){/^(Shift|Control|Alt|Meta|AltGraph|CapsLock)$/.test(t.key)||(Y=!0)}),!0),["pointerdown","mousedown","touchstart"].forEach((function(t){document.addEventListener(t,(function(){Y=!1}),!0)})),{isKeyboard:function(){return Y}});var nt="function"==typeof WeakSet?new WeakSet:{has:function(){return!1},add:function(){}};function rt(t){if(t.querySelectorAll){var e=Array.prototype.slice.call(t.querySelectorAll("[data-glass]")),n=Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"));t.matches&&t.matches("[data-glass]")&&e.push(t),t.matches&&t.matches("[data-cut-line]")&&n.push(t),n.forEach((function(t){nt.has(t)||t.hasAttribute("data-glass")||(nt.add(t),O(t))})),e.forEach((function(t){if(!nt.has(t)){nt.add(t);var e=S(t,(function(){var e=r(t,"pane");if(e.some((function(t){return t>0}))||!G(t))return e;var n=g(t);return t.cutCorners=H(t,n[0],n[1])}));/^[0\\s]+$/.test(t.getAttribute("data-glass-corners")||"")&&(y.set(t,e),E())}}))}}d((function(){rt(document)})),window.zaismaWatch.arriving((function(t){d((function(){t.forEach((function(t){t.addedNodes.forEach(rt)}))}))}));var at=0,it=new Set,ot=!1;function st(){clearTimeout(at),at=setTimeout(tt,50)}function lt(t){Array.isArray(t)?t.forEach((function(t){(function(t){if(1!==t.nodeType)return[];for(var e=Array.prototype.slice.call(t.querySelectorAll(_)),n=t.closest(_);n;)e.push(n),n=n.parentElement&&n.parentElement.closest(_);return e})(t.target).forEach((function(t){it.add(t)}))})):ot=!0,st()}lt(),window.zaismaWatch.page(lt)}())}();` },
11480
+ "glass": { sourceSha256: "77521cf11450d51fc22f4a135d9d5be1e37ca758035d3636eb11908d7e8e90f0", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.glass||(t.glass=!0,function(){var t="http://www.w3.org/2000/svg",e={};function n(t){return t in e||(e[t]=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--"+t.replace(/-(large|small)$/,"-cut-$1")))||0),e[t]}function r(t,e){var r=(t.getAttribute("data-glass-corners")||e).trim().split(/\\s+/);return 1===r.length&&/^[a-z]+$/.test(r[0])&&(r=[r[0]+"-large",r[0]+"-small",r[0]+"-large",r[0]+"-small"]),r.map((function(t){return/^[a-z]+-(large|small)$/.test(t)?n(t):Number(t)||0}))}function a(t){return t.map((function(t){return t[0].toFixed(1)+","+t[1].toFixed(1)})).join(" ")}function i(t){var e=t.querySelector(":scope > .waiting-glint");if(function(t){var e=t.parentElement;return"true"===t.getAttribute("aria-busy")||!!t.querySelector(':scope > input[aria-busy="true"]')||!(!e||"true"!==e.getAttribute("aria-busy"))||t.hasAttribute("data-waits-here")&&!!t.closest('[aria-busy="true"]')}(t))e&&e.classList.contains("is-leaving")&&e.classList.remove("is-leaving"),e||((e=document.createElement("span")).className="waiting-glint",e.setAttribute("aria-hidden","true"),t.insertBefore(e,t.firstChild));else if(e&&!e.classList.contains("is-leaving")){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void e.remove();e.classList.add("is-leaving"),e.addEventListener("animationend",(function(t){"waiting-glint-leaves"===t.animationName&&e.classList.contains("is-leaving")&&e.remove()}))}}["pane","header","menu","strip"].forEach((function(t){n(t+"-large"),n(t+"-small")})),window.zaismaCorners=r,window.zaismaWaiting={redraw:function(t){[t,t.parentElement].concat(Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"))).forEach((function(t){t&&t.hasAttribute("data-cut-line")&&i(t)}))}};var o=[80,100,70,28,12,0,40,62],s={"top-left":80,top:100,"top-right":70,right:28,"bottom-right":12,bottom:0,"bottom-left":40,left:62};function l(e,n,r,i,o){for(;n.length<r.length;){var s=document.createElementNS(t,"polygon");e.appendChild(s),n.push(s)}for(;n.length>r.length;)e.removeChild(n.pop());n.forEach((function(t,e){var n=(e+1)%r.length;t.style.setProperty("--side-light",o[e]+"%"),t.setAttribute("points",a([r[e],r[n],i[n],i[e]]))}))}var c=null;function u(t,e){if(c)t();else{c={rects:new Map,sizes:new Map,groups:new Map,scrollers:new Map,isBatch:!!e,isMeasured:!1};try{t()}finally{c=null}}}function d(t){u(t,!0)}function f(){c.isMeasured=!0,document.querySelectorAll("[data-cut-line], [data-glass]").forEach((function(t){c.rects.set(t,t.getBoundingClientRect()),c.sizes.set(t,[t.offsetWidth,t.offsetHeight])})),document.querySelectorAll("[data-cut-line]").forEach((function(t){(function(t){var e=c.groups.get(t);return e||(e=[],c.groups.set(t,e)),e})(G(t)).push(t)})),document.querySelectorAll("body .own-scroll, body .scrolls, body .layout-track").forEach((function(t){c.scrollers.set(t,h(t))}))}function h(t){return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth}}function p(t){var e=c.scrollers.get(t);return e||(e=h(t),c.scrollers.set(t,e)),e}function m(t){c.isBatch&&!c.isMeasured&&f();var e=c.rects.get(t);return e||(e=t.getBoundingClientRect(),c.rects.set(t,e)),e}function g(t){c.isBatch&&!c.isMeasured&&f();var e=c.sizes.get(t);return e||(e=[t.offsetWidth,t.offsetHeight],c.sizes.set(t,e)),e}function v(t){if(c.isBatch&&!c.isMeasured&&f(),c.isMeasured)return c.groups.get(t)||[];var e=c.groups.get(t);return e||(e=Array.prototype.filter.call((t||document).querySelectorAll("[data-cut-line]"),(function(e){return G(e)===t})),c.groups.set(t,e)),e}var y=new Map,b=!1;function A(){d((function(){y.forEach((function(t,e){e.isConnected?t():y.delete(e)}))}))}window.zaismaRedrawEdges=A;var w=!(!document.fonts||!document.fonts.addEventListener);function E(){w||b||!document.fonts||!document.fonts.ready||"loading"!==document.fonts.status||(b=!0,document.fonts.ready.then((function(){b=!1,A()})))}w&&document.fonts.addEventListener("loadingdone",(function(){A(),lt()}));var M=-1;window.zaismaWatch.size(document.documentElement,(function(){var t=document.documentElement.clientWidth,e=M<0;t!==M&&(M=t,e||(A(),lt()))}),d);var x=0;function S(e,n){var r=e.querySelector(":scope > .edge"),i="zg"+x++,c=null,f="",h="",p=e.hasAttribute("data-cut-line");function m(e,n){var a=document.createElementNS(t,e);for(var i in n)a.setAttribute(i,n[i]);return r.appendChild(a),a}function v(){u(b)}function b(){var t=g(e),u=t[0],d=t[1];if(u&&d){var v,y,b=Math.min(u,d),A=Number(e.getAttribute("data-glass-band"))||Math.max(2,Math.min(4,.04*b));if(c||(r.innerHTML='<defs><linearGradient id="'+i+'fr" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#7fd8ff" stop-opacity="0.5"/><stop offset="0.5" stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#ffc58a" stop-opacity="0.5"/></linearGradient><linearGradient id="'+i+'in" x1="1" y1="1" x2="0" y2="0"><stop class="gleam" offset="0"/><stop class="gleam" offset="0.4" stop-opacity="0"/><stop class="gleam" offset="0.75" stop-opacity="0"/><stop class="gleam" offset="1" stop-opacity="0.35"/></linearGradient><linearGradient id="'+i+'sp" x1="0" y1="0" x2="1" y2="1"><stop class="spec" offset="0"/><stop class="spec" offset="0.08"/><stop class="spec" offset="0.3" stop-opacity="0"/></linearGradient></defs>',c={dense:m("path",{class:"dense","fill-rule":"evenodd"}),bevel:m("g",{class:"bevel"}),bevelQuads:[],hair:m("polygon",{class:"hair",fill:"none","stroke-width":"1.2"}),rimBand:m("g",{class:"rim-band"}),rimQuads:[],rim:m("polygon",{class:"rim",fill:"none","stroke-width":"1.6"}),spec:m("polygon",{class:"spec-line",fill:"none",stroke:"url(#"+i+"sp)","stroke-width":"1.4"}),fringe:m("polygon",{class:"fringe",fill:"none",stroke:"url(#"+i+"fr)","stroke-width":"0.8"}),inner:m("polygon",{class:"inner",fill:"none",stroke:"url(#"+i+"in)","stroke-width":"1"}),caustics:p?[]:[1,2,3,4].map((function(t){return{group:m("g",{class:"caustic step-"+t}),quads:[]}})),facets:[]}),p){var w=$(V(e,u,d)),E=u+"x"+d+":"+a(w);if(E===f)return;f=E,e.style.setProperty("--cut-shape",Q(w)),e.style.clipPath=Q(w),v=function(t){return I(w,t)},y=w.map((function(t,e){return s[D(t,w[(e+1)%w.length])]}))}else{var M=n().map((function(t){return Math.min(t,Math.round(.3*b))})),x=M.join(",")+":"+A;x!==f&&(f=x,e.style.setProperty("--glass-clip","polygon(0 "+M[0]+"px, "+M[0]+"px 0, calc(100% - "+M[1]+"px) 0, 100% "+M[1]+"px, 100% calc(100% - "+M[2]+"px), calc(100% - "+M[2]+"px) 100%, "+M[3]+"px 100%, 0 calc(100% - "+M[3]+"px))"),["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,n){e.style.setProperty("--glass-cut-"+t,M[n]+A*Math.SQRT2+"px")})),window.zaismaCast&&e.classList.contains("floating-pane")&&e.matches(":popover-open")&&window.zaismaCast(e));var S=e.zaismaEdgeShape?e.zaismaEdgeShape(u,d,M):null,C=Number(e.getAttribute("data-glass-lean"));!S&&C&&(S=[[d*C,0],[u,0],[u,d],[0,d]],e.style.setProperty("--glass-clip",Q(S))),S&&(S=$(S));var z=u+"x"+d+":"+A+":"+x+(S?":"+a(S):"");if(z===h)return;h&&function(t){it.add(t),st()}(e),h=z,S?(v=function(t){return I(S,t)},y=S.map((function(t,e){return s[D(t,S[(e+1)%S.length])]}))):(v=function(t){return function(t,e,n,r){var a=r,i=.414*r,o=n.map((function(t){return t>0?t+i:a}));return[[a,o[0]],[o[0],a],[t-o[1],a],[t-a,o[1]],[t-a,e-o[2]],[t-o[2],e-a],[o[3],e-a],[a,e-o[3]]]}(u,d,M,t)},y=o)}r.removeAttribute("viewBox"),c.dense.setAttribute("d","M"+a(v(0))+"Z M"+a(v(1.6*A))+"Z"),l(c.bevel,c.bevelQuads,v(0),v(A),y),l(c.rimBand,c.rimQuads,v(0),v(1.6),y),c.hair.setAttribute("points",a(v(.6))),c.rim.setAttribute("points",a(v(1.6))),c.spec.setAttribute("points",a(v(1.6))),c.fringe.setAttribute("points",a(v(Math.max(2.4,A-.8)))),c.inner.setAttribute("points",a(v(A)));var L=[A,A+2,A+5,A+9,A+14];c.caustics.forEach((function(t,e){l(t.group,t.quads,v(L[e]),v(L[e+1]),y)}));var q=v(0),k=[];for(q.forEach((function(t,e){var n=q[(e+1)%q.length],r=D(t,n);r.indexOf("-")>0&&Math.hypot(n[0]-t[0],n[1]-t[1])>.5&&k.push([t,n,r])}));c.facets.length<k.length;)c.facets.push(m("line",{}));c.facets.forEach((function(t,e){var n=k[e];if(t.style.display=n?"":"none",n){var r="top-left"===n[2];t.setAttribute("class",r?"facet lit":"facet"),t.setAttribute("stroke-width",r?"4.5":"3"),t.setAttribute("x1",n[0][0]),t.setAttribute("y1",n[0][1]),t.setAttribute("x2",n[1][0]),t.setAttribute("y2",n[1][1])}}))}}return r||((r=document.createElementNS(t,"svg")).setAttribute("class","edge"),r.setAttribute("aria-hidden","true"),e.appendChild(r)),v(),e.redrawGlass=function(){v()},window.zaismaWatch.size(e,v,d),p&&(y.set(e,v),E()),v}var C=getComputedStyle(document.documentElement),z=function(t,e){return parseFloat(C.getPropertyValue(t))||e},L=z("--control-slant",10),q=z("--gap-control-row",4),k=z("--gap-control-stack",8),P=4,W=q-L-.5,N=q-L+.5,F=[16,8,16,8],B=2;function T(t){var e=r(t,"header"),n=g(t),a=Math.min(n[0],n[1]);return e.map((function(t){return Math.min(t,Math.round(.3*a))}))}function G(t){var e=t.parentElement&&t.parentElement.closest("[data-glass], [data-cut-line], [data-on-no-pane]");return e&&!e.hasAttribute("data-on-no-pane")?e:null}function H(t,e,n,r){if(t===document.fullscreenElement)return[0,0,0,0];var a=G(t);if(!a&&t.hasAttribute("data-cut-square"))return[0,0,0,0];if(!a){var i=function(t){var e=m(t),n={above:!1,below:!1};return v(null).forEach((function(r){if(r!==t){var a=m(r);if(a.width&&a.height&&!(Math.min(e.right,a.right)-Math.max(e.left,a.left)<Math.min(e.width,a.width)/2)){var i=a.top-e.bottom,o=e.top-a.bottom,s=i>=-1&&i<=k+.5,l=o>=-1&&o<=k+.5;(s||l)&&!r.contains(t)&&!t.contains(r)&&(s&&(n.below=!0),l&&(n.above=!0))}}})),n}(t);return F.map((function(t,r){return(r<2?i.above:i.below)?0:Math.min(t,Math.round(.25*Math.min(e,n)))}))}var o=a===document.fullscreenElement?[0,0,0,0]:a.hasAttribute("data-cut-line")||a.cutCorners?a.cutCorners||[0,0,0,0]:T(a),s=m(t.parentElement&&t.parentElement.classList.contains("toggle-btn")?t.parentElement:t),l=function(t,e){var n=m(e),r=t.parentElement&&t.parentElement.closest(".own-scroll, .scrolls"),a=t.parentElement&&t.parentElement.closest(".layout-track");if(a&&a!==e&&e.contains(a)){var i=p(a);i.scrollWidth>i.clientWidth+1&&(n={top:n.top,bottom:n.bottom,left:n.left-i.scrollLeft,right:n.right+i.scrollWidth-i.clientWidth-i.scrollLeft})}if(!r||r===e||!e.contains(r)||t.parentElement&&"sticky"===getComputedStyle(t.parentElement).position)return n;var o=p(r);return o.scrollHeight<=o.clientHeight+1?n:{top:n.top-o.scrollTop,bottom:n.bottom+o.scrollHeight-o.clientHeight-o.scrollTop,left:n.left,right:n.right}}(t,a),c=r?r.ends:t.getAttribute("data-cut-ends")||"",u=s.top-l.top,d=l.bottom-s.bottom,f=r?r.stack:t.getAttribute("data-cut-stack");if(null!=f){var h=s.left-l.left;u=/first/.test(f)?h:1e6,d=/last/.test(f)?h:1e6}var g=/start/.test(c)?(u+d)/2:s.left-l.left,y=/end/.test(c)?(u+d)/2:l.right-s.right,b=parseFloat(getComputedStyle(a).getPropertyValue("--rail-inset"))||0,A=Math.max(e,n)<3*Math.min(e,n)?.5*Math.min(e,n):1/0;return[[g,u],[y,u],[y,d],[g,d]].map((function(t,e){var n=Math.max(0,t[0])+Math.max(0,t[1]),r=Math.max(0,(o[e]||0)-n+Math.SQRT2*Math.min(n/2,b));return Math.min(A,r>0?Math.max(P,r):0)}))}function R(t,e,n,r,a,i){var o=Math.min(n,t/3),s=r.map((function(t){return Math.min(t,e)}));[[0,3],[1,2]].forEach((function(t){var n=s[t[0]]+s[t[1]];n>e&&(s[t[0]]*=e/n,s[t[1]]*=e/n)}));var l=function(t,e,n,r){return t>=B?[e,n]:[r,r]},c=[].concat(a.start?[[o,0],[o,0]]:l(s[0],[0,s[0]],[s[0],0],[0,0]),a.end?[[t,0],[t,0]]:l(s[1],[t-s[1],0],[t,s[1]],[t,0]),a.end?[[t-o,e],[t-o,e]]:l(s[2],[t,e-s[2]],[t-s[2],e],[t,e]),a.start?[[0,e],[0,e]]:l(s[3],[s[3],e],[0,e-s[3]],[0,e]));if(t>=3*e||i){var u=r.map((function(t){return t>e+.5?t:0})),d=function(e){return Math.max(0,Math.min(t,e))};if(!a.end&&u[2]&&r[1]<B){var f=t+e-u[2];c.splice(2,4,[d(f),0],[d(f),0],[d(f),0],[d(t-u[2]),e])}if(!a.end&&u[1]&&r[2]<B){var h=t-u[1];c.splice(2,4,[d(h),0],[d(h+e),e],[d(h+e),e],[d(h+e),e])}if(!a.start&&u[0]&&r[3]<B){var p=u[0];c.splice(6,2,[d(p-e),e],[d(p-e),e]),c.splice(0,2,[d(p-e),e],[d(p),0])}if(!a.start&&u[3]&&r[0]<B){var m=u[3];c.splice(0,2,[d(m-e),0],[d(m-e),0]),c.splice(6,2,[d(m),e],[d(m-e),0])}}return c}function V(t,e,n,r){if(t.hasAttribute("data-cut-diamond"))return t.cutCorners=[e/2,e/2,e/2,e/2],[[e/2,0],[e,n/2],[e/2,n],[0,n/2]];var a=function(t,e){var n=e?e.beside:t.getAttribute("data-cut-beside");if(null!==n)return{start:/start/.test(n),end:/end/.test(n)};var r=G(t),a=m(t),i={start:!1,end:!1};return v(r).forEach((function(e){if(e!==t){var n=m(e);if(n.width&&n.height&&!(Math.min(a.bottom,n.bottom)-Math.max(a.top,n.top)<Math.min(a.height,n.height)/2)){var r=n.left-a.right,o=a.left-n.right,s=r>=W&&r<=N,l=o>=W&&o<=N;(s||l)&&!e.contains(t)&&!t.contains(e)&&(s&&(i.end=!0),l&&(i.start=!0))}}})),i}(t,r),i=H(t,e,n,r);if(t.hasAttribute("data-cut-beside")){var o=G(t),s=o&&o.getAttribute("data-slanted")||"",l=r?r.ends:t.getAttribute("data-cut-ends")||"";/start/.test(l)&&/start/.test(s)&&(a.start=!0),/end/.test(l)&&/end/.test(s)&&(a.end=!0)}var c=[a.start?0:i[0],a.end?0:i[1],a.end?0:i[2],a.start?0:i[3]].map((function(t){return Math.min(t,n)}));if([[0,3],[1,2]].forEach((function(t){var e=c[t[0]]+c[t[1]];e>n&&(c[t[0]]*=n/e,c[t[1]]*=n/e)})),t.cutCorners=c,!r){var u=((a.start?"start ":"")+(a.end?"end":"")).trim();(t.getAttribute("data-slanted")||"")!==u&&(u?t.setAttribute("data-slanted",u):t.removeAttribute("data-slanted"))}return R(e,n,t.hasAttribute("data-cut-beside")&&Number(t.getAttribute("data-cut-line"))||L,i,a)}function $(t,e){var n=e||.01;return t.filter((function(e,r){var a=t[(r+t.length-1)%t.length];return Math.abs(e[0]-a[0])>n||Math.abs(e[1]-a[1])>n}))}function Q(t){return"polygon("+t.map((function(t){return t[0].toFixed(2)+"px "+t[1].toFixed(2)+"px"})).join(", ")+")"}function I(t,e){if(!e)return t;var n=t.length,r=t.map((function(r,a){var i=t[(a+1)%n],o=i[0]-r[0],s=i[1]-r[1],l=Math.hypot(o,s)||1,c=-s/l,u=o/l;return{x:r[0]+c*e,y:r[1]+u*e,dx:o,dy:s,nx:c,ny:u}}));return r.map((function(t,e){var a=r[(e+n-1)%n],i=a.dx*t.dy-a.dy*t.dx;if(Math.abs(i)<1e-6)return[t.x,t.y];var o=((t.x-a.x)*t.dy-(t.y-a.y)*t.dx)/i;return[a.x+a.dx*o,a.y+a.dy*o]}))}var j=["right","top-right","top","top-left","left","bottom-left","bottom","bottom-right"];function D(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=180*Math.atan2(n,r)/Math.PI;return j[(Math.round(a/45)%8+8)%8]}function O(e){var n=e.querySelector(":scope > .cut-line");n||((n=document.createElementNS(t,"svg")).setAttribute("class","cut-line"),n.setAttribute("aria-hidden","true"),e.insertBefore(n,e.firstChild));var r=n.querySelector("polygon")||n.appendChild(document.createElementNS(t,"polygon")),a=[],o="";function s(t){return t.map((function(t){return t[0].toFixed(2)+","+t[1].toFixed(2)})).join(" ")}var l=null;function c(){u(f)}function f(){var u=g(e),d=u[0],f=u[1];if(d&&f){var h=d+"x"+f;l&&l.sizeKey!==h&&(l.sizeKey=h,l.toShape=V(e,d,f),l.fromShape=V(e,d,f,l.from));var p=l?l.toShape:V(e,d,f);if(l){var m=void 0!==l.progress?l.progress:Math.min(1,(performance.now()-l.startMs)/l.ms),v=l.ease?l.ease(m):1-Math.pow(1-m,3),y=l.fromShape;p=p.map((function(t,e){return[y[e][0]+(t[0]-y[e][0])*v,y[e][1]+(t[1]-y[e][1])*v]})),m>=1?l=null:l.isDriven||requestAnimationFrame(c)}var b=d+"x"+f+":"+s(p=$(p));if(b!==o){o=b,e.style.setProperty("--cut-shape",Q(p)),e.hasAttribute("data-cut-sizes")&&["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,n){e.style.setProperty("--cut-size-"+t,(e.cutCorners&&e.cutCorners[n]||0).toFixed(1)+"px")})),n.setAttribute("viewBox","0 0 "+d+" "+f),n.setAttribute("preserveAspectRatio","none"),l&&(n.classList.add("is-gliding"),clearTimeout(n.glideEnd),n.glideEnd=setTimeout((function(){n.classList.remove("is-gliding")}),l.ms+200));var A=I(p=$(p,1),1);r.setAttribute("points",s(A)),i(e);var w=Number(e.getAttribute("data-cut-ring"))||0;if(w){var E=n.querySelector(".cut-ring");E||((E=document.createElementNS(t,"polygon")).setAttribute("class","cut-ring"),n.appendChild(E)),E.setAttribute("points",s(I(p,-w)))}y=Number(e.getAttribute("data-cut-inset"))||0;for(var M=I(p,y),x=I(p,y+1.5),S=a.length;a.length<p.length;){var C=document.createElementNS(t,"path");n.insertBefore(C,r),a.push(C)}for(;a.length>p.length;)n.removeChild(a.pop());var z=S>0&&S!==a.length;a.forEach((function(t,e){var n=(e+1)%p.length,r="cut-band on-"+D(p[e],p[n]),a=t.getAttribute("class");a&&a!==r&&(z=!0),t.setAttribute("class",r),t.setAttribute("d","M"+s([M[e],M[n],x[n],x[e]])+"Z")})),z&&!n.classList.contains("is-reshaped")&&(n.classList.add("is-reshaped"),requestAnimationFrame((function(){requestAnimationFrame((function(){n.classList.remove("is-reshaped")}))})))}}}c(),e.redrawCut=function(t){if(t&&t.isFrame)return l&&void 0!==t.progress&&(l.progress=t.progress),void c();l=t&&t.ms>0&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?{from:t.from,ms:t.ms,ease:t.ease,isDriven:!!t.isDriven,startMs:performance.now()}:null,c()},window.zaismaWatch.size(e,c,d);var h=e.parentElement&&e.parentElement.closest("[data-glass], [data-on-no-pane]");h&&h.hasAttribute("data-glass")&&window.zaismaWatch.size(h,c,d),y.set(e,c),E()}var K=6,Z=new Map;function J(t,e){if(/^(IMG|VIDEO|CANVAS|IFRAME)$/.test(t.tagName)||"none"!==e.backgroundImage||function(t){return"none"!==t&&(t.match(/rgba?\\([^)]*\\)/g)||[""]).some((function(t){var e=t.match(/[\\d.]+/g);return!e||e.length<4||Number(e[3])>.04}))}(e.boxShadow))return!0;var n=e.backgroundColor.match(/[\\d.]+/g);return!(!n||!(n.length<4||Number(n[3])>.04))||["Top","Right","Bottom","Left"].some((function(t){return parseFloat(e["border"+t+"Width"])>0&&!/rgba\\(.*, 0\\)|transparent/.test(e["border"+t+"Color"])}))}function U(t){var e=[],n=m(t),r=Math.max.apply(null,T(t))/(1-Math.SQRT2/2);return function t(a){Array.prototype.forEach.call(a.children,(function(a){if(!(a instanceof SVGElement||a.matches("[data-glass], [data-cut-line], .edge, .cut-line, dialog"))){var i=a.getBoundingClientRect();if(i.width&&i.height&&function(t){return[[t.left-n.left,t.top-n.top],[n.right-t.right,t.top-n.top],[n.right-t.right,n.bottom-t.bottom],[t.left-n.left,n.bottom-t.bottom]].some((function(t){return Math.max(0,t[0])+Math.max(0,t[1])<r}))}(i)){if(Z.has(a))return void e.push(a);var o=getComputedStyle(a);if("contents"===o.display||"inline"===o.display||"fixed"===o.position)return t(a);"none"===o.clipPath&&Math.min(i.width,i.height)>=K&&J(a,o)?e.push(a):t(a)}}}))}(t),e}function X(t){if(!Z.has(t)){var e=null;Z.set(t,n),y.set(t,n),window.zaismaWatch.size(t,n,d),n()}function n(){u(r)}function r(){var n=g(t),r=n[0],a=n[1];if(r&&a&&t.isConnected){var i=$(R(r,a,0,H(t,r,a),{start:!1,end:!1},t.hasAttribute("data-cut-bar"))),o=4===i.length&&i.every((function(t){return!(0!==t[0]&&t[0]!==r||0!==t[1]&&t[1]!==a)}))?"":Q(i.length?i:[[0,0]]);o!==e&&(e=o,o?(t.style.setProperty("--cut-shape",o),t.style.clipPath=o):(t.style.removeProperty("--cut-shape"),t.style.removeProperty("clip-path")))}}}var Y,_="[data-glass]:not([data-cut-line])";function tt(){var t=ot?Array.prototype.slice.call(document.querySelectorAll(_)):Array.from(it);ot=!1,it.clear(),d((function(){t.forEach((function(t){t.isConnected&&U(t).forEach(X)}))})),document.querySelectorAll("[data-cut-line] > .track-holder > .layout-track, [data-cut-line] > .layout-grid, [data-cut-line] > .grid-one-line > .layout-grid, [data-cut-line] > .grid-lead-cell > .layout-grid, [data-cut-line] > .game-grid-group > .layout-grid").forEach((function(t){var e=t.edgedPieces=Array.prototype.map.call(t.children,et).filter(Boolean);d((function(){e.forEach(X)})),!t.isCutOnScroll&&(t.isCutOnScroll=!0,t.addEventListener("scroll",(function(){t.edgedPieces.forEach((function(t){var e=Z.get(t);e&&e()})),t.querySelectorAll("[data-cut-line]").forEach((function(t){t.redrawCut&&t.redrawCut()}))}),{passive:!0}))}))}function et(t){if(t instanceof SVGElement||t.matches("[data-glass], [data-cut-line], .edge, .cut-line"))return null;var e=getComputedStyle(t);if("none"===e.clipPath&&J(t,e))return t;for(var n=0;n<t.children.length;n+=1){var r=et(t.children[n]);if(r)return r}return null}window.zaismaSettings={set:function(t,e){var n=e||document.documentElement;n.classList.add("eases-settings"),void 0!==t.theme&&("light"===t.theme||"dark"===t.theme?n.setAttribute("data-theme-choice",t.theme):n.removeAttribute("data-theme-choice"));var r=t.glass;r&&void 0!==r.hueColor&&("string"==typeof r.hueColor&&/^#[0-9a-fA-F]{6}$/.test(r.hueColor)?n.style.setProperty("--glass-hue",r.hueColor):n.style.removeProperty("--glass-hue"))},read:function(t){var e=t||document.documentElement,n=e.style.getPropertyValue("--glass-hue").trim();return{theme:e.getAttribute("data-theme-choice")||null,glass:{hueColor:n||null}}}},window.zaismaGlass=S,document.addEventListener("fullscreenchange",(function(){var t=window.zaismaWatch;t&&requestAnimationFrame((function(){t.drawAll(),requestAnimationFrame(t.drawAll)}))})),window.zaismaCutLine=O,window.zaismaInput=(Y=!1,document.addEventListener("keydown",(function(t){/^(Shift|Control|Alt|Meta|AltGraph|CapsLock)$/.test(t.key)||(Y=!0)}),!0),["pointerdown","mousedown","touchstart"].forEach((function(t){document.addEventListener(t,(function(){Y=!1}),!0)})),{isKeyboard:function(){return Y}});var nt="function"==typeof WeakSet?new WeakSet:{has:function(){return!1},add:function(){}};function rt(t){if(t.querySelectorAll){var e=Array.prototype.slice.call(t.querySelectorAll("[data-glass]")),n=Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"));t.matches&&t.matches("[data-glass]")&&e.push(t),t.matches&&t.matches("[data-cut-line]")&&n.push(t),n.forEach((function(t){nt.has(t)||t.hasAttribute("data-glass")||(nt.add(t),O(t))})),e.forEach((function(t){if(!nt.has(t)){nt.add(t);var e=S(t,(function(){var e=r(t,"pane");if(e.some((function(t){return t>0}))||!G(t))return e;var n=g(t);return t.cutCorners=H(t,n[0],n[1])}));/^[0\\s]+$/.test(t.getAttribute("data-glass-corners")||"")&&(y.set(t,e),E())}}))}}d((function(){rt(document)})),window.zaismaWatch.arriving((function(t){d((function(){t.forEach((function(t){t.addedNodes.forEach(rt)}))}))}));var at=0,it=new Set,ot=!1;function st(){clearTimeout(at),at=setTimeout(tt,50)}function lt(t){Array.isArray(t)?t.forEach((function(t){(function(t){if(1!==t.nodeType)return[];for(var e=Array.prototype.slice.call(t.querySelectorAll(_)),n=t.closest(_);n;)e.push(n),n=n.parentElement&&n.parentElement.closest(_);return e})(t.target).forEach((function(t){it.add(t)}))})):ot=!0,st()}lt(),window.zaismaWatch.page(lt)}())}();` },
11462
11481
  "materials": { sourceSha256: "7b021c8ffe05618d5ec9f939f82befc8d743ef8fb2af9b9f4742934737bc220b", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.materials||(t.materials=!0,function(){function t(t){var e=t.scrollHeight<=t.clientHeight+1&&t.scrollWidth<=t.clientWidth+1;if(t.classList.toggle("fits",e),!e){for(var i=t.parentElement&&t.parentElement.closest("[data-glass]"),a=0,r=0,o=t;o&&o!==i;)a+=o.offsetLeft,r+=o.offsetTop,o=o.offsetParent;if(o){var n=t.parentElement.closest(".scrolls:not(.fits)");if(n&&i.contains(n))return void["top-left","top-right","bottom-right","bottom-left"].forEach((function(e){t.style.setProperty("--inset-"+e,"9999px")}));var s=Math.max(0,i.offsetWidth-a-t.offsetWidth),c=Math.max(0,i.offsetHeight-r-t.offsetHeight);t.style.setProperty("--inset-top-left",a+r+"px"),t.style.setProperty("--inset-top-right",s+r+"px"),t.style.setProperty("--inset-bottom-right",s+c+"px"),t.style.setProperty("--inset-bottom-left",a+c+"px")}}}window.zaismaFit=t,window.MutationObserver&&new MutationObserver((function(e){e.forEach((function(e){e.target.open&&e.target.querySelectorAll(".scrolls").forEach(t)}))})).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["open"]}),window.zaismaWait=function(t,e){if(!t)return Promise.resolve(e);function i(){t.removeAttribute("aria-busy"),window.zaismaWaiting.redraw(t)}function a(){t.zaismaIsAnswered=!0;var e=(window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:1e3*parseFloat(getComputedStyle(t).getPropertyValue("--waiting-glint-sweep")))-(performance.now()-t.zaismaWaitStart);e>0?t.zaismaWaitEnding=setTimeout(i,e):i()}return clearTimeout(t.zaismaWaitEnding),t.zaismaIsAnswered=!1,"true"!==t.getAttribute("aria-busy")&&(t.zaismaWaitStart=performance.now()),t.setAttribute("aria-busy","true"),window.zaismaWaiting.redraw(t),Promise.resolve(e).then((function(t){return a(),t}),(function(t){throw a(),t}))},document.addEventListener("click",(function(t){var e=t.target.closest&&t.target.closest('[aria-busy="true"]');e&&e!==document.body&&!e.zaismaIsAnswered&&(t.preventDefault(),t.stopImmediatePropagation())}),!0),window.zaismaWatch.each(".scrolls",(function(e){t(e),window.zaismaWatch.size(e,(function(){t(e)})),Array.prototype.forEach.call(e.children,(function(i){window.zaismaWatch.size(i,(function(){t(e)}))}))}))}())}();` },
11463
11482
  "rows": { sourceSha256: "e6b153ef554abc614f416967aa136860c3c2d73544420577bf0ba1d500f73955", minifiedText: '!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.rows||(t.rows=!0,function(){if(window.zaismaWatch){var t=new WeakMap;window.zaismaWatch.each(".layout-row",(function(e){a(e),window.zaismaWatch.size(e,(function(){t.get(e)!==i(e)&&a(e)}))})),window.zaismaWatch.fontArrived((function(){document.querySelectorAll(".layout-row").forEach(a)}));var e=".stack-cell, .row-cell";window.zaismaWatch.each(e,n),window.zaismaWatch.page((function(t){t.forEach((function(t){var i="attributes"===t.type?t.target.parentElement:t.target;i&&i.matches&&i.matches(e)&&("attributes"!==t.type||"hidden"===t.attributeName)&&n(i)}))}))}function i(t){return t.offsetWidth+"x"+t.offsetHeight}function a(e){var a=Array.prototype.slice.call(e.children);e.classList.remove("is-wrapped"),e.classList.add("is-measuring");var n=0,s=e.offsetWidth?e.getBoundingClientRect().width/e.offsetWidth:1;e.classList.contains("widths-equal")&&a.forEach((function(t){t.classList.contains("fills")&&(n=Math.max(n,t.getBoundingClientRect().width/(s||1)))})),e.classList.remove("is-measuring");var o=n?Math.ceil(n)+"px":"";e.style.getPropertyValue("--equal-cell-width")!==o&&e.style.setProperty("--equal-cell-width",o);var c="rtl"===getComputedStyle(e).direction,l=null,r=!1;a.forEach((function(t){var e=t.getBoundingClientRect();if(!(e.width<1)){var i=c?-e.right:e.left;null!==l&&i<=l+.5&&(r=!0),l=i}})),r&&e.classList.add("is-wrapped"),t.set(e,i(e))}function n(t){var e=1===t.children.length&&t.firstElementChild.hidden;t.classList.contains("holds-only-hidden")!==e&&t.classList.toggle("holds-only-hidden",e)}}())}();' },
11464
11483
  "compacting": { sourceSha256: "daa11debe53fdf5b3fae65ae0e2c125cb285af8aca67d71be8beb2adf118967b", minifiedText: '!function(){var a=window.zaismaPieces=window.zaismaPieces||{};a.compacting||(a.compacting=!0,window.zaismaWatch.each("[data-compacts]",(function(a){if(a.hasAttribute("data-stays-compact"))a.classList.add("is-compact");else{var c=a.parentElement&&a.parentElement.querySelector(":scope > [data-scroll-box]");(c||window).addEventListener("scroll",s,{passive:!0}),s()}function s(){var s=c?c.scrollTop:window.scrollY;s>24?a.classList.add("is-compact"):s<=0&&a.classList.remove("is-compact")}})))}();' },
11465
- "header-fit": { sourceSha256: "1e2de0afc18ba7998073c4601a7219f72fbd66f6cd82d0016207f6caefcbe4f0", minifiedText: '!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["header-fit"]||(t["header-fit"]=!0,function(){var t=window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function i(t,i){t.classList.toggle("has-search-button",i>0),t.classList.toggle("has-tight-tabs",i>1),t.classList.toggle("has-icon-tabs",i>2),t.classList.toggle("has-icon-sign-in",i>3)}function e(t,e){i(t,e);var a=getComputedStyle(t),s=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight);return Array.prototype.forEach.call(t.children,(function(t){var i=getComputedStyle(t);if(!t.classList.contains("edge")&&"none"!==i.display){var e=t.querySelector(":scope > .switch-well .tab-switch");s+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)+(t.matches(".find")?parseFloat(i.minWidth):Math.max(t.offsetWidth,e?function(t){var i=0;return Array.prototype.forEach.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){i=Math.max(i,t.offsetLeft+t.offsetWidth)})),i+parseFloat(getComputedStyle(t).paddingRight)}(e):0))}})),s}function a(a){if(a.clientWidth&&(!a.checkVisibility||a.checkVisibility({contentVisibilityAuto:!0}))){if(t.matches&&a.matches("body > .top"))return void i(a,1);for(var s=a.clientWidth,n=a.neededWidths||(a.neededWidths=[]),o=a.querySelector(".find"),c=!!o&&o.contains(document.activeElement),r=a.classList.contains("searching"),d=!1,h=0;h<4;h++){if(void 0===n[h]){if(c)return;d||(d=!0,a.classList.remove("searching"),a.classList.add("is-measuring"),a.style.width="max-content"),n[h]=e(a,h)}if(n[h]<=s)break}d&&(a.style.width="",a.classList.remove("is-measuring"),r&&a.classList.add("searching")),c&&h>0&&!a.classList.contains("typing-search")&&a.classList.add("searching"),i(a,h)}}function s(i){if(!i.fitToRoom){i.fitToRoom=function(){a(i)},a(i),window.zaismaWatch.size(i,i.fitToRoom);var e=i.querySelector(".tab-switch");e&&window.zaismaWatch.size(e,s),window.zaismaWatch.fontsIn(s),t.addEventListener("change",s)}function s(){i.neededWidths=null,a(i)}}window.zaismaWatch.each("header.top",s),window.zaismaWatch.arriving((function(){var t=document.querySelector("body > header.top");t&&t.nextSibling&&s(t)}))}())}();' },
11484
+ "header-fit": { sourceSha256: "ba3da9f175fa7b28083488aa8318aa22da23357dbc852b866ef6147528b1e98b", minifiedText: '!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["header-fit"]||(t["header-fit"]=!0,function(){var t=window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function i(t,i){t.classList.toggle("has-search-button",i>0),t.classList.toggle("has-tight-tabs",i>1),t.classList.toggle("has-icon-tabs",i>2),t.classList.toggle("has-icon-sign-in",i>3),t.classList.toggle("has-narrow-icon-tabs",i>4)}function a(t,a){i(t,a);var e=getComputedStyle(t),s=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight);return Array.prototype.forEach.call(t.children,(function(t){var i=getComputedStyle(t);if(!t.classList.contains("edge")&&"none"!==i.display){var a=t.querySelector(":scope > .switch-well .tab-switch");s+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)+(t.matches(".find")?parseFloat(i.minWidth):Math.max(t.offsetWidth,a?function(t){var i=0;return Array.prototype.forEach.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){i=Math.max(i,t.offsetLeft+t.offsetWidth)})),i+parseFloat(getComputedStyle(t).paddingRight)}(a):0))}})),s}function e(e){if(e.clientWidth&&(!e.checkVisibility||e.checkVisibility({contentVisibilityAuto:!0}))){if(t.matches&&e.matches("body > .top"))return void i(e,1);for(var s=e.clientWidth,n=e.neededWidths||(e.neededWidths=[]),o=e.querySelector(".find"),c=!!o&&o.contains(document.activeElement),r=e.classList.contains("searching"),d=!1,l=0;l<5;l++){if(void 0===n[l]){if(c)return;d||(d=!0,e.classList.remove("searching"),e.classList.add("is-measuring"),e.style.width="max-content"),n[l]=a(e,l)}if(n[l]<=s)break}d&&(e.style.width="",e.classList.remove("is-measuring"),r&&e.classList.add("searching")),c&&l>0&&!e.classList.contains("typing-search")&&e.classList.add("searching"),i(e,l)}}function s(i){if(!i.fitToRoom){i.fitToRoom=function(){e(i)},e(i),window.zaismaWatch.size(i,i.fitToRoom);var a=i.querySelector(".tab-switch");a&&window.zaismaWatch.size(a,s),window.zaismaWatch.fontsIn(s),t.addEventListener("change",s)}function s(){i.neededWidths=null,e(i)}}window.zaismaWatch.each("header.top",s),window.zaismaWatch.arriving((function(){var t=document.querySelector("body > header.top");t&&t.nextSibling&&s(t)}))}())}();' },
11466
11485
  "install": { sourceSha256: "beed9ce78d75df1ad92f16d1242651bea1fb82d29abfc88c7e5bfcca0368e7d2", minifiedText: '!function(){var t,n=window.zaismaPieces=window.zaismaPieces||{};n.install||(n.install=!0,t=null,window.addEventListener("beforeinstallprompt",(function(n){n.preventDefault(),t=n,document.querySelectorAll("[data-install-zaisma]").forEach((function(t){t.hidden=!1}))})),document.addEventListener("click",(function(n){var e=n.target.closest&&n.target.closest("[data-install-zaisma]");!e||!t||(t.prompt(),t=null,e.hidden=!0)})))}();' },
11467
11486
  "tables": { sourceSha256: "daf4d096fdecb25eae4144aaed53b6a2d2be0cbb95bb10fc45050e4f9bcf65d8", minifiedText: '!function(){var e=window.zaismaPieces=window.zaismaPieces||{};e.tables||(e.tables=!0,function(){function e(e){var t=e.querySelector(":scope > table > thead"),o=e.querySelector(":scope > table > tbody > tr > th, :scope > table > thead > tr > th:first-child");e.style.setProperty("--shown-width",e.clientWidth+"px"),e.style.setProperty("--shown-height",e.clientHeight+"px"),t&&e.style.setProperty("--head-height",t.offsetHeight+"px"),o&&e.style.setProperty("--row-head-width",o.offsetWidth+"px")}var t="function"==typeof ResizeObserver?new ResizeObserver((function(t){t.forEach((function(t){var o=t.target.closest(".table-scroll");o&&e(o)}))})):null;window.zaismaWatch.each(".table-scroll",(function(o){if(e(o),t){t.observe(o);var s=o.querySelector(":scope > table");s&&t.observe(s)}}))}())}();' },
11468
- "rails": { sourceSha256: "664d10a1240d501f5435f1299646113b9dd97fe2383243707abc3870d517c217", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.rails||(t.rails=!0,function(){var t=new Set,e=!1;function a(t,e){for(var a=t.nextElementSibling;a&&a.hasAttribute("data-rail");a=a.nextElementSibling)if(a.getAttribute("data-rail")===e)return!0;return!1}function n(t,e){t.map((function(t){var e="TEXTAREA"===t.tagName||"SELECT"===t.tagName&&(t.multiple||t.size>1);if(/^(SELECT|INPUT)$/.test(t.tagName)&&!e||a(t,"box")||"none"===getComputedStyle(t).scrollbarWidth&&!t.hasAttribute("data-side-rail")&&!t.classList.contains("own-scroll")||t.classList.contains("rail-thumb"))return null;var n=t.parentElement;return n&&n!==document.body?{box:t,isControl:e,isParentStatic:"static"===getComputedStyle(n).position}:null})).forEach((function(t){t&&(t.isParentStatic&&(t.box.parentElement.style.position="relative"),t.box.insertAdjacentHTML("afterend",'<div class="rail" data-rail="box" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>'))})),e.querySelectorAll("[data-side-rail]").forEach((function(t){a(t,"side")||t.insertAdjacentHTML("afterend",'<div class="rail sideways" data-rail="side" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>')}))}var i=new WeakSet,r=!1;function o(){document.querySelectorAll("[data-rail]").forEach((function(a){if(!i.has(a)){if("page"===a.getAttribute("data-rail")&&"loading"===document.readyState)return document.documentElement.classList.add("own-scroll"),void(r||(r=!0,window.zaismaWatch.whenRead(o)));i.add(a);for(var n="page"===a.getAttribute("data-rail"),l="side"===a.getAttribute("data-rail"),s=n?null:a.previousElementSibling;s&&s.hasAttribute("data-rail");)s=s.previousElementSibling;if(s&&!s.matches("[data-rail-scroller]")&&(s=s.querySelector(":scope > [data-rail-scroller]")||s),n||s){var c=a.querySelector(".rail-groove"),d=a.querySelector(".rail-thumb"),u=getComputedStyle(a),m=parseFloat(u.getPropertyValue("--rail-reach"))||16,f=parseFloat(u.getPropertyValue("--rail-width"))||10,h=2*Math.SQRT2,p=n&&window.CSS&&CSS.supports("animation-timeline: scroll()");p&&a.classList.add("follows-scroll"),n?document.documentElement.classList.add("own-scroll"):s.classList.add("own-scroll");var g=!1,v=function(){return parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||90},w=n?Array.prototype.filter.call(document.querySelectorAll("[data-rail-mark]"),(function(t){return!t.closest("[data-rail-marks-own]")})):Array.prototype.filter.call(s.querySelectorAll("[data-rail-mark]"),(function(t){var e=t.parentElement.closest("[data-side-rail], [data-rail-marks-own]");return!e||e===s||!s.contains(e)}));!n&&w.length&&s.setAttribute("data-rail-marks-own","");var y=null;w.length&&((y=document.createElement("span")).className="tag rail-name rail-riding",y.setAttribute("data-cut-line","0"),y.appendChild(document.createElement("span")),a.appendChild(y));var x=w.map((function(t){var e=document.createElement("button"),i=document.createElement("span");function r(){var e=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";n?window.scrollTo({top:W(t),behavior:e}):s.scrollTo(l?{left:W(t),behavior:e}:{top:W(t),behavior:e})}return e.type="button",e.className="rail-mark",e.tabIndex=-1,i.className="tag rail-name",i.setAttribute("data-cut-line","0"),i.appendChild(document.createElement("span")).textContent=t.getAttribute("data-rail-mark"),e.appendChild(i),a.appendChild(e),e.addEventListener("click",(function(){z?z=!1:r()})),e.goToPart=r,{part:t,mark:e,name:i}})),b={track:0,thumb:0,max:1,start:0,startIn:h},E=a.querySelector(".rail-line"),C=n?document.querySelector("[data-rail-starts-below]"):null,M={place:function(){var t={whole:n?document.documentElement.scrollHeight:l?s.scrollWidth:s.scrollHeight,view:n?window.innerHeight:l?s.clientWidth:s.clientHeight};if(t.max=t.whole-t.view,C){var e=C.getBoundingClientRect();t.top=e.height>e.width?"":Math.round(e.bottom+10)+"px"}if(!n){var i=s.closest("[data-glass], .carving"),r=a.offsetParent;if(i&&r){var o=i.getBoundingClientRect(),c=parseFloat(getComputedStyle(i).getPropertyValue("--rail-inset"))||0,d=Math.min(o.width,o.height),u=(i.cutCorners||(window.zaismaCorners?window.zaismaCorners(i,"pane"):[0,0,0,0])).map((function(t){return Math.min(t,Math.round(.3*d))})),h=c*(Math.SQRT2-1),p=function(t){return Math.max(c,t-f+h)};if(l){var g=a.getBoundingClientRect(),v=g.left-(parseFloat(a.style.marginLeft)||0),w=g.right+(parseFloat(a.style.marginRight)||0),y=o.bottom-g.bottom<=c+2,x=s.querySelector(":scope > table.has-row-heads > tbody > tr > th"),b=x?x.offsetWidth:0,E=s.getBoundingClientRect();t.side=y?{left:Math.max(0,o.left+p(u[3])-v,b?E.left+b+c-v:0),right:Math.max(0,w-(o.right-p(u[2])))}:{left:0,right:0}}else{var M=r.getBoundingClientRect(),S=s.getBoundingClientRect(),L=i.offsetWidth?o.width/i.offsetWidth:1,k=s.querySelector(":scope > table > thead"),T=p(u[1]),A=p(u[2]),z=k?k.offsetHeight:0,P=s.classList.contains("shows-side-rail")&&s.nextElementSibling&&s.nextElementSibling.matches(".rail.sideways")?(f+2*c)*L:0,F=S.top+(z?(z+c)*L:0),R=S.bottom-P,W=Math.max(F,o.top+T*L),B=Math.min(R,o.bottom-A*L),q=Math.min(S.right,o.right-c*L);t.box={top:(W-M.top)/L-r.clientTop,height:Math.max(0,B-W)/L,left:(q-M.left)/L-r.clientLeft-(m+f)/2}}}}return t},putPlace:function(t){void 0!==t.top&&(a.style.top=t.top),t.side&&(a.style.marginLeft=t.side.left.toFixed(1)+"px",a.style.marginRight=t.side.right.toFixed(1)+"px"),t.box&&(a.style.top=t.box.top.toFixed(1)+"px",a.style.height=t.box.height.toFixed(1)+"px",a.style.left=t.box.left.toFixed(1)+"px"),g!==t.max>4&&(g=t.max>4,a.classList.toggle("is-on",g)),n||s.classList.toggle(l?"shows-side-rail":"shows-rail",g)},isUnplaced:function(t){return!n&&g&&!t.box&&!t.side},measure:function(){if(!g)return null;var t=n&&x.length?v():0;return{track:(l?c.clientWidth:c.clientHeight)-I(!0)-I(!1),start:(l?c.offsetLeft+c.parentElement.offsetLeft:c.offsetTop+c.parentElement.offsetTop)+I(!0),startIn:I(!0),at:B(),marks:x.map((function(e){return!!e.part.offsetParent?{shown:!0,spot:W(e.part,t),size:l?e.name.offsetWidth:e.name.offsetHeight}:{shown:!1}}))}},put:function(t,e){if(e){var a=e.track,n=t.max,i=Math.max(36,Math.round(a*t.view/t.whole));b={track:a,thumb:i,max:n,start:e.start,startIn:e.startIn},p?d.style.setProperty("--thumb-share",(t.view/t.whole).toFixed(4)):d.style[l?"width":"height"]=i+"px",Y(e.at),x.forEach((function(t,r){var o=e.marks[r];if(t.mark.hidden=!o.shown,o.shown){var s=Math.max(0,Math.min(n,o.spot));t.mark.style[l?"left":"top"]=(e.start+(a-i)*s/n+i/2).toFixed(1)+"px",t.size=o.size||(l?t.name.offsetWidth:t.name.offsetHeight)}})),function(t){x.forEach((function(e){if(!e.mark.hidden){var a=parseFloat(e.mark.style[l?"left":"top"])||0,n=(e.size||0)/2,i=Math.max(n,Math.min(t-n,a));e.restShift=(i-a).toFixed(1)+"px",e.name.style.setProperty("--label-shift",e.restShift)}}))}(a)}}},S=!1,L=0,k=!1;(n?window:s).addEventListener("scroll",(function(){V(),!k&&(k=!0,requestAnimationFrame((function(){k=!1,Y()})))}),{passive:!0}),window.zaismaWatch.resize(N);var T=n?document.body:Array.prototype.filter.call(s.children,(function(t){return!t.matches("svg, .edge, .cut-line, .rail")}));n?window.zaismaWatch.size(T,N):Array.prototype.concat.apply([s],Array.prototype.slice.call(T)).forEach((function(t){window.zaismaWatch.size(t,N)})),C&&window.zaismaWatch.size(C,N),n||window.zaismaWatch.page((function(t){t.some((function(t){return s.contains(t.target)}))&&N()}));var A=null;d.addEventListener("pointerdown",(function(t){O(t,!1)}));var z=!1,P=null,F=0;a.addEventListener("pointerdown",(function(t){if(!d.contains(t.target)){if(t.target.closest(".rail-mark")){var e=d.getBoundingClientRect();return void((z=H(t)>=(l?e.left:e.top)&&H(t)<=(l?e.right:e.bottom))&&(P=t.target.closest(".rail-mark"),F=H(t),O(t,!1)))}O(t,!0)}})),a.addEventListener("pointermove",Q),window.addEventListener("pointermove",(function(t){A&&!a.hasPointerCapture(t.pointerId)&&Q(t)})),window.addEventListener("pointerup",(function(t){A&&!a.hasPointerCapture(t.pointerId)&&j(t)})),window.addEventListener("pointercancel",(function(){A&&U()})),a.addEventListener("pointermove",X),a.addEventListener("pointerdown",X);var R=18;a.addEventListener("pointerup",j),a.addEventListener("pointercancel",U),N(),V()}}function W(t,e){if(n)return t.getBoundingClientRect().top+window.scrollY-(void 0===e?v():e);var a=s.getBoundingClientRect(),i=t.getBoundingClientRect();return l?i.left-a.left+s.scrollLeft:i.top-a.top+s.scrollTop}function B(){return n?window.scrollY:l?s.scrollLeft:s.scrollTop}function q(t){n?window.scrollTo(0,t):l?s.scrollLeft=t:s.scrollTop=t}function H(t){return l?t.clientX:t.clientY}function I(t){if(n)return h;var e=E.cutCorners||[0,0,0,0],a=l?t?e[3]:e[2]:t?e[1]:e[2];return Math.max(0,a-(4-2*Math.SQRT2)-(l?c.clientHeight:c.clientWidth))}function N(){A?S=!0:function(a){t.add(a),!e&&(e=!0,requestAnimationFrame((function(){e=!1;var a=Array.from(t);t.clear();var n=a.map((function(t){return t.place()}));a.forEach((function(t,e){t.putPlace(n[e])}));var i=a.filter((function(t,e){return t.isUnplaced(n[e])})),r=i.map((function(t){return t.place()}));i.forEach((function(t,e){n[a.indexOf(t)]=r[e],t.putPlace(r[e])}));var o=a.map((function(t,e){return t.measure(n[e])}));a.forEach((function(t,e){t.put(n[e],o[e])}))})))}(M)}function Y(t){A&&X(),g&&!p&&(d.style.transform=(l?"translateX(":"translateY(")+(b.startIn+(b.track-b.thumb)*Math.min(1,(void 0===t?B():t)/b.max)).toFixed(1)+"px)")}function V(){a.classList.contains("awake")||a.classList.add("awake"),clearTimeout(L),L=setTimeout((function(){a.classList.remove("awake")}),1100)}function O(t,e){t.preventDefault();var i=B();if(e){var r=H(t)-(l?c.getBoundingClientRect().left:c.getBoundingClientRect().top)-b.thumb/2;q(Math.max(0,Math.min(1,r/(b.track-b.thumb)))*b.max)}A={y:H(t),last:H(t),from:B(),scrolls:[i,B()],isMoving:"mouse"===t.pointerType,isTouch:"mouse"!==t.pointerType},a.classList.add("dragging"),!n&&"none"!==getComputedStyle(s).scrollSnapType&&s.classList.add("is-dragged");try{a.setPointerCapture(t.pointerId)}catch{}}function Q(t){if(A){var e=function(t){var e=H(t);if(!A.isTouch||!n)return e;var a=e+window.scrollY,i=e,r=1/0;return A.scrolls.forEach((function(t){var e=a-t,n=Math.abs(e-A.last);n<r&&(r=n,i=e)})),i}(t);if(A.last=e,!A.isMoving){if(Math.abs(e-A.y)<6)return;A.isMoving=!0,A.y=e,A.from=B()}var a=Math.max(0,Math.min(b.max,A.from+(e-A.y)*b.max/Math.max(1,b.track-b.thumb)));Math.abs(a-B())<1||(q(a),A.scrolls.push(B()),A.scrolls.length>8&&A.scrolls.shift())}}function U(){A=null,a.classList.remove("dragging"),function(){if(!n&&s.classList.contains("is-dragged")){var t=s.getBoundingClientRect(),e=getComputedStyle(s),a=B(),i=parseFloat(l?e.scrollPaddingLeft:e.scrollPaddingTop)||0,r=l?t.left+s.clientLeft:t.top+s.clientTop,o=Array.prototype.filter.call(s.children,(function(t){return getComputedStyle(t).scrollSnapAlign.indexOf("start")>=0})).map((function(t){var e=t.getBoundingClientRect();return Math.max(0,Math.min(b.max,a+(l?e.left:e.top)-r-i))}));o.push(0,b.max);var c=o.length?o.reduce((function(t,e){return Math.abs(e-a)<Math.abs(t-a)?e:t})):a,d=function(){A||s.classList.remove("is-dragged")},u=1e3*parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-arrive"))||300;if(Math.abs(c-a)<1||matchMedia("(prefers-reduced-motion: reduce)").matches)return q(c),d();var m=performance.now();!function t(e){if(!A){var n=Math.min(1,(e-m)/u);q(a+(c-a)*(1-Math.pow(1-n,3))),n<1?requestAnimationFrame(t):d()}}(m)}}(),S&&(S=!1,N())}function X(){if(x.length&&A){var t=b.start+(b.track-b.thumb)*Math.min(1,B()/b.max)+b.thumb/2,e=null,a=n?{start:0,size:window.innerHeight}:(i=s.getBoundingClientRect(),{start:l?i.left:i.top,size:l?i.width:i.height});x.forEach((function(t){if(!t.mark.hidden){var n=t.part.getBoundingClientRect();(!e||(l?n.left:n.top)-a.start<=a.size/3)&&(e=t)}})),e&&y.lastChild.textContent!==e.name.textContent&&(y.lastChild.textContent=e.name.textContent),y.style.setProperty("--riding-at",t.toFixed(1)+"px")}var i}function j(t){var e=!(!A||!A.isMoving),a=P&&Math.abs(H(t)-F)<4?P:null;if(P=null,U(),a)a.goToPart();else if(e&&"mouse"!==t.pointerType&&x.length){var n=b.start+(b.track-b.thumb)*Math.min(1,B()/b.max)+b.thumb/2,i=null,r=R;x.forEach((function(t){if(!t.mark.hidden){var e=Math.abs(parseFloat(t.mark.style[l?"left":"top"])-n);e<=r&&(r=e,i=t)}})),i&&i.mark.click()}}}))}n(window.zaismaWatch.scrollBoxes(),document),o(),window.zaismaWatch.page((function(t){var e=[],a=!1,r=!1;t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||(t.matches("[data-rail]")&&!i.has(t)&&(r=!0),!t.closest(".rail, svg, .edge, .cut-line")&&(window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),(t.matches("[data-side-rail]")||t.querySelector("[data-side-rail]"))&&(a=!0)))}))})),(e.length||a||r)&&(n(e,document),o())}))}())}();` },
11469
- "scroll-fades": { sourceSha256: "cdce31f0f1485fe37026dd60653033422b3b5f14998bf8349a3c51b199b9a3f7", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["scroll-fades"]||(t["scroll-fades"]=!0,function(){var t=window.matchMedia("(max-width: 760px), (max-height: 500px)"),e=[],a=null;function i(){return t.matches?20:34}window.zaismaScrollFadePx=i;var n=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-glide"))||.45),o=window.matchMedia("(prefers-reduced-motion: reduce)"),r=new WeakMap;function l(t,e,a,i){var l=r.get(t);l||(l={},r.set(t,l));var s=i&&!o.matches&&t.animate,c=s?getComputedStyle(t).getPropertyValue(e).trim():"";if(l[e]&&(l[e].cancel(),l[e]=null),a(),s){var d=getComputedStyle(t).getPropertyValue(e).trim(),u={};!c||d===c||(u[e]=[c,d],l[e]=t.animate(u,{duration:n,easing:"cubic-bezier(.4, 0, .2, 1)"}))}}function s(t,e,a){var i=a+"px";t.style.getPropertyValue(e)!==i&&l(t,e,(function(){t.style.setProperty(e,i)}),t.isFadeEased)}function c(t){var e=t.querySelector(":scope > table > thead");return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,headPx:e?e.offsetHeight:null}}function d(t){var e=t.map(c);t.forEach((function(t,a){!function(t,e){var a=e.scrollHeight>e.clientHeight+1,n=e.scrollTop>.5?i():0,o=e.scrollHeight-e.clientHeight-e.scrollTop>.5?i():0;s(t,"--fade-top",Math.max(0,n)),s(t,"--fade-bottom",Math.max(0,o)),null!==e.headPx&&t.style.setProperty("--fade-from",e.headPx+"px"),t.classList.toggle("is-fading",a),t.classList.toggle("is-scrollable",a),t.isFadeEased=!0}(t,e[a])}))}function u(t){a=new Set,t();var e=Array.from(a);a=null,d(e)}function f(t){a?a.add(t):d([t])}function h(t){t.classList.toggle("is-scrollable",t.scrollHeight>t.clientHeight+1)}var m=new WeakSet;function g(t){m.has(t)||(m.add(t),h(t),window.zaismaWatch.size(t.firstElementChild||t,(function(){h(t)})),t.addEventListener("input",(function(){h(t)})))}function w(t){var a=t.filter((function(t){return!t.classList.contains("scroll-fades")&&(!(/^(TEXTAREA|SELECT|INPUT)$/.test(t.tagName)||t.hasAttribute("data-scroll-box")||t.hasAttribute("data-own-fade"))||(g(t),!1))}));e=e.filter((function(t){return t.isConnected})),a.forEach((function(t){t.classList.add("scroll-fades"),e.push(t);var a=!1;t.addEventListener("scroll",(function(){a||(a=!0,requestAnimationFrame((function(){a=!1,f(t)})))}),{passive:!0}),window.zaismaWatch.size(t,(function(){f(t)}),u)})),d(a)}window.zaismaWatch.each("[data-scroll-box]",g),w(window.zaismaWatch.scrollBoxes()),window.zaismaWatch.page((function(t){var e=[];t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||t.closest(".rail, svg, .edge, .cut-line")||window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)}))}))})),e.length&&w(e)})),window.zaismaWatch.resize((function(){d(e)}));var p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.zaismaWatch.each("[data-fades-sideways]",(function(t){function e(){return Array.prototype.filter.call(t.querySelectorAll(":scope > *, :scope > * > *"),(function(e){return!(e.classList.contains("folded")||e.hasAttribute("aria-hidden")||e.children.length&&e.parentElement===t&&e.querySelector(":scope > a, :scope > button, :scope > .cover"))&&(e.getBoundingClientRect().width>=1&&!/^(absolute|fixed)$/.test(getComputedStyle(e).position))}))}var a=null;function i(){a||function(){var i=t.getBoundingClientRect(),n=1/0,o=-1/0,r=t.scrollLeft;e().forEach((function(t){var e=t.getBoundingClientRect();n=Math.min(n,e.left),o=Math.max(o,e.right)})),a={start:n===1/0?null:n-i.left+r,end:o-i.left+r,width:t.clientWidth,whole:t.scrollWidth}}();var i=t.scrollLeft,n=i,o=a.whole-a.width-i;return null===a.start?{before:n,after:o}:{before:Math.max(i-a.start,n),after:Math.max(a.end-i-a.width,o)}}function n(e,a,i){t.classList.contains(e)!==i&&l(t,a,(function(){t.classList.toggle(e,i)}),t.isSideFadeEased)}function o(){var t=i();return n("more-left","--fade-left",t.before>2),n("more-right","--fade-right",t.after>2),t}var r=t.querySelector('[aria-current="page"], [aria-pressed="true"]'),s=!1;function c(){a=null,r&&!s&&t.scrollWidth-t.clientWidth>1&&(s=!0,t.showWhole(r,!1)),o()}function d(e){var a=e.getBoundingClientRect(),i=a.left-t.getBoundingClientRect().left+t.scrollLeft;return{start:i,end:i+a.width}}t.showWhole=function(a,i){var n=getComputedStyle(t),o=t.scrollWidth-t.clientWidth,r=t.scrollLeft,l=d(a),s=parseFloat(n.scrollPaddingLeft)||0,c=parseFloat(n.getPropertyValue("--fade-sideways-px"))||s;if(!(o<=1)){var u=function(t){return t<o-1?c:0},f=r;l.start<r+(r>1?s:0)?f=l.start-s:l.end>r+t.clientWidth-u(r)&&(f=l.start-s,e().some((function(e){var a=Math.max(0,Math.min(o,d(e).start-s));return a>r&&l.end<=a+t.clientWidth-u(a)&&(f=a,!0)})));var h=e(),m=a===h[h.length-1];if(a===h[0]?f=0:m&&(f=o),f=Math.max(0,Math.min(o,f)),!(Math.abs(f-r)<1)){if(!i||p)return void(t.scrollLeft=f);t.scrollTo({left:f,behavior:"smooth"}),clearTimeout(t.settleTimer),t.settleTimer=setTimeout((function(){m&&(f=t.scrollWidth-t.clientWidth),Math.abs(t.scrollLeft-f)>1&&t.scrollTo({left:f,behavior:"smooth"})}),450)}}},r&&window.zaismaWatch.fontsIn((function(){s&&t.showWhole(r,!1)}));var u=!1;t.addEventListener("scroll",(function(){u||(u=!0,requestAnimationFrame((function(){u=!1,o()})))}),{passive:!0}),window.zaismaWatch.size(t,c),t.firstElementChild&&window.zaismaWatch.size(t.firstElementChild,c),window.zaismaWatch.fontArrived(c),c(),requestAnimationFrame((function(){requestAnimationFrame((function(){t.isSideFadeEased=!0}))}))}))}())}();` },
11487
+ "rails": { sourceSha256: "451a396b001050c6617c8f2ddd5af8e5790ddf1632736df00cf6a04211ec36b1", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.rails||(t.rails=!0,function(){var t=new Set,e=!1;function a(a){t.add(a),!e&&(e=!0,requestAnimationFrame((function(){e=!1;var a=Array.from(t);t.clear();var n=a.map((function(t){return t.place()}));a.forEach((function(t,e){t.putPlace(n[e])}));var i=a.filter((function(t,e){return t.isUnplaced(n[e])})),r=i.map((function(t){return t.place()}));i.forEach((function(t,e){n[a.indexOf(t)]=r[e],t.putPlace(r[e])}));var o=a.map((function(t,e){return t.measure(n[e])}));a.forEach((function(t,e){t.put(n[e],o[e])}))})))}function n(t,e){for(var a=t.nextElementSibling;a&&a.hasAttribute("data-rail");a=a.nextElementSibling)if(a.getAttribute("data-rail")===e)return!0;return!1}function i(t,e){t.map((function(t){var e="TEXTAREA"===t.tagName||"SELECT"===t.tagName&&(t.multiple||t.size>1);if(/^(SELECT|INPUT)$/.test(t.tagName)&&!e||n(t,"box")||"none"===getComputedStyle(t).scrollbarWidth&&!t.hasAttribute("data-side-rail")&&!t.classList.contains("own-scroll")||t.classList.contains("rail-thumb"))return null;var a=t.parentElement;return a&&a!==document.body?{box:t,isControl:e,isParentStatic:"static"===getComputedStyle(a).position}:null})).forEach((function(t){t&&(t.isParentStatic&&(t.box.parentElement.style.position="relative"),t.box.insertAdjacentHTML("afterend",'<div class="rail" data-rail="box" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>'))})),e.querySelectorAll("[data-side-rail]").forEach((function(t){n(t,"side")||t.insertAdjacentHTML("afterend",'<div class="rail sideways" data-rail="side" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>')}))}var r=new WeakSet,o=!1;function l(){var t=document.querySelector("body > header.top");return!(!t||!t.nextElementSibling)}function s(){document.querySelectorAll("[data-rail]").forEach((function(t){if(!r.has(t)){if("page"===t.getAttribute("data-rail")&&"loading"===document.readyState&&!l())return document.documentElement.classList.add("own-scroll"),void(o||(o=!0,window.zaismaWatch.arriving((function(){l()&&s()})),window.zaismaWatch.whenRead(s)));r.add(t);for(var e="page"===t.getAttribute("data-rail"),n="side"===t.getAttribute("data-rail"),i=e?null:t.previousElementSibling;i&&i.hasAttribute("data-rail");)i=i.previousElementSibling;if(i&&!i.matches("[data-rail-scroller]")&&(i=i.querySelector(":scope > [data-rail-scroller]")||i),e||i){var c=t.querySelector(".rail-groove"),d=t.querySelector(".rail-thumb"),u=getComputedStyle(t),m=parseFloat(u.getPropertyValue("--rail-reach"))||16,f=parseFloat(u.getPropertyValue("--rail-width"))||10,h=2*Math.SQRT2,p=e&&window.CSS&&CSS.supports("animation-timeline: scroll()");p&&t.classList.add("follows-scroll"),e?document.documentElement.classList.add("own-scroll"):i.classList.add("own-scroll");var g=!1,v=function(){return parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||90},w=e?Array.prototype.filter.call(document.querySelectorAll("[data-rail-mark]"),(function(t){return!t.closest("[data-rail-marks-own]")})):Array.prototype.filter.call(i.querySelectorAll("[data-rail-mark]"),(function(t){var e=t.parentElement.closest("[data-side-rail], [data-rail-marks-own]");return!e||e===i||!i.contains(e)}));!e&&w.length&&i.setAttribute("data-rail-marks-own","");var y=null;w.length&&((y=document.createElement("span")).className="tag rail-name rail-riding",y.setAttribute("data-cut-line","0"),y.appendChild(document.createElement("span")),t.appendChild(y));var x=w.map(B);e&&"loading"===document.readyState&&window.zaismaWatch.arriving((function(){var e=x.map((function(t){return t.part})),n=Array.prototype.filter.call(document.querySelectorAll("[data-rail-mark]"),(function(t){return e.indexOf(t)<0&&!t.closest("[data-rail-marks-own]")}));n.length&&(y||((y=document.createElement("span")).className="tag rail-name rail-riding",y.setAttribute("data-cut-line","0"),y.appendChild(document.createElement("span")),t.appendChild(y)),n.forEach((function(t){x.push(B(t))})),a(M))}));var b={track:0,thumb:0,max:1,start:0,startIn:h},E=t.querySelector(".rail-line"),C=e?document.querySelector("[data-rail-starts-below]"):null,M={place:function(){var a={whole:e?document.documentElement.scrollHeight:n?i.scrollWidth:i.scrollHeight,view:e?window.innerHeight:n?i.clientWidth:i.clientHeight};if(a.max=a.whole-a.view,C){var r=C.getBoundingClientRect();a.top=r.height>r.width?"":Math.round(r.bottom+10)+"px"}if(!e){var o=i.closest("[data-glass], .carving"),l=t.offsetParent;if(o&&l){var s=o.getBoundingClientRect(),c=parseFloat(getComputedStyle(o).getPropertyValue("--rail-inset"))||0,d=Math.min(s.width,s.height),u=(o.cutCorners||(window.zaismaCorners?window.zaismaCorners(o,"pane"):[0,0,0,0])).map((function(t){return Math.min(t,Math.round(.3*d))})),h=c*(Math.SQRT2-1),p=function(t){return Math.max(c,t-f+h)};if(n){var g=t.getBoundingClientRect(),v=g.left-(parseFloat(t.style.marginLeft)||0),w=g.right+(parseFloat(t.style.marginRight)||0),y=s.bottom-g.bottom<=c+2,x=i.querySelector(":scope > table.has-row-heads > tbody > tr > th"),b=x?x.offsetWidth:0,E=i.getBoundingClientRect();a.side=y?{left:Math.max(0,s.left+p(u[3])-v,b?E.left+b+c-v:0),right:Math.max(0,w-(s.right-p(u[2])))}:{left:0,right:0}}else{var M=l.getBoundingClientRect(),S=i.getBoundingClientRect(),L=o.offsetWidth?s.width/o.offsetWidth:1,k=i.querySelector(":scope > table > thead"),A=p(u[1]),T=p(u[2]),z=k?k.offsetHeight:0,P=i.classList.contains("shows-side-rail")&&i.nextElementSibling&&i.nextElementSibling.matches(".rail.sideways")?(f+2*c)*L:0,F=S.top+(z?(z+c)*L:0),R=S.bottom-P,W=Math.max(F,s.top+A*L),B=Math.min(R,s.bottom-T*L),q=Math.min(S.right,s.right-c*L);a.box={top:(W-M.top)/L-l.clientTop,height:Math.max(0,B-W)/L,left:(q-M.left)/L-l.clientLeft-(m+f)/2}}}}return a},putPlace:function(a){void 0!==a.top&&(t.style.top=a.top),a.side&&(t.style.marginLeft=a.side.left.toFixed(1)+"px",t.style.marginRight=a.side.right.toFixed(1)+"px"),a.box&&(t.style.top=a.box.top.toFixed(1)+"px",t.style.height=a.box.height.toFixed(1)+"px",t.style.left=a.box.left.toFixed(1)+"px"),g!==a.max>4&&(g=a.max>4,t.classList.toggle("is-on",g)),e||i.classList.toggle(n?"shows-side-rail":"shows-rail",g)},isUnplaced:function(t){return!e&&g&&!t.box&&!t.side},measure:function(){if(!g)return null;var t=e&&x.length?v():0;return{track:(n?c.clientWidth:c.clientHeight)-N(!0)-N(!1),start:(n?c.offsetLeft+c.parentElement.offsetLeft:c.offsetTop+c.parentElement.offsetTop)+N(!0),startIn:N(!0),at:q(),marks:x.map((function(e){return!!e.part.offsetParent?{shown:!0,spot:W(e.part,t),size:n?e.name.offsetWidth:e.name.offsetHeight}:{shown:!1}}))}},put:function(t,e){if(e){var a=e.track,i=t.max,r=Math.max(36,Math.round(a*t.view/t.whole));b={track:a,thumb:r,max:i,start:e.start,startIn:e.startIn},p?d.style.setProperty("--thumb-share",(t.view/t.whole).toFixed(4)):d.style[n?"width":"height"]=r+"px",O(e.at),x.forEach((function(t,o){var l=e.marks[o];if(t.mark.hidden=!l.shown,l.shown){var s=Math.max(0,Math.min(i,l.spot));t.mark.style[n?"left":"top"]=(e.start+(a-r)*s/i+r/2).toFixed(1)+"px",t.size=l.size||(n?t.name.offsetWidth:t.name.offsetHeight)}})),function(t){x.forEach((function(e){if(!e.mark.hidden){var a=parseFloat(e.mark.style[n?"left":"top"])||0,i=(e.size||0)/2,r=Math.max(i,Math.min(t-i,a));e.restShift=(r-a).toFixed(1)+"px",e.name.style.setProperty("--label-shift",e.restShift)}}))}(a)}}},S=!1,L=0,k=!1;(e?window:i).addEventListener("scroll",(function(){V(),!k&&(k=!0,requestAnimationFrame((function(){k=!1,O()})))}),{passive:!0}),window.zaismaWatch.resize(Y);var A=e?document.body:Array.prototype.filter.call(i.children,(function(t){return!t.matches("svg, .edge, .cut-line, .rail")}));e?window.zaismaWatch.size(A,Y):Array.prototype.concat.apply([i],Array.prototype.slice.call(A)).forEach((function(t){window.zaismaWatch.size(t,Y)})),C&&window.zaismaWatch.size(C,Y),e||window.zaismaWatch.page((function(t){t.some((function(t){return i.contains(t.target)}))&&Y()}));var T=null;d.addEventListener("pointerdown",(function(t){Q(t,!1)}));var z=!1,P=null,F=0;t.addEventListener("pointerdown",(function(t){if(!d.contains(t.target)){if(t.target.closest(".rail-mark")){var e=d.getBoundingClientRect();return void((z=I(t)>=(n?e.left:e.top)&&I(t)<=(n?e.right:e.bottom))&&(P=t.target.closest(".rail-mark"),F=I(t),Q(t,!1)))}Q(t,!0)}})),t.addEventListener("pointermove",U),window.addEventListener("pointermove",(function(e){T&&!t.hasPointerCapture(e.pointerId)&&U(e)})),window.addEventListener("pointerup",(function(e){T&&!t.hasPointerCapture(e.pointerId)&&D(e)})),window.addEventListener("pointercancel",(function(){T&&X()})),t.addEventListener("pointermove",j),t.addEventListener("pointerdown",j);var R=18;t.addEventListener("pointerup",D),t.addEventListener("pointercancel",X),Y(),V()}}function W(t,a){if(e)return t.getBoundingClientRect().top+window.scrollY-(void 0===a?v():a);var r=i.getBoundingClientRect(),o=t.getBoundingClientRect();return n?o.left-r.left+i.scrollLeft:o.top-r.top+i.scrollTop}function B(a){var r=document.createElement("button"),o=document.createElement("span");function l(){var t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";e?window.scrollTo({top:W(a),behavior:t}):i.scrollTo(n?{left:W(a),behavior:t}:{top:W(a),behavior:t})}return r.type="button",r.className="rail-mark",r.tabIndex=-1,o.className="tag rail-name",o.setAttribute("data-cut-line","0"),o.appendChild(document.createElement("span")).textContent=a.getAttribute("data-rail-mark"),r.appendChild(o),t.appendChild(r),r.addEventListener("click",(function(){z?z=!1:l()})),r.goToPart=l,{part:a,mark:r,name:o}}function q(){return e?window.scrollY:n?i.scrollLeft:i.scrollTop}function H(t){e?window.scrollTo(0,t):n?i.scrollLeft=t:i.scrollTop=t}function I(t){return n?t.clientX:t.clientY}function N(t){if(e)return h;var a=E.cutCorners||[0,0,0,0],i=n?t?a[3]:a[2]:t?a[1]:a[2];return Math.max(0,i-(4-2*Math.SQRT2)-(n?c.clientHeight:c.clientWidth))}function Y(){T?S=!0:a(M)}function O(t){T&&j(),g&&!p&&(d.style.transform=(n?"translateX(":"translateY(")+(b.startIn+(b.track-b.thumb)*Math.min(1,(void 0===t?q():t)/b.max)).toFixed(1)+"px)")}function V(){t.classList.contains("awake")||t.classList.add("awake"),clearTimeout(L),L=setTimeout((function(){t.classList.remove("awake")}),1100)}function Q(a,r){a.preventDefault();var o=q();if(r){var l=I(a)-(n?c.getBoundingClientRect().left:c.getBoundingClientRect().top)-b.thumb/2;H(Math.max(0,Math.min(1,l/(b.track-b.thumb)))*b.max)}T={y:I(a),last:I(a),from:q(),scrolls:[o,q()],isMoving:"mouse"===a.pointerType,isTouch:"mouse"!==a.pointerType},t.classList.add("dragging"),!e&&"none"!==getComputedStyle(i).scrollSnapType&&i.classList.add("is-dragged");try{t.setPointerCapture(a.pointerId)}catch{}}function U(t){if(T){var a=function(t){var a=I(t);if(!T.isTouch||!e)return a;var n=a+window.scrollY,i=a,r=1/0;return T.scrolls.forEach((function(t){var e=n-t,a=Math.abs(e-T.last);a<r&&(r=a,i=e)})),i}(t);if(T.last=a,!T.isMoving){if(Math.abs(a-T.y)<6)return;T.isMoving=!0,T.y=a,T.from=q()}var n=Math.max(0,Math.min(b.max,T.from+(a-T.y)*b.max/Math.max(1,b.track-b.thumb)));Math.abs(n-q())<1||(H(n),T.scrolls.push(q()),T.scrolls.length>8&&T.scrolls.shift())}}function X(){T=null,t.classList.remove("dragging"),function(){if(!e&&i.classList.contains("is-dragged")){var t=i.getBoundingClientRect(),a=getComputedStyle(i),r=q(),o=parseFloat(n?a.scrollPaddingLeft:a.scrollPaddingTop)||0,l=n?t.left+i.clientLeft:t.top+i.clientTop,s=Array.prototype.filter.call(i.children,(function(t){return getComputedStyle(t).scrollSnapAlign.indexOf("start")>=0})).map((function(t){var e=t.getBoundingClientRect();return Math.max(0,Math.min(b.max,r+(n?e.left:e.top)-l-o))}));s.push(0,b.max);var c=s.length?s.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t})):r,d=function(){T||i.classList.remove("is-dragged")},u=1e3*parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-arrive"))||300;if(Math.abs(c-r)<1||matchMedia("(prefers-reduced-motion: reduce)").matches)return H(c),d();var m=performance.now();!function t(e){if(!T){var a=Math.min(1,(e-m)/u);H(r+(c-r)*(1-Math.pow(1-a,3))),a<1?requestAnimationFrame(t):d()}}(m)}}(),S&&(S=!1,Y())}function j(){if(x.length&&T){var t=b.start+(b.track-b.thumb)*Math.min(1,q()/b.max)+b.thumb/2,a=null,r=e?{start:0,size:window.innerHeight}:(o=i.getBoundingClientRect(),{start:n?o.left:o.top,size:n?o.width:o.height});x.forEach((function(t){if(!t.mark.hidden){var e=t.part.getBoundingClientRect();(!a||(n?e.left:e.top)-r.start<=r.size/3)&&(a=t)}})),a&&y.lastChild.textContent!==a.name.textContent&&(y.lastChild.textContent=a.name.textContent),y.style.setProperty("--riding-at",t.toFixed(1)+"px")}var o}function D(t){var e=!(!T||!T.isMoving),a=P&&Math.abs(I(t)-F)<4?P:null;if(P=null,X(),a)a.goToPart();else if(e&&"mouse"!==t.pointerType&&x.length){var i=b.start+(b.track-b.thumb)*Math.min(1,q()/b.max)+b.thumb/2,r=null,o=R;x.forEach((function(t){if(!t.mark.hidden){var e=Math.abs(parseFloat(t.mark.style[n?"left":"top"])-i);e<=o&&(o=e,r=t)}})),r&&r.mark.click()}}}))}i(window.zaismaWatch.scrollBoxes(),document),s(),window.zaismaWatch.page((function(t){var e=[],a=!1,n=!1;t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||(t.matches("[data-rail]")&&!r.has(t)&&(n=!0),!t.closest(".rail, svg, .edge, .cut-line")&&(window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),(t.matches("[data-side-rail]")||t.querySelector("[data-side-rail]"))&&(a=!0)))}))})),(e.length||a||n)&&(i(e,document),s())}))}())}();` },
11488
+ "scroll-fades": { sourceSha256: "ab0ae4d35627c07e2f1fb06b14b8575b1fc83f5b0385647a13e3f853071aa3e8", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["scroll-fades"]||(t["scroll-fades"]=!0,function(){var t=window.matchMedia("(max-width: 760px), (max-height: 500px)"),e=[],a=null;function n(){return t.matches?20:34}window.zaismaScrollFadePx=n;var i=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-glide"))||.45),o=window.matchMedia("(prefers-reduced-motion: reduce)"),r=new WeakMap;function l(t,e,a,n){var l=r.get(t);l||(l={},r.set(t,l));var s=n&&!o.matches&&t.animate,c=s?getComputedStyle(t).getPropertyValue(e).trim():"";if(l[e]&&(l[e].cancel(),l[e]=null),a(),s){var d=getComputedStyle(t).getPropertyValue(e).trim(),u={};!c||d===c||(u[e]=[c,d],l[e]=t.animate(u,{duration:i,easing:"cubic-bezier(.4, 0, .2, 1)"}))}}function s(t,e,a){var n=a+"px";t.style.getPropertyValue(e)!==n&&l(t,e,(function(){t.style.setProperty(e,n)}),t.isFadeEased)}function c(t){var e=t.querySelector(":scope > table > thead");return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,headPx:e?e.offsetHeight:null}}function d(t){var e=t.map(c);t.forEach((function(t,a){!function(t,e){var a=e.scrollHeight>e.clientHeight+1,i=e.scrollTop>.5?n():0,o=e.scrollHeight-e.clientHeight-e.scrollTop>.5?n():0;s(t,"--fade-top",Math.max(0,i)),s(t,"--fade-bottom",Math.max(0,o)),null!==e.headPx&&t.style.setProperty("--fade-from",e.headPx+"px"),t.classList.toggle("is-fading",a),t.classList.toggle("is-scrollable",a),t.isFadeEased=!0}(t,e[a])}))}function u(t){a=new Set,t();var e=Array.from(a);a=null,d(e)}function f(t){a?a.add(t):d([t])}function h(t){t.classList.toggle("is-scrollable",t.scrollHeight>t.clientHeight+1)}var m=new WeakSet;function g(t){m.has(t)||(m.add(t),h(t),window.zaismaWatch.size(t.firstElementChild||t,(function(){h(t)})),t.addEventListener("input",(function(){h(t)})))}function w(t){var a=t.filter((function(t){return!t.classList.contains("scroll-fades")&&(!(/^(TEXTAREA|SELECT|INPUT)$/.test(t.tagName)||t.hasAttribute("data-scroll-box")||t.hasAttribute("data-own-fade"))||(g(t),!1))}));e=e.filter((function(t){return t.isConnected})),a.forEach((function(t){t.classList.add("scroll-fades"),e.push(t);var a=!1;function n(e){Array.prototype.forEach.call(e,(function(e){1===e.nodeType&&window.zaismaWatch.size(e,(function(){f(t)}),u)}))}t.addEventListener("scroll",(function(){a||(a=!0,requestAnimationFrame((function(){a=!1,f(t)})))}),{passive:!0}),window.zaismaWatch.size(t,(function(){f(t)}),u),n(t.children),new MutationObserver((function(t){t.forEach((function(t){n(t.addedNodes)}))})).observe(t,{childList:!0})})),d(a)}window.zaismaWatch.each("[data-scroll-box]",g),w(window.zaismaWatch.scrollBoxes()),window.zaismaWatch.page((function(t){var e=[];t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||t.closest(".rail, svg, .edge, .cut-line")||window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)}))}))})),e.length&&w(e)})),window.zaismaWatch.resize((function(){d(e)}));var p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.zaismaWatch.each("[data-fades-sideways]",(function(t){function e(){return Array.prototype.filter.call(t.querySelectorAll(":scope > *, :scope > * > *"),(function(e){return!(e.classList.contains("folded")||e.hasAttribute("aria-hidden")||e.children.length&&e.parentElement===t&&e.querySelector(":scope > a, :scope > button, :scope > .cover"))&&(e.getBoundingClientRect().width>=1&&!/^(absolute|fixed)$/.test(getComputedStyle(e).position))}))}var a=null;function n(){a||function(){var n=t.getBoundingClientRect(),i=1/0,o=-1/0,r=t.scrollLeft;e().forEach((function(t){var e=t.getBoundingClientRect();i=Math.min(i,e.left),o=Math.max(o,e.right)})),a={start:i===1/0?null:i-n.left+r,end:o-n.left+r,width:t.clientWidth,whole:t.scrollWidth}}();var n=t.scrollLeft,i=n,o=a.whole-a.width-n;return null===a.start?{before:i,after:o}:{before:Math.max(n-a.start,i),after:Math.max(a.end-n-a.width,o)}}function i(e,a,n){t.classList.contains(e)!==n&&l(t,a,(function(){t.classList.toggle(e,n)}),t.isSideFadeEased)}function o(){var t=n();return i("more-left","--fade-left",t.before>2),i("more-right","--fade-right",t.after>2),t}var r=t.querySelector('[aria-current="page"], [aria-pressed="true"]'),s=!1;function c(){a=null,r&&!s&&t.scrollWidth-t.clientWidth>1&&(s=!0,t.showWhole(r,!1)),o()}function d(e){var a=e.getBoundingClientRect(),n=a.left-t.getBoundingClientRect().left+t.scrollLeft;return{start:n,end:n+a.width}}t.showWhole=function(a,n){var i=getComputedStyle(t),o=t.scrollWidth-t.clientWidth,r=t.scrollLeft,l=d(a),s=parseFloat(i.scrollPaddingLeft)||0,c=parseFloat(i.getPropertyValue("--fade-sideways-px"))||s;if(!(o<=1)){var u=function(t){return t<o-1?c:0},f=r;l.start<r+(r>1?s:0)?f=l.start-s:l.end>r+t.clientWidth-u(r)&&(f=l.start-s,e().some((function(e){var a=Math.max(0,Math.min(o,d(e).start-s));return a>r&&l.end<=a+t.clientWidth-u(a)&&(f=a,!0)})));var h=e(),m=a===h[h.length-1];if(a===h[0]?f=0:m&&(f=o),f=Math.max(0,Math.min(o,f)),!(Math.abs(f-r)<1)){if(!n||p)return void(t.scrollLeft=f);t.scrollTo({left:f,behavior:"smooth"}),clearTimeout(t.settleTimer),t.settleTimer=setTimeout((function(){m&&(f=t.scrollWidth-t.clientWidth),Math.abs(t.scrollLeft-f)>1&&t.scrollTo({left:f,behavior:"smooth"})}),450)}}},r&&window.zaismaWatch.fontsIn((function(){s&&t.showWhole(r,!1)}));var u=!1;t.addEventListener("scroll",(function(){u||(u=!0,requestAnimationFrame((function(){u=!1,o()})))}),{passive:!0}),window.zaismaWatch.size(t,c),t.firstElementChild&&window.zaismaWatch.size(t.firstElementChild,c),window.zaismaWatch.fontArrived(c),t.fadeEndsAgain=c,c(),requestAnimationFrame((function(){requestAnimationFrame((function(){t.isSideFadeEased=!0}))}))}))}())}();` },
11470
11489
  "backdrop": { sourceSha256: "f123c40efb4bf6587c217426e7ed19112c2b8b0e91bd71874ce7acb321a0c67e", minifiedText: `!function(){var e=window.zaismaPieces=window.zaismaPieces||{};e.backdrop||(e.backdrop=!0,function(){var e="float h1(float n){return fract(sin(n*127.1)*43758.5453);}\\nfloat h2(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}\\nvec2 h22(vec2 p){p=vec2(dot(p,vec2(127.1,311.7)),dot(p,vec2(269.5,183.3)));return fract(sin(p)*43758.5453);}\\nfloat noise(vec2 p){vec2 i=floor(p),f=fract(p);vec2 u=f*f*(3.0 - 2.0*f);\\n return mix(mix(h2(i),h2(i + vec2(1.0,0.0)),u.x),mix(h2(i + vec2(0.0,1.0)),h2(i + vec2(1.0,1.0)),u.x),u.y);}\\nfloat fbm(vec2 p){float v=0.0,a=0.5;for(int i=0;i<5;i++){v +=a*noise(p);p=p*2.03 + 1.7;a*=0.5;}return v;}\\nfloat motes(vec2 p,float size,float chance,float seed){\\n vec2 id=floor(p),f=fract(p)- 0.5;vec2 r=h22(id + seed)- 0.5;\\n float on=step(1.0 - chance,h2(id + seed*1.3));\\n float d=length(f - r*0.7);\\n return on*smoothstep(size,0.0,d);\\n}\\n",a="uniform vec2 zaismaViewOffset;\\nout vec4 zaismaFragColor;\\nvoid main() { vec4 color = vec4(0.0); mainImage(color, gl_FragCoord.xy + zaismaViewOffset); zaismaFragColor = vec4(color.rgb, 1.0); }",t="/js/zaisma-shader.8fcb55f6a1be6e26.js",r="zaisma-shader-parts",i=null,n=!1;try{var s=JSON.parse(localStorage.getItem(r));s&&s.path===t&&(i=s.parts)}catch{}function o(){if(!i&&!n){n=!0;var e=document.createElement("script");e.src=t,document.head.appendChild(e)}}window.zaismaShaderPartsArrived=function(e){i=e;try{localStorage.setItem(r,JSON.stringify({path:t,parts:e}))}catch{}E()};var c="#version 300 es\\nprecision highp float;\\nprecision highp int;\\nprecision highp sampler2D;\\nuniform vec3 iResolution;\\nuniform float iTime;\\nuniform float iTimeDelta;\\nuniform int iFrame;\\nuniform float iQuality;\\nuniform sampler2D iChannel0;\\nuniform sampler2D iChannel1;\\nuniform sampler2D iChannel2;\\nuniform sampler2D iChannel3;\\nuniform vec3 iChannelResolution[4];\\nuniform vec4 iGlassPanes[16];\\nuniform int iGlassPaneCount;\\n#line 1\\n",d=6e4,u=33,m=67,f=window.matchMedia("(prefers-reduced-motion: reduce)"),l=[],h=0,p=!1,g=!1,v=!0,w=!1;function E(){p||(p=!0,g=!0,requestAnimationFrame(de))}function b(e){var a=e.trim().replace("#","");3===a.length&&(a=a.split("").map((function(e){return e+e})).join(""));var t=parseInt(a,16)||0;return[(t>>16&255)/255,(t>>8&255)/255,(255&t)/255]}function T(e){var a=getComputedStyle(e);return{base:b(a.getPropertyValue("--backdrop-base")),a:b(a.getPropertyValue("--backdrop-a")),b:b(a.getPropertyValue("--backdrop-b")),c:b(a.getPropertyValue("--backdrop-c")),isDark:/dark/.test(a.colorScheme||"")}}var x=!0,A=!0,S=[];function R(){A=!0,E()}function k(e){return e.closest(":has(> .backdrop)")}function z(e){var a=function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)};return.2126*a(e[0])+.7152*a(e[1])+.0722*a(e[2])}function M(e,a){var t=z(e),r=z(a);return(Math.max(t,r)+.05)/(Math.min(t,r)+.05)}function D(e,a,t){return[e[0]+(a[0]-e[0])*t,e[1]+(a[1]-e[1])*t,e[2]+(a[2]-e[2])*t]}function y(e,a){for(var t=a.slice().sort((function(e,a){return z(e)-z(a)})),r=e.isSmoked?t[Math.floor(.75*t.length)]:t[Math.floor(.25*t.length)],i=.3;i<=.95;i+=.02){var n=D(r,e.base,i),s=e.isSmoked?[247,249,252]:[20,23,28];if(M(n,e.isSmoked?D(n,s,.7):[89,96,106])>=4.5&&M(n,s)>=6)return i}return.95}function P(e,a){e.glassPick!==a&&(e.glassPick=a,e.classList.toggle("smoke",a.isSmoked),a.isSmoked?e.removeAttribute("data-theme-choice"):e.setAttribute("data-theme-choice","light"),e.style.setProperty("--glass-tint",a.tint))}function F(e,a){a.length&&_(e,function(e){var a=e.reduce((function(e,a){return[e[0]+a[0],e[1]+a[1],e[2]+a[2]]}),[0,0,0]).map((function(a){return a/e.length})),t={isSmoked:!1,base:D([255,255,255],a,.1)},r={isSmoked:!0,base:D([12,15,20],a,.3)},i=y(t,e),n=y(r,e),s=i<=n?t:r;return{isSmoked:s.isSmoked,tint:"rgba("+s.base.map(Math.round).join(", ")+", "+Math.min(i,n).toFixed(2)+")"}}(a))}function _(e,a){var t=e.canvas.parentElement;t&&(t.shownGlass=a,x=!0,void 0===t.ownThemeChoice&&(t.ownThemeChoice=t.getAttribute("data-theme-choice")),t.classList.toggle("smoke",a.isSmoked),a.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice",t.ownThemeChoice||"light"),t.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(e){k(e)===t&&P(e,t.shownGlass)})))}function I(e){for(var a=[],t=4*Math.max(1,Math.floor(e.length/4/2400)),r=0;r<e.length;r+=t)a.push([e[r],e[r+1],e[r+2]]);return a}function L(e){var a=e.canvas.contentWindow;if(a)try{a.postMessage({panes:[],isIdle:O},new URL(e.canvas.src).origin)}catch{}}var O=!1,U=0;function C(){O=!0,G()}function G(){l.forEach((function(e){"frame"===e.kind&&L(e)}))}var N=null,V=!1;function B(){if(N)return N.isLost?null:N;if(V)return null;var e=document.createElement("canvas");e.width=2,e.height=2;var a=e.getContext("webgl2",{antialias:!1,depth:!1,stencil:!1,alpha:!1,powerPreference:"low-power"});if(!a)return V=!0,null;function t(){a.bindVertexArray(a.createVertexArray()),a.bindBuffer(a.ARRAY_BUFFER,a.createBuffer()),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),a.STATIC_DRAW),a.enableVertexAttribArray(0),a.vertexAttribPointer(0,2,a.FLOAT,!1,0,0),N.vertex=a.createShader(a.VERTEX_SHADER),a.shaderSource(N.vertex,"#version 300 es\\nin vec2 corner;\\nvoid main() { gl_Position = vec4(corner, 0.0, 1.0); }"),a.compileShader(N.vertex),N.upscale={status:"compiling",names:["zaismaDrawn","zaismaDrawnSize","zaismaCanvasSize"]},H(N.upscale,"#version 300 es\\nprecision highp float;\\nuniform sampler2D zaismaDrawn;\\nuniform vec2 zaismaDrawnSize;\\nuniform vec2 zaismaCanvasSize;\\nout vec4 zaismaFragColor;\\nvec3 zaismaTap(vec2 texel) {\\n return texture(zaismaDrawn, clamp(texel, vec2(0.5), zaismaDrawnSize - 0.5) / vec2(textureSize(zaismaDrawn, 0))).rgb;\\n}\\nvoid main() {\\n vec2 at = gl_FragCoord.xy / zaismaCanvasSize * zaismaDrawnSize;\\n vec2 middle = floor(at - 0.5) + 0.5, f = at - middle;\\n vec2 w0 = f * (-0.5 + f * (1.0 - 0.5 * f)), w1 = 1.0 + f * f * (-2.5 + 1.5 * f), w2 = f * (0.5 + f * (2.0 - 1.5 * f)), w3 = f * f * (-0.5 + 0.5 * f);\\n vec2 w12 = w1 + w2, at0 = middle - 1.0, at3 = middle + 2.0, at12 = middle + w2 / w12;\\n vec3 color = (zaismaTap(vec2(at0.x, at0.y)) * w0.x + zaismaTap(vec2(at12.x, at0.y)) * w12.x + zaismaTap(vec2(at3.x, at0.y)) * w3.x) * w0.y\\n + (zaismaTap(vec2(at0.x, at12.y)) * w0.x + zaismaTap(vec2(at12.x, at12.y)) * w12.x + zaismaTap(vec2(at3.x, at12.y)) * w3.x) * w12.y\\n + (zaismaTap(vec2(at0.x, at3.y)) * w0.x + zaismaTap(vec2(at12.x, at3.y)) * w12.x + zaismaTap(vec2(at3.x, at3.y)) * w3.x) * w3.y;\\n vec3 north = zaismaTap(at + vec2(0.0, 1.0)), south = zaismaTap(at - vec2(0.0, 1.0)), east = zaismaTap(at + vec2(1.0, 0.0)), west = zaismaTap(at - vec2(1.0, 0.0));\\n vec3 low = min(min(min(north, south), min(east, west)), color), high = max(max(max(north, south), max(east, west)), color);\\n vec3 weight = -sqrt(clamp(min(low, 2.0 - high) / max(high, vec3(0.0001)), 0.0, 1.0)) / 7.0;\\n zaismaFragColor = vec4(clamp((color + (north + south + east + west) * weight) / (1.0 + 4.0 * weight), 0.0, 1.0), 1.0);\\n}"),N.drawn={texture:a.createTexture(),framebuffer:a.createFramebuffer(),widthPx:0,heightPx:0}}return N={board:e,gl:a,programs:{},isLost:!1,parallel:a.getExtension("KHR_parallel_shader_compile")},t(),e.addEventListener("webglcontextlost",(function(e){e.preventDefault(),N.isLost=!0})),e.addEventListener("webglcontextrestored",(function(){N.programs={},N.zaisma=null,l.forEach((function(e){e.parts=null})),N.isLost=!1,t(),l.forEach((function(e){e.isDrawn=!1})),E()})),N}function H(e,a){var t=N.gl,r=t.createShader(t.FRAGMENT_SHADER),i=t.createProgram();t.shaderSource(r,a),t.compileShader(r),t.attachShader(i,N.vertex),t.attachShader(i,r),t.bindAttribLocation(i,0,"corner"),t.linkProgram(i),e.pending={program:i,fragment:r}}function X(e){if("compiling"!==e.status)return"ready"===e.status;var a=N.gl,t=e.pending;return!(N.parallel&&!w&&!a.getProgramParameter(t.program,N.parallel.COMPLETION_STATUS_KHR))&&(a.getProgramParameter(t.program,a.LINK_STATUS)?(e.program=t.program,e.status="ready",e.at={},e.names.forEach((function(r){e.at[r]=a.getUniformLocation(t.program,r)}))):(console.warn("Backdrop shader:",a.getShaderInfoLog(t.fragment)||a.getProgramInfoLog(t.program)),a.deleteProgram(t.program),e.status="failed"),a.deleteShader(t.fragment),"compiling"!==e.status&&(e.pending=null),"ready"===e.status)}function W(t,r){if(t.programs[r])return t.programs[r];var i={status:"compiling",names:["iResolution","iTime","iDark","zaismaViewOffset"]};return H(i,c+"uniform float iDark;\\n"+e+r+"\\n"+a),t.programs[r]=i,i}var q=["iResolution","iTime","iDark","zaismaViewOffset"];function j(t){if(t.zaisma)return t.zaisma;var r=c+"uniform float iDark;\\n"+e,n=r+"#define RIDGE_OCTAVES 6\\n"+i.shapes+i.live,s={status:"compiling",names:q.concat(["zaismaSoftA","zaismaSoftB","zaismaSoftC","zaismaStrip","zaismaShadeA","zaismaShadeB","zaismaUv"])};function o(e){var a={status:"compiling",names:q};return H(a,n+e),a}return H(s,r+"#define RIDGE_OCTAVES 4\\n"+i.shapes+i.stored+i.draw+"\\n"+a),t.zaisma={sharp:s,soft:o(i.soft),strip:o(i.strip),shade:o(i.shade)},t.zaisma}function Y(e,a,t){for(var r={framebuffer:e.createFramebuffer(),textures:[],widthPx:0,heightPx:0},i=0;i<a;i++)r.textures.push(e.createTexture());return r.size=function(a,i){r.widthPx===a&&r.heightPx===i||(r.widthPx=a,r.heightPx=i,e.bindFramebuffer(e.FRAMEBUFFER,r.framebuffer),r.textures.forEach((function(r,n){e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA8,a,i,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t?e.LINEAR:e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t?e.LINEAR:e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.TEXTURE_2D,r,0)})),e.drawBuffers(r.textures.map((function(a,t){return e.COLOR_ATTACHMENT0+t}))))},r}function J(e,a,t,r,i,n,s,o,c){e.bindFramebuffer(e.FRAMEBUFFER,t.framebuffer),e.useProgram(a.program),e.viewport(0,0,r,i);var d=r*n,u=d/s;e.uniform3f(a.at.iResolution,d,u,1),e.uniform1f(a.at.iTime,o),e.uniform1f(a.at.iDark,c),e.uniform2f(a.at.zaismaViewOffset,(d-r)/2,(u-i)/2),e.drawArrays(e.TRIANGLES,0,3)}function K(e){var a=!e.getAttribute("data-backdrop-shader"),t=e.getAttribute("data-backdrop-shader"),r=B(),n=null;if(!r)return null;function s(){return a&&!t&&i&&(t="#define RIDGE_OCTAVES 4\\n"+i.shapes+i.live+i.draw),t}function c(r,i,c){if(!s())return o(),!1;var d=B();if(d&&a&&!c.isOnePass){var u=j(d),m=[u.sharp,u.soft,u.strip,u.shade].map(X).every(Boolean);if([u.sharp,u.soft,u.strip,u.shade].some((function(e){return"failed"===e.status})))c.isOnePass=!0;else if(!m)return!1}var f=d&&(a&&!c.isOnePass?j(d).sharp:W(d,t));if(!f||!X(f)||!X(d.upscale))return f&&("failed"===f.status||"failed"===d.upscale.status)&&(c.isLost=!0),!1;if(!(n=n||e.getContext("2d",{alpha:!1})))return!1;var l=d.gl,h=d.board,p=e.width,g=e.height,v=c.drawnWidth,w=c.drawnHeight,E=f.at;(h.width<p||h.height<g)&&(h.width=Math.max(h.width,p),h.height=Math.max(h.height,g));var b=a&&!c.isOnePass,T=b?null:function(e,a,t){var r=e.gl,i=e.drawn;return(i.widthPx<a||i.heightPx<t)&&(i.widthPx=Math.max(i.widthPx,a),i.heightPx=Math.max(i.heightPx,t),r.bindTexture(r.TEXTURE_2D,i.texture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA8,i.widthPx,i.heightPx,0,r.RGBA,r.UNSIGNED_BYTE,null),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.bindFramebuffer(r.FRAMEBUFFER,i.framebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,i.texture,0)),i}(d,v,w);b||(l.bindFramebuffer(l.FRAMEBUFFER,T.framebuffer),l.useProgram(f.program),l.viewport(0,0,v,w));var x=e.classList.contains("is-framed")?1.8:1,A=v*x,R=w*x;b?function(e,a,t,r,i,n,s,o){var c=e.gl,d=j(e),u=d.sharp,m=a.parts,f=r/i;m||(m=a.parts={strip:Y(c,1,!1),shade:Y(c,2,!0),soft:Y(c,3,!0),storedWidth:0,storedHeight:0}),(m.storedWidth!==r||m.storedHeight!==i)&&(m.storedWidth=r,m.storedHeight=i,m.strip.size(r,7),m.shade.size(Math.max(2,r>>1),Math.max(2,i>>1)),c.bindFramebuffer(c.FRAMEBUFFER,m.strip.framebuffer),c.useProgram(d.strip.program),c.viewport(0,0,r,7),c.uniform3f(d.strip.at.iResolution,r*o,i*o,1),c.uniform1f(d.strip.at.iTime,0),c.uniform1f(d.strip.at.iDark,0),c.uniform2f(d.strip.at.zaismaViewOffset,(r*o-r)/2,0),c.drawArrays(c.TRIANGLES,0,3),J(c,d.shade,m.shade,m.shade.widthPx,m.shade.heightPx,o,f,0,0));var l=Math.max(160,Math.round(Math.min(540,Math.max(300,.34*i))*a.softShare)),h=Math.max(2,Math.round(l*f));m.soft.size(h,l),J(c,d.soft,m.soft,h,l,o,f,n,s),c.bindFramebuffer(c.FRAMEBUFFER,null),c.useProgram(u.program),c.viewport(0,0,r,i);var p=u.at;[["zaismaSoftA",m.soft.textures[0]],["zaismaSoftB",m.soft.textures[1]],["zaismaSoftC",m.soft.textures[2]],["zaismaStrip",m.strip.textures[0]],["zaismaShadeA",m.shade.textures[0]],["zaismaShadeB",m.shade.textures[1]]].forEach((function(e,a){c.activeTexture(c.TEXTURE0+a),c.bindTexture(c.TEXTURE_2D,e[1]),c.uniform1i(p[e[0]],a)})),c.activeTexture(c.TEXTURE0);var g=r*o,v=i*o,w=(g-r)/2,E=(v-i)/2;c.uniform3f(p.iResolution,g,v,1),c.uniform1f(p.iTime,n),c.uniform1f(p.iDark,s),c.uniform2f(p.zaismaViewOffset,w,E),c.uniform4f(p.zaismaUv,1/r,1/i,-w/r,-E/i)}(d,c,0,p,g,r,i.darkShare,x):(l.uniform3f(E.iResolution,A,R,1),l.uniform1f(E.iTime,r),l.uniform1f(E.iDark,i.darkShare),l.uniform2f(E.zaismaViewOffset,(A-v)/2,(R-w)/2));var k=e.hasAttribute("data-adapts-glass")&&!c.isGlassAdapted&&S.some((function(a){return a.glassHost===e.parentElement}));if(l.drawArrays(l.TRIANGLES,0,3),!b){var z=d.upscale;l.bindFramebuffer(l.FRAMEBUFFER,null),l.useProgram(z.program),l.viewport(0,0,p,g),l.activeTexture(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,T.texture),l.uniform1i(z.at.zaismaDrawn,0),l.uniform2f(z.at.zaismaDrawnSize,v,w),l.uniform2f(z.at.zaismaCanvasSize,p,g),l.drawArrays(l.TRIANGLES,0,3)}return k&&(c.isGlassAdapted=!0,function(e,a,t,r){var i=new Uint8Array(t*r*4);e.readPixels(0,0,t,r,e.RGBA,e.UNSIGNED_BYTE,i),F(a,I(i))}(l,c,p,g)),n.drawImage(h,0,h.height-g,p,g,0,0,p,g),e.classList.contains("is-drawn")||e.classList.add("is-drawn"),!0}return c.prepare=function(){if(s()){var e=B();e&&W(e,t)}else o()},c}var Q=500;function $(e,a,t){return e.map((function(e,r){return e+(a[r]-e)*t}))}var Z=1e3,ee="zaisma:backdrop-lag-s",ae=performance.now(),te=1,re=performance.now(),ie=!1,ne=Date.now()/1e3;try{ne-=Number(sessionStorage.getItem(ee))||0}catch{}function se(){ae=performance.now(),clearTimeout(U),U=setTimeout(C,d),O&&(O=!1,G()),ie&&(ie=!1,re=ae,l.forEach((function(e){e.isDrawn=!1})),E())}function oe(e,a){if(!e.isOuter){var t=f.matches?20:ne%3600;e.colors=function(e,a){var t=f.matches||!e.from?1:Math.min(1,(a-e.fadeStartMs)/Q);if(t>=1)return e.from=null,Object.assign({},e.target,{darkShare:e.target.isDark?1:0});var r=t*t*(3-2*t),i=e.from,n=e.target;return{base:$(i.base,n.base,r),a:$(i.a,n.a,r),b:$(i.b,n.b,r),c:$(i.c,n.c,r),isDark:r<.5?i.isDark:n.isDark,darkShare:(void 0!==i.darkShare?i.darkShare:i.isDark?1:0)+((n.isDark?1:0)-(void 0!==i.darkShare?i.darkShare:i.isDark?1:0))*r}}(e,a);var r=!0;if(e.drawShader){if(r=e.drawShader(t,e.colors,e),e.isLost)return void e.canvas.classList.remove("is-drawn")}else e.canvas.dispatchEvent(new CustomEvent("backdrop-frame",{detail:{timeS:t,colors:e.colors,widthPx:e.canvas.width,heightPx:e.canvas.height}}));e.isDrawn=r&&!e.from}}function ce(e){return!(e.isOuter||!e.isInView||e.isLost||e.canvas.hasAttribute("data-backdrop-paused"))&&!((e.isHeld||f.matches||ie)&&e.isDrawn)}function de(e){if(p=!1,!document.hidden){var a=O?m:u;if(e-h<a&&!A)return p=!0,void requestAnimationFrame(de);var t=g?u:e-h;h=e,g=!1,w=v,v=!1,function(e){var a=Math.max(0,e-re);re=e,te=e-ae>d?Math.max(0,te-a/Z):Math.min(1,te+a/Z),ne+=te*a/1e3,ie=0===te}(e),x&&(x=!1,A=!0,S=Array.prototype.filter.call(document.querySelectorAll("[data-glass]:not([data-cut-line])"),(function(e){e.glassHost=k(e),e.glassHost&&e.glassHost.shownGlass&&P(e,e.glassHost.shownGlass);var a=getComputedStyle(e);return"hidden"!==a.visibility&&"none"!==a.display&&Number(a.opacity)>.05})));var r=A;A=!1,l.forEach((function(i){if(i.isInView&&!i.canvas.hasAttribute("data-backdrop-paused")){if(i.isOuter)return"frame"===i.kind&&!i.isTold&&(i.isTold=!0,L(i)),void(i.canvas.hasAttribute("data-adapts-glass")&&!i.isGlassAdapted&&function(e){var a=e.still;if(a&&a.naturalWidth){var t=document.createElement("canvas"),r=Math.min(1,160/Math.max(a.naturalWidth,a.naturalHeight));t.width=Math.max(2,Math.round(a.naturalWidth*r)),t.height=Math.max(2,Math.round(a.naturalHeight*r));var i=t.getContext("2d",{willReadFrequently:!0});i.drawImage(a,0,0,t.width,t.height),e.isGlassAdapted=!0;try{F(e,I(i.getImageData(0,0,t.width,t.height).data))}catch{}}}(i));i.drawShader&&r&&(i.isDrawn=!1),(!(i.isHeld||f.matches||ie)||!i.isDrawn)&&(i.drawShader&&t<1e3&&(i.slowS=t>1.5*a?i.slowS+t/1e3:Math.max(0,i.slowS-t/2e3),i.slowS>1.5&&(i.slowS=0,i.softShare>.6?i.softShare*=.75:i.scale>.26?(i.scale*=.75,i.size()):i.isHeld=!0)),oe(i,e))}})),w=!1,(A||x||l.some(ce))&&(p=!0,requestAnimationFrame(de))}}function ue(){var e=performance.now();x=!0,l.forEach((function(a){var t=T(a.canvas);JSON.stringify(t)!==JSON.stringify(a.target)&&(a.from=a.colors,a.target=t,a.fadeStartMs=e,a.isDrawn=!1,a.isGlassAdapted=!1,a.isInView&&oe(a,e))})),E()}function me(){var e="";l.forEach((function(a){var t=a.isOuter&&a.canvas.getAttribute("data-backdrop-color");t&&/^#[0-9a-fA-F]{6}$/.test(t)&&(e=t)})),e?document.documentElement.style.setProperty("--backdrop-edge",e):document.documentElement.style.removeProperty("--backdrop-edge")}function fe(e){if(!e.backdropLayer&&(!e.hasAttribute("data-backdrop-stand-in")||e.hasAttribute("data-backdrop-shader"))){var a=e.getAttribute("data-backdrop");if("frame"===a||"picture"===a)return function(e,a){var t={canvas:e,kind:a,isOuter:!0,isInView:!0,isTold:!1,isGlassAdapted:!1,target:T(e),from:null};function r(){var r=e.getAttribute("data-glass-kind");if(e.hasAttribute("data-adapts-glass")&&r)return t.isGlassAdapted=!0,void _(t,{isSmoked:"smoked"===r,tint:e.getAttribute("data-glass-tint")||""});var i=e.getAttribute("data-backdrop-still")||("picture"===a?e.currentSrc||e.src:"");if(e.hasAttribute("data-adapts-glass")&&i){var n=new Image;n.onload=function(){e.getAttribute("data-backdrop-still")!==i&&"picture"!==a||(t.still=n,t.isGlassAdapted=!1,R())},n.src=i}}e.backdropLayer=t,l.push(t),"frame"===a&&(t.onMessage=function(a){a.source===e.contentWindow&&a.data&&a.data.zaismaBackground&&(t.isTold=!1,R())},window.addEventListener("message",t.onMessage)),r(),new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["data-backdrop-still","src","data-glass-kind"]}),window.IntersectionObserver&&new IntersectionObserver((function(e){t.isInView=e[e.length-1].isIntersecting,t.isInView&&R()})).observe(e),R(),me()}(e,a);var t="scene"===e.getAttribute("data-backdrop"),r=window.matchMedia("(max-width: 760px)").matches,i=Math.min(window.devicePixelRatio||1,t?2:1.5),n=e.classList.contains("is-framed"),s=!t&&!e.getAttribute("data-backdrop-shader"),o=pe&&pe.has(e)?pe.get(e):le(e),c={canvas:e,isInView:o,isDrawn:!1,isHeld:!1,slowS:0,target:T(e),from:null,softShare:1,scale:t||n?i:s?Math.min(window.devicePixelRatio||1,2):(r?.4:.55)*i};if(t||(c.drawShader=K(e),c.drawShader)){if(e.backdropLayer=c,c.size=function(){var a=Math.max(2,Math.round(e.clientWidth*c.scale)),r=Math.max(2,Math.round(e.clientHeight*c.scale));s&&!c.isOnePass?(c.drawnWidth=a,c.drawnHeight=r):t||(c.drawnWidth=Math.max(2,Math.round(e.clientWidth*c.scale*.7)),c.drawnHeight=Math.max(2,Math.round(e.clientHeight*c.scale*.7)),a=Math.round(1.4*c.drawnWidth),r=Math.round(1.4*c.drawnHeight)),(a!==e.width||r!==e.height)&&(e.width=a,e.height=r,c.isDrawn=!1,e.backdropLayer&&!v&&c.isInView&&oe(c,performance.now()))},c.size(),window.zaismaWatch.size(e,c.size),window.IntersectionObserver&&new IntersectionObserver((function(e){c.isInView=e[e.length-1].isIntersecting,c.onView&&c.onView(),c.isInView&&E()})).observe(e),c.drawShader&&!o&&window.IntersectionObserver){var d=new IntersectionObserver((function(e){e[e.length-1].isIntersecting&&(d.disconnect(),c.drawShader.prepare())}),{rootMargin:"100% 0px"});d.observe(e)}else c.drawShader&&c.drawShader.prepare();new MutationObserver(E).observe(e,{attributes:!0,attributeFilter:["data-backdrop-paused"]}),l.push(c),!v&&c.isInView&&oe(c,performance.now()),E()}}}function le(e){var a=e.getBoundingClientRect();return a.bottom>0&&a.right>0&&a.top<window.innerHeight&&a.left<window.innerWidth}["pointerdown","pointermove","keydown","wheel","touchstart","scroll"].forEach((function(e){window.addEventListener(e,se,{passive:!0,capture:!0})})),U=setTimeout(C,d),window.addEventListener("pagehide",(function(){try{sessionStorage.setItem(ee,String(Date.now()/1e3-ne))}catch{}}));var he=document.querySelectorAll("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']"),pe=new Map;function ge(e){return 1===e.nodeType&&(e.hasAttribute("data-glass")||!!e.querySelector("[data-glass]"))}he.forEach((function(e){"CANVAS"===e.tagName&&pe.set(e,le(e))})),he.forEach(fe),pe.clear(),window.zaismaWatch.each("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']",fe),window.zaismaBackdrop={add:function(e){x=!0,fe(e),E()},remove:function(e){var a=e.backdropLayer;a&&(l=l.filter((function(e){return e!==a})),a.onMessage&&window.removeEventListener("message",a.onMessage),e.backdropLayer=null,R(),me())},forgetGlass:function(){document.querySelectorAll(":has(> .backdrop)").forEach((function(e){e.shownGlass=null})),document.querySelectorAll("[data-glass]").forEach((function(e){e.glassPick=null,e.classList.remove("smoke"),e.removeAttribute("data-theme-choice"),e.style.removeProperty("--glass-tint")}))}},window.zaismaWatch.resize(R),window.zaismaWatch.page((function(e){x||(x=e.some((function(e){return"attributes"===e.type?e.target.hasAttribute("data-glass"):Array.prototype.some.call(e.addedNodes,ge)||Array.prototype.some.call(e.removedNodes,ge)})))&&E()})),document.addEventListener("toggle",(function(){x=!0,E()}),!0),document.addEventListener("visibilitychange",(function(){document.hidden||E()})),new MutationObserver(ue).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-theme-choice"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ue),f.addEventListener("change",ue)}())}();` },
11471
11490
  "shown-once-drawn": { sourceSha256: "fc424c69dc25ce75a30d2d20ce247c7c3346b4433a9eae7df7f7e35ea78713ac", minifiedText: '!function(){var n=window.zaismaPieces=window.zaismaPieces||{};n["shown-once-drawn"]||(n["shown-once-drawn"]=!0,function(){var n="iframe[data-shows-once-drawn]";function a(n){window.zaismaWatch.afterSettling((function(){n.classList.add("is-shown")}))}window.addEventListener("message",(function(i){!i.data||!i.data.zaismaBackground||document.querySelectorAll(n).forEach((function(n){i.source===n.contentWindow&&(n.hasSaid=!0,a(n))}))})),window.zaismaWatch.eachArriving(n,(function(n){n.addEventListener("load",(function(){setTimeout((function(){n.hasSaid||a(n)}),4e3)}))}))}())}();' },
11472
- "switches": { sourceSha256: "a878d0e6013cd6503ef94569c020110f04b1e94e74fbeada56f656b396f66a0c", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.switches||(t.switches=!0,window.zaismaWatch.each(".tab-switch",(function(t){var e=t.querySelector(".switch-slab"),i=t.querySelectorAll(":scope > a, :scope > button:not(.switch-folder)"),a=function(){return t.classList.contains("vertical")};function n(){return t.querySelector('[aria-current="page"], [aria-pressed="true"]')}var r=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gap-control-row"))||4,s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(t){var e=window.devicePixelRatio||1;return Math.round(t*e)/e}var c,d,l,u,f=(c=.4,d=0,l=.2,u=1,function(t){for(var e=t,i=0;i<8;i++){var a=3*(1-e)*(1-e)*e*c+3*(1-e)*e*e*l+e*e*e-t,n=3*(1-e)*(1-e)*c+6*(1-e)*e*(l-c)+3*e*e*(1-l);if(Math.abs(n)<1e-6)break;e=Math.min(1,Math.max(0,e-a/n))}return 3*(1-e)*(1-e)*e*d+3*(1-e)*e*e*u+e*e*e});function h(t,e){t.slideAt=e;var i=Math.round(e.size)+"px";a()?(t.style.width=e.width?Math.round(e.width)+"px":"",t.style.height=i,t.style.transform="translate("+(e.across||0)+"px, "+e.pos+"px)"):(t.style.height="",t.style.width=i,t.style.transform="translateX("+e.pos+"px)")}function m(e,i,a,n){var s=function(t){return Math.max(0,((Number(t.getAttribute("data-cut-line"))||0)-r)/2)}(e),o=a?0:s,c=n?0:s,d=t.closest("[data-cut-line]"),l=d&&d.getAttribute("data-slanted")||"";if(!e.classList.contains("focus-ring")&&(a&&/start/.test(l)||n&&/end/.test(l))){var u=i.offsetTop,f=t.offsetHeight,h=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--control-slant"))||10,m=h/2-Math.min(Number(e.getAttribute("data-cut-line"))||0,(i.offsetWidth+o+c)/3)/2+u*Math.sqrt(1+h/f*(h/f))-u;a&&/start/.test(l)&&(o=-m),n&&/end/.test(l)&&(c=-m)}return{start:o,end:c}}function p(e,i,n){var r=!n&&e.slideTarget&&e.pickedTab===i;if(e.pickedTab=i,i){var c={beside:e.getAttribute("data-cut-beside"),ends:e.getAttribute("data-cut-ends")||"",stack:e.getAttribute("data-cut-stack")},d=Array.prototype.filter.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){return!t.classList.contains("folded")&&!t.hidden})),l=i===d[0],u=i===d[d.length-1];if(a()){var f={pos:i.offsetTop,size:i.offsetHeight},h=n&&!s?v(e):0;if("grid"===getComputedStyle(t).display&&(f.across=i.offsetLeft,f.width=i.offsetWidth),e.classList.contains("focus-ring")){var p=l?0:i.offsetTop,w=u?t.getBoundingClientRect().height:i.offsetTop+i.offsetHeight,b=Math.round(w-p);f={pos:u?w-b:p,size:b,across:f.across,width:f.width}}return e.setAttribute("data-cut-beside",""),e.setAttribute("data-cut-stack",((l?"first ":"")+(u?"last":"")).trim()),void g(e,f,h,null!==c.stack?c:null,r)}var y=m(e,i,l,u),A=y.start,L=y.end,E={pos:o(i.offsetLeft-A),size:i.offsetWidth+A+L},x=n&&!s?v(e):0;if(e.classList.contains("focus-ring")){var z=l?0:i.offsetLeft-A,T=u?t.getBoundingClientRect().width:i.offsetLeft+i.offsetWidth+L,M=Math.round(T-z);E={pos:u?T-M:z,size:M}}e.setAttribute("data-cut-beside",((l?"":"start ")+(u?"":"end")).trim());var C=((l?"start ":"")+(u?"end":"")).trim();C?e.setAttribute("data-cut-ends",C):e.removeAttribute("data-cut-ends"),g(e,E,x,null!==c.beside?c:null,r)}else e.style.width="0px"}function g(t,i,a,n,r){if(r)t.slideTarget=i;else{if(a&&t.redrawCut){var s=t.slideAt;return h(t,i),t.redrawCut(n?{from:n,ms:a,ease:t===e&&w?w.ease:f,isDriven:!0}:void 0),s&&h(t,s),void function(t,i,a){var n=t===e?w:null,r=n?n.ease:f,s=t.slideAt||i,o=null,c=(t.slideId||0)+1;t.slideId=c,t.slideTarget=i,t.setAttribute("data-move-duration-ms",String(Math.round(a))),function e(d){if(t.slideId===c){var l=null===o||void 0===d?0:Math.min(1,(d-o)/a),u=r(l);i=t.slideTarget,n&&n.isOn&&window.scrollTo(window.scrollX,n.fromY+(n.toY-n.fromY)*u);var f=s.size!==i.size||void 0!==i.width&&s.width!==i.width;t.redrawCut&&!f&&t.redrawCut({isFrame:!0,progress:l});var m=function(t,e){return l<1&&void 0!==t?t+(e-t)*u:e};if(h(t,{pos:m(s.pos,i.pos),size:m(s.size,i.size),across:void 0===i.across?void 0:m(s.across||0,i.across),width:void 0===i.width?void 0:m(s.width,i.width)}),t.redrawCut&&f&&t.redrawCut({isFrame:!0,progress:l}),l<1)return void requestAnimationFrame((function(t){null===o&&(o=t),e(t)}));t.removeAttribute("data-move-duration-ms"),t.slideTarget=null,t.redrawCut&&t.redrawCut(),n&&n.isOn&&n.land()}}()}(t,i,a)}t.slideId=(t.slideId||0)+1,t.slideTarget=null,t.removeAttribute("data-move-duration-ms"),h(t,i),t.redrawCut&&t.redrawCut()}}function v(t){return t===e&&w?w.ms:parseFloat(getComputedStyle(t).getPropertyValue("--slide-ms"))||550}var w=null,b=!1;function y(){if(!b&&t.getClientRects().length){!function(){var n=t.closest("[data-cut-line]"),r=n&&n.getAttribute("data-slanted")||"",s=Array.prototype.filter.call(i,(function(t){return!t.classList.contains("folded")&&!t.hidden}));s.forEach((function(t,i){if(a())t.style.removeProperty("--tab-shift");else{var n=0===i,o=i===s.length-1,c=m(e,t,n,o),d=Math.min(Number(e.getAttribute("data-cut-line"))||0,(t.offsetWidth+c.start+c.end)/3),l=(!n||/start/.test(r)?1:0)-(!o||/end/.test(r)?1:0);t.style.setProperty("--tab-shift",Math.round(10*((c.end-c.start)/2+l*d/4))/10+"px")}}))}();var r=n(),s=t.querySelector(":scope > :focus-visible"),o=t.querySelector(".focus-ring");e.style.transition="none",p(e,r),o&&s&&p(o,s),function(){var e=t.querySelector(":scope > .is-focused"),i=t.querySelector(".focus-ring");e&&i&&(p(i,e),t.classList.add("is-focus-shown"))}(),e.offsetWidth,e.style.transition="",t.classList.add("is-ready")}}var A=t.closest("body > .top")&&window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function L(){var e=A.matches,i=t.closest(".switch-well"),a=t.parentElement;t.classList.toggle("vertical",e),i&&(i.classList.toggle("vertical",e),i.classList.toggle("is-full",!e),i.setAttribute("data-edge-light",e?"left":"bottom")),a&&a.classList.toggle("across",!e)}function E(e){var i=n(),r=t.parentElement;if(r){if(a()){var s=r.scrollHeight-r.clientHeight;if(!i||s<=1||!i.getClientRects().length)return;var o=window.zaismaScrollFadePx?window.zaismaScrollFadePx():34,c=r.getBoundingClientRect(),d=i.getBoundingClientRect(),l=r.scrollTop,u=d.top-c.top+l,f=d.bottom-c.top+l,h=l;return u-o<l?h=u-o:f+o>l+r.clientHeight&&(h=f+o-r.clientHeight),void r.scrollTo({top:Math.max(0,Math.min(s,h)),behavior:e?"smooth":"auto"})}t.classList.remove("is-past-room"),!(r.scrollWidth<=r.clientWidth+1)&&(t.classList.add("is-past-room"),i&&r.scrollTo({left:i.offsetLeft+i.offsetWidth/2-r.clientWidth/2,behavior:e?"smooth":"auto"}))}}A&&(L(),A.addEventListener("change",(function(){L(),y()}))),y(),E(!1);var x=window.navigation&&navigation.activation&&navigation.activation.from;if(x&&x.url&&e.animate&&!a()&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var z=new URL(x.url),T=z.pathname,M=T===location.pathname&&z.search===location.search,C=Array.prototype.filter.call(i,(function(t){return t.href&&new URL(t.href).pathname===T})),S=C.find((function(t){return new URL(t.href).search===z.search}))||(1===C.length?C[0]:void 0),W=n();S&&W&&S!==W&&!M&&(e.style.transition="none",p(e,S),e.offsetWidth,e.style.transition="",b=!0,window.zaismaWatch.fontsIn((function(){requestAnimationFrame((function(){b=!1,y(),b=!0;var t=function(){b=!1,y()};(function(){var t=a()?"translateY("+S.offsetTop+"px)":"translateX("+S.offsetLeft+"px) scaleX("+(S.offsetWidth/Math.max(1,W.offsetWidth)).toFixed(4)+")",i=a()?"translateY("+W.offsetTop+"px)":"translateX("+W.offsetLeft+"px) scaleX(1)";return e.animate([{transform:t,transformOrigin:"0 0"},{transform:i,transformOrigin:"0 0"}],{duration:v(e),easing:"cubic-bezier(.3, 1.2, .4, 1)"})})().finished.then(t,t)}))})))}if(window.zaismaWatch.fontsIn(y),window.zaismaWatch.size(t,y),window.zaismaWatch.size(t,(function(){a()||E(!1)})),t.parentElement&&(window.zaismaWatch.size(t.parentElement,y),window.zaismaWatch.size(t.parentElement,(function(){E(!1)}))),Array.prototype.forEach.call(t.querySelectorAll(":scope > .foldable"),(function(t){window.zaismaWatch.size(t,y)})),t.pickTab=function(n){"BUTTON"===n.tagName?i.forEach((function(t){t.setAttribute("aria-pressed",String(t===n))})):i.forEach((function(t){t===n?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")})),e.pickedTab!==n&&p(e,n,!0);var r=t.closest("[data-fades-sideways]");r&&r.showWhole&&!a()?r.showWhole(n,!0):E(!0),K()},i.forEach((function(i){i.addEventListener("click",(function(r){if(!function(t){return t.disabled||"true"===t.getAttribute("aria-disabled")}(i)){if(i.href&&"page"===i.getAttribute("aria-current")&&0===r.button&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey)return void r.preventDefault();if(i.href&&!r.defaultPrevented){var o=new URL(i.href,location.href),c=!(0!==r.button||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||i.target&&"_self"!==i.target);if(o.pathname!==location.pathname||o.search!==location.search){if(!a()||s||!c)return;return r.preventDefault(),O=O||n(),t.pickTab(i),I(),clearTimeout(B),document.dispatchEvent(new Event("zaisma-leaving-page")),void(B=setTimeout((function(){location.assign(i.href)}),v(e)))}var d=a()&&!s&&c&&o.hash&&document.getElementById(decodeURIComponent(o.hash.slice(1)));if(d&&d.getClientRects().length)return r.preventDefault(),void function(e,i,a){w&&w.stop();var n=document.documentElement,r=window.scrollY,s=parseFloat(getComputedStyle(n).scrollPaddingTop)||0,o=Math.max(0,Math.min(n.scrollHeight-window.innerHeight,r+i.getBoundingClientRect().top-s)),c=Math.abs(o-r)/window.innerHeight,d=w={isOn:!0,fromY:r,toY:o,ms:Math.min(800,400+130*Math.max(0,c-1)),ease:function(t){return t*t*t*(t*(6*t-15)+10)}},l=["wheel","touchstart","pointerdown","keydown"];function u(t){d.isOn=!1,l.forEach((function(t){window.removeEventListener(t,f)})),w===d&&(w=null),requestAnimationFrame((function(){requestAnimationFrame((function(){w||n.removeAttribute("data-page-gliding"),dispatchEvent(new CustomEvent("zaisma:page-glide-end",{detail:{hash:a,hasLanded:t}}))}))}))}function f(){u(!1)}d.stop=function(){d.isOn&&(d.isOn=!1,l.forEach((function(t){window.removeEventListener(t,f)})))},d.land=function(){location.hash=a,u(!0)},n.setAttribute("data-page-gliding",""),l.forEach((function(t){window.addEventListener(t,f,{passive:!0})})),t.pickTab(e)}(i,d,o.hash)}t.pickTab(i)}}))})),t.hasAttribute("data-shows-one-panel")){var k=function(t){var e=t.hash?decodeURIComponent(t.hash.slice(1)):"";return e?document.getElementById(e):null},q=function(t){i.forEach((function(e){var i=k(e);i&&(i.hidden=e!==t)}))},R=function(){var e=Array.prototype.filter.call(i,(function(t){return t.hash&&t.hash===location.hash}))[0];e&&(q(e),"page"!==e.getAttribute("aria-current")&&t.pickTab(e))};i.forEach((function(t){t.addEventListener("click",(function(e){if(!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&k(t)){e.preventDefault(),history.replaceState(history.state,"",t.hash),q(t);var i=k(t);i&&i.animate&&!s&&i.animate([{opacity:0},{opacity:1}],{duration:200,easing:"cubic-bezier(0.2, 0, 0, 1)"})}}))})),window.addEventListener("hashchange",R),queueMicrotask(R)}var H=Array.prototype.slice.call(t.querySelectorAll(":scope > .switch-folder"));function F(t){for(var e=[],i=t.nextElementSibling;i&&i.classList.contains("is-in-folder");i=i.nextElementSibling)e.push(i);return e}function K(){var t=n();H.forEach((function(e){var i=F(e).indexOf(t)>=0;e.classList.toggle("is-held",i),i?e.removeAttribute("data-lights"):e.setAttribute("data-lights",""),i&&"true"!==e.getAttribute("aria-expanded")&&P(e,!0)}))}function P(t,e){t.setAttribute("aria-expanded",String(e)),F(t).forEach((function(t){!function(t,e){var i=t.hidden?0:t.offsetHeight;t.getAnimations().forEach((function(t){t.cancel()})),t.hidden=!1;var a=t.offsetHeight;if(!s&&t.animate){t.classList.add("is-folding");var n=t.animate([{height:i+"px",minHeight:"0px",opacity:a?i/a:0},{height:(e?a:0)+"px",minHeight:"0px",opacity:e?1:0}],{duration:240,easing:"cubic-bezier(.2,.8,.2,1)"});n.onfinish=function(){t.classList.remove("is-folding"),t.hidden=!e},n.oncancel=function(){t.classList.remove("is-folding")}}else t.hidden=!e}(t,e)}))}function I(t){H.forEach((function(e){e!==t&&!e.classList.contains("is-held")&&"true"===e.getAttribute("aria-expanded")&&P(e,!1)}))}H.forEach((function(t){t.addEventListener("click",(function(){if(!t.classList.contains("is-held")){var e="true"!==t.getAttribute("aria-expanded");P(t,e),e&&I(t)}}))})),K();var O=null,B=null;window.addEventListener("pageshow",(function(e){!e.persisted||!O||(clearTimeout(B),t.pickTab(O),I(),O=null)}));var Y=t.querySelector(".focus-ring");t.addEventListener("focusin",(function(e){var i=e.target;!Y||i.parentElement!==t||!i.matches(":focus-visible")||(p(Y,i),t.classList.add("is-focus-shown"))})),t.addEventListener("focusout",(function(){t.classList.remove("is-focus-shown")}))})))}();` },
11491
+ "switches": { sourceSha256: "5e48d9bf1b50e25f0d05ad825dbce5f4133cc36b6bd2273fa78f9b2ea61de351", minifiedText: `!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.switches||(t.switches=!0,window.zaismaWatch.each(".tab-switch",(function(t){var e=t.querySelector(".switch-slab"),i=t.querySelectorAll(":scope > a, :scope > button:not(.switch-folder)"),a=function(){return t.classList.contains("vertical")};function n(){return t.querySelector('[aria-current="page"], [aria-pressed="true"]')}var r=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gap-control-row"))||4,s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(t){var e=window.devicePixelRatio||1;return Math.round(t*e)/e}var c,d,l,u,f=(c=.4,d=0,l=.2,u=1,function(t){for(var e=t,i=0;i<8;i++){var a=3*(1-e)*(1-e)*e*c+3*(1-e)*e*e*l+e*e*e-t,n=3*(1-e)*(1-e)*c+6*(1-e)*e*(l-c)+3*e*e*(1-l);if(Math.abs(n)<1e-6)break;e=Math.min(1,Math.max(0,e-a/n))}return 3*(1-e)*(1-e)*e*d+3*(1-e)*e*e*u+e*e*e});function h(t,e){t.slideAt=e;var i=Math.round(e.size)+"px";a()?(t.style.width=e.width?Math.round(e.width)+"px":"",t.style.height=i,t.style.transform="translate("+(e.across||0)+"px, "+e.pos+"px)"):(t.style.height="",t.style.width=i,t.style.transform="translateX("+e.pos+"px)")}function m(e,i,a,n){var s=function(t){return Math.max(0,((Number(t.getAttribute("data-cut-line"))||0)-r)/2)}(e),o=a?0:s,c=n?0:s,d=t.closest("[data-cut-line]"),l=d&&d.getAttribute("data-slanted")||"";if(!e.classList.contains("focus-ring")&&(a&&/start/.test(l)||n&&/end/.test(l))){var u=i.offsetTop,f=t.offsetHeight,h=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--control-slant"))||10,m=h/2-Math.min(Number(e.getAttribute("data-cut-line"))||0,(i.offsetWidth+o+c)/3)/2+u*Math.sqrt(1+h/f*(h/f))-u;a&&/start/.test(l)&&(o=-m),n&&/end/.test(l)&&(c=-m)}return{start:o,end:c}}function p(e,i,n){var r=!n&&e.slideTarget&&e.pickedTab===i;if(e.pickedTab=i,i){var c={beside:e.getAttribute("data-cut-beside"),ends:e.getAttribute("data-cut-ends")||"",stack:e.getAttribute("data-cut-stack")},d=Array.prototype.filter.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){return!t.classList.contains("folded")&&!t.hidden})),l=i===d[0],u=i===d[d.length-1];if(a()){var f={pos:i.offsetTop,size:i.offsetHeight},h=n&&!s?v(e):0;if("grid"===getComputedStyle(t).display&&(f.across=i.offsetLeft,f.width=i.offsetWidth),e.classList.contains("focus-ring")){var p=l?0:i.offsetTop,w=u?t.getBoundingClientRect().height:i.offsetTop+i.offsetHeight,b=Math.round(w-p);f={pos:u?w-b:p,size:b,across:f.across,width:f.width}}return e.setAttribute("data-cut-beside",""),e.setAttribute("data-cut-stack",((l?"first ":"")+(u?"last":"")).trim()),void g(e,f,h,null!==c.stack?c:null,r)}var y=m(e,i,l,u),A=y.start,L=y.end,E={pos:o(i.offsetLeft-A),size:i.offsetWidth+A+L},x=n&&!s?v(e):0;if(e.classList.contains("focus-ring")){var z=l?0:i.offsetLeft-A,T=u?t.getBoundingClientRect().width:i.offsetLeft+i.offsetWidth+L,M=Math.round(T-z);E={pos:u?T-M:z,size:M}}e.setAttribute("data-cut-beside",((l?"":"start ")+(u?"":"end")).trim());var C=((l?"start ":"")+(u?"end":"")).trim();C?e.setAttribute("data-cut-ends",C):e.removeAttribute("data-cut-ends"),g(e,E,x,null!==c.beside?c:null,r)}else e.style.width="0px"}function g(t,i,a,n,r){if(r)t.slideTarget=i;else{if(a&&t.redrawCut){var s=t.slideAt;return h(t,i),t.redrawCut(n?{from:n,ms:a,ease:t===e&&w?w.ease:f,isDriven:!0}:void 0),s&&h(t,s),void function(t,i,a){var n=t===e?w:null,r=n?n.ease:f,s=t.slideAt||i,o=null,c=(t.slideId||0)+1;t.slideId=c,t.slideTarget=i,t.setAttribute("data-move-duration-ms",String(Math.round(a))),function e(d){if(t.slideId===c){var l=null===o||void 0===d?0:Math.min(1,(d-o)/a),u=r(l);i=t.slideTarget,n&&n.isOn&&window.scrollTo(window.scrollX,n.fromY+(n.toY-n.fromY)*u);var f=s.size!==i.size||void 0!==i.width&&s.width!==i.width;t.redrawCut&&!f&&t.redrawCut({isFrame:!0,progress:l});var m=function(t,e){return l<1&&void 0!==t?t+(e-t)*u:e};if(h(t,{pos:m(s.pos,i.pos),size:m(s.size,i.size),across:void 0===i.across?void 0:m(s.across||0,i.across),width:void 0===i.width?void 0:m(s.width,i.width)}),t.redrawCut&&f&&t.redrawCut({isFrame:!0,progress:l}),l<1)return void requestAnimationFrame((function(t){null===o&&(o=t),e(t)}));t.removeAttribute("data-move-duration-ms"),t.slideTarget=null,t.redrawCut&&t.redrawCut(),n&&n.isOn&&n.land()}}()}(t,i,a)}t.slideId=(t.slideId||0)+1,t.slideTarget=null,t.removeAttribute("data-move-duration-ms"),h(t,i),t.redrawCut&&t.redrawCut()}}function v(t){return t===e&&w?w.ms:parseFloat(getComputedStyle(t).getPropertyValue("--slide-ms"))||550}var w=null,b=!1;function y(){if(!b&&t.getClientRects().length){!function(){var n=t.closest("[data-cut-line]"),r=n&&n.getAttribute("data-slanted")||"",s=Array.prototype.filter.call(i,(function(t){return!t.classList.contains("folded")&&!t.hidden}));s.forEach((function(t,i){if(a())t.style.removeProperty("--tab-shift");else{var n=0===i,o=i===s.length-1,c=m(e,t,n,o),d=Math.min(Number(e.getAttribute("data-cut-line"))||0,(t.offsetWidth+c.start+c.end)/3),l=(!n||/start/.test(r)?1:0)-(!o||/end/.test(r)?1:0);t.style.setProperty("--tab-shift",Math.round(10*((c.end-c.start)/2+l*d/4))/10+"px")}}))}();var r=n(),s=t.querySelector(":scope > :focus-visible"),o=t.querySelector(".focus-ring");e.style.transition="none",p(e,r),o&&s&&p(o,s),function(){var e=t.querySelector(":scope > .is-focused"),i=t.querySelector(".focus-ring");e&&i&&(p(i,e),t.classList.add("is-focus-shown"))}(),e.offsetWidth,e.style.transition="",t.classList.add("is-ready")}}var A=t.closest("body > .top")&&window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function L(){var e=A.matches,i=t.closest(".switch-well"),a=t.parentElement;t.classList.toggle("vertical",e),i&&(i.classList.toggle("vertical",e),i.classList.toggle("is-full",!e),i.setAttribute("data-edge-light",e?"left":"bottom")),a&&a.classList.toggle("across",!e)}function E(e){var i=n(),r=t.parentElement;if(r){if(a()){var s=r.scrollHeight-r.clientHeight;if(!i||s<=1||!i.getClientRects().length)return;var o=window.zaismaScrollFadePx?window.zaismaScrollFadePx():34,c=r.getBoundingClientRect(),d=i.getBoundingClientRect(),l=r.scrollTop,u=d.top-c.top+l,f=d.bottom-c.top+l,h=l;return u-o<l?h=u-o:f+o>l+r.clientHeight&&(h=f+o-r.clientHeight),void r.scrollTo({top:Math.max(0,Math.min(s,h)),behavior:e?"smooth":"auto"})}t.classList.remove("is-past-room"),!(r.scrollWidth<=r.clientWidth+1)&&(t.classList.add("is-past-room"),i&&r.scrollTo({left:i.offsetLeft+i.offsetWidth/2-r.clientWidth/2,behavior:e?"smooth":"auto"}))}}function x(){var e=t.parentElement;if(!a()&&e&&t.classList.contains("is-past-room")){if(t.classList.remove("is-past-room"),e.scrollWidth>e.clientWidth+1)return void t.classList.add("is-past-room");e.fadeEndsAgain&&e.fadeEndsAgain()}}A&&(L(),A.addEventListener("change",(function(){L(),y()}))),y(),E(!1),window.zaismaWatch.afterSettling(x);var z=window.navigation&&navigation.activation&&navigation.activation.from;if(z&&z.url&&e.animate&&!a()&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var T=new URL(z.url),M=T.pathname,C=M===location.pathname&&T.search===location.search,W=Array.prototype.filter.call(i,(function(t){return t.href&&new URL(t.href).pathname===M})),S=W.find((function(t){return new URL(t.href).search===T.search}))||(1===W.length?W[0]:void 0),k=n();S&&k&&S!==k&&!C&&(e.style.transition="none",p(e,S),e.offsetWidth,e.style.transition="",b=!0,window.zaismaWatch.fontsIn((function(){requestAnimationFrame((function(){b=!1,y(),b=!0;var t=function(){b=!1,y(),x()};(function(){var t=a()?"translateY("+S.offsetTop+"px)":"translateX("+S.offsetLeft+"px) scaleX("+(S.offsetWidth/Math.max(1,k.offsetWidth)).toFixed(4)+")",i=a()?"translateY("+k.offsetTop+"px)":"translateX("+k.offsetLeft+"px) scaleX(1)";return e.animate([{transform:t,transformOrigin:"0 0"},{transform:i,transformOrigin:"0 0"}],{duration:v(e),easing:"cubic-bezier(.3, 1.2, .4, 1)"})})().finished.then(t,t)}))})))}if(window.zaismaWatch.fontsIn(y),window.zaismaWatch.size(t,y),window.zaismaWatch.size(t,(function(){a()||E(!1)})),t.parentElement&&(window.zaismaWatch.size(t.parentElement,y),window.zaismaWatch.size(t.parentElement,(function(){E(!1)}))),Array.prototype.forEach.call(t.querySelectorAll(":scope > .foldable"),(function(t){window.zaismaWatch.size(t,y)})),t.pickTab=function(n){"BUTTON"===n.tagName?i.forEach((function(t){t.setAttribute("aria-pressed",String(t===n))})):i.forEach((function(t){t===n?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")})),e.pickedTab!==n&&p(e,n,!0);var r=t.closest("[data-fades-sideways]");r&&r!==t.parentElement&&r.showWhole&&!a()?r.showWhole(n,!0):E(!0),P()},i.forEach((function(i){i.addEventListener("click",(function(r){if(!function(t){return t.disabled||"true"===t.getAttribute("aria-disabled")}(i)){if(i.href&&"page"===i.getAttribute("aria-current")&&0===r.button&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey)return void r.preventDefault();if(i.href&&!r.defaultPrevented){var o=new URL(i.href,location.href),c=!(0!==r.button||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||i.target&&"_self"!==i.target);if(o.pathname!==location.pathname||o.search!==location.search){if(!a()||s||!c)return;return r.preventDefault(),B=B||n(),t.pickTab(i),O(),clearTimeout(Y),document.dispatchEvent(new Event("zaisma-leaving-page")),void(Y=setTimeout((function(){location.assign(i.href)}),v(e)))}var d=a()&&!s&&c&&o.hash&&document.getElementById(decodeURIComponent(o.hash.slice(1)));if(d&&d.getClientRects().length)return r.preventDefault(),void function(e,i,a){w&&w.stop();var n=document.documentElement,r=window.scrollY,s=parseFloat(getComputedStyle(n).scrollPaddingTop)||0,o=Math.max(0,Math.min(n.scrollHeight-window.innerHeight,r+i.getBoundingClientRect().top-s)),c=Math.abs(o-r)/window.innerHeight,d=w={isOn:!0,fromY:r,toY:o,ms:Math.min(800,400+130*Math.max(0,c-1)),ease:function(t){return t*t*t*(t*(6*t-15)+10)}},l=["wheel","touchstart","pointerdown","keydown"];function u(t){d.isOn=!1,l.forEach((function(t){window.removeEventListener(t,f)})),w===d&&(w=null),requestAnimationFrame((function(){requestAnimationFrame((function(){w||n.removeAttribute("data-page-gliding"),dispatchEvent(new CustomEvent("zaisma:page-glide-end",{detail:{hash:a,hasLanded:t}}))}))}))}function f(){u(!1)}d.stop=function(){d.isOn&&(d.isOn=!1,l.forEach((function(t){window.removeEventListener(t,f)})))},d.land=function(){location.hash=a,u(!0)},n.setAttribute("data-page-gliding",""),l.forEach((function(t){window.addEventListener(t,f,{passive:!0})})),t.pickTab(e)}(i,d,o.hash)}t.pickTab(i)}}))})),t.hasAttribute("data-shows-one-panel")){var q=function(t){var e=t.hash?decodeURIComponent(t.hash.slice(1)):"";return e?document.getElementById(e):null},R=function(t){i.forEach((function(e){var i=q(e);i&&(i.hidden=e!==t)}))},H=function(){var e=Array.prototype.filter.call(i,(function(t){return t.hash&&t.hash===location.hash}))[0];e&&(R(e),"page"!==e.getAttribute("aria-current")&&t.pickTab(e))};i.forEach((function(t){t.addEventListener("click",(function(e){if(!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&q(t)){e.preventDefault(),history.replaceState(history.state,"",t.hash),R(t);var i=q(t);i&&i.animate&&!s&&i.animate([{opacity:0},{opacity:1}],{duration:200,easing:"cubic-bezier(0.2, 0, 0, 1)"})}}))})),window.addEventListener("hashchange",H),queueMicrotask(H)}var F=Array.prototype.slice.call(t.querySelectorAll(":scope > .switch-folder"));function K(t){for(var e=[],i=t.nextElementSibling;i&&i.classList.contains("is-in-folder");i=i.nextElementSibling)e.push(i);return e}function P(){var t=n();F.forEach((function(e){var i=K(e).indexOf(t)>=0;e.classList.toggle("is-held",i),i?e.removeAttribute("data-lights"):e.setAttribute("data-lights",""),i&&"true"!==e.getAttribute("aria-expanded")&&I(e,!0)}))}function I(t,e){t.setAttribute("aria-expanded",String(e)),K(t).forEach((function(t){!function(t,e){var i=t.hidden?0:t.offsetHeight;t.getAnimations().forEach((function(t){t.cancel()})),t.hidden=!1;var a=t.offsetHeight;if(!s&&t.animate){t.classList.add("is-folding");var n=t.animate([{height:i+"px",minHeight:"0px",opacity:a?i/a:0},{height:(e?a:0)+"px",minHeight:"0px",opacity:e?1:0}],{duration:240,easing:"cubic-bezier(.2,.8,.2,1)"});n.onfinish=function(){t.classList.remove("is-folding"),t.hidden=!e},n.oncancel=function(){t.classList.remove("is-folding")}}else t.hidden=!e}(t,e)}))}function O(t){F.forEach((function(e){e!==t&&!e.classList.contains("is-held")&&"true"===e.getAttribute("aria-expanded")&&I(e,!1)}))}F.forEach((function(t){t.addEventListener("click",(function(){if(!t.classList.contains("is-held")){var e="true"!==t.getAttribute("aria-expanded");I(t,e),e&&O(t)}}))})),P();var B=null,Y=null;window.addEventListener("pageshow",(function(e){!e.persisted||!B||(clearTimeout(Y),t.pickTab(B),O(),B=null)}));var U=t.querySelector(".focus-ring");t.addEventListener("focusin",(function(e){var i=e.target;!U||i.parentElement!==t||!i.matches(":focus-visible")||(p(U,i),t.classList.add("is-focus-shown"))})),t.addEventListener("focusout",(function(){t.classList.remove("is-focus-shown")}))})))}();` },
11473
11492
  "guild-seal": { sourceSha256: "c2286eea03a0217e11a073eea0223902dc7213cd3ef717b7ff91344999dc9497", minifiedText: '!function(){var e=window.zaismaPieces=window.zaismaPieces||{};e["guild-seal"]||(e["guild-seal"]=!0,!window.IntersectionObserver||matchMedia("(prefers-reduced-motion: reduce)").matches||window.zaismaWatch.each("video.guild-seal-video",(function(e){var t=!1;e.addEventListener("ended",(function(){e.src=e.getAttribute("data-resting"),e.loop=!0,e.play().catch((function(){}))})),new IntersectionObserver((function(i){i[i.length-1].isIntersecting?(t||(t=!0,e.src=e.getAttribute("data-forging")),e.play().catch((function(){}))):e.pause()})).observe(e)})))}();' },
11474
11493
  "sidebar": { sourceSha256: "aeff184f3be05c4e5db562529e5095ccd500f2cfdf1b5206d0076b230d2463db", minifiedText: `!function(){var e=window.zaismaPieces=window.zaismaPieces||{};e.sidebar||(e.sidebar=!0,function(){function e(e){return"1"===getComputedStyle(e).getPropertyValue("--sidebar-is-sheet").trim()}function t(e){return"zaisma-sidebar:"+e.getAttribute("data-sidebar-remember")}function i(e){return document.querySelectorAll('[data-sidebar-button][aria-controls="'+e.id+'"], [data-sidebar-button][aria-controls="'+e.id+'-sheet"]')}function n(t){var n=t.closest(".sidebar-layout"),a=document.getElementById(t.id+"-sheet");i(t).forEach((function(i){i.setAttribute("aria-controls",e(t)?t.id+"-sheet":t.id),i.setAttribute("aria-expanded",String(e(t)?!(!a||!a.open):!(!n||n.classList.contains("is-collapsed"))))}))}function a(e,t){t.classList.remove("is-folding"),e.classList.remove("is-leaving"),["--sidebar-left","--sidebar-top","--sidebar-width","--sidebar-height"].forEach((function(t){e.style.removeProperty(t)}))}function r(e,i,r){var s=e.closest(".sidebar-layout");if(s){if(r)try{localStorage.setItem(t(e),i?"hidden":"shown")}catch{}cancelAnimationFrame(e.foldFrame),clearTimeout(e.foldTimer),clearTimeout(e.slideTimer),a(e,s);var o=s.querySelector(".sidebar-main"),d=r&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&o,c=d?o.getBoundingClientRect():null,l=d&&i?e.getBoundingClientRect():null;if(l&&(e.style.setProperty("--sidebar-left",l.left+"px"),e.style.setProperty("--sidebar-top",l.top+"px"),e.style.setProperty("--sidebar-width",l.width+"px"),e.style.setProperty("--sidebar-height",l.height+"px"),s.classList.add("is-folding")),s.classList.toggle("is-collapsed",i),n(e),l&&(e.foldFrame=requestAnimationFrame((function(){e.classList.add("is-leaving")})),e.foldTimer=setTimeout((function(){a(e,s)}),350)),d){var u=c.left-o.getBoundingClientRect().left;Math.abs(u)<1||(o.style.transition="none",o.style.transform="translateX("+u+"px)",o.offsetWidth,o.style.transition="transform 0.45s cubic-bezier(.2,.8,.2,1)",o.style.transform="",e.slideTimer=setTimeout((function(){o.style.removeProperty("transition"),o.style.removeProperty("transform")}),500))}}}window.zaismaWatch.each("nav.sidebar[data-sidebar-remember]",(function(e){try{var a=localStorage.getItem(t(e));("shown"===a||"hidden"===a)&&r(e,"hidden"===a,!1)}catch{}window.zaismaWatch.whenRead((function(){!function(e){var t=document.getElementById(e.id+"-sheet");t&&(t.addEventListener("close",(function(){n(e);var a=i(e)[0];a&&(!document.activeElement||document.activeElement===document.body||t.contains(document.activeElement))&&a.focus({preventScroll:!0})})),t.addEventListener("click",(function(e){e.target.closest&&e.target.closest("a[href]")&&t.close()}))),n(e)}(e)})),n(e)})),document.addEventListener("click",(function(t){var i=t.target.closest&&t.target.closest("[data-sidebar-button]");if(i){var a=i.getAttribute("aria-controls").replace(/-sheet$/,""),s=document.getElementById(a),o=document.getElementById(a+"-sheet");if(s){if(e(s))return void(o&&!o.open&&(o.showModal(),n(s)));r(s,!s.closest(".sidebar-layout").classList.contains("is-collapsed"),!0)}}}));var s=!1;window.addEventListener("resize",(function(){s||(s=!0,requestAnimationFrame((function(){s=!1,document.querySelectorAll("nav.sidebar[data-sidebar-remember]").forEach((function(t){var i=document.getElementById(t.id+"-sheet");!e(t)&&i&&i.open&&i.close(),n(t)}))})))}))}())}();` },
11475
11494
  "started-low": { sourceSha256: "d57b6b4b79c50b53b8f4e6ab4ac3807197c3a0c9b98ea411c1ee0919bf6a0405", minifiedText: '!function(){var e=window.zaismaPieces=window.zaismaPieces||{};e["started-low"]||(e["started-low"]=!0,function(){function e(e){var t=e.querySelector(".run-wrap"),n=e.querySelector(":scope > .pane-in > .layout-stack")||e.querySelector(":scope > .pane-in"),o=t&&n&&Array.prototype.find.call(n.children,(function(e){return e.contains(t)}));if(o){var a=parseFloat(getComputedStyle(e).marginTop)||0;e.style.setProperty("--started-low-used",Math.round(o.getBoundingClientRect().bottom+window.scrollY-a)+"px")}}window.zaismaWatch.each(".glass-pane.is-started-low",(function(t){e(t),window.zaismaWatch.size(t,(function(){e(t)}))}))}())}();' },
@@ -11483,8 +11502,8 @@ var MINIFIED_FIRST_PAINT_PIECES = {
11483
11502
  "account-link": { sourceSha256: "093f439139a670b1c6b9c27152368cc7dcc80314fece10ceff3649debc1a7216", minifiedText: '!function(){var a=window.zaismaPieces=window.zaismaPieces||{};a["account-link"]||(a["account-link"]=!0,/(^|; )(__Host-)?zaisma_in=1/.test(document.cookie)&&window.zaismaWatch.each("header.top[data-account-from-cookie] .end > a:is(.run-wrap,.cut-btn)",(function(a){a.href="/account";var c=a.querySelector(".face > span:not([class])");c&&(c.textContent="Account")})))}();' },
11484
11503
  "hidden-amounts": { sourceSha256: "7fd5909834526d3dd7609ea64030fc4aecc874068d1428cac45bd5218372d4ac", minifiedText: '!function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["hidden-amounts"]||(t["hidden-amounts"]=!0,function(){var t="zaisma.payments_amounts_hidden",a=!1;try{a="yes"===localStorage.getItem(t)}catch{}var e="#payments .number-amount, [data-amount]",n="[data-amounts-toggle]";function o(t){t.hasAttribute("data-amount")||t.setAttribute("data-amount",t.textContent),t.textContent=a?"\u2022\u2022\u2022":t.getAttribute("data-amount")}function s(t){t.setAttribute("aria-pressed",String(a));var e=t.querySelector("span:not([class])");e&&(e.textContent=a?"Show amounts":"Hide amounts")}window.zaismaWatch.each(e,o),window.zaismaWatch.each(n,s),document.addEventListener("click",(function(c){if(c.target.closest&&c.target.closest("[data-amounts-toggle]")){a=!a;try{localStorage.setItem(t,a?"yes":"no")}catch{}document.querySelectorAll(e).forEach(o),document.querySelectorAll(n).forEach(s)}}))}())}();' }
11485
11504
  };
11486
- var MINIFIED_FIRST_PAINT_SCRIPT = { sourceSha256: "df70ab32b4f344ce4660c507ce2e5b429ce2e8a8c11f020dab29b6c8470408cf", minifiedText: `(function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.theme||(t.theme=!0,function(){var t=document.documentElement,e=window.matchMedia("(prefers-color-scheme: dark)"),a=[];function n(){var e=t.getAttribute("data-theme-choice");return"light"===e||"dark"===e?e:"system"}function i(){return"system"===n()?e.matches?"dark":"light":n()}function r(){var e=i();t.getAttribute("data-theme")!==e&&(t.setAttribute("data-theme",e),a.forEach((function(t){t(e)})))}e.addEventListener&&e.addEventListener("change",r),new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["data-theme-choice"]}),window.zaismaTheme={now:i,choice:n,onChange:function(t){a.push(t)}},r()}())})(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["cutout-side"]||(t["cutout-side"]=!0,function(){if(/iPhone/.test(navigator.userAgent)){var t=document.documentElement;window.addEventListener("orientationchange",e),e()}function e(){var e=window.orientation;90===e?t.setAttribute("data-cutout-side","left"):-90===e?t.setAttribute("data-cutout-side","right"):t.removeAttribute("data-cutout-side")}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["following-files"]||(t["following-files"]=!0,function(){var t=!1,e="loading"!==document.readyState,a=!1;function n(){if(!a&&t&&e){a=!0;var n=[],i=null;document.querySelectorAll("link[rel=preload][data-page-script]").forEach((function(t){document.prerendering&&t.hasAttribute("data-when-opened")?n.push(t):i=r(t)})),n.length&&document.addEventListener("prerenderingchange",(function(){n.forEach(r)}),{once:!0}),i?(i.addEventListener("load",o),i.addEventListener("error",o)):o()}function r(t){var e=document.createElement("script");return e.src=t.href,e.async=!1,document.body.appendChild(e),e}function o(){window.zaismaWatch&&window.zaismaWatch.settled()}}function i(){t=!0,n()}function r(){var t=Array.prototype.slice.call(document.querySelectorAll("link[rel=preload][data-site-style]"));if(t.length){var e=t.length,a=function(){0==--e&&i()};t.forEach((function(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t.href,e.media="print",e.addEventListener("load",(function(){function t(){e.media="all",a()}window.zaismaWatch?window.zaismaWatch.afterArrival(t):t()})),e.addEventListener("error",a),t.after(e)})),setTimeout(i,1e4)}else i()}e?r():document.addEventListener("readystatechange",(function t(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",t),e=!0,r(),n())}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.watch||(t.watch=!0,function(){var t=[],e="working",a=[],n=new Map,i=[],r=[],o=null,s=!1,c=!1,l=null;function u(t){t()}function d(t){var e=new Map;t.forEach((function(t){var a=t.batch||u,n=e.get(a);n||(n=new Set,e.set(a,n)),n.add(t.callback)})),e.forEach((function(t,e){e((function(){t.forEach((function(t){t()}))}))}))}function f(t,e,a,n){e.push({callback:a,batch:n}),!("resize"===t?s:c)&&("resize"===t?(s=!0,window.addEventListener("resize",(function(){d(i.slice())}))):(c=!0,window.addEventListener("scroll",(function(){d(r.slice())}),{passive:!0,capture:!0})))}var h=null;function m(){if(h)return h;var t=["textarea","select","[popover]","dialog",".scrolls","[style*='overflow']"];function e(a){for(var n=0;n<a.length;n++){var i=a[n],r=i.style;r&&i.selectorText&&/auto|scroll|var\\(/.test(r.overflowY+" "+r.getPropertyValue("overflow"))&&t.push(i.selectorText),i.cssRules&&e(i.cssRules)}}return Array.prototype.forEach.call(document.styleSheets,(function(t){try{e(t.cssRules)}catch{}})),h=t,t}function p(t,e){var a;try{a=t.querySelectorAll(e)}catch{try{a=t.querySelectorAll(e.replace(/::[a-z-]+(\\([^)]*\\))?/g,""))}catch{return[]}}return Array.from(a)}function g(t){return t!==document.body&&document.body.contains(t)&&(t.classList.contains("scrolls")&&!t.classList.contains("across")||/^(auto|scroll)$/.test(getComputedStyle(t).overflowY))}window.zaismaWatch={page:function(t){a.push(t)},arriving:function(t){w.push(t)},afterArrival:function(t){var e=document.getAnimations?document.getAnimations().filter((function(t){return("running"===t.playState||"paused"===t.playState)&&/^(page-arrives|opening-game-settles)$/.test(t.animationName||"")})):[];if(e.length){var a=!1;Promise.all(e.map((function(t){return t.finished.catch((function(){}))}))).then(n),setTimeout(n,1e3)}else t();function n(){a||(a=!0,t())}},afterSettling:function(a){window.zaismaWatch.afterArrival((function(){"settled"!==e?(t.push(a),setTimeout(window.zaismaWatch.settled,1500)):a()}))},settled:function(){"working"===e&&(e="painting",requestAnimationFrame((function(){requestAnimationFrame((function(){e="settled",t.splice(0).forEach((function(t){t()}))}))})))},whenRead:function(t){"loading"!==document.readyState?t():y.push(t)},fontArrived:function(t){window.zaismaWatch.fontsIn(t),document.fonts&&document.fonts.addEventListener&&document.fonts.addEventListener("loadingdone",(function(){t()}))},fontsIn:function(t){window.zaismaWatch.whenRead((function(){document.body.offsetHeight,document.fonts&&document.fonts.ready?document.fonts.ready.then(t):t()}))},size:function(t,e,a){if(window.ResizeObserver){o||(o=new ResizeObserver((function(t){var e=[];t.forEach((function(t){(n.get(t.target)||[]).forEach((function(t){e.push(t)}))})),d(e)})));var r=n.get(t);r||(r=[],n.set(t,r),o.observe(t,{box:"border-box"})),r.push({callback:e,batch:a})}else f("resize",i,e,a)},resize:function(t,e){f("resize",i,t,e)},drawAll:function(){var t=i.slice();n.forEach((function(e,a){a.isConnected&&e.forEach((function(e){t.push(e)}))})),d(t)},scroll:function(t){f("scroll",r,t)},scrollBoxes:function(){if(l)return l;var t=new Set;m().forEach((function(e){p(document,e).forEach((function(e){g(e)&&t.add(e)}))}));var e=Array.from(t).sort((function(t,e){return 4&t.compareDocumentPosition(e)?-1:1}));return"loading"!==document.readyState&&(l=e),e},scrollBoxesIn:function(t){var e=new Set;return m().forEach((function(a){var n=p(t,a);try{t.matches(a)&&n.unshift(t)}catch{}n.forEach((function(t){g(t)&&e.add(t)}))})),Array.from(e)},eachArriving:function(t,e){var a=new WeakSet;function n(t){a.has(t)||(a.add(t),e(t))}document.querySelectorAll(t).forEach(n),w.push((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){1!==e.nodeType||!e.isConnected||(e.matches(t)&&n(e),e.querySelectorAll(t).forEach(n))}))}))}))},each:function(t,e){var n=new WeakSet,i=[];function r(t){if(!n.has(t)){if(!E(t))return void i.push(t);n.add(t),e(t)}}function o(){var t=i;i=[],t.forEach(r)}document.querySelectorAll(t).forEach(r),i.length&&document.addEventListener("readystatechange",o),a.push((function(e){o(),e.forEach((function(e){e.addedNodes.forEach((function(e){1!==e.nodeType||!e.isConnected||(e.matches(t)&&r(e),e.querySelectorAll(t).forEach(r))}))}))}))}};var v=[],w=[],y=[],b=/^(IMG|INPUT|IFRAME|CANVAS|VIDEO|AUDIO|SOURCE|BR|HR|LINK|META)$/;function E(t){if("loading"!==document.readyState||b.test(t.nodeName))return!0;for(var e=t;e&&e!==document.body;e=e.parentNode)if(e.nextSibling)return!0;return!1}function A(t){var e=v.concat(t);v=[];var n=e.filter((function(t){return!!function(t){return"childList"!==t.type||Array.prototype.every.call(t.addedNodes,(function(t){return 1!==t.nodeType||E(t)}))}(t)||(v.push(t),!1)}));n.length&&a.slice().forEach((function(t){t(n)}))}new MutationObserver((function(t){var e=function(t){var e=new Map;return t.filter((function(t){if(t.target instanceof SVGElement)return!1;if("attributes"!==t.type)return!0;var a=e.get(t.target);return a||(a={},e.set(t.target,a)),!a[t.attributeName]&&(a[t.attributeName]=!0,t.oldValue!==t.target.getAttribute(t.attributeName))}))}(t);e.length&&w.slice().forEach((function(t){t(e)})),(e.length||v.length)&&A(e)})).observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["class","open","hidden"]}),"loading"===document.readyState&&document.addEventListener("readystatechange",(function t(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",t),A([]),y.splice(0).forEach((function(t){t()})),window.zaismaWatch.afterArrival(window.zaismaWatch.drawAll))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["page-switch"]||(t["page-switch"]=!0,function(){var t="zaisma:opening-game",e=document.documentElement;function a(t){try{var e=new URL(t,location.href),a=e.origin===location.origin&&e.pathname.match(/^\\/g\\/([^/]+)$/);return a?a[1]:null}catch{return null}}document.addEventListener("click",(function(e){var n=e.target.closest&&e.target.closest("a[href]"),i=n&&a(n.href);try{sessionStorage.removeItem(t)}catch{}if(!(!i||!n.querySelector(".picture, img")||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||n.target&&"_self"!==n.target||i===a(location.href)))try{sessionStorage.setItem(t,JSON.stringify({slug:i,pressed_at_ms:Date.now()}))}catch{}}));var n=performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],i=!1;if(n&&"back_forward"!==n.type&&!matchMedia("(prefers-reduced-motion: reduce)").matches){try{i=new URL(document.referrer).origin===location.origin}catch{}var r=!1,o=!1;e.classList.add("is-page-arriving","is-page-held"),(!i||"navigate"!==n.type)&&e.classList.add("is-page-arriving-fresh"),document.prerendering?document.addEventListener("prerenderingchange",(function(){s(),c()}),{once:!0}):s();try{new PerformanceObserver((function(t){t.getEntriesByName("first-contentful-paint").length&&c()})).observe({type:"paint",buffered:!0})}catch{c()}setTimeout(c,1e3)}function s(){var n=null;try{n=JSON.parse(sessionStorage.getItem(t)||"null"),sessionStorage.removeItem(t)}catch{}n&&n.slug===a(location.href)&&Date.now()-n.pressed_at_ms<1e4&&e.classList.add("is-opening-game")}function c(){r=!0,o||!r||document.prerendering||(o=!0,requestAnimationFrame((function(){e.classList.remove("is-page-held"),setTimeout((function(){e.classList.remove("is-page-arriving","is-page-arriving-fresh","is-opening-game")}),1500)})))}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["measured-glass"]||(t["measured-glass"]=!0,function(){function t(t){return t.closest(":has(> .backdrop)")}function e(t){var e=t&&t.querySelector(":scope > .backdrop[data-adapts-glass][data-glass-kind], :scope > .backdrop .backdrop[data-adapts-glass][data-glass-kind]");return e?{isSmoked:"smoked"===e.getAttribute("data-glass-kind"),tint:e.getAttribute("data-glass-tint")||""}:null}function a(t,e){t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.hasAttribute("data-theme-choice")||t.setAttribute("data-theme-choice","light"),e.tint&&t.style.setProperty("--glass-tint",e.tint)}window.zaismaWatch&&(window.zaismaWatch.eachArriving("[data-adapts-glass][data-glass-kind]",(function(n){var i=n.parentElement,r=e(i);i&&r&&function(t,e){void 0===t.ownThemeChoice&&(t.ownThemeChoice=t.getAttribute("data-theme-choice")),t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice",t.ownThemeChoice||"light")}(i,r),document.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(n){var i=e(t(n));i&&a(n,i)}))})),window.zaismaWatch.eachArriving("[data-glass]:not([data-cut-line])",(function(n){var i=e(t(n));i&&a(n,i)})))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.pictures||(t.pictures=!0,function(){function t(t,e){if(e)return t.classList.add("at-once"),void t.classList.add("is-shown");t.addEventListener("animationend",(function(){t.classList.add("at-once")}),{once:!0}),t.classList.contains("backdrop")&&window.zaismaWatch&&window.zaismaWatch.afterSettling?window.zaismaWatch.afterSettling((function(){t.classList.add("is-shown")})):t.classList.add("is-shown")}window.zaismaWatch.each("img.reveals",(function(e){var a=!!(window.performance&&performance.getEntriesByType&&performance.getEntriesByType("paint").length);e.complete&&e.naturalWidth&&!a?t(e,!0):e.complete&&e.naturalWidth?(e.decode?e.decode():Promise.resolve()).then((function(){t(e,!1)}),(function(){t(e,!1)})):e.addEventListener("load",(function(){(e.decode?e.decode():Promise.resolve()).then((function(){t(e,!1)}),(function(){t(e,!1)}))}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.glass||(t.glass=!0,function(){var t="http://www.w3.org/2000/svg",e={};function a(t){return t in e||(e[t]=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--"+t.replace(/-(large|small)$/,"-cut-$1")))||0),e[t]}function n(t,e){var n=(t.getAttribute("data-glass-corners")||e).trim().split(/\\s+/);return 1===n.length&&/^[a-z]+$/.test(n[0])&&(n=[n[0]+"-large",n[0]+"-small",n[0]+"-large",n[0]+"-small"]),n.map((function(t){return/^[a-z]+-(large|small)$/.test(t)?a(t):Number(t)||0}))}function i(t){return t.map((function(t){return t[0].toFixed(1)+","+t[1].toFixed(1)})).join(" ")}function r(t){var e=t.querySelector(":scope > .waiting-glint");if(function(t){var e=t.parentElement;return"true"===t.getAttribute("aria-busy")||!!t.querySelector(':scope > input[aria-busy="true"]')||!(!e||"true"!==e.getAttribute("aria-busy"))||t.hasAttribute("data-waits-here")&&!!t.closest('[aria-busy="true"]')}(t))e&&e.classList.contains("is-leaving")&&e.classList.remove("is-leaving"),e||((e=document.createElement("span")).className="waiting-glint",e.setAttribute("aria-hidden","true"),t.insertBefore(e,t.firstChild));else if(e&&!e.classList.contains("is-leaving")){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void e.remove();e.classList.add("is-leaving"),e.addEventListener("animationend",(function(t){"waiting-glint-leaves"===t.animationName&&e.classList.contains("is-leaving")&&e.remove()}))}}["pane","header","menu","strip"].forEach((function(t){a(t+"-large"),a(t+"-small")})),window.zaismaCorners=n,window.zaismaWaiting={redraw:function(t){[t,t.parentElement].concat(Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"))).forEach((function(t){t&&t.hasAttribute("data-cut-line")&&r(t)}))}};var o=[80,100,70,28,12,0,40,62],s={"top-left":80,top:100,"top-right":70,right:28,"bottom-right":12,bottom:0,"bottom-left":40,left:62};function c(e,a,n,r,o){for(;a.length<n.length;){var s=document.createElementNS(t,"polygon");e.appendChild(s),a.push(s)}for(;a.length>n.length;)e.removeChild(a.pop());a.forEach((function(t,e){var a=(e+1)%n.length;t.style.setProperty("--side-light",o[e]+"%"),t.setAttribute("points",i([n[e],n[a],r[a],r[e]]))}))}var l=null;function u(t,e){if(l)t();else{l={rects:new Map,sizes:new Map,groups:new Map,scrollers:new Map,isBatch:!!e,isMeasured:!1};try{t()}finally{l=null}}}function d(t){u(t,!0)}function f(){l.isMeasured=!0,document.querySelectorAll("[data-cut-line], [data-glass]").forEach((function(t){l.rects.set(t,t.getBoundingClientRect()),l.sizes.set(t,[t.offsetWidth,t.offsetHeight])})),document.querySelectorAll("[data-cut-line]").forEach((function(t){(function(t){var e=l.groups.get(t);return e||(e=[],l.groups.set(t,e)),e})(I(t)).push(t)})),document.querySelectorAll("body .own-scroll, body .scrolls, body .layout-track").forEach((function(t){l.scrollers.set(t,h(t))}))}function h(t){return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth}}function m(t){var e=l.scrollers.get(t);return e||(e=h(t),l.scrollers.set(t,e)),e}function p(t){l.isBatch&&!l.isMeasured&&f();var e=l.rects.get(t);return e||(e=t.getBoundingClientRect(),l.rects.set(t,e)),e}function g(t){l.isBatch&&!l.isMeasured&&f();var e=l.sizes.get(t);return e||(e=[t.offsetWidth,t.offsetHeight],l.sizes.set(t,e)),e}function v(t){if(l.isBatch&&!l.isMeasured&&f(),l.isMeasured)return l.groups.get(t)||[];var e=l.groups.get(t);return e||(e=Array.prototype.filter.call((t||document).querySelectorAll("[data-cut-line]"),(function(e){return I(e)===t})),l.groups.set(t,e)),e}var w=new Map,y=!1;function b(){d((function(){w.forEach((function(t,e){e.isConnected?t():w.delete(e)}))}))}window.zaismaRedrawEdges=b;var E=!(!document.fonts||!document.fonts.addEventListener);function A(){E||y||!document.fonts||!document.fonts.ready||"loading"!==document.fonts.status||(y=!0,document.fonts.ready.then((function(){y=!1,b()})))}E&&document.fonts.addEventListener("loadingdone",(function(){b(),ct()}));var x=-1;window.zaismaWatch.size(document.documentElement,(function(){var t=document.documentElement.clientWidth,e=x<0;t!==x&&(x=t,e||(b(),ct()))}),d);var S=0;function z(e,a){var n=e.querySelector(":scope > .edge"),r="zg"+S++,l=null,f="",h="",m=e.hasAttribute("data-cut-line");function p(e,a){var i=document.createElementNS(t,e);for(var r in a)i.setAttribute(r,a[r]);return n.appendChild(i),i}function v(){u(y)}function y(){var t=g(e),u=t[0],d=t[1];if(u&&d){var v,w,y=Math.min(u,d),b=Number(e.getAttribute("data-glass-band"))||Math.max(2,Math.min(4,.04*y));if(l||(n.innerHTML='<defs><linearGradient id="'+r+'fr" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#7fd8ff" stop-opacity="0.5"/><stop offset="0.5" stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#ffc58a" stop-opacity="0.5"/></linearGradient><linearGradient id="'+r+'in" x1="1" y1="1" x2="0" y2="0"><stop class="gleam" offset="0"/><stop class="gleam" offset="0.4" stop-opacity="0"/><stop class="gleam" offset="0.75" stop-opacity="0"/><stop class="gleam" offset="1" stop-opacity="0.35"/></linearGradient><linearGradient id="'+r+'sp" x1="0" y1="0" x2="1" y2="1"><stop class="spec" offset="0"/><stop class="spec" offset="0.08"/><stop class="spec" offset="0.3" stop-opacity="0"/></linearGradient></defs>',l={dense:p("path",{class:"dense","fill-rule":"evenodd"}),bevel:p("g",{class:"bevel"}),bevelQuads:[],hair:p("polygon",{class:"hair",fill:"none","stroke-width":"1.2"}),rimBand:p("g",{class:"rim-band"}),rimQuads:[],rim:p("polygon",{class:"rim",fill:"none","stroke-width":"1.6"}),spec:p("polygon",{class:"spec-line",fill:"none",stroke:"url(#"+r+"sp)","stroke-width":"1.4"}),fringe:p("polygon",{class:"fringe",fill:"none",stroke:"url(#"+r+"fr)","stroke-width":"0.8"}),inner:p("polygon",{class:"inner",fill:"none",stroke:"url(#"+r+"in)","stroke-width":"1"}),caustics:m?[]:[1,2,3,4].map((function(t){return{group:p("g",{class:"caustic step-"+t}),quads:[]}})),facets:[]}),m){var E=O(N(e,u,d)),A=u+"x"+d+":"+i(E);if(A===f)return;f=A,e.style.setProperty("--cut-shape",U(E)),e.style.clipPath=U(E),v=function(t){return _(E,t)},w=E.map((function(t,e){return s[G(t,E[(e+1)%E.length])]}))}else{var x=a().map((function(t){return Math.min(t,Math.round(.3*y))})),S=x.join(",")+":"+b;S!==f&&(f=S,e.style.setProperty("--glass-clip","polygon(0 "+x[0]+"px, "+x[0]+"px 0, calc(100% - "+x[1]+"px) 0, 100% "+x[1]+"px, 100% calc(100% - "+x[2]+"px), calc(100% - "+x[2]+"px) 100%, "+x[3]+"px 100%, 0 calc(100% - "+x[3]+"px))"),["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,a){e.style.setProperty("--glass-cut-"+t,x[a]+b*Math.SQRT2+"px")})),window.zaismaCast&&e.classList.contains("floating-pane")&&e.matches(":popover-open")&&window.zaismaCast(e));var z=e.zaismaEdgeShape?e.zaismaEdgeShape(u,d,x):null,L=Number(e.getAttribute("data-glass-lean"));!z&&L&&(z=[[d*L,0],[u,0],[u,d],[0,d]],e.style.setProperty("--glass-clip",U(z))),z&&(z=O(z));var M=u+"x"+d+":"+b+":"+S+(z?":"+i(z):"");if(M===h)return;h&&function(t){rt.add(t),st()}(e),h=M,z?(v=function(t){return _(z,t)},w=z.map((function(t,e){return s[G(t,z[(e+1)%z.length])]}))):(v=function(t){return function(t,e,a,n){var i=n,r=.414*n,o=a.map((function(t){return t>0?t+r:i}));return[[i,o[0]],[o[0],i],[t-o[1],i],[t-i,o[1]],[t-i,e-o[2]],[t-o[2],e-i],[o[3],e-i],[i,e-o[3]]]}(u,d,x,t)},w=o)}n.removeAttribute("viewBox"),l.dense.setAttribute("d","M"+i(v(0))+"Z M"+i(v(1.6*b))+"Z"),c(l.bevel,l.bevelQuads,v(0),v(b),w),c(l.rimBand,l.rimQuads,v(0),v(1.6),w),l.hair.setAttribute("points",i(v(.6))),l.rim.setAttribute("points",i(v(1.6))),l.spec.setAttribute("points",i(v(1.6))),l.fringe.setAttribute("points",i(v(Math.max(2.4,b-.8)))),l.inner.setAttribute("points",i(v(b)));var T=[b,b+2,b+5,b+9,b+14];l.caustics.forEach((function(t,e){c(t.group,t.quads,v(T[e]),v(T[e+1]),w)}));var P=v(0),C=[];for(P.forEach((function(t,e){var a=P[(e+1)%P.length],n=G(t,a);n.indexOf("-")>0&&Math.hypot(a[0]-t[0],a[1]-t[1])>.5&&C.push([t,a,n])}));l.facets.length<C.length;)l.facets.push(p("line",{}));l.facets.forEach((function(t,e){var a=C[e];if(t.style.display=a?"":"none",a){var n="top-left"===a[2];t.setAttribute("class",n?"facet lit":"facet"),t.setAttribute("stroke-width",n?"4.5":"3"),t.setAttribute("x1",a[0][0]),t.setAttribute("y1",a[0][1]),t.setAttribute("x2",a[1][0]),t.setAttribute("y2",a[1][1])}}))}}return n||((n=document.createElementNS(t,"svg")).setAttribute("class","edge"),n.setAttribute("aria-hidden","true"),e.appendChild(n)),v(),e.redrawGlass=function(){v()},window.zaismaWatch.size(e,v,d),m&&(w.set(e,v),A()),v}var L=getComputedStyle(document.documentElement),M=function(t,e){return parseFloat(L.getPropertyValue(t))||e},T=M("--control-slant",10),P=M("--gap-control-row",4),C=M("--gap-control-stack",8),k=4,W=P-T-.5,R=P-T+.5,F=[16,8,16,8],q=2;function D(t){var e=n(t,"header"),a=g(t),i=Math.min(a[0],a[1]);return e.map((function(t){return Math.min(t,Math.round(.3*i))}))}function I(t){var e=t.parentElement&&t.parentElement.closest("[data-glass], [data-cut-line], [data-on-no-pane]");return e&&!e.hasAttribute("data-on-no-pane")?e:null}function B(t,e,a,n){if(t===document.fullscreenElement)return[0,0,0,0];var i=I(t);if(!i&&t.hasAttribute("data-cut-square"))return[0,0,0,0];if(!i){var r=function(t){var e=p(t),a={above:!1,below:!1};return v(null).forEach((function(n){if(n!==t){var i=p(n);if(i.width&&i.height&&!(Math.min(e.right,i.right)-Math.max(e.left,i.left)<Math.min(e.width,i.width)/2)){var r=i.top-e.bottom,o=e.top-i.bottom,s=r>=-1&&r<=C+.5,c=o>=-1&&o<=C+.5;(s||c)&&!n.contains(t)&&!t.contains(n)&&(s&&(a.below=!0),c&&(a.above=!0))}}})),a}(t);return F.map((function(t,n){return(n<2?r.above:r.below)?0:Math.min(t,Math.round(.25*Math.min(e,a)))}))}var o=i===document.fullscreenElement?[0,0,0,0]:i.hasAttribute("data-cut-line")||i.cutCorners?i.cutCorners||[0,0,0,0]:D(i),s=p(t.parentElement&&t.parentElement.classList.contains("toggle-btn")?t.parentElement:t),c=function(t,e){var a=p(e),n=t.parentElement&&t.parentElement.closest(".own-scroll, .scrolls"),i=t.parentElement&&t.parentElement.closest(".layout-track");if(i&&i!==e&&e.contains(i)){var r=m(i);r.scrollWidth>r.clientWidth+1&&(a={top:a.top,bottom:a.bottom,left:a.left-r.scrollLeft,right:a.right+r.scrollWidth-r.clientWidth-r.scrollLeft})}if(!n||n===e||!e.contains(n)||t.parentElement&&"sticky"===getComputedStyle(t.parentElement).position)return a;var o=m(n);return o.scrollHeight<=o.clientHeight+1?a:{top:a.top-o.scrollTop,bottom:a.bottom+o.scrollHeight-o.clientHeight-o.scrollTop,left:a.left,right:a.right}}(t,i),l=n?n.ends:t.getAttribute("data-cut-ends")||"",u=s.top-c.top,d=c.bottom-s.bottom,f=n?n.stack:t.getAttribute("data-cut-stack");if(null!=f){var h=s.left-c.left;u=/first/.test(f)?h:1e6,d=/last/.test(f)?h:1e6}var g=/start/.test(l)?(u+d)/2:s.left-c.left,w=/end/.test(l)?(u+d)/2:c.right-s.right,y=parseFloat(getComputedStyle(i).getPropertyValue("--rail-inset"))||0,b=Math.max(e,a)<3*Math.min(e,a)?.5*Math.min(e,a):1/0;return[[g,u],[w,u],[w,d],[g,d]].map((function(t,e){var a=Math.max(0,t[0])+Math.max(0,t[1]),n=Math.max(0,(o[e]||0)-a+Math.SQRT2*Math.min(a/2,y));return Math.min(b,n>0?Math.max(k,n):0)}))}function H(t,e,a,n,i,r){var o=Math.min(a,t/3),s=n.map((function(t){return Math.min(t,e)}));[[0,3],[1,2]].forEach((function(t){var a=s[t[0]]+s[t[1]];a>e&&(s[t[0]]*=e/a,s[t[1]]*=e/a)}));var c=function(t,e,a,n){return t>=q?[e,a]:[n,n]},l=[].concat(i.start?[[o,0],[o,0]]:c(s[0],[0,s[0]],[s[0],0],[0,0]),i.end?[[t,0],[t,0]]:c(s[1],[t-s[1],0],[t,s[1]],[t,0]),i.end?[[t-o,e],[t-o,e]]:c(s[2],[t,e-s[2]],[t-s[2],e],[t,e]),i.start?[[0,e],[0,e]]:c(s[3],[s[3],e],[0,e-s[3]],[0,e]));if(t>=3*e||r){var u=n.map((function(t){return t>e+.5?t:0})),d=function(e){return Math.max(0,Math.min(t,e))};if(!i.end&&u[2]&&n[1]<q){var f=t+e-u[2];l.splice(2,4,[d(f),0],[d(f),0],[d(f),0],[d(t-u[2]),e])}if(!i.end&&u[1]&&n[2]<q){var h=t-u[1];l.splice(2,4,[d(h),0],[d(h+e),e],[d(h+e),e],[d(h+e),e])}if(!i.start&&u[0]&&n[3]<q){var m=u[0];l.splice(6,2,[d(m-e),e],[d(m-e),e]),l.splice(0,2,[d(m-e),e],[d(m),0])}if(!i.start&&u[3]&&n[0]<q){var p=u[3];l.splice(0,2,[d(p-e),0],[d(p-e),0]),l.splice(6,2,[d(p),e],[d(p-e),0])}}return l}function N(t,e,a,n){if(t.hasAttribute("data-cut-diamond"))return t.cutCorners=[e/2,e/2,e/2,e/2],[[e/2,0],[e,a/2],[e/2,a],[0,a/2]];var i=function(t,e){var a=e?e.beside:t.getAttribute("data-cut-beside");if(null!==a)return{start:/start/.test(a),end:/end/.test(a)};var n=I(t),i=p(t),r={start:!1,end:!1};return v(n).forEach((function(e){if(e!==t){var a=p(e);if(a.width&&a.height&&!(Math.min(i.bottom,a.bottom)-Math.max(i.top,a.top)<Math.min(i.height,a.height)/2)){var n=a.left-i.right,o=i.left-a.right,s=n>=W&&n<=R,c=o>=W&&o<=R;(s||c)&&!e.contains(t)&&!t.contains(e)&&(s&&(r.end=!0),c&&(r.start=!0))}}})),r}(t,n),r=B(t,e,a,n);if(t.hasAttribute("data-cut-beside")){var o=I(t),s=o&&o.getAttribute("data-slanted")||"",c=n?n.ends:t.getAttribute("data-cut-ends")||"";/start/.test(c)&&/start/.test(s)&&(i.start=!0),/end/.test(c)&&/end/.test(s)&&(i.end=!0)}var l=[i.start?0:r[0],i.end?0:r[1],i.end?0:r[2],i.start?0:r[3]].map((function(t){return Math.min(t,a)}));if([[0,3],[1,2]].forEach((function(t){var e=l[t[0]]+l[t[1]];e>a&&(l[t[0]]*=a/e,l[t[1]]*=a/e)})),t.cutCorners=l,!n){var u=((i.start?"start ":"")+(i.end?"end":"")).trim();(t.getAttribute("data-slanted")||"")!==u&&(u?t.setAttribute("data-slanted",u):t.removeAttribute("data-slanted"))}return H(e,a,t.hasAttribute("data-cut-beside")&&Number(t.getAttribute("data-cut-line"))||T,r,i)}function O(t,e){var a=e||.01;return t.filter((function(e,n){var i=t[(n+t.length-1)%t.length];return Math.abs(e[0]-i[0])>a||Math.abs(e[1]-i[1])>a}))}function U(t){return"polygon("+t.map((function(t){return t[0].toFixed(2)+"px "+t[1].toFixed(2)+"px"})).join(", ")+")"}function _(t,e){if(!e)return t;var a=t.length,n=t.map((function(n,i){var r=t[(i+1)%a],o=r[0]-n[0],s=r[1]-n[1],c=Math.hypot(o,s)||1,l=-s/c,u=o/c;return{x:n[0]+l*e,y:n[1]+u*e,dx:o,dy:s,nx:l,ny:u}}));return n.map((function(t,e){var i=n[(e+a-1)%a],r=i.dx*t.dy-i.dy*t.dx;if(Math.abs(r)<1e-6)return[t.x,t.y];var o=((t.x-i.x)*t.dy-(t.y-i.y)*t.dx)/r;return[i.x+i.dx*o,i.y+i.dy*o]}))}var V=["right","top-right","top","top-left","left","bottom-left","bottom","bottom-right"];function G(t,e){var a=e[0]-t[0],n=e[1]-t[1],i=180*Math.atan2(a,n)/Math.PI;return V[(Math.round(i/45)%8+8)%8]}function X(e){var a=e.querySelector(":scope > .cut-line");a||((a=document.createElementNS(t,"svg")).setAttribute("class","cut-line"),a.setAttribute("aria-hidden","true"),e.insertBefore(a,e.firstChild));var n=a.querySelector("polygon")||a.appendChild(document.createElementNS(t,"polygon")),i=[],o="";function s(t){return t.map((function(t){return t[0].toFixed(2)+","+t[1].toFixed(2)})).join(" ")}var c=null;function l(){u(f)}function f(){var u=g(e),d=u[0],f=u[1];if(d&&f){var h=d+"x"+f;c&&c.sizeKey!==h&&(c.sizeKey=h,c.toShape=N(e,d,f),c.fromShape=N(e,d,f,c.from));var m=c?c.toShape:N(e,d,f);if(c){var p=void 0!==c.progress?c.progress:Math.min(1,(performance.now()-c.startMs)/c.ms),v=c.ease?c.ease(p):1-Math.pow(1-p,3),w=c.fromShape;m=m.map((function(t,e){return[w[e][0]+(t[0]-w[e][0])*v,w[e][1]+(t[1]-w[e][1])*v]})),p>=1?c=null:c.isDriven||requestAnimationFrame(l)}var y=d+"x"+f+":"+s(m=O(m));if(y!==o){o=y,e.style.setProperty("--cut-shape",U(m)),e.hasAttribute("data-cut-sizes")&&["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,a){e.style.setProperty("--cut-size-"+t,(e.cutCorners&&e.cutCorners[a]||0).toFixed(1)+"px")})),a.setAttribute("viewBox","0 0 "+d+" "+f),a.setAttribute("preserveAspectRatio","none"),c&&(a.classList.add("is-gliding"),clearTimeout(a.glideEnd),a.glideEnd=setTimeout((function(){a.classList.remove("is-gliding")}),c.ms+200));var b=_(m=O(m,1),1);n.setAttribute("points",s(b)),r(e);var E=Number(e.getAttribute("data-cut-ring"))||0;if(E){var A=a.querySelector(".cut-ring");A||((A=document.createElementNS(t,"polygon")).setAttribute("class","cut-ring"),a.appendChild(A)),A.setAttribute("points",s(_(m,-E)))}w=Number(e.getAttribute("data-cut-inset"))||0;for(var x=_(m,w),S=_(m,w+1.5),z=i.length;i.length<m.length;){var L=document.createElementNS(t,"path");a.insertBefore(L,n),i.push(L)}for(;i.length>m.length;)a.removeChild(i.pop());var M=z>0&&z!==i.length;i.forEach((function(t,e){var a=(e+1)%m.length,n="cut-band on-"+G(m[e],m[a]),i=t.getAttribute("class");i&&i!==n&&(M=!0),t.setAttribute("class",n),t.setAttribute("d","M"+s([x[e],x[a],S[a],S[e]])+"Z")})),M&&!a.classList.contains("is-reshaped")&&(a.classList.add("is-reshaped"),requestAnimationFrame((function(){requestAnimationFrame((function(){a.classList.remove("is-reshaped")}))})))}}}l(),e.redrawCut=function(t){if(t&&t.isFrame)return c&&void 0!==t.progress&&(c.progress=t.progress),void l();c=t&&t.ms>0&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?{from:t.from,ms:t.ms,ease:t.ease,isDriven:!!t.isDriven,startMs:performance.now()}:null,l()},window.zaismaWatch.size(e,l,d);var h=e.parentElement&&e.parentElement.closest("[data-glass], [data-on-no-pane]");h&&h.hasAttribute("data-glass")&&window.zaismaWatch.size(h,l,d),w.set(e,l),A()}var Y=6,K=new Map;function $(t,e){if(/^(IMG|VIDEO|CANVAS|IFRAME)$/.test(t.tagName)||"none"!==e.backgroundImage||function(t){return"none"!==t&&(t.match(/rgba?\\([^)]*\\)/g)||[""]).some((function(t){var e=t.match(/[\\d.]+/g);return!e||e.length<4||Number(e[3])>.04}))}(e.boxShadow))return!0;var a=e.backgroundColor.match(/[\\d.]+/g);return!(!a||!(a.length<4||Number(a[3])>.04))||["Top","Right","Bottom","Left"].some((function(t){return parseFloat(e["border"+t+"Width"])>0&&!/rgba\\(.*, 0\\)|transparent/.test(e["border"+t+"Color"])}))}function j(t){var e=[],a=p(t),n=Math.max.apply(null,D(t))/(1-Math.SQRT2/2);return function t(i){Array.prototype.forEach.call(i.children,(function(i){if(!(i instanceof SVGElement||i.matches("[data-glass], [data-cut-line], .edge, .cut-line, dialog"))){var r=i.getBoundingClientRect();if(r.width&&r.height&&function(t){return[[t.left-a.left,t.top-a.top],[a.right-t.right,t.top-a.top],[a.right-t.right,a.bottom-t.bottom],[t.left-a.left,a.bottom-t.bottom]].some((function(t){return Math.max(0,t[0])+Math.max(0,t[1])<n}))}(r)){if(K.has(i))return void e.push(i);var o=getComputedStyle(i);if("contents"===o.display||"inline"===o.display||"fixed"===o.position)return t(i);"none"===o.clipPath&&Math.min(r.width,r.height)>=Y&&$(i,o)?e.push(i):t(i)}}}))}(t),e}function Q(t){if(!K.has(t)){var e=null;K.set(t,a),w.set(t,a),window.zaismaWatch.size(t,a,d),a()}function a(){u(n)}function n(){var a=g(t),n=a[0],i=a[1];if(n&&i&&t.isConnected){var r=O(H(n,i,0,B(t,n,i),{start:!1,end:!1},t.hasAttribute("data-cut-bar"))),o=4===r.length&&r.every((function(t){return!(0!==t[0]&&t[0]!==n||0!==t[1]&&t[1]!==i)}))?"":U(r.length?r:[[0,0]]);o!==e&&(e=o,o?(t.style.setProperty("--cut-shape",o),t.style.clipPath=o):(t.style.removeProperty("--cut-shape"),t.style.removeProperty("clip-path")))}}}var J,Z="[data-glass]:not([data-cut-line])";function tt(){var t=ot?Array.prototype.slice.call(document.querySelectorAll(Z)):Array.from(rt);ot=!1,rt.clear(),d((function(){t.forEach((function(t){t.isConnected&&j(t).forEach(Q)}))})),document.querySelectorAll("[data-cut-line] > .track-holder > .layout-track, [data-cut-line] > .layout-grid, [data-cut-line] > .grid-one-line > .layout-grid, [data-cut-line] > .game-grid-group > .layout-grid").forEach((function(t){var e=t.edgedPieces=Array.prototype.map.call(t.children,et).filter(Boolean);d((function(){e.forEach(Q)})),!t.isCutOnScroll&&(t.isCutOnScroll=!0,t.addEventListener("scroll",(function(){t.edgedPieces.forEach((function(t){var e=K.get(t);e&&e()})),t.querySelectorAll("[data-cut-line]").forEach((function(t){t.redrawCut&&t.redrawCut()}))}),{passive:!0}))}))}function et(t){if(t instanceof SVGElement||t.matches("[data-glass], [data-cut-line], .edge, .cut-line"))return null;var e=getComputedStyle(t);if("none"===e.clipPath&&$(t,e))return t;for(var a=0;a<t.children.length;a+=1){var n=et(t.children[a]);if(n)return n}return null}window.zaismaSettings={set:function(t,e){var a=e||document.documentElement;a.classList.add("eases-settings"),void 0!==t.theme&&("light"===t.theme||"dark"===t.theme?a.setAttribute("data-theme-choice",t.theme):a.removeAttribute("data-theme-choice"));var n=t.glass;n&&void 0!==n.hueColor&&("string"==typeof n.hueColor&&/^#[0-9a-fA-F]{6}$/.test(n.hueColor)?a.style.setProperty("--glass-hue",n.hueColor):a.style.removeProperty("--glass-hue"))},read:function(t){var e=t||document.documentElement,a=e.style.getPropertyValue("--glass-hue").trim();return{theme:e.getAttribute("data-theme-choice")||null,glass:{hueColor:a||null}}}},window.zaismaGlass=z,document.addEventListener("fullscreenchange",(function(){var t=window.zaismaWatch;t&&requestAnimationFrame((function(){t.drawAll(),requestAnimationFrame(t.drawAll)}))})),window.zaismaCutLine=X,window.zaismaInput=(J=!1,document.addEventListener("keydown",(function(t){/^(Shift|Control|Alt|Meta|AltGraph|CapsLock)$/.test(t.key)||(J=!0)}),!0),["pointerdown","mousedown","touchstart"].forEach((function(t){document.addEventListener(t,(function(){J=!1}),!0)})),{isKeyboard:function(){return J}});var at="function"==typeof WeakSet?new WeakSet:{has:function(){return!1},add:function(){}};function nt(t){if(t.querySelectorAll){var e=Array.prototype.slice.call(t.querySelectorAll("[data-glass]")),a=Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"));t.matches&&t.matches("[data-glass]")&&e.push(t),t.matches&&t.matches("[data-cut-line]")&&a.push(t),a.forEach((function(t){at.has(t)||t.hasAttribute("data-glass")||(at.add(t),X(t))})),e.forEach((function(t){if(!at.has(t)){at.add(t);var e=z(t,(function(){var e=n(t,"pane");if(e.some((function(t){return t>0}))||!I(t))return e;var a=g(t);return t.cutCorners=B(t,a[0],a[1])}));/^[0\\s]+$/.test(t.getAttribute("data-glass-corners")||"")&&(w.set(t,e),A())}}))}}d((function(){nt(document)})),window.zaismaWatch.arriving((function(t){d((function(){t.forEach((function(t){t.addedNodes.forEach(nt)}))}))}));var it=0,rt=new Set,ot=!1;function st(){clearTimeout(it),it=setTimeout(tt,50)}function ct(t){Array.isArray(t)?t.forEach((function(t){(function(t){if(1!==t.nodeType)return[];for(var e=Array.prototype.slice.call(t.querySelectorAll(Z)),a=t.closest(Z);a;)e.push(a),a=a.parentElement&&a.parentElement.closest(Z);return e})(t.target).forEach((function(t){rt.add(t)}))})):ot=!0,st()}ct(),window.zaismaWatch.page(ct)}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.materials||(t.materials=!0,function(){function t(t){var e=t.scrollHeight<=t.clientHeight+1&&t.scrollWidth<=t.clientWidth+1;if(t.classList.toggle("fits",e),!e){for(var a=t.parentElement&&t.parentElement.closest("[data-glass]"),n=0,i=0,r=t;r&&r!==a;)n+=r.offsetLeft,i+=r.offsetTop,r=r.offsetParent;if(r){var o=t.parentElement.closest(".scrolls:not(.fits)");if(o&&a.contains(o))return void["top-left","top-right","bottom-right","bottom-left"].forEach((function(e){t.style.setProperty("--inset-"+e,"9999px")}));var s=Math.max(0,a.offsetWidth-n-t.offsetWidth),c=Math.max(0,a.offsetHeight-i-t.offsetHeight);t.style.setProperty("--inset-top-left",n+i+"px"),t.style.setProperty("--inset-top-right",s+i+"px"),t.style.setProperty("--inset-bottom-right",s+c+"px"),t.style.setProperty("--inset-bottom-left",n+c+"px")}}}window.zaismaFit=t,window.MutationObserver&&new MutationObserver((function(e){e.forEach((function(e){e.target.open&&e.target.querySelectorAll(".scrolls").forEach(t)}))})).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["open"]}),window.zaismaWait=function(t,e){if(!t)return Promise.resolve(e);function a(){t.removeAttribute("aria-busy"),window.zaismaWaiting.redraw(t)}function n(){t.zaismaIsAnswered=!0;var e=(window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:1e3*parseFloat(getComputedStyle(t).getPropertyValue("--waiting-glint-sweep")))-(performance.now()-t.zaismaWaitStart);e>0?t.zaismaWaitEnding=setTimeout(a,e):a()}return clearTimeout(t.zaismaWaitEnding),t.zaismaIsAnswered=!1,"true"!==t.getAttribute("aria-busy")&&(t.zaismaWaitStart=performance.now()),t.setAttribute("aria-busy","true"),window.zaismaWaiting.redraw(t),Promise.resolve(e).then((function(t){return n(),t}),(function(t){throw n(),t}))},document.addEventListener("click",(function(t){var e=t.target.closest&&t.target.closest('[aria-busy="true"]');e&&e!==document.body&&!e.zaismaIsAnswered&&(t.preventDefault(),t.stopImmediatePropagation())}),!0),window.zaismaWatch.each(".scrolls",(function(e){t(e),window.zaismaWatch.size(e,(function(){t(e)})),Array.prototype.forEach.call(e.children,(function(a){window.zaismaWatch.size(a,(function(){t(e)}))}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.rows||(t.rows=!0,function(){if(window.zaismaWatch){var t=new WeakMap;window.zaismaWatch.each(".layout-row",(function(e){n(e),window.zaismaWatch.size(e,(function(){t.get(e)!==a(e)&&n(e)}))})),window.zaismaWatch.fontArrived((function(){document.querySelectorAll(".layout-row").forEach(n)}));var e=".stack-cell, .row-cell";window.zaismaWatch.each(e,i),window.zaismaWatch.page((function(t){t.forEach((function(t){var a="attributes"===t.type?t.target.parentElement:t.target;a&&a.matches&&a.matches(e)&&("attributes"!==t.type||"hidden"===t.attributeName)&&i(a)}))}))}function a(t){return t.offsetWidth+"x"+t.offsetHeight}function n(e){var n=Array.prototype.slice.call(e.children);e.classList.remove("is-wrapped"),e.classList.add("is-measuring");var i=0,r=e.offsetWidth?e.getBoundingClientRect().width/e.offsetWidth:1;e.classList.contains("widths-equal")&&n.forEach((function(t){t.classList.contains("fills")&&(i=Math.max(i,t.getBoundingClientRect().width/(r||1)))})),e.classList.remove("is-measuring");var o=i?Math.ceil(i)+"px":"";e.style.getPropertyValue("--equal-cell-width")!==o&&e.style.setProperty("--equal-cell-width",o);var s="rtl"===getComputedStyle(e).direction,c=null,l=!1;n.forEach((function(t){var e=t.getBoundingClientRect();if(!(e.width<1)){var a=s?-e.right:e.left;null!==c&&a<=c+.5&&(l=!0),c=a}})),l&&e.classList.add("is-wrapped"),t.set(e,a(e))}function i(t){var e=1===t.children.length&&t.firstElementChild.hidden;t.classList.contains("holds-only-hidden")!==e&&t.classList.toggle("holds-only-hidden",e)}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.compacting||(t.compacting=!0,window.zaismaWatch.each("[data-compacts]",(function(t){if(t.hasAttribute("data-stays-compact"))t.classList.add("is-compact");else{var e=t.parentElement&&t.parentElement.querySelector(":scope > [data-scroll-box]");(e||window).addEventListener("scroll",a,{passive:!0}),a()}function a(){var a=e?e.scrollTop:window.scrollY;a>24?t.classList.add("is-compact"):a<=0&&t.classList.remove("is-compact")}})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["header-fit"]||(t["header-fit"]=!0,function(){var t=window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function e(t,e){t.classList.toggle("has-search-button",e>0),t.classList.toggle("has-tight-tabs",e>1),t.classList.toggle("has-icon-tabs",e>2),t.classList.toggle("has-icon-sign-in",e>3)}function a(t,a){e(t,a);var n=getComputedStyle(t),i=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);return Array.prototype.forEach.call(t.children,(function(t){var e=getComputedStyle(t);if(!t.classList.contains("edge")&&"none"!==e.display){var a=t.querySelector(":scope > .switch-well .tab-switch");i+=parseFloat(e.marginLeft)+parseFloat(e.marginRight)+(t.matches(".find")?parseFloat(e.minWidth):Math.max(t.offsetWidth,a?function(t){var e=0;return Array.prototype.forEach.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){e=Math.max(e,t.offsetLeft+t.offsetWidth)})),e+parseFloat(getComputedStyle(t).paddingRight)}(a):0))}})),i}function n(n){if(n.clientWidth&&(!n.checkVisibility||n.checkVisibility({contentVisibilityAuto:!0}))){if(t.matches&&n.matches("body > .top"))return void e(n,1);for(var i=n.clientWidth,r=n.neededWidths||(n.neededWidths=[]),o=n.querySelector(".find"),s=!!o&&o.contains(document.activeElement),c=n.classList.contains("searching"),l=!1,u=0;u<4;u++){if(void 0===r[u]){if(s)return;l||(l=!0,n.classList.remove("searching"),n.classList.add("is-measuring"),n.style.width="max-content"),r[u]=a(n,u)}if(r[u]<=i)break}l&&(n.style.width="",n.classList.remove("is-measuring"),c&&n.classList.add("searching")),s&&u>0&&!n.classList.contains("typing-search")&&n.classList.add("searching"),e(n,u)}}function i(e){if(!e.fitToRoom){e.fitToRoom=function(){n(e)},n(e),window.zaismaWatch.size(e,e.fitToRoom);var a=e.querySelector(".tab-switch");a&&window.zaismaWatch.size(a,i),window.zaismaWatch.fontsIn(i),t.addEventListener("change",i)}function i(){e.neededWidths=null,n(e)}}window.zaismaWatch.each("header.top",i),window.zaismaWatch.arriving((function(){var t=document.querySelector("body > header.top");t&&t.nextSibling&&i(t)}))}())}(),function(){var t,e=window.zaismaPieces=window.zaismaPieces||{};e.install||(e.install=!0,t=null,window.addEventListener("beforeinstallprompt",(function(e){e.preventDefault(),t=e,document.querySelectorAll("[data-install-zaisma]").forEach((function(t){t.hidden=!1}))})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-install-zaisma]");!a||!t||(t.prompt(),t=null,a.hidden=!0)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.tables||(t.tables=!0,function(){function t(t){var e=t.querySelector(":scope > table > thead"),a=t.querySelector(":scope > table > tbody > tr > th, :scope > table > thead > tr > th:first-child");t.style.setProperty("--shown-width",t.clientWidth+"px"),t.style.setProperty("--shown-height",t.clientHeight+"px"),e&&t.style.setProperty("--head-height",e.offsetHeight+"px"),a&&t.style.setProperty("--row-head-width",a.offsetWidth+"px")}var e="function"==typeof ResizeObserver?new ResizeObserver((function(e){e.forEach((function(e){var a=e.target.closest(".table-scroll");a&&t(a)}))})):null;window.zaismaWatch.each(".table-scroll",(function(a){if(t(a),e){e.observe(a);var n=a.querySelector(":scope > table");n&&e.observe(n)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.rails||(t.rails=!0,function(){var t=new Set,e=!1;function a(t,e){for(var a=t.nextElementSibling;a&&a.hasAttribute("data-rail");a=a.nextElementSibling)if(a.getAttribute("data-rail")===e)return!0;return!1}function n(t,e){t.map((function(t){var e="TEXTAREA"===t.tagName||"SELECT"===t.tagName&&(t.multiple||t.size>1);if(/^(SELECT|INPUT)$/.test(t.tagName)&&!e||a(t,"box")||"none"===getComputedStyle(t).scrollbarWidth&&!t.hasAttribute("data-side-rail")&&!t.classList.contains("own-scroll")||t.classList.contains("rail-thumb"))return null;var n=t.parentElement;return n&&n!==document.body?{box:t,isControl:e,isParentStatic:"static"===getComputedStyle(n).position}:null})).forEach((function(t){t&&(t.isParentStatic&&(t.box.parentElement.style.position="relative"),t.box.insertAdjacentHTML("afterend",'<div class="rail" data-rail="box" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>'))})),e.querySelectorAll("[data-side-rail]").forEach((function(t){a(t,"side")||t.insertAdjacentHTML("afterend",'<div class="rail sideways" data-rail="side" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>')}))}var i=new WeakSet,r=!1;function o(){document.querySelectorAll("[data-rail]").forEach((function(a){if(!i.has(a)){if("page"===a.getAttribute("data-rail")&&"loading"===document.readyState)return document.documentElement.classList.add("own-scroll"),void(r||(r=!0,window.zaismaWatch.whenRead(o)));i.add(a);for(var n="page"===a.getAttribute("data-rail"),s="side"===a.getAttribute("data-rail"),c=n?null:a.previousElementSibling;c&&c.hasAttribute("data-rail");)c=c.previousElementSibling;if(c&&!c.matches("[data-rail-scroller]")&&(c=c.querySelector(":scope > [data-rail-scroller]")||c),n||c){var l=a.querySelector(".rail-groove"),u=a.querySelector(".rail-thumb"),d=getComputedStyle(a),f=parseFloat(d.getPropertyValue("--rail-reach"))||16,h=parseFloat(d.getPropertyValue("--rail-width"))||10,m=2*Math.SQRT2,p=n&&window.CSS&&CSS.supports("animation-timeline: scroll()");p&&a.classList.add("follows-scroll"),n?document.documentElement.classList.add("own-scroll"):c.classList.add("own-scroll");var g=!1,v=function(){return parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||90},w=n?Array.prototype.filter.call(document.querySelectorAll("[data-rail-mark]"),(function(t){return!t.closest("[data-rail-marks-own]")})):Array.prototype.filter.call(c.querySelectorAll("[data-rail-mark]"),(function(t){var e=t.parentElement.closest("[data-side-rail], [data-rail-marks-own]");return!e||e===c||!c.contains(e)}));!n&&w.length&&c.setAttribute("data-rail-marks-own","");var y=null;w.length&&((y=document.createElement("span")).className="tag rail-name rail-riding",y.setAttribute("data-cut-line","0"),y.appendChild(document.createElement("span")),a.appendChild(y));var b=w.map((function(t){var e=document.createElement("button"),i=document.createElement("span");function r(){var e=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";n?window.scrollTo({top:F(t),behavior:e}):c.scrollTo(s?{left:F(t),behavior:e}:{top:F(t),behavior:e})}return e.type="button",e.className="rail-mark",e.tabIndex=-1,i.className="tag rail-name",i.setAttribute("data-cut-line","0"),i.appendChild(document.createElement("span")).textContent=t.getAttribute("data-rail-mark"),e.appendChild(i),a.appendChild(e),e.addEventListener("click",(function(){C?C=!1:r()})),e.goToPart=r,{part:t,mark:e,name:i}})),E={track:0,thumb:0,max:1,start:0,startIn:m},A=a.querySelector(".rail-line"),x=n?document.querySelector("[data-rail-starts-below]"):null,S={place:function(){var t={whole:n?document.documentElement.scrollHeight:s?c.scrollWidth:c.scrollHeight,view:n?window.innerHeight:s?c.clientWidth:c.clientHeight};if(t.max=t.whole-t.view,x){var e=x.getBoundingClientRect();t.top=e.height>e.width?"":Math.round(e.bottom+10)+"px"}if(!n){var i=c.closest("[data-glass], .carving"),r=a.offsetParent;if(i&&r){var o=i.getBoundingClientRect(),l=parseFloat(getComputedStyle(i).getPropertyValue("--rail-inset"))||0,u=Math.min(o.width,o.height),d=(i.cutCorners||(window.zaismaCorners?window.zaismaCorners(i,"pane"):[0,0,0,0])).map((function(t){return Math.min(t,Math.round(.3*u))})),m=l*(Math.SQRT2-1),p=function(t){return Math.max(l,t-h+m)};if(s){var g=a.getBoundingClientRect(),v=g.left-(parseFloat(a.style.marginLeft)||0),w=g.right+(parseFloat(a.style.marginRight)||0),y=o.bottom-g.bottom<=l+2,b=c.querySelector(":scope > table.has-row-heads > tbody > tr > th"),E=b?b.offsetWidth:0,A=c.getBoundingClientRect();t.side=y?{left:Math.max(0,o.left+p(d[3])-v,E?A.left+E+l-v:0),right:Math.max(0,w-(o.right-p(d[2])))}:{left:0,right:0}}else{var S=r.getBoundingClientRect(),z=c.getBoundingClientRect(),L=i.offsetWidth?o.width/i.offsetWidth:1,M=c.querySelector(":scope > table > thead"),T=p(d[1]),P=p(d[2]),C=M?M.offsetHeight:0,k=c.classList.contains("shows-side-rail")&&c.nextElementSibling&&c.nextElementSibling.matches(".rail.sideways")?(h+2*l)*L:0,W=z.top+(C?(C+l)*L:0),R=z.bottom-k,F=Math.max(W,o.top+T*L),q=Math.min(R,o.bottom-P*L),D=Math.min(z.right,o.right-l*L);t.box={top:(F-S.top)/L-r.clientTop,height:Math.max(0,q-F)/L,left:(D-S.left)/L-r.clientLeft-(f+h)/2}}}}return t},putPlace:function(t){void 0!==t.top&&(a.style.top=t.top),t.side&&(a.style.marginLeft=t.side.left.toFixed(1)+"px",a.style.marginRight=t.side.right.toFixed(1)+"px"),t.box&&(a.style.top=t.box.top.toFixed(1)+"px",a.style.height=t.box.height.toFixed(1)+"px",a.style.left=t.box.left.toFixed(1)+"px"),g!==t.max>4&&(g=t.max>4,a.classList.toggle("is-on",g)),n||c.classList.toggle(s?"shows-side-rail":"shows-rail",g)},isUnplaced:function(t){return!n&&g&&!t.box&&!t.side},measure:function(){if(!g)return null;var t=n&&b.length?v():0;return{track:(s?l.clientWidth:l.clientHeight)-B(!0)-B(!1),start:(s?l.offsetLeft+l.parentElement.offsetLeft:l.offsetTop+l.parentElement.offsetTop)+B(!0),startIn:B(!0),at:q(),marks:b.map((function(e){return!!e.part.offsetParent?{shown:!0,spot:F(e.part,t),size:s?e.name.offsetWidth:e.name.offsetHeight}:{shown:!1}}))}},put:function(t,e){if(e){var a=e.track,n=t.max,i=Math.max(36,Math.round(a*t.view/t.whole));E={track:a,thumb:i,max:n,start:e.start,startIn:e.startIn},p?u.style.setProperty("--thumb-share",(t.view/t.whole).toFixed(4)):u.style[s?"width":"height"]=i+"px",N(e.at),b.forEach((function(t,r){var o=e.marks[r];if(t.mark.hidden=!o.shown,o.shown){var c=Math.max(0,Math.min(n,o.spot));t.mark.style[s?"left":"top"]=(e.start+(a-i)*c/n+i/2).toFixed(1)+"px",t.size=o.size||(s?t.name.offsetWidth:t.name.offsetHeight)}})),function(t){b.forEach((function(e){if(!e.mark.hidden){var a=parseFloat(e.mark.style[s?"left":"top"])||0,n=(e.size||0)/2,i=Math.max(n,Math.min(t-n,a));e.restShift=(i-a).toFixed(1)+"px",e.name.style.setProperty("--label-shift",e.restShift)}}))}(a)}}},z=!1,L=0,M=!1;(n?window:c).addEventListener("scroll",(function(){O(),!M&&(M=!0,requestAnimationFrame((function(){M=!1,N()})))}),{passive:!0}),window.zaismaWatch.resize(H);var T=n?document.body:Array.prototype.filter.call(c.children,(function(t){return!t.matches("svg, .edge, .cut-line, .rail")}));n?window.zaismaWatch.size(T,H):Array.prototype.concat.apply([c],Array.prototype.slice.call(T)).forEach((function(t){window.zaismaWatch.size(t,H)})),x&&window.zaismaWatch.size(x,H),n||window.zaismaWatch.page((function(t){t.some((function(t){return c.contains(t.target)}))&&H()}));var P=null;u.addEventListener("pointerdown",(function(t){U(t,!1)}));var C=!1,k=null,W=0;a.addEventListener("pointerdown",(function(t){if(!u.contains(t.target)){if(t.target.closest(".rail-mark")){var e=u.getBoundingClientRect();return void((C=I(t)>=(s?e.left:e.top)&&I(t)<=(s?e.right:e.bottom))&&(k=t.target.closest(".rail-mark"),W=I(t),U(t,!1)))}U(t,!0)}})),a.addEventListener("pointermove",_),window.addEventListener("pointermove",(function(t){P&&!a.hasPointerCapture(t.pointerId)&&_(t)})),window.addEventListener("pointerup",(function(t){P&&!a.hasPointerCapture(t.pointerId)&&X(t)})),window.addEventListener("pointercancel",(function(){P&&V()})),a.addEventListener("pointermove",G),a.addEventListener("pointerdown",G);var R=18;a.addEventListener("pointerup",X),a.addEventListener("pointercancel",V),H(),O()}}function F(t,e){if(n)return t.getBoundingClientRect().top+window.scrollY-(void 0===e?v():e);var a=c.getBoundingClientRect(),i=t.getBoundingClientRect();return s?i.left-a.left+c.scrollLeft:i.top-a.top+c.scrollTop}function q(){return n?window.scrollY:s?c.scrollLeft:c.scrollTop}function D(t){n?window.scrollTo(0,t):s?c.scrollLeft=t:c.scrollTop=t}function I(t){return s?t.clientX:t.clientY}function B(t){if(n)return m;var e=A.cutCorners||[0,0,0,0],a=s?t?e[3]:e[2]:t?e[1]:e[2];return Math.max(0,a-(4-2*Math.SQRT2)-(s?l.clientHeight:l.clientWidth))}function H(){P?z=!0:function(a){t.add(a),!e&&(e=!0,requestAnimationFrame((function(){e=!1;var a=Array.from(t);t.clear();var n=a.map((function(t){return t.place()}));a.forEach((function(t,e){t.putPlace(n[e])}));var i=a.filter((function(t,e){return t.isUnplaced(n[e])})),r=i.map((function(t){return t.place()}));i.forEach((function(t,e){n[a.indexOf(t)]=r[e],t.putPlace(r[e])}));var o=a.map((function(t,e){return t.measure(n[e])}));a.forEach((function(t,e){t.put(n[e],o[e])}))})))}(S)}function N(t){P&&G(),g&&!p&&(u.style.transform=(s?"translateX(":"translateY(")+(E.startIn+(E.track-E.thumb)*Math.min(1,(void 0===t?q():t)/E.max)).toFixed(1)+"px)")}function O(){a.classList.contains("awake")||a.classList.add("awake"),clearTimeout(L),L=setTimeout((function(){a.classList.remove("awake")}),1100)}function U(t,e){t.preventDefault();var i=q();if(e){var r=I(t)-(s?l.getBoundingClientRect().left:l.getBoundingClientRect().top)-E.thumb/2;D(Math.max(0,Math.min(1,r/(E.track-E.thumb)))*E.max)}P={y:I(t),last:I(t),from:q(),scrolls:[i,q()],isMoving:"mouse"===t.pointerType,isTouch:"mouse"!==t.pointerType},a.classList.add("dragging"),!n&&"none"!==getComputedStyle(c).scrollSnapType&&c.classList.add("is-dragged");try{a.setPointerCapture(t.pointerId)}catch{}}function _(t){if(P){var e=function(t){var e=I(t);if(!P.isTouch||!n)return e;var a=e+window.scrollY,i=e,r=1/0;return P.scrolls.forEach((function(t){var e=a-t,n=Math.abs(e-P.last);n<r&&(r=n,i=e)})),i}(t);if(P.last=e,!P.isMoving){if(Math.abs(e-P.y)<6)return;P.isMoving=!0,P.y=e,P.from=q()}var a=Math.max(0,Math.min(E.max,P.from+(e-P.y)*E.max/Math.max(1,E.track-E.thumb)));Math.abs(a-q())<1||(D(a),P.scrolls.push(q()),P.scrolls.length>8&&P.scrolls.shift())}}function V(){P=null,a.classList.remove("dragging"),function(){if(!n&&c.classList.contains("is-dragged")){var t=c.getBoundingClientRect(),e=getComputedStyle(c),a=q(),i=parseFloat(s?e.scrollPaddingLeft:e.scrollPaddingTop)||0,r=s?t.left+c.clientLeft:t.top+c.clientTop,o=Array.prototype.filter.call(c.children,(function(t){return getComputedStyle(t).scrollSnapAlign.indexOf("start")>=0})).map((function(t){var e=t.getBoundingClientRect();return Math.max(0,Math.min(E.max,a+(s?e.left:e.top)-r-i))}));o.push(0,E.max);var l=o.length?o.reduce((function(t,e){return Math.abs(e-a)<Math.abs(t-a)?e:t})):a,u=function(){P||c.classList.remove("is-dragged")},d=1e3*parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-arrive"))||300;if(Math.abs(l-a)<1||matchMedia("(prefers-reduced-motion: reduce)").matches)return D(l),u();var f=performance.now();!function t(e){if(!P){var n=Math.min(1,(e-f)/d);D(a+(l-a)*(1-Math.pow(1-n,3))),n<1?requestAnimationFrame(t):u()}}(f)}}(),z&&(z=!1,H())}function G(){if(b.length&&P){var t=E.start+(E.track-E.thumb)*Math.min(1,q()/E.max)+E.thumb/2,e=null,a=n?{start:0,size:window.innerHeight}:(i=c.getBoundingClientRect(),{start:s?i.left:i.top,size:s?i.width:i.height});b.forEach((function(t){if(!t.mark.hidden){var n=t.part.getBoundingClientRect();(!e||(s?n.left:n.top)-a.start<=a.size/3)&&(e=t)}})),e&&y.lastChild.textContent!==e.name.textContent&&(y.lastChild.textContent=e.name.textContent),y.style.setProperty("--riding-at",t.toFixed(1)+"px")}var i}function X(t){var e=!(!P||!P.isMoving),a=k&&Math.abs(I(t)-W)<4?k:null;if(k=null,V(),a)a.goToPart();else if(e&&"mouse"!==t.pointerType&&b.length){var n=E.start+(E.track-E.thumb)*Math.min(1,q()/E.max)+E.thumb/2,i=null,r=R;b.forEach((function(t){if(!t.mark.hidden){var e=Math.abs(parseFloat(t.mark.style[s?"left":"top"])-n);e<=r&&(r=e,i=t)}})),i&&i.mark.click()}}}))}n(window.zaismaWatch.scrollBoxes(),document),o(),window.zaismaWatch.page((function(t){var e=[],a=!1,r=!1;t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||(t.matches("[data-rail]")&&!i.has(t)&&(r=!0),!t.closest(".rail, svg, .edge, .cut-line")&&(window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),(t.matches("[data-side-rail]")||t.querySelector("[data-side-rail]"))&&(a=!0)))}))})),(e.length||a||r)&&(n(e,document),o())}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["scroll-fades"]||(t["scroll-fades"]=!0,function(){var t=window.matchMedia("(max-width: 760px), (max-height: 500px)"),e=[],a=null;function n(){return t.matches?20:34}window.zaismaScrollFadePx=n;var i=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-glide"))||.45),r=window.matchMedia("(prefers-reduced-motion: reduce)"),o=new WeakMap;function s(t,e,a,n){var s=o.get(t);s||(s={},o.set(t,s));var c=n&&!r.matches&&t.animate,l=c?getComputedStyle(t).getPropertyValue(e).trim():"";if(s[e]&&(s[e].cancel(),s[e]=null),a(),c){var u=getComputedStyle(t).getPropertyValue(e).trim(),d={};!l||u===l||(d[e]=[l,u],s[e]=t.animate(d,{duration:i,easing:"cubic-bezier(.4, 0, .2, 1)"}))}}function c(t,e,a){var n=a+"px";t.style.getPropertyValue(e)!==n&&s(t,e,(function(){t.style.setProperty(e,n)}),t.isFadeEased)}function l(t){var e=t.querySelector(":scope > table > thead");return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,headPx:e?e.offsetHeight:null}}function u(t){var e=t.map(l);t.forEach((function(t,a){!function(t,e){var a=e.scrollHeight>e.clientHeight+1,i=e.scrollTop>.5?n():0,r=e.scrollHeight-e.clientHeight-e.scrollTop>.5?n():0;c(t,"--fade-top",Math.max(0,i)),c(t,"--fade-bottom",Math.max(0,r)),null!==e.headPx&&t.style.setProperty("--fade-from",e.headPx+"px"),t.classList.toggle("is-fading",a),t.classList.toggle("is-scrollable",a),t.isFadeEased=!0}(t,e[a])}))}function d(t){a=new Set,t();var e=Array.from(a);a=null,u(e)}function f(t){a?a.add(t):u([t])}function h(t){t.classList.toggle("is-scrollable",t.scrollHeight>t.clientHeight+1)}var m=new WeakSet;function p(t){m.has(t)||(m.add(t),h(t),window.zaismaWatch.size(t.firstElementChild||t,(function(){h(t)})),t.addEventListener("input",(function(){h(t)})))}function g(t){var a=t.filter((function(t){return!t.classList.contains("scroll-fades")&&(!(/^(TEXTAREA|SELECT|INPUT)$/.test(t.tagName)||t.hasAttribute("data-scroll-box")||t.hasAttribute("data-own-fade"))||(p(t),!1))}));e=e.filter((function(t){return t.isConnected})),a.forEach((function(t){t.classList.add("scroll-fades"),e.push(t);var a=!1;t.addEventListener("scroll",(function(){a||(a=!0,requestAnimationFrame((function(){a=!1,f(t)})))}),{passive:!0}),window.zaismaWatch.size(t,(function(){f(t)}),d)})),u(a)}window.zaismaWatch.each("[data-scroll-box]",p),g(window.zaismaWatch.scrollBoxes()),window.zaismaWatch.page((function(t){var e=[];t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||t.closest(".rail, svg, .edge, .cut-line")||window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)}))}))})),e.length&&g(e)})),window.zaismaWatch.resize((function(){u(e)}));var v=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.zaismaWatch.each("[data-fades-sideways]",(function(t){function e(){return Array.prototype.filter.call(t.querySelectorAll(":scope > *, :scope > * > *"),(function(e){return!(e.classList.contains("folded")||e.hasAttribute("aria-hidden")||e.children.length&&e.parentElement===t&&e.querySelector(":scope > a, :scope > button, :scope > .cover"))&&(e.getBoundingClientRect().width>=1&&!/^(absolute|fixed)$/.test(getComputedStyle(e).position))}))}var a=null;function n(){a||function(){var n=t.getBoundingClientRect(),i=1/0,r=-1/0,o=t.scrollLeft;e().forEach((function(t){var e=t.getBoundingClientRect();i=Math.min(i,e.left),r=Math.max(r,e.right)})),a={start:i===1/0?null:i-n.left+o,end:r-n.left+o,width:t.clientWidth,whole:t.scrollWidth}}();var n=t.scrollLeft,i=n,r=a.whole-a.width-n;return null===a.start?{before:i,after:r}:{before:Math.max(n-a.start,i),after:Math.max(a.end-n-a.width,r)}}function i(e,a,n){t.classList.contains(e)!==n&&s(t,a,(function(){t.classList.toggle(e,n)}),t.isSideFadeEased)}function r(){var t=n();return i("more-left","--fade-left",t.before>2),i("more-right","--fade-right",t.after>2),t}var o=t.querySelector('[aria-current="page"], [aria-pressed="true"]'),c=!1;function l(){a=null,o&&!c&&t.scrollWidth-t.clientWidth>1&&(c=!0,t.showWhole(o,!1)),r()}function u(e){var a=e.getBoundingClientRect(),n=a.left-t.getBoundingClientRect().left+t.scrollLeft;return{start:n,end:n+a.width}}t.showWhole=function(a,n){var i=getComputedStyle(t),r=t.scrollWidth-t.clientWidth,o=t.scrollLeft,s=u(a),c=parseFloat(i.scrollPaddingLeft)||0,l=parseFloat(i.getPropertyValue("--fade-sideways-px"))||c;if(!(r<=1)){var d=function(t){return t<r-1?l:0},f=o;s.start<o+(o>1?c:0)?f=s.start-c:s.end>o+t.clientWidth-d(o)&&(f=s.start-c,e().some((function(e){var a=Math.max(0,Math.min(r,u(e).start-c));return a>o&&s.end<=a+t.clientWidth-d(a)&&(f=a,!0)})));var h=e(),m=a===h[h.length-1];if(a===h[0]?f=0:m&&(f=r),f=Math.max(0,Math.min(r,f)),!(Math.abs(f-o)<1)){if(!n||v)return void(t.scrollLeft=f);t.scrollTo({left:f,behavior:"smooth"}),clearTimeout(t.settleTimer),t.settleTimer=setTimeout((function(){m&&(f=t.scrollWidth-t.clientWidth),Math.abs(t.scrollLeft-f)>1&&t.scrollTo({left:f,behavior:"smooth"})}),450)}}},o&&window.zaismaWatch.fontsIn((function(){c&&t.showWhole(o,!1)}));var d=!1;t.addEventListener("scroll",(function(){d||(d=!0,requestAnimationFrame((function(){d=!1,r()})))}),{passive:!0}),window.zaismaWatch.size(t,l),t.firstElementChild&&window.zaismaWatch.size(t.firstElementChild,l),window.zaismaWatch.fontArrived(l),l(),requestAnimationFrame((function(){requestAnimationFrame((function(){t.isSideFadeEased=!0}))}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.backdrop||(t.backdrop=!0,function(){var t="float h1(float n){return fract(sin(n*127.1)*43758.5453);}\\nfloat h2(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}\\nvec2 h22(vec2 p){p=vec2(dot(p,vec2(127.1,311.7)),dot(p,vec2(269.5,183.3)));return fract(sin(p)*43758.5453);}\\nfloat noise(vec2 p){vec2 i=floor(p),f=fract(p);vec2 u=f*f*(3.0 - 2.0*f);\\n return mix(mix(h2(i),h2(i + vec2(1.0,0.0)),u.x),mix(h2(i + vec2(0.0,1.0)),h2(i + vec2(1.0,1.0)),u.x),u.y);}\\nfloat fbm(vec2 p){float v=0.0,a=0.5;for(int i=0;i<5;i++){v +=a*noise(p);p=p*2.03 + 1.7;a*=0.5;}return v;}\\nfloat motes(vec2 p,float size,float chance,float seed){\\n vec2 id=floor(p),f=fract(p)- 0.5;vec2 r=h22(id + seed)- 0.5;\\n float on=step(1.0 - chance,h2(id + seed*1.3));\\n float d=length(f - r*0.7);\\n return on*smoothstep(size,0.0,d);\\n}\\n",e="uniform vec2 zaismaViewOffset;\\nout vec4 zaismaFragColor;\\nvoid main() { vec4 color = vec4(0.0); mainImage(color, gl_FragCoord.xy + zaismaViewOffset); zaismaFragColor = vec4(color.rgb, 1.0); }",a="/js/zaisma-shader.8fcb55f6a1be6e26.js",n="zaisma-shader-parts",i=null,r=!1;try{var o=JSON.parse(localStorage.getItem(n));o&&o.path===a&&(i=o.parts)}catch{}function s(){if(!i&&!r){r=!0;var t=document.createElement("script");t.src=a,document.head.appendChild(t)}}window.zaismaShaderPartsArrived=function(t){i=t;try{localStorage.setItem(n,JSON.stringify({path:a,parts:t}))}catch{}y()};var c="#version 300 es\\nprecision highp float;\\nprecision highp int;\\nprecision highp sampler2D;\\nuniform vec3 iResolution;\\nuniform float iTime;\\nuniform float iTimeDelta;\\nuniform int iFrame;\\nuniform float iQuality;\\nuniform sampler2D iChannel0;\\nuniform sampler2D iChannel1;\\nuniform sampler2D iChannel2;\\nuniform sampler2D iChannel3;\\nuniform vec3 iChannelResolution[4];\\nuniform vec4 iGlassPanes[16];\\nuniform int iGlassPaneCount;\\n#line 1\\n",l=6e4,u=33,d=67,f=window.matchMedia("(prefers-reduced-motion: reduce)"),h=[],m=0,p=!1,g=!1,v=!0,w=!1;function y(){p||(p=!0,g=!0,requestAnimationFrame(lt))}function b(t){var e=t.trim().replace("#","");3===e.length&&(e=e.split("").map((function(t){return t+t})).join(""));var a=parseInt(e,16)||0;return[(a>>16&255)/255,(a>>8&255)/255,(255&a)/255]}function E(t){var e=getComputedStyle(t);return{base:b(e.getPropertyValue("--backdrop-base")),a:b(e.getPropertyValue("--backdrop-a")),b:b(e.getPropertyValue("--backdrop-b")),c:b(e.getPropertyValue("--backdrop-c")),isDark:/dark/.test(e.colorScheme||"")}}var A=!0,x=!0,S=[];function z(){x=!0,y()}function L(t){return t.closest(":has(> .backdrop)")}function M(t){var e=function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return.2126*e(t[0])+.7152*e(t[1])+.0722*e(t[2])}function T(t,e){var a=M(t),n=M(e);return(Math.max(a,n)+.05)/(Math.min(a,n)+.05)}function P(t,e,a){return[t[0]+(e[0]-t[0])*a,t[1]+(e[1]-t[1])*a,t[2]+(e[2]-t[2])*a]}function C(t,e){for(var a=e.slice().sort((function(t,e){return M(t)-M(e)})),n=t.isSmoked?a[Math.floor(.75*a.length)]:a[Math.floor(.25*a.length)],i=.3;i<=.95;i+=.02){var r=P(n,t.base,i),o=t.isSmoked?[247,249,252]:[20,23,28];if(T(r,t.isSmoked?P(r,o,.7):[89,96,106])>=4.5&&T(r,o)>=6)return i}return.95}function k(t,e){t.glassPick!==e&&(t.glassPick=e,t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice","light"),t.style.setProperty("--glass-tint",e.tint))}function W(t,e){e.length&&R(t,function(t){var e=t.reduce((function(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}),[0,0,0]).map((function(e){return e/t.length})),a={isSmoked:!1,base:P([255,255,255],e,.1)},n={isSmoked:!0,base:P([12,15,20],e,.3)},i=C(a,t),r=C(n,t),o=i<=r?a:n;return{isSmoked:o.isSmoked,tint:"rgba("+o.base.map(Math.round).join(", ")+", "+Math.min(i,r).toFixed(2)+")"}}(e))}function R(t,e){var a=t.canvas.parentElement;a&&(a.shownGlass=e,A=!0,void 0===a.ownThemeChoice&&(a.ownThemeChoice=a.getAttribute("data-theme-choice")),a.classList.toggle("smoke",e.isSmoked),e.isSmoked?a.removeAttribute("data-theme-choice"):a.setAttribute("data-theme-choice",a.ownThemeChoice||"light"),a.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(t){L(t)===a&&k(t,a.shownGlass)})))}function F(t){for(var e=[],a=4*Math.max(1,Math.floor(t.length/4/2400)),n=0;n<t.length;n+=a)e.push([t[n],t[n+1],t[n+2]]);return e}function q(t){var e=t.canvas.contentWindow;if(e)try{e.postMessage({panes:[],isIdle:D},new URL(t.canvas.src).origin)}catch{}}var D=!1,I=0;function B(){D=!0,H()}function H(){h.forEach((function(t){"frame"===t.kind&&q(t)}))}var N=null,O=!1;function U(){if(N)return N.isLost?null:N;if(O)return null;var t=document.createElement("canvas");t.width=2,t.height=2;var e=t.getContext("webgl2",{antialias:!1,depth:!1,stencil:!1,alpha:!1,powerPreference:"low-power"});if(!e)return O=!0,null;function a(){e.bindVertexArray(e.createVertexArray()),e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),N.vertex=e.createShader(e.VERTEX_SHADER),e.shaderSource(N.vertex,"#version 300 es\\nin vec2 corner;\\nvoid main() { gl_Position = vec4(corner, 0.0, 1.0); }"),e.compileShader(N.vertex),N.upscale={status:"compiling",names:["zaismaDrawn","zaismaDrawnSize","zaismaCanvasSize"]},_(N.upscale,"#version 300 es\\nprecision highp float;\\nuniform sampler2D zaismaDrawn;\\nuniform vec2 zaismaDrawnSize;\\nuniform vec2 zaismaCanvasSize;\\nout vec4 zaismaFragColor;\\nvec3 zaismaTap(vec2 texel) {\\n return texture(zaismaDrawn, clamp(texel, vec2(0.5), zaismaDrawnSize - 0.5) / vec2(textureSize(zaismaDrawn, 0))).rgb;\\n}\\nvoid main() {\\n vec2 at = gl_FragCoord.xy / zaismaCanvasSize * zaismaDrawnSize;\\n vec2 middle = floor(at - 0.5) + 0.5, f = at - middle;\\n vec2 w0 = f * (-0.5 + f * (1.0 - 0.5 * f)), w1 = 1.0 + f * f * (-2.5 + 1.5 * f), w2 = f * (0.5 + f * (2.0 - 1.5 * f)), w3 = f * f * (-0.5 + 0.5 * f);\\n vec2 w12 = w1 + w2, at0 = middle - 1.0, at3 = middle + 2.0, at12 = middle + w2 / w12;\\n vec3 color = (zaismaTap(vec2(at0.x, at0.y)) * w0.x + zaismaTap(vec2(at12.x, at0.y)) * w12.x + zaismaTap(vec2(at3.x, at0.y)) * w3.x) * w0.y\\n + (zaismaTap(vec2(at0.x, at12.y)) * w0.x + zaismaTap(vec2(at12.x, at12.y)) * w12.x + zaismaTap(vec2(at3.x, at12.y)) * w3.x) * w12.y\\n + (zaismaTap(vec2(at0.x, at3.y)) * w0.x + zaismaTap(vec2(at12.x, at3.y)) * w12.x + zaismaTap(vec2(at3.x, at3.y)) * w3.x) * w3.y;\\n vec3 north = zaismaTap(at + vec2(0.0, 1.0)), south = zaismaTap(at - vec2(0.0, 1.0)), east = zaismaTap(at + vec2(1.0, 0.0)), west = zaismaTap(at - vec2(1.0, 0.0));\\n vec3 low = min(min(min(north, south), min(east, west)), color), high = max(max(max(north, south), max(east, west)), color);\\n vec3 weight = -sqrt(clamp(min(low, 2.0 - high) / max(high, vec3(0.0001)), 0.0, 1.0)) / 7.0;\\n zaismaFragColor = vec4(clamp((color + (north + south + east + west) * weight) / (1.0 + 4.0 * weight), 0.0, 1.0), 1.0);\\n}"),N.drawn={texture:e.createTexture(),framebuffer:e.createFramebuffer(),widthPx:0,heightPx:0}}return N={board:t,gl:e,programs:{},isLost:!1,parallel:e.getExtension("KHR_parallel_shader_compile")},a(),t.addEventListener("webglcontextlost",(function(t){t.preventDefault(),N.isLost=!0})),t.addEventListener("webglcontextrestored",(function(){N.programs={},N.zaisma=null,h.forEach((function(t){t.parts=null})),N.isLost=!1,a(),h.forEach((function(t){t.isDrawn=!1})),y()})),N}function _(t,e){var a=N.gl,n=a.createShader(a.FRAGMENT_SHADER),i=a.createProgram();a.shaderSource(n,e),a.compileShader(n),a.attachShader(i,N.vertex),a.attachShader(i,n),a.bindAttribLocation(i,0,"corner"),a.linkProgram(i),t.pending={program:i,fragment:n}}function V(t){if("compiling"!==t.status)return"ready"===t.status;var e=N.gl,a=t.pending;return!(N.parallel&&!w&&!e.getProgramParameter(a.program,N.parallel.COMPLETION_STATUS_KHR))&&(e.getProgramParameter(a.program,e.LINK_STATUS)?(t.program=a.program,t.status="ready",t.at={},t.names.forEach((function(n){t.at[n]=e.getUniformLocation(a.program,n)}))):(console.warn("Backdrop shader:",e.getShaderInfoLog(a.fragment)||e.getProgramInfoLog(a.program)),e.deleteProgram(a.program),t.status="failed"),e.deleteShader(a.fragment),"compiling"!==t.status&&(t.pending=null),"ready"===t.status)}function G(a,n){if(a.programs[n])return a.programs[n];var i={status:"compiling",names:["iResolution","iTime","iDark","zaismaViewOffset"]};return _(i,c+"uniform float iDark;\\n"+t+n+"\\n"+e),a.programs[n]=i,i}var X=["iResolution","iTime","iDark","zaismaViewOffset"];function Y(a){if(a.zaisma)return a.zaisma;var n=c+"uniform float iDark;\\n"+t,r=n+"#define RIDGE_OCTAVES 6\\n"+i.shapes+i.live,o={status:"compiling",names:X.concat(["zaismaSoftA","zaismaSoftB","zaismaSoftC","zaismaStrip","zaismaShadeA","zaismaShadeB","zaismaUv"])};function s(t){var e={status:"compiling",names:X};return _(e,r+t),e}return _(o,n+"#define RIDGE_OCTAVES 4\\n"+i.shapes+i.stored+i.draw+"\\n"+e),a.zaisma={sharp:o,soft:s(i.soft),strip:s(i.strip),shade:s(i.shade)},a.zaisma}function K(t,e,a){for(var n={framebuffer:t.createFramebuffer(),textures:[],widthPx:0,heightPx:0},i=0;i<e;i++)n.textures.push(t.createTexture());return n.size=function(e,i){n.widthPx===e&&n.heightPx===i||(n.widthPx=e,n.heightPx=i,t.bindFramebuffer(t.FRAMEBUFFER,n.framebuffer),n.textures.forEach((function(n,r){t.bindTexture(t.TEXTURE_2D,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA8,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+r,t.TEXTURE_2D,n,0)})),t.drawBuffers(n.textures.map((function(e,a){return t.COLOR_ATTACHMENT0+a}))))},n}function $(t,e,a,n,i,r,o,s,c){t.bindFramebuffer(t.FRAMEBUFFER,a.framebuffer),t.useProgram(e.program),t.viewport(0,0,n,i);var l=n*r,u=l/o;t.uniform3f(e.at.iResolution,l,u,1),t.uniform1f(e.at.iTime,s),t.uniform1f(e.at.iDark,c),t.uniform2f(e.at.zaismaViewOffset,(l-n)/2,(u-i)/2),t.drawArrays(t.TRIANGLES,0,3)}function j(t){var e=!t.getAttribute("data-backdrop-shader"),a=t.getAttribute("data-backdrop-shader"),n=U(),r=null;if(!n)return null;function o(){return e&&!a&&i&&(a="#define RIDGE_OCTAVES 4\\n"+i.shapes+i.live+i.draw),a}function c(n,i,c){if(!o())return s(),!1;var l=U();if(l&&e&&!c.isOnePass){var u=Y(l),d=[u.sharp,u.soft,u.strip,u.shade].map(V).every(Boolean);if([u.sharp,u.soft,u.strip,u.shade].some((function(t){return"failed"===t.status})))c.isOnePass=!0;else if(!d)return!1}var f=l&&(e&&!c.isOnePass?Y(l).sharp:G(l,a));if(!f||!V(f)||!V(l.upscale))return f&&("failed"===f.status||"failed"===l.upscale.status)&&(c.isLost=!0),!1;if(!(r=r||t.getContext("2d",{alpha:!1})))return!1;var h=l.gl,m=l.board,p=t.width,g=t.height,v=c.drawnWidth,w=c.drawnHeight,y=f.at;(m.width<p||m.height<g)&&(m.width=Math.max(m.width,p),m.height=Math.max(m.height,g));var b=e&&!c.isOnePass,E=b?null:function(t,e,a){var n=t.gl,i=t.drawn;return(i.widthPx<e||i.heightPx<a)&&(i.widthPx=Math.max(i.widthPx,e),i.heightPx=Math.max(i.heightPx,a),n.bindTexture(n.TEXTURE_2D,i.texture),n.texImage2D(n.TEXTURE_2D,0,n.RGBA8,i.widthPx,i.heightPx,0,n.RGBA,n.UNSIGNED_BYTE,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.bindFramebuffer(n.FRAMEBUFFER,i.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,i.texture,0)),i}(l,v,w);b||(h.bindFramebuffer(h.FRAMEBUFFER,E.framebuffer),h.useProgram(f.program),h.viewport(0,0,v,w));var A=t.classList.contains("is-framed")?1.8:1,x=v*A,z=w*A;b?function(t,e,a,n,i,r,o,s){var c=t.gl,l=Y(t),u=l.sharp,d=e.parts,f=n/i;d||(d=e.parts={strip:K(c,1,!1),shade:K(c,2,!0),soft:K(c,3,!0),storedWidth:0,storedHeight:0}),(d.storedWidth!==n||d.storedHeight!==i)&&(d.storedWidth=n,d.storedHeight=i,d.strip.size(n,7),d.shade.size(Math.max(2,n>>1),Math.max(2,i>>1)),c.bindFramebuffer(c.FRAMEBUFFER,d.strip.framebuffer),c.useProgram(l.strip.program),c.viewport(0,0,n,7),c.uniform3f(l.strip.at.iResolution,n*s,i*s,1),c.uniform1f(l.strip.at.iTime,0),c.uniform1f(l.strip.at.iDark,0),c.uniform2f(l.strip.at.zaismaViewOffset,(n*s-n)/2,0),c.drawArrays(c.TRIANGLES,0,3),$(c,l.shade,d.shade,d.shade.widthPx,d.shade.heightPx,s,f,0,0));var h=Math.max(160,Math.round(Math.min(540,Math.max(300,.34*i))*e.softShare)),m=Math.max(2,Math.round(h*f));d.soft.size(m,h),$(c,l.soft,d.soft,m,h,s,f,r,o),c.bindFramebuffer(c.FRAMEBUFFER,null),c.useProgram(u.program),c.viewport(0,0,n,i);var p=u.at;[["zaismaSoftA",d.soft.textures[0]],["zaismaSoftB",d.soft.textures[1]],["zaismaSoftC",d.soft.textures[2]],["zaismaStrip",d.strip.textures[0]],["zaismaShadeA",d.shade.textures[0]],["zaismaShadeB",d.shade.textures[1]]].forEach((function(t,e){c.activeTexture(c.TEXTURE0+e),c.bindTexture(c.TEXTURE_2D,t[1]),c.uniform1i(p[t[0]],e)})),c.activeTexture(c.TEXTURE0);var g=n*s,v=i*s,w=(g-n)/2,y=(v-i)/2;c.uniform3f(p.iResolution,g,v,1),c.uniform1f(p.iTime,r),c.uniform1f(p.iDark,o),c.uniform2f(p.zaismaViewOffset,w,y),c.uniform4f(p.zaismaUv,1/n,1/i,-w/n,-y/i)}(l,c,0,p,g,n,i.darkShare,A):(h.uniform3f(y.iResolution,x,z,1),h.uniform1f(y.iTime,n),h.uniform1f(y.iDark,i.darkShare),h.uniform2f(y.zaismaViewOffset,(x-v)/2,(z-w)/2));var L=t.hasAttribute("data-adapts-glass")&&!c.isGlassAdapted&&S.some((function(e){return e.glassHost===t.parentElement}));if(h.drawArrays(h.TRIANGLES,0,3),!b){var M=l.upscale;h.bindFramebuffer(h.FRAMEBUFFER,null),h.useProgram(M.program),h.viewport(0,0,p,g),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,E.texture),h.uniform1i(M.at.zaismaDrawn,0),h.uniform2f(M.at.zaismaDrawnSize,v,w),h.uniform2f(M.at.zaismaCanvasSize,p,g),h.drawArrays(h.TRIANGLES,0,3)}return L&&(c.isGlassAdapted=!0,function(t,e,a,n){var i=new Uint8Array(a*n*4);t.readPixels(0,0,a,n,t.RGBA,t.UNSIGNED_BYTE,i),W(e,F(i))}(h,c,p,g)),r.drawImage(m,0,m.height-g,p,g,0,0,p,g),t.classList.contains("is-drawn")||t.classList.add("is-drawn"),!0}return c.prepare=function(){if(o()){var t=U();t&&G(t,a)}else s()},c}var Q=500;function J(t,e,a){return t.map((function(t,n){return t+(e[n]-t)*a}))}var Z=1e3,tt="zaisma:backdrop-lag-s",et=performance.now(),at=1,nt=performance.now(),it=!1,rt=Date.now()/1e3;try{rt-=Number(sessionStorage.getItem(tt))||0}catch{}function ot(){et=performance.now(),clearTimeout(I),I=setTimeout(B,l),D&&(D=!1,H()),it&&(it=!1,nt=et,h.forEach((function(t){t.isDrawn=!1})),y())}function st(t,e){if(!t.isOuter){var a=f.matches?20:rt%3600;t.colors=function(t,e){var a=f.matches||!t.from?1:Math.min(1,(e-t.fadeStartMs)/Q);if(a>=1)return t.from=null,Object.assign({},t.target,{darkShare:t.target.isDark?1:0});var n=a*a*(3-2*a),i=t.from,r=t.target;return{base:J(i.base,r.base,n),a:J(i.a,r.a,n),b:J(i.b,r.b,n),c:J(i.c,r.c,n),isDark:n<.5?i.isDark:r.isDark,darkShare:(void 0!==i.darkShare?i.darkShare:i.isDark?1:0)+((r.isDark?1:0)-(void 0!==i.darkShare?i.darkShare:i.isDark?1:0))*n}}(t,e);var n=!0;if(t.drawShader){if(n=t.drawShader(a,t.colors,t),t.isLost)return void t.canvas.classList.remove("is-drawn")}else t.canvas.dispatchEvent(new CustomEvent("backdrop-frame",{detail:{timeS:a,colors:t.colors,widthPx:t.canvas.width,heightPx:t.canvas.height}}));t.isDrawn=n&&!t.from}}function ct(t){return!(t.isOuter||!t.isInView||t.isLost||t.canvas.hasAttribute("data-backdrop-paused"))&&!((t.isHeld||f.matches||it)&&t.isDrawn)}function lt(t){if(p=!1,!document.hidden){var e=D?d:u;if(t-m<e&&!x)return p=!0,void requestAnimationFrame(lt);var a=g?u:t-m;m=t,g=!1,w=v,v=!1,function(t){var e=Math.max(0,t-nt);nt=t,at=t-et>l?Math.max(0,at-e/Z):Math.min(1,at+e/Z),rt+=at*e/1e3,it=0===at}(t),A&&(A=!1,x=!0,S=Array.prototype.filter.call(document.querySelectorAll("[data-glass]:not([data-cut-line])"),(function(t){t.glassHost=L(t),t.glassHost&&t.glassHost.shownGlass&&k(t,t.glassHost.shownGlass);var e=getComputedStyle(t);return"hidden"!==e.visibility&&"none"!==e.display&&Number(e.opacity)>.05})));var n=x;x=!1,h.forEach((function(i){if(i.isInView&&!i.canvas.hasAttribute("data-backdrop-paused")){if(i.isOuter)return"frame"===i.kind&&!i.isTold&&(i.isTold=!0,q(i)),void(i.canvas.hasAttribute("data-adapts-glass")&&!i.isGlassAdapted&&function(t){var e=t.still;if(e&&e.naturalWidth){var a=document.createElement("canvas"),n=Math.min(1,160/Math.max(e.naturalWidth,e.naturalHeight));a.width=Math.max(2,Math.round(e.naturalWidth*n)),a.height=Math.max(2,Math.round(e.naturalHeight*n));var i=a.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,a.width,a.height),t.isGlassAdapted=!0;try{W(t,F(i.getImageData(0,0,a.width,a.height).data))}catch{}}}(i));i.drawShader&&n&&(i.isDrawn=!1),(!(i.isHeld||f.matches||it)||!i.isDrawn)&&(i.drawShader&&a<1e3&&(i.slowS=a>1.5*e?i.slowS+a/1e3:Math.max(0,i.slowS-a/2e3),i.slowS>1.5&&(i.slowS=0,i.softShare>.6?i.softShare*=.75:i.scale>.26?(i.scale*=.75,i.size()):i.isHeld=!0)),st(i,t))}})),w=!1,(x||A||h.some(ct))&&(p=!0,requestAnimationFrame(lt))}}function ut(){var t=performance.now();A=!0,h.forEach((function(e){var a=E(e.canvas);JSON.stringify(a)!==JSON.stringify(e.target)&&(e.from=e.colors,e.target=a,e.fadeStartMs=t,e.isDrawn=!1,e.isGlassAdapted=!1,e.isInView&&st(e,t))})),y()}function dt(){var t="";h.forEach((function(e){var a=e.isOuter&&e.canvas.getAttribute("data-backdrop-color");a&&/^#[0-9a-fA-F]{6}$/.test(a)&&(t=a)})),t?document.documentElement.style.setProperty("--backdrop-edge",t):document.documentElement.style.removeProperty("--backdrop-edge")}function ft(t){if(!t.backdropLayer&&(!t.hasAttribute("data-backdrop-stand-in")||t.hasAttribute("data-backdrop-shader"))){var e=t.getAttribute("data-backdrop");if("frame"===e||"picture"===e)return function(t,e){var a={canvas:t,kind:e,isOuter:!0,isInView:!0,isTold:!1,isGlassAdapted:!1,target:E(t),from:null};function n(){var n=t.getAttribute("data-glass-kind");if(t.hasAttribute("data-adapts-glass")&&n)return a.isGlassAdapted=!0,void R(a,{isSmoked:"smoked"===n,tint:t.getAttribute("data-glass-tint")||""});var i=t.getAttribute("data-backdrop-still")||("picture"===e?t.currentSrc||t.src:"");if(t.hasAttribute("data-adapts-glass")&&i){var r=new Image;r.onload=function(){t.getAttribute("data-backdrop-still")!==i&&"picture"!==e||(a.still=r,a.isGlassAdapted=!1,z())},r.src=i}}t.backdropLayer=a,h.push(a),"frame"===e&&(a.onMessage=function(e){e.source===t.contentWindow&&e.data&&e.data.zaismaBackground&&(a.isTold=!1,z())},window.addEventListener("message",a.onMessage)),n(),new MutationObserver(n).observe(t,{attributes:!0,attributeFilter:["data-backdrop-still","src","data-glass-kind"]}),window.IntersectionObserver&&new IntersectionObserver((function(t){a.isInView=t[t.length-1].isIntersecting,a.isInView&&z()})).observe(t),z(),dt()}(t,e);var a="scene"===t.getAttribute("data-backdrop"),n=window.matchMedia("(max-width: 760px)").matches,i=Math.min(window.devicePixelRatio||1,a?2:1.5),r=t.classList.contains("is-framed"),o=!a&&!t.getAttribute("data-backdrop-shader"),s=pt&&pt.has(t)?pt.get(t):ht(t),c={canvas:t,isInView:s,isDrawn:!1,isHeld:!1,slowS:0,target:E(t),from:null,softShare:1,scale:a||r?i:o?Math.min(window.devicePixelRatio||1,2):(n?.4:.55)*i};if(a||(c.drawShader=j(t),c.drawShader)){if(t.backdropLayer=c,c.size=function(){var e=Math.max(2,Math.round(t.clientWidth*c.scale)),n=Math.max(2,Math.round(t.clientHeight*c.scale));o&&!c.isOnePass?(c.drawnWidth=e,c.drawnHeight=n):a||(c.drawnWidth=Math.max(2,Math.round(t.clientWidth*c.scale*.7)),c.drawnHeight=Math.max(2,Math.round(t.clientHeight*c.scale*.7)),e=Math.round(1.4*c.drawnWidth),n=Math.round(1.4*c.drawnHeight)),(e!==t.width||n!==t.height)&&(t.width=e,t.height=n,c.isDrawn=!1,t.backdropLayer&&!v&&c.isInView&&st(c,performance.now()))},c.size(),window.zaismaWatch.size(t,c.size),window.IntersectionObserver&&new IntersectionObserver((function(t){c.isInView=t[t.length-1].isIntersecting,c.onView&&c.onView(),c.isInView&&y()})).observe(t),c.drawShader&&!s&&window.IntersectionObserver){var l=new IntersectionObserver((function(t){t[t.length-1].isIntersecting&&(l.disconnect(),c.drawShader.prepare())}),{rootMargin:"100% 0px"});l.observe(t)}else c.drawShader&&c.drawShader.prepare();new MutationObserver(y).observe(t,{attributes:!0,attributeFilter:["data-backdrop-paused"]}),h.push(c),!v&&c.isInView&&st(c,performance.now()),y()}}}function ht(t){var e=t.getBoundingClientRect();return e.bottom>0&&e.right>0&&e.top<window.innerHeight&&e.left<window.innerWidth}["pointerdown","pointermove","keydown","wheel","touchstart","scroll"].forEach((function(t){window.addEventListener(t,ot,{passive:!0,capture:!0})})),I=setTimeout(B,l),window.addEventListener("pagehide",(function(){try{sessionStorage.setItem(tt,String(Date.now()/1e3-rt))}catch{}}));var mt=document.querySelectorAll("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']"),pt=new Map;function gt(t){return 1===t.nodeType&&(t.hasAttribute("data-glass")||!!t.querySelector("[data-glass]"))}mt.forEach((function(t){"CANVAS"===t.tagName&&pt.set(t,ht(t))})),mt.forEach(ft),pt.clear(),window.zaismaWatch.each("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']",ft),window.zaismaBackdrop={add:function(t){A=!0,ft(t),y()},remove:function(t){var e=t.backdropLayer;e&&(h=h.filter((function(t){return t!==e})),e.onMessage&&window.removeEventListener("message",e.onMessage),t.backdropLayer=null,z(),dt())},forgetGlass:function(){document.querySelectorAll(":has(> .backdrop)").forEach((function(t){t.shownGlass=null})),document.querySelectorAll("[data-glass]").forEach((function(t){t.glassPick=null,t.classList.remove("smoke"),t.removeAttribute("data-theme-choice"),t.style.removeProperty("--glass-tint")}))}},window.zaismaWatch.resize(z),window.zaismaWatch.page((function(t){A||(A=t.some((function(t){return"attributes"===t.type?t.target.hasAttribute("data-glass"):Array.prototype.some.call(t.addedNodes,gt)||Array.prototype.some.call(t.removedNodes,gt)})))&&y()})),document.addEventListener("toggle",(function(){A=!0,y()}),!0),document.addEventListener("visibilitychange",(function(){document.hidden||y()})),new MutationObserver(ut).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-theme-choice"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ut),f.addEventListener("change",ut)}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["shown-once-drawn"]||(t["shown-once-drawn"]=!0,function(){var t="iframe[data-shows-once-drawn]";function e(t){window.zaismaWatch.afterSettling((function(){t.classList.add("is-shown")}))}window.addEventListener("message",(function(a){!a.data||!a.data.zaismaBackground||document.querySelectorAll(t).forEach((function(t){a.source===t.contentWindow&&(t.hasSaid=!0,e(t))}))})),window.zaismaWatch.eachArriving(t,(function(t){t.addEventListener("load",(function(){setTimeout((function(){t.hasSaid||e(t)}),4e3)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.switches||(t.switches=!0,window.zaismaWatch.each(".tab-switch",(function(t){var e=t.querySelector(".switch-slab"),a=t.querySelectorAll(":scope > a, :scope > button:not(.switch-folder)"),n=function(){return t.classList.contains("vertical")};function i(){return t.querySelector('[aria-current="page"], [aria-pressed="true"]')}var r=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gap-control-row"))||4,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function s(t){var e=window.devicePixelRatio||1;return Math.round(t*e)/e}var c,l,u,d,f=(c=.4,l=0,u=.2,d=1,function(t){for(var e=t,a=0;a<8;a++){var n=3*(1-e)*(1-e)*e*c+3*(1-e)*e*e*u+e*e*e-t,i=3*(1-e)*(1-e)*c+6*(1-e)*e*(u-c)+3*e*e*(1-u);if(Math.abs(i)<1e-6)break;e=Math.min(1,Math.max(0,e-n/i))}return 3*(1-e)*(1-e)*e*l+3*(1-e)*e*e*d+e*e*e});function h(t,e){t.slideAt=e;var a=Math.round(e.size)+"px";n()?(t.style.width=e.width?Math.round(e.width)+"px":"",t.style.height=a,t.style.transform="translate("+(e.across||0)+"px, "+e.pos+"px)"):(t.style.height="",t.style.width=a,t.style.transform="translateX("+e.pos+"px)")}function m(e,a,n,i){var o=function(t){return Math.max(0,((Number(t.getAttribute("data-cut-line"))||0)-r)/2)}(e),s=n?0:o,c=i?0:o,l=t.closest("[data-cut-line]"),u=l&&l.getAttribute("data-slanted")||"";if(!e.classList.contains("focus-ring")&&(n&&/start/.test(u)||i&&/end/.test(u))){var d=a.offsetTop,f=t.offsetHeight,h=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--control-slant"))||10,m=h/2-Math.min(Number(e.getAttribute("data-cut-line"))||0,(a.offsetWidth+s+c)/3)/2+d*Math.sqrt(1+h/f*(h/f))-d;n&&/start/.test(u)&&(s=-m),i&&/end/.test(u)&&(c=-m)}return{start:s,end:c}}function p(e,a,i){var r=!i&&e.slideTarget&&e.pickedTab===a;if(e.pickedTab=a,a){var c={beside:e.getAttribute("data-cut-beside"),ends:e.getAttribute("data-cut-ends")||"",stack:e.getAttribute("data-cut-stack")},l=Array.prototype.filter.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){return!t.classList.contains("folded")&&!t.hidden})),u=a===l[0],d=a===l[l.length-1];if(n()){var f={pos:a.offsetTop,size:a.offsetHeight},h=i&&!o?v(e):0;if("grid"===getComputedStyle(t).display&&(f.across=a.offsetLeft,f.width=a.offsetWidth),e.classList.contains("focus-ring")){var p=u?0:a.offsetTop,w=d?t.getBoundingClientRect().height:a.offsetTop+a.offsetHeight,y=Math.round(w-p);f={pos:d?w-y:p,size:y,across:f.across,width:f.width}}return e.setAttribute("data-cut-beside",""),e.setAttribute("data-cut-stack",((u?"first ":"")+(d?"last":"")).trim()),void g(e,f,h,null!==c.stack?c:null,r)}var b=m(e,a,u,d),E=b.start,A=b.end,x={pos:s(a.offsetLeft-E),size:a.offsetWidth+E+A},S=i&&!o?v(e):0;if(e.classList.contains("focus-ring")){var z=u?0:a.offsetLeft-E,L=d?t.getBoundingClientRect().width:a.offsetLeft+a.offsetWidth+A,M=Math.round(L-z);x={pos:d?L-M:z,size:M}}e.setAttribute("data-cut-beside",((u?"":"start ")+(d?"":"end")).trim());var T=((u?"start ":"")+(d?"end":"")).trim();T?e.setAttribute("data-cut-ends",T):e.removeAttribute("data-cut-ends"),g(e,x,S,null!==c.beside?c:null,r)}else e.style.width="0px"}function g(t,a,n,i,r){if(r)t.slideTarget=a;else{if(n&&t.redrawCut){var o=t.slideAt;return h(t,a),t.redrawCut(i?{from:i,ms:n,ease:t===e&&w?w.ease:f,isDriven:!0}:void 0),o&&h(t,o),void function(t,a,n){var i=t===e?w:null,r=i?i.ease:f,o=t.slideAt||a,s=null,c=(t.slideId||0)+1;t.slideId=c,t.slideTarget=a,t.setAttribute("data-move-duration-ms",String(Math.round(n))),function e(l){if(t.slideId===c){var u=null===s||void 0===l?0:Math.min(1,(l-s)/n),d=r(u);a=t.slideTarget,i&&i.isOn&&window.scrollTo(window.scrollX,i.fromY+(i.toY-i.fromY)*d);var f=o.size!==a.size||void 0!==a.width&&o.width!==a.width;t.redrawCut&&!f&&t.redrawCut({isFrame:!0,progress:u});var m=function(t,e){return u<1&&void 0!==t?t+(e-t)*d:e};if(h(t,{pos:m(o.pos,a.pos),size:m(o.size,a.size),across:void 0===a.across?void 0:m(o.across||0,a.across),width:void 0===a.width?void 0:m(o.width,a.width)}),t.redrawCut&&f&&t.redrawCut({isFrame:!0,progress:u}),u<1)return void requestAnimationFrame((function(t){null===s&&(s=t),e(t)}));t.removeAttribute("data-move-duration-ms"),t.slideTarget=null,t.redrawCut&&t.redrawCut(),i&&i.isOn&&i.land()}}()}(t,a,n)}t.slideId=(t.slideId||0)+1,t.slideTarget=null,t.removeAttribute("data-move-duration-ms"),h(t,a),t.redrawCut&&t.redrawCut()}}function v(t){return t===e&&w?w.ms:parseFloat(getComputedStyle(t).getPropertyValue("--slide-ms"))||550}var w=null,y=!1;function b(){if(!y&&t.getClientRects().length){!function(){var i=t.closest("[data-cut-line]"),r=i&&i.getAttribute("data-slanted")||"",o=Array.prototype.filter.call(a,(function(t){return!t.classList.contains("folded")&&!t.hidden}));o.forEach((function(t,a){if(n())t.style.removeProperty("--tab-shift");else{var i=0===a,s=a===o.length-1,c=m(e,t,i,s),l=Math.min(Number(e.getAttribute("data-cut-line"))||0,(t.offsetWidth+c.start+c.end)/3),u=(!i||/start/.test(r)?1:0)-(!s||/end/.test(r)?1:0);t.style.setProperty("--tab-shift",Math.round(10*((c.end-c.start)/2+u*l/4))/10+"px")}}))}();var r=i(),o=t.querySelector(":scope > :focus-visible"),s=t.querySelector(".focus-ring");e.style.transition="none",p(e,r),s&&o&&p(s,o),function(){var e=t.querySelector(":scope > .is-focused"),a=t.querySelector(".focus-ring");e&&a&&(p(a,e),t.classList.add("is-focus-shown"))}(),e.offsetWidth,e.style.transition="",t.classList.add("is-ready")}}var E=t.closest("body > .top")&&window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function A(){var e=E.matches,a=t.closest(".switch-well"),n=t.parentElement;t.classList.toggle("vertical",e),a&&(a.classList.toggle("vertical",e),a.classList.toggle("is-full",!e),a.setAttribute("data-edge-light",e?"left":"bottom")),n&&n.classList.toggle("across",!e)}function x(e){var a=i(),r=t.parentElement;if(r){if(n()){var o=r.scrollHeight-r.clientHeight;if(!a||o<=1||!a.getClientRects().length)return;var s=window.zaismaScrollFadePx?window.zaismaScrollFadePx():34,c=r.getBoundingClientRect(),l=a.getBoundingClientRect(),u=r.scrollTop,d=l.top-c.top+u,f=l.bottom-c.top+u,h=u;return d-s<u?h=d-s:f+s>u+r.clientHeight&&(h=f+s-r.clientHeight),void r.scrollTo({top:Math.max(0,Math.min(o,h)),behavior:e?"smooth":"auto"})}t.classList.remove("is-past-room"),!(r.scrollWidth<=r.clientWidth+1)&&(t.classList.add("is-past-room"),a&&r.scrollTo({left:a.offsetLeft+a.offsetWidth/2-r.clientWidth/2,behavior:e?"smooth":"auto"}))}}E&&(A(),E.addEventListener("change",(function(){A(),b()}))),b(),x(!1);var S=window.navigation&&navigation.activation&&navigation.activation.from;if(S&&S.url&&e.animate&&!n()&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var z=new URL(S.url),L=z.pathname,M=L===location.pathname&&z.search===location.search,T=Array.prototype.filter.call(a,(function(t){return t.href&&new URL(t.href).pathname===L})),P=T.find((function(t){return new URL(t.href).search===z.search}))||(1===T.length?T[0]:void 0),C=i();P&&C&&P!==C&&!M&&(e.style.transition="none",p(e,P),e.offsetWidth,e.style.transition="",y=!0,window.zaismaWatch.fontsIn((function(){requestAnimationFrame((function(){y=!1,b(),y=!0;var t=function(){y=!1,b()};(function(){var t=n()?"translateY("+P.offsetTop+"px)":"translateX("+P.offsetLeft+"px) scaleX("+(P.offsetWidth/Math.max(1,C.offsetWidth)).toFixed(4)+")",a=n()?"translateY("+C.offsetTop+"px)":"translateX("+C.offsetLeft+"px) scaleX(1)";return e.animate([{transform:t,transformOrigin:"0 0"},{transform:a,transformOrigin:"0 0"}],{duration:v(e),easing:"cubic-bezier(.3, 1.2, .4, 1)"})})().finished.then(t,t)}))})))}if(window.zaismaWatch.fontsIn(b),window.zaismaWatch.size(t,b),window.zaismaWatch.size(t,(function(){n()||x(!1)})),t.parentElement&&(window.zaismaWatch.size(t.parentElement,b),window.zaismaWatch.size(t.parentElement,(function(){x(!1)}))),Array.prototype.forEach.call(t.querySelectorAll(":scope > .foldable"),(function(t){window.zaismaWatch.size(t,b)})),t.pickTab=function(i){"BUTTON"===i.tagName?a.forEach((function(t){t.setAttribute("aria-pressed",String(t===i))})):a.forEach((function(t){t===i?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")})),e.pickedTab!==i&&p(e,i,!0);var r=t.closest("[data-fades-sideways]");r&&r.showWhole&&!n()?r.showWhole(i,!0):x(!0),D()},a.forEach((function(a){a.addEventListener("click",(function(r){if(!function(t){return t.disabled||"true"===t.getAttribute("aria-disabled")}(a)){if(a.href&&"page"===a.getAttribute("aria-current")&&0===r.button&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey)return void r.preventDefault();if(a.href&&!r.defaultPrevented){var s=new URL(a.href,location.href),c=!(0!==r.button||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||a.target&&"_self"!==a.target);if(s.pathname!==location.pathname||s.search!==location.search){if(!n()||o||!c)return;return r.preventDefault(),H=H||i(),t.pickTab(a),B(),clearTimeout(N),document.dispatchEvent(new Event("zaisma-leaving-page")),void(N=setTimeout((function(){location.assign(a.href)}),v(e)))}var l=n()&&!o&&c&&s.hash&&document.getElementById(decodeURIComponent(s.hash.slice(1)));if(l&&l.getClientRects().length)return r.preventDefault(),void function(e,a,n){w&&w.stop();var i=document.documentElement,r=window.scrollY,o=parseFloat(getComputedStyle(i).scrollPaddingTop)||0,s=Math.max(0,Math.min(i.scrollHeight-window.innerHeight,r+a.getBoundingClientRect().top-o)),c=Math.abs(s-r)/window.innerHeight,l=w={isOn:!0,fromY:r,toY:s,ms:Math.min(800,400+130*Math.max(0,c-1)),ease:function(t){return t*t*t*(t*(6*t-15)+10)}},u=["wheel","touchstart","pointerdown","keydown"];function d(t){l.isOn=!1,u.forEach((function(t){window.removeEventListener(t,f)})),w===l&&(w=null),requestAnimationFrame((function(){requestAnimationFrame((function(){w||i.removeAttribute("data-page-gliding"),dispatchEvent(new CustomEvent("zaisma:page-glide-end",{detail:{hash:n,hasLanded:t}}))}))}))}function f(){d(!1)}l.stop=function(){l.isOn&&(l.isOn=!1,u.forEach((function(t){window.removeEventListener(t,f)})))},l.land=function(){location.hash=n,d(!0)},i.setAttribute("data-page-gliding",""),u.forEach((function(t){window.addEventListener(t,f,{passive:!0})})),t.pickTab(e)}(a,l,s.hash)}t.pickTab(a)}}))})),t.hasAttribute("data-shows-one-panel")){var k=function(t){var e=t.hash?decodeURIComponent(t.hash.slice(1)):"";return e?document.getElementById(e):null},W=function(t){a.forEach((function(e){var a=k(e);a&&(a.hidden=e!==t)}))},R=function(){var e=Array.prototype.filter.call(a,(function(t){return t.hash&&t.hash===location.hash}))[0];e&&(W(e),"page"!==e.getAttribute("aria-current")&&t.pickTab(e))};a.forEach((function(t){t.addEventListener("click",(function(e){if(!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&k(t)){e.preventDefault(),history.replaceState(history.state,"",t.hash),W(t);var a=k(t);a&&a.animate&&!o&&a.animate([{opacity:0},{opacity:1}],{duration:200,easing:"cubic-bezier(0.2, 0, 0, 1)"})}}))})),window.addEventListener("hashchange",R),queueMicrotask(R)}var F=Array.prototype.slice.call(t.querySelectorAll(":scope > .switch-folder"));function q(t){for(var e=[],a=t.nextElementSibling;a&&a.classList.contains("is-in-folder");a=a.nextElementSibling)e.push(a);return e}function D(){var t=i();F.forEach((function(e){var a=q(e).indexOf(t)>=0;e.classList.toggle("is-held",a),a?e.removeAttribute("data-lights"):e.setAttribute("data-lights",""),a&&"true"!==e.getAttribute("aria-expanded")&&I(e,!0)}))}function I(t,e){t.setAttribute("aria-expanded",String(e)),q(t).forEach((function(t){!function(t,e){var a=t.hidden?0:t.offsetHeight;t.getAnimations().forEach((function(t){t.cancel()})),t.hidden=!1;var n=t.offsetHeight;if(!o&&t.animate){t.classList.add("is-folding");var i=t.animate([{height:a+"px",minHeight:"0px",opacity:n?a/n:0},{height:(e?n:0)+"px",minHeight:"0px",opacity:e?1:0}],{duration:240,easing:"cubic-bezier(.2,.8,.2,1)"});i.onfinish=function(){t.classList.remove("is-folding"),t.hidden=!e},i.oncancel=function(){t.classList.remove("is-folding")}}else t.hidden=!e}(t,e)}))}function B(t){F.forEach((function(e){e!==t&&!e.classList.contains("is-held")&&"true"===e.getAttribute("aria-expanded")&&I(e,!1)}))}F.forEach((function(t){t.addEventListener("click",(function(){if(!t.classList.contains("is-held")){var e="true"!==t.getAttribute("aria-expanded");I(t,e),e&&B(t)}}))})),D();var H=null,N=null;window.addEventListener("pageshow",(function(e){!e.persisted||!H||(clearTimeout(N),t.pickTab(H),B(),H=null)}));var O=t.querySelector(".focus-ring");t.addEventListener("focusin",(function(e){var a=e.target;!O||a.parentElement!==t||!a.matches(":focus-visible")||(p(O,a),t.classList.add("is-focus-shown"))})),t.addEventListener("focusout",(function(){t.classList.remove("is-focus-shown")}))})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["guild-seal"]||(t["guild-seal"]=!0,!window.IntersectionObserver||matchMedia("(prefers-reduced-motion: reduce)").matches||window.zaismaWatch.each("video.guild-seal-video",(function(t){var e=!1;t.addEventListener("ended",(function(){t.src=t.getAttribute("data-resting"),t.loop=!0,t.play().catch((function(){}))})),new IntersectionObserver((function(a){a[a.length-1].isIntersecting?(e||(e=!0,t.src=t.getAttribute("data-forging")),t.play().catch((function(){}))):t.pause()})).observe(t)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sidebar||(t.sidebar=!0,function(){function t(t){return"1"===getComputedStyle(t).getPropertyValue("--sidebar-is-sheet").trim()}function e(t){return"zaisma-sidebar:"+t.getAttribute("data-sidebar-remember")}function a(t){return document.querySelectorAll('[data-sidebar-button][aria-controls="'+t.id+'"], [data-sidebar-button][aria-controls="'+t.id+'-sheet"]')}function n(e){var n=e.closest(".sidebar-layout"),i=document.getElementById(e.id+"-sheet");a(e).forEach((function(a){a.setAttribute("aria-controls",t(e)?e.id+"-sheet":e.id),a.setAttribute("aria-expanded",String(t(e)?!(!i||!i.open):!(!n||n.classList.contains("is-collapsed"))))}))}function i(t,e){e.classList.remove("is-folding"),t.classList.remove("is-leaving"),["--sidebar-left","--sidebar-top","--sidebar-width","--sidebar-height"].forEach((function(e){t.style.removeProperty(e)}))}function r(t,a,r){var o=t.closest(".sidebar-layout");if(o){if(r)try{localStorage.setItem(e(t),a?"hidden":"shown")}catch{}cancelAnimationFrame(t.foldFrame),clearTimeout(t.foldTimer),clearTimeout(t.slideTimer),i(t,o);var s=o.querySelector(".sidebar-main"),c=r&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&s,l=c?s.getBoundingClientRect():null,u=c&&a?t.getBoundingClientRect():null;if(u&&(t.style.setProperty("--sidebar-left",u.left+"px"),t.style.setProperty("--sidebar-top",u.top+"px"),t.style.setProperty("--sidebar-width",u.width+"px"),t.style.setProperty("--sidebar-height",u.height+"px"),o.classList.add("is-folding")),o.classList.toggle("is-collapsed",a),n(t),u&&(t.foldFrame=requestAnimationFrame((function(){t.classList.add("is-leaving")})),t.foldTimer=setTimeout((function(){i(t,o)}),350)),c){var d=l.left-s.getBoundingClientRect().left;Math.abs(d)<1||(s.style.transition="none",s.style.transform="translateX("+d+"px)",s.offsetWidth,s.style.transition="transform 0.45s cubic-bezier(.2,.8,.2,1)",s.style.transform="",t.slideTimer=setTimeout((function(){s.style.removeProperty("transition"),s.style.removeProperty("transform")}),500))}}}window.zaismaWatch.each("nav.sidebar[data-sidebar-remember]",(function(t){try{var i=localStorage.getItem(e(t));("shown"===i||"hidden"===i)&&r(t,"hidden"===i,!1)}catch{}window.zaismaWatch.whenRead((function(){!function(t){var e=document.getElementById(t.id+"-sheet");e&&(e.addEventListener("close",(function(){n(t);var i=a(t)[0];i&&(!document.activeElement||document.activeElement===document.body||e.contains(document.activeElement))&&i.focus({preventScroll:!0})})),e.addEventListener("click",(function(t){t.target.closest&&t.target.closest("a[href]")&&e.close()}))),n(t)}(t)})),n(t)})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-sidebar-button]");if(a){var i=a.getAttribute("aria-controls").replace(/-sheet$/,""),o=document.getElementById(i),s=document.getElementById(i+"-sheet");if(o){if(t(o))return void(s&&!s.open&&(s.showModal(),n(o)));r(o,!o.closest(".sidebar-layout").classList.contains("is-collapsed"),!0)}}}));var o=!1;window.addEventListener("resize",(function(){o||(o=!0,requestAnimationFrame((function(){o=!1,document.querySelectorAll("nav.sidebar[data-sidebar-remember]").forEach((function(e){var a=document.getElementById(e.id+"-sheet");!t(e)&&a&&a.open&&a.close(),n(e)}))})))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["started-low"]||(t["started-low"]=!0,function(){function t(t){var e=t.querySelector(".run-wrap"),a=t.querySelector(":scope > .pane-in > .layout-stack")||t.querySelector(":scope > .pane-in"),n=e&&a&&Array.prototype.find.call(a.children,(function(t){return t.contains(e)}));if(n){var i=parseFloat(getComputedStyle(t).marginTop)||0;t.style.setProperty("--started-low-used",Math.round(n.getBoundingClientRect().bottom+window.scrollY-i)+"px")}}window.zaismaWatch.each(".glass-pane.is-started-low",(function(e){t(e),window.zaismaWatch.size(e,(function(){t(e)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.placing||(t.placing=!0,function(){window.zaismaIsOnPage=function(t,e){var a=function(t){for(var e=t;e&&e!==document.documentElement;e=e.parentElement){var a=getComputedStyle(e).position;if("fixed"===a||"sticky"===a)return!0}return!1};return!(a(t)||e.parentElement&&a(e.parentElement))},window.zaismaPageRoom=function(t){var e={left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight};return document.querySelectorAll("header, nav.sidebar").forEach((function(a){if(!t||!a.contains(t)){var n=getComputedStyle(a).position,i=a.getBoundingClientRect();"fixed"!==n&&"sticky"!==n||i.width<1||i.height<1||i.bottom<=0||i.top>=e.bottom||"fixed"===n&&a.offsetParent||(i.width>=e.right/2?e.top=Math.max(e.top,i.bottom):(i.left+i.right)/2<e.right/2?e.left=Math.max(e.left,i.right):e.right=Math.min(e.right,i.left))}})),e},window.zaismaPlace=function(t,e,a){var n=a.roomRect||{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight},i=a.gapPx,r=a.edgePx,o=(t.left+t.right)/2>(n.left+n.right)/2,s=Math.max(n.left+r,Math.min(o?t.right-e.width:t.left,n.right-r-e.width)),c=n.bottom-r-t.bottom-i,l=t.top-i-r-n.top,u=e.height<=c,d=e.height<=l,f=(t.top+t.bottom)/2>(n.top+n.bottom)/2,h=!a.isAlwaysBelow&&(u&&d?f:!u&&l>c),m=h?t.top-i-e.height:t.bottom+i;return{leftPx:s,topPx:Math.max(n.top+r,Math.min(m,n.bottom-r-e.height)),isAtEnd:o,isAbove:h}};window.zaismaCast=function(t){var e=t.floatCast;if(e||((e=t.floatCast=document.createElement("div")).className="floating-cast",e.setAttribute("aria-hidden","true"),e.appendChild(document.createElement("div")).appendChild(document.createElement("span")),(t.parentElement||document.body).appendChild(e)),["smoke","is-above","placed-over","opens-at-once"].forEach((function(a){e.classList.toggle(a,t.classList.contains(a))})),t.isConnected&&t.matches(":popover-open")){var a=t.getBoundingClientRect(),n=new DOMMatrix("none"===getComputedStyle(t).transform?void 0:getComputedStyle(t).transform),i={width:t.offsetWidth,height:t.offsetHeight};i.left=a.left+a.width/2-i.width/2-n.e,i.top=a.top+a.height/2-i.height/2-n.f;var r=t.classList.contains("is-on-page"),o=getComputedStyle(t),s=o.getPropertyValue("--glass-clip").trim()||o.clipPath,c=/^polygon\\((.*)\\)$/.exec(s),l="calc(100% + 64px)",u="-64px";if(!c)return e.hidden=!0,t.castTries=(t.castTries||0)+1,void(t.castTries<60&&requestAnimationFrame((function(){window.zaismaCast(t)})));t.castTries=0;var d=c?c[1].replace(/^(nonzero|evenodd),\\s*/,""):"0px 0px, 100% 0px, 100% 100%, 0px 100%";e.firstChild.firstChild.style.clipPath=c?s:"",e.style.clipPath="polygon(evenodd, -64px -64px, "+l+" "+u+", "+l+" "+l+", "+u+" "+l+", "+u+" "+u+", "+d+", "+d.split(",")[0]+", "+u+" "+u+")",e.hidden&&e.classList.contains("is-arriving")&&requestAnimationFrame((function(){e.offsetWidth,e.classList.remove("is-arriving")})),e.hidden=!1,e.classList.toggle("is-on-page",r);var f=t.getAttribute("data-theme-choice");f?e.setAttribute("data-theme-choice",f):e.removeAttribute("data-theme-choice"),e.style.left=i.left+(r?window.scrollX:0)+"px",e.style.top=i.top+(r?window.scrollY:0)+"px",e.style.width=i.width+"px",e.style.height=i.height+"px"}else e.hidden=!0},["toggle","transitionend"].forEach((function(t){document.addEventListener(t,(function(t){t.target.classList&&t.target.classList.contains("floating-pane")&&!t.target.classList.contains("in-place")&&window.zaismaCast(t.target)}),!0)}));window.zaismaFloat=function(t,e){var a=t.classList.contains("in-place"),n=t.classList.contains("placed-over"),i=null;function r(){return"function"==typeof e.anchor?e.anchor():e.anchor}function o(){var a=r(),n=t.offsetParent;if(a&&n){var i=e.anchorRect?e.anchorRect(a):a.getBoundingClientRect(),o=n.getBoundingClientRect(),s=window.zaismaPlace(i,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:o.left,top:o.top,right:o.right,bottom:o.bottom},gapPx:e.gapPx||6,edgePx:e.edgePx||8,isAlwaysBelow:!0});t.style.left=Math.round(s.leftPx-o.left-n.clientLeft)+"px",t.style.top=Math.round(s.topPx-o.top-n.clientTop)+"px",t.classList.toggle("from-start",!s.isAtEnd),e.onPlaced&&e.onPlaced()}}function s(){var i=r();if(!a&&t.matches(":popover-open")&&i){var o=e.anchorRect?e.anchorRect(i):i.getBoundingClientRect(),s=document.documentElement.clientWidth,c=window.innerHeight,l=window.zaismaPageRoom(i),d=o.bottom<0||o.top>c,f=d?o.top+o.height/2-c/2+l.top:l.top,h=d?f+l.bottom-l.top:l.bottom,m=window.zaismaIsOnPage(i,t);if(!i.isConnected||!m&&(o.bottom<0||o.top>c||o.right<0||o.left>s))return void u(!1);e.isAnchorWidth&&(t.style.width=o.width+"px",t.scrollWidth>t.clientWidth&&(t.style.width=t.scrollWidth+"px"));var p,g,v=e.gapPx||6,w=e.edgePx||8;if(t.style.setProperty("--floating-room",Math.max(0,h-f-2*w)+"px"),n)g=o.top+o.height/2-e.lineOf(),p=o.left;else{var y=function(){return window.zaismaPlace(o,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:l.left,top:f,right:l.right,bottom:h},gapPx:v,edgePx:w,isAlwaysBelow:"function"==typeof e.isAlwaysBelow?e.isAlwaysBelow(i):e.isAlwaysBelow})},b=y();if(t.querySelector(".scrolls")){var E=Math.max(0,b.isAbove?o.top-f-v-w:h-o.bottom-v-w);t.style.setProperty("--floating-room",E+"px");var A=e.scrollBox&&e.scrollBox(),x=A?A.scrollHeight-A.clientHeight:0;x>0&&x<12&&t.style.setProperty("--floating-room",Math.ceil(E+x)+"px"),b=y()}g=b.topPx,p=b.leftPx,t.classList.toggle("is-above",b.isAbove),t.classList.toggle("from-start",!b.isAtEnd)}var S=t.offsetWidth,z=t.offsetHeight;g=Math.max(f+w,Math.min(h-z-w,g)),p=Math.max(l.left+w,Math.min(l.right-S-w,p)),t.classList.toggle("is-on-page",m),t.style.top=Math.round(g+(m?window.scrollY:0))+"px",t.style.left=Math.round(p+(m?window.scrollX:0))+"px",window.zaismaFit&&t.querySelectorAll(".scrolls").forEach(window.zaismaFit),e.onPlaced&&e.onPlaced(),window.zaismaCast(t)}}a||(document.querySelectorAll("body > .floating-pane, dialog > .floating-pane").forEach((function(t){t.floatingHome&&!t.floatingHome.isConnected&&(t.floatCast&&t.floatCast.remove(),t.remove())})),t.floatingHome=e.home||r(),t.floatingHome&&t.floatingHome.closest(".smoke")&&t.classList.add("smoke"),(r()&&r().closest("dialog")||document.body).appendChild(t)),a&&!n&&!e.isAnchorWidth&&(t.classList.add("is-hanging"),o(),window.zaismaWatch.resize(o),window.zaismaWatch.fontsIn(o));var c=!(window.CSS&&CSS.supports("overlay","auto")||matchMedia("(prefers-reduced-motion: reduce)").matches),l=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-float"))||.12);function u(n){if(!a&&t.matches(":popover-open")&&!t.classList.contains("is-leaving")){c?(t.classList.add("is-leaving"),t.floatCast&&t.floatCast.classList.add("is-leaving"),t.leaveTimer=setTimeout((function(){t.classList.remove("is-leaving"),t.hidePopover(),window.zaismaCast(t),t.floatCast.classList.remove("is-leaving")}),l)):(t.hidePopover(),window.zaismaCast(t)),e.onToggle&&e.onToggle(!1);var i=e.focusOnClose||r();n&&i&&i.focus()}}return a||(document.addEventListener("pointerdown",(function(a){var n=r();t.matches(":popover-open")&&!t.contains(a.target)&&(!n||!n.contains(a.target))&&(!e.isInside||!e.isInside(a.target))&&u(!1)})),t.addEventListener("keydown",(function(e){"Escape"===e.key&&t.matches(":popover-open")&&(e.preventDefault(),u(!0))})),window.zaismaWatch.resize(s),document.addEventListener("scroll",(function(e){var a=r();if(t.matches(":popover-open")&&i&&a&&(1!==e.target.nodeType||!t.contains(e.target))){var n=a.getBoundingClientRect();(Math.abs(n.top-i.top)>4||Math.abs(n.left-i.left)>4)&&u(!1)}}),{capture:!0,passive:!0}),window.zaismaWatch.scroll(s),window.zaismaWatch.fontsIn(s)),t.floating={open:function(){if(!a){if(!t.matches(":popover-open")){var n=e.home||r()||document.body,o=n.closest("[data-theme-choice]");o&&o!==document.documentElement?t.setAttribute("data-theme-choice",o.getAttribute("data-theme-choice")):t.removeAttribute("data-theme-choice"),t.classList.toggle("smoke",!!n.closest(".smoke")),t.style.setProperty("--glass-hue",getComputedStyle(n).getPropertyValue("--glass-hue")),c&&(window.zaismaCast(t),clearTimeout(t.leaveTimer),[t,t.floatCast].forEach((function(t){t.classList.remove("is-leaving"),t.classList.add("is-arriving")}))),t.showPopover(),c&&function e(a,n){requestAnimationFrame((function(i){if(!(getComputedStyle(t).getPropertyValue("--glass-clip").trim()&&n&&i-n<25)&&a<30)return e(a+1,i);t.classList.remove("is-arriving")}))}(0,0)}var l=r();i=l?l.getBoundingClientRect():null,e.onShown&&e.onShown(),s(),e.onToggle&&e.onToggle(!0)}},close:u,isOpen:function(){return a||t.matches(":popover-open")},place:s}}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.wheels||(t.wheels=!0,function(){var t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,e=864e5,a=3e5,n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=window.matchMedia("(pointer: coarse)").matches?"Swipe each wheel to pick.":"Scroll or type to pick each one.";function r(t){return String(t).padStart(2,"0")}function o(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}window.zaismaWatch.each("[data-wheels]",(function(s){var c=s.getAttribute("data-wheels"),l=s.id,u=s.querySelector(".wheel-button"),d=s.querySelector(".wheel-pick"),f=s.querySelector(".wheel-value"),h=d.classList.contains("in-place"),m=s.querySelector(".field-error"),p=s.querySelector(".field-hint"),g=s.querySelector(".wheel-read"),v=s.querySelector('input[type="hidden"]:not([data-part])'),w="birthday"===c?function(t,e){for(var a=(new Date).getFullYear(),o=[],s=a;s>a-100;s--)o.push(String(s));function c(t,e){return t?new Date(e||2e3,t,0).getDate():31}var l={month:0,day:0,year:0},u=/^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(e.value);function d(){return!!(l.month&&l.day&&l.year)}return u&&(l.month=Number(u[2]),l.day=Number(u[3]),l.year=Math.max(0,o.indexOf(u[1])+1)),{parts:["month","day","year"],at:l,hasBlank:!0,rows:function(t){if("month"===t)return["Month"].concat(n);if("year"===t)return["Year"].concat(o);for(var e=["Day"],a=1;a<=c(l.month,l.year?Number(o[l.year-1]):0);a++)e.push(String(a));return e},set:function(t,e){return l[t]=e,"day"===t?[]:["day"]},isComplete:d,typed:function(t,e,a){if("year"!==t||!/^\\d{2}$/.test(e))return-1;for(var n=1;n<a.length;n++)if(a[n].slice(2)===e)return n;return-1},firstPart:function(){return d()||!l.month?"month":l.day?"year":"day"},words:function(){if(!d())return{shown:null,read:i,sent:""};var t=n[l.month-1],e=o[l.year-1];return{shown:t.slice(0,3)+" "+l.day+", "+e,read:t+" "+l.day+", "+e,sent:e+"-"+r(l.month)+"-"+r(l.day)}}}}(0,v):"date-time"===c?function(t,n,i){for(var s=[],c=[],l=["AM","PM"],u=1;u<=12;u++)s.push(String(u));for(var d=0;d<60;d+=5)c.push(r(d));var f=t.hasAttribute("data-minimum-at")?new Date(t.getAttribute("data-minimum-at")):new Date;isNaN(f)&&(f=new Date);for(var h=o(f=new Date(Math.ceil(f.getTime()/a)*a)),m=[],p=0;p<366;p++)m.push(new Date(h.getFullYear(),h.getMonth(),h.getDate()+p));var g=o(new Date).getTime(),v=(new Date).getFullYear(),w=new Intl.DateTimeFormat("en-US",{weekday:"short",month:"short",day:"numeric"}),y=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),b=m.map((function(t){var a=Math.round((t.getTime()-g)/e);return 0===a?"Today":1===a?"Tomorrow":(t.getFullYear()===v?w:y).format(t)}));function E(t,e){try{var a=new Intl.DateTimeFormat("en-US",{timeZoneName:e}).formatToParts(t).find((function(t){return"timeZoneName"===t.type}));return a?a.value:""}catch{return""}}function A(t){var e=-t.getTimezoneOffset(),a=e<0?"-":"+",n=Math.abs(e);return t.getFullYear()+"-"+r(t.getMonth()+1)+"-"+r(t.getDate())+"T"+r(t.getHours())+":"+r(t.getMinutes())+a+r(Math.floor(n/60))+":"+r(n%60)}var x={day:0,hour:0,minute:0,half:0},S=!1;function z(t){var e=m[t.day];return new Date(e.getFullYear(),e.getMonth(),e.getDate(),(t.hour+1)%12+12*t.half,5*t.minute)}function L(t){return{day:Math.max(0,Math.min(m.length-1,Math.round((o(t).getTime()-h.getTime())/e))),hour:(t.getHours()%12||12)-1,minute:Math.floor(t.getMinutes()/5),half:t.getHours()<12?0:1}}function M(t){Object.keys(t).forEach((function(e){x[e]=t[e]}))}var T=n.value?new Date(n.value):null,P=T&&!isNaN(T)&&i.classList.contains("is-marked")?T:null;return T&&!isNaN(T)&&(M(L(T<f?f:T)),S=!0),{parts:["day","hour","minute","half"],at:x,hasBlank:!1,rows:function(t){return"day"===t?b:"hour"===t?s:"minute"===t?c:l},set:function(t,e){return x[t]=e,S=!0,P=null,z(x)<f?(M(L(f)),"all"):[]},isComplete:function(){return S},opening:function(){if(S)return!1;var t=new Date;return t.setMinutes(60,0,0),M(L(t<f?f:t)),S=!0,!0},firstPart:function(){return"day"},words:function(){var t=P||z(x);if(!S)return{shown:null,read:"",sent:""};var a=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),n=o(t),i=Math.round((n.getTime()-g)/e),r=0===i?"Today":1===i?"Tomorrow":n.toLocaleDateString("en-US",n.getFullYear()===v?{month:"short",day:"numeric"}:{month:"short",day:"numeric",year:"numeric"}),s=E(t,"short"),c=E(t,"long");return{shown:r+", "+a+(s?" "+s:""),read:t.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})+" at "+a+(c?", "+c:""),sent:A(t)}}}}(s,v,u):function(t){var e=[],a={},n={};return Array.prototype.forEach.call(t.querySelectorAll(".wheel[data-part]"),(function(t){var i=t.getAttribute("data-part");e.push(i);try{a[i]=JSON.parse(t.getAttribute("data-rows"))||[]}catch{a[i]=[]}n[i]=Math.max(0,Number(t.getAttribute("data-picked"))||0)})),{parts:e,at:n,hasBlank:!1,rows:function(t){return a[t].map((function(t){return t[0]}))},set:function(t,e){return n[t]=e,[]},isComplete:function(){return!0},firstPart:function(){return e[0]},words:function(){var t=e.map((function(t){return(a[t][n[t]]||[""])[0]})).join(" "),i={};return e.forEach((function(t){i[t]=(a[t][n[t]]||["",""])[1]})),{shown:t,read:t,sent:i}}}}(s),y=f.textContent,b={};w.parts.forEach((function(t){b[t]={el:s.querySelector('.wheel[data-part="'+t+'"]'),count:0}}));var E=d.querySelector(".wheels"),A=window.zaismaFloat(d,{anchor:u,home:s,lineOf:function(){return E.parentElement.offsetTop+E.offsetTop+E.offsetHeight/2},onToggle:function(t){u.setAttribute("aria-expanded",String(t))}});function x(){return A.isOpen()}function S(t){var e=b[t],a=w.at[t];Array.prototype.forEach.call(e.el.children,(function(t,e){t.setAttribute("aria-selected",String(e===a))})),e.el.setAttribute("aria-activedescendant",l+"-"+t+"-"+a)}function z(t){var e=b[t],a=w.rows(t),n=document.createDocumentFragment();e.count=a.length,e.el.textContent="",a.forEach((function(e,a){var i=document.createElement("div");i.className="flush-row compact quiet",i.setAttribute("role","option"),i.id=l+"-"+t+"-"+a,i.textContent=e,i.setAttribute("data-label",e),w.hasBlank&&0===a&&i.classList.add("blank"),n.appendChild(i)})),e.el.appendChild(n),e.isWired||(e.isWired=!0,e.el.addEventListener("click",(function(a){var n=a.target.closest('[role="option"]');n&&n.parentElement===e.el&&T(t,Array.prototype.indexOf.call(e.el.children,n),!0)}))),w.at[t]>e.count-1&&(w.at[t]=e.count-1),S(t)}function L(t){var e=b[t].el.firstElementChild;return e&&e.offsetHeight||36}function M(e){w.parts.forEach((function(a){b[a].el.scrollTo({top:w.at[a]*L(a),behavior:e&&!t?"smooth":"auto"})}))}function T(e,a,n){a=Math.max(0,Math.min(b[e].count-1,a)),b[e].el.scrollTo({top:a*L(e),behavior:n&&!t?"smooth":"auto"}),C(e,a)}var P=w.isComplete();function C(t,e){if(w.at[t]!==e||!P){var a=w.set(t,e);P=!0,u.classList.contains("is-marked")&&w.isComplete()&&(u.classList.remove("is-marked"),m.hidden=!0,p&&(p.hidden=!1)),"all"===a?(w.parts.forEach(S),M(!0)):(S(t),a.forEach((function(t){z(t),b[t].el.scrollTop=w.at[t]*L(t)}))),k()}}function k(){var t=w.words();g.textContent=t.read,f.textContent=null===t.shown?y:t.shown,u.classList.toggle("set",null!==t.shown),v&&(v.value="string"==typeof t.sent?t.sent:""),"object"==typeof t.sent&&Object.keys(t.sent).forEach((function(e){var a=s.querySelector('input[type="hidden"][data-part="'+e+'"]');a&&(a.value=t.sent[e])}))}function W(t){w.opening&&w.opening()&&(P=!0,w.parts.forEach(S),k()),A.open(),M(!1),!t&&b[w.firstPart()].el.focus({preventScroll:!0})}function R(t){A.close(t)}w.parts.forEach((function(t){var e=b[t],a=null,n="",i=0;z(t),e.el.addEventListener("scroll",(function(){clearTimeout(a),a=setTimeout((function(){x()&&C(t,Math.round(e.el.scrollTop/L(t)))}),110)}),{passive:!0}),e.el.addEventListener("keydown",(function(a){var r=w.at[t],o=a.key,s={ArrowDown:1,ArrowUp:-1,PageDown:5,PageUp:-5}[o];if(s)return T(t,r+s,!0),void a.preventDefault();if("Home"===o)return T(t,w.hasBlank?1:0,!0),void a.preventDefault();if("End"===o)return T(t,e.count-1,!0),void a.preventDefault();if("Enter"===o&&w.isComplete())return R(!0),void a.preventDefault();if(1===o.length&&!a.metaKey&&!a.ctrlKey){var c=Date.now();n=c-i>900?o.toLowerCase():n+o.toLowerCase(),i=c;for(var l=w.rows(t),u=-1,d=w.hasBlank?1:0;d<l.length&&u<0;d++)0===l[d].toLowerCase().indexOf(n)&&(u=d);u<0&&w.typed&&(u=w.typed(t,n,l)),u>=0&&(T(t,u,!0),a.preventDefault())}}))})),u.addEventListener("click",(function(){x()?R(!1):W()})),h&&(w.opening&&!w.isComplete()?W(!0):requestAnimationFrame((function(){M(!1)}))),k();var F=s.closest("form");F&&s.hasAttribute("data-required")&&F.addEventListener("submit",(function(t){w.isComplete()||(t.preventDefault(),u.classList.add("is-marked"),m.hidden=!1,p&&(p.hidden=!0),W())}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.charts||(t.charts=!0,function(){function t(t,e,n){e.forEach((function(t,e){t.classList.toggle("is-focused",e===n)}));var i=t.querySelector("[data-chart-scroll]"),r=e[n];if(i&&r){var o=i.getBoundingClientRect(),s=r.getBoundingClientRect();s.left<o.left?i.scrollLeft-=o.left-s.left:s.right>o.right&&(i.scrollLeft+=s.right-o.right),t.matches(":focus-visible")&&requestAnimationFrame((function(){a(t,r)}))}}function e(t){return Array.prototype.slice.call(t.querySelectorAll(".chart-hit"))}function a(t,e){var a=t.querySelector(":scope > .chart-tip");if(a){if(t.classList.toggle("shows-tip",!!e),!e)return void a.classList.remove("is-shown");a.querySelector("b").textContent=e.getAttribute("data-tip-amount"),a.querySelector("span").textContent=e.getAttribute("data-tip-label");var n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=getComputedStyle(e),o=!!e.closest(".is-bars");a.style.setProperty("--tip-left",i.left-n.left+i.width*parseFloat(r.getPropertyValue("--point-left"))/100+"px"),a.style.setProperty("--tip-top",i.top-n.top+i.height*parseFloat(r.getPropertyValue("--point-top"))/100+"px"),a.classList.toggle("is-end",e.classList.contains("is-end")),a.classList.toggle("is-middle",o&&!e.classList.contains("is-end")&&!e.classList.contains("is-start")),a.classList.toggle("is-high",e.classList.contains("is-high")),a.classList.add("is-shown")}}window.zaismaWatch.each("[data-chart-scroll]",(function(t){t.scrollLeft=t.scrollWidth})),document.addEventListener("pointerover",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;e&&a(e.closest(".chart"),e)})),document.addEventListener("pointerout",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;if(e&&!(t.relatedTarget instanceof Element&&t.relatedTarget.closest(".chart-hit"))){var n=e.closest(".chart"),i=n.querySelector(".chart-hit.is-pointed")||(n.matches(":focus-visible")?n.querySelector(".chart-hit.is-focused"):null);a(n,i)}})),document.querySelectorAll("[data-chart-scroll]").forEach((function(t){t.addEventListener("scroll",(function(){var e=t.closest(".chart");a(e,e.querySelector(".chart-hit.is-pointed"))}),{passive:!0})})),document.addEventListener("focusout",(function(t){var e=t.target instanceof Element&&t.target.matches("[data-chart-points]")?t.target:null;e&&a(e,e.querySelector(".chart-hit.is-pointed"))})),document.querySelectorAll(".chart-hit.is-pointed").forEach((function(t){a(t.closest(".chart"),t)})),document.addEventListener("focusin",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n);i.length&&!n.querySelector(".chart-hit.is-focused")&&t(n,i,i.length-1)}})),document.addEventListener("keydown",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n),r=i.indexOf(n.querySelector(".chart-hit.is-focused")),o=r;if("ArrowRight"===a.key||"ArrowUp"===a.key)o=Math.min(i.length-1,r+1);else if("ArrowLeft"===a.key||"ArrowDown"===a.key)o=Math.max(0,r-1);else if("Home"===a.key)o=0;else{if("End"!==a.key)return;o=i.length-1}a.preventDefault(),t(n,i,o)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["long-fields"]||(t["long-fields"]=!0,function(){function t(t){var e=getComputedStyle(t),a=parseFloat(e.lineHeight)||24,n=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom);t.style.height="auto",t.classList.remove("is-scrolling");var i=a*(Number(t.getAttribute("rows"))||2)+n,r=12*a+n;t.classList.toggle("is-scrolling",t.scrollHeight>r+1),t.style.height=Math.max(i,Math.min(t.scrollHeight,r))+"px";var o=Number(t.getAttribute("maxlength")),s=document.getElementById(t.id+"-count");!o||!s||(s.hidden=t.value.length<.8*o,s.textContent=t.value.length.toLocaleString("en-US")+" of "+o.toLocaleString("en-US"))}window.zaismaWatch.each("textarea[data-long-field]",t),window.zaismaWatch.whenRead((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)})),document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("textarea[data-long-field]")&&t(e.target)})),window.zaismaWatch.fontsIn((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sliders||(t.sliders=!0,function(){function t(t){var e=t.closest(".slider"),a=Number(t.min),n=Number(t.max),i=e.querySelector("output"),r=i.getAttribute("data-unit");e.style.setProperty("--fill",((Number(t.value)-a)/Math.max(1e-9,n-a)).toFixed(4));var o=e.querySelector(".slider-slab");o&&o.redrawCut&&o.redrawCut(),i.textContent=Number(t.value).toLocaleString("en-US")+("%"===r?"%":" "+r)}document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("input[data-slider]")&&t(e.target)})),window.addEventListener("pageshow",(function(){document.querySelectorAll("input[data-slider]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["color-fields"]||(t["color-fields"]=!0,function(){function t(t){return"#"+t.map((function(t){return t.toString(16).padStart(2,"0")})).join("").toUpperCase()}function e(t,e,a){function n(n){var i=(n+t/60)%6;return Math.round(255*(a-a*e*Math.max(0,Math.min(i,4-i,1))))}return[n(5),n(3),n(1)]}function a(t){var e=parseInt(t.slice(1),16),a=(e>>16)/255,n=(e>>8&255)/255,i=(255&e)/255,r=Math.max(a,n,i),o=r-Math.min(a,n,i),s=0;return o&&(s=r===a?(n-i)/o%6:r===n?(i-a)/o+2:(a-n)/o+4,(s*=60)<0&&(s+=360)),[s,r?o/r:0,r]}function n(t){var e=/^\\s*(#[0-9a-f]{6})\\s*$/i.exec(t||"");return e?e[1].toUpperCase():null}var i=10;window.zaismaWatch.each("[data-color-field]",(function(r){var o=r.querySelector(".color-button"),s=r.querySelector(".color-pick"),c=r.querySelector(".color-square"),l=r.querySelector(".color-knob"),u=r.querySelector(".color-side .cut-field input"),d=r.querySelector(".color-side .slider-input"),f=r.querySelector(':scope > input[type="hidden"]'),h=o.querySelector(".color-value"),m=o.querySelector(".color-chip"),p=r.querySelector(".color-none button"),g=a(n(f.value)||r.getAttribute("data-color-hex")),v=!!p&&!n(f.value),w=!1,y=window.zaismaFloat(s,{anchor:o,home:r,isAnchorWidth:s.classList.contains("in-place"),onToggle:function(t){o.setAttribute("aria-expanded",String(t)),t&&b()}});function b(a){var n=t(e(g[0],g[1],g[2])),o=v?"var(--clear-swatch)":n;[r,s].forEach((function(a){a.style.setProperty("--color-picked",o),a.style.setProperty("--color-full",t(e(g[0],g[1],1))),a.style.setProperty("--color-brightness",String(g[2]))}));var p=c.clientWidth-20,y=c.clientHeight-20,b=function(t,e){var a=c.cutCorners||[0,0,0,0],n=(l.firstElementChild.cutCorners||[5])[0],r=[c.clientWidth,c.clientHeight];return[[1,1],[-1,1],[-1,-1],[1,-1]].forEach((function(o,s){var c=o[0]>0?t-i:r[0]-t-i,l=o[1]>0?e-i:r[1]-e-i,u=a[s]-n-(c+l);a[s]>n&&u>0&&(t+=o[0]*u/2,e+=o[1]*u/2)})),[t,e]}(i+g[0]/360*p,i+(1-g[1])*y);l.style.left=b[0]+"px",l.style.top=b[1]+"px",c.setAttribute("aria-valuetext",n),m.style.setProperty("--swatch",o),h.textContent=v?"None":n,f.value=v?"":n,a||(u.value=n);var E=Math.round(100*g[2]);Number(d.value)!==E&&(d.value=String(E),w=!0,d.dispatchEvent(new Event("input",{bubbles:!0})),w=!1)}function E(){r.dispatchEvent(new CustomEvent("zaisma:color",{bubbles:!0,detail:{colorValue:f.value}}))}function A(t){return Math.max(0,Math.min(1,t))}function x(t){var e=c.getBoundingClientRect();g[0]=359.99*A((t.clientX-e.left-i)/(e.width-20)),g[1]=1-A((t.clientY-e.top-i)/(e.height-20)),v=!1,b(),E()}c.addEventListener("pointerdown",(function(t){c.setPointerCapture(t.pointerId),c.classList.add("is-held"),x(t),c.focus({preventScroll:!0}),t.preventDefault()})),c.addEventListener("pointermove",(function(t){c.hasPointerCapture(t.pointerId)&&x(t)})),c.addEventListener("pointerup",(function(){c.classList.remove("is-held")})),c.addEventListener("pointercancel",(function(){c.classList.remove("is-held")})),c.addEventListener("keydown",(function(t){var e=t.shiftKey?30:5,a=t.shiftKey?.2:.05;if("ArrowLeft"===t.key)g[0]=Math.max(0,g[0]-e);else if("ArrowRight"===t.key)g[0]=Math.min(359.99,g[0]+e);else if("ArrowUp"===t.key)g[1]=Math.min(1,g[1]+a);else{if("ArrowDown"!==t.key)return;g[1]=Math.max(0,g[1]-a)}t.preventDefault(),v=!1,b(),E()})),d.addEventListener("input",(function(){w||(g[2]=Number(d.value)/100,v=!1,b(),E())})),u.addEventListener("input",(function(){var t=function(t){var e=String(t||"").replace(/[^0-9a-f]/gi,"");return 3===e.length&&(e=e.replace(/./g,"$&$&")),6===e.length?"#"+e.toUpperCase():null}(u.value);t&&(g=a(t),v=!1,b(!0),E())})),u.addEventListener("blur",(function(){b()})),p&&p.addEventListener("click",(function(){v=!0,b(),E()})),o.addEventListener("click",(function(){y.isOpen()?y.close(!1):y.open()})),s.classList.contains("in-place")&&y.open(),b()}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["world-pane"]||(t["world-pane"]=!0,function(){var t=0;function e(e){var a=document.querySelector("[data-world-pane]"),n=document.querySelector(".world-stage");if(a&&n&&!n.classList.contains("is-framed")&&(window.innerWidth!==t||e)){if(t=window.innerWidth,window.innerWidth>760||window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)").matches)return void(a.style.marginTop="");var i=Array.prototype.find.call(a.querySelectorAll("h1, h2"),(function(t){return t.getClientRects().length>0})),r=a.parentElement.querySelector("header.top");a.style.marginTop="0px";var o=(i?i.getBoundingClientRect().bottom:a.getBoundingClientRect().top+120)-a.getBoundingClientRect().top+24,s=r?r.offsetTop+r.offsetHeight+12:12;a.style.marginTop=Math.round(Math.max(s,window.innerHeight-o))+"px"}}window.zaismaPlaceWorldPane=e,window.zaismaWatch.each("[data-world-pane]",(function(t){e(!0),window.zaismaWatch.size(t,(function(){e(!0)}))})),window.zaismaWatch.whenRead((function(){e(!0)})),window.addEventListener("resize",(function(){e()})),window.zaismaWatch.fontsIn((function(){e(!0)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["account-link"]||(t["account-link"]=!0,/(^|; )(__Host-)?zaisma_in=1/.test(document.cookie)&&window.zaismaWatch.each("header.top[data-account-from-cookie] .end > a:is(.run-wrap,.cut-btn)",(function(t){t.href="/account";var e=t.querySelector(".face > span:not([class])");e&&(e.textContent="Account")})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["hidden-amounts"]||(t["hidden-amounts"]=!0,function(){var t="zaisma.payments_amounts_hidden",e=!1;try{e="yes"===localStorage.getItem(t)}catch{}var a="#payments .number-amount, [data-amount]",n="[data-amounts-toggle]";function i(t){t.hasAttribute("data-amount")||t.setAttribute("data-amount",t.textContent),t.textContent=e?"\u2022\u2022\u2022":t.getAttribute("data-amount")}function r(t){t.setAttribute("aria-pressed",String(e));var a=t.querySelector("span:not([class])");a&&(a.textContent=e?"Show amounts":"Hide amounts")}window.zaismaWatch.each(a,i),window.zaismaWatch.each(n,r),document.addEventListener("click",(function(o){if(o.target.closest&&o.target.closest("[data-amounts-toggle]")){e=!e;try{localStorage.setItem(t,e?"yes":"no")}catch{}document.querySelectorAll(a).forEach(i),document.querySelectorAll(n).forEach(r)}}))}())}();` };
11487
- var MINIFIED_LOOK_SCRIPT = { sourceSha256: "0877bffa5a0e9cb51a0d7d4cacce5ce14590294f56e53b3f3e6951d072fd2b16", minifiedText: `(function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["measured-glass"]||(t["measured-glass"]=!0,function(){function t(t){return t.closest(":has(> .backdrop)")}function e(t){var e=t&&t.querySelector(":scope > .backdrop[data-adapts-glass][data-glass-kind], :scope > .backdrop .backdrop[data-adapts-glass][data-glass-kind]");return e?{isSmoked:"smoked"===e.getAttribute("data-glass-kind"),tint:e.getAttribute("data-glass-tint")||""}:null}function a(t,e){t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.hasAttribute("data-theme-choice")||t.setAttribute("data-theme-choice","light"),e.tint&&t.style.setProperty("--glass-tint",e.tint)}window.zaismaWatch&&(window.zaismaWatch.eachArriving("[data-adapts-glass][data-glass-kind]",(function(n){var i=n.parentElement,r=e(i);i&&r&&function(t,e){void 0===t.ownThemeChoice&&(t.ownThemeChoice=t.getAttribute("data-theme-choice")),t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice",t.ownThemeChoice||"light")}(i,r),document.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(n){var i=e(t(n));i&&a(n,i)}))})),window.zaismaWatch.eachArriving("[data-glass]:not([data-cut-line])",(function(n){var i=e(t(n));i&&a(n,i)})))}())})(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["header-fit"]||(t["header-fit"]=!0,function(){var t=window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function e(t,e){t.classList.toggle("has-search-button",e>0),t.classList.toggle("has-tight-tabs",e>1),t.classList.toggle("has-icon-tabs",e>2),t.classList.toggle("has-icon-sign-in",e>3)}function a(t,a){e(t,a);var n=getComputedStyle(t),i=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);return Array.prototype.forEach.call(t.children,(function(t){var e=getComputedStyle(t);if(!t.classList.contains("edge")&&"none"!==e.display){var a=t.querySelector(":scope > .switch-well .tab-switch");i+=parseFloat(e.marginLeft)+parseFloat(e.marginRight)+(t.matches(".find")?parseFloat(e.minWidth):Math.max(t.offsetWidth,a?function(t){var e=0;return Array.prototype.forEach.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){e=Math.max(e,t.offsetLeft+t.offsetWidth)})),e+parseFloat(getComputedStyle(t).paddingRight)}(a):0))}})),i}function n(n){if(n.clientWidth&&(!n.checkVisibility||n.checkVisibility({contentVisibilityAuto:!0}))){if(t.matches&&n.matches("body > .top"))return void e(n,1);for(var i=n.clientWidth,r=n.neededWidths||(n.neededWidths=[]),o=n.querySelector(".find"),s=!!o&&o.contains(document.activeElement),c=n.classList.contains("searching"),l=!1,d=0;d<4;d++){if(void 0===r[d]){if(s)return;l||(l=!0,n.classList.remove("searching"),n.classList.add("is-measuring"),n.style.width="max-content"),r[d]=a(n,d)}if(r[d]<=i)break}l&&(n.style.width="",n.classList.remove("is-measuring"),c&&n.classList.add("searching")),s&&d>0&&!n.classList.contains("typing-search")&&n.classList.add("searching"),e(n,d)}}function i(e){if(!e.fitToRoom){e.fitToRoom=function(){n(e)},n(e),window.zaismaWatch.size(e,e.fitToRoom);var a=e.querySelector(".tab-switch");a&&window.zaismaWatch.size(a,i),window.zaismaWatch.fontsIn(i),t.addEventListener("change",i)}function i(){e.neededWidths=null,n(e)}}window.zaismaWatch.each("header.top",i),window.zaismaWatch.arriving((function(){var t=document.querySelector("body > header.top");t&&t.nextSibling&&i(t)}))}())}(),function(){var t,e=window.zaismaPieces=window.zaismaPieces||{};e.install||(e.install=!0,t=null,window.addEventListener("beforeinstallprompt",(function(e){e.preventDefault(),t=e,document.querySelectorAll("[data-install-zaisma]").forEach((function(t){t.hidden=!1}))})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-install-zaisma]");!a||!t||(t.prompt(),t=null,a.hidden=!0)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.tables||(t.tables=!0,function(){function t(t){var e=t.querySelector(":scope > table > thead"),a=t.querySelector(":scope > table > tbody > tr > th, :scope > table > thead > tr > th:first-child");t.style.setProperty("--shown-width",t.clientWidth+"px"),t.style.setProperty("--shown-height",t.clientHeight+"px"),e&&t.style.setProperty("--head-height",e.offsetHeight+"px"),a&&t.style.setProperty("--row-head-width",a.offsetWidth+"px")}var e="function"==typeof ResizeObserver?new ResizeObserver((function(e){e.forEach((function(e){var a=e.target.closest(".table-scroll");a&&t(a)}))})):null;window.zaismaWatch.each(".table-scroll",(function(a){if(t(a),e){e.observe(a);var n=a.querySelector(":scope > table");n&&e.observe(n)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.backdrop||(t.backdrop=!0,function(){var t="float h1(float n){return fract(sin(n*127.1)*43758.5453);}\\nfloat h2(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}\\nvec2 h22(vec2 p){p=vec2(dot(p,vec2(127.1,311.7)),dot(p,vec2(269.5,183.3)));return fract(sin(p)*43758.5453);}\\nfloat noise(vec2 p){vec2 i=floor(p),f=fract(p);vec2 u=f*f*(3.0 - 2.0*f);\\n return mix(mix(h2(i),h2(i + vec2(1.0,0.0)),u.x),mix(h2(i + vec2(0.0,1.0)),h2(i + vec2(1.0,1.0)),u.x),u.y);}\\nfloat fbm(vec2 p){float v=0.0,a=0.5;for(int i=0;i<5;i++){v +=a*noise(p);p=p*2.03 + 1.7;a*=0.5;}return v;}\\nfloat motes(vec2 p,float size,float chance,float seed){\\n vec2 id=floor(p),f=fract(p)- 0.5;vec2 r=h22(id + seed)- 0.5;\\n float on=step(1.0 - chance,h2(id + seed*1.3));\\n float d=length(f - r*0.7);\\n return on*smoothstep(size,0.0,d);\\n}\\n",e="uniform vec2 zaismaViewOffset;\\nout vec4 zaismaFragColor;\\nvoid main() { vec4 color = vec4(0.0); mainImage(color, gl_FragCoord.xy + zaismaViewOffset); zaismaFragColor = vec4(color.rgb, 1.0); }",a="/js/zaisma-shader.8fcb55f6a1be6e26.js",n="zaisma-shader-parts",i=null,r=!1;try{var o=JSON.parse(localStorage.getItem(n));o&&o.path===a&&(i=o.parts)}catch{}function s(){if(!i&&!r){r=!0;var t=document.createElement("script");t.src=a,document.head.appendChild(t)}}window.zaismaShaderPartsArrived=function(t){i=t;try{localStorage.setItem(n,JSON.stringify({path:a,parts:t}))}catch{}y()};var c="#version 300 es\\nprecision highp float;\\nprecision highp int;\\nprecision highp sampler2D;\\nuniform vec3 iResolution;\\nuniform float iTime;\\nuniform float iTimeDelta;\\nuniform int iFrame;\\nuniform float iQuality;\\nuniform sampler2D iChannel0;\\nuniform sampler2D iChannel1;\\nuniform sampler2D iChannel2;\\nuniform sampler2D iChannel3;\\nuniform vec3 iChannelResolution[4];\\nuniform vec4 iGlassPanes[16];\\nuniform int iGlassPaneCount;\\n#line 1\\n",l=6e4,d=33,u=67,f=window.matchMedia("(prefers-reduced-motion: reduce)"),h=[],m=0,p=!1,g=!1,v=!0,w=!1;function y(){p||(p=!0,g=!0,requestAnimationFrame(lt))}function b(t){var e=t.trim().replace("#","");3===e.length&&(e=e.split("").map((function(t){return t+t})).join(""));var a=parseInt(e,16)||0;return[(a>>16&255)/255,(a>>8&255)/255,(255&a)/255]}function E(t){var e=getComputedStyle(t);return{base:b(e.getPropertyValue("--backdrop-base")),a:b(e.getPropertyValue("--backdrop-a")),b:b(e.getPropertyValue("--backdrop-b")),c:b(e.getPropertyValue("--backdrop-c")),isDark:/dark/.test(e.colorScheme||"")}}var x=!0,A=!0,S=[];function L(){A=!0,y()}function T(t){return t.closest(":has(> .backdrop)")}function z(t){var e=function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return.2126*e(t[0])+.7152*e(t[1])+.0722*e(t[2])}function k(t,e){var a=z(t),n=z(e);return(Math.max(a,n)+.05)/(Math.min(a,n)+.05)}function P(t,e,a){return[t[0]+(e[0]-t[0])*a,t[1]+(e[1]-t[1])*a,t[2]+(e[2]-t[2])*a]}function M(t,e){for(var a=e.slice().sort((function(t,e){return z(t)-z(e)})),n=t.isSmoked?a[Math.floor(.75*a.length)]:a[Math.floor(.25*a.length)],i=.3;i<=.95;i+=.02){var r=P(n,t.base,i),o=t.isSmoked?[247,249,252]:[20,23,28];if(k(r,t.isSmoked?P(r,o,.7):[89,96,106])>=4.5&&k(r,o)>=6)return i}return.95}function C(t,e){t.glassPick!==e&&(t.glassPick=e,t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice","light"),t.style.setProperty("--glass-tint",e.tint))}function R(t,e){e.length&&D(t,function(t){var e=t.reduce((function(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}),[0,0,0]).map((function(e){return e/t.length})),a={isSmoked:!1,base:P([255,255,255],e,.1)},n={isSmoked:!0,base:P([12,15,20],e,.3)},i=M(a,t),r=M(n,t),o=i<=r?a:n;return{isSmoked:o.isSmoked,tint:"rgba("+o.base.map(Math.round).join(", ")+", "+Math.min(i,r).toFixed(2)+")"}}(e))}function D(t,e){var a=t.canvas.parentElement;a&&(a.shownGlass=e,x=!0,void 0===a.ownThemeChoice&&(a.ownThemeChoice=a.getAttribute("data-theme-choice")),a.classList.toggle("smoke",e.isSmoked),e.isSmoked?a.removeAttribute("data-theme-choice"):a.setAttribute("data-theme-choice",a.ownThemeChoice||"light"),a.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(t){T(t)===a&&C(t,a.shownGlass)})))}function W(t){for(var e=[],a=4*Math.max(1,Math.floor(t.length/4/2400)),n=0;n<t.length;n+=a)e.push([t[n],t[n+1],t[n+2]]);return e}function q(t){var e=t.canvas.contentWindow;if(e)try{e.postMessage({panes:[],isIdle:F},new URL(t.canvas.src).origin)}catch{}}var F=!1,I=0;function H(){F=!0,O()}function O(){h.forEach((function(t){"frame"===t.kind&&q(t)}))}var B=null,U=!1;function _(){if(B)return B.isLost?null:B;if(U)return null;var t=document.createElement("canvas");t.width=2,t.height=2;var e=t.getContext("webgl2",{antialias:!1,depth:!1,stencil:!1,alpha:!1,powerPreference:"low-power"});if(!e)return U=!0,null;function a(){e.bindVertexArray(e.createVertexArray()),e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),B.vertex=e.createShader(e.VERTEX_SHADER),e.shaderSource(B.vertex,"#version 300 es\\nin vec2 corner;\\nvoid main() { gl_Position = vec4(corner, 0.0, 1.0); }"),e.compileShader(B.vertex),B.upscale={status:"compiling",names:["zaismaDrawn","zaismaDrawnSize","zaismaCanvasSize"]},N(B.upscale,"#version 300 es\\nprecision highp float;\\nuniform sampler2D zaismaDrawn;\\nuniform vec2 zaismaDrawnSize;\\nuniform vec2 zaismaCanvasSize;\\nout vec4 zaismaFragColor;\\nvec3 zaismaTap(vec2 texel) {\\n return texture(zaismaDrawn, clamp(texel, vec2(0.5), zaismaDrawnSize - 0.5) / vec2(textureSize(zaismaDrawn, 0))).rgb;\\n}\\nvoid main() {\\n vec2 at = gl_FragCoord.xy / zaismaCanvasSize * zaismaDrawnSize;\\n vec2 middle = floor(at - 0.5) + 0.5, f = at - middle;\\n vec2 w0 = f * (-0.5 + f * (1.0 - 0.5 * f)), w1 = 1.0 + f * f * (-2.5 + 1.5 * f), w2 = f * (0.5 + f * (2.0 - 1.5 * f)), w3 = f * f * (-0.5 + 0.5 * f);\\n vec2 w12 = w1 + w2, at0 = middle - 1.0, at3 = middle + 2.0, at12 = middle + w2 / w12;\\n vec3 color = (zaismaTap(vec2(at0.x, at0.y)) * w0.x + zaismaTap(vec2(at12.x, at0.y)) * w12.x + zaismaTap(vec2(at3.x, at0.y)) * w3.x) * w0.y\\n + (zaismaTap(vec2(at0.x, at12.y)) * w0.x + zaismaTap(vec2(at12.x, at12.y)) * w12.x + zaismaTap(vec2(at3.x, at12.y)) * w3.x) * w12.y\\n + (zaismaTap(vec2(at0.x, at3.y)) * w0.x + zaismaTap(vec2(at12.x, at3.y)) * w12.x + zaismaTap(vec2(at3.x, at3.y)) * w3.x) * w3.y;\\n vec3 north = zaismaTap(at + vec2(0.0, 1.0)), south = zaismaTap(at - vec2(0.0, 1.0)), east = zaismaTap(at + vec2(1.0, 0.0)), west = zaismaTap(at - vec2(1.0, 0.0));\\n vec3 low = min(min(min(north, south), min(east, west)), color), high = max(max(max(north, south), max(east, west)), color);\\n vec3 weight = -sqrt(clamp(min(low, 2.0 - high) / max(high, vec3(0.0001)), 0.0, 1.0)) / 7.0;\\n zaismaFragColor = vec4(clamp((color + (north + south + east + west) * weight) / (1.0 + 4.0 * weight), 0.0, 1.0), 1.0);\\n}"),B.drawn={texture:e.createTexture(),framebuffer:e.createFramebuffer(),widthPx:0,heightPx:0}}return B={board:t,gl:e,programs:{},isLost:!1,parallel:e.getExtension("KHR_parallel_shader_compile")},a(),t.addEventListener("webglcontextlost",(function(t){t.preventDefault(),B.isLost=!0})),t.addEventListener("webglcontextrestored",(function(){B.programs={},B.zaisma=null,h.forEach((function(t){t.parts=null})),B.isLost=!1,a(),h.forEach((function(t){t.isDrawn=!1})),y()})),B}function N(t,e){var a=B.gl,n=a.createShader(a.FRAGMENT_SHADER),i=a.createProgram();a.shaderSource(n,e),a.compileShader(n),a.attachShader(i,B.vertex),a.attachShader(i,n),a.bindAttribLocation(i,0,"corner"),a.linkProgram(i),t.pending={program:i,fragment:n}}function V(t){if("compiling"!==t.status)return"ready"===t.status;var e=B.gl,a=t.pending;return!(B.parallel&&!w&&!e.getProgramParameter(a.program,B.parallel.COMPLETION_STATUS_KHR))&&(e.getProgramParameter(a.program,e.LINK_STATUS)?(t.program=a.program,t.status="ready",t.at={},t.names.forEach((function(n){t.at[n]=e.getUniformLocation(a.program,n)}))):(console.warn("Backdrop shader:",e.getShaderInfoLog(a.fragment)||e.getProgramInfoLog(a.program)),e.deleteProgram(a.program),t.status="failed"),e.deleteShader(a.fragment),"compiling"!==t.status&&(t.pending=null),"ready"===t.status)}function G(a,n){if(a.programs[n])return a.programs[n];var i={status:"compiling",names:["iResolution","iTime","iDark","zaismaViewOffset"]};return N(i,c+"uniform float iDark;\\n"+t+n+"\\n"+e),a.programs[n]=i,i}var X=["iResolution","iTime","iDark","zaismaViewOffset"];function Y(a){if(a.zaisma)return a.zaisma;var n=c+"uniform float iDark;\\n"+t,r=n+"#define RIDGE_OCTAVES 6\\n"+i.shapes+i.live,o={status:"compiling",names:X.concat(["zaismaSoftA","zaismaSoftB","zaismaSoftC","zaismaStrip","zaismaShadeA","zaismaShadeB","zaismaUv"])};function s(t){var e={status:"compiling",names:X};return N(e,r+t),e}return N(o,n+"#define RIDGE_OCTAVES 4\\n"+i.shapes+i.stored+i.draw+"\\n"+e),a.zaisma={sharp:o,soft:s(i.soft),strip:s(i.strip),shade:s(i.shade)},a.zaisma}function K(t,e,a){for(var n={framebuffer:t.createFramebuffer(),textures:[],widthPx:0,heightPx:0},i=0;i<e;i++)n.textures.push(t.createTexture());return n.size=function(e,i){n.widthPx===e&&n.heightPx===i||(n.widthPx=e,n.heightPx=i,t.bindFramebuffer(t.FRAMEBUFFER,n.framebuffer),n.textures.forEach((function(n,r){t.bindTexture(t.TEXTURE_2D,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA8,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+r,t.TEXTURE_2D,n,0)})),t.drawBuffers(n.textures.map((function(e,a){return t.COLOR_ATTACHMENT0+a}))))},n}function j(t,e,a,n,i,r,o,s,c){t.bindFramebuffer(t.FRAMEBUFFER,a.framebuffer),t.useProgram(e.program),t.viewport(0,0,n,i);var l=n*r,d=l/o;t.uniform3f(e.at.iResolution,l,d,1),t.uniform1f(e.at.iTime,s),t.uniform1f(e.at.iDark,c),t.uniform2f(e.at.zaismaViewOffset,(l-n)/2,(d-i)/2),t.drawArrays(t.TRIANGLES,0,3)}function J(t){var e=!t.getAttribute("data-backdrop-shader"),a=t.getAttribute("data-backdrop-shader"),n=_(),r=null;if(!n)return null;function o(){return e&&!a&&i&&(a="#define RIDGE_OCTAVES 4\\n"+i.shapes+i.live+i.draw),a}function c(n,i,c){if(!o())return s(),!1;var l=_();if(l&&e&&!c.isOnePass){var d=Y(l),u=[d.sharp,d.soft,d.strip,d.shade].map(V).every(Boolean);if([d.sharp,d.soft,d.strip,d.shade].some((function(t){return"failed"===t.status})))c.isOnePass=!0;else if(!u)return!1}var f=l&&(e&&!c.isOnePass?Y(l).sharp:G(l,a));if(!f||!V(f)||!V(l.upscale))return f&&("failed"===f.status||"failed"===l.upscale.status)&&(c.isLost=!0),!1;if(!(r=r||t.getContext("2d",{alpha:!1})))return!1;var h=l.gl,m=l.board,p=t.width,g=t.height,v=c.drawnWidth,w=c.drawnHeight,y=f.at;(m.width<p||m.height<g)&&(m.width=Math.max(m.width,p),m.height=Math.max(m.height,g));var b=e&&!c.isOnePass,E=b?null:function(t,e,a){var n=t.gl,i=t.drawn;return(i.widthPx<e||i.heightPx<a)&&(i.widthPx=Math.max(i.widthPx,e),i.heightPx=Math.max(i.heightPx,a),n.bindTexture(n.TEXTURE_2D,i.texture),n.texImage2D(n.TEXTURE_2D,0,n.RGBA8,i.widthPx,i.heightPx,0,n.RGBA,n.UNSIGNED_BYTE,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.bindFramebuffer(n.FRAMEBUFFER,i.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,i.texture,0)),i}(l,v,w);b||(h.bindFramebuffer(h.FRAMEBUFFER,E.framebuffer),h.useProgram(f.program),h.viewport(0,0,v,w));var x=t.classList.contains("is-framed")?1.8:1,A=v*x,L=w*x;b?function(t,e,a,n,i,r,o,s){var c=t.gl,l=Y(t),d=l.sharp,u=e.parts,f=n/i;u||(u=e.parts={strip:K(c,1,!1),shade:K(c,2,!0),soft:K(c,3,!0),storedWidth:0,storedHeight:0}),(u.storedWidth!==n||u.storedHeight!==i)&&(u.storedWidth=n,u.storedHeight=i,u.strip.size(n,7),u.shade.size(Math.max(2,n>>1),Math.max(2,i>>1)),c.bindFramebuffer(c.FRAMEBUFFER,u.strip.framebuffer),c.useProgram(l.strip.program),c.viewport(0,0,n,7),c.uniform3f(l.strip.at.iResolution,n*s,i*s,1),c.uniform1f(l.strip.at.iTime,0),c.uniform1f(l.strip.at.iDark,0),c.uniform2f(l.strip.at.zaismaViewOffset,(n*s-n)/2,0),c.drawArrays(c.TRIANGLES,0,3),j(c,l.shade,u.shade,u.shade.widthPx,u.shade.heightPx,s,f,0,0));var h=Math.max(160,Math.round(Math.min(540,Math.max(300,.34*i))*e.softShare)),m=Math.max(2,Math.round(h*f));u.soft.size(m,h),j(c,l.soft,u.soft,m,h,s,f,r,o),c.bindFramebuffer(c.FRAMEBUFFER,null),c.useProgram(d.program),c.viewport(0,0,n,i);var p=d.at;[["zaismaSoftA",u.soft.textures[0]],["zaismaSoftB",u.soft.textures[1]],["zaismaSoftC",u.soft.textures[2]],["zaismaStrip",u.strip.textures[0]],["zaismaShadeA",u.shade.textures[0]],["zaismaShadeB",u.shade.textures[1]]].forEach((function(t,e){c.activeTexture(c.TEXTURE0+e),c.bindTexture(c.TEXTURE_2D,t[1]),c.uniform1i(p[t[0]],e)})),c.activeTexture(c.TEXTURE0);var g=n*s,v=i*s,w=(g-n)/2,y=(v-i)/2;c.uniform3f(p.iResolution,g,v,1),c.uniform1f(p.iTime,r),c.uniform1f(p.iDark,o),c.uniform2f(p.zaismaViewOffset,w,y),c.uniform4f(p.zaismaUv,1/n,1/i,-w/n,-y/i)}(l,c,0,p,g,n,i.darkShare,x):(h.uniform3f(y.iResolution,A,L,1),h.uniform1f(y.iTime,n),h.uniform1f(y.iDark,i.darkShare),h.uniform2f(y.zaismaViewOffset,(A-v)/2,(L-w)/2));var T=t.hasAttribute("data-adapts-glass")&&!c.isGlassAdapted&&S.some((function(e){return e.glassHost===t.parentElement}));if(h.drawArrays(h.TRIANGLES,0,3),!b){var z=l.upscale;h.bindFramebuffer(h.FRAMEBUFFER,null),h.useProgram(z.program),h.viewport(0,0,p,g),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,E.texture),h.uniform1i(z.at.zaismaDrawn,0),h.uniform2f(z.at.zaismaDrawnSize,v,w),h.uniform2f(z.at.zaismaCanvasSize,p,g),h.drawArrays(h.TRIANGLES,0,3)}return T&&(c.isGlassAdapted=!0,function(t,e,a,n){var i=new Uint8Array(a*n*4);t.readPixels(0,0,a,n,t.RGBA,t.UNSIGNED_BYTE,i),R(e,W(i))}(h,c,p,g)),r.drawImage(m,0,m.height-g,p,g,0,0,p,g),t.classList.contains("is-drawn")||t.classList.add("is-drawn"),!0}return c.prepare=function(){if(o()){var t=_();t&&G(t,a)}else s()},c}var $=500;function Z(t,e,a){return t.map((function(t,n){return t+(e[n]-t)*a}))}var Q=1e3,tt="zaisma:backdrop-lag-s",et=performance.now(),at=1,nt=performance.now(),it=!1,rt=Date.now()/1e3;try{rt-=Number(sessionStorage.getItem(tt))||0}catch{}function ot(){et=performance.now(),clearTimeout(I),I=setTimeout(H,l),F&&(F=!1,O()),it&&(it=!1,nt=et,h.forEach((function(t){t.isDrawn=!1})),y())}function st(t,e){if(!t.isOuter){var a=f.matches?20:rt%3600;t.colors=function(t,e){var a=f.matches||!t.from?1:Math.min(1,(e-t.fadeStartMs)/$);if(a>=1)return t.from=null,Object.assign({},t.target,{darkShare:t.target.isDark?1:0});var n=a*a*(3-2*a),i=t.from,r=t.target;return{base:Z(i.base,r.base,n),a:Z(i.a,r.a,n),b:Z(i.b,r.b,n),c:Z(i.c,r.c,n),isDark:n<.5?i.isDark:r.isDark,darkShare:(void 0!==i.darkShare?i.darkShare:i.isDark?1:0)+((r.isDark?1:0)-(void 0!==i.darkShare?i.darkShare:i.isDark?1:0))*n}}(t,e);var n=!0;if(t.drawShader){if(n=t.drawShader(a,t.colors,t),t.isLost)return void t.canvas.classList.remove("is-drawn")}else t.canvas.dispatchEvent(new CustomEvent("backdrop-frame",{detail:{timeS:a,colors:t.colors,widthPx:t.canvas.width,heightPx:t.canvas.height}}));t.isDrawn=n&&!t.from}}function ct(t){return!(t.isOuter||!t.isInView||t.isLost||t.canvas.hasAttribute("data-backdrop-paused"))&&!((t.isHeld||f.matches||it)&&t.isDrawn)}function lt(t){if(p=!1,!document.hidden){var e=F?u:d;if(t-m<e&&!A)return p=!0,void requestAnimationFrame(lt);var a=g?d:t-m;m=t,g=!1,w=v,v=!1,function(t){var e=Math.max(0,t-nt);nt=t,at=t-et>l?Math.max(0,at-e/Q):Math.min(1,at+e/Q),rt+=at*e/1e3,it=0===at}(t),x&&(x=!1,A=!0,S=Array.prototype.filter.call(document.querySelectorAll("[data-glass]:not([data-cut-line])"),(function(t){t.glassHost=T(t),t.glassHost&&t.glassHost.shownGlass&&C(t,t.glassHost.shownGlass);var e=getComputedStyle(t);return"hidden"!==e.visibility&&"none"!==e.display&&Number(e.opacity)>.05})));var n=A;A=!1,h.forEach((function(i){if(i.isInView&&!i.canvas.hasAttribute("data-backdrop-paused")){if(i.isOuter)return"frame"===i.kind&&!i.isTold&&(i.isTold=!0,q(i)),void(i.canvas.hasAttribute("data-adapts-glass")&&!i.isGlassAdapted&&function(t){var e=t.still;if(e&&e.naturalWidth){var a=document.createElement("canvas"),n=Math.min(1,160/Math.max(e.naturalWidth,e.naturalHeight));a.width=Math.max(2,Math.round(e.naturalWidth*n)),a.height=Math.max(2,Math.round(e.naturalHeight*n));var i=a.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,a.width,a.height),t.isGlassAdapted=!0;try{R(t,W(i.getImageData(0,0,a.width,a.height).data))}catch{}}}(i));i.drawShader&&n&&(i.isDrawn=!1),(!(i.isHeld||f.matches||it)||!i.isDrawn)&&(i.drawShader&&a<1e3&&(i.slowS=a>1.5*e?i.slowS+a/1e3:Math.max(0,i.slowS-a/2e3),i.slowS>1.5&&(i.slowS=0,i.softShare>.6?i.softShare*=.75:i.scale>.26?(i.scale*=.75,i.size()):i.isHeld=!0)),st(i,t))}})),w=!1,(A||x||h.some(ct))&&(p=!0,requestAnimationFrame(lt))}}function dt(){var t=performance.now();x=!0,h.forEach((function(e){var a=E(e.canvas);JSON.stringify(a)!==JSON.stringify(e.target)&&(e.from=e.colors,e.target=a,e.fadeStartMs=t,e.isDrawn=!1,e.isGlassAdapted=!1,e.isInView&&st(e,t))})),y()}function ut(){var t="";h.forEach((function(e){var a=e.isOuter&&e.canvas.getAttribute("data-backdrop-color");a&&/^#[0-9a-fA-F]{6}$/.test(a)&&(t=a)})),t?document.documentElement.style.setProperty("--backdrop-edge",t):document.documentElement.style.removeProperty("--backdrop-edge")}function ft(t){if(!t.backdropLayer&&(!t.hasAttribute("data-backdrop-stand-in")||t.hasAttribute("data-backdrop-shader"))){var e=t.getAttribute("data-backdrop");if("frame"===e||"picture"===e)return function(t,e){var a={canvas:t,kind:e,isOuter:!0,isInView:!0,isTold:!1,isGlassAdapted:!1,target:E(t),from:null};function n(){var n=t.getAttribute("data-glass-kind");if(t.hasAttribute("data-adapts-glass")&&n)return a.isGlassAdapted=!0,void D(a,{isSmoked:"smoked"===n,tint:t.getAttribute("data-glass-tint")||""});var i=t.getAttribute("data-backdrop-still")||("picture"===e?t.currentSrc||t.src:"");if(t.hasAttribute("data-adapts-glass")&&i){var r=new Image;r.onload=function(){t.getAttribute("data-backdrop-still")!==i&&"picture"!==e||(a.still=r,a.isGlassAdapted=!1,L())},r.src=i}}t.backdropLayer=a,h.push(a),"frame"===e&&(a.onMessage=function(e){e.source===t.contentWindow&&e.data&&e.data.zaismaBackground&&(a.isTold=!1,L())},window.addEventListener("message",a.onMessage)),n(),new MutationObserver(n).observe(t,{attributes:!0,attributeFilter:["data-backdrop-still","src","data-glass-kind"]}),window.IntersectionObserver&&new IntersectionObserver((function(t){a.isInView=t[t.length-1].isIntersecting,a.isInView&&L()})).observe(t),L(),ut()}(t,e);var a="scene"===t.getAttribute("data-backdrop"),n=window.matchMedia("(max-width: 760px)").matches,i=Math.min(window.devicePixelRatio||1,a?2:1.5),r=t.classList.contains("is-framed"),o=!a&&!t.getAttribute("data-backdrop-shader"),s=pt&&pt.has(t)?pt.get(t):ht(t),c={canvas:t,isInView:s,isDrawn:!1,isHeld:!1,slowS:0,target:E(t),from:null,softShare:1,scale:a||r?i:o?Math.min(window.devicePixelRatio||1,2):(n?.4:.55)*i};if(a||(c.drawShader=J(t),c.drawShader)){if(t.backdropLayer=c,c.size=function(){var e=Math.max(2,Math.round(t.clientWidth*c.scale)),n=Math.max(2,Math.round(t.clientHeight*c.scale));o&&!c.isOnePass?(c.drawnWidth=e,c.drawnHeight=n):a||(c.drawnWidth=Math.max(2,Math.round(t.clientWidth*c.scale*.7)),c.drawnHeight=Math.max(2,Math.round(t.clientHeight*c.scale*.7)),e=Math.round(1.4*c.drawnWidth),n=Math.round(1.4*c.drawnHeight)),(e!==t.width||n!==t.height)&&(t.width=e,t.height=n,c.isDrawn=!1,t.backdropLayer&&!v&&c.isInView&&st(c,performance.now()))},c.size(),window.zaismaWatch.size(t,c.size),window.IntersectionObserver&&new IntersectionObserver((function(t){c.isInView=t[t.length-1].isIntersecting,c.onView&&c.onView(),c.isInView&&y()})).observe(t),c.drawShader&&!s&&window.IntersectionObserver){var l=new IntersectionObserver((function(t){t[t.length-1].isIntersecting&&(l.disconnect(),c.drawShader.prepare())}),{rootMargin:"100% 0px"});l.observe(t)}else c.drawShader&&c.drawShader.prepare();new MutationObserver(y).observe(t,{attributes:!0,attributeFilter:["data-backdrop-paused"]}),h.push(c),!v&&c.isInView&&st(c,performance.now()),y()}}}function ht(t){var e=t.getBoundingClientRect();return e.bottom>0&&e.right>0&&e.top<window.innerHeight&&e.left<window.innerWidth}["pointerdown","pointermove","keydown","wheel","touchstart","scroll"].forEach((function(t){window.addEventListener(t,ot,{passive:!0,capture:!0})})),I=setTimeout(H,l),window.addEventListener("pagehide",(function(){try{sessionStorage.setItem(tt,String(Date.now()/1e3-rt))}catch{}}));var mt=document.querySelectorAll("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']"),pt=new Map;function gt(t){return 1===t.nodeType&&(t.hasAttribute("data-glass")||!!t.querySelector("[data-glass]"))}mt.forEach((function(t){"CANVAS"===t.tagName&&pt.set(t,ht(t))})),mt.forEach(ft),pt.clear(),window.zaismaWatch.each("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']",ft),window.zaismaBackdrop={add:function(t){x=!0,ft(t),y()},remove:function(t){var e=t.backdropLayer;e&&(h=h.filter((function(t){return t!==e})),e.onMessage&&window.removeEventListener("message",e.onMessage),t.backdropLayer=null,L(),ut())},forgetGlass:function(){document.querySelectorAll(":has(> .backdrop)").forEach((function(t){t.shownGlass=null})),document.querySelectorAll("[data-glass]").forEach((function(t){t.glassPick=null,t.classList.remove("smoke"),t.removeAttribute("data-theme-choice"),t.style.removeProperty("--glass-tint")}))}},window.zaismaWatch.resize(L),window.zaismaWatch.page((function(t){x||(x=t.some((function(t){return"attributes"===t.type?t.target.hasAttribute("data-glass"):Array.prototype.some.call(t.addedNodes,gt)||Array.prototype.some.call(t.removedNodes,gt)})))&&y()})),document.addEventListener("toggle",(function(){x=!0,y()}),!0),document.addEventListener("visibilitychange",(function(){document.hidden||y()})),new MutationObserver(dt).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-theme-choice"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",dt),f.addEventListener("change",dt)}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["shown-once-drawn"]||(t["shown-once-drawn"]=!0,function(){var t="iframe[data-shows-once-drawn]";function e(t){window.zaismaWatch.afterSettling((function(){t.classList.add("is-shown")}))}window.addEventListener("message",(function(a){!a.data||!a.data.zaismaBackground||document.querySelectorAll(t).forEach((function(t){a.source===t.contentWindow&&(t.hasSaid=!0,e(t))}))})),window.zaismaWatch.eachArriving(t,(function(t){t.addEventListener("load",(function(){setTimeout((function(){t.hasSaid||e(t)}),4e3)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.switches||(t.switches=!0,window.zaismaWatch.each(".tab-switch",(function(t){var e=t.querySelector(".switch-slab"),a=t.querySelectorAll(":scope > a, :scope > button:not(.switch-folder)"),n=function(){return t.classList.contains("vertical")};function i(){return t.querySelector('[aria-current="page"], [aria-pressed="true"]')}var r=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gap-control-row"))||4,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function s(t){var e=window.devicePixelRatio||1;return Math.round(t*e)/e}var c,l,d,u,f=(c=.4,l=0,d=.2,u=1,function(t){for(var e=t,a=0;a<8;a++){var n=3*(1-e)*(1-e)*e*c+3*(1-e)*e*e*d+e*e*e-t,i=3*(1-e)*(1-e)*c+6*(1-e)*e*(d-c)+3*e*e*(1-d);if(Math.abs(i)<1e-6)break;e=Math.min(1,Math.max(0,e-n/i))}return 3*(1-e)*(1-e)*e*l+3*(1-e)*e*e*u+e*e*e});function h(t,e){t.slideAt=e;var a=Math.round(e.size)+"px";n()?(t.style.width=e.width?Math.round(e.width)+"px":"",t.style.height=a,t.style.transform="translate("+(e.across||0)+"px, "+e.pos+"px)"):(t.style.height="",t.style.width=a,t.style.transform="translateX("+e.pos+"px)")}function m(e,a,n,i){var o=function(t){return Math.max(0,((Number(t.getAttribute("data-cut-line"))||0)-r)/2)}(e),s=n?0:o,c=i?0:o,l=t.closest("[data-cut-line]"),d=l&&l.getAttribute("data-slanted")||"";if(!e.classList.contains("focus-ring")&&(n&&/start/.test(d)||i&&/end/.test(d))){var u=a.offsetTop,f=t.offsetHeight,h=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--control-slant"))||10,m=h/2-Math.min(Number(e.getAttribute("data-cut-line"))||0,(a.offsetWidth+s+c)/3)/2+u*Math.sqrt(1+h/f*(h/f))-u;n&&/start/.test(d)&&(s=-m),i&&/end/.test(d)&&(c=-m)}return{start:s,end:c}}function p(e,a,i){var r=!i&&e.slideTarget&&e.pickedTab===a;if(e.pickedTab=a,a){var c={beside:e.getAttribute("data-cut-beside"),ends:e.getAttribute("data-cut-ends")||"",stack:e.getAttribute("data-cut-stack")},l=Array.prototype.filter.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){return!t.classList.contains("folded")&&!t.hidden})),d=a===l[0],u=a===l[l.length-1];if(n()){var f={pos:a.offsetTop,size:a.offsetHeight},h=i&&!o?v(e):0;if("grid"===getComputedStyle(t).display&&(f.across=a.offsetLeft,f.width=a.offsetWidth),e.classList.contains("focus-ring")){var p=d?0:a.offsetTop,w=u?t.getBoundingClientRect().height:a.offsetTop+a.offsetHeight,y=Math.round(w-p);f={pos:u?w-y:p,size:y,across:f.across,width:f.width}}return e.setAttribute("data-cut-beside",""),e.setAttribute("data-cut-stack",((d?"first ":"")+(u?"last":"")).trim()),void g(e,f,h,null!==c.stack?c:null,r)}var b=m(e,a,d,u),E=b.start,x=b.end,A={pos:s(a.offsetLeft-E),size:a.offsetWidth+E+x},S=i&&!o?v(e):0;if(e.classList.contains("focus-ring")){var L=d?0:a.offsetLeft-E,T=u?t.getBoundingClientRect().width:a.offsetLeft+a.offsetWidth+x,z=Math.round(T-L);A={pos:u?T-z:L,size:z}}e.setAttribute("data-cut-beside",((d?"":"start ")+(u?"":"end")).trim());var k=((d?"start ":"")+(u?"end":"")).trim();k?e.setAttribute("data-cut-ends",k):e.removeAttribute("data-cut-ends"),g(e,A,S,null!==c.beside?c:null,r)}else e.style.width="0px"}function g(t,a,n,i,r){if(r)t.slideTarget=a;else{if(n&&t.redrawCut){var o=t.slideAt;return h(t,a),t.redrawCut(i?{from:i,ms:n,ease:t===e&&w?w.ease:f,isDriven:!0}:void 0),o&&h(t,o),void function(t,a,n){var i=t===e?w:null,r=i?i.ease:f,o=t.slideAt||a,s=null,c=(t.slideId||0)+1;t.slideId=c,t.slideTarget=a,t.setAttribute("data-move-duration-ms",String(Math.round(n))),function e(l){if(t.slideId===c){var d=null===s||void 0===l?0:Math.min(1,(l-s)/n),u=r(d);a=t.slideTarget,i&&i.isOn&&window.scrollTo(window.scrollX,i.fromY+(i.toY-i.fromY)*u);var f=o.size!==a.size||void 0!==a.width&&o.width!==a.width;t.redrawCut&&!f&&t.redrawCut({isFrame:!0,progress:d});var m=function(t,e){return d<1&&void 0!==t?t+(e-t)*u:e};if(h(t,{pos:m(o.pos,a.pos),size:m(o.size,a.size),across:void 0===a.across?void 0:m(o.across||0,a.across),width:void 0===a.width?void 0:m(o.width,a.width)}),t.redrawCut&&f&&t.redrawCut({isFrame:!0,progress:d}),d<1)return void requestAnimationFrame((function(t){null===s&&(s=t),e(t)}));t.removeAttribute("data-move-duration-ms"),t.slideTarget=null,t.redrawCut&&t.redrawCut(),i&&i.isOn&&i.land()}}()}(t,a,n)}t.slideId=(t.slideId||0)+1,t.slideTarget=null,t.removeAttribute("data-move-duration-ms"),h(t,a),t.redrawCut&&t.redrawCut()}}function v(t){return t===e&&w?w.ms:parseFloat(getComputedStyle(t).getPropertyValue("--slide-ms"))||550}var w=null,y=!1;function b(){if(!y&&t.getClientRects().length){!function(){var i=t.closest("[data-cut-line]"),r=i&&i.getAttribute("data-slanted")||"",o=Array.prototype.filter.call(a,(function(t){return!t.classList.contains("folded")&&!t.hidden}));o.forEach((function(t,a){if(n())t.style.removeProperty("--tab-shift");else{var i=0===a,s=a===o.length-1,c=m(e,t,i,s),l=Math.min(Number(e.getAttribute("data-cut-line"))||0,(t.offsetWidth+c.start+c.end)/3),d=(!i||/start/.test(r)?1:0)-(!s||/end/.test(r)?1:0);t.style.setProperty("--tab-shift",Math.round(10*((c.end-c.start)/2+d*l/4))/10+"px")}}))}();var r=i(),o=t.querySelector(":scope > :focus-visible"),s=t.querySelector(".focus-ring");e.style.transition="none",p(e,r),s&&o&&p(s,o),function(){var e=t.querySelector(":scope > .is-focused"),a=t.querySelector(".focus-ring");e&&a&&(p(a,e),t.classList.add("is-focus-shown"))}(),e.offsetWidth,e.style.transition="",t.classList.add("is-ready")}}var E=t.closest("body > .top")&&window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function x(){var e=E.matches,a=t.closest(".switch-well"),n=t.parentElement;t.classList.toggle("vertical",e),a&&(a.classList.toggle("vertical",e),a.classList.toggle("is-full",!e),a.setAttribute("data-edge-light",e?"left":"bottom")),n&&n.classList.toggle("across",!e)}function A(e){var a=i(),r=t.parentElement;if(r){if(n()){var o=r.scrollHeight-r.clientHeight;if(!a||o<=1||!a.getClientRects().length)return;var s=window.zaismaScrollFadePx?window.zaismaScrollFadePx():34,c=r.getBoundingClientRect(),l=a.getBoundingClientRect(),d=r.scrollTop,u=l.top-c.top+d,f=l.bottom-c.top+d,h=d;return u-s<d?h=u-s:f+s>d+r.clientHeight&&(h=f+s-r.clientHeight),void r.scrollTo({top:Math.max(0,Math.min(o,h)),behavior:e?"smooth":"auto"})}t.classList.remove("is-past-room"),!(r.scrollWidth<=r.clientWidth+1)&&(t.classList.add("is-past-room"),a&&r.scrollTo({left:a.offsetLeft+a.offsetWidth/2-r.clientWidth/2,behavior:e?"smooth":"auto"}))}}E&&(x(),E.addEventListener("change",(function(){x(),b()}))),b(),A(!1);var S=window.navigation&&navigation.activation&&navigation.activation.from;if(S&&S.url&&e.animate&&!n()&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var L=new URL(S.url),T=L.pathname,z=T===location.pathname&&L.search===location.search,k=Array.prototype.filter.call(a,(function(t){return t.href&&new URL(t.href).pathname===T})),P=k.find((function(t){return new URL(t.href).search===L.search}))||(1===k.length?k[0]:void 0),M=i();P&&M&&P!==M&&!z&&(e.style.transition="none",p(e,P),e.offsetWidth,e.style.transition="",y=!0,window.zaismaWatch.fontsIn((function(){requestAnimationFrame((function(){y=!1,b(),y=!0;var t=function(){y=!1,b()};(function(){var t=n()?"translateY("+P.offsetTop+"px)":"translateX("+P.offsetLeft+"px) scaleX("+(P.offsetWidth/Math.max(1,M.offsetWidth)).toFixed(4)+")",a=n()?"translateY("+M.offsetTop+"px)":"translateX("+M.offsetLeft+"px) scaleX(1)";return e.animate([{transform:t,transformOrigin:"0 0"},{transform:a,transformOrigin:"0 0"}],{duration:v(e),easing:"cubic-bezier(.3, 1.2, .4, 1)"})})().finished.then(t,t)}))})))}if(window.zaismaWatch.fontsIn(b),window.zaismaWatch.size(t,b),window.zaismaWatch.size(t,(function(){n()||A(!1)})),t.parentElement&&(window.zaismaWatch.size(t.parentElement,b),window.zaismaWatch.size(t.parentElement,(function(){A(!1)}))),Array.prototype.forEach.call(t.querySelectorAll(":scope > .foldable"),(function(t){window.zaismaWatch.size(t,b)})),t.pickTab=function(i){"BUTTON"===i.tagName?a.forEach((function(t){t.setAttribute("aria-pressed",String(t===i))})):a.forEach((function(t){t===i?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")})),e.pickedTab!==i&&p(e,i,!0);var r=t.closest("[data-fades-sideways]");r&&r.showWhole&&!n()?r.showWhole(i,!0):A(!0),F()},a.forEach((function(a){a.addEventListener("click",(function(r){if(!function(t){return t.disabled||"true"===t.getAttribute("aria-disabled")}(a)){if(a.href&&"page"===a.getAttribute("aria-current")&&0===r.button&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey)return void r.preventDefault();if(a.href&&!r.defaultPrevented){var s=new URL(a.href,location.href),c=!(0!==r.button||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||a.target&&"_self"!==a.target);if(s.pathname!==location.pathname||s.search!==location.search){if(!n()||o||!c)return;return r.preventDefault(),O=O||i(),t.pickTab(a),H(),clearTimeout(B),document.dispatchEvent(new Event("zaisma-leaving-page")),void(B=setTimeout((function(){location.assign(a.href)}),v(e)))}var l=n()&&!o&&c&&s.hash&&document.getElementById(decodeURIComponent(s.hash.slice(1)));if(l&&l.getClientRects().length)return r.preventDefault(),void function(e,a,n){w&&w.stop();var i=document.documentElement,r=window.scrollY,o=parseFloat(getComputedStyle(i).scrollPaddingTop)||0,s=Math.max(0,Math.min(i.scrollHeight-window.innerHeight,r+a.getBoundingClientRect().top-o)),c=Math.abs(s-r)/window.innerHeight,l=w={isOn:!0,fromY:r,toY:s,ms:Math.min(800,400+130*Math.max(0,c-1)),ease:function(t){return t*t*t*(t*(6*t-15)+10)}},d=["wheel","touchstart","pointerdown","keydown"];function u(t){l.isOn=!1,d.forEach((function(t){window.removeEventListener(t,f)})),w===l&&(w=null),requestAnimationFrame((function(){requestAnimationFrame((function(){w||i.removeAttribute("data-page-gliding"),dispatchEvent(new CustomEvent("zaisma:page-glide-end",{detail:{hash:n,hasLanded:t}}))}))}))}function f(){u(!1)}l.stop=function(){l.isOn&&(l.isOn=!1,d.forEach((function(t){window.removeEventListener(t,f)})))},l.land=function(){location.hash=n,u(!0)},i.setAttribute("data-page-gliding",""),d.forEach((function(t){window.addEventListener(t,f,{passive:!0})})),t.pickTab(e)}(a,l,s.hash)}t.pickTab(a)}}))})),t.hasAttribute("data-shows-one-panel")){var C=function(t){var e=t.hash?decodeURIComponent(t.hash.slice(1)):"";return e?document.getElementById(e):null},R=function(t){a.forEach((function(e){var a=C(e);a&&(a.hidden=e!==t)}))},D=function(){var e=Array.prototype.filter.call(a,(function(t){return t.hash&&t.hash===location.hash}))[0];e&&(R(e),"page"!==e.getAttribute("aria-current")&&t.pickTab(e))};a.forEach((function(t){t.addEventListener("click",(function(e){if(!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&C(t)){e.preventDefault(),history.replaceState(history.state,"",t.hash),R(t);var a=C(t);a&&a.animate&&!o&&a.animate([{opacity:0},{opacity:1}],{duration:200,easing:"cubic-bezier(0.2, 0, 0, 1)"})}}))})),window.addEventListener("hashchange",D),queueMicrotask(D)}var W=Array.prototype.slice.call(t.querySelectorAll(":scope > .switch-folder"));function q(t){for(var e=[],a=t.nextElementSibling;a&&a.classList.contains("is-in-folder");a=a.nextElementSibling)e.push(a);return e}function F(){var t=i();W.forEach((function(e){var a=q(e).indexOf(t)>=0;e.classList.toggle("is-held",a),a?e.removeAttribute("data-lights"):e.setAttribute("data-lights",""),a&&"true"!==e.getAttribute("aria-expanded")&&I(e,!0)}))}function I(t,e){t.setAttribute("aria-expanded",String(e)),q(t).forEach((function(t){!function(t,e){var a=t.hidden?0:t.offsetHeight;t.getAnimations().forEach((function(t){t.cancel()})),t.hidden=!1;var n=t.offsetHeight;if(!o&&t.animate){t.classList.add("is-folding");var i=t.animate([{height:a+"px",minHeight:"0px",opacity:n?a/n:0},{height:(e?n:0)+"px",minHeight:"0px",opacity:e?1:0}],{duration:240,easing:"cubic-bezier(.2,.8,.2,1)"});i.onfinish=function(){t.classList.remove("is-folding"),t.hidden=!e},i.oncancel=function(){t.classList.remove("is-folding")}}else t.hidden=!e}(t,e)}))}function H(t){W.forEach((function(e){e!==t&&!e.classList.contains("is-held")&&"true"===e.getAttribute("aria-expanded")&&I(e,!1)}))}W.forEach((function(t){t.addEventListener("click",(function(){if(!t.classList.contains("is-held")){var e="true"!==t.getAttribute("aria-expanded");I(t,e),e&&H(t)}}))})),F();var O=null,B=null;window.addEventListener("pageshow",(function(e){!e.persisted||!O||(clearTimeout(B),t.pickTab(O),H(),O=null)}));var U=t.querySelector(".focus-ring");t.addEventListener("focusin",(function(e){var a=e.target;!U||a.parentElement!==t||!a.matches(":focus-visible")||(p(U,a),t.classList.add("is-focus-shown"))})),t.addEventListener("focusout",(function(){t.classList.remove("is-focus-shown")}))})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["guild-seal"]||(t["guild-seal"]=!0,!window.IntersectionObserver||matchMedia("(prefers-reduced-motion: reduce)").matches||window.zaismaWatch.each("video.guild-seal-video",(function(t){var e=!1;t.addEventListener("ended",(function(){t.src=t.getAttribute("data-resting"),t.loop=!0,t.play().catch((function(){}))})),new IntersectionObserver((function(a){a[a.length-1].isIntersecting?(e||(e=!0,t.src=t.getAttribute("data-forging")),t.play().catch((function(){}))):t.pause()})).observe(t)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sidebar||(t.sidebar=!0,function(){function t(t){return"1"===getComputedStyle(t).getPropertyValue("--sidebar-is-sheet").trim()}function e(t){return"zaisma-sidebar:"+t.getAttribute("data-sidebar-remember")}function a(t){return document.querySelectorAll('[data-sidebar-button][aria-controls="'+t.id+'"], [data-sidebar-button][aria-controls="'+t.id+'-sheet"]')}function n(e){var n=e.closest(".sidebar-layout"),i=document.getElementById(e.id+"-sheet");a(e).forEach((function(a){a.setAttribute("aria-controls",t(e)?e.id+"-sheet":e.id),a.setAttribute("aria-expanded",String(t(e)?!(!i||!i.open):!(!n||n.classList.contains("is-collapsed"))))}))}function i(t,e){e.classList.remove("is-folding"),t.classList.remove("is-leaving"),["--sidebar-left","--sidebar-top","--sidebar-width","--sidebar-height"].forEach((function(e){t.style.removeProperty(e)}))}function r(t,a,r){var o=t.closest(".sidebar-layout");if(o){if(r)try{localStorage.setItem(e(t),a?"hidden":"shown")}catch{}cancelAnimationFrame(t.foldFrame),clearTimeout(t.foldTimer),clearTimeout(t.slideTimer),i(t,o);var s=o.querySelector(".sidebar-main"),c=r&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&s,l=c?s.getBoundingClientRect():null,d=c&&a?t.getBoundingClientRect():null;if(d&&(t.style.setProperty("--sidebar-left",d.left+"px"),t.style.setProperty("--sidebar-top",d.top+"px"),t.style.setProperty("--sidebar-width",d.width+"px"),t.style.setProperty("--sidebar-height",d.height+"px"),o.classList.add("is-folding")),o.classList.toggle("is-collapsed",a),n(t),d&&(t.foldFrame=requestAnimationFrame((function(){t.classList.add("is-leaving")})),t.foldTimer=setTimeout((function(){i(t,o)}),350)),c){var u=l.left-s.getBoundingClientRect().left;Math.abs(u)<1||(s.style.transition="none",s.style.transform="translateX("+u+"px)",s.offsetWidth,s.style.transition="transform 0.45s cubic-bezier(.2,.8,.2,1)",s.style.transform="",t.slideTimer=setTimeout((function(){s.style.removeProperty("transition"),s.style.removeProperty("transform")}),500))}}}window.zaismaWatch.each("nav.sidebar[data-sidebar-remember]",(function(t){try{var i=localStorage.getItem(e(t));("shown"===i||"hidden"===i)&&r(t,"hidden"===i,!1)}catch{}window.zaismaWatch.whenRead((function(){!function(t){var e=document.getElementById(t.id+"-sheet");e&&(e.addEventListener("close",(function(){n(t);var i=a(t)[0];i&&(!document.activeElement||document.activeElement===document.body||e.contains(document.activeElement))&&i.focus({preventScroll:!0})})),e.addEventListener("click",(function(t){t.target.closest&&t.target.closest("a[href]")&&e.close()}))),n(t)}(t)})),n(t)})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-sidebar-button]");if(a){var i=a.getAttribute("aria-controls").replace(/-sheet$/,""),o=document.getElementById(i),s=document.getElementById(i+"-sheet");if(o){if(t(o))return void(s&&!s.open&&(s.showModal(),n(o)));r(o,!o.closest(".sidebar-layout").classList.contains("is-collapsed"),!0)}}}));var o=!1;window.addEventListener("resize",(function(){o||(o=!0,requestAnimationFrame((function(){o=!1,document.querySelectorAll("nav.sidebar[data-sidebar-remember]").forEach((function(e){var a=document.getElementById(e.id+"-sheet");!t(e)&&a&&a.open&&a.close(),n(e)}))})))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["started-low"]||(t["started-low"]=!0,function(){function t(t){var e=t.querySelector(".run-wrap"),a=t.querySelector(":scope > .pane-in > .layout-stack")||t.querySelector(":scope > .pane-in"),n=e&&a&&Array.prototype.find.call(a.children,(function(t){return t.contains(e)}));if(n){var i=parseFloat(getComputedStyle(t).marginTop)||0;t.style.setProperty("--started-low-used",Math.round(n.getBoundingClientRect().bottom+window.scrollY-i)+"px")}}window.zaismaWatch.each(".glass-pane.is-started-low",(function(e){t(e),window.zaismaWatch.size(e,(function(){t(e)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.placing||(t.placing=!0,function(){window.zaismaIsOnPage=function(t,e){var a=function(t){for(var e=t;e&&e!==document.documentElement;e=e.parentElement){var a=getComputedStyle(e).position;if("fixed"===a||"sticky"===a)return!0}return!1};return!(a(t)||e.parentElement&&a(e.parentElement))},window.zaismaPageRoom=function(t){var e={left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight};return document.querySelectorAll("header, nav.sidebar").forEach((function(a){if(!t||!a.contains(t)){var n=getComputedStyle(a).position,i=a.getBoundingClientRect();"fixed"!==n&&"sticky"!==n||i.width<1||i.height<1||i.bottom<=0||i.top>=e.bottom||"fixed"===n&&a.offsetParent||(i.width>=e.right/2?e.top=Math.max(e.top,i.bottom):(i.left+i.right)/2<e.right/2?e.left=Math.max(e.left,i.right):e.right=Math.min(e.right,i.left))}})),e},window.zaismaPlace=function(t,e,a){var n=a.roomRect||{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight},i=a.gapPx,r=a.edgePx,o=(t.left+t.right)/2>(n.left+n.right)/2,s=Math.max(n.left+r,Math.min(o?t.right-e.width:t.left,n.right-r-e.width)),c=n.bottom-r-t.bottom-i,l=t.top-i-r-n.top,d=e.height<=c,u=e.height<=l,f=(t.top+t.bottom)/2>(n.top+n.bottom)/2,h=!a.isAlwaysBelow&&(d&&u?f:!d&&l>c),m=h?t.top-i-e.height:t.bottom+i;return{leftPx:s,topPx:Math.max(n.top+r,Math.min(m,n.bottom-r-e.height)),isAtEnd:o,isAbove:h}};window.zaismaCast=function(t){var e=t.floatCast;if(e||((e=t.floatCast=document.createElement("div")).className="floating-cast",e.setAttribute("aria-hidden","true"),e.appendChild(document.createElement("div")).appendChild(document.createElement("span")),(t.parentElement||document.body).appendChild(e)),["smoke","is-above","placed-over","opens-at-once"].forEach((function(a){e.classList.toggle(a,t.classList.contains(a))})),t.isConnected&&t.matches(":popover-open")){var a=t.getBoundingClientRect(),n=new DOMMatrix("none"===getComputedStyle(t).transform?void 0:getComputedStyle(t).transform),i={width:t.offsetWidth,height:t.offsetHeight};i.left=a.left+a.width/2-i.width/2-n.e,i.top=a.top+a.height/2-i.height/2-n.f;var r=t.classList.contains("is-on-page"),o=getComputedStyle(t),s=o.getPropertyValue("--glass-clip").trim()||o.clipPath,c=/^polygon\\((.*)\\)$/.exec(s),l="calc(100% + 64px)",d="-64px";if(!c)return e.hidden=!0,t.castTries=(t.castTries||0)+1,void(t.castTries<60&&requestAnimationFrame((function(){window.zaismaCast(t)})));t.castTries=0;var u=c?c[1].replace(/^(nonzero|evenodd),\\s*/,""):"0px 0px, 100% 0px, 100% 100%, 0px 100%";e.firstChild.firstChild.style.clipPath=c?s:"",e.style.clipPath="polygon(evenodd, -64px -64px, "+l+" "+d+", "+l+" "+l+", "+d+" "+l+", "+d+" "+d+", "+u+", "+u.split(",")[0]+", "+d+" "+d+")",e.hidden&&e.classList.contains("is-arriving")&&requestAnimationFrame((function(){e.offsetWidth,e.classList.remove("is-arriving")})),e.hidden=!1,e.classList.toggle("is-on-page",r);var f=t.getAttribute("data-theme-choice");f?e.setAttribute("data-theme-choice",f):e.removeAttribute("data-theme-choice"),e.style.left=i.left+(r?window.scrollX:0)+"px",e.style.top=i.top+(r?window.scrollY:0)+"px",e.style.width=i.width+"px",e.style.height=i.height+"px"}else e.hidden=!0},["toggle","transitionend"].forEach((function(t){document.addEventListener(t,(function(t){t.target.classList&&t.target.classList.contains("floating-pane")&&!t.target.classList.contains("in-place")&&window.zaismaCast(t.target)}),!0)}));window.zaismaFloat=function(t,e){var a=t.classList.contains("in-place"),n=t.classList.contains("placed-over"),i=null;function r(){return"function"==typeof e.anchor?e.anchor():e.anchor}function o(){var a=r(),n=t.offsetParent;if(a&&n){var i=e.anchorRect?e.anchorRect(a):a.getBoundingClientRect(),o=n.getBoundingClientRect(),s=window.zaismaPlace(i,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:o.left,top:o.top,right:o.right,bottom:o.bottom},gapPx:e.gapPx||6,edgePx:e.edgePx||8,isAlwaysBelow:!0});t.style.left=Math.round(s.leftPx-o.left-n.clientLeft)+"px",t.style.top=Math.round(s.topPx-o.top-n.clientTop)+"px",t.classList.toggle("from-start",!s.isAtEnd),e.onPlaced&&e.onPlaced()}}function s(){var i=r();if(!a&&t.matches(":popover-open")&&i){var o=e.anchorRect?e.anchorRect(i):i.getBoundingClientRect(),s=document.documentElement.clientWidth,c=window.innerHeight,l=window.zaismaPageRoom(i),u=o.bottom<0||o.top>c,f=u?o.top+o.height/2-c/2+l.top:l.top,h=u?f+l.bottom-l.top:l.bottom,m=window.zaismaIsOnPage(i,t);if(!i.isConnected||!m&&(o.bottom<0||o.top>c||o.right<0||o.left>s))return void d(!1);e.isAnchorWidth&&(t.style.width=o.width+"px",t.scrollWidth>t.clientWidth&&(t.style.width=t.scrollWidth+"px"));var p,g,v=e.gapPx||6,w=e.edgePx||8;if(t.style.setProperty("--floating-room",Math.max(0,h-f-2*w)+"px"),n)g=o.top+o.height/2-e.lineOf(),p=o.left;else{var y=function(){return window.zaismaPlace(o,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:l.left,top:f,right:l.right,bottom:h},gapPx:v,edgePx:w,isAlwaysBelow:"function"==typeof e.isAlwaysBelow?e.isAlwaysBelow(i):e.isAlwaysBelow})},b=y();if(t.querySelector(".scrolls")){var E=Math.max(0,b.isAbove?o.top-f-v-w:h-o.bottom-v-w);t.style.setProperty("--floating-room",E+"px");var x=e.scrollBox&&e.scrollBox(),A=x?x.scrollHeight-x.clientHeight:0;A>0&&A<12&&t.style.setProperty("--floating-room",Math.ceil(E+A)+"px"),b=y()}g=b.topPx,p=b.leftPx,t.classList.toggle("is-above",b.isAbove),t.classList.toggle("from-start",!b.isAtEnd)}var S=t.offsetWidth,L=t.offsetHeight;g=Math.max(f+w,Math.min(h-L-w,g)),p=Math.max(l.left+w,Math.min(l.right-S-w,p)),t.classList.toggle("is-on-page",m),t.style.top=Math.round(g+(m?window.scrollY:0))+"px",t.style.left=Math.round(p+(m?window.scrollX:0))+"px",window.zaismaFit&&t.querySelectorAll(".scrolls").forEach(window.zaismaFit),e.onPlaced&&e.onPlaced(),window.zaismaCast(t)}}a||(document.querySelectorAll("body > .floating-pane, dialog > .floating-pane").forEach((function(t){t.floatingHome&&!t.floatingHome.isConnected&&(t.floatCast&&t.floatCast.remove(),t.remove())})),t.floatingHome=e.home||r(),t.floatingHome&&t.floatingHome.closest(".smoke")&&t.classList.add("smoke"),(r()&&r().closest("dialog")||document.body).appendChild(t)),a&&!n&&!e.isAnchorWidth&&(t.classList.add("is-hanging"),o(),window.zaismaWatch.resize(o),window.zaismaWatch.fontsIn(o));var c=!(window.CSS&&CSS.supports("overlay","auto")||matchMedia("(prefers-reduced-motion: reduce)").matches),l=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-float"))||.12);function d(n){if(!a&&t.matches(":popover-open")&&!t.classList.contains("is-leaving")){c?(t.classList.add("is-leaving"),t.floatCast&&t.floatCast.classList.add("is-leaving"),t.leaveTimer=setTimeout((function(){t.classList.remove("is-leaving"),t.hidePopover(),window.zaismaCast(t),t.floatCast.classList.remove("is-leaving")}),l)):(t.hidePopover(),window.zaismaCast(t)),e.onToggle&&e.onToggle(!1);var i=e.focusOnClose||r();n&&i&&i.focus()}}return a||(document.addEventListener("pointerdown",(function(a){var n=r();t.matches(":popover-open")&&!t.contains(a.target)&&(!n||!n.contains(a.target))&&(!e.isInside||!e.isInside(a.target))&&d(!1)})),t.addEventListener("keydown",(function(e){"Escape"===e.key&&t.matches(":popover-open")&&(e.preventDefault(),d(!0))})),window.zaismaWatch.resize(s),document.addEventListener("scroll",(function(e){var a=r();if(t.matches(":popover-open")&&i&&a&&(1!==e.target.nodeType||!t.contains(e.target))){var n=a.getBoundingClientRect();(Math.abs(n.top-i.top)>4||Math.abs(n.left-i.left)>4)&&d(!1)}}),{capture:!0,passive:!0}),window.zaismaWatch.scroll(s),window.zaismaWatch.fontsIn(s)),t.floating={open:function(){if(!a){if(!t.matches(":popover-open")){var n=e.home||r()||document.body,o=n.closest("[data-theme-choice]");o&&o!==document.documentElement?t.setAttribute("data-theme-choice",o.getAttribute("data-theme-choice")):t.removeAttribute("data-theme-choice"),t.classList.toggle("smoke",!!n.closest(".smoke")),t.style.setProperty("--glass-hue",getComputedStyle(n).getPropertyValue("--glass-hue")),c&&(window.zaismaCast(t),clearTimeout(t.leaveTimer),[t,t.floatCast].forEach((function(t){t.classList.remove("is-leaving"),t.classList.add("is-arriving")}))),t.showPopover(),c&&function e(a,n){requestAnimationFrame((function(i){if(!(getComputedStyle(t).getPropertyValue("--glass-clip").trim()&&n&&i-n<25)&&a<30)return e(a+1,i);t.classList.remove("is-arriving")}))}(0,0)}var l=r();i=l?l.getBoundingClientRect():null,e.onShown&&e.onShown(),s(),e.onToggle&&e.onToggle(!0)}},close:d,isOpen:function(){return a||t.matches(":popover-open")},place:s}}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.wheels||(t.wheels=!0,function(){var t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,e=864e5,a=3e5,n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=window.matchMedia("(pointer: coarse)").matches?"Swipe each wheel to pick.":"Scroll or type to pick each one.";function r(t){return String(t).padStart(2,"0")}function o(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}window.zaismaWatch.each("[data-wheels]",(function(s){var c=s.getAttribute("data-wheels"),l=s.id,d=s.querySelector(".wheel-button"),u=s.querySelector(".wheel-pick"),f=s.querySelector(".wheel-value"),h=u.classList.contains("in-place"),m=s.querySelector(".field-error"),p=s.querySelector(".field-hint"),g=s.querySelector(".wheel-read"),v=s.querySelector('input[type="hidden"]:not([data-part])'),w="birthday"===c?function(t,e){for(var a=(new Date).getFullYear(),o=[],s=a;s>a-100;s--)o.push(String(s));function c(t,e){return t?new Date(e||2e3,t,0).getDate():31}var l={month:0,day:0,year:0},d=/^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(e.value);function u(){return!!(l.month&&l.day&&l.year)}return d&&(l.month=Number(d[2]),l.day=Number(d[3]),l.year=Math.max(0,o.indexOf(d[1])+1)),{parts:["month","day","year"],at:l,hasBlank:!0,rows:function(t){if("month"===t)return["Month"].concat(n);if("year"===t)return["Year"].concat(o);for(var e=["Day"],a=1;a<=c(l.month,l.year?Number(o[l.year-1]):0);a++)e.push(String(a));return e},set:function(t,e){return l[t]=e,"day"===t?[]:["day"]},isComplete:u,typed:function(t,e,a){if("year"!==t||!/^\\d{2}$/.test(e))return-1;for(var n=1;n<a.length;n++)if(a[n].slice(2)===e)return n;return-1},firstPart:function(){return u()||!l.month?"month":l.day?"year":"day"},words:function(){if(!u())return{shown:null,read:i,sent:""};var t=n[l.month-1],e=o[l.year-1];return{shown:t.slice(0,3)+" "+l.day+", "+e,read:t+" "+l.day+", "+e,sent:e+"-"+r(l.month)+"-"+r(l.day)}}}}(0,v):"date-time"===c?function(t,n,i){for(var s=[],c=[],l=["AM","PM"],d=1;d<=12;d++)s.push(String(d));for(var u=0;u<60;u+=5)c.push(r(u));var f=t.hasAttribute("data-minimum-at")?new Date(t.getAttribute("data-minimum-at")):new Date;isNaN(f)&&(f=new Date);for(var h=o(f=new Date(Math.ceil(f.getTime()/a)*a)),m=[],p=0;p<366;p++)m.push(new Date(h.getFullYear(),h.getMonth(),h.getDate()+p));var g=o(new Date).getTime(),v=(new Date).getFullYear(),w=new Intl.DateTimeFormat("en-US",{weekday:"short",month:"short",day:"numeric"}),y=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),b=m.map((function(t){var a=Math.round((t.getTime()-g)/e);return 0===a?"Today":1===a?"Tomorrow":(t.getFullYear()===v?w:y).format(t)}));function E(t,e){try{var a=new Intl.DateTimeFormat("en-US",{timeZoneName:e}).formatToParts(t).find((function(t){return"timeZoneName"===t.type}));return a?a.value:""}catch{return""}}function x(t){var e=-t.getTimezoneOffset(),a=e<0?"-":"+",n=Math.abs(e);return t.getFullYear()+"-"+r(t.getMonth()+1)+"-"+r(t.getDate())+"T"+r(t.getHours())+":"+r(t.getMinutes())+a+r(Math.floor(n/60))+":"+r(n%60)}var A={day:0,hour:0,minute:0,half:0},S=!1;function L(t){var e=m[t.day];return new Date(e.getFullYear(),e.getMonth(),e.getDate(),(t.hour+1)%12+12*t.half,5*t.minute)}function T(t){return{day:Math.max(0,Math.min(m.length-1,Math.round((o(t).getTime()-h.getTime())/e))),hour:(t.getHours()%12||12)-1,minute:Math.floor(t.getMinutes()/5),half:t.getHours()<12?0:1}}function z(t){Object.keys(t).forEach((function(e){A[e]=t[e]}))}var k=n.value?new Date(n.value):null,P=k&&!isNaN(k)&&i.classList.contains("is-marked")?k:null;return k&&!isNaN(k)&&(z(T(k<f?f:k)),S=!0),{parts:["day","hour","minute","half"],at:A,hasBlank:!1,rows:function(t){return"day"===t?b:"hour"===t?s:"minute"===t?c:l},set:function(t,e){return A[t]=e,S=!0,P=null,L(A)<f?(z(T(f)),"all"):[]},isComplete:function(){return S},opening:function(){if(S)return!1;var t=new Date;return t.setMinutes(60,0,0),z(T(t<f?f:t)),S=!0,!0},firstPart:function(){return"day"},words:function(){var t=P||L(A);if(!S)return{shown:null,read:"",sent:""};var a=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),n=o(t),i=Math.round((n.getTime()-g)/e),r=0===i?"Today":1===i?"Tomorrow":n.toLocaleDateString("en-US",n.getFullYear()===v?{month:"short",day:"numeric"}:{month:"short",day:"numeric",year:"numeric"}),s=E(t,"short"),c=E(t,"long");return{shown:r+", "+a+(s?" "+s:""),read:t.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})+" at "+a+(c?", "+c:""),sent:x(t)}}}}(s,v,d):function(t){var e=[],a={},n={};return Array.prototype.forEach.call(t.querySelectorAll(".wheel[data-part]"),(function(t){var i=t.getAttribute("data-part");e.push(i);try{a[i]=JSON.parse(t.getAttribute("data-rows"))||[]}catch{a[i]=[]}n[i]=Math.max(0,Number(t.getAttribute("data-picked"))||0)})),{parts:e,at:n,hasBlank:!1,rows:function(t){return a[t].map((function(t){return t[0]}))},set:function(t,e){return n[t]=e,[]},isComplete:function(){return!0},firstPart:function(){return e[0]},words:function(){var t=e.map((function(t){return(a[t][n[t]]||[""])[0]})).join(" "),i={};return e.forEach((function(t){i[t]=(a[t][n[t]]||["",""])[1]})),{shown:t,read:t,sent:i}}}}(s),y=f.textContent,b={};w.parts.forEach((function(t){b[t]={el:s.querySelector('.wheel[data-part="'+t+'"]'),count:0}}));var E=u.querySelector(".wheels"),x=window.zaismaFloat(u,{anchor:d,home:s,lineOf:function(){return E.parentElement.offsetTop+E.offsetTop+E.offsetHeight/2},onToggle:function(t){d.setAttribute("aria-expanded",String(t))}});function A(){return x.isOpen()}function S(t){var e=b[t],a=w.at[t];Array.prototype.forEach.call(e.el.children,(function(t,e){t.setAttribute("aria-selected",String(e===a))})),e.el.setAttribute("aria-activedescendant",l+"-"+t+"-"+a)}function L(t){var e=b[t],a=w.rows(t),n=document.createDocumentFragment();e.count=a.length,e.el.textContent="",a.forEach((function(e,a){var i=document.createElement("div");i.className="flush-row compact quiet",i.setAttribute("role","option"),i.id=l+"-"+t+"-"+a,i.textContent=e,i.setAttribute("data-label",e),w.hasBlank&&0===a&&i.classList.add("blank"),n.appendChild(i)})),e.el.appendChild(n),e.isWired||(e.isWired=!0,e.el.addEventListener("click",(function(a){var n=a.target.closest('[role="option"]');n&&n.parentElement===e.el&&k(t,Array.prototype.indexOf.call(e.el.children,n),!0)}))),w.at[t]>e.count-1&&(w.at[t]=e.count-1),S(t)}function T(t){var e=b[t].el.firstElementChild;return e&&e.offsetHeight||36}function z(e){w.parts.forEach((function(a){b[a].el.scrollTo({top:w.at[a]*T(a),behavior:e&&!t?"smooth":"auto"})}))}function k(e,a,n){a=Math.max(0,Math.min(b[e].count-1,a)),b[e].el.scrollTo({top:a*T(e),behavior:n&&!t?"smooth":"auto"}),M(e,a)}var P=w.isComplete();function M(t,e){if(w.at[t]!==e||!P){var a=w.set(t,e);P=!0,d.classList.contains("is-marked")&&w.isComplete()&&(d.classList.remove("is-marked"),m.hidden=!0,p&&(p.hidden=!1)),"all"===a?(w.parts.forEach(S),z(!0)):(S(t),a.forEach((function(t){L(t),b[t].el.scrollTop=w.at[t]*T(t)}))),C()}}function C(){var t=w.words();g.textContent=t.read,f.textContent=null===t.shown?y:t.shown,d.classList.toggle("set",null!==t.shown),v&&(v.value="string"==typeof t.sent?t.sent:""),"object"==typeof t.sent&&Object.keys(t.sent).forEach((function(e){var a=s.querySelector('input[type="hidden"][data-part="'+e+'"]');a&&(a.value=t.sent[e])}))}function R(t){w.opening&&w.opening()&&(P=!0,w.parts.forEach(S),C()),x.open(),z(!1),!t&&b[w.firstPart()].el.focus({preventScroll:!0})}function D(t){x.close(t)}w.parts.forEach((function(t){var e=b[t],a=null,n="",i=0;L(t),e.el.addEventListener("scroll",(function(){clearTimeout(a),a=setTimeout((function(){A()&&M(t,Math.round(e.el.scrollTop/T(t)))}),110)}),{passive:!0}),e.el.addEventListener("keydown",(function(a){var r=w.at[t],o=a.key,s={ArrowDown:1,ArrowUp:-1,PageDown:5,PageUp:-5}[o];if(s)return k(t,r+s,!0),void a.preventDefault();if("Home"===o)return k(t,w.hasBlank?1:0,!0),void a.preventDefault();if("End"===o)return k(t,e.count-1,!0),void a.preventDefault();if("Enter"===o&&w.isComplete())return D(!0),void a.preventDefault();if(1===o.length&&!a.metaKey&&!a.ctrlKey){var c=Date.now();n=c-i>900?o.toLowerCase():n+o.toLowerCase(),i=c;for(var l=w.rows(t),d=-1,u=w.hasBlank?1:0;u<l.length&&d<0;u++)0===l[u].toLowerCase().indexOf(n)&&(d=u);d<0&&w.typed&&(d=w.typed(t,n,l)),d>=0&&(k(t,d,!0),a.preventDefault())}}))})),d.addEventListener("click",(function(){A()?D(!1):R()})),h&&(w.opening&&!w.isComplete()?R(!0):requestAnimationFrame((function(){z(!1)}))),C();var W=s.closest("form");W&&s.hasAttribute("data-required")&&W.addEventListener("submit",(function(t){w.isComplete()||(t.preventDefault(),d.classList.add("is-marked"),m.hidden=!1,p&&(p.hidden=!0),R())}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.charts||(t.charts=!0,function(){function t(t,e,n){e.forEach((function(t,e){t.classList.toggle("is-focused",e===n)}));var i=t.querySelector("[data-chart-scroll]"),r=e[n];if(i&&r){var o=i.getBoundingClientRect(),s=r.getBoundingClientRect();s.left<o.left?i.scrollLeft-=o.left-s.left:s.right>o.right&&(i.scrollLeft+=s.right-o.right),t.matches(":focus-visible")&&requestAnimationFrame((function(){a(t,r)}))}}function e(t){return Array.prototype.slice.call(t.querySelectorAll(".chart-hit"))}function a(t,e){var a=t.querySelector(":scope > .chart-tip");if(a){if(t.classList.toggle("shows-tip",!!e),!e)return void a.classList.remove("is-shown");a.querySelector("b").textContent=e.getAttribute("data-tip-amount"),a.querySelector("span").textContent=e.getAttribute("data-tip-label");var n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=getComputedStyle(e),o=!!e.closest(".is-bars");a.style.setProperty("--tip-left",i.left-n.left+i.width*parseFloat(r.getPropertyValue("--point-left"))/100+"px"),a.style.setProperty("--tip-top",i.top-n.top+i.height*parseFloat(r.getPropertyValue("--point-top"))/100+"px"),a.classList.toggle("is-end",e.classList.contains("is-end")),a.classList.toggle("is-middle",o&&!e.classList.contains("is-end")&&!e.classList.contains("is-start")),a.classList.toggle("is-high",e.classList.contains("is-high")),a.classList.add("is-shown")}}window.zaismaWatch.each("[data-chart-scroll]",(function(t){t.scrollLeft=t.scrollWidth})),document.addEventListener("pointerover",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;e&&a(e.closest(".chart"),e)})),document.addEventListener("pointerout",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;if(e&&!(t.relatedTarget instanceof Element&&t.relatedTarget.closest(".chart-hit"))){var n=e.closest(".chart"),i=n.querySelector(".chart-hit.is-pointed")||(n.matches(":focus-visible")?n.querySelector(".chart-hit.is-focused"):null);a(n,i)}})),document.querySelectorAll("[data-chart-scroll]").forEach((function(t){t.addEventListener("scroll",(function(){var e=t.closest(".chart");a(e,e.querySelector(".chart-hit.is-pointed"))}),{passive:!0})})),document.addEventListener("focusout",(function(t){var e=t.target instanceof Element&&t.target.matches("[data-chart-points]")?t.target:null;e&&a(e,e.querySelector(".chart-hit.is-pointed"))})),document.querySelectorAll(".chart-hit.is-pointed").forEach((function(t){a(t.closest(".chart"),t)})),document.addEventListener("focusin",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n);i.length&&!n.querySelector(".chart-hit.is-focused")&&t(n,i,i.length-1)}})),document.addEventListener("keydown",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n),r=i.indexOf(n.querySelector(".chart-hit.is-focused")),o=r;if("ArrowRight"===a.key||"ArrowUp"===a.key)o=Math.min(i.length-1,r+1);else if("ArrowLeft"===a.key||"ArrowDown"===a.key)o=Math.max(0,r-1);else if("Home"===a.key)o=0;else{if("End"!==a.key)return;o=i.length-1}a.preventDefault(),t(n,i,o)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["long-fields"]||(t["long-fields"]=!0,function(){function t(t){var e=getComputedStyle(t),a=parseFloat(e.lineHeight)||24,n=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom);t.style.height="auto",t.classList.remove("is-scrolling");var i=a*(Number(t.getAttribute("rows"))||2)+n,r=12*a+n;t.classList.toggle("is-scrolling",t.scrollHeight>r+1),t.style.height=Math.max(i,Math.min(t.scrollHeight,r))+"px";var o=Number(t.getAttribute("maxlength")),s=document.getElementById(t.id+"-count");!o||!s||(s.hidden=t.value.length<.8*o,s.textContent=t.value.length.toLocaleString("en-US")+" of "+o.toLocaleString("en-US"))}window.zaismaWatch.each("textarea[data-long-field]",t),window.zaismaWatch.whenRead((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)})),document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("textarea[data-long-field]")&&t(e.target)})),window.zaismaWatch.fontsIn((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sliders||(t.sliders=!0,function(){function t(t){var e=t.closest(".slider"),a=Number(t.min),n=Number(t.max),i=e.querySelector("output"),r=i.getAttribute("data-unit");e.style.setProperty("--fill",((Number(t.value)-a)/Math.max(1e-9,n-a)).toFixed(4));var o=e.querySelector(".slider-slab");o&&o.redrawCut&&o.redrawCut(),i.textContent=Number(t.value).toLocaleString("en-US")+("%"===r?"%":" "+r)}document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("input[data-slider]")&&t(e.target)})),window.addEventListener("pageshow",(function(){document.querySelectorAll("input[data-slider]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["color-fields"]||(t["color-fields"]=!0,function(){function t(t){return"#"+t.map((function(t){return t.toString(16).padStart(2,"0")})).join("").toUpperCase()}function e(t,e,a){function n(n){var i=(n+t/60)%6;return Math.round(255*(a-a*e*Math.max(0,Math.min(i,4-i,1))))}return[n(5),n(3),n(1)]}function a(t){var e=parseInt(t.slice(1),16),a=(e>>16)/255,n=(e>>8&255)/255,i=(255&e)/255,r=Math.max(a,n,i),o=r-Math.min(a,n,i),s=0;return o&&(s=r===a?(n-i)/o%6:r===n?(i-a)/o+2:(a-n)/o+4,(s*=60)<0&&(s+=360)),[s,r?o/r:0,r]}function n(t){var e=/^\\s*(#[0-9a-f]{6})\\s*$/i.exec(t||"");return e?e[1].toUpperCase():null}var i=10;window.zaismaWatch.each("[data-color-field]",(function(r){var o=r.querySelector(".color-button"),s=r.querySelector(".color-pick"),c=r.querySelector(".color-square"),l=r.querySelector(".color-knob"),d=r.querySelector(".color-side .cut-field input"),u=r.querySelector(".color-side .slider-input"),f=r.querySelector(':scope > input[type="hidden"]'),h=o.querySelector(".color-value"),m=o.querySelector(".color-chip"),p=r.querySelector(".color-none button"),g=a(n(f.value)||r.getAttribute("data-color-hex")),v=!!p&&!n(f.value),w=!1,y=window.zaismaFloat(s,{anchor:o,home:r,isAnchorWidth:s.classList.contains("in-place"),onToggle:function(t){o.setAttribute("aria-expanded",String(t)),t&&b()}});function b(a){var n=t(e(g[0],g[1],g[2])),o=v?"var(--clear-swatch)":n;[r,s].forEach((function(a){a.style.setProperty("--color-picked",o),a.style.setProperty("--color-full",t(e(g[0],g[1],1))),a.style.setProperty("--color-brightness",String(g[2]))}));var p=c.clientWidth-20,y=c.clientHeight-20,b=function(t,e){var a=c.cutCorners||[0,0,0,0],n=(l.firstElementChild.cutCorners||[5])[0],r=[c.clientWidth,c.clientHeight];return[[1,1],[-1,1],[-1,-1],[1,-1]].forEach((function(o,s){var c=o[0]>0?t-i:r[0]-t-i,l=o[1]>0?e-i:r[1]-e-i,d=a[s]-n-(c+l);a[s]>n&&d>0&&(t+=o[0]*d/2,e+=o[1]*d/2)})),[t,e]}(i+g[0]/360*p,i+(1-g[1])*y);l.style.left=b[0]+"px",l.style.top=b[1]+"px",c.setAttribute("aria-valuetext",n),m.style.setProperty("--swatch",o),h.textContent=v?"None":n,f.value=v?"":n,a||(d.value=n);var E=Math.round(100*g[2]);Number(u.value)!==E&&(u.value=String(E),w=!0,u.dispatchEvent(new Event("input",{bubbles:!0})),w=!1)}function E(){r.dispatchEvent(new CustomEvent("zaisma:color",{bubbles:!0,detail:{colorValue:f.value}}))}function x(t){return Math.max(0,Math.min(1,t))}function A(t){var e=c.getBoundingClientRect();g[0]=359.99*x((t.clientX-e.left-i)/(e.width-20)),g[1]=1-x((t.clientY-e.top-i)/(e.height-20)),v=!1,b(),E()}c.addEventListener("pointerdown",(function(t){c.setPointerCapture(t.pointerId),c.classList.add("is-held"),A(t),c.focus({preventScroll:!0}),t.preventDefault()})),c.addEventListener("pointermove",(function(t){c.hasPointerCapture(t.pointerId)&&A(t)})),c.addEventListener("pointerup",(function(){c.classList.remove("is-held")})),c.addEventListener("pointercancel",(function(){c.classList.remove("is-held")})),c.addEventListener("keydown",(function(t){var e=t.shiftKey?30:5,a=t.shiftKey?.2:.05;if("ArrowLeft"===t.key)g[0]=Math.max(0,g[0]-e);else if("ArrowRight"===t.key)g[0]=Math.min(359.99,g[0]+e);else if("ArrowUp"===t.key)g[1]=Math.min(1,g[1]+a);else{if("ArrowDown"!==t.key)return;g[1]=Math.max(0,g[1]-a)}t.preventDefault(),v=!1,b(),E()})),u.addEventListener("input",(function(){w||(g[2]=Number(u.value)/100,v=!1,b(),E())})),d.addEventListener("input",(function(){var t=function(t){var e=String(t||"").replace(/[^0-9a-f]/gi,"");return 3===e.length&&(e=e.replace(/./g,"$&$&")),6===e.length?"#"+e.toUpperCase():null}(d.value);t&&(g=a(t),v=!1,b(!0),E())})),d.addEventListener("blur",(function(){b()})),p&&p.addEventListener("click",(function(){v=!0,b(),E()})),o.addEventListener("click",(function(){y.isOpen()?y.close(!1):y.open()})),s.classList.contains("in-place")&&y.open(),b()}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["world-pane"]||(t["world-pane"]=!0,function(){var t=0;function e(e){var a=document.querySelector("[data-world-pane]"),n=document.querySelector(".world-stage");if(a&&n&&!n.classList.contains("is-framed")&&(window.innerWidth!==t||e)){if(t=window.innerWidth,window.innerWidth>760||window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)").matches)return void(a.style.marginTop="");var i=Array.prototype.find.call(a.querySelectorAll("h1, h2"),(function(t){return t.getClientRects().length>0})),r=a.parentElement.querySelector("header.top");a.style.marginTop="0px";var o=(i?i.getBoundingClientRect().bottom:a.getBoundingClientRect().top+120)-a.getBoundingClientRect().top+24,s=r?r.offsetTop+r.offsetHeight+12:12;a.style.marginTop=Math.round(Math.max(s,window.innerHeight-o))+"px"}}window.zaismaPlaceWorldPane=e,window.zaismaWatch.each("[data-world-pane]",(function(t){e(!0),window.zaismaWatch.size(t,(function(){e(!0)}))})),window.zaismaWatch.whenRead((function(){e(!0)})),window.addEventListener("resize",(function(){e()})),window.zaismaWatch.fontsIn((function(){e(!0)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["account-link"]||(t["account-link"]=!0,/(^|; )(__Host-)?zaisma_in=1/.test(document.cookie)&&window.zaismaWatch.each("header.top[data-account-from-cookie] .end > a:is(.run-wrap,.cut-btn)",(function(t){t.href="/account";var e=t.querySelector(".face > span:not([class])");e&&(e.textContent="Account")})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["hidden-amounts"]||(t["hidden-amounts"]=!0,function(){var t="zaisma.payments_amounts_hidden",e=!1;try{e="yes"===localStorage.getItem(t)}catch{}var a="#payments .number-amount, [data-amount]",n="[data-amounts-toggle]";function i(t){t.hasAttribute("data-amount")||t.setAttribute("data-amount",t.textContent),t.textContent=e?"\u2022\u2022\u2022":t.getAttribute("data-amount")}function r(t){t.setAttribute("aria-pressed",String(e));var a=t.querySelector("span:not([class])");a&&(a.textContent=e?"Show amounts":"Hide amounts")}window.zaismaWatch.each(a,i),window.zaismaWatch.each(n,r),document.addEventListener("click",(function(o){if(o.target.closest&&o.target.closest("[data-amounts-toggle]")){e=!e;try{localStorage.setItem(t,e?"yes":"no")}catch{}document.querySelectorAll(a).forEach(i),document.querySelectorAll(n).forEach(r)}}))}())}(),function(){function t(t){return!!t&&!t.matches('[aria-current="page"], [aria-pressed="true"], :disabled, [aria-disabled="true"], :has(> input:checked), :has(> input:disabled)')}window.zaismaWatch.each("[data-edge-light]",(function(e){var a=e.querySelector(":scope > .edge-light");if(a){var n=e.getAttribute("data-edge-light"),i="bottom"===n||"top"===n,r=null,o=null,s=null;e.addEventListener("pointerover",(function(a){if(!a.pointerType||"mouse"===a.pointerType){e.classList.add("is-awake");var n=a.target.closest("[data-lights]");n&&e.contains(n)&&t(n)?d(n):!o&&r&&(o=setTimeout(u,250))}})),e.addEventListener("pointerleave",(function(){u(),e.classList.remove("is-awake")})),e.addEventListener("focusin",(function(a){var n=a.target.closest("[data-lights]");n&&e.contains(n)&&t(n)&&n.matches(":focus-visible")&&(e.classList.add("is-awake"),d(n))})),e.addEventListener("focusout",(function(t){e.contains(t.relatedTarget)||(u(),e.classList.remove("is-awake"))})),e.addEventListener("click",(function(){setTimeout((function(){r&&!t(r)&&u()}),0)})),e.addEventListener("scroll",(function(){r&&l(r,!1)}),!0);var c=e.matches("[data-lights].is-pointed")?e:e.querySelector("[data-lights].is-pointed");c&&d(c)}function l(t,n){var r=e.getBoundingClientRect(),o=t.getBoundingClientRect();n||(a.style.transition="opacity var(--motion-state)"),a.style.setProperty("--light-at",(i?o.left+o.width/2-r.left:o.top+o.height/2-r.top)+"px"),a.style.setProperty("--light-span",(i?o.width:o.height)+"px"),n||(a.offsetWidth,a.style.transition="")}function d(t){clearTimeout(o),o=null,l(t,e.classList.contains("is-lit")),r=t,e.classList.add("is-awake","is-lit"),s||!window.ResizeObserver||((s=new ResizeObserver((function(){r&&(r.getClientRects().length?l(r,!1):u())}))).observe(e),e.querySelectorAll("[data-lights]").forEach((function(t){s.observe(t)})))}function u(){clearTimeout(o),o=null,r=null,e.classList.remove("is-lit")}}))}(),function(){var t=getComputedStyle(document.documentElement);function e(e,a){return parseFloat(t.getPropertyValue(e))||a}function a(t){return document.querySelector('[aria-controls="'+t.id+'"][aria-expanded]')}function n(t){return Array.prototype.slice.call(t.querySelectorAll('[role="menuitem"]')).filter((function(t){return!t.closest("[hidden]")}))}var i=new WeakMap;window.zaismaWatch.each('.dropdown[role="menu"]',(function(t){var r=window.zaismaFloat(t,{anchor:function(){return i.get(t)||a(t)},anchorRect:function(t){var a=t.getBoundingClientRect(),n=t.closest(".top");if(!n)return a;var i=n.getBoundingClientRect();if(i.height>i.width)return{left:i.right+e("--gap-control-stack",8),right:i.right+e("--gap-control-stack",8),top:a.bottom,bottom:a.bottom,width:0,height:0};var r=i.bottom;return{left:a.left,right:a.right,top:r-1,bottom:r,width:a.width,height:1}},isAlwaysBelow:function(t){var e=t.closest(".top");return!!e&&e.offsetHeight<=e.offsetWidth&&!("fixed"===getComputedStyle(e).position&&e.offsetParent)},gapPx:e("--gap-control-stack",8),edgePx:e("--pad-frame",10),scrollBox:function(){return t.querySelector(".floating-body")},onToggle:function(e){var n=i.get(t)||a(t);n&&n.setAttribute("aria-expanded",String(e))},onPlaced:function(){var e=["menu-large","menu-small","menu-large","menu-small"],a=t.classList.contains("from-start");e[t.classList.contains("is-above")?a?3:2:a?0:1]="0",t.getAttribute("data-glass-corners")!==e.join(" ")&&(t.setAttribute("data-glass-corners",e.join(" ")),t.redrawGlass&&t.redrawGlass())}});t.zaismaPlace=r.place,t.addEventListener("keydown",(function(e){var a=n(t),i=a.indexOf(document.activeElement);("ArrowDown"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),a[(i+("ArrowDown"===e.key?1:a.length-1))%a.length].focus()),("Home"===e.key||"End"===e.key)&&(e.preventDefault(),a["Home"===e.key?0:a.length-1].focus()),"Tab"===e.key&&r.close(!1)})),t.addEventListener("click",(function(t){t.target.closest('[role="menuitem"]:not([aria-haspopup], [data-keeps-open])')&&r.close(!1)}))})),document.addEventListener("click",(function(t){var e=t.target.closest&&t.target.closest("[aria-controls][aria-expanded]"),a=e&&document.getElementById(e.getAttribute("aria-controls"));if(a&&a.matches('.dropdown[role="menu"]')&&a.floating){if(a.floating.isOpen()&&i.get(a)===e)return void a.floating.close(!1);i.set(a,e),a.floating.open();var r=n(a)[0];0===t.detail&&r?r.focus({preventScroll:!0}):(a.tabIndex=-1,a.focus({preventScroll:!0}))}}))}(),window.zaismaWatch.each("[data-select]",(function(t){var e=t.querySelector(".select-button"),a=t.querySelector(".select-list"),n=a.querySelector('[role="listbox"]'),i=a.querySelector(".floating-body"),r=t.querySelector('input[type="hidden"]'),o=e.closest(".field"),s=t.querySelector(".select-value");function c(){a.style.maxHeight="";var t=i.scrollHeight-i.clientHeight;t>0&&t<12&&(a.style.maxHeight=Math.floor(a.getBoundingClientRect().height-(12-t))+"px")}if(document.fonts?document.fonts.ready.then(c):c(),window.zaismaWatch.resize(c),a.classList.contains("in-place")){var l=a.querySelector('[aria-selected="true"]')||a.querySelector('[role="option"]');l&&i.scrollHeight>i.clientHeight&&(i.scrollTop=l.offsetTop-(i.clientHeight-l.offsetHeight)/2,a.style.setProperty("--line-from-top",i.offsetTop+l.offsetTop-i.scrollTop+l.offsetHeight/2+"px"))}else{var d=Array.prototype.slice.call(n.querySelectorAll('[role="option"]')),u=-1,f="",h=0,m=window.zaismaFloat(a,{anchor:o,home:t,focusOnClose:e,lineOf:function(){var t=d[Math.max(0,v())];return i.offsetTop+t.offsetTop-i.scrollTop+t.offsetHeight/2},onShown:function(){c();var t=d[Math.max(0,v())];i.scrollHeight>i.clientHeight&&(i.scrollTop=t.offsetTop-(i.clientHeight-t.offsetHeight)/2)},onToggle:function(t){e.setAttribute("aria-expanded",String(t)),o.classList.toggle("is-open",t),t&&(w(Math.max(0,v())),n.focus({preventScroll:!0}))}}),p=v()>=0,g=!1;e.addEventListener("pointerdown",(function(t){"mouse"!==t.pointerType||0!==t.button||(g=!0,b(),document.addEventListener("pointerup",(function(){setTimeout((function(){g=!1}),0)}),{once:!0}))})),e.addEventListener("mousedown",(function(t){0===t.button&&t.preventDefault()})),e.addEventListener("click",(function(){g||b()})),e.addEventListener("keydown",(function(t){("ArrowDown"===t.key||"ArrowUp"===t.key)&&(t.preventDefault(),e.disabled||m.open())})),n.addEventListener("click",(function(t){var e=t.target.closest('[role="option"]');e&&y(d.indexOf(e))})),n.addEventListener("pointermove",(function(t){var e=t.target.closest('[role="option"]');e&&d.indexOf(e)!==u&&w(d.indexOf(e))})),n.addEventListener("keydown",(function(t){var e=t.key,a={ArrowDown:1,ArrowUp:-1,PageDown:5,PageUp:-5}[e];if(a)return w(u+a),void t.preventDefault();if("Home"===e||"End"===e)return w("Home"===e?0:d.length-1),void t.preventDefault();if("Enter"===e||" "===e)return y(u),void t.preventDefault();if("Tab"!==e){if(1===e.length&&!t.metaKey&&!t.ctrlKey){var n=Date.now();f=n-h>900?e.toLowerCase():f+e.toLowerCase(),h=n;var i=d.findIndex((function(t){return 0===t.textContent.toLowerCase().indexOf(f)}));i>=0&&w(i)}}else m.close(!1)}))}function v(){return d.findIndex((function(t){return"true"===t.getAttribute("aria-selected")}))}function w(t){u=Math.max(0,Math.min(d.length-1,t)),d.forEach((function(t,e){t.classList.toggle("is-active",e===u)})),n.setAttribute("aria-activedescendant",d[u].id);var e=d[u],a=e.offsetTop;a<i.scrollTop?i.scrollTop=a:a+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop=a+e.offsetHeight-i.clientHeight)}function y(t){d.forEach((function(e,a){e.setAttribute("aria-selected",String(a===t))})),s.textContent=d[t].textContent,s.classList.remove("is-placeholder"),(r.value!==d[t].getAttribute("data-choice-value")||!p)&&(r.value=d[t].getAttribute("data-choice-value"),r.dispatchEvent(new Event("change",{bubbles:!0}))),p=!0,m.close(!0)}function b(){e.disabled||(m.isOpen()?m.close(!1):m.open())}}));` };
11505
+ var MINIFIED_FIRST_PAINT_SCRIPT = { sourceSha256: "729b0ba4e6cbaf9bf90f3487d0f6fc2e7130e3be914cb8adabe0e7aa2dd25b39", minifiedText: `(function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.theme||(t.theme=!0,function(){var t=document.documentElement,e=window.matchMedia("(prefers-color-scheme: dark)"),a=[];function n(){var e=t.getAttribute("data-theme-choice");return"light"===e||"dark"===e?e:"system"}function i(){return"system"===n()?e.matches?"dark":"light":n()}function r(){var e=i();t.getAttribute("data-theme")!==e&&(t.setAttribute("data-theme",e),a.forEach((function(t){t(e)})))}e.addEventListener&&e.addEventListener("change",r),new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["data-theme-choice"]}),window.zaismaTheme={now:i,choice:n,onChange:function(t){a.push(t)}},r()}())})(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["cutout-side"]||(t["cutout-side"]=!0,function(){if(/iPhone/.test(navigator.userAgent)){var t=document.documentElement;window.addEventListener("orientationchange",e),e()}function e(){var e=window.orientation;90===e?t.setAttribute("data-cutout-side","left"):-90===e?t.setAttribute("data-cutout-side","right"):t.removeAttribute("data-cutout-side")}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["following-files"]||(t["following-files"]=!0,function(){var t=!1,e="loading"!==document.readyState,a=!1;function n(){if(!a&&t&&e){a=!0;var n=[],i=null;document.querySelectorAll("link[rel=preload][data-page-script]").forEach((function(t){document.prerendering&&t.hasAttribute("data-when-opened")?n.push(t):i=r(t)})),n.length&&document.addEventListener("prerenderingchange",(function(){n.forEach(r)}),{once:!0}),i?(i.addEventListener("load",o),i.addEventListener("error",o)):o()}function r(t){var e=document.createElement("script");return e.src=t.href,e.async=!1,document.body.appendChild(e),e}function o(){window.zaismaWatch&&window.zaismaWatch.settled()}}function i(){t=!0,n()}function r(){var t=Array.prototype.slice.call(document.querySelectorAll("link[rel=preload][data-site-style]"));if(t.length){var e=t.length,a=function(){0==--e&&i()};t.forEach((function(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t.href,e.media="print",e.addEventListener("load",(function(){function t(){e.media="all",a()}window.zaismaWatch?window.zaismaWatch.afterArrival(t):t()})),e.addEventListener("error",a),t.after(e)})),setTimeout(i,1e4)}else i()}e?r():document.addEventListener("readystatechange",(function t(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",t),e=!0,r(),n())}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.watch||(t.watch=!0,function(){var t=[],e="working",a=[],n=new Map,i=[],r=[],o=null,s=!1,c=!1,l=null;function d(t){t()}function u(t){var e=new Map;t.forEach((function(t){var a=t.batch||d,n=e.get(a);n||(n=new Set,e.set(a,n)),n.add(t.callback)})),e.forEach((function(t,e){e((function(){t.forEach((function(t){t()}))}))}))}function f(t,e,a,n){e.push({callback:a,batch:n}),!("resize"===t?s:c)&&("resize"===t?(s=!0,window.addEventListener("resize",(function(){u(i.slice())}))):(c=!0,window.addEventListener("scroll",(function(){u(r.slice())}),{passive:!0,capture:!0})))}var h=null;function m(){if(h)return h;var t=["textarea","select","[popover]","dialog",".scrolls","[style*='overflow']"];function e(a){for(var n=0;n<a.length;n++){var i=a[n],r=i.style;r&&i.selectorText&&/auto|scroll|var\\(/.test(r.overflowY+" "+r.getPropertyValue("overflow"))&&t.push(i.selectorText),i.cssRules&&e(i.cssRules)}}return Array.prototype.forEach.call(document.styleSheets,(function(t){try{e(t.cssRules)}catch{}})),h=t,t}function p(t,e){var a;try{a=t.querySelectorAll(e)}catch{try{a=t.querySelectorAll(e.replace(/::[a-z-]+(\\([^)]*\\))?/g,""))}catch{return[]}}return Array.from(a)}function g(t){return t!==document.body&&document.body.contains(t)&&(t.classList.contains("scrolls")&&!t.classList.contains("across")||/^(auto|scroll)$/.test(getComputedStyle(t).overflowY))}window.zaismaWatch={page:function(t){a.push(t)},arriving:function(t){w.push(t)},afterArrival:function(t){var e=document.getAnimations?document.getAnimations().filter((function(t){return("running"===t.playState||"paused"===t.playState)&&/^(page-arrives|opening-game-settles)$/.test(t.animationName||"")})):[];if(e.length){var a=!1;Promise.all(e.map((function(t){return t.finished.catch((function(){}))}))).then(n),setTimeout(n,1e3)}else t();function n(){a||(a=!0,t())}},afterSettling:function(a){window.zaismaWatch.afterArrival((function(){"settled"!==e?(t.push(a),setTimeout(window.zaismaWatch.settled,1500)):a()}))},settled:function(){"working"===e&&(e="painting",requestAnimationFrame((function(){requestAnimationFrame((function(){e="settled",t.splice(0).forEach((function(t){t()}))}))})))},whenRead:function(t){"loading"!==document.readyState?t():y.push(t)},fontArrived:function(t){window.zaismaWatch.fontsIn(t),document.fonts&&document.fonts.addEventListener&&document.fonts.addEventListener("loadingdone",(function(){t()}))},fontsIn:function(t){window.zaismaWatch.whenRead((function(){document.body.offsetHeight,document.fonts&&document.fonts.ready?document.fonts.ready.then(t):t()}))},size:function(t,e,a){if(window.ResizeObserver){o||(o=new ResizeObserver((function(t){var e=[];t.forEach((function(t){(n.get(t.target)||[]).forEach((function(t){e.push(t)}))})),u(e)})));var r=n.get(t);r||(r=[],n.set(t,r),o.observe(t,{box:"border-box"})),r.push({callback:e,batch:a})}else f("resize",i,e,a)},resize:function(t,e){f("resize",i,t,e)},drawAll:function(){var t=i.slice();n.forEach((function(e,a){a.isConnected&&e.forEach((function(e){t.push(e)}))})),u(t)},scroll:function(t){f("scroll",r,t)},scrollBoxes:function(){if(l)return l;var t=new Set;m().forEach((function(e){p(document,e).forEach((function(e){g(e)&&t.add(e)}))}));var e=Array.from(t).sort((function(t,e){return 4&t.compareDocumentPosition(e)?-1:1}));return"loading"!==document.readyState&&(l=e),e},scrollBoxesIn:function(t){var e=new Set;return m().forEach((function(a){var n=p(t,a);try{t.matches(a)&&n.unshift(t)}catch{}n.forEach((function(t){g(t)&&e.add(t)}))})),Array.from(e)},eachArriving:function(t,e){var a=new WeakSet;function n(t){a.has(t)||(a.add(t),e(t))}document.querySelectorAll(t).forEach(n),w.push((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){1!==e.nodeType||!e.isConnected||(e.matches(t)&&n(e),e.querySelectorAll(t).forEach(n))}))}))}))},each:function(t,e){var n=new WeakSet,i=[];function r(t){if(!n.has(t)){if(!E(t))return void i.push(t);n.add(t),e(t)}}function o(){var t=i;i=[],t.forEach(r)}document.querySelectorAll(t).forEach(r),i.length&&document.addEventListener("readystatechange",o),a.push((function(e){o(),e.forEach((function(e){e.addedNodes.forEach((function(e){1!==e.nodeType||!e.isConnected||(e.matches(t)&&r(e),e.querySelectorAll(t).forEach(r))}))}))}))}};var v=[],w=[],y=[],b=/^(IMG|INPUT|IFRAME|CANVAS|VIDEO|AUDIO|SOURCE|BR|HR|LINK|META)$/;function E(t){if("loading"!==document.readyState||b.test(t.nodeName))return!0;for(var e=t;e&&e!==document.body;e=e.parentNode)if(e.nextSibling)return!0;return!1}function A(t){var e=v.concat(t);v=[];var n=e.filter((function(t){return!!function(t){return"childList"!==t.type||Array.prototype.every.call(t.addedNodes,(function(t){return 1!==t.nodeType||E(t)}))}(t)||(v.push(t),!1)}));n.length&&a.slice().forEach((function(t){t(n)}))}new MutationObserver((function(t){var e=function(t){var e=new Map;return t.filter((function(t){if(t.target instanceof SVGElement)return!1;if("attributes"!==t.type)return!0;var a=e.get(t.target);return a||(a={},e.set(t.target,a)),!a[t.attributeName]&&(a[t.attributeName]=!0,t.oldValue!==t.target.getAttribute(t.attributeName))}))}(t);e.length&&w.slice().forEach((function(t){t(e)})),(e.length||v.length)&&A(e)})).observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,attributeFilter:["class","open","hidden"]}),"loading"===document.readyState&&document.addEventListener("readystatechange",(function t(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",t),A([]),y.splice(0).forEach((function(t){t()})),window.zaismaWatch.afterArrival(window.zaismaWatch.drawAll))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["page-switch"]||(t["page-switch"]=!0,function(){var t="zaisma:opening-game",e=document.documentElement;function a(t){try{var e=new URL(t,location.href),a=e.origin===location.origin&&e.pathname.match(/^\\/g\\/([^/]+)$/);return a?a[1]:null}catch{return null}}document.addEventListener("click",(function(e){var n=e.target.closest&&e.target.closest("a[href]"),i=n&&a(n.href);try{sessionStorage.removeItem(t)}catch{}if(!(!i||!n.querySelector(".picture, img")||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||n.target&&"_self"!==n.target||i===a(location.href)))try{sessionStorage.setItem(t,JSON.stringify({slug:i,pressed_at_ms:Date.now()}))}catch{}}));var n=performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],i=!1;if(n&&"back_forward"!==n.type&&!matchMedia("(prefers-reduced-motion: reduce)").matches){try{i=new URL(document.referrer).origin===location.origin}catch{}var r=!1,o=!1;e.classList.add("is-page-arriving","is-page-held"),(!i||"navigate"!==n.type)&&e.classList.add("is-page-arriving-fresh"),document.prerendering?document.addEventListener("prerenderingchange",(function(){s(),c()}),{once:!0}):s();try{new PerformanceObserver((function(t){t.getEntriesByName("first-contentful-paint").length&&c()})).observe({type:"paint",buffered:!0})}catch{c()}setTimeout(c,1e3)}function s(){var n=null;try{n=JSON.parse(sessionStorage.getItem(t)||"null"),sessionStorage.removeItem(t)}catch{}n&&n.slug===a(location.href)&&Date.now()-n.pressed_at_ms<1e4&&e.classList.add("is-opening-game")}function c(){r=!0,o||!r||document.prerendering||(o=!0,requestAnimationFrame((function(){e.classList.remove("is-page-held"),setTimeout((function(){e.classList.remove("is-page-arriving","is-page-arriving-fresh","is-opening-game")}),1500)})))}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["measured-glass"]||(t["measured-glass"]=!0,function(){function t(t){return t.closest(":has(> .backdrop)")}function e(t){var e=t&&t.querySelector(":scope > .backdrop[data-adapts-glass][data-glass-kind], :scope > .backdrop .backdrop[data-adapts-glass][data-glass-kind]");return e?{isSmoked:"smoked"===e.getAttribute("data-glass-kind"),tint:e.getAttribute("data-glass-tint")||""}:null}function a(t,e){t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.hasAttribute("data-theme-choice")||t.setAttribute("data-theme-choice","light"),e.tint&&t.style.setProperty("--glass-tint",e.tint)}window.zaismaWatch&&(window.zaismaWatch.eachArriving("[data-adapts-glass][data-glass-kind]",(function(n){var i=n.parentElement,r=e(i);i&&r&&function(t,e){void 0===t.ownThemeChoice&&(t.ownThemeChoice=t.getAttribute("data-theme-choice")),t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice",t.ownThemeChoice||"light")}(i,r),document.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(n){var i=e(t(n));i&&a(n,i)}))})),window.zaismaWatch.eachArriving("[data-glass]:not([data-cut-line])",(function(n){var i=e(t(n));i&&a(n,i)})))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.pictures||(t.pictures=!0,function(){function t(t,e){if(e)return t.classList.add("at-once"),void t.classList.add("is-shown");t.addEventListener("animationend",(function(){t.classList.add("at-once")}),{once:!0}),t.classList.contains("backdrop")&&window.zaismaWatch&&window.zaismaWatch.afterSettling?window.zaismaWatch.afterSettling((function(){t.classList.add("is-shown")})):t.classList.add("is-shown")}window.zaismaWatch.each("img.reveals",(function(e){var a=!!(window.performance&&performance.getEntriesByType&&performance.getEntriesByType("paint").length);e.complete&&e.naturalWidth&&!a?t(e,!0):e.complete&&e.naturalWidth?(e.decode?e.decode():Promise.resolve()).then((function(){t(e,!1)}),(function(){t(e,!1)})):e.addEventListener("load",(function(){(e.decode?e.decode():Promise.resolve()).then((function(){t(e,!1)}),(function(){t(e,!1)}))}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.glass||(t.glass=!0,function(){var t="http://www.w3.org/2000/svg",e={};function a(t){return t in e||(e[t]=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--"+t.replace(/-(large|small)$/,"-cut-$1")))||0),e[t]}function n(t,e){var n=(t.getAttribute("data-glass-corners")||e).trim().split(/\\s+/);return 1===n.length&&/^[a-z]+$/.test(n[0])&&(n=[n[0]+"-large",n[0]+"-small",n[0]+"-large",n[0]+"-small"]),n.map((function(t){return/^[a-z]+-(large|small)$/.test(t)?a(t):Number(t)||0}))}function i(t){return t.map((function(t){return t[0].toFixed(1)+","+t[1].toFixed(1)})).join(" ")}function r(t){var e=t.querySelector(":scope > .waiting-glint");if(function(t){var e=t.parentElement;return"true"===t.getAttribute("aria-busy")||!!t.querySelector(':scope > input[aria-busy="true"]')||!(!e||"true"!==e.getAttribute("aria-busy"))||t.hasAttribute("data-waits-here")&&!!t.closest('[aria-busy="true"]')}(t))e&&e.classList.contains("is-leaving")&&e.classList.remove("is-leaving"),e||((e=document.createElement("span")).className="waiting-glint",e.setAttribute("aria-hidden","true"),t.insertBefore(e,t.firstChild));else if(e&&!e.classList.contains("is-leaving")){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void e.remove();e.classList.add("is-leaving"),e.addEventListener("animationend",(function(t){"waiting-glint-leaves"===t.animationName&&e.classList.contains("is-leaving")&&e.remove()}))}}["pane","header","menu","strip"].forEach((function(t){a(t+"-large"),a(t+"-small")})),window.zaismaCorners=n,window.zaismaWaiting={redraw:function(t){[t,t.parentElement].concat(Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"))).forEach((function(t){t&&t.hasAttribute("data-cut-line")&&r(t)}))}};var o=[80,100,70,28,12,0,40,62],s={"top-left":80,top:100,"top-right":70,right:28,"bottom-right":12,bottom:0,"bottom-left":40,left:62};function c(e,a,n,r,o){for(;a.length<n.length;){var s=document.createElementNS(t,"polygon");e.appendChild(s),a.push(s)}for(;a.length>n.length;)e.removeChild(a.pop());a.forEach((function(t,e){var a=(e+1)%n.length;t.style.setProperty("--side-light",o[e]+"%"),t.setAttribute("points",i([n[e],n[a],r[a],r[e]]))}))}var l=null;function d(t,e){if(l)t();else{l={rects:new Map,sizes:new Map,groups:new Map,scrollers:new Map,isBatch:!!e,isMeasured:!1};try{t()}finally{l=null}}}function u(t){d(t,!0)}function f(){l.isMeasured=!0,document.querySelectorAll("[data-cut-line], [data-glass]").forEach((function(t){l.rects.set(t,t.getBoundingClientRect()),l.sizes.set(t,[t.offsetWidth,t.offsetHeight])})),document.querySelectorAll("[data-cut-line]").forEach((function(t){(function(t){var e=l.groups.get(t);return e||(e=[],l.groups.set(t,e)),e})(I(t)).push(t)})),document.querySelectorAll("body .own-scroll, body .scrolls, body .layout-track").forEach((function(t){l.scrollers.set(t,h(t))}))}function h(t){return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,scrollLeft:t.scrollLeft,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth}}function m(t){var e=l.scrollers.get(t);return e||(e=h(t),l.scrollers.set(t,e)),e}function p(t){l.isBatch&&!l.isMeasured&&f();var e=l.rects.get(t);return e||(e=t.getBoundingClientRect(),l.rects.set(t,e)),e}function g(t){l.isBatch&&!l.isMeasured&&f();var e=l.sizes.get(t);return e||(e=[t.offsetWidth,t.offsetHeight],l.sizes.set(t,e)),e}function v(t){if(l.isBatch&&!l.isMeasured&&f(),l.isMeasured)return l.groups.get(t)||[];var e=l.groups.get(t);return e||(e=Array.prototype.filter.call((t||document).querySelectorAll("[data-cut-line]"),(function(e){return I(e)===t})),l.groups.set(t,e)),e}var w=new Map,y=!1;function b(){u((function(){w.forEach((function(t,e){e.isConnected?t():w.delete(e)}))}))}window.zaismaRedrawEdges=b;var E=!(!document.fonts||!document.fonts.addEventListener);function A(){E||y||!document.fonts||!document.fonts.ready||"loading"!==document.fonts.status||(y=!0,document.fonts.ready.then((function(){y=!1,b()})))}E&&document.fonts.addEventListener("loadingdone",(function(){b(),ct()}));var x=-1;window.zaismaWatch.size(document.documentElement,(function(){var t=document.documentElement.clientWidth,e=x<0;t!==x&&(x=t,e||(b(),ct()))}),u);var S=0;function z(e,a){var n=e.querySelector(":scope > .edge"),r="zg"+S++,l=null,f="",h="",m=e.hasAttribute("data-cut-line");function p(e,a){var i=document.createElementNS(t,e);for(var r in a)i.setAttribute(r,a[r]);return n.appendChild(i),i}function v(){d(y)}function y(){var t=g(e),d=t[0],u=t[1];if(d&&u){var v,w,y=Math.min(d,u),b=Number(e.getAttribute("data-glass-band"))||Math.max(2,Math.min(4,.04*y));if(l||(n.innerHTML='<defs><linearGradient id="'+r+'fr" x1="0" y1="0" x2="1" y2="0"><stop offset="0" stop-color="#7fd8ff" stop-opacity="0.5"/><stop offset="0.5" stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#ffc58a" stop-opacity="0.5"/></linearGradient><linearGradient id="'+r+'in" x1="1" y1="1" x2="0" y2="0"><stop class="gleam" offset="0"/><stop class="gleam" offset="0.4" stop-opacity="0"/><stop class="gleam" offset="0.75" stop-opacity="0"/><stop class="gleam" offset="1" stop-opacity="0.35"/></linearGradient><linearGradient id="'+r+'sp" x1="0" y1="0" x2="1" y2="1"><stop class="spec" offset="0"/><stop class="spec" offset="0.08"/><stop class="spec" offset="0.3" stop-opacity="0"/></linearGradient></defs>',l={dense:p("path",{class:"dense","fill-rule":"evenodd"}),bevel:p("g",{class:"bevel"}),bevelQuads:[],hair:p("polygon",{class:"hair",fill:"none","stroke-width":"1.2"}),rimBand:p("g",{class:"rim-band"}),rimQuads:[],rim:p("polygon",{class:"rim",fill:"none","stroke-width":"1.6"}),spec:p("polygon",{class:"spec-line",fill:"none",stroke:"url(#"+r+"sp)","stroke-width":"1.4"}),fringe:p("polygon",{class:"fringe",fill:"none",stroke:"url(#"+r+"fr)","stroke-width":"0.8"}),inner:p("polygon",{class:"inner",fill:"none",stroke:"url(#"+r+"in)","stroke-width":"1"}),caustics:m?[]:[1,2,3,4].map((function(t){return{group:p("g",{class:"caustic step-"+t}),quads:[]}})),facets:[]}),m){var E=O(N(e,d,u)),A=d+"x"+u+":"+i(E);if(A===f)return;f=A,e.style.setProperty("--cut-shape",U(E)),e.style.clipPath=U(E),v=function(t){return _(E,t)},w=E.map((function(t,e){return s[G(t,E[(e+1)%E.length])]}))}else{var x=a().map((function(t){return Math.min(t,Math.round(.3*y))})),S=x.join(",")+":"+b;S!==f&&(f=S,e.style.setProperty("--glass-clip","polygon(0 "+x[0]+"px, "+x[0]+"px 0, calc(100% - "+x[1]+"px) 0, 100% "+x[1]+"px, 100% calc(100% - "+x[2]+"px), calc(100% - "+x[2]+"px) 100%, "+x[3]+"px 100%, 0 calc(100% - "+x[3]+"px))"),["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,a){e.style.setProperty("--glass-cut-"+t,x[a]+b*Math.SQRT2+"px")})),window.zaismaCast&&e.classList.contains("floating-pane")&&e.matches(":popover-open")&&window.zaismaCast(e));var z=e.zaismaEdgeShape?e.zaismaEdgeShape(d,u,x):null,L=Number(e.getAttribute("data-glass-lean"));!z&&L&&(z=[[u*L,0],[d,0],[d,u],[0,u]],e.style.setProperty("--glass-clip",U(z))),z&&(z=O(z));var M=d+"x"+u+":"+b+":"+S+(z?":"+i(z):"");if(M===h)return;h&&function(t){rt.add(t),st()}(e),h=M,z?(v=function(t){return _(z,t)},w=z.map((function(t,e){return s[G(t,z[(e+1)%z.length])]}))):(v=function(t){return function(t,e,a,n){var i=n,r=.414*n,o=a.map((function(t){return t>0?t+r:i}));return[[i,o[0]],[o[0],i],[t-o[1],i],[t-i,o[1]],[t-i,e-o[2]],[t-o[2],e-i],[o[3],e-i],[i,e-o[3]]]}(d,u,x,t)},w=o)}n.removeAttribute("viewBox"),l.dense.setAttribute("d","M"+i(v(0))+"Z M"+i(v(1.6*b))+"Z"),c(l.bevel,l.bevelQuads,v(0),v(b),w),c(l.rimBand,l.rimQuads,v(0),v(1.6),w),l.hair.setAttribute("points",i(v(.6))),l.rim.setAttribute("points",i(v(1.6))),l.spec.setAttribute("points",i(v(1.6))),l.fringe.setAttribute("points",i(v(Math.max(2.4,b-.8)))),l.inner.setAttribute("points",i(v(b)));var T=[b,b+2,b+5,b+9,b+14];l.caustics.forEach((function(t,e){c(t.group,t.quads,v(T[e]),v(T[e+1]),w)}));var C=v(0),P=[];for(C.forEach((function(t,e){var a=C[(e+1)%C.length],n=G(t,a);n.indexOf("-")>0&&Math.hypot(a[0]-t[0],a[1]-t[1])>.5&&P.push([t,a,n])}));l.facets.length<P.length;)l.facets.push(p("line",{}));l.facets.forEach((function(t,e){var a=P[e];if(t.style.display=a?"":"none",a){var n="top-left"===a[2];t.setAttribute("class",n?"facet lit":"facet"),t.setAttribute("stroke-width",n?"4.5":"3"),t.setAttribute("x1",a[0][0]),t.setAttribute("y1",a[0][1]),t.setAttribute("x2",a[1][0]),t.setAttribute("y2",a[1][1])}}))}}return n||((n=document.createElementNS(t,"svg")).setAttribute("class","edge"),n.setAttribute("aria-hidden","true"),e.appendChild(n)),v(),e.redrawGlass=function(){v()},window.zaismaWatch.size(e,v,u),m&&(w.set(e,v),A()),v}var L=getComputedStyle(document.documentElement),M=function(t,e){return parseFloat(L.getPropertyValue(t))||e},T=M("--control-slant",10),C=M("--gap-control-row",4),P=M("--gap-control-stack",8),k=4,W=C-T-.5,R=C-T+.5,F=[16,8,16,8],q=2;function D(t){var e=n(t,"header"),a=g(t),i=Math.min(a[0],a[1]);return e.map((function(t){return Math.min(t,Math.round(.3*i))}))}function I(t){var e=t.parentElement&&t.parentElement.closest("[data-glass], [data-cut-line], [data-on-no-pane]");return e&&!e.hasAttribute("data-on-no-pane")?e:null}function B(t,e,a,n){if(t===document.fullscreenElement)return[0,0,0,0];var i=I(t);if(!i&&t.hasAttribute("data-cut-square"))return[0,0,0,0];if(!i){var r=function(t){var e=p(t),a={above:!1,below:!1};return v(null).forEach((function(n){if(n!==t){var i=p(n);if(i.width&&i.height&&!(Math.min(e.right,i.right)-Math.max(e.left,i.left)<Math.min(e.width,i.width)/2)){var r=i.top-e.bottom,o=e.top-i.bottom,s=r>=-1&&r<=P+.5,c=o>=-1&&o<=P+.5;(s||c)&&!n.contains(t)&&!t.contains(n)&&(s&&(a.below=!0),c&&(a.above=!0))}}})),a}(t);return F.map((function(t,n){return(n<2?r.above:r.below)?0:Math.min(t,Math.round(.25*Math.min(e,a)))}))}var o=i===document.fullscreenElement?[0,0,0,0]:i.hasAttribute("data-cut-line")||i.cutCorners?i.cutCorners||[0,0,0,0]:D(i),s=p(t.parentElement&&t.parentElement.classList.contains("toggle-btn")?t.parentElement:t),c=function(t,e){var a=p(e),n=t.parentElement&&t.parentElement.closest(".own-scroll, .scrolls"),i=t.parentElement&&t.parentElement.closest(".layout-track");if(i&&i!==e&&e.contains(i)){var r=m(i);r.scrollWidth>r.clientWidth+1&&(a={top:a.top,bottom:a.bottom,left:a.left-r.scrollLeft,right:a.right+r.scrollWidth-r.clientWidth-r.scrollLeft})}if(!n||n===e||!e.contains(n)||t.parentElement&&"sticky"===getComputedStyle(t.parentElement).position)return a;var o=m(n);return o.scrollHeight<=o.clientHeight+1?a:{top:a.top-o.scrollTop,bottom:a.bottom+o.scrollHeight-o.clientHeight-o.scrollTop,left:a.left,right:a.right}}(t,i),l=n?n.ends:t.getAttribute("data-cut-ends")||"",d=s.top-c.top,u=c.bottom-s.bottom,f=n?n.stack:t.getAttribute("data-cut-stack");if(null!=f){var h=s.left-c.left;d=/first/.test(f)?h:1e6,u=/last/.test(f)?h:1e6}var g=/start/.test(l)?(d+u)/2:s.left-c.left,w=/end/.test(l)?(d+u)/2:c.right-s.right,y=parseFloat(getComputedStyle(i).getPropertyValue("--rail-inset"))||0,b=Math.max(e,a)<3*Math.min(e,a)?.5*Math.min(e,a):1/0;return[[g,d],[w,d],[w,u],[g,u]].map((function(t,e){var a=Math.max(0,t[0])+Math.max(0,t[1]),n=Math.max(0,(o[e]||0)-a+Math.SQRT2*Math.min(a/2,y));return Math.min(b,n>0?Math.max(k,n):0)}))}function H(t,e,a,n,i,r){var o=Math.min(a,t/3),s=n.map((function(t){return Math.min(t,e)}));[[0,3],[1,2]].forEach((function(t){var a=s[t[0]]+s[t[1]];a>e&&(s[t[0]]*=e/a,s[t[1]]*=e/a)}));var c=function(t,e,a,n){return t>=q?[e,a]:[n,n]},l=[].concat(i.start?[[o,0],[o,0]]:c(s[0],[0,s[0]],[s[0],0],[0,0]),i.end?[[t,0],[t,0]]:c(s[1],[t-s[1],0],[t,s[1]],[t,0]),i.end?[[t-o,e],[t-o,e]]:c(s[2],[t,e-s[2]],[t-s[2],e],[t,e]),i.start?[[0,e],[0,e]]:c(s[3],[s[3],e],[0,e-s[3]],[0,e]));if(t>=3*e||r){var d=n.map((function(t){return t>e+.5?t:0})),u=function(e){return Math.max(0,Math.min(t,e))};if(!i.end&&d[2]&&n[1]<q){var f=t+e-d[2];l.splice(2,4,[u(f),0],[u(f),0],[u(f),0],[u(t-d[2]),e])}if(!i.end&&d[1]&&n[2]<q){var h=t-d[1];l.splice(2,4,[u(h),0],[u(h+e),e],[u(h+e),e],[u(h+e),e])}if(!i.start&&d[0]&&n[3]<q){var m=d[0];l.splice(6,2,[u(m-e),e],[u(m-e),e]),l.splice(0,2,[u(m-e),e],[u(m),0])}if(!i.start&&d[3]&&n[0]<q){var p=d[3];l.splice(0,2,[u(p-e),0],[u(p-e),0]),l.splice(6,2,[u(p),e],[u(p-e),0])}}return l}function N(t,e,a,n){if(t.hasAttribute("data-cut-diamond"))return t.cutCorners=[e/2,e/2,e/2,e/2],[[e/2,0],[e,a/2],[e/2,a],[0,a/2]];var i=function(t,e){var a=e?e.beside:t.getAttribute("data-cut-beside");if(null!==a)return{start:/start/.test(a),end:/end/.test(a)};var n=I(t),i=p(t),r={start:!1,end:!1};return v(n).forEach((function(e){if(e!==t){var a=p(e);if(a.width&&a.height&&!(Math.min(i.bottom,a.bottom)-Math.max(i.top,a.top)<Math.min(i.height,a.height)/2)){var n=a.left-i.right,o=i.left-a.right,s=n>=W&&n<=R,c=o>=W&&o<=R;(s||c)&&!e.contains(t)&&!t.contains(e)&&(s&&(r.end=!0),c&&(r.start=!0))}}})),r}(t,n),r=B(t,e,a,n);if(t.hasAttribute("data-cut-beside")){var o=I(t),s=o&&o.getAttribute("data-slanted")||"",c=n?n.ends:t.getAttribute("data-cut-ends")||"";/start/.test(c)&&/start/.test(s)&&(i.start=!0),/end/.test(c)&&/end/.test(s)&&(i.end=!0)}var l=[i.start?0:r[0],i.end?0:r[1],i.end?0:r[2],i.start?0:r[3]].map((function(t){return Math.min(t,a)}));if([[0,3],[1,2]].forEach((function(t){var e=l[t[0]]+l[t[1]];e>a&&(l[t[0]]*=a/e,l[t[1]]*=a/e)})),t.cutCorners=l,!n){var d=((i.start?"start ":"")+(i.end?"end":"")).trim();(t.getAttribute("data-slanted")||"")!==d&&(d?t.setAttribute("data-slanted",d):t.removeAttribute("data-slanted"))}return H(e,a,t.hasAttribute("data-cut-beside")&&Number(t.getAttribute("data-cut-line"))||T,r,i)}function O(t,e){var a=e||.01;return t.filter((function(e,n){var i=t[(n+t.length-1)%t.length];return Math.abs(e[0]-i[0])>a||Math.abs(e[1]-i[1])>a}))}function U(t){return"polygon("+t.map((function(t){return t[0].toFixed(2)+"px "+t[1].toFixed(2)+"px"})).join(", ")+")"}function _(t,e){if(!e)return t;var a=t.length,n=t.map((function(n,i){var r=t[(i+1)%a],o=r[0]-n[0],s=r[1]-n[1],c=Math.hypot(o,s)||1,l=-s/c,d=o/c;return{x:n[0]+l*e,y:n[1]+d*e,dx:o,dy:s,nx:l,ny:d}}));return n.map((function(t,e){var i=n[(e+a-1)%a],r=i.dx*t.dy-i.dy*t.dx;if(Math.abs(r)<1e-6)return[t.x,t.y];var o=((t.x-i.x)*t.dy-(t.y-i.y)*t.dx)/r;return[i.x+i.dx*o,i.y+i.dy*o]}))}var V=["right","top-right","top","top-left","left","bottom-left","bottom","bottom-right"];function G(t,e){var a=e[0]-t[0],n=e[1]-t[1],i=180*Math.atan2(a,n)/Math.PI;return V[(Math.round(i/45)%8+8)%8]}function X(e){var a=e.querySelector(":scope > .cut-line");a||((a=document.createElementNS(t,"svg")).setAttribute("class","cut-line"),a.setAttribute("aria-hidden","true"),e.insertBefore(a,e.firstChild));var n=a.querySelector("polygon")||a.appendChild(document.createElementNS(t,"polygon")),i=[],o="";function s(t){return t.map((function(t){return t[0].toFixed(2)+","+t[1].toFixed(2)})).join(" ")}var c=null;function l(){d(f)}function f(){var d=g(e),u=d[0],f=d[1];if(u&&f){var h=u+"x"+f;c&&c.sizeKey!==h&&(c.sizeKey=h,c.toShape=N(e,u,f),c.fromShape=N(e,u,f,c.from));var m=c?c.toShape:N(e,u,f);if(c){var p=void 0!==c.progress?c.progress:Math.min(1,(performance.now()-c.startMs)/c.ms),v=c.ease?c.ease(p):1-Math.pow(1-p,3),w=c.fromShape;m=m.map((function(t,e){return[w[e][0]+(t[0]-w[e][0])*v,w[e][1]+(t[1]-w[e][1])*v]})),p>=1?c=null:c.isDriven||requestAnimationFrame(l)}var y=u+"x"+f+":"+s(m=O(m));if(y!==o){o=y,e.style.setProperty("--cut-shape",U(m)),e.hasAttribute("data-cut-sizes")&&["top-left","top-right","bottom-right","bottom-left"].forEach((function(t,a){e.style.setProperty("--cut-size-"+t,(e.cutCorners&&e.cutCorners[a]||0).toFixed(1)+"px")})),a.setAttribute("viewBox","0 0 "+u+" "+f),a.setAttribute("preserveAspectRatio","none"),c&&(a.classList.add("is-gliding"),clearTimeout(a.glideEnd),a.glideEnd=setTimeout((function(){a.classList.remove("is-gliding")}),c.ms+200));var b=_(m=O(m,1),1);n.setAttribute("points",s(b)),r(e);var E=Number(e.getAttribute("data-cut-ring"))||0;if(E){var A=a.querySelector(".cut-ring");A||((A=document.createElementNS(t,"polygon")).setAttribute("class","cut-ring"),a.appendChild(A)),A.setAttribute("points",s(_(m,-E)))}w=Number(e.getAttribute("data-cut-inset"))||0;for(var x=_(m,w),S=_(m,w+1.5),z=i.length;i.length<m.length;){var L=document.createElementNS(t,"path");a.insertBefore(L,n),i.push(L)}for(;i.length>m.length;)a.removeChild(i.pop());var M=z>0&&z!==i.length;i.forEach((function(t,e){var a=(e+1)%m.length,n="cut-band on-"+G(m[e],m[a]),i=t.getAttribute("class");i&&i!==n&&(M=!0),t.setAttribute("class",n),t.setAttribute("d","M"+s([x[e],x[a],S[a],S[e]])+"Z")})),M&&!a.classList.contains("is-reshaped")&&(a.classList.add("is-reshaped"),requestAnimationFrame((function(){requestAnimationFrame((function(){a.classList.remove("is-reshaped")}))})))}}}l(),e.redrawCut=function(t){if(t&&t.isFrame)return c&&void 0!==t.progress&&(c.progress=t.progress),void l();c=t&&t.ms>0&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?{from:t.from,ms:t.ms,ease:t.ease,isDriven:!!t.isDriven,startMs:performance.now()}:null,l()},window.zaismaWatch.size(e,l,u);var h=e.parentElement&&e.parentElement.closest("[data-glass], [data-on-no-pane]");h&&h.hasAttribute("data-glass")&&window.zaismaWatch.size(h,l,u),w.set(e,l),A()}var Y=6,K=new Map;function $(t,e){if(/^(IMG|VIDEO|CANVAS|IFRAME)$/.test(t.tagName)||"none"!==e.backgroundImage||function(t){return"none"!==t&&(t.match(/rgba?\\([^)]*\\)/g)||[""]).some((function(t){var e=t.match(/[\\d.]+/g);return!e||e.length<4||Number(e[3])>.04}))}(e.boxShadow))return!0;var a=e.backgroundColor.match(/[\\d.]+/g);return!(!a||!(a.length<4||Number(a[3])>.04))||["Top","Right","Bottom","Left"].some((function(t){return parseFloat(e["border"+t+"Width"])>0&&!/rgba\\(.*, 0\\)|transparent/.test(e["border"+t+"Color"])}))}function j(t){var e=[],a=p(t),n=Math.max.apply(null,D(t))/(1-Math.SQRT2/2);return function t(i){Array.prototype.forEach.call(i.children,(function(i){if(!(i instanceof SVGElement||i.matches("[data-glass], [data-cut-line], .edge, .cut-line, dialog"))){var r=i.getBoundingClientRect();if(r.width&&r.height&&function(t){return[[t.left-a.left,t.top-a.top],[a.right-t.right,t.top-a.top],[a.right-t.right,a.bottom-t.bottom],[t.left-a.left,a.bottom-t.bottom]].some((function(t){return Math.max(0,t[0])+Math.max(0,t[1])<n}))}(r)){if(K.has(i))return void e.push(i);var o=getComputedStyle(i);if("contents"===o.display||"inline"===o.display||"fixed"===o.position)return t(i);"none"===o.clipPath&&Math.min(r.width,r.height)>=Y&&$(i,o)?e.push(i):t(i)}}}))}(t),e}function Q(t){if(!K.has(t)){var e=null;K.set(t,a),w.set(t,a),window.zaismaWatch.size(t,a,u),a()}function a(){d(n)}function n(){var a=g(t),n=a[0],i=a[1];if(n&&i&&t.isConnected){var r=O(H(n,i,0,B(t,n,i),{start:!1,end:!1},t.hasAttribute("data-cut-bar"))),o=4===r.length&&r.every((function(t){return!(0!==t[0]&&t[0]!==n||0!==t[1]&&t[1]!==i)}))?"":U(r.length?r:[[0,0]]);o!==e&&(e=o,o?(t.style.setProperty("--cut-shape",o),t.style.clipPath=o):(t.style.removeProperty("--cut-shape"),t.style.removeProperty("clip-path")))}}}var J,Z="[data-glass]:not([data-cut-line])";function tt(){var t=ot?Array.prototype.slice.call(document.querySelectorAll(Z)):Array.from(rt);ot=!1,rt.clear(),u((function(){t.forEach((function(t){t.isConnected&&j(t).forEach(Q)}))})),document.querySelectorAll("[data-cut-line] > .track-holder > .layout-track, [data-cut-line] > .layout-grid, [data-cut-line] > .grid-one-line > .layout-grid, [data-cut-line] > .grid-lead-cell > .layout-grid, [data-cut-line] > .game-grid-group > .layout-grid").forEach((function(t){var e=t.edgedPieces=Array.prototype.map.call(t.children,et).filter(Boolean);u((function(){e.forEach(Q)})),!t.isCutOnScroll&&(t.isCutOnScroll=!0,t.addEventListener("scroll",(function(){t.edgedPieces.forEach((function(t){var e=K.get(t);e&&e()})),t.querySelectorAll("[data-cut-line]").forEach((function(t){t.redrawCut&&t.redrawCut()}))}),{passive:!0}))}))}function et(t){if(t instanceof SVGElement||t.matches("[data-glass], [data-cut-line], .edge, .cut-line"))return null;var e=getComputedStyle(t);if("none"===e.clipPath&&$(t,e))return t;for(var a=0;a<t.children.length;a+=1){var n=et(t.children[a]);if(n)return n}return null}window.zaismaSettings={set:function(t,e){var a=e||document.documentElement;a.classList.add("eases-settings"),void 0!==t.theme&&("light"===t.theme||"dark"===t.theme?a.setAttribute("data-theme-choice",t.theme):a.removeAttribute("data-theme-choice"));var n=t.glass;n&&void 0!==n.hueColor&&("string"==typeof n.hueColor&&/^#[0-9a-fA-F]{6}$/.test(n.hueColor)?a.style.setProperty("--glass-hue",n.hueColor):a.style.removeProperty("--glass-hue"))},read:function(t){var e=t||document.documentElement,a=e.style.getPropertyValue("--glass-hue").trim();return{theme:e.getAttribute("data-theme-choice")||null,glass:{hueColor:a||null}}}},window.zaismaGlass=z,document.addEventListener("fullscreenchange",(function(){var t=window.zaismaWatch;t&&requestAnimationFrame((function(){t.drawAll(),requestAnimationFrame(t.drawAll)}))})),window.zaismaCutLine=X,window.zaismaInput=(J=!1,document.addEventListener("keydown",(function(t){/^(Shift|Control|Alt|Meta|AltGraph|CapsLock)$/.test(t.key)||(J=!0)}),!0),["pointerdown","mousedown","touchstart"].forEach((function(t){document.addEventListener(t,(function(){J=!1}),!0)})),{isKeyboard:function(){return J}});var at="function"==typeof WeakSet?new WeakSet:{has:function(){return!1},add:function(){}};function nt(t){if(t.querySelectorAll){var e=Array.prototype.slice.call(t.querySelectorAll("[data-glass]")),a=Array.prototype.slice.call(t.querySelectorAll("[data-cut-line]"));t.matches&&t.matches("[data-glass]")&&e.push(t),t.matches&&t.matches("[data-cut-line]")&&a.push(t),a.forEach((function(t){at.has(t)||t.hasAttribute("data-glass")||(at.add(t),X(t))})),e.forEach((function(t){if(!at.has(t)){at.add(t);var e=z(t,(function(){var e=n(t,"pane");if(e.some((function(t){return t>0}))||!I(t))return e;var a=g(t);return t.cutCorners=B(t,a[0],a[1])}));/^[0\\s]+$/.test(t.getAttribute("data-glass-corners")||"")&&(w.set(t,e),A())}}))}}u((function(){nt(document)})),window.zaismaWatch.arriving((function(t){u((function(){t.forEach((function(t){t.addedNodes.forEach(nt)}))}))}));var it=0,rt=new Set,ot=!1;function st(){clearTimeout(it),it=setTimeout(tt,50)}function ct(t){Array.isArray(t)?t.forEach((function(t){(function(t){if(1!==t.nodeType)return[];for(var e=Array.prototype.slice.call(t.querySelectorAll(Z)),a=t.closest(Z);a;)e.push(a),a=a.parentElement&&a.parentElement.closest(Z);return e})(t.target).forEach((function(t){rt.add(t)}))})):ot=!0,st()}ct(),window.zaismaWatch.page(ct)}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.materials||(t.materials=!0,function(){function t(t){var e=t.scrollHeight<=t.clientHeight+1&&t.scrollWidth<=t.clientWidth+1;if(t.classList.toggle("fits",e),!e){for(var a=t.parentElement&&t.parentElement.closest("[data-glass]"),n=0,i=0,r=t;r&&r!==a;)n+=r.offsetLeft,i+=r.offsetTop,r=r.offsetParent;if(r){var o=t.parentElement.closest(".scrolls:not(.fits)");if(o&&a.contains(o))return void["top-left","top-right","bottom-right","bottom-left"].forEach((function(e){t.style.setProperty("--inset-"+e,"9999px")}));var s=Math.max(0,a.offsetWidth-n-t.offsetWidth),c=Math.max(0,a.offsetHeight-i-t.offsetHeight);t.style.setProperty("--inset-top-left",n+i+"px"),t.style.setProperty("--inset-top-right",s+i+"px"),t.style.setProperty("--inset-bottom-right",s+c+"px"),t.style.setProperty("--inset-bottom-left",n+c+"px")}}}window.zaismaFit=t,window.MutationObserver&&new MutationObserver((function(e){e.forEach((function(e){e.target.open&&e.target.querySelectorAll(".scrolls").forEach(t)}))})).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["open"]}),window.zaismaWait=function(t,e){if(!t)return Promise.resolve(e);function a(){t.removeAttribute("aria-busy"),window.zaismaWaiting.redraw(t)}function n(){t.zaismaIsAnswered=!0;var e=(window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:1e3*parseFloat(getComputedStyle(t).getPropertyValue("--waiting-glint-sweep")))-(performance.now()-t.zaismaWaitStart);e>0?t.zaismaWaitEnding=setTimeout(a,e):a()}return clearTimeout(t.zaismaWaitEnding),t.zaismaIsAnswered=!1,"true"!==t.getAttribute("aria-busy")&&(t.zaismaWaitStart=performance.now()),t.setAttribute("aria-busy","true"),window.zaismaWaiting.redraw(t),Promise.resolve(e).then((function(t){return n(),t}),(function(t){throw n(),t}))},document.addEventListener("click",(function(t){var e=t.target.closest&&t.target.closest('[aria-busy="true"]');e&&e!==document.body&&!e.zaismaIsAnswered&&(t.preventDefault(),t.stopImmediatePropagation())}),!0),window.zaismaWatch.each(".scrolls",(function(e){t(e),window.zaismaWatch.size(e,(function(){t(e)})),Array.prototype.forEach.call(e.children,(function(a){window.zaismaWatch.size(a,(function(){t(e)}))}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.rows||(t.rows=!0,function(){if(window.zaismaWatch){var t=new WeakMap;window.zaismaWatch.each(".layout-row",(function(e){n(e),window.zaismaWatch.size(e,(function(){t.get(e)!==a(e)&&n(e)}))})),window.zaismaWatch.fontArrived((function(){document.querySelectorAll(".layout-row").forEach(n)}));var e=".stack-cell, .row-cell";window.zaismaWatch.each(e,i),window.zaismaWatch.page((function(t){t.forEach((function(t){var a="attributes"===t.type?t.target.parentElement:t.target;a&&a.matches&&a.matches(e)&&("attributes"!==t.type||"hidden"===t.attributeName)&&i(a)}))}))}function a(t){return t.offsetWidth+"x"+t.offsetHeight}function n(e){var n=Array.prototype.slice.call(e.children);e.classList.remove("is-wrapped"),e.classList.add("is-measuring");var i=0,r=e.offsetWidth?e.getBoundingClientRect().width/e.offsetWidth:1;e.classList.contains("widths-equal")&&n.forEach((function(t){t.classList.contains("fills")&&(i=Math.max(i,t.getBoundingClientRect().width/(r||1)))})),e.classList.remove("is-measuring");var o=i?Math.ceil(i)+"px":"";e.style.getPropertyValue("--equal-cell-width")!==o&&e.style.setProperty("--equal-cell-width",o);var s="rtl"===getComputedStyle(e).direction,c=null,l=!1;n.forEach((function(t){var e=t.getBoundingClientRect();if(!(e.width<1)){var a=s?-e.right:e.left;null!==c&&a<=c+.5&&(l=!0),c=a}})),l&&e.classList.add("is-wrapped"),t.set(e,a(e))}function i(t){var e=1===t.children.length&&t.firstElementChild.hidden;t.classList.contains("holds-only-hidden")!==e&&t.classList.toggle("holds-only-hidden",e)}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.compacting||(t.compacting=!0,window.zaismaWatch.each("[data-compacts]",(function(t){if(t.hasAttribute("data-stays-compact"))t.classList.add("is-compact");else{var e=t.parentElement&&t.parentElement.querySelector(":scope > [data-scroll-box]");(e||window).addEventListener("scroll",a,{passive:!0}),a()}function a(){var a=e?e.scrollTop:window.scrollY;a>24?t.classList.add("is-compact"):a<=0&&t.classList.remove("is-compact")}})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["header-fit"]||(t["header-fit"]=!0,function(){var t=window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function e(t,e){t.classList.toggle("has-search-button",e>0),t.classList.toggle("has-tight-tabs",e>1),t.classList.toggle("has-icon-tabs",e>2),t.classList.toggle("has-icon-sign-in",e>3),t.classList.toggle("has-narrow-icon-tabs",e>4)}function a(t,a){e(t,a);var n=getComputedStyle(t),i=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);return Array.prototype.forEach.call(t.children,(function(t){var e=getComputedStyle(t);if(!t.classList.contains("edge")&&"none"!==e.display){var a=t.querySelector(":scope > .switch-well .tab-switch");i+=parseFloat(e.marginLeft)+parseFloat(e.marginRight)+(t.matches(".find")?parseFloat(e.minWidth):Math.max(t.offsetWidth,a?function(t){var e=0;return Array.prototype.forEach.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){e=Math.max(e,t.offsetLeft+t.offsetWidth)})),e+parseFloat(getComputedStyle(t).paddingRight)}(a):0))}})),i}function n(n){if(n.clientWidth&&(!n.checkVisibility||n.checkVisibility({contentVisibilityAuto:!0}))){if(t.matches&&n.matches("body > .top"))return void e(n,1);for(var i=n.clientWidth,r=n.neededWidths||(n.neededWidths=[]),o=n.querySelector(".find"),s=!!o&&o.contains(document.activeElement),c=n.classList.contains("searching"),l=!1,d=0;d<5;d++){if(void 0===r[d]){if(s)return;l||(l=!0,n.classList.remove("searching"),n.classList.add("is-measuring"),n.style.width="max-content"),r[d]=a(n,d)}if(r[d]<=i)break}l&&(n.style.width="",n.classList.remove("is-measuring"),c&&n.classList.add("searching")),s&&d>0&&!n.classList.contains("typing-search")&&n.classList.add("searching"),e(n,d)}}function i(e){if(!e.fitToRoom){e.fitToRoom=function(){n(e)},n(e),window.zaismaWatch.size(e,e.fitToRoom);var a=e.querySelector(".tab-switch");a&&window.zaismaWatch.size(a,i),window.zaismaWatch.fontsIn(i),t.addEventListener("change",i)}function i(){e.neededWidths=null,n(e)}}window.zaismaWatch.each("header.top",i),window.zaismaWatch.arriving((function(){var t=document.querySelector("body > header.top");t&&t.nextSibling&&i(t)}))}())}(),function(){var t,e=window.zaismaPieces=window.zaismaPieces||{};e.install||(e.install=!0,t=null,window.addEventListener("beforeinstallprompt",(function(e){e.preventDefault(),t=e,document.querySelectorAll("[data-install-zaisma]").forEach((function(t){t.hidden=!1}))})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-install-zaisma]");!a||!t||(t.prompt(),t=null,a.hidden=!0)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.tables||(t.tables=!0,function(){function t(t){var e=t.querySelector(":scope > table > thead"),a=t.querySelector(":scope > table > tbody > tr > th, :scope > table > thead > tr > th:first-child");t.style.setProperty("--shown-width",t.clientWidth+"px"),t.style.setProperty("--shown-height",t.clientHeight+"px"),e&&t.style.setProperty("--head-height",e.offsetHeight+"px"),a&&t.style.setProperty("--row-head-width",a.offsetWidth+"px")}var e="function"==typeof ResizeObserver?new ResizeObserver((function(e){e.forEach((function(e){var a=e.target.closest(".table-scroll");a&&t(a)}))})):null;window.zaismaWatch.each(".table-scroll",(function(a){if(t(a),e){e.observe(a);var n=a.querySelector(":scope > table");n&&e.observe(n)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.rails||(t.rails=!0,function(){var t=new Set,e=!1;function a(a){t.add(a),!e&&(e=!0,requestAnimationFrame((function(){e=!1;var a=Array.from(t);t.clear();var n=a.map((function(t){return t.place()}));a.forEach((function(t,e){t.putPlace(n[e])}));var i=a.filter((function(t,e){return t.isUnplaced(n[e])})),r=i.map((function(t){return t.place()}));i.forEach((function(t,e){n[a.indexOf(t)]=r[e],t.putPlace(r[e])}));var o=a.map((function(t,e){return t.measure(n[e])}));a.forEach((function(t,e){t.put(n[e],o[e])}))})))}function n(t,e){for(var a=t.nextElementSibling;a&&a.hasAttribute("data-rail");a=a.nextElementSibling)if(a.getAttribute("data-rail")===e)return!0;return!1}function i(t,e){t.map((function(t){var e="TEXTAREA"===t.tagName||"SELECT"===t.tagName&&(t.multiple||t.size>1);if(/^(SELECT|INPUT)$/.test(t.tagName)&&!e||n(t,"box")||"none"===getComputedStyle(t).scrollbarWidth&&!t.hasAttribute("data-side-rail")&&!t.classList.contains("own-scroll")||t.classList.contains("rail-thumb"))return null;var a=t.parentElement;return a&&a!==document.body?{box:t,isControl:e,isParentStatic:"static"===getComputedStyle(a).position}:null})).forEach((function(t){t&&(t.isParentStatic&&(t.box.parentElement.style.position="relative"),t.box.insertAdjacentHTML("afterend",'<div class="rail" data-rail="box" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>'))})),e.querySelectorAll("[data-side-rail]").forEach((function(t){n(t,"side")||t.insertAdjacentHTML("afterend",'<div class="rail sideways" data-rail="side" aria-hidden="true"><div class="rail-line carving deep" data-cut-line="3" data-cut-sizes><svg class="cut-line" aria-hidden="true"><polygon/></svg><div class="rail-groove"><div class="rail-thumb"></div></div></div></div>')}))}var r=new WeakSet,o=!1;function s(){var t=document.querySelector("body > header.top");return!(!t||!t.nextElementSibling)}function c(){document.querySelectorAll("[data-rail]").forEach((function(t){if(!r.has(t)){if("page"===t.getAttribute("data-rail")&&"loading"===document.readyState&&!s())return document.documentElement.classList.add("own-scroll"),void(o||(o=!0,window.zaismaWatch.arriving((function(){s()&&c()})),window.zaismaWatch.whenRead(c)));r.add(t);for(var e="page"===t.getAttribute("data-rail"),n="side"===t.getAttribute("data-rail"),i=e?null:t.previousElementSibling;i&&i.hasAttribute("data-rail");)i=i.previousElementSibling;if(i&&!i.matches("[data-rail-scroller]")&&(i=i.querySelector(":scope > [data-rail-scroller]")||i),e||i){var l=t.querySelector(".rail-groove"),d=t.querySelector(".rail-thumb"),u=getComputedStyle(t),f=parseFloat(u.getPropertyValue("--rail-reach"))||16,h=parseFloat(u.getPropertyValue("--rail-width"))||10,m=2*Math.SQRT2,p=e&&window.CSS&&CSS.supports("animation-timeline: scroll()");p&&t.classList.add("follows-scroll"),e?document.documentElement.classList.add("own-scroll"):i.classList.add("own-scroll");var g=!1,v=function(){return parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||90},w=e?Array.prototype.filter.call(document.querySelectorAll("[data-rail-mark]"),(function(t){return!t.closest("[data-rail-marks-own]")})):Array.prototype.filter.call(i.querySelectorAll("[data-rail-mark]"),(function(t){var e=t.parentElement.closest("[data-side-rail], [data-rail-marks-own]");return!e||e===i||!i.contains(e)}));!e&&w.length&&i.setAttribute("data-rail-marks-own","");var y=null;w.length&&((y=document.createElement("span")).className="tag rail-name rail-riding",y.setAttribute("data-cut-line","0"),y.appendChild(document.createElement("span")),t.appendChild(y));var b=w.map(q);e&&"loading"===document.readyState&&window.zaismaWatch.arriving((function(){var e=b.map((function(t){return t.part})),n=Array.prototype.filter.call(document.querySelectorAll("[data-rail-mark]"),(function(t){return e.indexOf(t)<0&&!t.closest("[data-rail-marks-own]")}));n.length&&(y||((y=document.createElement("span")).className="tag rail-name rail-riding",y.setAttribute("data-cut-line","0"),y.appendChild(document.createElement("span")),t.appendChild(y)),n.forEach((function(t){b.push(q(t))})),a(S))}));var E={track:0,thumb:0,max:1,start:0,startIn:m},A=t.querySelector(".rail-line"),x=e?document.querySelector("[data-rail-starts-below]"):null,S={place:function(){var a={whole:e?document.documentElement.scrollHeight:n?i.scrollWidth:i.scrollHeight,view:e?window.innerHeight:n?i.clientWidth:i.clientHeight};if(a.max=a.whole-a.view,x){var r=x.getBoundingClientRect();a.top=r.height>r.width?"":Math.round(r.bottom+10)+"px"}if(!e){var o=i.closest("[data-glass], .carving"),s=t.offsetParent;if(o&&s){var c=o.getBoundingClientRect(),l=parseFloat(getComputedStyle(o).getPropertyValue("--rail-inset"))||0,d=Math.min(c.width,c.height),u=(o.cutCorners||(window.zaismaCorners?window.zaismaCorners(o,"pane"):[0,0,0,0])).map((function(t){return Math.min(t,Math.round(.3*d))})),m=l*(Math.SQRT2-1),p=function(t){return Math.max(l,t-h+m)};if(n){var g=t.getBoundingClientRect(),v=g.left-(parseFloat(t.style.marginLeft)||0),w=g.right+(parseFloat(t.style.marginRight)||0),y=c.bottom-g.bottom<=l+2,b=i.querySelector(":scope > table.has-row-heads > tbody > tr > th"),E=b?b.offsetWidth:0,A=i.getBoundingClientRect();a.side=y?{left:Math.max(0,c.left+p(u[3])-v,E?A.left+E+l-v:0),right:Math.max(0,w-(c.right-p(u[2])))}:{left:0,right:0}}else{var S=s.getBoundingClientRect(),z=i.getBoundingClientRect(),L=o.offsetWidth?c.width/o.offsetWidth:1,M=i.querySelector(":scope > table > thead"),T=p(u[1]),C=p(u[2]),P=M?M.offsetHeight:0,k=i.classList.contains("shows-side-rail")&&i.nextElementSibling&&i.nextElementSibling.matches(".rail.sideways")?(h+2*l)*L:0,W=z.top+(P?(P+l)*L:0),R=z.bottom-k,F=Math.max(W,c.top+T*L),q=Math.min(R,c.bottom-C*L),D=Math.min(z.right,c.right-l*L);a.box={top:(F-S.top)/L-s.clientTop,height:Math.max(0,q-F)/L,left:(D-S.left)/L-s.clientLeft-(f+h)/2}}}}return a},putPlace:function(a){void 0!==a.top&&(t.style.top=a.top),a.side&&(t.style.marginLeft=a.side.left.toFixed(1)+"px",t.style.marginRight=a.side.right.toFixed(1)+"px"),a.box&&(t.style.top=a.box.top.toFixed(1)+"px",t.style.height=a.box.height.toFixed(1)+"px",t.style.left=a.box.left.toFixed(1)+"px"),g!==a.max>4&&(g=a.max>4,t.classList.toggle("is-on",g)),e||i.classList.toggle(n?"shows-side-rail":"shows-rail",g)},isUnplaced:function(t){return!e&&g&&!t.box&&!t.side},measure:function(){if(!g)return null;var t=e&&b.length?v():0;return{track:(n?l.clientWidth:l.clientHeight)-H(!0)-H(!1),start:(n?l.offsetLeft+l.parentElement.offsetLeft:l.offsetTop+l.parentElement.offsetTop)+H(!0),startIn:H(!0),at:D(),marks:b.map((function(e){return!!e.part.offsetParent?{shown:!0,spot:F(e.part,t),size:n?e.name.offsetWidth:e.name.offsetHeight}:{shown:!1}}))}},put:function(t,e){if(e){var a=e.track,i=t.max,r=Math.max(36,Math.round(a*t.view/t.whole));E={track:a,thumb:r,max:i,start:e.start,startIn:e.startIn},p?d.style.setProperty("--thumb-share",(t.view/t.whole).toFixed(4)):d.style[n?"width":"height"]=r+"px",O(e.at),b.forEach((function(t,o){var s=e.marks[o];if(t.mark.hidden=!s.shown,s.shown){var c=Math.max(0,Math.min(i,s.spot));t.mark.style[n?"left":"top"]=(e.start+(a-r)*c/i+r/2).toFixed(1)+"px",t.size=s.size||(n?t.name.offsetWidth:t.name.offsetHeight)}})),function(t){b.forEach((function(e){if(!e.mark.hidden){var a=parseFloat(e.mark.style[n?"left":"top"])||0,i=(e.size||0)/2,r=Math.max(i,Math.min(t-i,a));e.restShift=(r-a).toFixed(1)+"px",e.name.style.setProperty("--label-shift",e.restShift)}}))}(a)}}},z=!1,L=0,M=!1;(e?window:i).addEventListener("scroll",(function(){U(),!M&&(M=!0,requestAnimationFrame((function(){M=!1,O()})))}),{passive:!0}),window.zaismaWatch.resize(N);var T=e?document.body:Array.prototype.filter.call(i.children,(function(t){return!t.matches("svg, .edge, .cut-line, .rail")}));e?window.zaismaWatch.size(T,N):Array.prototype.concat.apply([i],Array.prototype.slice.call(T)).forEach((function(t){window.zaismaWatch.size(t,N)})),x&&window.zaismaWatch.size(x,N),e||window.zaismaWatch.page((function(t){t.some((function(t){return i.contains(t.target)}))&&N()}));var C=null;d.addEventListener("pointerdown",(function(t){_(t,!1)}));var P=!1,k=null,W=0;t.addEventListener("pointerdown",(function(t){if(!d.contains(t.target)){if(t.target.closest(".rail-mark")){var e=d.getBoundingClientRect();return void((P=B(t)>=(n?e.left:e.top)&&B(t)<=(n?e.right:e.bottom))&&(k=t.target.closest(".rail-mark"),W=B(t),_(t,!1)))}_(t,!0)}})),t.addEventListener("pointermove",V),window.addEventListener("pointermove",(function(e){C&&!t.hasPointerCapture(e.pointerId)&&V(e)})),window.addEventListener("pointerup",(function(e){C&&!t.hasPointerCapture(e.pointerId)&&Y(e)})),window.addEventListener("pointercancel",(function(){C&&G()})),t.addEventListener("pointermove",X),t.addEventListener("pointerdown",X);var R=18;t.addEventListener("pointerup",Y),t.addEventListener("pointercancel",G),N(),U()}}function F(t,a){if(e)return t.getBoundingClientRect().top+window.scrollY-(void 0===a?v():a);var r=i.getBoundingClientRect(),o=t.getBoundingClientRect();return n?o.left-r.left+i.scrollLeft:o.top-r.top+i.scrollTop}function q(a){var r=document.createElement("button"),o=document.createElement("span");function s(){var t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth";e?window.scrollTo({top:F(a),behavior:t}):i.scrollTo(n?{left:F(a),behavior:t}:{top:F(a),behavior:t})}return r.type="button",r.className="rail-mark",r.tabIndex=-1,o.className="tag rail-name",o.setAttribute("data-cut-line","0"),o.appendChild(document.createElement("span")).textContent=a.getAttribute("data-rail-mark"),r.appendChild(o),t.appendChild(r),r.addEventListener("click",(function(){P?P=!1:s()})),r.goToPart=s,{part:a,mark:r,name:o}}function D(){return e?window.scrollY:n?i.scrollLeft:i.scrollTop}function I(t){e?window.scrollTo(0,t):n?i.scrollLeft=t:i.scrollTop=t}function B(t){return n?t.clientX:t.clientY}function H(t){if(e)return m;var a=A.cutCorners||[0,0,0,0],i=n?t?a[3]:a[2]:t?a[1]:a[2];return Math.max(0,i-(4-2*Math.SQRT2)-(n?l.clientHeight:l.clientWidth))}function N(){C?z=!0:a(S)}function O(t){C&&X(),g&&!p&&(d.style.transform=(n?"translateX(":"translateY(")+(E.startIn+(E.track-E.thumb)*Math.min(1,(void 0===t?D():t)/E.max)).toFixed(1)+"px)")}function U(){t.classList.contains("awake")||t.classList.add("awake"),clearTimeout(L),L=setTimeout((function(){t.classList.remove("awake")}),1100)}function _(a,r){a.preventDefault();var o=D();if(r){var s=B(a)-(n?l.getBoundingClientRect().left:l.getBoundingClientRect().top)-E.thumb/2;I(Math.max(0,Math.min(1,s/(E.track-E.thumb)))*E.max)}C={y:B(a),last:B(a),from:D(),scrolls:[o,D()],isMoving:"mouse"===a.pointerType,isTouch:"mouse"!==a.pointerType},t.classList.add("dragging"),!e&&"none"!==getComputedStyle(i).scrollSnapType&&i.classList.add("is-dragged");try{t.setPointerCapture(a.pointerId)}catch{}}function V(t){if(C){var a=function(t){var a=B(t);if(!C.isTouch||!e)return a;var n=a+window.scrollY,i=a,r=1/0;return C.scrolls.forEach((function(t){var e=n-t,a=Math.abs(e-C.last);a<r&&(r=a,i=e)})),i}(t);if(C.last=a,!C.isMoving){if(Math.abs(a-C.y)<6)return;C.isMoving=!0,C.y=a,C.from=D()}var n=Math.max(0,Math.min(E.max,C.from+(a-C.y)*E.max/Math.max(1,E.track-E.thumb)));Math.abs(n-D())<1||(I(n),C.scrolls.push(D()),C.scrolls.length>8&&C.scrolls.shift())}}function G(){C=null,t.classList.remove("dragging"),function(){if(!e&&i.classList.contains("is-dragged")){var t=i.getBoundingClientRect(),a=getComputedStyle(i),r=D(),o=parseFloat(n?a.scrollPaddingLeft:a.scrollPaddingTop)||0,s=n?t.left+i.clientLeft:t.top+i.clientTop,c=Array.prototype.filter.call(i.children,(function(t){return getComputedStyle(t).scrollSnapAlign.indexOf("start")>=0})).map((function(t){var e=t.getBoundingClientRect();return Math.max(0,Math.min(E.max,r+(n?e.left:e.top)-s-o))}));c.push(0,E.max);var l=c.length?c.reduce((function(t,e){return Math.abs(e-r)<Math.abs(t-r)?e:t})):r,d=function(){C||i.classList.remove("is-dragged")},u=1e3*parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-arrive"))||300;if(Math.abs(l-r)<1||matchMedia("(prefers-reduced-motion: reduce)").matches)return I(l),d();var f=performance.now();!function t(e){if(!C){var a=Math.min(1,(e-f)/u);I(r+(l-r)*(1-Math.pow(1-a,3))),a<1?requestAnimationFrame(t):d()}}(f)}}(),z&&(z=!1,N())}function X(){if(b.length&&C){var t=E.start+(E.track-E.thumb)*Math.min(1,D()/E.max)+E.thumb/2,a=null,r=e?{start:0,size:window.innerHeight}:(o=i.getBoundingClientRect(),{start:n?o.left:o.top,size:n?o.width:o.height});b.forEach((function(t){if(!t.mark.hidden){var e=t.part.getBoundingClientRect();(!a||(n?e.left:e.top)-r.start<=r.size/3)&&(a=t)}})),a&&y.lastChild.textContent!==a.name.textContent&&(y.lastChild.textContent=a.name.textContent),y.style.setProperty("--riding-at",t.toFixed(1)+"px")}var o}function Y(t){var e=!(!C||!C.isMoving),a=k&&Math.abs(B(t)-W)<4?k:null;if(k=null,G(),a)a.goToPart();else if(e&&"mouse"!==t.pointerType&&b.length){var i=E.start+(E.track-E.thumb)*Math.min(1,D()/E.max)+E.thumb/2,r=null,o=R;b.forEach((function(t){if(!t.mark.hidden){var e=Math.abs(parseFloat(t.mark.style[n?"left":"top"])-i);e<=o&&(o=e,r=t)}})),r&&r.mark.click()}}}))}i(window.zaismaWatch.scrollBoxes(),document),c(),window.zaismaWatch.page((function(t){var e=[],a=!1,n=!1;t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||(t.matches("[data-rail]")&&!r.has(t)&&(n=!0),!t.closest(".rail, svg, .edge, .cut-line")&&(window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),(t.matches("[data-side-rail]")||t.querySelector("[data-side-rail]"))&&(a=!0)))}))})),(e.length||a||n)&&(i(e,document),c())}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["scroll-fades"]||(t["scroll-fades"]=!0,function(){var t=window.matchMedia("(max-width: 760px), (max-height: 500px)"),e=[],a=null;function n(){return t.matches?20:34}window.zaismaScrollFadePx=n;var i=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-glide"))||.45),r=window.matchMedia("(prefers-reduced-motion: reduce)"),o=new WeakMap;function s(t,e,a,n){var s=o.get(t);s||(s={},o.set(t,s));var c=n&&!r.matches&&t.animate,l=c?getComputedStyle(t).getPropertyValue(e).trim():"";if(s[e]&&(s[e].cancel(),s[e]=null),a(),c){var d=getComputedStyle(t).getPropertyValue(e).trim(),u={};!l||d===l||(u[e]=[l,d],s[e]=t.animate(u,{duration:i,easing:"cubic-bezier(.4, 0, .2, 1)"}))}}function c(t,e,a){var n=a+"px";t.style.getPropertyValue(e)!==n&&s(t,e,(function(){t.style.setProperty(e,n)}),t.isFadeEased)}function l(t){var e=t.querySelector(":scope > table > thead");return{scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,headPx:e?e.offsetHeight:null}}function d(t){var e=t.map(l);t.forEach((function(t,a){!function(t,e){var a=e.scrollHeight>e.clientHeight+1,i=e.scrollTop>.5?n():0,r=e.scrollHeight-e.clientHeight-e.scrollTop>.5?n():0;c(t,"--fade-top",Math.max(0,i)),c(t,"--fade-bottom",Math.max(0,r)),null!==e.headPx&&t.style.setProperty("--fade-from",e.headPx+"px"),t.classList.toggle("is-fading",a),t.classList.toggle("is-scrollable",a),t.isFadeEased=!0}(t,e[a])}))}function u(t){a=new Set,t();var e=Array.from(a);a=null,d(e)}function f(t){a?a.add(t):d([t])}function h(t){t.classList.toggle("is-scrollable",t.scrollHeight>t.clientHeight+1)}var m=new WeakSet;function p(t){m.has(t)||(m.add(t),h(t),window.zaismaWatch.size(t.firstElementChild||t,(function(){h(t)})),t.addEventListener("input",(function(){h(t)})))}function g(t){var a=t.filter((function(t){return!t.classList.contains("scroll-fades")&&(!(/^(TEXTAREA|SELECT|INPUT)$/.test(t.tagName)||t.hasAttribute("data-scroll-box")||t.hasAttribute("data-own-fade"))||(p(t),!1))}));e=e.filter((function(t){return t.isConnected})),a.forEach((function(t){t.classList.add("scroll-fades"),e.push(t);var a=!1;function n(e){Array.prototype.forEach.call(e,(function(e){1===e.nodeType&&window.zaismaWatch.size(e,(function(){f(t)}),u)}))}t.addEventListener("scroll",(function(){a||(a=!0,requestAnimationFrame((function(){a=!1,f(t)})))}),{passive:!0}),window.zaismaWatch.size(t,(function(){f(t)}),u),n(t.children),new MutationObserver((function(t){t.forEach((function(t){n(t.addedNodes)}))})).observe(t,{childList:!0})})),d(a)}window.zaismaWatch.each("[data-scroll-box]",p),g(window.zaismaWatch.scrollBoxes()),window.zaismaWatch.page((function(t){var e=[];t.forEach((function(t){Array.prototype.forEach.call(t.addedNodes||[],(function(t){1!==t.nodeType||!t.isConnected||t.closest(".rail, svg, .edge, .cut-line")||window.zaismaWatch.scrollBoxesIn(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)}))}))})),e.length&&g(e)})),window.zaismaWatch.resize((function(){d(e)}));var v=window.matchMedia("(prefers-reduced-motion: reduce)").matches;window.zaismaWatch.each("[data-fades-sideways]",(function(t){function e(){return Array.prototype.filter.call(t.querySelectorAll(":scope > *, :scope > * > *"),(function(e){return!(e.classList.contains("folded")||e.hasAttribute("aria-hidden")||e.children.length&&e.parentElement===t&&e.querySelector(":scope > a, :scope > button, :scope > .cover"))&&(e.getBoundingClientRect().width>=1&&!/^(absolute|fixed)$/.test(getComputedStyle(e).position))}))}var a=null;function n(){a||function(){var n=t.getBoundingClientRect(),i=1/0,r=-1/0,o=t.scrollLeft;e().forEach((function(t){var e=t.getBoundingClientRect();i=Math.min(i,e.left),r=Math.max(r,e.right)})),a={start:i===1/0?null:i-n.left+o,end:r-n.left+o,width:t.clientWidth,whole:t.scrollWidth}}();var n=t.scrollLeft,i=n,r=a.whole-a.width-n;return null===a.start?{before:i,after:r}:{before:Math.max(n-a.start,i),after:Math.max(a.end-n-a.width,r)}}function i(e,a,n){t.classList.contains(e)!==n&&s(t,a,(function(){t.classList.toggle(e,n)}),t.isSideFadeEased)}function r(){var t=n();return i("more-left","--fade-left",t.before>2),i("more-right","--fade-right",t.after>2),t}var o=t.querySelector('[aria-current="page"], [aria-pressed="true"]'),c=!1;function l(){a=null,o&&!c&&t.scrollWidth-t.clientWidth>1&&(c=!0,t.showWhole(o,!1)),r()}function d(e){var a=e.getBoundingClientRect(),n=a.left-t.getBoundingClientRect().left+t.scrollLeft;return{start:n,end:n+a.width}}t.showWhole=function(a,n){var i=getComputedStyle(t),r=t.scrollWidth-t.clientWidth,o=t.scrollLeft,s=d(a),c=parseFloat(i.scrollPaddingLeft)||0,l=parseFloat(i.getPropertyValue("--fade-sideways-px"))||c;if(!(r<=1)){var u=function(t){return t<r-1?l:0},f=o;s.start<o+(o>1?c:0)?f=s.start-c:s.end>o+t.clientWidth-u(o)&&(f=s.start-c,e().some((function(e){var a=Math.max(0,Math.min(r,d(e).start-c));return a>o&&s.end<=a+t.clientWidth-u(a)&&(f=a,!0)})));var h=e(),m=a===h[h.length-1];if(a===h[0]?f=0:m&&(f=r),f=Math.max(0,Math.min(r,f)),!(Math.abs(f-o)<1)){if(!n||v)return void(t.scrollLeft=f);t.scrollTo({left:f,behavior:"smooth"}),clearTimeout(t.settleTimer),t.settleTimer=setTimeout((function(){m&&(f=t.scrollWidth-t.clientWidth),Math.abs(t.scrollLeft-f)>1&&t.scrollTo({left:f,behavior:"smooth"})}),450)}}},o&&window.zaismaWatch.fontsIn((function(){c&&t.showWhole(o,!1)}));var u=!1;t.addEventListener("scroll",(function(){u||(u=!0,requestAnimationFrame((function(){u=!1,r()})))}),{passive:!0}),window.zaismaWatch.size(t,l),t.firstElementChild&&window.zaismaWatch.size(t.firstElementChild,l),window.zaismaWatch.fontArrived(l),t.fadeEndsAgain=l,l(),requestAnimationFrame((function(){requestAnimationFrame((function(){t.isSideFadeEased=!0}))}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.backdrop||(t.backdrop=!0,function(){var t="float h1(float n){return fract(sin(n*127.1)*43758.5453);}\\nfloat h2(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}\\nvec2 h22(vec2 p){p=vec2(dot(p,vec2(127.1,311.7)),dot(p,vec2(269.5,183.3)));return fract(sin(p)*43758.5453);}\\nfloat noise(vec2 p){vec2 i=floor(p),f=fract(p);vec2 u=f*f*(3.0 - 2.0*f);\\n return mix(mix(h2(i),h2(i + vec2(1.0,0.0)),u.x),mix(h2(i + vec2(0.0,1.0)),h2(i + vec2(1.0,1.0)),u.x),u.y);}\\nfloat fbm(vec2 p){float v=0.0,a=0.5;for(int i=0;i<5;i++){v +=a*noise(p);p=p*2.03 + 1.7;a*=0.5;}return v;}\\nfloat motes(vec2 p,float size,float chance,float seed){\\n vec2 id=floor(p),f=fract(p)- 0.5;vec2 r=h22(id + seed)- 0.5;\\n float on=step(1.0 - chance,h2(id + seed*1.3));\\n float d=length(f - r*0.7);\\n return on*smoothstep(size,0.0,d);\\n}\\n",e="uniform vec2 zaismaViewOffset;\\nout vec4 zaismaFragColor;\\nvoid main() { vec4 color = vec4(0.0); mainImage(color, gl_FragCoord.xy + zaismaViewOffset); zaismaFragColor = vec4(color.rgb, 1.0); }",a="/js/zaisma-shader.8fcb55f6a1be6e26.js",n="zaisma-shader-parts",i=null,r=!1;try{var o=JSON.parse(localStorage.getItem(n));o&&o.path===a&&(i=o.parts)}catch{}function s(){if(!i&&!r){r=!0;var t=document.createElement("script");t.src=a,document.head.appendChild(t)}}window.zaismaShaderPartsArrived=function(t){i=t;try{localStorage.setItem(n,JSON.stringify({path:a,parts:t}))}catch{}y()};var c="#version 300 es\\nprecision highp float;\\nprecision highp int;\\nprecision highp sampler2D;\\nuniform vec3 iResolution;\\nuniform float iTime;\\nuniform float iTimeDelta;\\nuniform int iFrame;\\nuniform float iQuality;\\nuniform sampler2D iChannel0;\\nuniform sampler2D iChannel1;\\nuniform sampler2D iChannel2;\\nuniform sampler2D iChannel3;\\nuniform vec3 iChannelResolution[4];\\nuniform vec4 iGlassPanes[16];\\nuniform int iGlassPaneCount;\\n#line 1\\n",l=6e4,d=33,u=67,f=window.matchMedia("(prefers-reduced-motion: reduce)"),h=[],m=0,p=!1,g=!1,v=!0,w=!1;function y(){p||(p=!0,g=!0,requestAnimationFrame(lt))}function b(t){var e=t.trim().replace("#","");3===e.length&&(e=e.split("").map((function(t){return t+t})).join(""));var a=parseInt(e,16)||0;return[(a>>16&255)/255,(a>>8&255)/255,(255&a)/255]}function E(t){var e=getComputedStyle(t);return{base:b(e.getPropertyValue("--backdrop-base")),a:b(e.getPropertyValue("--backdrop-a")),b:b(e.getPropertyValue("--backdrop-b")),c:b(e.getPropertyValue("--backdrop-c")),isDark:/dark/.test(e.colorScheme||"")}}var A=!0,x=!0,S=[];function z(){x=!0,y()}function L(t){return t.closest(":has(> .backdrop)")}function M(t){var e=function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return.2126*e(t[0])+.7152*e(t[1])+.0722*e(t[2])}function T(t,e){var a=M(t),n=M(e);return(Math.max(a,n)+.05)/(Math.min(a,n)+.05)}function C(t,e,a){return[t[0]+(e[0]-t[0])*a,t[1]+(e[1]-t[1])*a,t[2]+(e[2]-t[2])*a]}function P(t,e){for(var a=e.slice().sort((function(t,e){return M(t)-M(e)})),n=t.isSmoked?a[Math.floor(.75*a.length)]:a[Math.floor(.25*a.length)],i=.3;i<=.95;i+=.02){var r=C(n,t.base,i),o=t.isSmoked?[247,249,252]:[20,23,28];if(T(r,t.isSmoked?C(r,o,.7):[89,96,106])>=4.5&&T(r,o)>=6)return i}return.95}function k(t,e){t.glassPick!==e&&(t.glassPick=e,t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice","light"),t.style.setProperty("--glass-tint",e.tint))}function W(t,e){e.length&&R(t,function(t){var e=t.reduce((function(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}),[0,0,0]).map((function(e){return e/t.length})),a={isSmoked:!1,base:C([255,255,255],e,.1)},n={isSmoked:!0,base:C([12,15,20],e,.3)},i=P(a,t),r=P(n,t),o=i<=r?a:n;return{isSmoked:o.isSmoked,tint:"rgba("+o.base.map(Math.round).join(", ")+", "+Math.min(i,r).toFixed(2)+")"}}(e))}function R(t,e){var a=t.canvas.parentElement;a&&(a.shownGlass=e,A=!0,void 0===a.ownThemeChoice&&(a.ownThemeChoice=a.getAttribute("data-theme-choice")),a.classList.toggle("smoke",e.isSmoked),e.isSmoked?a.removeAttribute("data-theme-choice"):a.setAttribute("data-theme-choice",a.ownThemeChoice||"light"),a.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(t){L(t)===a&&k(t,a.shownGlass)})))}function F(t){for(var e=[],a=4*Math.max(1,Math.floor(t.length/4/2400)),n=0;n<t.length;n+=a)e.push([t[n],t[n+1],t[n+2]]);return e}function q(t){var e=t.canvas.contentWindow;if(e)try{e.postMessage({panes:[],isIdle:D},new URL(t.canvas.src).origin)}catch{}}var D=!1,I=0;function B(){D=!0,H()}function H(){h.forEach((function(t){"frame"===t.kind&&q(t)}))}var N=null,O=!1;function U(){if(N)return N.isLost?null:N;if(O)return null;var t=document.createElement("canvas");t.width=2,t.height=2;var e=t.getContext("webgl2",{antialias:!1,depth:!1,stencil:!1,alpha:!1,powerPreference:"low-power"});if(!e)return O=!0,null;function a(){e.bindVertexArray(e.createVertexArray()),e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),N.vertex=e.createShader(e.VERTEX_SHADER),e.shaderSource(N.vertex,"#version 300 es\\nin vec2 corner;\\nvoid main() { gl_Position = vec4(corner, 0.0, 1.0); }"),e.compileShader(N.vertex),N.upscale={status:"compiling",names:["zaismaDrawn","zaismaDrawnSize","zaismaCanvasSize"]},_(N.upscale,"#version 300 es\\nprecision highp float;\\nuniform sampler2D zaismaDrawn;\\nuniform vec2 zaismaDrawnSize;\\nuniform vec2 zaismaCanvasSize;\\nout vec4 zaismaFragColor;\\nvec3 zaismaTap(vec2 texel) {\\n return texture(zaismaDrawn, clamp(texel, vec2(0.5), zaismaDrawnSize - 0.5) / vec2(textureSize(zaismaDrawn, 0))).rgb;\\n}\\nvoid main() {\\n vec2 at = gl_FragCoord.xy / zaismaCanvasSize * zaismaDrawnSize;\\n vec2 middle = floor(at - 0.5) + 0.5, f = at - middle;\\n vec2 w0 = f * (-0.5 + f * (1.0 - 0.5 * f)), w1 = 1.0 + f * f * (-2.5 + 1.5 * f), w2 = f * (0.5 + f * (2.0 - 1.5 * f)), w3 = f * f * (-0.5 + 0.5 * f);\\n vec2 w12 = w1 + w2, at0 = middle - 1.0, at3 = middle + 2.0, at12 = middle + w2 / w12;\\n vec3 color = (zaismaTap(vec2(at0.x, at0.y)) * w0.x + zaismaTap(vec2(at12.x, at0.y)) * w12.x + zaismaTap(vec2(at3.x, at0.y)) * w3.x) * w0.y\\n + (zaismaTap(vec2(at0.x, at12.y)) * w0.x + zaismaTap(vec2(at12.x, at12.y)) * w12.x + zaismaTap(vec2(at3.x, at12.y)) * w3.x) * w12.y\\n + (zaismaTap(vec2(at0.x, at3.y)) * w0.x + zaismaTap(vec2(at12.x, at3.y)) * w12.x + zaismaTap(vec2(at3.x, at3.y)) * w3.x) * w3.y;\\n vec3 north = zaismaTap(at + vec2(0.0, 1.0)), south = zaismaTap(at - vec2(0.0, 1.0)), east = zaismaTap(at + vec2(1.0, 0.0)), west = zaismaTap(at - vec2(1.0, 0.0));\\n vec3 low = min(min(min(north, south), min(east, west)), color), high = max(max(max(north, south), max(east, west)), color);\\n vec3 weight = -sqrt(clamp(min(low, 2.0 - high) / max(high, vec3(0.0001)), 0.0, 1.0)) / 7.0;\\n zaismaFragColor = vec4(clamp((color + (north + south + east + west) * weight) / (1.0 + 4.0 * weight), 0.0, 1.0), 1.0);\\n}"),N.drawn={texture:e.createTexture(),framebuffer:e.createFramebuffer(),widthPx:0,heightPx:0}}return N={board:t,gl:e,programs:{},isLost:!1,parallel:e.getExtension("KHR_parallel_shader_compile")},a(),t.addEventListener("webglcontextlost",(function(t){t.preventDefault(),N.isLost=!0})),t.addEventListener("webglcontextrestored",(function(){N.programs={},N.zaisma=null,h.forEach((function(t){t.parts=null})),N.isLost=!1,a(),h.forEach((function(t){t.isDrawn=!1})),y()})),N}function _(t,e){var a=N.gl,n=a.createShader(a.FRAGMENT_SHADER),i=a.createProgram();a.shaderSource(n,e),a.compileShader(n),a.attachShader(i,N.vertex),a.attachShader(i,n),a.bindAttribLocation(i,0,"corner"),a.linkProgram(i),t.pending={program:i,fragment:n}}function V(t){if("compiling"!==t.status)return"ready"===t.status;var e=N.gl,a=t.pending;return!(N.parallel&&!w&&!e.getProgramParameter(a.program,N.parallel.COMPLETION_STATUS_KHR))&&(e.getProgramParameter(a.program,e.LINK_STATUS)?(t.program=a.program,t.status="ready",t.at={},t.names.forEach((function(n){t.at[n]=e.getUniformLocation(a.program,n)}))):(console.warn("Backdrop shader:",e.getShaderInfoLog(a.fragment)||e.getProgramInfoLog(a.program)),e.deleteProgram(a.program),t.status="failed"),e.deleteShader(a.fragment),"compiling"!==t.status&&(t.pending=null),"ready"===t.status)}function G(a,n){if(a.programs[n])return a.programs[n];var i={status:"compiling",names:["iResolution","iTime","iDark","zaismaViewOffset"]};return _(i,c+"uniform float iDark;\\n"+t+n+"\\n"+e),a.programs[n]=i,i}var X=["iResolution","iTime","iDark","zaismaViewOffset"];function Y(a){if(a.zaisma)return a.zaisma;var n=c+"uniform float iDark;\\n"+t,r=n+"#define RIDGE_OCTAVES 6\\n"+i.shapes+i.live,o={status:"compiling",names:X.concat(["zaismaSoftA","zaismaSoftB","zaismaSoftC","zaismaStrip","zaismaShadeA","zaismaShadeB","zaismaUv"])};function s(t){var e={status:"compiling",names:X};return _(e,r+t),e}return _(o,n+"#define RIDGE_OCTAVES 4\\n"+i.shapes+i.stored+i.draw+"\\n"+e),a.zaisma={sharp:o,soft:s(i.soft),strip:s(i.strip),shade:s(i.shade)},a.zaisma}function K(t,e,a){for(var n={framebuffer:t.createFramebuffer(),textures:[],widthPx:0,heightPx:0},i=0;i<e;i++)n.textures.push(t.createTexture());return n.size=function(e,i){n.widthPx===e&&n.heightPx===i||(n.widthPx=e,n.heightPx=i,t.bindFramebuffer(t.FRAMEBUFFER,n.framebuffer),n.textures.forEach((function(n,r){t.bindTexture(t.TEXTURE_2D,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA8,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+r,t.TEXTURE_2D,n,0)})),t.drawBuffers(n.textures.map((function(e,a){return t.COLOR_ATTACHMENT0+a}))))},n}function $(t,e,a,n,i,r,o,s,c){t.bindFramebuffer(t.FRAMEBUFFER,a.framebuffer),t.useProgram(e.program),t.viewport(0,0,n,i);var l=n*r,d=l/o;t.uniform3f(e.at.iResolution,l,d,1),t.uniform1f(e.at.iTime,s),t.uniform1f(e.at.iDark,c),t.uniform2f(e.at.zaismaViewOffset,(l-n)/2,(d-i)/2),t.drawArrays(t.TRIANGLES,0,3)}function j(t){var e=!t.getAttribute("data-backdrop-shader"),a=t.getAttribute("data-backdrop-shader"),n=U(),r=null;if(!n)return null;function o(){return e&&!a&&i&&(a="#define RIDGE_OCTAVES 4\\n"+i.shapes+i.live+i.draw),a}function c(n,i,c){if(!o())return s(),!1;var l=U();if(l&&e&&!c.isOnePass){var d=Y(l),u=[d.sharp,d.soft,d.strip,d.shade].map(V).every(Boolean);if([d.sharp,d.soft,d.strip,d.shade].some((function(t){return"failed"===t.status})))c.isOnePass=!0;else if(!u)return!1}var f=l&&(e&&!c.isOnePass?Y(l).sharp:G(l,a));if(!f||!V(f)||!V(l.upscale))return f&&("failed"===f.status||"failed"===l.upscale.status)&&(c.isLost=!0),!1;if(!(r=r||t.getContext("2d",{alpha:!1})))return!1;var h=l.gl,m=l.board,p=t.width,g=t.height,v=c.drawnWidth,w=c.drawnHeight,y=f.at;(m.width<p||m.height<g)&&(m.width=Math.max(m.width,p),m.height=Math.max(m.height,g));var b=e&&!c.isOnePass,E=b?null:function(t,e,a){var n=t.gl,i=t.drawn;return(i.widthPx<e||i.heightPx<a)&&(i.widthPx=Math.max(i.widthPx,e),i.heightPx=Math.max(i.heightPx,a),n.bindTexture(n.TEXTURE_2D,i.texture),n.texImage2D(n.TEXTURE_2D,0,n.RGBA8,i.widthPx,i.heightPx,0,n.RGBA,n.UNSIGNED_BYTE,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.bindFramebuffer(n.FRAMEBUFFER,i.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,i.texture,0)),i}(l,v,w);b||(h.bindFramebuffer(h.FRAMEBUFFER,E.framebuffer),h.useProgram(f.program),h.viewport(0,0,v,w));var A=t.classList.contains("is-framed")?1.8:1,x=v*A,z=w*A;b?function(t,e,a,n,i,r,o,s){var c=t.gl,l=Y(t),d=l.sharp,u=e.parts,f=n/i;u||(u=e.parts={strip:K(c,1,!1),shade:K(c,2,!0),soft:K(c,3,!0),storedWidth:0,storedHeight:0}),(u.storedWidth!==n||u.storedHeight!==i)&&(u.storedWidth=n,u.storedHeight=i,u.strip.size(n,7),u.shade.size(Math.max(2,n>>1),Math.max(2,i>>1)),c.bindFramebuffer(c.FRAMEBUFFER,u.strip.framebuffer),c.useProgram(l.strip.program),c.viewport(0,0,n,7),c.uniform3f(l.strip.at.iResolution,n*s,i*s,1),c.uniform1f(l.strip.at.iTime,0),c.uniform1f(l.strip.at.iDark,0),c.uniform2f(l.strip.at.zaismaViewOffset,(n*s-n)/2,0),c.drawArrays(c.TRIANGLES,0,3),$(c,l.shade,u.shade,u.shade.widthPx,u.shade.heightPx,s,f,0,0));var h=Math.max(160,Math.round(Math.min(540,Math.max(300,.34*i))*e.softShare)),m=Math.max(2,Math.round(h*f));u.soft.size(m,h),$(c,l.soft,u.soft,m,h,s,f,r,o),c.bindFramebuffer(c.FRAMEBUFFER,null),c.useProgram(d.program),c.viewport(0,0,n,i);var p=d.at;[["zaismaSoftA",u.soft.textures[0]],["zaismaSoftB",u.soft.textures[1]],["zaismaSoftC",u.soft.textures[2]],["zaismaStrip",u.strip.textures[0]],["zaismaShadeA",u.shade.textures[0]],["zaismaShadeB",u.shade.textures[1]]].forEach((function(t,e){c.activeTexture(c.TEXTURE0+e),c.bindTexture(c.TEXTURE_2D,t[1]),c.uniform1i(p[t[0]],e)})),c.activeTexture(c.TEXTURE0);var g=n*s,v=i*s,w=(g-n)/2,y=(v-i)/2;c.uniform3f(p.iResolution,g,v,1),c.uniform1f(p.iTime,r),c.uniform1f(p.iDark,o),c.uniform2f(p.zaismaViewOffset,w,y),c.uniform4f(p.zaismaUv,1/n,1/i,-w/n,-y/i)}(l,c,0,p,g,n,i.darkShare,A):(h.uniform3f(y.iResolution,x,z,1),h.uniform1f(y.iTime,n),h.uniform1f(y.iDark,i.darkShare),h.uniform2f(y.zaismaViewOffset,(x-v)/2,(z-w)/2));var L=t.hasAttribute("data-adapts-glass")&&!c.isGlassAdapted&&S.some((function(e){return e.glassHost===t.parentElement}));if(h.drawArrays(h.TRIANGLES,0,3),!b){var M=l.upscale;h.bindFramebuffer(h.FRAMEBUFFER,null),h.useProgram(M.program),h.viewport(0,0,p,g),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,E.texture),h.uniform1i(M.at.zaismaDrawn,0),h.uniform2f(M.at.zaismaDrawnSize,v,w),h.uniform2f(M.at.zaismaCanvasSize,p,g),h.drawArrays(h.TRIANGLES,0,3)}return L&&(c.isGlassAdapted=!0,function(t,e,a,n){var i=new Uint8Array(a*n*4);t.readPixels(0,0,a,n,t.RGBA,t.UNSIGNED_BYTE,i),W(e,F(i))}(h,c,p,g)),r.drawImage(m,0,m.height-g,p,g,0,0,p,g),t.classList.contains("is-drawn")||t.classList.add("is-drawn"),!0}return c.prepare=function(){if(o()){var t=U();t&&G(t,a)}else s()},c}var Q=500;function J(t,e,a){return t.map((function(t,n){return t+(e[n]-t)*a}))}var Z=1e3,tt="zaisma:backdrop-lag-s",et=performance.now(),at=1,nt=performance.now(),it=!1,rt=Date.now()/1e3;try{rt-=Number(sessionStorage.getItem(tt))||0}catch{}function ot(){et=performance.now(),clearTimeout(I),I=setTimeout(B,l),D&&(D=!1,H()),it&&(it=!1,nt=et,h.forEach((function(t){t.isDrawn=!1})),y())}function st(t,e){if(!t.isOuter){var a=f.matches?20:rt%3600;t.colors=function(t,e){var a=f.matches||!t.from?1:Math.min(1,(e-t.fadeStartMs)/Q);if(a>=1)return t.from=null,Object.assign({},t.target,{darkShare:t.target.isDark?1:0});var n=a*a*(3-2*a),i=t.from,r=t.target;return{base:J(i.base,r.base,n),a:J(i.a,r.a,n),b:J(i.b,r.b,n),c:J(i.c,r.c,n),isDark:n<.5?i.isDark:r.isDark,darkShare:(void 0!==i.darkShare?i.darkShare:i.isDark?1:0)+((r.isDark?1:0)-(void 0!==i.darkShare?i.darkShare:i.isDark?1:0))*n}}(t,e);var n=!0;if(t.drawShader){if(n=t.drawShader(a,t.colors,t),t.isLost)return void t.canvas.classList.remove("is-drawn")}else t.canvas.dispatchEvent(new CustomEvent("backdrop-frame",{detail:{timeS:a,colors:t.colors,widthPx:t.canvas.width,heightPx:t.canvas.height}}));t.isDrawn=n&&!t.from}}function ct(t){return!(t.isOuter||!t.isInView||t.isLost||t.canvas.hasAttribute("data-backdrop-paused"))&&!((t.isHeld||f.matches||it)&&t.isDrawn)}function lt(t){if(p=!1,!document.hidden){var e=D?u:d;if(t-m<e&&!x)return p=!0,void requestAnimationFrame(lt);var a=g?d:t-m;m=t,g=!1,w=v,v=!1,function(t){var e=Math.max(0,t-nt);nt=t,at=t-et>l?Math.max(0,at-e/Z):Math.min(1,at+e/Z),rt+=at*e/1e3,it=0===at}(t),A&&(A=!1,x=!0,S=Array.prototype.filter.call(document.querySelectorAll("[data-glass]:not([data-cut-line])"),(function(t){t.glassHost=L(t),t.glassHost&&t.glassHost.shownGlass&&k(t,t.glassHost.shownGlass);var e=getComputedStyle(t);return"hidden"!==e.visibility&&"none"!==e.display&&Number(e.opacity)>.05})));var n=x;x=!1,h.forEach((function(i){if(i.isInView&&!i.canvas.hasAttribute("data-backdrop-paused")){if(i.isOuter)return"frame"===i.kind&&!i.isTold&&(i.isTold=!0,q(i)),void(i.canvas.hasAttribute("data-adapts-glass")&&!i.isGlassAdapted&&function(t){var e=t.still;if(e&&e.naturalWidth){var a=document.createElement("canvas"),n=Math.min(1,160/Math.max(e.naturalWidth,e.naturalHeight));a.width=Math.max(2,Math.round(e.naturalWidth*n)),a.height=Math.max(2,Math.round(e.naturalHeight*n));var i=a.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,a.width,a.height),t.isGlassAdapted=!0;try{W(t,F(i.getImageData(0,0,a.width,a.height).data))}catch{}}}(i));i.drawShader&&n&&(i.isDrawn=!1),(!(i.isHeld||f.matches||it)||!i.isDrawn)&&(i.drawShader&&a<1e3&&(i.slowS=a>1.5*e?i.slowS+a/1e3:Math.max(0,i.slowS-a/2e3),i.slowS>1.5&&(i.slowS=0,i.softShare>.6?i.softShare*=.75:i.scale>.26?(i.scale*=.75,i.size()):i.isHeld=!0)),st(i,t))}})),w=!1,(x||A||h.some(ct))&&(p=!0,requestAnimationFrame(lt))}}function dt(){var t=performance.now();A=!0,h.forEach((function(e){var a=E(e.canvas);JSON.stringify(a)!==JSON.stringify(e.target)&&(e.from=e.colors,e.target=a,e.fadeStartMs=t,e.isDrawn=!1,e.isGlassAdapted=!1,e.isInView&&st(e,t))})),y()}function ut(){var t="";h.forEach((function(e){var a=e.isOuter&&e.canvas.getAttribute("data-backdrop-color");a&&/^#[0-9a-fA-F]{6}$/.test(a)&&(t=a)})),t?document.documentElement.style.setProperty("--backdrop-edge",t):document.documentElement.style.removeProperty("--backdrop-edge")}function ft(t){if(!t.backdropLayer&&(!t.hasAttribute("data-backdrop-stand-in")||t.hasAttribute("data-backdrop-shader"))){var e=t.getAttribute("data-backdrop");if("frame"===e||"picture"===e)return function(t,e){var a={canvas:t,kind:e,isOuter:!0,isInView:!0,isTold:!1,isGlassAdapted:!1,target:E(t),from:null};function n(){var n=t.getAttribute("data-glass-kind");if(t.hasAttribute("data-adapts-glass")&&n)return a.isGlassAdapted=!0,void R(a,{isSmoked:"smoked"===n,tint:t.getAttribute("data-glass-tint")||""});var i=t.getAttribute("data-backdrop-still")||("picture"===e?t.currentSrc||t.src:"");if(t.hasAttribute("data-adapts-glass")&&i){var r=new Image;r.onload=function(){t.getAttribute("data-backdrop-still")!==i&&"picture"!==e||(a.still=r,a.isGlassAdapted=!1,z())},r.src=i}}t.backdropLayer=a,h.push(a),"frame"===e&&(a.onMessage=function(e){e.source===t.contentWindow&&e.data&&e.data.zaismaBackground&&(a.isTold=!1,z())},window.addEventListener("message",a.onMessage)),n(),new MutationObserver(n).observe(t,{attributes:!0,attributeFilter:["data-backdrop-still","src","data-glass-kind"]}),window.IntersectionObserver&&new IntersectionObserver((function(t){a.isInView=t[t.length-1].isIntersecting,a.isInView&&z()})).observe(t),z(),ut()}(t,e);var a="scene"===t.getAttribute("data-backdrop"),n=window.matchMedia("(max-width: 760px)").matches,i=Math.min(window.devicePixelRatio||1,a?2:1.5),r=t.classList.contains("is-framed"),o=!a&&!t.getAttribute("data-backdrop-shader"),s=pt&&pt.has(t)?pt.get(t):ht(t),c={canvas:t,isInView:s,isDrawn:!1,isHeld:!1,slowS:0,target:E(t),from:null,softShare:1,scale:a||r?i:o?Math.min(window.devicePixelRatio||1,2):(n?.4:.55)*i};if(a||(c.drawShader=j(t),c.drawShader)){if(t.backdropLayer=c,c.size=function(){var e=Math.max(2,Math.round(t.clientWidth*c.scale)),n=Math.max(2,Math.round(t.clientHeight*c.scale));o&&!c.isOnePass?(c.drawnWidth=e,c.drawnHeight=n):a||(c.drawnWidth=Math.max(2,Math.round(t.clientWidth*c.scale*.7)),c.drawnHeight=Math.max(2,Math.round(t.clientHeight*c.scale*.7)),e=Math.round(1.4*c.drawnWidth),n=Math.round(1.4*c.drawnHeight)),(e!==t.width||n!==t.height)&&(t.width=e,t.height=n,c.isDrawn=!1,t.backdropLayer&&!v&&c.isInView&&st(c,performance.now()))},c.size(),window.zaismaWatch.size(t,c.size),window.IntersectionObserver&&new IntersectionObserver((function(t){c.isInView=t[t.length-1].isIntersecting,c.onView&&c.onView(),c.isInView&&y()})).observe(t),c.drawShader&&!s&&window.IntersectionObserver){var l=new IntersectionObserver((function(t){t[t.length-1].isIntersecting&&(l.disconnect(),c.drawShader.prepare())}),{rootMargin:"100% 0px"});l.observe(t)}else c.drawShader&&c.drawShader.prepare();new MutationObserver(y).observe(t,{attributes:!0,attributeFilter:["data-backdrop-paused"]}),h.push(c),!v&&c.isInView&&st(c,performance.now()),y()}}}function ht(t){var e=t.getBoundingClientRect();return e.bottom>0&&e.right>0&&e.top<window.innerHeight&&e.left<window.innerWidth}["pointerdown","pointermove","keydown","wheel","touchstart","scroll"].forEach((function(t){window.addEventListener(t,ot,{passive:!0,capture:!0})})),I=setTimeout(B,l),window.addEventListener("pagehide",(function(){try{sessionStorage.setItem(tt,String(Date.now()/1e3-rt))}catch{}}));var mt=document.querySelectorAll("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']"),pt=new Map;function gt(t){return 1===t.nodeType&&(t.hasAttribute("data-glass")||!!t.querySelector("[data-glass]"))}mt.forEach((function(t){"CANVAS"===t.tagName&&pt.set(t,ht(t))})),mt.forEach(ft),pt.clear(),window.zaismaWatch.each("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']",ft),window.zaismaBackdrop={add:function(t){A=!0,ft(t),y()},remove:function(t){var e=t.backdropLayer;e&&(h=h.filter((function(t){return t!==e})),e.onMessage&&window.removeEventListener("message",e.onMessage),t.backdropLayer=null,z(),ut())},forgetGlass:function(){document.querySelectorAll(":has(> .backdrop)").forEach((function(t){t.shownGlass=null})),document.querySelectorAll("[data-glass]").forEach((function(t){t.glassPick=null,t.classList.remove("smoke"),t.removeAttribute("data-theme-choice"),t.style.removeProperty("--glass-tint")}))}},window.zaismaWatch.resize(z),window.zaismaWatch.page((function(t){A||(A=t.some((function(t){return"attributes"===t.type?t.target.hasAttribute("data-glass"):Array.prototype.some.call(t.addedNodes,gt)||Array.prototype.some.call(t.removedNodes,gt)})))&&y()})),document.addEventListener("toggle",(function(){A=!0,y()}),!0),document.addEventListener("visibilitychange",(function(){document.hidden||y()})),new MutationObserver(dt).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-theme-choice"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",dt),f.addEventListener("change",dt)}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["shown-once-drawn"]||(t["shown-once-drawn"]=!0,function(){var t="iframe[data-shows-once-drawn]";function e(t){window.zaismaWatch.afterSettling((function(){t.classList.add("is-shown")}))}window.addEventListener("message",(function(a){!a.data||!a.data.zaismaBackground||document.querySelectorAll(t).forEach((function(t){a.source===t.contentWindow&&(t.hasSaid=!0,e(t))}))})),window.zaismaWatch.eachArriving(t,(function(t){t.addEventListener("load",(function(){setTimeout((function(){t.hasSaid||e(t)}),4e3)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.switches||(t.switches=!0,window.zaismaWatch.each(".tab-switch",(function(t){var e=t.querySelector(".switch-slab"),a=t.querySelectorAll(":scope > a, :scope > button:not(.switch-folder)"),n=function(){return t.classList.contains("vertical")};function i(){return t.querySelector('[aria-current="page"], [aria-pressed="true"]')}var r=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gap-control-row"))||4,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function s(t){var e=window.devicePixelRatio||1;return Math.round(t*e)/e}var c,l,d,u,f=(c=.4,l=0,d=.2,u=1,function(t){for(var e=t,a=0;a<8;a++){var n=3*(1-e)*(1-e)*e*c+3*(1-e)*e*e*d+e*e*e-t,i=3*(1-e)*(1-e)*c+6*(1-e)*e*(d-c)+3*e*e*(1-d);if(Math.abs(i)<1e-6)break;e=Math.min(1,Math.max(0,e-n/i))}return 3*(1-e)*(1-e)*e*l+3*(1-e)*e*e*u+e*e*e});function h(t,e){t.slideAt=e;var a=Math.round(e.size)+"px";n()?(t.style.width=e.width?Math.round(e.width)+"px":"",t.style.height=a,t.style.transform="translate("+(e.across||0)+"px, "+e.pos+"px)"):(t.style.height="",t.style.width=a,t.style.transform="translateX("+e.pos+"px)")}function m(e,a,n,i){var o=function(t){return Math.max(0,((Number(t.getAttribute("data-cut-line"))||0)-r)/2)}(e),s=n?0:o,c=i?0:o,l=t.closest("[data-cut-line]"),d=l&&l.getAttribute("data-slanted")||"";if(!e.classList.contains("focus-ring")&&(n&&/start/.test(d)||i&&/end/.test(d))){var u=a.offsetTop,f=t.offsetHeight,h=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--control-slant"))||10,m=h/2-Math.min(Number(e.getAttribute("data-cut-line"))||0,(a.offsetWidth+s+c)/3)/2+u*Math.sqrt(1+h/f*(h/f))-u;n&&/start/.test(d)&&(s=-m),i&&/end/.test(d)&&(c=-m)}return{start:s,end:c}}function p(e,a,i){var r=!i&&e.slideTarget&&e.pickedTab===a;if(e.pickedTab=a,a){var c={beside:e.getAttribute("data-cut-beside"),ends:e.getAttribute("data-cut-ends")||"",stack:e.getAttribute("data-cut-stack")},l=Array.prototype.filter.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){return!t.classList.contains("folded")&&!t.hidden})),d=a===l[0],u=a===l[l.length-1];if(n()){var f={pos:a.offsetTop,size:a.offsetHeight},h=i&&!o?v(e):0;if("grid"===getComputedStyle(t).display&&(f.across=a.offsetLeft,f.width=a.offsetWidth),e.classList.contains("focus-ring")){var p=d?0:a.offsetTop,w=u?t.getBoundingClientRect().height:a.offsetTop+a.offsetHeight,y=Math.round(w-p);f={pos:u?w-y:p,size:y,across:f.across,width:f.width}}return e.setAttribute("data-cut-beside",""),e.setAttribute("data-cut-stack",((d?"first ":"")+(u?"last":"")).trim()),void g(e,f,h,null!==c.stack?c:null,r)}var b=m(e,a,d,u),E=b.start,A=b.end,x={pos:s(a.offsetLeft-E),size:a.offsetWidth+E+A},S=i&&!o?v(e):0;if(e.classList.contains("focus-ring")){var z=d?0:a.offsetLeft-E,L=u?t.getBoundingClientRect().width:a.offsetLeft+a.offsetWidth+A,M=Math.round(L-z);x={pos:u?L-M:z,size:M}}e.setAttribute("data-cut-beside",((d?"":"start ")+(u?"":"end")).trim());var T=((d?"start ":"")+(u?"end":"")).trim();T?e.setAttribute("data-cut-ends",T):e.removeAttribute("data-cut-ends"),g(e,x,S,null!==c.beside?c:null,r)}else e.style.width="0px"}function g(t,a,n,i,r){if(r)t.slideTarget=a;else{if(n&&t.redrawCut){var o=t.slideAt;return h(t,a),t.redrawCut(i?{from:i,ms:n,ease:t===e&&w?w.ease:f,isDriven:!0}:void 0),o&&h(t,o),void function(t,a,n){var i=t===e?w:null,r=i?i.ease:f,o=t.slideAt||a,s=null,c=(t.slideId||0)+1;t.slideId=c,t.slideTarget=a,t.setAttribute("data-move-duration-ms",String(Math.round(n))),function e(l){if(t.slideId===c){var d=null===s||void 0===l?0:Math.min(1,(l-s)/n),u=r(d);a=t.slideTarget,i&&i.isOn&&window.scrollTo(window.scrollX,i.fromY+(i.toY-i.fromY)*u);var f=o.size!==a.size||void 0!==a.width&&o.width!==a.width;t.redrawCut&&!f&&t.redrawCut({isFrame:!0,progress:d});var m=function(t,e){return d<1&&void 0!==t?t+(e-t)*u:e};if(h(t,{pos:m(o.pos,a.pos),size:m(o.size,a.size),across:void 0===a.across?void 0:m(o.across||0,a.across),width:void 0===a.width?void 0:m(o.width,a.width)}),t.redrawCut&&f&&t.redrawCut({isFrame:!0,progress:d}),d<1)return void requestAnimationFrame((function(t){null===s&&(s=t),e(t)}));t.removeAttribute("data-move-duration-ms"),t.slideTarget=null,t.redrawCut&&t.redrawCut(),i&&i.isOn&&i.land()}}()}(t,a,n)}t.slideId=(t.slideId||0)+1,t.slideTarget=null,t.removeAttribute("data-move-duration-ms"),h(t,a),t.redrawCut&&t.redrawCut()}}function v(t){return t===e&&w?w.ms:parseFloat(getComputedStyle(t).getPropertyValue("--slide-ms"))||550}var w=null,y=!1;function b(){if(!y&&t.getClientRects().length){!function(){var i=t.closest("[data-cut-line]"),r=i&&i.getAttribute("data-slanted")||"",o=Array.prototype.filter.call(a,(function(t){return!t.classList.contains("folded")&&!t.hidden}));o.forEach((function(t,a){if(n())t.style.removeProperty("--tab-shift");else{var i=0===a,s=a===o.length-1,c=m(e,t,i,s),l=Math.min(Number(e.getAttribute("data-cut-line"))||0,(t.offsetWidth+c.start+c.end)/3),d=(!i||/start/.test(r)?1:0)-(!s||/end/.test(r)?1:0);t.style.setProperty("--tab-shift",Math.round(10*((c.end-c.start)/2+d*l/4))/10+"px")}}))}();var r=i(),o=t.querySelector(":scope > :focus-visible"),s=t.querySelector(".focus-ring");e.style.transition="none",p(e,r),s&&o&&p(s,o),function(){var e=t.querySelector(":scope > .is-focused"),a=t.querySelector(".focus-ring");e&&a&&(p(a,e),t.classList.add("is-focus-shown"))}(),e.offsetWidth,e.style.transition="",t.classList.add("is-ready")}}var E=t.closest("body > .top")&&window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function A(){var e=E.matches,a=t.closest(".switch-well"),n=t.parentElement;t.classList.toggle("vertical",e),a&&(a.classList.toggle("vertical",e),a.classList.toggle("is-full",!e),a.setAttribute("data-edge-light",e?"left":"bottom")),n&&n.classList.toggle("across",!e)}function x(e){var a=i(),r=t.parentElement;if(r){if(n()){var o=r.scrollHeight-r.clientHeight;if(!a||o<=1||!a.getClientRects().length)return;var s=window.zaismaScrollFadePx?window.zaismaScrollFadePx():34,c=r.getBoundingClientRect(),l=a.getBoundingClientRect(),d=r.scrollTop,u=l.top-c.top+d,f=l.bottom-c.top+d,h=d;return u-s<d?h=u-s:f+s>d+r.clientHeight&&(h=f+s-r.clientHeight),void r.scrollTo({top:Math.max(0,Math.min(o,h)),behavior:e?"smooth":"auto"})}t.classList.remove("is-past-room"),!(r.scrollWidth<=r.clientWidth+1)&&(t.classList.add("is-past-room"),a&&r.scrollTo({left:a.offsetLeft+a.offsetWidth/2-r.clientWidth/2,behavior:e?"smooth":"auto"}))}}function S(){var e=t.parentElement;if(!n()&&e&&t.classList.contains("is-past-room")){if(t.classList.remove("is-past-room"),e.scrollWidth>e.clientWidth+1)return void t.classList.add("is-past-room");e.fadeEndsAgain&&e.fadeEndsAgain()}}E&&(A(),E.addEventListener("change",(function(){A(),b()}))),b(),x(!1),window.zaismaWatch.afterSettling(S);var z=window.navigation&&navigation.activation&&navigation.activation.from;if(z&&z.url&&e.animate&&!n()&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var L=new URL(z.url),M=L.pathname,T=M===location.pathname&&L.search===location.search,C=Array.prototype.filter.call(a,(function(t){return t.href&&new URL(t.href).pathname===M})),P=C.find((function(t){return new URL(t.href).search===L.search}))||(1===C.length?C[0]:void 0),k=i();P&&k&&P!==k&&!T&&(e.style.transition="none",p(e,P),e.offsetWidth,e.style.transition="",y=!0,window.zaismaWatch.fontsIn((function(){requestAnimationFrame((function(){y=!1,b(),y=!0;var t=function(){y=!1,b(),S()};(function(){var t=n()?"translateY("+P.offsetTop+"px)":"translateX("+P.offsetLeft+"px) scaleX("+(P.offsetWidth/Math.max(1,k.offsetWidth)).toFixed(4)+")",a=n()?"translateY("+k.offsetTop+"px)":"translateX("+k.offsetLeft+"px) scaleX(1)";return e.animate([{transform:t,transformOrigin:"0 0"},{transform:a,transformOrigin:"0 0"}],{duration:v(e),easing:"cubic-bezier(.3, 1.2, .4, 1)"})})().finished.then(t,t)}))})))}if(window.zaismaWatch.fontsIn(b),window.zaismaWatch.size(t,b),window.zaismaWatch.size(t,(function(){n()||x(!1)})),t.parentElement&&(window.zaismaWatch.size(t.parentElement,b),window.zaismaWatch.size(t.parentElement,(function(){x(!1)}))),Array.prototype.forEach.call(t.querySelectorAll(":scope > .foldable"),(function(t){window.zaismaWatch.size(t,b)})),t.pickTab=function(i){"BUTTON"===i.tagName?a.forEach((function(t){t.setAttribute("aria-pressed",String(t===i))})):a.forEach((function(t){t===i?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")})),e.pickedTab!==i&&p(e,i,!0);var r=t.closest("[data-fades-sideways]");r&&r!==t.parentElement&&r.showWhole&&!n()?r.showWhole(i,!0):x(!0),I()},a.forEach((function(a){a.addEventListener("click",(function(r){if(!function(t){return t.disabled||"true"===t.getAttribute("aria-disabled")}(a)){if(a.href&&"page"===a.getAttribute("aria-current")&&0===r.button&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey)return void r.preventDefault();if(a.href&&!r.defaultPrevented){var s=new URL(a.href,location.href),c=!(0!==r.button||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||a.target&&"_self"!==a.target);if(s.pathname!==location.pathname||s.search!==location.search){if(!n()||o||!c)return;return r.preventDefault(),N=N||i(),t.pickTab(a),H(),clearTimeout(O),document.dispatchEvent(new Event("zaisma-leaving-page")),void(O=setTimeout((function(){location.assign(a.href)}),v(e)))}var l=n()&&!o&&c&&s.hash&&document.getElementById(decodeURIComponent(s.hash.slice(1)));if(l&&l.getClientRects().length)return r.preventDefault(),void function(e,a,n){w&&w.stop();var i=document.documentElement,r=window.scrollY,o=parseFloat(getComputedStyle(i).scrollPaddingTop)||0,s=Math.max(0,Math.min(i.scrollHeight-window.innerHeight,r+a.getBoundingClientRect().top-o)),c=Math.abs(s-r)/window.innerHeight,l=w={isOn:!0,fromY:r,toY:s,ms:Math.min(800,400+130*Math.max(0,c-1)),ease:function(t){return t*t*t*(t*(6*t-15)+10)}},d=["wheel","touchstart","pointerdown","keydown"];function u(t){l.isOn=!1,d.forEach((function(t){window.removeEventListener(t,f)})),w===l&&(w=null),requestAnimationFrame((function(){requestAnimationFrame((function(){w||i.removeAttribute("data-page-gliding"),dispatchEvent(new CustomEvent("zaisma:page-glide-end",{detail:{hash:n,hasLanded:t}}))}))}))}function f(){u(!1)}l.stop=function(){l.isOn&&(l.isOn=!1,d.forEach((function(t){window.removeEventListener(t,f)})))},l.land=function(){location.hash=n,u(!0)},i.setAttribute("data-page-gliding",""),d.forEach((function(t){window.addEventListener(t,f,{passive:!0})})),t.pickTab(e)}(a,l,s.hash)}t.pickTab(a)}}))})),t.hasAttribute("data-shows-one-panel")){var W=function(t){var e=t.hash?decodeURIComponent(t.hash.slice(1)):"";return e?document.getElementById(e):null},R=function(t){a.forEach((function(e){var a=W(e);a&&(a.hidden=e!==t)}))},F=function(){var e=Array.prototype.filter.call(a,(function(t){return t.hash&&t.hash===location.hash}))[0];e&&(R(e),"page"!==e.getAttribute("aria-current")&&t.pickTab(e))};a.forEach((function(t){t.addEventListener("click",(function(e){if(!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&W(t)){e.preventDefault(),history.replaceState(history.state,"",t.hash),R(t);var a=W(t);a&&a.animate&&!o&&a.animate([{opacity:0},{opacity:1}],{duration:200,easing:"cubic-bezier(0.2, 0, 0, 1)"})}}))})),window.addEventListener("hashchange",F),queueMicrotask(F)}var q=Array.prototype.slice.call(t.querySelectorAll(":scope > .switch-folder"));function D(t){for(var e=[],a=t.nextElementSibling;a&&a.classList.contains("is-in-folder");a=a.nextElementSibling)e.push(a);return e}function I(){var t=i();q.forEach((function(e){var a=D(e).indexOf(t)>=0;e.classList.toggle("is-held",a),a?e.removeAttribute("data-lights"):e.setAttribute("data-lights",""),a&&"true"!==e.getAttribute("aria-expanded")&&B(e,!0)}))}function B(t,e){t.setAttribute("aria-expanded",String(e)),D(t).forEach((function(t){!function(t,e){var a=t.hidden?0:t.offsetHeight;t.getAnimations().forEach((function(t){t.cancel()})),t.hidden=!1;var n=t.offsetHeight;if(!o&&t.animate){t.classList.add("is-folding");var i=t.animate([{height:a+"px",minHeight:"0px",opacity:n?a/n:0},{height:(e?n:0)+"px",minHeight:"0px",opacity:e?1:0}],{duration:240,easing:"cubic-bezier(.2,.8,.2,1)"});i.onfinish=function(){t.classList.remove("is-folding"),t.hidden=!e},i.oncancel=function(){t.classList.remove("is-folding")}}else t.hidden=!e}(t,e)}))}function H(t){q.forEach((function(e){e!==t&&!e.classList.contains("is-held")&&"true"===e.getAttribute("aria-expanded")&&B(e,!1)}))}q.forEach((function(t){t.addEventListener("click",(function(){if(!t.classList.contains("is-held")){var e="true"!==t.getAttribute("aria-expanded");B(t,e),e&&H(t)}}))})),I();var N=null,O=null;window.addEventListener("pageshow",(function(e){!e.persisted||!N||(clearTimeout(O),t.pickTab(N),H(),N=null)}));var U=t.querySelector(".focus-ring");t.addEventListener("focusin",(function(e){var a=e.target;!U||a.parentElement!==t||!a.matches(":focus-visible")||(p(U,a),t.classList.add("is-focus-shown"))})),t.addEventListener("focusout",(function(){t.classList.remove("is-focus-shown")}))})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["guild-seal"]||(t["guild-seal"]=!0,!window.IntersectionObserver||matchMedia("(prefers-reduced-motion: reduce)").matches||window.zaismaWatch.each("video.guild-seal-video",(function(t){var e=!1;t.addEventListener("ended",(function(){t.src=t.getAttribute("data-resting"),t.loop=!0,t.play().catch((function(){}))})),new IntersectionObserver((function(a){a[a.length-1].isIntersecting?(e||(e=!0,t.src=t.getAttribute("data-forging")),t.play().catch((function(){}))):t.pause()})).observe(t)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sidebar||(t.sidebar=!0,function(){function t(t){return"1"===getComputedStyle(t).getPropertyValue("--sidebar-is-sheet").trim()}function e(t){return"zaisma-sidebar:"+t.getAttribute("data-sidebar-remember")}function a(t){return document.querySelectorAll('[data-sidebar-button][aria-controls="'+t.id+'"], [data-sidebar-button][aria-controls="'+t.id+'-sheet"]')}function n(e){var n=e.closest(".sidebar-layout"),i=document.getElementById(e.id+"-sheet");a(e).forEach((function(a){a.setAttribute("aria-controls",t(e)?e.id+"-sheet":e.id),a.setAttribute("aria-expanded",String(t(e)?!(!i||!i.open):!(!n||n.classList.contains("is-collapsed"))))}))}function i(t,e){e.classList.remove("is-folding"),t.classList.remove("is-leaving"),["--sidebar-left","--sidebar-top","--sidebar-width","--sidebar-height"].forEach((function(e){t.style.removeProperty(e)}))}function r(t,a,r){var o=t.closest(".sidebar-layout");if(o){if(r)try{localStorage.setItem(e(t),a?"hidden":"shown")}catch{}cancelAnimationFrame(t.foldFrame),clearTimeout(t.foldTimer),clearTimeout(t.slideTimer),i(t,o);var s=o.querySelector(".sidebar-main"),c=r&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&s,l=c?s.getBoundingClientRect():null,d=c&&a?t.getBoundingClientRect():null;if(d&&(t.style.setProperty("--sidebar-left",d.left+"px"),t.style.setProperty("--sidebar-top",d.top+"px"),t.style.setProperty("--sidebar-width",d.width+"px"),t.style.setProperty("--sidebar-height",d.height+"px"),o.classList.add("is-folding")),o.classList.toggle("is-collapsed",a),n(t),d&&(t.foldFrame=requestAnimationFrame((function(){t.classList.add("is-leaving")})),t.foldTimer=setTimeout((function(){i(t,o)}),350)),c){var u=l.left-s.getBoundingClientRect().left;Math.abs(u)<1||(s.style.transition="none",s.style.transform="translateX("+u+"px)",s.offsetWidth,s.style.transition="transform 0.45s cubic-bezier(.2,.8,.2,1)",s.style.transform="",t.slideTimer=setTimeout((function(){s.style.removeProperty("transition"),s.style.removeProperty("transform")}),500))}}}window.zaismaWatch.each("nav.sidebar[data-sidebar-remember]",(function(t){try{var i=localStorage.getItem(e(t));("shown"===i||"hidden"===i)&&r(t,"hidden"===i,!1)}catch{}window.zaismaWatch.whenRead((function(){!function(t){var e=document.getElementById(t.id+"-sheet");e&&(e.addEventListener("close",(function(){n(t);var i=a(t)[0];i&&(!document.activeElement||document.activeElement===document.body||e.contains(document.activeElement))&&i.focus({preventScroll:!0})})),e.addEventListener("click",(function(t){t.target.closest&&t.target.closest("a[href]")&&e.close()}))),n(t)}(t)})),n(t)})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-sidebar-button]");if(a){var i=a.getAttribute("aria-controls").replace(/-sheet$/,""),o=document.getElementById(i),s=document.getElementById(i+"-sheet");if(o){if(t(o))return void(s&&!s.open&&(s.showModal(),n(o)));r(o,!o.closest(".sidebar-layout").classList.contains("is-collapsed"),!0)}}}));var o=!1;window.addEventListener("resize",(function(){o||(o=!0,requestAnimationFrame((function(){o=!1,document.querySelectorAll("nav.sidebar[data-sidebar-remember]").forEach((function(e){var a=document.getElementById(e.id+"-sheet");!t(e)&&a&&a.open&&a.close(),n(e)}))})))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["started-low"]||(t["started-low"]=!0,function(){function t(t){var e=t.querySelector(".run-wrap"),a=t.querySelector(":scope > .pane-in > .layout-stack")||t.querySelector(":scope > .pane-in"),n=e&&a&&Array.prototype.find.call(a.children,(function(t){return t.contains(e)}));if(n){var i=parseFloat(getComputedStyle(t).marginTop)||0;t.style.setProperty("--started-low-used",Math.round(n.getBoundingClientRect().bottom+window.scrollY-i)+"px")}}window.zaismaWatch.each(".glass-pane.is-started-low",(function(e){t(e),window.zaismaWatch.size(e,(function(){t(e)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.placing||(t.placing=!0,function(){window.zaismaIsOnPage=function(t,e){var a=function(t){for(var e=t;e&&e!==document.documentElement;e=e.parentElement){var a=getComputedStyle(e).position;if("fixed"===a||"sticky"===a)return!0}return!1};return!(a(t)||e.parentElement&&a(e.parentElement))},window.zaismaPageRoom=function(t){var e={left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight};return document.querySelectorAll("header, nav.sidebar").forEach((function(a){if(!t||!a.contains(t)){var n=getComputedStyle(a).position,i=a.getBoundingClientRect();"fixed"!==n&&"sticky"!==n||i.width<1||i.height<1||i.bottom<=0||i.top>=e.bottom||"fixed"===n&&a.offsetParent||(i.width>=e.right/2?e.top=Math.max(e.top,i.bottom):(i.left+i.right)/2<e.right/2?e.left=Math.max(e.left,i.right):e.right=Math.min(e.right,i.left))}})),e},window.zaismaPlace=function(t,e,a){var n=a.roomRect||{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight},i=a.gapPx,r=a.edgePx,o=(t.left+t.right)/2>(n.left+n.right)/2,s=Math.max(n.left+r,Math.min(o?t.right-e.width:t.left,n.right-r-e.width)),c=n.bottom-r-t.bottom-i,l=t.top-i-r-n.top,d=e.height<=c,u=e.height<=l,f=(t.top+t.bottom)/2>(n.top+n.bottom)/2,h=!a.isAlwaysBelow&&(d&&u?f:!d&&l>c),m=h?t.top-i-e.height:t.bottom+i;return{leftPx:s,topPx:Math.max(n.top+r,Math.min(m,n.bottom-r-e.height)),isAtEnd:o,isAbove:h}};window.zaismaCast=function(t){var e=t.floatCast;if(e||((e=t.floatCast=document.createElement("div")).className="floating-cast",e.setAttribute("aria-hidden","true"),e.appendChild(document.createElement("div")).appendChild(document.createElement("span")),(t.parentElement||document.body).appendChild(e)),["smoke","is-above","placed-over","opens-at-once"].forEach((function(a){e.classList.toggle(a,t.classList.contains(a))})),t.isConnected&&t.matches(":popover-open")){var a=t.getBoundingClientRect(),n=new DOMMatrix("none"===getComputedStyle(t).transform?void 0:getComputedStyle(t).transform),i={width:t.offsetWidth,height:t.offsetHeight};i.left=a.left+a.width/2-i.width/2-n.e,i.top=a.top+a.height/2-i.height/2-n.f;var r=t.classList.contains("is-on-page"),o=getComputedStyle(t),s=o.getPropertyValue("--glass-clip").trim()||o.clipPath,c=/^polygon\\((.*)\\)$/.exec(s),l="calc(100% + 64px)",d="-64px";if(!c)return e.hidden=!0,t.castTries=(t.castTries||0)+1,void(t.castTries<60&&requestAnimationFrame((function(){window.zaismaCast(t)})));t.castTries=0;var u=c?c[1].replace(/^(nonzero|evenodd),\\s*/,""):"0px 0px, 100% 0px, 100% 100%, 0px 100%";e.firstChild.firstChild.style.clipPath=c?s:"",e.style.clipPath="polygon(evenodd, -64px -64px, "+l+" "+d+", "+l+" "+l+", "+d+" "+l+", "+d+" "+d+", "+u+", "+u.split(",")[0]+", "+d+" "+d+")",e.hidden&&e.classList.contains("is-arriving")&&requestAnimationFrame((function(){e.offsetWidth,e.classList.remove("is-arriving")})),e.hidden=!1,e.classList.toggle("is-on-page",r);var f=t.getAttribute("data-theme-choice");f?e.setAttribute("data-theme-choice",f):e.removeAttribute("data-theme-choice"),e.style.left=i.left+(r?window.scrollX:0)+"px",e.style.top=i.top+(r?window.scrollY:0)+"px",e.style.width=i.width+"px",e.style.height=i.height+"px"}else e.hidden=!0},["toggle","transitionend"].forEach((function(t){document.addEventListener(t,(function(t){t.target.classList&&t.target.classList.contains("floating-pane")&&!t.target.classList.contains("in-place")&&window.zaismaCast(t.target)}),!0)}));window.zaismaFloat=function(t,e){var a=t.classList.contains("in-place"),n=t.classList.contains("placed-over"),i=null;function r(){return"function"==typeof e.anchor?e.anchor():e.anchor}function o(){var a=r(),n=t.offsetParent;if(a&&n){var i=e.anchorRect?e.anchorRect(a):a.getBoundingClientRect(),o=n.getBoundingClientRect(),s=window.zaismaPlace(i,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:o.left,top:o.top,right:o.right,bottom:o.bottom},gapPx:e.gapPx||6,edgePx:e.edgePx||8,isAlwaysBelow:!0});t.style.left=Math.round(s.leftPx-o.left-n.clientLeft)+"px",t.style.top=Math.round(s.topPx-o.top-n.clientTop)+"px",t.classList.toggle("from-start",!s.isAtEnd),e.onPlaced&&e.onPlaced()}}function s(){var i=r();if(!a&&t.matches(":popover-open")&&i){var o=e.anchorRect?e.anchorRect(i):i.getBoundingClientRect(),s=document.documentElement.clientWidth,c=window.innerHeight,l=window.zaismaPageRoom(i),u=o.bottom<0||o.top>c,f=u?o.top+o.height/2-c/2+l.top:l.top,h=u?f+l.bottom-l.top:l.bottom,m=window.zaismaIsOnPage(i,t);if(!i.isConnected||!m&&(o.bottom<0||o.top>c||o.right<0||o.left>s))return void d(!1);e.isAnchorWidth&&(t.style.width=o.width+"px",t.scrollWidth>t.clientWidth&&(t.style.width=t.scrollWidth+"px"));var p,g,v=e.gapPx||6,w=e.edgePx||8;if(t.style.setProperty("--floating-room",Math.max(0,h-f-2*w)+"px"),n)g=o.top+o.height/2-e.lineOf(),p=o.left;else{var y=function(){return window.zaismaPlace(o,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:l.left,top:f,right:l.right,bottom:h},gapPx:v,edgePx:w,isAlwaysBelow:"function"==typeof e.isAlwaysBelow?e.isAlwaysBelow(i):e.isAlwaysBelow})},b=y();if(t.querySelector(".scrolls")){var E=Math.max(0,b.isAbove?o.top-f-v-w:h-o.bottom-v-w);t.style.setProperty("--floating-room",E+"px");var A=e.scrollBox&&e.scrollBox(),x=A?A.scrollHeight-A.clientHeight:0;x>0&&x<12&&t.style.setProperty("--floating-room",Math.ceil(E+x)+"px"),b=y()}g=b.topPx,p=b.leftPx,t.classList.toggle("is-above",b.isAbove),t.classList.toggle("from-start",!b.isAtEnd)}var S=t.offsetWidth,z=t.offsetHeight;g=Math.max(f+w,Math.min(h-z-w,g)),p=Math.max(l.left+w,Math.min(l.right-S-w,p)),t.classList.toggle("is-on-page",m),t.style.top=Math.round(g+(m?window.scrollY:0))+"px",t.style.left=Math.round(p+(m?window.scrollX:0))+"px",window.zaismaFit&&t.querySelectorAll(".scrolls").forEach(window.zaismaFit),e.onPlaced&&e.onPlaced(),window.zaismaCast(t)}}a||(document.querySelectorAll("body > .floating-pane, dialog > .floating-pane").forEach((function(t){t.floatingHome&&!t.floatingHome.isConnected&&(t.floatCast&&t.floatCast.remove(),t.remove())})),t.floatingHome=e.home||r(),t.floatingHome&&t.floatingHome.closest(".smoke")&&t.classList.add("smoke"),(r()&&r().closest("dialog")||document.body).appendChild(t)),a&&!n&&!e.isAnchorWidth&&(t.classList.add("is-hanging"),o(),window.zaismaWatch.resize(o),window.zaismaWatch.fontsIn(o));var c=!(window.CSS&&CSS.supports("overlay","auto")||matchMedia("(prefers-reduced-motion: reduce)").matches),l=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-float"))||.12);function d(n){if(!a&&t.matches(":popover-open")&&!t.classList.contains("is-leaving")){c?(t.classList.add("is-leaving"),t.floatCast&&t.floatCast.classList.add("is-leaving"),t.leaveTimer=setTimeout((function(){t.classList.remove("is-leaving"),t.hidePopover(),window.zaismaCast(t),t.floatCast.classList.remove("is-leaving")}),l)):(t.hidePopover(),window.zaismaCast(t)),e.onToggle&&e.onToggle(!1);var i=e.focusOnClose||r();n&&i&&i.focus()}}return a||(document.addEventListener("pointerdown",(function(a){var n=r();t.matches(":popover-open")&&!t.contains(a.target)&&(!n||!n.contains(a.target))&&(!e.isInside||!e.isInside(a.target))&&d(!1)})),t.addEventListener("keydown",(function(e){"Escape"===e.key&&t.matches(":popover-open")&&(e.preventDefault(),d(!0))})),window.zaismaWatch.resize(s),document.addEventListener("scroll",(function(e){var a=r();if(t.matches(":popover-open")&&i&&a&&(1!==e.target.nodeType||!t.contains(e.target))){var n=a.getBoundingClientRect();(Math.abs(n.top-i.top)>4||Math.abs(n.left-i.left)>4)&&d(!1)}}),{capture:!0,passive:!0}),window.zaismaWatch.scroll(s),window.zaismaWatch.fontsIn(s)),t.floating={open:function(){if(!a){if(!t.matches(":popover-open")){var n=e.home||r()||document.body,o=n.closest("[data-theme-choice]");o&&o!==document.documentElement?t.setAttribute("data-theme-choice",o.getAttribute("data-theme-choice")):t.removeAttribute("data-theme-choice"),t.classList.toggle("smoke",!!n.closest(".smoke")),t.style.setProperty("--glass-hue",getComputedStyle(n).getPropertyValue("--glass-hue")),c&&(window.zaismaCast(t),clearTimeout(t.leaveTimer),[t,t.floatCast].forEach((function(t){t.classList.remove("is-leaving"),t.classList.add("is-arriving")}))),t.showPopover(),c&&function e(a,n){requestAnimationFrame((function(i){if(!(getComputedStyle(t).getPropertyValue("--glass-clip").trim()&&n&&i-n<25)&&a<30)return e(a+1,i);t.classList.remove("is-arriving")}))}(0,0)}var l=r();i=l?l.getBoundingClientRect():null,e.onShown&&e.onShown(),s(),e.onToggle&&e.onToggle(!0)}},close:d,isOpen:function(){return a||t.matches(":popover-open")},place:s}}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.wheels||(t.wheels=!0,function(){var t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,e=864e5,a=3e5,n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=window.matchMedia("(pointer: coarse)").matches?"Swipe each wheel to pick.":"Scroll or type to pick each one.";function r(t){return String(t).padStart(2,"0")}function o(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}window.zaismaWatch.each("[data-wheels]",(function(s){var c=s.getAttribute("data-wheels"),l=s.id,d=s.querySelector(".wheel-button"),u=s.querySelector(".wheel-pick"),f=s.querySelector(".wheel-value"),h=u.classList.contains("in-place"),m=s.querySelector(".field-error"),p=s.querySelector(".field-hint"),g=s.querySelector(".wheel-read"),v=s.querySelector('input[type="hidden"]:not([data-part])'),w="birthday"===c?function(t,e){for(var a=(new Date).getFullYear(),o=[],s=a;s>a-100;s--)o.push(String(s));function c(t,e){return t?new Date(e||2e3,t,0).getDate():31}var l={month:0,day:0,year:0},d=/^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(e.value);function u(){return!!(l.month&&l.day&&l.year)}return d&&(l.month=Number(d[2]),l.day=Number(d[3]),l.year=Math.max(0,o.indexOf(d[1])+1)),{parts:["month","day","year"],at:l,hasBlank:!0,rows:function(t){if("month"===t)return["Month"].concat(n);if("year"===t)return["Year"].concat(o);for(var e=["Day"],a=1;a<=c(l.month,l.year?Number(o[l.year-1]):0);a++)e.push(String(a));return e},set:function(t,e){return l[t]=e,"day"===t?[]:["day"]},isComplete:u,typed:function(t,e,a){if("year"!==t||!/^\\d{2}$/.test(e))return-1;for(var n=1;n<a.length;n++)if(a[n].slice(2)===e)return n;return-1},firstPart:function(){return u()||!l.month?"month":l.day?"year":"day"},words:function(){if(!u())return{shown:null,read:i,sent:""};var t=n[l.month-1],e=o[l.year-1];return{shown:t.slice(0,3)+" "+l.day+", "+e,read:t+" "+l.day+", "+e,sent:e+"-"+r(l.month)+"-"+r(l.day)}}}}(0,v):"date-time"===c?function(t,n,i){for(var s=[],c=[],l=["AM","PM"],d=1;d<=12;d++)s.push(String(d));for(var u=0;u<60;u+=5)c.push(r(u));var f=t.hasAttribute("data-minimum-at")?new Date(t.getAttribute("data-minimum-at")):new Date;isNaN(f)&&(f=new Date);for(var h=o(f=new Date(Math.ceil(f.getTime()/a)*a)),m=[],p=0;p<366;p++)m.push(new Date(h.getFullYear(),h.getMonth(),h.getDate()+p));var g=o(new Date).getTime(),v=(new Date).getFullYear(),w=new Intl.DateTimeFormat("en-US",{weekday:"short",month:"short",day:"numeric"}),y=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),b=m.map((function(t){var a=Math.round((t.getTime()-g)/e);return 0===a?"Today":1===a?"Tomorrow":(t.getFullYear()===v?w:y).format(t)}));function E(t,e){try{var a=new Intl.DateTimeFormat("en-US",{timeZoneName:e}).formatToParts(t).find((function(t){return"timeZoneName"===t.type}));return a?a.value:""}catch{return""}}function A(t){var e=-t.getTimezoneOffset(),a=e<0?"-":"+",n=Math.abs(e);return t.getFullYear()+"-"+r(t.getMonth()+1)+"-"+r(t.getDate())+"T"+r(t.getHours())+":"+r(t.getMinutes())+a+r(Math.floor(n/60))+":"+r(n%60)}var x={day:0,hour:0,minute:0,half:0},S=!1;function z(t){var e=m[t.day];return new Date(e.getFullYear(),e.getMonth(),e.getDate(),(t.hour+1)%12+12*t.half,5*t.minute)}function L(t){return{day:Math.max(0,Math.min(m.length-1,Math.round((o(t).getTime()-h.getTime())/e))),hour:(t.getHours()%12||12)-1,minute:Math.floor(t.getMinutes()/5),half:t.getHours()<12?0:1}}function M(t){Object.keys(t).forEach((function(e){x[e]=t[e]}))}var T=n.value?new Date(n.value):null,C=T&&!isNaN(T)&&i.classList.contains("is-marked")?T:null;return T&&!isNaN(T)&&(M(L(T<f?f:T)),S=!0),{parts:["day","hour","minute","half"],at:x,hasBlank:!1,rows:function(t){return"day"===t?b:"hour"===t?s:"minute"===t?c:l},set:function(t,e){return x[t]=e,S=!0,C=null,z(x)<f?(M(L(f)),"all"):[]},isComplete:function(){return S},opening:function(){if(S)return!1;var t=new Date;return t.setMinutes(60,0,0),M(L(t<f?f:t)),S=!0,!0},firstPart:function(){return"day"},words:function(){var t=C||z(x);if(!S)return{shown:null,read:"",sent:""};var a=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),n=o(t),i=Math.round((n.getTime()-g)/e),r=0===i?"Today":1===i?"Tomorrow":n.toLocaleDateString("en-US",n.getFullYear()===v?{month:"short",day:"numeric"}:{month:"short",day:"numeric",year:"numeric"}),s=E(t,"short"),c=E(t,"long");return{shown:r+", "+a+(s?" "+s:""),read:t.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})+" at "+a+(c?", "+c:""),sent:A(t)}}}}(s,v,d):function(t){var e=[],a={},n={};return Array.prototype.forEach.call(t.querySelectorAll(".wheel[data-part]"),(function(t){var i=t.getAttribute("data-part");e.push(i);try{a[i]=JSON.parse(t.getAttribute("data-rows"))||[]}catch{a[i]=[]}n[i]=Math.max(0,Number(t.getAttribute("data-picked"))||0)})),{parts:e,at:n,hasBlank:!1,rows:function(t){return a[t].map((function(t){return t[0]}))},set:function(t,e){return n[t]=e,[]},isComplete:function(){return!0},firstPart:function(){return e[0]},words:function(){var t=e.map((function(t){return(a[t][n[t]]||[""])[0]})).join(" "),i={};return e.forEach((function(t){i[t]=(a[t][n[t]]||["",""])[1]})),{shown:t,read:t,sent:i}}}}(s),y=f.textContent,b={};w.parts.forEach((function(t){b[t]={el:s.querySelector('.wheel[data-part="'+t+'"]'),count:0}}));var E=u.querySelector(".wheels"),A=window.zaismaFloat(u,{anchor:d,home:s,lineOf:function(){return E.parentElement.offsetTop+E.offsetTop+E.offsetHeight/2},onToggle:function(t){d.setAttribute("aria-expanded",String(t))}});function x(){return A.isOpen()}function S(t){var e=b[t],a=w.at[t];Array.prototype.forEach.call(e.el.children,(function(t,e){t.setAttribute("aria-selected",String(e===a))})),e.el.setAttribute("aria-activedescendant",l+"-"+t+"-"+a)}function z(t){var e=b[t],a=w.rows(t),n=document.createDocumentFragment();e.count=a.length,e.el.textContent="",a.forEach((function(e,a){var i=document.createElement("div");i.className="flush-row compact quiet",i.setAttribute("role","option"),i.id=l+"-"+t+"-"+a,i.textContent=e,i.setAttribute("data-label",e),w.hasBlank&&0===a&&i.classList.add("blank"),n.appendChild(i)})),e.el.appendChild(n),e.isWired||(e.isWired=!0,e.el.addEventListener("click",(function(a){var n=a.target.closest('[role="option"]');n&&n.parentElement===e.el&&T(t,Array.prototype.indexOf.call(e.el.children,n),!0)}))),w.at[t]>e.count-1&&(w.at[t]=e.count-1),S(t)}function L(t){var e=b[t].el.firstElementChild;return e&&e.offsetHeight||36}function M(e){w.parts.forEach((function(a){b[a].el.scrollTo({top:w.at[a]*L(a),behavior:e&&!t?"smooth":"auto"})}))}function T(e,a,n){a=Math.max(0,Math.min(b[e].count-1,a)),b[e].el.scrollTo({top:a*L(e),behavior:n&&!t?"smooth":"auto"}),P(e,a)}var C=w.isComplete();function P(t,e){if(w.at[t]!==e||!C){var a=w.set(t,e);C=!0,d.classList.contains("is-marked")&&w.isComplete()&&(d.classList.remove("is-marked"),m.hidden=!0,p&&(p.hidden=!1)),"all"===a?(w.parts.forEach(S),M(!0)):(S(t),a.forEach((function(t){z(t),b[t].el.scrollTop=w.at[t]*L(t)}))),k()}}function k(){var t=w.words();g.textContent=t.read,f.textContent=null===t.shown?y:t.shown,d.classList.toggle("set",null!==t.shown),v&&(v.value="string"==typeof t.sent?t.sent:""),"object"==typeof t.sent&&Object.keys(t.sent).forEach((function(e){var a=s.querySelector('input[type="hidden"][data-part="'+e+'"]');a&&(a.value=t.sent[e])}))}function W(t){w.opening&&w.opening()&&(C=!0,w.parts.forEach(S),k()),A.open(),M(!1),!t&&b[w.firstPart()].el.focus({preventScroll:!0})}function R(t){A.close(t)}w.parts.forEach((function(t){var e=b[t],a=null,n="",i=0;z(t),e.el.addEventListener("scroll",(function(){clearTimeout(a),a=setTimeout((function(){x()&&P(t,Math.round(e.el.scrollTop/L(t)))}),110)}),{passive:!0}),e.el.addEventListener("keydown",(function(a){var r=w.at[t],o=a.key,s={ArrowDown:1,ArrowUp:-1,PageDown:5,PageUp:-5}[o];if(s)return T(t,r+s,!0),void a.preventDefault();if("Home"===o)return T(t,w.hasBlank?1:0,!0),void a.preventDefault();if("End"===o)return T(t,e.count-1,!0),void a.preventDefault();if("Enter"===o&&w.isComplete())return R(!0),void a.preventDefault();if(1===o.length&&!a.metaKey&&!a.ctrlKey){var c=Date.now();n=c-i>900?o.toLowerCase():n+o.toLowerCase(),i=c;for(var l=w.rows(t),d=-1,u=w.hasBlank?1:0;u<l.length&&d<0;u++)0===l[u].toLowerCase().indexOf(n)&&(d=u);d<0&&w.typed&&(d=w.typed(t,n,l)),d>=0&&(T(t,d,!0),a.preventDefault())}}))})),d.addEventListener("click",(function(){x()?R(!1):W()})),h&&(w.opening&&!w.isComplete()?W(!0):requestAnimationFrame((function(){M(!1)}))),k();var F=s.closest("form");F&&s.hasAttribute("data-required")&&F.addEventListener("submit",(function(t){w.isComplete()||(t.preventDefault(),d.classList.add("is-marked"),m.hidden=!1,p&&(p.hidden=!0),W())}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.charts||(t.charts=!0,function(){function t(t,e,n){e.forEach((function(t,e){t.classList.toggle("is-focused",e===n)}));var i=t.querySelector("[data-chart-scroll]"),r=e[n];if(i&&r){var o=i.getBoundingClientRect(),s=r.getBoundingClientRect();s.left<o.left?i.scrollLeft-=o.left-s.left:s.right>o.right&&(i.scrollLeft+=s.right-o.right),t.matches(":focus-visible")&&requestAnimationFrame((function(){a(t,r)}))}}function e(t){return Array.prototype.slice.call(t.querySelectorAll(".chart-hit"))}function a(t,e){var a=t.querySelector(":scope > .chart-tip");if(a){if(t.classList.toggle("shows-tip",!!e),!e)return void a.classList.remove("is-shown");a.querySelector("b").textContent=e.getAttribute("data-tip-amount"),a.querySelector("span").textContent=e.getAttribute("data-tip-label");var n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=getComputedStyle(e),o=!!e.closest(".is-bars");a.style.setProperty("--tip-left",i.left-n.left+i.width*parseFloat(r.getPropertyValue("--point-left"))/100+"px"),a.style.setProperty("--tip-top",i.top-n.top+i.height*parseFloat(r.getPropertyValue("--point-top"))/100+"px"),a.classList.toggle("is-end",e.classList.contains("is-end")),a.classList.toggle("is-middle",o&&!e.classList.contains("is-end")&&!e.classList.contains("is-start")),a.classList.toggle("is-high",e.classList.contains("is-high")),a.classList.add("is-shown")}}window.zaismaWatch.each("[data-chart-scroll]",(function(t){t.scrollLeft=t.scrollWidth})),document.addEventListener("pointerover",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;e&&a(e.closest(".chart"),e)})),document.addEventListener("pointerout",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;if(e&&!(t.relatedTarget instanceof Element&&t.relatedTarget.closest(".chart-hit"))){var n=e.closest(".chart"),i=n.querySelector(".chart-hit.is-pointed")||(n.matches(":focus-visible")?n.querySelector(".chart-hit.is-focused"):null);a(n,i)}})),document.querySelectorAll("[data-chart-scroll]").forEach((function(t){t.addEventListener("scroll",(function(){var e=t.closest(".chart");a(e,e.querySelector(".chart-hit.is-pointed"))}),{passive:!0})})),document.addEventListener("focusout",(function(t){var e=t.target instanceof Element&&t.target.matches("[data-chart-points]")?t.target:null;e&&a(e,e.querySelector(".chart-hit.is-pointed"))})),document.querySelectorAll(".chart-hit.is-pointed").forEach((function(t){a(t.closest(".chart"),t)})),document.addEventListener("focusin",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n);i.length&&!n.querySelector(".chart-hit.is-focused")&&t(n,i,i.length-1)}})),document.addEventListener("keydown",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n),r=i.indexOf(n.querySelector(".chart-hit.is-focused")),o=r;if("ArrowRight"===a.key||"ArrowUp"===a.key)o=Math.min(i.length-1,r+1);else if("ArrowLeft"===a.key||"ArrowDown"===a.key)o=Math.max(0,r-1);else if("Home"===a.key)o=0;else{if("End"!==a.key)return;o=i.length-1}a.preventDefault(),t(n,i,o)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["long-fields"]||(t["long-fields"]=!0,function(){function t(t){var e=getComputedStyle(t),a=parseFloat(e.lineHeight)||24,n=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom);t.style.height="auto",t.classList.remove("is-scrolling");var i=a*(Number(t.getAttribute("rows"))||2)+n,r=12*a+n;t.classList.toggle("is-scrolling",t.scrollHeight>r+1),t.style.height=Math.max(i,Math.min(t.scrollHeight,r))+"px";var o=Number(t.getAttribute("maxlength")),s=document.getElementById(t.id+"-count");!o||!s||(s.hidden=t.value.length<.8*o,s.textContent=t.value.length.toLocaleString("en-US")+" of "+o.toLocaleString("en-US"))}window.zaismaWatch.each("textarea[data-long-field]",t),window.zaismaWatch.whenRead((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)})),document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("textarea[data-long-field]")&&t(e.target)})),window.zaismaWatch.fontsIn((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sliders||(t.sliders=!0,function(){function t(t){var e=t.closest(".slider"),a=Number(t.min),n=Number(t.max),i=e.querySelector("output"),r=i.getAttribute("data-unit");e.style.setProperty("--fill",((Number(t.value)-a)/Math.max(1e-9,n-a)).toFixed(4));var o=e.querySelector(".slider-slab");o&&o.redrawCut&&o.redrawCut(),i.textContent=Number(t.value).toLocaleString("en-US")+("%"===r?"%":" "+r)}document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("input[data-slider]")&&t(e.target)})),window.addEventListener("pageshow",(function(){document.querySelectorAll("input[data-slider]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["color-fields"]||(t["color-fields"]=!0,function(){function t(t){return"#"+t.map((function(t){return t.toString(16).padStart(2,"0")})).join("").toUpperCase()}function e(t,e,a){function n(n){var i=(n+t/60)%6;return Math.round(255*(a-a*e*Math.max(0,Math.min(i,4-i,1))))}return[n(5),n(3),n(1)]}function a(t){var e=parseInt(t.slice(1),16),a=(e>>16)/255,n=(e>>8&255)/255,i=(255&e)/255,r=Math.max(a,n,i),o=r-Math.min(a,n,i),s=0;return o&&(s=r===a?(n-i)/o%6:r===n?(i-a)/o+2:(a-n)/o+4,(s*=60)<0&&(s+=360)),[s,r?o/r:0,r]}function n(t){var e=/^\\s*(#[0-9a-f]{6})\\s*$/i.exec(t||"");return e?e[1].toUpperCase():null}var i=10;window.zaismaWatch.each("[data-color-field]",(function(r){var o=r.querySelector(".color-button"),s=r.querySelector(".color-pick"),c=r.querySelector(".color-square"),l=r.querySelector(".color-knob"),d=r.querySelector(".color-side .cut-field input"),u=r.querySelector(".color-side .slider-input"),f=r.querySelector(':scope > input[type="hidden"]'),h=o.querySelector(".color-value"),m=o.querySelector(".color-chip"),p=r.querySelector(".color-none button"),g=a(n(f.value)||r.getAttribute("data-color-hex")),v=!!p&&!n(f.value),w=!1,y=window.zaismaFloat(s,{anchor:o,home:r,isAnchorWidth:s.classList.contains("in-place"),onToggle:function(t){o.setAttribute("aria-expanded",String(t)),t&&b()}});function b(a){var n=t(e(g[0],g[1],g[2])),o=v?"var(--clear-swatch)":n;[r,s].forEach((function(a){a.style.setProperty("--color-picked",o),a.style.setProperty("--color-full",t(e(g[0],g[1],1))),a.style.setProperty("--color-brightness",String(g[2]))}));var p=c.clientWidth-20,y=c.clientHeight-20,b=function(t,e){var a=c.cutCorners||[0,0,0,0],n=(l.firstElementChild.cutCorners||[5])[0],r=[c.clientWidth,c.clientHeight];return[[1,1],[-1,1],[-1,-1],[1,-1]].forEach((function(o,s){var c=o[0]>0?t-i:r[0]-t-i,l=o[1]>0?e-i:r[1]-e-i,d=a[s]-n-(c+l);a[s]>n&&d>0&&(t+=o[0]*d/2,e+=o[1]*d/2)})),[t,e]}(i+g[0]/360*p,i+(1-g[1])*y);l.style.left=b[0]+"px",l.style.top=b[1]+"px",c.setAttribute("aria-valuetext",n),m.style.setProperty("--swatch",o),h.textContent=v?"None":n,f.value=v?"":n,a||(d.value=n);var E=Math.round(100*g[2]);Number(u.value)!==E&&(u.value=String(E),w=!0,u.dispatchEvent(new Event("input",{bubbles:!0})),w=!1)}function E(){r.dispatchEvent(new CustomEvent("zaisma:color",{bubbles:!0,detail:{colorValue:f.value}}))}function A(t){return Math.max(0,Math.min(1,t))}function x(t){var e=c.getBoundingClientRect();g[0]=359.99*A((t.clientX-e.left-i)/(e.width-20)),g[1]=1-A((t.clientY-e.top-i)/(e.height-20)),v=!1,b(),E()}c.addEventListener("pointerdown",(function(t){c.setPointerCapture(t.pointerId),c.classList.add("is-held"),x(t),c.focus({preventScroll:!0}),t.preventDefault()})),c.addEventListener("pointermove",(function(t){c.hasPointerCapture(t.pointerId)&&x(t)})),c.addEventListener("pointerup",(function(){c.classList.remove("is-held")})),c.addEventListener("pointercancel",(function(){c.classList.remove("is-held")})),c.addEventListener("keydown",(function(t){var e=t.shiftKey?30:5,a=t.shiftKey?.2:.05;if("ArrowLeft"===t.key)g[0]=Math.max(0,g[0]-e);else if("ArrowRight"===t.key)g[0]=Math.min(359.99,g[0]+e);else if("ArrowUp"===t.key)g[1]=Math.min(1,g[1]+a);else{if("ArrowDown"!==t.key)return;g[1]=Math.max(0,g[1]-a)}t.preventDefault(),v=!1,b(),E()})),u.addEventListener("input",(function(){w||(g[2]=Number(u.value)/100,v=!1,b(),E())})),d.addEventListener("input",(function(){var t=function(t){var e=String(t||"").replace(/[^0-9a-f]/gi,"");return 3===e.length&&(e=e.replace(/./g,"$&$&")),6===e.length?"#"+e.toUpperCase():null}(d.value);t&&(g=a(t),v=!1,b(!0),E())})),d.addEventListener("blur",(function(){b()})),p&&p.addEventListener("click",(function(){v=!0,b(),E()})),o.addEventListener("click",(function(){y.isOpen()?y.close(!1):y.open()})),s.classList.contains("in-place")&&y.open(),b()}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["world-pane"]||(t["world-pane"]=!0,function(){var t=0;function e(e){var a=document.querySelector("[data-world-pane]"),n=document.querySelector(".world-stage");if(a&&n&&!n.classList.contains("is-framed")&&(window.innerWidth!==t||e)){if(t=window.innerWidth,window.innerWidth>760||window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)").matches)return void(a.style.marginTop="");var i=Array.prototype.find.call(a.querySelectorAll("h1, h2"),(function(t){return t.getClientRects().length>0})),r=a.parentElement.querySelector("header.top");a.style.marginTop="0px";var o=(i?i.getBoundingClientRect().bottom:a.getBoundingClientRect().top+120)-a.getBoundingClientRect().top+24,s=r?r.offsetTop+r.offsetHeight+12:12;a.style.marginTop=Math.round(Math.max(s,window.innerHeight-o))+"px"}}window.zaismaPlaceWorldPane=e,window.zaismaWatch.each("[data-world-pane]",(function(t){e(!0),window.zaismaWatch.size(t,(function(){e(!0)}))})),window.zaismaWatch.whenRead((function(){e(!0)})),window.addEventListener("resize",(function(){e()})),window.zaismaWatch.fontsIn((function(){e(!0)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["account-link"]||(t["account-link"]=!0,/(^|; )(__Host-)?zaisma_in=1/.test(document.cookie)&&window.zaismaWatch.each("header.top[data-account-from-cookie] .end > a:is(.run-wrap,.cut-btn)",(function(t){t.href="/account";var e=t.querySelector(".face > span:not([class])");e&&(e.textContent="Account")})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["hidden-amounts"]||(t["hidden-amounts"]=!0,function(){var t="zaisma.payments_amounts_hidden",e=!1;try{e="yes"===localStorage.getItem(t)}catch{}var a="#payments .number-amount, [data-amount]",n="[data-amounts-toggle]";function i(t){t.hasAttribute("data-amount")||t.setAttribute("data-amount",t.textContent),t.textContent=e?"\u2022\u2022\u2022":t.getAttribute("data-amount")}function r(t){t.setAttribute("aria-pressed",String(e));var a=t.querySelector("span:not([class])");a&&(a.textContent=e?"Show amounts":"Hide amounts")}window.zaismaWatch.each(a,i),window.zaismaWatch.each(n,r),document.addEventListener("click",(function(o){if(o.target.closest&&o.target.closest("[data-amounts-toggle]")){e=!e;try{localStorage.setItem(t,e?"yes":"no")}catch{}document.querySelectorAll(a).forEach(i),document.querySelectorAll(n).forEach(r)}}))}())}();` };
11506
+ var MINIFIED_LOOK_SCRIPT = { sourceSha256: "1c1e870963377ccece50246116a877e76a407aced9eb16724553b58ecd1a1c40", minifiedText: `(function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["measured-glass"]||(t["measured-glass"]=!0,function(){function t(t){return t.closest(":has(> .backdrop)")}function e(t){var e=t&&t.querySelector(":scope > .backdrop[data-adapts-glass][data-glass-kind], :scope > .backdrop .backdrop[data-adapts-glass][data-glass-kind]");return e?{isSmoked:"smoked"===e.getAttribute("data-glass-kind"),tint:e.getAttribute("data-glass-tint")||""}:null}function a(t,e){t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.hasAttribute("data-theme-choice")||t.setAttribute("data-theme-choice","light"),e.tint&&t.style.setProperty("--glass-tint",e.tint)}window.zaismaWatch&&(window.zaismaWatch.eachArriving("[data-adapts-glass][data-glass-kind]",(function(n){var i=n.parentElement,r=e(i);i&&r&&function(t,e){void 0===t.ownThemeChoice&&(t.ownThemeChoice=t.getAttribute("data-theme-choice")),t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice",t.ownThemeChoice||"light")}(i,r),document.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(n){var i=e(t(n));i&&a(n,i)}))})),window.zaismaWatch.eachArriving("[data-glass]:not([data-cut-line])",(function(n){var i=e(t(n));i&&a(n,i)})))}())})(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["header-fit"]||(t["header-fit"]=!0,function(){var t=window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function e(t,e){t.classList.toggle("has-search-button",e>0),t.classList.toggle("has-tight-tabs",e>1),t.classList.toggle("has-icon-tabs",e>2),t.classList.toggle("has-icon-sign-in",e>3),t.classList.toggle("has-narrow-icon-tabs",e>4)}function a(t,a){e(t,a);var n=getComputedStyle(t),i=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);return Array.prototype.forEach.call(t.children,(function(t){var e=getComputedStyle(t);if(!t.classList.contains("edge")&&"none"!==e.display){var a=t.querySelector(":scope > .switch-well .tab-switch");i+=parseFloat(e.marginLeft)+parseFloat(e.marginRight)+(t.matches(".find")?parseFloat(e.minWidth):Math.max(t.offsetWidth,a?function(t){var e=0;return Array.prototype.forEach.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){e=Math.max(e,t.offsetLeft+t.offsetWidth)})),e+parseFloat(getComputedStyle(t).paddingRight)}(a):0))}})),i}function n(n){if(n.clientWidth&&(!n.checkVisibility||n.checkVisibility({contentVisibilityAuto:!0}))){if(t.matches&&n.matches("body > .top"))return void e(n,1);for(var i=n.clientWidth,r=n.neededWidths||(n.neededWidths=[]),o=n.querySelector(".find"),s=!!o&&o.contains(document.activeElement),c=n.classList.contains("searching"),l=!1,d=0;d<5;d++){if(void 0===r[d]){if(s)return;l||(l=!0,n.classList.remove("searching"),n.classList.add("is-measuring"),n.style.width="max-content"),r[d]=a(n,d)}if(r[d]<=i)break}l&&(n.style.width="",n.classList.remove("is-measuring"),c&&n.classList.add("searching")),s&&d>0&&!n.classList.contains("typing-search")&&n.classList.add("searching"),e(n,d)}}function i(e){if(!e.fitToRoom){e.fitToRoom=function(){n(e)},n(e),window.zaismaWatch.size(e,e.fitToRoom);var a=e.querySelector(".tab-switch");a&&window.zaismaWatch.size(a,i),window.zaismaWatch.fontsIn(i),t.addEventListener("change",i)}function i(){e.neededWidths=null,n(e)}}window.zaismaWatch.each("header.top",i),window.zaismaWatch.arriving((function(){var t=document.querySelector("body > header.top");t&&t.nextSibling&&i(t)}))}())}(),function(){var t,e=window.zaismaPieces=window.zaismaPieces||{};e.install||(e.install=!0,t=null,window.addEventListener("beforeinstallprompt",(function(e){e.preventDefault(),t=e,document.querySelectorAll("[data-install-zaisma]").forEach((function(t){t.hidden=!1}))})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-install-zaisma]");!a||!t||(t.prompt(),t=null,a.hidden=!0)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.tables||(t.tables=!0,function(){function t(t){var e=t.querySelector(":scope > table > thead"),a=t.querySelector(":scope > table > tbody > tr > th, :scope > table > thead > tr > th:first-child");t.style.setProperty("--shown-width",t.clientWidth+"px"),t.style.setProperty("--shown-height",t.clientHeight+"px"),e&&t.style.setProperty("--head-height",e.offsetHeight+"px"),a&&t.style.setProperty("--row-head-width",a.offsetWidth+"px")}var e="function"==typeof ResizeObserver?new ResizeObserver((function(e){e.forEach((function(e){var a=e.target.closest(".table-scroll");a&&t(a)}))})):null;window.zaismaWatch.each(".table-scroll",(function(a){if(t(a),e){e.observe(a);var n=a.querySelector(":scope > table");n&&e.observe(n)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.backdrop||(t.backdrop=!0,function(){var t="float h1(float n){return fract(sin(n*127.1)*43758.5453);}\\nfloat h2(vec2 p){return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453);}\\nvec2 h22(vec2 p){p=vec2(dot(p,vec2(127.1,311.7)),dot(p,vec2(269.5,183.3)));return fract(sin(p)*43758.5453);}\\nfloat noise(vec2 p){vec2 i=floor(p),f=fract(p);vec2 u=f*f*(3.0 - 2.0*f);\\n return mix(mix(h2(i),h2(i + vec2(1.0,0.0)),u.x),mix(h2(i + vec2(0.0,1.0)),h2(i + vec2(1.0,1.0)),u.x),u.y);}\\nfloat fbm(vec2 p){float v=0.0,a=0.5;for(int i=0;i<5;i++){v +=a*noise(p);p=p*2.03 + 1.7;a*=0.5;}return v;}\\nfloat motes(vec2 p,float size,float chance,float seed){\\n vec2 id=floor(p),f=fract(p)- 0.5;vec2 r=h22(id + seed)- 0.5;\\n float on=step(1.0 - chance,h2(id + seed*1.3));\\n float d=length(f - r*0.7);\\n return on*smoothstep(size,0.0,d);\\n}\\n",e="uniform vec2 zaismaViewOffset;\\nout vec4 zaismaFragColor;\\nvoid main() { vec4 color = vec4(0.0); mainImage(color, gl_FragCoord.xy + zaismaViewOffset); zaismaFragColor = vec4(color.rgb, 1.0); }",a="/js/zaisma-shader.8fcb55f6a1be6e26.js",n="zaisma-shader-parts",i=null,r=!1;try{var o=JSON.parse(localStorage.getItem(n));o&&o.path===a&&(i=o.parts)}catch{}function s(){if(!i&&!r){r=!0;var t=document.createElement("script");t.src=a,document.head.appendChild(t)}}window.zaismaShaderPartsArrived=function(t){i=t;try{localStorage.setItem(n,JSON.stringify({path:a,parts:t}))}catch{}y()};var c="#version 300 es\\nprecision highp float;\\nprecision highp int;\\nprecision highp sampler2D;\\nuniform vec3 iResolution;\\nuniform float iTime;\\nuniform float iTimeDelta;\\nuniform int iFrame;\\nuniform float iQuality;\\nuniform sampler2D iChannel0;\\nuniform sampler2D iChannel1;\\nuniform sampler2D iChannel2;\\nuniform sampler2D iChannel3;\\nuniform vec3 iChannelResolution[4];\\nuniform vec4 iGlassPanes[16];\\nuniform int iGlassPaneCount;\\n#line 1\\n",l=6e4,d=33,u=67,f=window.matchMedia("(prefers-reduced-motion: reduce)"),h=[],m=0,p=!1,g=!1,v=!0,w=!1;function y(){p||(p=!0,g=!0,requestAnimationFrame(lt))}function b(t){var e=t.trim().replace("#","");3===e.length&&(e=e.split("").map((function(t){return t+t})).join(""));var a=parseInt(e,16)||0;return[(a>>16&255)/255,(a>>8&255)/255,(255&a)/255]}function E(t){var e=getComputedStyle(t);return{base:b(e.getPropertyValue("--backdrop-base")),a:b(e.getPropertyValue("--backdrop-a")),b:b(e.getPropertyValue("--backdrop-b")),c:b(e.getPropertyValue("--backdrop-c")),isDark:/dark/.test(e.colorScheme||"")}}var x=!0,A=!0,S=[];function L(){A=!0,y()}function T(t){return t.closest(":has(> .backdrop)")}function z(t){var e=function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return.2126*e(t[0])+.7152*e(t[1])+.0722*e(t[2])}function k(t,e){var a=z(t),n=z(e);return(Math.max(a,n)+.05)/(Math.min(a,n)+.05)}function P(t,e,a){return[t[0]+(e[0]-t[0])*a,t[1]+(e[1]-t[1])*a,t[2]+(e[2]-t[2])*a]}function M(t,e){for(var a=e.slice().sort((function(t,e){return z(t)-z(e)})),n=t.isSmoked?a[Math.floor(.75*a.length)]:a[Math.floor(.25*a.length)],i=.3;i<=.95;i+=.02){var r=P(n,t.base,i),o=t.isSmoked?[247,249,252]:[20,23,28];if(k(r,t.isSmoked?P(r,o,.7):[89,96,106])>=4.5&&k(r,o)>=6)return i}return.95}function C(t,e){t.glassPick!==e&&(t.glassPick=e,t.classList.toggle("smoke",e.isSmoked),e.isSmoked?t.removeAttribute("data-theme-choice"):t.setAttribute("data-theme-choice","light"),t.style.setProperty("--glass-tint",e.tint))}function R(t,e){e.length&&D(t,function(t){var e=t.reduce((function(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}),[0,0,0]).map((function(e){return e/t.length})),a={isSmoked:!1,base:P([255,255,255],e,.1)},n={isSmoked:!0,base:P([12,15,20],e,.3)},i=M(a,t),r=M(n,t),o=i<=r?a:n;return{isSmoked:o.isSmoked,tint:"rgba("+o.base.map(Math.round).join(", ")+", "+Math.min(i,r).toFixed(2)+")"}}(e))}function D(t,e){var a=t.canvas.parentElement;a&&(a.shownGlass=e,x=!0,void 0===a.ownThemeChoice&&(a.ownThemeChoice=a.getAttribute("data-theme-choice")),a.classList.toggle("smoke",e.isSmoked),e.isSmoked?a.removeAttribute("data-theme-choice"):a.setAttribute("data-theme-choice",a.ownThemeChoice||"light"),a.querySelectorAll("[data-glass]:not([data-cut-line])").forEach((function(t){T(t)===a&&C(t,a.shownGlass)})))}function W(t){for(var e=[],a=4*Math.max(1,Math.floor(t.length/4/2400)),n=0;n<t.length;n+=a)e.push([t[n],t[n+1],t[n+2]]);return e}function q(t){var e=t.canvas.contentWindow;if(e)try{e.postMessage({panes:[],isIdle:F},new URL(t.canvas.src).origin)}catch{}}var F=!1,I=0;function H(){F=!0,O()}function O(){h.forEach((function(t){"frame"===t.kind&&q(t)}))}var B=null,U=!1;function _(){if(B)return B.isLost?null:B;if(U)return null;var t=document.createElement("canvas");t.width=2,t.height=2;var e=t.getContext("webgl2",{antialias:!1,depth:!1,stencil:!1,alpha:!1,powerPreference:"low-power"});if(!e)return U=!0,null;function a(){e.bindVertexArray(e.createVertexArray()),e.bindBuffer(e.ARRAY_BUFFER,e.createBuffer()),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,3,-1,-1,3]),e.STATIC_DRAW),e.enableVertexAttribArray(0),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),B.vertex=e.createShader(e.VERTEX_SHADER),e.shaderSource(B.vertex,"#version 300 es\\nin vec2 corner;\\nvoid main() { gl_Position = vec4(corner, 0.0, 1.0); }"),e.compileShader(B.vertex),B.upscale={status:"compiling",names:["zaismaDrawn","zaismaDrawnSize","zaismaCanvasSize"]},N(B.upscale,"#version 300 es\\nprecision highp float;\\nuniform sampler2D zaismaDrawn;\\nuniform vec2 zaismaDrawnSize;\\nuniform vec2 zaismaCanvasSize;\\nout vec4 zaismaFragColor;\\nvec3 zaismaTap(vec2 texel) {\\n return texture(zaismaDrawn, clamp(texel, vec2(0.5), zaismaDrawnSize - 0.5) / vec2(textureSize(zaismaDrawn, 0))).rgb;\\n}\\nvoid main() {\\n vec2 at = gl_FragCoord.xy / zaismaCanvasSize * zaismaDrawnSize;\\n vec2 middle = floor(at - 0.5) + 0.5, f = at - middle;\\n vec2 w0 = f * (-0.5 + f * (1.0 - 0.5 * f)), w1 = 1.0 + f * f * (-2.5 + 1.5 * f), w2 = f * (0.5 + f * (2.0 - 1.5 * f)), w3 = f * f * (-0.5 + 0.5 * f);\\n vec2 w12 = w1 + w2, at0 = middle - 1.0, at3 = middle + 2.0, at12 = middle + w2 / w12;\\n vec3 color = (zaismaTap(vec2(at0.x, at0.y)) * w0.x + zaismaTap(vec2(at12.x, at0.y)) * w12.x + zaismaTap(vec2(at3.x, at0.y)) * w3.x) * w0.y\\n + (zaismaTap(vec2(at0.x, at12.y)) * w0.x + zaismaTap(vec2(at12.x, at12.y)) * w12.x + zaismaTap(vec2(at3.x, at12.y)) * w3.x) * w12.y\\n + (zaismaTap(vec2(at0.x, at3.y)) * w0.x + zaismaTap(vec2(at12.x, at3.y)) * w12.x + zaismaTap(vec2(at3.x, at3.y)) * w3.x) * w3.y;\\n vec3 north = zaismaTap(at + vec2(0.0, 1.0)), south = zaismaTap(at - vec2(0.0, 1.0)), east = zaismaTap(at + vec2(1.0, 0.0)), west = zaismaTap(at - vec2(1.0, 0.0));\\n vec3 low = min(min(min(north, south), min(east, west)), color), high = max(max(max(north, south), max(east, west)), color);\\n vec3 weight = -sqrt(clamp(min(low, 2.0 - high) / max(high, vec3(0.0001)), 0.0, 1.0)) / 7.0;\\n zaismaFragColor = vec4(clamp((color + (north + south + east + west) * weight) / (1.0 + 4.0 * weight), 0.0, 1.0), 1.0);\\n}"),B.drawn={texture:e.createTexture(),framebuffer:e.createFramebuffer(),widthPx:0,heightPx:0}}return B={board:t,gl:e,programs:{},isLost:!1,parallel:e.getExtension("KHR_parallel_shader_compile")},a(),t.addEventListener("webglcontextlost",(function(t){t.preventDefault(),B.isLost=!0})),t.addEventListener("webglcontextrestored",(function(){B.programs={},B.zaisma=null,h.forEach((function(t){t.parts=null})),B.isLost=!1,a(),h.forEach((function(t){t.isDrawn=!1})),y()})),B}function N(t,e){var a=B.gl,n=a.createShader(a.FRAGMENT_SHADER),i=a.createProgram();a.shaderSource(n,e),a.compileShader(n),a.attachShader(i,B.vertex),a.attachShader(i,n),a.bindAttribLocation(i,0,"corner"),a.linkProgram(i),t.pending={program:i,fragment:n}}function V(t){if("compiling"!==t.status)return"ready"===t.status;var e=B.gl,a=t.pending;return!(B.parallel&&!w&&!e.getProgramParameter(a.program,B.parallel.COMPLETION_STATUS_KHR))&&(e.getProgramParameter(a.program,e.LINK_STATUS)?(t.program=a.program,t.status="ready",t.at={},t.names.forEach((function(n){t.at[n]=e.getUniformLocation(a.program,n)}))):(console.warn("Backdrop shader:",e.getShaderInfoLog(a.fragment)||e.getProgramInfoLog(a.program)),e.deleteProgram(a.program),t.status="failed"),e.deleteShader(a.fragment),"compiling"!==t.status&&(t.pending=null),"ready"===t.status)}function G(a,n){if(a.programs[n])return a.programs[n];var i={status:"compiling",names:["iResolution","iTime","iDark","zaismaViewOffset"]};return N(i,c+"uniform float iDark;\\n"+t+n+"\\n"+e),a.programs[n]=i,i}var X=["iResolution","iTime","iDark","zaismaViewOffset"];function Y(a){if(a.zaisma)return a.zaisma;var n=c+"uniform float iDark;\\n"+t,r=n+"#define RIDGE_OCTAVES 6\\n"+i.shapes+i.live,o={status:"compiling",names:X.concat(["zaismaSoftA","zaismaSoftB","zaismaSoftC","zaismaStrip","zaismaShadeA","zaismaShadeB","zaismaUv"])};function s(t){var e={status:"compiling",names:X};return N(e,r+t),e}return N(o,n+"#define RIDGE_OCTAVES 4\\n"+i.shapes+i.stored+i.draw+"\\n"+e),a.zaisma={sharp:o,soft:s(i.soft),strip:s(i.strip),shade:s(i.shade)},a.zaisma}function K(t,e,a){for(var n={framebuffer:t.createFramebuffer(),textures:[],widthPx:0,heightPx:0},i=0;i<e;i++)n.textures.push(t.createTexture());return n.size=function(e,i){n.widthPx===e&&n.heightPx===i||(n.widthPx=e,n.heightPx=i,t.bindFramebuffer(t.FRAMEBUFFER,n.framebuffer),n.textures.forEach((function(n,r){t.bindTexture(t.TEXTURE_2D,n),t.texImage2D(t.TEXTURE_2D,0,t.RGBA8,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,a?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+r,t.TEXTURE_2D,n,0)})),t.drawBuffers(n.textures.map((function(e,a){return t.COLOR_ATTACHMENT0+a}))))},n}function j(t,e,a,n,i,r,o,s,c){t.bindFramebuffer(t.FRAMEBUFFER,a.framebuffer),t.useProgram(e.program),t.viewport(0,0,n,i);var l=n*r,d=l/o;t.uniform3f(e.at.iResolution,l,d,1),t.uniform1f(e.at.iTime,s),t.uniform1f(e.at.iDark,c),t.uniform2f(e.at.zaismaViewOffset,(l-n)/2,(d-i)/2),t.drawArrays(t.TRIANGLES,0,3)}function J(t){var e=!t.getAttribute("data-backdrop-shader"),a=t.getAttribute("data-backdrop-shader"),n=_(),r=null;if(!n)return null;function o(){return e&&!a&&i&&(a="#define RIDGE_OCTAVES 4\\n"+i.shapes+i.live+i.draw),a}function c(n,i,c){if(!o())return s(),!1;var l=_();if(l&&e&&!c.isOnePass){var d=Y(l),u=[d.sharp,d.soft,d.strip,d.shade].map(V).every(Boolean);if([d.sharp,d.soft,d.strip,d.shade].some((function(t){return"failed"===t.status})))c.isOnePass=!0;else if(!u)return!1}var f=l&&(e&&!c.isOnePass?Y(l).sharp:G(l,a));if(!f||!V(f)||!V(l.upscale))return f&&("failed"===f.status||"failed"===l.upscale.status)&&(c.isLost=!0),!1;if(!(r=r||t.getContext("2d",{alpha:!1})))return!1;var h=l.gl,m=l.board,p=t.width,g=t.height,v=c.drawnWidth,w=c.drawnHeight,y=f.at;(m.width<p||m.height<g)&&(m.width=Math.max(m.width,p),m.height=Math.max(m.height,g));var b=e&&!c.isOnePass,E=b?null:function(t,e,a){var n=t.gl,i=t.drawn;return(i.widthPx<e||i.heightPx<a)&&(i.widthPx=Math.max(i.widthPx,e),i.heightPx=Math.max(i.heightPx,a),n.bindTexture(n.TEXTURE_2D,i.texture),n.texImage2D(n.TEXTURE_2D,0,n.RGBA8,i.widthPx,i.heightPx,0,n.RGBA,n.UNSIGNED_BYTE,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.bindFramebuffer(n.FRAMEBUFFER,i.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,i.texture,0)),i}(l,v,w);b||(h.bindFramebuffer(h.FRAMEBUFFER,E.framebuffer),h.useProgram(f.program),h.viewport(0,0,v,w));var x=t.classList.contains("is-framed")?1.8:1,A=v*x,L=w*x;b?function(t,e,a,n,i,r,o,s){var c=t.gl,l=Y(t),d=l.sharp,u=e.parts,f=n/i;u||(u=e.parts={strip:K(c,1,!1),shade:K(c,2,!0),soft:K(c,3,!0),storedWidth:0,storedHeight:0}),(u.storedWidth!==n||u.storedHeight!==i)&&(u.storedWidth=n,u.storedHeight=i,u.strip.size(n,7),u.shade.size(Math.max(2,n>>1),Math.max(2,i>>1)),c.bindFramebuffer(c.FRAMEBUFFER,u.strip.framebuffer),c.useProgram(l.strip.program),c.viewport(0,0,n,7),c.uniform3f(l.strip.at.iResolution,n*s,i*s,1),c.uniform1f(l.strip.at.iTime,0),c.uniform1f(l.strip.at.iDark,0),c.uniform2f(l.strip.at.zaismaViewOffset,(n*s-n)/2,0),c.drawArrays(c.TRIANGLES,0,3),j(c,l.shade,u.shade,u.shade.widthPx,u.shade.heightPx,s,f,0,0));var h=Math.max(160,Math.round(Math.min(540,Math.max(300,.34*i))*e.softShare)),m=Math.max(2,Math.round(h*f));u.soft.size(m,h),j(c,l.soft,u.soft,m,h,s,f,r,o),c.bindFramebuffer(c.FRAMEBUFFER,null),c.useProgram(d.program),c.viewport(0,0,n,i);var p=d.at;[["zaismaSoftA",u.soft.textures[0]],["zaismaSoftB",u.soft.textures[1]],["zaismaSoftC",u.soft.textures[2]],["zaismaStrip",u.strip.textures[0]],["zaismaShadeA",u.shade.textures[0]],["zaismaShadeB",u.shade.textures[1]]].forEach((function(t,e){c.activeTexture(c.TEXTURE0+e),c.bindTexture(c.TEXTURE_2D,t[1]),c.uniform1i(p[t[0]],e)})),c.activeTexture(c.TEXTURE0);var g=n*s,v=i*s,w=(g-n)/2,y=(v-i)/2;c.uniform3f(p.iResolution,g,v,1),c.uniform1f(p.iTime,r),c.uniform1f(p.iDark,o),c.uniform2f(p.zaismaViewOffset,w,y),c.uniform4f(p.zaismaUv,1/n,1/i,-w/n,-y/i)}(l,c,0,p,g,n,i.darkShare,x):(h.uniform3f(y.iResolution,A,L,1),h.uniform1f(y.iTime,n),h.uniform1f(y.iDark,i.darkShare),h.uniform2f(y.zaismaViewOffset,(A-v)/2,(L-w)/2));var T=t.hasAttribute("data-adapts-glass")&&!c.isGlassAdapted&&S.some((function(e){return e.glassHost===t.parentElement}));if(h.drawArrays(h.TRIANGLES,0,3),!b){var z=l.upscale;h.bindFramebuffer(h.FRAMEBUFFER,null),h.useProgram(z.program),h.viewport(0,0,p,g),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,E.texture),h.uniform1i(z.at.zaismaDrawn,0),h.uniform2f(z.at.zaismaDrawnSize,v,w),h.uniform2f(z.at.zaismaCanvasSize,p,g),h.drawArrays(h.TRIANGLES,0,3)}return T&&(c.isGlassAdapted=!0,function(t,e,a,n){var i=new Uint8Array(a*n*4);t.readPixels(0,0,a,n,t.RGBA,t.UNSIGNED_BYTE,i),R(e,W(i))}(h,c,p,g)),r.drawImage(m,0,m.height-g,p,g,0,0,p,g),t.classList.contains("is-drawn")||t.classList.add("is-drawn"),!0}return c.prepare=function(){if(o()){var t=_();t&&G(t,a)}else s()},c}var $=500;function Z(t,e,a){return t.map((function(t,n){return t+(e[n]-t)*a}))}var Q=1e3,tt="zaisma:backdrop-lag-s",et=performance.now(),at=1,nt=performance.now(),it=!1,rt=Date.now()/1e3;try{rt-=Number(sessionStorage.getItem(tt))||0}catch{}function ot(){et=performance.now(),clearTimeout(I),I=setTimeout(H,l),F&&(F=!1,O()),it&&(it=!1,nt=et,h.forEach((function(t){t.isDrawn=!1})),y())}function st(t,e){if(!t.isOuter){var a=f.matches?20:rt%3600;t.colors=function(t,e){var a=f.matches||!t.from?1:Math.min(1,(e-t.fadeStartMs)/$);if(a>=1)return t.from=null,Object.assign({},t.target,{darkShare:t.target.isDark?1:0});var n=a*a*(3-2*a),i=t.from,r=t.target;return{base:Z(i.base,r.base,n),a:Z(i.a,r.a,n),b:Z(i.b,r.b,n),c:Z(i.c,r.c,n),isDark:n<.5?i.isDark:r.isDark,darkShare:(void 0!==i.darkShare?i.darkShare:i.isDark?1:0)+((r.isDark?1:0)-(void 0!==i.darkShare?i.darkShare:i.isDark?1:0))*n}}(t,e);var n=!0;if(t.drawShader){if(n=t.drawShader(a,t.colors,t),t.isLost)return void t.canvas.classList.remove("is-drawn")}else t.canvas.dispatchEvent(new CustomEvent("backdrop-frame",{detail:{timeS:a,colors:t.colors,widthPx:t.canvas.width,heightPx:t.canvas.height}}));t.isDrawn=n&&!t.from}}function ct(t){return!(t.isOuter||!t.isInView||t.isLost||t.canvas.hasAttribute("data-backdrop-paused"))&&!((t.isHeld||f.matches||it)&&t.isDrawn)}function lt(t){if(p=!1,!document.hidden){var e=F?u:d;if(t-m<e&&!A)return p=!0,void requestAnimationFrame(lt);var a=g?d:t-m;m=t,g=!1,w=v,v=!1,function(t){var e=Math.max(0,t-nt);nt=t,at=t-et>l?Math.max(0,at-e/Q):Math.min(1,at+e/Q),rt+=at*e/1e3,it=0===at}(t),x&&(x=!1,A=!0,S=Array.prototype.filter.call(document.querySelectorAll("[data-glass]:not([data-cut-line])"),(function(t){t.glassHost=T(t),t.glassHost&&t.glassHost.shownGlass&&C(t,t.glassHost.shownGlass);var e=getComputedStyle(t);return"hidden"!==e.visibility&&"none"!==e.display&&Number(e.opacity)>.05})));var n=A;A=!1,h.forEach((function(i){if(i.isInView&&!i.canvas.hasAttribute("data-backdrop-paused")){if(i.isOuter)return"frame"===i.kind&&!i.isTold&&(i.isTold=!0,q(i)),void(i.canvas.hasAttribute("data-adapts-glass")&&!i.isGlassAdapted&&function(t){var e=t.still;if(e&&e.naturalWidth){var a=document.createElement("canvas"),n=Math.min(1,160/Math.max(e.naturalWidth,e.naturalHeight));a.width=Math.max(2,Math.round(e.naturalWidth*n)),a.height=Math.max(2,Math.round(e.naturalHeight*n));var i=a.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,a.width,a.height),t.isGlassAdapted=!0;try{R(t,W(i.getImageData(0,0,a.width,a.height).data))}catch{}}}(i));i.drawShader&&n&&(i.isDrawn=!1),(!(i.isHeld||f.matches||it)||!i.isDrawn)&&(i.drawShader&&a<1e3&&(i.slowS=a>1.5*e?i.slowS+a/1e3:Math.max(0,i.slowS-a/2e3),i.slowS>1.5&&(i.slowS=0,i.softShare>.6?i.softShare*=.75:i.scale>.26?(i.scale*=.75,i.size()):i.isHeld=!0)),st(i,t))}})),w=!1,(A||x||h.some(ct))&&(p=!0,requestAnimationFrame(lt))}}function dt(){var t=performance.now();x=!0,h.forEach((function(e){var a=E(e.canvas);JSON.stringify(a)!==JSON.stringify(e.target)&&(e.from=e.colors,e.target=a,e.fadeStartMs=t,e.isDrawn=!1,e.isGlassAdapted=!1,e.isInView&&st(e,t))})),y()}function ut(){var t="";h.forEach((function(e){var a=e.isOuter&&e.canvas.getAttribute("data-backdrop-color");a&&/^#[0-9a-fA-F]{6}$/.test(a)&&(t=a)})),t?document.documentElement.style.setProperty("--backdrop-edge",t):document.documentElement.style.removeProperty("--backdrop-edge")}function ft(t){if(!t.backdropLayer&&(!t.hasAttribute("data-backdrop-stand-in")||t.hasAttribute("data-backdrop-shader"))){var e=t.getAttribute("data-backdrop");if("frame"===e||"picture"===e)return function(t,e){var a={canvas:t,kind:e,isOuter:!0,isInView:!0,isTold:!1,isGlassAdapted:!1,target:E(t),from:null};function n(){var n=t.getAttribute("data-glass-kind");if(t.hasAttribute("data-adapts-glass")&&n)return a.isGlassAdapted=!0,void D(a,{isSmoked:"smoked"===n,tint:t.getAttribute("data-glass-tint")||""});var i=t.getAttribute("data-backdrop-still")||("picture"===e?t.currentSrc||t.src:"");if(t.hasAttribute("data-adapts-glass")&&i){var r=new Image;r.onload=function(){t.getAttribute("data-backdrop-still")!==i&&"picture"!==e||(a.still=r,a.isGlassAdapted=!1,L())},r.src=i}}t.backdropLayer=a,h.push(a),"frame"===e&&(a.onMessage=function(e){e.source===t.contentWindow&&e.data&&e.data.zaismaBackground&&(a.isTold=!1,L())},window.addEventListener("message",a.onMessage)),n(),new MutationObserver(n).observe(t,{attributes:!0,attributeFilter:["data-backdrop-still","src","data-glass-kind"]}),window.IntersectionObserver&&new IntersectionObserver((function(t){a.isInView=t[t.length-1].isIntersecting,a.isInView&&L()})).observe(t),L(),ut()}(t,e);var a="scene"===t.getAttribute("data-backdrop"),n=window.matchMedia("(max-width: 760px)").matches,i=Math.min(window.devicePixelRatio||1,a?2:1.5),r=t.classList.contains("is-framed"),o=!a&&!t.getAttribute("data-backdrop-shader"),s=pt&&pt.has(t)?pt.get(t):ht(t),c={canvas:t,isInView:s,isDrawn:!1,isHeld:!1,slowS:0,target:E(t),from:null,softShare:1,scale:a||r?i:o?Math.min(window.devicePixelRatio||1,2):(n?.4:.55)*i};if(a||(c.drawShader=J(t),c.drawShader)){if(t.backdropLayer=c,c.size=function(){var e=Math.max(2,Math.round(t.clientWidth*c.scale)),n=Math.max(2,Math.round(t.clientHeight*c.scale));o&&!c.isOnePass?(c.drawnWidth=e,c.drawnHeight=n):a||(c.drawnWidth=Math.max(2,Math.round(t.clientWidth*c.scale*.7)),c.drawnHeight=Math.max(2,Math.round(t.clientHeight*c.scale*.7)),e=Math.round(1.4*c.drawnWidth),n=Math.round(1.4*c.drawnHeight)),(e!==t.width||n!==t.height)&&(t.width=e,t.height=n,c.isDrawn=!1,t.backdropLayer&&!v&&c.isInView&&st(c,performance.now()))},c.size(),window.zaismaWatch.size(t,c.size),window.IntersectionObserver&&new IntersectionObserver((function(t){c.isInView=t[t.length-1].isIntersecting,c.onView&&c.onView(),c.isInView&&y()})).observe(t),c.drawShader&&!s&&window.IntersectionObserver){var l=new IntersectionObserver((function(t){t[t.length-1].isIntersecting&&(l.disconnect(),c.drawShader.prepare())}),{rootMargin:"100% 0px"});l.observe(t)}else c.drawShader&&c.drawShader.prepare();new MutationObserver(y).observe(t,{attributes:!0,attributeFilter:["data-backdrop-paused"]}),h.push(c),!v&&c.isInView&&st(c,performance.now()),y()}}}function ht(t){var e=t.getBoundingClientRect();return e.bottom>0&&e.right>0&&e.top<window.innerHeight&&e.left<window.innerWidth}["pointerdown","pointermove","keydown","wheel","touchstart","scroll"].forEach((function(t){window.addEventListener(t,ot,{passive:!0,capture:!0})})),I=setTimeout(H,l),window.addEventListener("pagehide",(function(){try{sessionStorage.setItem(tt,String(Date.now()/1e3-rt))}catch{}}));var mt=document.querySelectorAll("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']"),pt=new Map;function gt(t){return 1===t.nodeType&&(t.hasAttribute("data-glass")||!!t.querySelector("[data-glass]"))}mt.forEach((function(t){"CANVAS"===t.tagName&&pt.set(t,ht(t))})),mt.forEach(ft),pt.clear(),window.zaismaWatch.each("canvas[data-backdrop], iframe[data-backdrop='frame'], img[data-backdrop='picture']",ft),window.zaismaBackdrop={add:function(t){x=!0,ft(t),y()},remove:function(t){var e=t.backdropLayer;e&&(h=h.filter((function(t){return t!==e})),e.onMessage&&window.removeEventListener("message",e.onMessage),t.backdropLayer=null,L(),ut())},forgetGlass:function(){document.querySelectorAll(":has(> .backdrop)").forEach((function(t){t.shownGlass=null})),document.querySelectorAll("[data-glass]").forEach((function(t){t.glassPick=null,t.classList.remove("smoke"),t.removeAttribute("data-theme-choice"),t.style.removeProperty("--glass-tint")}))}},window.zaismaWatch.resize(L),window.zaismaWatch.page((function(t){x||(x=t.some((function(t){return"attributes"===t.type?t.target.hasAttribute("data-glass"):Array.prototype.some.call(t.addedNodes,gt)||Array.prototype.some.call(t.removedNodes,gt)})))&&y()})),document.addEventListener("toggle",(function(){x=!0,y()}),!0),document.addEventListener("visibilitychange",(function(){document.hidden||y()})),new MutationObserver(dt).observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-theme-choice"]}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",dt),f.addEventListener("change",dt)}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["shown-once-drawn"]||(t["shown-once-drawn"]=!0,function(){var t="iframe[data-shows-once-drawn]";function e(t){window.zaismaWatch.afterSettling((function(){t.classList.add("is-shown")}))}window.addEventListener("message",(function(a){!a.data||!a.data.zaismaBackground||document.querySelectorAll(t).forEach((function(t){a.source===t.contentWindow&&(t.hasSaid=!0,e(t))}))})),window.zaismaWatch.eachArriving(t,(function(t){t.addEventListener("load",(function(){setTimeout((function(){t.hasSaid||e(t)}),4e3)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.switches||(t.switches=!0,window.zaismaWatch.each(".tab-switch",(function(t){var e=t.querySelector(".switch-slab"),a=t.querySelectorAll(":scope > a, :scope > button:not(.switch-folder)"),n=function(){return t.classList.contains("vertical")};function i(){return t.querySelector('[aria-current="page"], [aria-pressed="true"]')}var r=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--gap-control-row"))||4,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function s(t){var e=window.devicePixelRatio||1;return Math.round(t*e)/e}var c,l,d,u,f=(c=.4,l=0,d=.2,u=1,function(t){for(var e=t,a=0;a<8;a++){var n=3*(1-e)*(1-e)*e*c+3*(1-e)*e*e*d+e*e*e-t,i=3*(1-e)*(1-e)*c+6*(1-e)*e*(d-c)+3*e*e*(1-d);if(Math.abs(i)<1e-6)break;e=Math.min(1,Math.max(0,e-n/i))}return 3*(1-e)*(1-e)*e*l+3*(1-e)*e*e*u+e*e*e});function h(t,e){t.slideAt=e;var a=Math.round(e.size)+"px";n()?(t.style.width=e.width?Math.round(e.width)+"px":"",t.style.height=a,t.style.transform="translate("+(e.across||0)+"px, "+e.pos+"px)"):(t.style.height="",t.style.width=a,t.style.transform="translateX("+e.pos+"px)")}function m(e,a,n,i){var o=function(t){return Math.max(0,((Number(t.getAttribute("data-cut-line"))||0)-r)/2)}(e),s=n?0:o,c=i?0:o,l=t.closest("[data-cut-line]"),d=l&&l.getAttribute("data-slanted")||"";if(!e.classList.contains("focus-ring")&&(n&&/start/.test(d)||i&&/end/.test(d))){var u=a.offsetTop,f=t.offsetHeight,h=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--control-slant"))||10,m=h/2-Math.min(Number(e.getAttribute("data-cut-line"))||0,(a.offsetWidth+s+c)/3)/2+u*Math.sqrt(1+h/f*(h/f))-u;n&&/start/.test(d)&&(s=-m),i&&/end/.test(d)&&(c=-m)}return{start:s,end:c}}function p(e,a,i){var r=!i&&e.slideTarget&&e.pickedTab===a;if(e.pickedTab=a,a){var c={beside:e.getAttribute("data-cut-beside"),ends:e.getAttribute("data-cut-ends")||"",stack:e.getAttribute("data-cut-stack")},l=Array.prototype.filter.call(t.querySelectorAll(":scope > a, :scope > button"),(function(t){return!t.classList.contains("folded")&&!t.hidden})),d=a===l[0],u=a===l[l.length-1];if(n()){var f={pos:a.offsetTop,size:a.offsetHeight},h=i&&!o?v(e):0;if("grid"===getComputedStyle(t).display&&(f.across=a.offsetLeft,f.width=a.offsetWidth),e.classList.contains("focus-ring")){var p=d?0:a.offsetTop,w=u?t.getBoundingClientRect().height:a.offsetTop+a.offsetHeight,y=Math.round(w-p);f={pos:u?w-y:p,size:y,across:f.across,width:f.width}}return e.setAttribute("data-cut-beside",""),e.setAttribute("data-cut-stack",((d?"first ":"")+(u?"last":"")).trim()),void g(e,f,h,null!==c.stack?c:null,r)}var b=m(e,a,d,u),E=b.start,x=b.end,A={pos:s(a.offsetLeft-E),size:a.offsetWidth+E+x},S=i&&!o?v(e):0;if(e.classList.contains("focus-ring")){var L=d?0:a.offsetLeft-E,T=u?t.getBoundingClientRect().width:a.offsetLeft+a.offsetWidth+x,z=Math.round(T-L);A={pos:u?T-z:L,size:z}}e.setAttribute("data-cut-beside",((d?"":"start ")+(u?"":"end")).trim());var k=((d?"start ":"")+(u?"end":"")).trim();k?e.setAttribute("data-cut-ends",k):e.removeAttribute("data-cut-ends"),g(e,A,S,null!==c.beside?c:null,r)}else e.style.width="0px"}function g(t,a,n,i,r){if(r)t.slideTarget=a;else{if(n&&t.redrawCut){var o=t.slideAt;return h(t,a),t.redrawCut(i?{from:i,ms:n,ease:t===e&&w?w.ease:f,isDriven:!0}:void 0),o&&h(t,o),void function(t,a,n){var i=t===e?w:null,r=i?i.ease:f,o=t.slideAt||a,s=null,c=(t.slideId||0)+1;t.slideId=c,t.slideTarget=a,t.setAttribute("data-move-duration-ms",String(Math.round(n))),function e(l){if(t.slideId===c){var d=null===s||void 0===l?0:Math.min(1,(l-s)/n),u=r(d);a=t.slideTarget,i&&i.isOn&&window.scrollTo(window.scrollX,i.fromY+(i.toY-i.fromY)*u);var f=o.size!==a.size||void 0!==a.width&&o.width!==a.width;t.redrawCut&&!f&&t.redrawCut({isFrame:!0,progress:d});var m=function(t,e){return d<1&&void 0!==t?t+(e-t)*u:e};if(h(t,{pos:m(o.pos,a.pos),size:m(o.size,a.size),across:void 0===a.across?void 0:m(o.across||0,a.across),width:void 0===a.width?void 0:m(o.width,a.width)}),t.redrawCut&&f&&t.redrawCut({isFrame:!0,progress:d}),d<1)return void requestAnimationFrame((function(t){null===s&&(s=t),e(t)}));t.removeAttribute("data-move-duration-ms"),t.slideTarget=null,t.redrawCut&&t.redrawCut(),i&&i.isOn&&i.land()}}()}(t,a,n)}t.slideId=(t.slideId||0)+1,t.slideTarget=null,t.removeAttribute("data-move-duration-ms"),h(t,a),t.redrawCut&&t.redrawCut()}}function v(t){return t===e&&w?w.ms:parseFloat(getComputedStyle(t).getPropertyValue("--slide-ms"))||550}var w=null,y=!1;function b(){if(!y&&t.getClientRects().length){!function(){var i=t.closest("[data-cut-line]"),r=i&&i.getAttribute("data-slanted")||"",o=Array.prototype.filter.call(a,(function(t){return!t.classList.contains("folded")&&!t.hidden}));o.forEach((function(t,a){if(n())t.style.removeProperty("--tab-shift");else{var i=0===a,s=a===o.length-1,c=m(e,t,i,s),l=Math.min(Number(e.getAttribute("data-cut-line"))||0,(t.offsetWidth+c.start+c.end)/3),d=(!i||/start/.test(r)?1:0)-(!s||/end/.test(r)?1:0);t.style.setProperty("--tab-shift",Math.round(10*((c.end-c.start)/2+d*l/4))/10+"px")}}))}();var r=i(),o=t.querySelector(":scope > :focus-visible"),s=t.querySelector(".focus-ring");e.style.transition="none",p(e,r),s&&o&&p(s,o),function(){var e=t.querySelector(":scope > .is-focused"),a=t.querySelector(".focus-ring");e&&a&&(p(a,e),t.classList.add("is-focus-shown"))}(),e.offsetWidth,e.style.transition="",t.classList.add("is-ready")}}var E=t.closest("body > .top")&&window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function x(){var e=E.matches,a=t.closest(".switch-well"),n=t.parentElement;t.classList.toggle("vertical",e),a&&(a.classList.toggle("vertical",e),a.classList.toggle("is-full",!e),a.setAttribute("data-edge-light",e?"left":"bottom")),n&&n.classList.toggle("across",!e)}function A(e){var a=i(),r=t.parentElement;if(r){if(n()){var o=r.scrollHeight-r.clientHeight;if(!a||o<=1||!a.getClientRects().length)return;var s=window.zaismaScrollFadePx?window.zaismaScrollFadePx():34,c=r.getBoundingClientRect(),l=a.getBoundingClientRect(),d=r.scrollTop,u=l.top-c.top+d,f=l.bottom-c.top+d,h=d;return u-s<d?h=u-s:f+s>d+r.clientHeight&&(h=f+s-r.clientHeight),void r.scrollTo({top:Math.max(0,Math.min(o,h)),behavior:e?"smooth":"auto"})}t.classList.remove("is-past-room"),!(r.scrollWidth<=r.clientWidth+1)&&(t.classList.add("is-past-room"),a&&r.scrollTo({left:a.offsetLeft+a.offsetWidth/2-r.clientWidth/2,behavior:e?"smooth":"auto"}))}}function S(){var e=t.parentElement;if(!n()&&e&&t.classList.contains("is-past-room")){if(t.classList.remove("is-past-room"),e.scrollWidth>e.clientWidth+1)return void t.classList.add("is-past-room");e.fadeEndsAgain&&e.fadeEndsAgain()}}E&&(x(),E.addEventListener("change",(function(){x(),b()}))),b(),A(!1),window.zaismaWatch.afterSettling(S);var L=window.navigation&&navigation.activation&&navigation.activation.from;if(L&&L.url&&e.animate&&!n()&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var T=new URL(L.url),z=T.pathname,k=z===location.pathname&&T.search===location.search,P=Array.prototype.filter.call(a,(function(t){return t.href&&new URL(t.href).pathname===z})),M=P.find((function(t){return new URL(t.href).search===T.search}))||(1===P.length?P[0]:void 0),C=i();M&&C&&M!==C&&!k&&(e.style.transition="none",p(e,M),e.offsetWidth,e.style.transition="",y=!0,window.zaismaWatch.fontsIn((function(){requestAnimationFrame((function(){y=!1,b(),y=!0;var t=function(){y=!1,b(),S()};(function(){var t=n()?"translateY("+M.offsetTop+"px)":"translateX("+M.offsetLeft+"px) scaleX("+(M.offsetWidth/Math.max(1,C.offsetWidth)).toFixed(4)+")",a=n()?"translateY("+C.offsetTop+"px)":"translateX("+C.offsetLeft+"px) scaleX(1)";return e.animate([{transform:t,transformOrigin:"0 0"},{transform:a,transformOrigin:"0 0"}],{duration:v(e),easing:"cubic-bezier(.3, 1.2, .4, 1)"})})().finished.then(t,t)}))})))}if(window.zaismaWatch.fontsIn(b),window.zaismaWatch.size(t,b),window.zaismaWatch.size(t,(function(){n()||A(!1)})),t.parentElement&&(window.zaismaWatch.size(t.parentElement,b),window.zaismaWatch.size(t.parentElement,(function(){A(!1)}))),Array.prototype.forEach.call(t.querySelectorAll(":scope > .foldable"),(function(t){window.zaismaWatch.size(t,b)})),t.pickTab=function(i){"BUTTON"===i.tagName?a.forEach((function(t){t.setAttribute("aria-pressed",String(t===i))})):a.forEach((function(t){t===i?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current")})),e.pickedTab!==i&&p(e,i,!0);var r=t.closest("[data-fades-sideways]");r&&r!==t.parentElement&&r.showWhole&&!n()?r.showWhole(i,!0):A(!0),I()},a.forEach((function(a){a.addEventListener("click",(function(r){if(!function(t){return t.disabled||"true"===t.getAttribute("aria-disabled")}(a)){if(a.href&&"page"===a.getAttribute("aria-current")&&0===r.button&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey)return void r.preventDefault();if(a.href&&!r.defaultPrevented){var s=new URL(a.href,location.href),c=!(0!==r.button||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||a.target&&"_self"!==a.target);if(s.pathname!==location.pathname||s.search!==location.search){if(!n()||o||!c)return;return r.preventDefault(),B=B||i(),t.pickTab(a),O(),clearTimeout(U),document.dispatchEvent(new Event("zaisma-leaving-page")),void(U=setTimeout((function(){location.assign(a.href)}),v(e)))}var l=n()&&!o&&c&&s.hash&&document.getElementById(decodeURIComponent(s.hash.slice(1)));if(l&&l.getClientRects().length)return r.preventDefault(),void function(e,a,n){w&&w.stop();var i=document.documentElement,r=window.scrollY,o=parseFloat(getComputedStyle(i).scrollPaddingTop)||0,s=Math.max(0,Math.min(i.scrollHeight-window.innerHeight,r+a.getBoundingClientRect().top-o)),c=Math.abs(s-r)/window.innerHeight,l=w={isOn:!0,fromY:r,toY:s,ms:Math.min(800,400+130*Math.max(0,c-1)),ease:function(t){return t*t*t*(t*(6*t-15)+10)}},d=["wheel","touchstart","pointerdown","keydown"];function u(t){l.isOn=!1,d.forEach((function(t){window.removeEventListener(t,f)})),w===l&&(w=null),requestAnimationFrame((function(){requestAnimationFrame((function(){w||i.removeAttribute("data-page-gliding"),dispatchEvent(new CustomEvent("zaisma:page-glide-end",{detail:{hash:n,hasLanded:t}}))}))}))}function f(){u(!1)}l.stop=function(){l.isOn&&(l.isOn=!1,d.forEach((function(t){window.removeEventListener(t,f)})))},l.land=function(){location.hash=n,u(!0)},i.setAttribute("data-page-gliding",""),d.forEach((function(t){window.addEventListener(t,f,{passive:!0})})),t.pickTab(e)}(a,l,s.hash)}t.pickTab(a)}}))})),t.hasAttribute("data-shows-one-panel")){var R=function(t){var e=t.hash?decodeURIComponent(t.hash.slice(1)):"";return e?document.getElementById(e):null},D=function(t){a.forEach((function(e){var a=R(e);a&&(a.hidden=e!==t)}))},W=function(){var e=Array.prototype.filter.call(a,(function(t){return t.hash&&t.hash===location.hash}))[0];e&&(D(e),"page"!==e.getAttribute("aria-current")&&t.pickTab(e))};a.forEach((function(t){t.addEventListener("click",(function(e){if(!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&R(t)){e.preventDefault(),history.replaceState(history.state,"",t.hash),D(t);var a=R(t);a&&a.animate&&!o&&a.animate([{opacity:0},{opacity:1}],{duration:200,easing:"cubic-bezier(0.2, 0, 0, 1)"})}}))})),window.addEventListener("hashchange",W),queueMicrotask(W)}var q=Array.prototype.slice.call(t.querySelectorAll(":scope > .switch-folder"));function F(t){for(var e=[],a=t.nextElementSibling;a&&a.classList.contains("is-in-folder");a=a.nextElementSibling)e.push(a);return e}function I(){var t=i();q.forEach((function(e){var a=F(e).indexOf(t)>=0;e.classList.toggle("is-held",a),a?e.removeAttribute("data-lights"):e.setAttribute("data-lights",""),a&&"true"!==e.getAttribute("aria-expanded")&&H(e,!0)}))}function H(t,e){t.setAttribute("aria-expanded",String(e)),F(t).forEach((function(t){!function(t,e){var a=t.hidden?0:t.offsetHeight;t.getAnimations().forEach((function(t){t.cancel()})),t.hidden=!1;var n=t.offsetHeight;if(!o&&t.animate){t.classList.add("is-folding");var i=t.animate([{height:a+"px",minHeight:"0px",opacity:n?a/n:0},{height:(e?n:0)+"px",minHeight:"0px",opacity:e?1:0}],{duration:240,easing:"cubic-bezier(.2,.8,.2,1)"});i.onfinish=function(){t.classList.remove("is-folding"),t.hidden=!e},i.oncancel=function(){t.classList.remove("is-folding")}}else t.hidden=!e}(t,e)}))}function O(t){q.forEach((function(e){e!==t&&!e.classList.contains("is-held")&&"true"===e.getAttribute("aria-expanded")&&H(e,!1)}))}q.forEach((function(t){t.addEventListener("click",(function(){if(!t.classList.contains("is-held")){var e="true"!==t.getAttribute("aria-expanded");H(t,e),e&&O(t)}}))})),I();var B=null,U=null;window.addEventListener("pageshow",(function(e){!e.persisted||!B||(clearTimeout(U),t.pickTab(B),O(),B=null)}));var _=t.querySelector(".focus-ring");t.addEventListener("focusin",(function(e){var a=e.target;!_||a.parentElement!==t||!a.matches(":focus-visible")||(p(_,a),t.classList.add("is-focus-shown"))})),t.addEventListener("focusout",(function(){t.classList.remove("is-focus-shown")}))})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["guild-seal"]||(t["guild-seal"]=!0,!window.IntersectionObserver||matchMedia("(prefers-reduced-motion: reduce)").matches||window.zaismaWatch.each("video.guild-seal-video",(function(t){var e=!1;t.addEventListener("ended",(function(){t.src=t.getAttribute("data-resting"),t.loop=!0,t.play().catch((function(){}))})),new IntersectionObserver((function(a){a[a.length-1].isIntersecting?(e||(e=!0,t.src=t.getAttribute("data-forging")),t.play().catch((function(){}))):t.pause()})).observe(t)})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sidebar||(t.sidebar=!0,function(){function t(t){return"1"===getComputedStyle(t).getPropertyValue("--sidebar-is-sheet").trim()}function e(t){return"zaisma-sidebar:"+t.getAttribute("data-sidebar-remember")}function a(t){return document.querySelectorAll('[data-sidebar-button][aria-controls="'+t.id+'"], [data-sidebar-button][aria-controls="'+t.id+'-sheet"]')}function n(e){var n=e.closest(".sidebar-layout"),i=document.getElementById(e.id+"-sheet");a(e).forEach((function(a){a.setAttribute("aria-controls",t(e)?e.id+"-sheet":e.id),a.setAttribute("aria-expanded",String(t(e)?!(!i||!i.open):!(!n||n.classList.contains("is-collapsed"))))}))}function i(t,e){e.classList.remove("is-folding"),t.classList.remove("is-leaving"),["--sidebar-left","--sidebar-top","--sidebar-width","--sidebar-height"].forEach((function(e){t.style.removeProperty(e)}))}function r(t,a,r){var o=t.closest(".sidebar-layout");if(o){if(r)try{localStorage.setItem(e(t),a?"hidden":"shown")}catch{}cancelAnimationFrame(t.foldFrame),clearTimeout(t.foldTimer),clearTimeout(t.slideTimer),i(t,o);var s=o.querySelector(".sidebar-main"),c=r&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&s,l=c?s.getBoundingClientRect():null,d=c&&a?t.getBoundingClientRect():null;if(d&&(t.style.setProperty("--sidebar-left",d.left+"px"),t.style.setProperty("--sidebar-top",d.top+"px"),t.style.setProperty("--sidebar-width",d.width+"px"),t.style.setProperty("--sidebar-height",d.height+"px"),o.classList.add("is-folding")),o.classList.toggle("is-collapsed",a),n(t),d&&(t.foldFrame=requestAnimationFrame((function(){t.classList.add("is-leaving")})),t.foldTimer=setTimeout((function(){i(t,o)}),350)),c){var u=l.left-s.getBoundingClientRect().left;Math.abs(u)<1||(s.style.transition="none",s.style.transform="translateX("+u+"px)",s.offsetWidth,s.style.transition="transform 0.45s cubic-bezier(.2,.8,.2,1)",s.style.transform="",t.slideTimer=setTimeout((function(){s.style.removeProperty("transition"),s.style.removeProperty("transform")}),500))}}}window.zaismaWatch.each("nav.sidebar[data-sidebar-remember]",(function(t){try{var i=localStorage.getItem(e(t));("shown"===i||"hidden"===i)&&r(t,"hidden"===i,!1)}catch{}window.zaismaWatch.whenRead((function(){!function(t){var e=document.getElementById(t.id+"-sheet");e&&(e.addEventListener("close",(function(){n(t);var i=a(t)[0];i&&(!document.activeElement||document.activeElement===document.body||e.contains(document.activeElement))&&i.focus({preventScroll:!0})})),e.addEventListener("click",(function(t){t.target.closest&&t.target.closest("a[href]")&&e.close()}))),n(t)}(t)})),n(t)})),document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest("[data-sidebar-button]");if(a){var i=a.getAttribute("aria-controls").replace(/-sheet$/,""),o=document.getElementById(i),s=document.getElementById(i+"-sheet");if(o){if(t(o))return void(s&&!s.open&&(s.showModal(),n(o)));r(o,!o.closest(".sidebar-layout").classList.contains("is-collapsed"),!0)}}}));var o=!1;window.addEventListener("resize",(function(){o||(o=!0,requestAnimationFrame((function(){o=!1,document.querySelectorAll("nav.sidebar[data-sidebar-remember]").forEach((function(e){var a=document.getElementById(e.id+"-sheet");!t(e)&&a&&a.open&&a.close(),n(e)}))})))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["started-low"]||(t["started-low"]=!0,function(){function t(t){var e=t.querySelector(".run-wrap"),a=t.querySelector(":scope > .pane-in > .layout-stack")||t.querySelector(":scope > .pane-in"),n=e&&a&&Array.prototype.find.call(a.children,(function(t){return t.contains(e)}));if(n){var i=parseFloat(getComputedStyle(t).marginTop)||0;t.style.setProperty("--started-low-used",Math.round(n.getBoundingClientRect().bottom+window.scrollY-i)+"px")}}window.zaismaWatch.each(".glass-pane.is-started-low",(function(e){t(e),window.zaismaWatch.size(e,(function(){t(e)}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.placing||(t.placing=!0,function(){window.zaismaIsOnPage=function(t,e){var a=function(t){for(var e=t;e&&e!==document.documentElement;e=e.parentElement){var a=getComputedStyle(e).position;if("fixed"===a||"sticky"===a)return!0}return!1};return!(a(t)||e.parentElement&&a(e.parentElement))},window.zaismaPageRoom=function(t){var e={left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight};return document.querySelectorAll("header, nav.sidebar").forEach((function(a){if(!t||!a.contains(t)){var n=getComputedStyle(a).position,i=a.getBoundingClientRect();"fixed"!==n&&"sticky"!==n||i.width<1||i.height<1||i.bottom<=0||i.top>=e.bottom||"fixed"===n&&a.offsetParent||(i.width>=e.right/2?e.top=Math.max(e.top,i.bottom):(i.left+i.right)/2<e.right/2?e.left=Math.max(e.left,i.right):e.right=Math.min(e.right,i.left))}})),e},window.zaismaPlace=function(t,e,a){var n=a.roomRect||{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight},i=a.gapPx,r=a.edgePx,o=(t.left+t.right)/2>(n.left+n.right)/2,s=Math.max(n.left+r,Math.min(o?t.right-e.width:t.left,n.right-r-e.width)),c=n.bottom-r-t.bottom-i,l=t.top-i-r-n.top,d=e.height<=c,u=e.height<=l,f=(t.top+t.bottom)/2>(n.top+n.bottom)/2,h=!a.isAlwaysBelow&&(d&&u?f:!d&&l>c),m=h?t.top-i-e.height:t.bottom+i;return{leftPx:s,topPx:Math.max(n.top+r,Math.min(m,n.bottom-r-e.height)),isAtEnd:o,isAbove:h}};window.zaismaCast=function(t){var e=t.floatCast;if(e||((e=t.floatCast=document.createElement("div")).className="floating-cast",e.setAttribute("aria-hidden","true"),e.appendChild(document.createElement("div")).appendChild(document.createElement("span")),(t.parentElement||document.body).appendChild(e)),["smoke","is-above","placed-over","opens-at-once"].forEach((function(a){e.classList.toggle(a,t.classList.contains(a))})),t.isConnected&&t.matches(":popover-open")){var a=t.getBoundingClientRect(),n=new DOMMatrix("none"===getComputedStyle(t).transform?void 0:getComputedStyle(t).transform),i={width:t.offsetWidth,height:t.offsetHeight};i.left=a.left+a.width/2-i.width/2-n.e,i.top=a.top+a.height/2-i.height/2-n.f;var r=t.classList.contains("is-on-page"),o=getComputedStyle(t),s=o.getPropertyValue("--glass-clip").trim()||o.clipPath,c=/^polygon\\((.*)\\)$/.exec(s),l="calc(100% + 64px)",d="-64px";if(!c)return e.hidden=!0,t.castTries=(t.castTries||0)+1,void(t.castTries<60&&requestAnimationFrame((function(){window.zaismaCast(t)})));t.castTries=0;var u=c?c[1].replace(/^(nonzero|evenodd),\\s*/,""):"0px 0px, 100% 0px, 100% 100%, 0px 100%";e.firstChild.firstChild.style.clipPath=c?s:"",e.style.clipPath="polygon(evenodd, -64px -64px, "+l+" "+d+", "+l+" "+l+", "+d+" "+l+", "+d+" "+d+", "+u+", "+u.split(",")[0]+", "+d+" "+d+")",e.hidden&&e.classList.contains("is-arriving")&&requestAnimationFrame((function(){e.offsetWidth,e.classList.remove("is-arriving")})),e.hidden=!1,e.classList.toggle("is-on-page",r);var f=t.getAttribute("data-theme-choice");f?e.setAttribute("data-theme-choice",f):e.removeAttribute("data-theme-choice"),e.style.left=i.left+(r?window.scrollX:0)+"px",e.style.top=i.top+(r?window.scrollY:0)+"px",e.style.width=i.width+"px",e.style.height=i.height+"px"}else e.hidden=!0},["toggle","transitionend"].forEach((function(t){document.addEventListener(t,(function(t){t.target.classList&&t.target.classList.contains("floating-pane")&&!t.target.classList.contains("in-place")&&window.zaismaCast(t.target)}),!0)}));window.zaismaFloat=function(t,e){var a=t.classList.contains("in-place"),n=t.classList.contains("placed-over"),i=null;function r(){return"function"==typeof e.anchor?e.anchor():e.anchor}function o(){var a=r(),n=t.offsetParent;if(a&&n){var i=e.anchorRect?e.anchorRect(a):a.getBoundingClientRect(),o=n.getBoundingClientRect(),s=window.zaismaPlace(i,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:o.left,top:o.top,right:o.right,bottom:o.bottom},gapPx:e.gapPx||6,edgePx:e.edgePx||8,isAlwaysBelow:!0});t.style.left=Math.round(s.leftPx-o.left-n.clientLeft)+"px",t.style.top=Math.round(s.topPx-o.top-n.clientTop)+"px",t.classList.toggle("from-start",!s.isAtEnd),e.onPlaced&&e.onPlaced()}}function s(){var i=r();if(!a&&t.matches(":popover-open")&&i){var o=e.anchorRect?e.anchorRect(i):i.getBoundingClientRect(),s=document.documentElement.clientWidth,c=window.innerHeight,l=window.zaismaPageRoom(i),u=o.bottom<0||o.top>c,f=u?o.top+o.height/2-c/2+l.top:l.top,h=u?f+l.bottom-l.top:l.bottom,m=window.zaismaIsOnPage(i,t);if(!i.isConnected||!m&&(o.bottom<0||o.top>c||o.right<0||o.left>s))return void d(!1);e.isAnchorWidth&&(t.style.width=o.width+"px",t.scrollWidth>t.clientWidth&&(t.style.width=t.scrollWidth+"px"));var p,g,v=e.gapPx||6,w=e.edgePx||8;if(t.style.setProperty("--floating-room",Math.max(0,h-f-2*w)+"px"),n)g=o.top+o.height/2-e.lineOf(),p=o.left;else{var y=function(){return window.zaismaPlace(o,{width:t.offsetWidth,height:t.offsetHeight},{roomRect:{left:l.left,top:f,right:l.right,bottom:h},gapPx:v,edgePx:w,isAlwaysBelow:"function"==typeof e.isAlwaysBelow?e.isAlwaysBelow(i):e.isAlwaysBelow})},b=y();if(t.querySelector(".scrolls")){var E=Math.max(0,b.isAbove?o.top-f-v-w:h-o.bottom-v-w);t.style.setProperty("--floating-room",E+"px");var x=e.scrollBox&&e.scrollBox(),A=x?x.scrollHeight-x.clientHeight:0;A>0&&A<12&&t.style.setProperty("--floating-room",Math.ceil(E+A)+"px"),b=y()}g=b.topPx,p=b.leftPx,t.classList.toggle("is-above",b.isAbove),t.classList.toggle("from-start",!b.isAtEnd)}var S=t.offsetWidth,L=t.offsetHeight;g=Math.max(f+w,Math.min(h-L-w,g)),p=Math.max(l.left+w,Math.min(l.right-S-w,p)),t.classList.toggle("is-on-page",m),t.style.top=Math.round(g+(m?window.scrollY:0))+"px",t.style.left=Math.round(p+(m?window.scrollX:0))+"px",window.zaismaFit&&t.querySelectorAll(".scrolls").forEach(window.zaismaFit),e.onPlaced&&e.onPlaced(),window.zaismaCast(t)}}a||(document.querySelectorAll("body > .floating-pane, dialog > .floating-pane").forEach((function(t){t.floatingHome&&!t.floatingHome.isConnected&&(t.floatCast&&t.floatCast.remove(),t.remove())})),t.floatingHome=e.home||r(),t.floatingHome&&t.floatingHome.closest(".smoke")&&t.classList.add("smoke"),(r()&&r().closest("dialog")||document.body).appendChild(t)),a&&!n&&!e.isAnchorWidth&&(t.classList.add("is-hanging"),o(),window.zaismaWatch.resize(o),window.zaismaWatch.fontsIn(o));var c=!(window.CSS&&CSS.supports("overlay","auto")||matchMedia("(prefers-reduced-motion: reduce)").matches),l=1e3*(parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--motion-float"))||.12);function d(n){if(!a&&t.matches(":popover-open")&&!t.classList.contains("is-leaving")){c?(t.classList.add("is-leaving"),t.floatCast&&t.floatCast.classList.add("is-leaving"),t.leaveTimer=setTimeout((function(){t.classList.remove("is-leaving"),t.hidePopover(),window.zaismaCast(t),t.floatCast.classList.remove("is-leaving")}),l)):(t.hidePopover(),window.zaismaCast(t)),e.onToggle&&e.onToggle(!1);var i=e.focusOnClose||r();n&&i&&i.focus()}}return a||(document.addEventListener("pointerdown",(function(a){var n=r();t.matches(":popover-open")&&!t.contains(a.target)&&(!n||!n.contains(a.target))&&(!e.isInside||!e.isInside(a.target))&&d(!1)})),t.addEventListener("keydown",(function(e){"Escape"===e.key&&t.matches(":popover-open")&&(e.preventDefault(),d(!0))})),window.zaismaWatch.resize(s),document.addEventListener("scroll",(function(e){var a=r();if(t.matches(":popover-open")&&i&&a&&(1!==e.target.nodeType||!t.contains(e.target))){var n=a.getBoundingClientRect();(Math.abs(n.top-i.top)>4||Math.abs(n.left-i.left)>4)&&d(!1)}}),{capture:!0,passive:!0}),window.zaismaWatch.scroll(s),window.zaismaWatch.fontsIn(s)),t.floating={open:function(){if(!a){if(!t.matches(":popover-open")){var n=e.home||r()||document.body,o=n.closest("[data-theme-choice]");o&&o!==document.documentElement?t.setAttribute("data-theme-choice",o.getAttribute("data-theme-choice")):t.removeAttribute("data-theme-choice"),t.classList.toggle("smoke",!!n.closest(".smoke")),t.style.setProperty("--glass-hue",getComputedStyle(n).getPropertyValue("--glass-hue")),c&&(window.zaismaCast(t),clearTimeout(t.leaveTimer),[t,t.floatCast].forEach((function(t){t.classList.remove("is-leaving"),t.classList.add("is-arriving")}))),t.showPopover(),c&&function e(a,n){requestAnimationFrame((function(i){if(!(getComputedStyle(t).getPropertyValue("--glass-clip").trim()&&n&&i-n<25)&&a<30)return e(a+1,i);t.classList.remove("is-arriving")}))}(0,0)}var l=r();i=l?l.getBoundingClientRect():null,e.onShown&&e.onShown(),s(),e.onToggle&&e.onToggle(!0)}},close:d,isOpen:function(){return a||t.matches(":popover-open")},place:s}}}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.wheels||(t.wheels=!0,function(){var t=window.matchMedia("(prefers-reduced-motion: reduce)").matches,e=864e5,a=3e5,n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=window.matchMedia("(pointer: coarse)").matches?"Swipe each wheel to pick.":"Scroll or type to pick each one.";function r(t){return String(t).padStart(2,"0")}function o(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}window.zaismaWatch.each("[data-wheels]",(function(s){var c=s.getAttribute("data-wheels"),l=s.id,d=s.querySelector(".wheel-button"),u=s.querySelector(".wheel-pick"),f=s.querySelector(".wheel-value"),h=u.classList.contains("in-place"),m=s.querySelector(".field-error"),p=s.querySelector(".field-hint"),g=s.querySelector(".wheel-read"),v=s.querySelector('input[type="hidden"]:not([data-part])'),w="birthday"===c?function(t,e){for(var a=(new Date).getFullYear(),o=[],s=a;s>a-100;s--)o.push(String(s));function c(t,e){return t?new Date(e||2e3,t,0).getDate():31}var l={month:0,day:0,year:0},d=/^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(e.value);function u(){return!!(l.month&&l.day&&l.year)}return d&&(l.month=Number(d[2]),l.day=Number(d[3]),l.year=Math.max(0,o.indexOf(d[1])+1)),{parts:["month","day","year"],at:l,hasBlank:!0,rows:function(t){if("month"===t)return["Month"].concat(n);if("year"===t)return["Year"].concat(o);for(var e=["Day"],a=1;a<=c(l.month,l.year?Number(o[l.year-1]):0);a++)e.push(String(a));return e},set:function(t,e){return l[t]=e,"day"===t?[]:["day"]},isComplete:u,typed:function(t,e,a){if("year"!==t||!/^\\d{2}$/.test(e))return-1;for(var n=1;n<a.length;n++)if(a[n].slice(2)===e)return n;return-1},firstPart:function(){return u()||!l.month?"month":l.day?"year":"day"},words:function(){if(!u())return{shown:null,read:i,sent:""};var t=n[l.month-1],e=o[l.year-1];return{shown:t.slice(0,3)+" "+l.day+", "+e,read:t+" "+l.day+", "+e,sent:e+"-"+r(l.month)+"-"+r(l.day)}}}}(0,v):"date-time"===c?function(t,n,i){for(var s=[],c=[],l=["AM","PM"],d=1;d<=12;d++)s.push(String(d));for(var u=0;u<60;u+=5)c.push(r(u));var f=t.hasAttribute("data-minimum-at")?new Date(t.getAttribute("data-minimum-at")):new Date;isNaN(f)&&(f=new Date);for(var h=o(f=new Date(Math.ceil(f.getTime()/a)*a)),m=[],p=0;p<366;p++)m.push(new Date(h.getFullYear(),h.getMonth(),h.getDate()+p));var g=o(new Date).getTime(),v=(new Date).getFullYear(),w=new Intl.DateTimeFormat("en-US",{weekday:"short",month:"short",day:"numeric"}),y=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),b=m.map((function(t){var a=Math.round((t.getTime()-g)/e);return 0===a?"Today":1===a?"Tomorrow":(t.getFullYear()===v?w:y).format(t)}));function E(t,e){try{var a=new Intl.DateTimeFormat("en-US",{timeZoneName:e}).formatToParts(t).find((function(t){return"timeZoneName"===t.type}));return a?a.value:""}catch{return""}}function x(t){var e=-t.getTimezoneOffset(),a=e<0?"-":"+",n=Math.abs(e);return t.getFullYear()+"-"+r(t.getMonth()+1)+"-"+r(t.getDate())+"T"+r(t.getHours())+":"+r(t.getMinutes())+a+r(Math.floor(n/60))+":"+r(n%60)}var A={day:0,hour:0,minute:0,half:0},S=!1;function L(t){var e=m[t.day];return new Date(e.getFullYear(),e.getMonth(),e.getDate(),(t.hour+1)%12+12*t.half,5*t.minute)}function T(t){return{day:Math.max(0,Math.min(m.length-1,Math.round((o(t).getTime()-h.getTime())/e))),hour:(t.getHours()%12||12)-1,minute:Math.floor(t.getMinutes()/5),half:t.getHours()<12?0:1}}function z(t){Object.keys(t).forEach((function(e){A[e]=t[e]}))}var k=n.value?new Date(n.value):null,P=k&&!isNaN(k)&&i.classList.contains("is-marked")?k:null;return k&&!isNaN(k)&&(z(T(k<f?f:k)),S=!0),{parts:["day","hour","minute","half"],at:A,hasBlank:!1,rows:function(t){return"day"===t?b:"hour"===t?s:"minute"===t?c:l},set:function(t,e){return A[t]=e,S=!0,P=null,L(A)<f?(z(T(f)),"all"):[]},isComplete:function(){return S},opening:function(){if(S)return!1;var t=new Date;return t.setMinutes(60,0,0),z(T(t<f?f:t)),S=!0,!0},firstPart:function(){return"day"},words:function(){var t=P||L(A);if(!S)return{shown:null,read:"",sent:""};var a=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"}),n=o(t),i=Math.round((n.getTime()-g)/e),r=0===i?"Today":1===i?"Tomorrow":n.toLocaleDateString("en-US",n.getFullYear()===v?{month:"short",day:"numeric"}:{month:"short",day:"numeric",year:"numeric"}),s=E(t,"short"),c=E(t,"long");return{shown:r+", "+a+(s?" "+s:""),read:t.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})+" at "+a+(c?", "+c:""),sent:x(t)}}}}(s,v,d):function(t){var e=[],a={},n={};return Array.prototype.forEach.call(t.querySelectorAll(".wheel[data-part]"),(function(t){var i=t.getAttribute("data-part");e.push(i);try{a[i]=JSON.parse(t.getAttribute("data-rows"))||[]}catch{a[i]=[]}n[i]=Math.max(0,Number(t.getAttribute("data-picked"))||0)})),{parts:e,at:n,hasBlank:!1,rows:function(t){return a[t].map((function(t){return t[0]}))},set:function(t,e){return n[t]=e,[]},isComplete:function(){return!0},firstPart:function(){return e[0]},words:function(){var t=e.map((function(t){return(a[t][n[t]]||[""])[0]})).join(" "),i={};return e.forEach((function(t){i[t]=(a[t][n[t]]||["",""])[1]})),{shown:t,read:t,sent:i}}}}(s),y=f.textContent,b={};w.parts.forEach((function(t){b[t]={el:s.querySelector('.wheel[data-part="'+t+'"]'),count:0}}));var E=u.querySelector(".wheels"),x=window.zaismaFloat(u,{anchor:d,home:s,lineOf:function(){return E.parentElement.offsetTop+E.offsetTop+E.offsetHeight/2},onToggle:function(t){d.setAttribute("aria-expanded",String(t))}});function A(){return x.isOpen()}function S(t){var e=b[t],a=w.at[t];Array.prototype.forEach.call(e.el.children,(function(t,e){t.setAttribute("aria-selected",String(e===a))})),e.el.setAttribute("aria-activedescendant",l+"-"+t+"-"+a)}function L(t){var e=b[t],a=w.rows(t),n=document.createDocumentFragment();e.count=a.length,e.el.textContent="",a.forEach((function(e,a){var i=document.createElement("div");i.className="flush-row compact quiet",i.setAttribute("role","option"),i.id=l+"-"+t+"-"+a,i.textContent=e,i.setAttribute("data-label",e),w.hasBlank&&0===a&&i.classList.add("blank"),n.appendChild(i)})),e.el.appendChild(n),e.isWired||(e.isWired=!0,e.el.addEventListener("click",(function(a){var n=a.target.closest('[role="option"]');n&&n.parentElement===e.el&&k(t,Array.prototype.indexOf.call(e.el.children,n),!0)}))),w.at[t]>e.count-1&&(w.at[t]=e.count-1),S(t)}function T(t){var e=b[t].el.firstElementChild;return e&&e.offsetHeight||36}function z(e){w.parts.forEach((function(a){b[a].el.scrollTo({top:w.at[a]*T(a),behavior:e&&!t?"smooth":"auto"})}))}function k(e,a,n){a=Math.max(0,Math.min(b[e].count-1,a)),b[e].el.scrollTo({top:a*T(e),behavior:n&&!t?"smooth":"auto"}),M(e,a)}var P=w.isComplete();function M(t,e){if(w.at[t]!==e||!P){var a=w.set(t,e);P=!0,d.classList.contains("is-marked")&&w.isComplete()&&(d.classList.remove("is-marked"),m.hidden=!0,p&&(p.hidden=!1)),"all"===a?(w.parts.forEach(S),z(!0)):(S(t),a.forEach((function(t){L(t),b[t].el.scrollTop=w.at[t]*T(t)}))),C()}}function C(){var t=w.words();g.textContent=t.read,f.textContent=null===t.shown?y:t.shown,d.classList.toggle("set",null!==t.shown),v&&(v.value="string"==typeof t.sent?t.sent:""),"object"==typeof t.sent&&Object.keys(t.sent).forEach((function(e){var a=s.querySelector('input[type="hidden"][data-part="'+e+'"]');a&&(a.value=t.sent[e])}))}function R(t){w.opening&&w.opening()&&(P=!0,w.parts.forEach(S),C()),x.open(),z(!1),!t&&b[w.firstPart()].el.focus({preventScroll:!0})}function D(t){x.close(t)}w.parts.forEach((function(t){var e=b[t],a=null,n="",i=0;L(t),e.el.addEventListener("scroll",(function(){clearTimeout(a),a=setTimeout((function(){A()&&M(t,Math.round(e.el.scrollTop/T(t)))}),110)}),{passive:!0}),e.el.addEventListener("keydown",(function(a){var r=w.at[t],o=a.key,s={ArrowDown:1,ArrowUp:-1,PageDown:5,PageUp:-5}[o];if(s)return k(t,r+s,!0),void a.preventDefault();if("Home"===o)return k(t,w.hasBlank?1:0,!0),void a.preventDefault();if("End"===o)return k(t,e.count-1,!0),void a.preventDefault();if("Enter"===o&&w.isComplete())return D(!0),void a.preventDefault();if(1===o.length&&!a.metaKey&&!a.ctrlKey){var c=Date.now();n=c-i>900?o.toLowerCase():n+o.toLowerCase(),i=c;for(var l=w.rows(t),d=-1,u=w.hasBlank?1:0;u<l.length&&d<0;u++)0===l[u].toLowerCase().indexOf(n)&&(d=u);d<0&&w.typed&&(d=w.typed(t,n,l)),d>=0&&(k(t,d,!0),a.preventDefault())}}))})),d.addEventListener("click",(function(){A()?D(!1):R()})),h&&(w.opening&&!w.isComplete()?R(!0):requestAnimationFrame((function(){z(!1)}))),C();var W=s.closest("form");W&&s.hasAttribute("data-required")&&W.addEventListener("submit",(function(t){w.isComplete()||(t.preventDefault(),d.classList.add("is-marked"),m.hidden=!1,p&&(p.hidden=!0),R())}))}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.charts||(t.charts=!0,function(){function t(t,e,n){e.forEach((function(t,e){t.classList.toggle("is-focused",e===n)}));var i=t.querySelector("[data-chart-scroll]"),r=e[n];if(i&&r){var o=i.getBoundingClientRect(),s=r.getBoundingClientRect();s.left<o.left?i.scrollLeft-=o.left-s.left:s.right>o.right&&(i.scrollLeft+=s.right-o.right),t.matches(":focus-visible")&&requestAnimationFrame((function(){a(t,r)}))}}function e(t){return Array.prototype.slice.call(t.querySelectorAll(".chart-hit"))}function a(t,e){var a=t.querySelector(":scope > .chart-tip");if(a){if(t.classList.toggle("shows-tip",!!e),!e)return void a.classList.remove("is-shown");a.querySelector("b").textContent=e.getAttribute("data-tip-amount"),a.querySelector("span").textContent=e.getAttribute("data-tip-label");var n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=getComputedStyle(e),o=!!e.closest(".is-bars");a.style.setProperty("--tip-left",i.left-n.left+i.width*parseFloat(r.getPropertyValue("--point-left"))/100+"px"),a.style.setProperty("--tip-top",i.top-n.top+i.height*parseFloat(r.getPropertyValue("--point-top"))/100+"px"),a.classList.toggle("is-end",e.classList.contains("is-end")),a.classList.toggle("is-middle",o&&!e.classList.contains("is-end")&&!e.classList.contains("is-start")),a.classList.toggle("is-high",e.classList.contains("is-high")),a.classList.add("is-shown")}}window.zaismaWatch.each("[data-chart-scroll]",(function(t){t.scrollLeft=t.scrollWidth})),document.addEventListener("pointerover",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;e&&a(e.closest(".chart"),e)})),document.addEventListener("pointerout",(function(t){var e=t.target instanceof Element?t.target.closest(".chart-hit"):null;if(e&&!(t.relatedTarget instanceof Element&&t.relatedTarget.closest(".chart-hit"))){var n=e.closest(".chart"),i=n.querySelector(".chart-hit.is-pointed")||(n.matches(":focus-visible")?n.querySelector(".chart-hit.is-focused"):null);a(n,i)}})),document.querySelectorAll("[data-chart-scroll]").forEach((function(t){t.addEventListener("scroll",(function(){var e=t.closest(".chart");a(e,e.querySelector(".chart-hit.is-pointed"))}),{passive:!0})})),document.addEventListener("focusout",(function(t){var e=t.target instanceof Element&&t.target.matches("[data-chart-points]")?t.target:null;e&&a(e,e.querySelector(".chart-hit.is-pointed"))})),document.querySelectorAll(".chart-hit.is-pointed").forEach((function(t){a(t.closest(".chart"),t)})),document.addEventListener("focusin",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n);i.length&&!n.querySelector(".chart-hit.is-focused")&&t(n,i,i.length-1)}})),document.addEventListener("keydown",(function(a){var n=a.target instanceof Element&&a.target.matches("[data-chart-points]")?a.target:null;if(n){var i=e(n),r=i.indexOf(n.querySelector(".chart-hit.is-focused")),o=r;if("ArrowRight"===a.key||"ArrowUp"===a.key)o=Math.min(i.length-1,r+1);else if("ArrowLeft"===a.key||"ArrowDown"===a.key)o=Math.max(0,r-1);else if("Home"===a.key)o=0;else{if("End"!==a.key)return;o=i.length-1}a.preventDefault(),t(n,i,o)}}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["long-fields"]||(t["long-fields"]=!0,function(){function t(t){var e=getComputedStyle(t),a=parseFloat(e.lineHeight)||24,n=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom);t.style.height="auto",t.classList.remove("is-scrolling");var i=a*(Number(t.getAttribute("rows"))||2)+n,r=12*a+n;t.classList.toggle("is-scrolling",t.scrollHeight>r+1),t.style.height=Math.max(i,Math.min(t.scrollHeight,r))+"px";var o=Number(t.getAttribute("maxlength")),s=document.getElementById(t.id+"-count");!o||!s||(s.hidden=t.value.length<.8*o,s.textContent=t.value.length.toLocaleString("en-US")+" of "+o.toLocaleString("en-US"))}window.zaismaWatch.each("textarea[data-long-field]",t),window.zaismaWatch.whenRead((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)})),document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("textarea[data-long-field]")&&t(e.target)})),window.zaismaWatch.fontsIn((function(){document.querySelectorAll("textarea[data-long-field]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t.sliders||(t.sliders=!0,function(){function t(t){var e=t.closest(".slider"),a=Number(t.min),n=Number(t.max),i=e.querySelector("output"),r=i.getAttribute("data-unit");e.style.setProperty("--fill",((Number(t.value)-a)/Math.max(1e-9,n-a)).toFixed(4));var o=e.querySelector(".slider-slab");o&&o.redrawCut&&o.redrawCut(),i.textContent=Number(t.value).toLocaleString("en-US")+("%"===r?"%":" "+r)}document.addEventListener("input",(function(e){e.target.matches&&e.target.matches("input[data-slider]")&&t(e.target)})),window.addEventListener("pageshow",(function(){document.querySelectorAll("input[data-slider]").forEach(t)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["color-fields"]||(t["color-fields"]=!0,function(){function t(t){return"#"+t.map((function(t){return t.toString(16).padStart(2,"0")})).join("").toUpperCase()}function e(t,e,a){function n(n){var i=(n+t/60)%6;return Math.round(255*(a-a*e*Math.max(0,Math.min(i,4-i,1))))}return[n(5),n(3),n(1)]}function a(t){var e=parseInt(t.slice(1),16),a=(e>>16)/255,n=(e>>8&255)/255,i=(255&e)/255,r=Math.max(a,n,i),o=r-Math.min(a,n,i),s=0;return o&&(s=r===a?(n-i)/o%6:r===n?(i-a)/o+2:(a-n)/o+4,(s*=60)<0&&(s+=360)),[s,r?o/r:0,r]}function n(t){var e=/^\\s*(#[0-9a-f]{6})\\s*$/i.exec(t||"");return e?e[1].toUpperCase():null}var i=10;window.zaismaWatch.each("[data-color-field]",(function(r){var o=r.querySelector(".color-button"),s=r.querySelector(".color-pick"),c=r.querySelector(".color-square"),l=r.querySelector(".color-knob"),d=r.querySelector(".color-side .cut-field input"),u=r.querySelector(".color-side .slider-input"),f=r.querySelector(':scope > input[type="hidden"]'),h=o.querySelector(".color-value"),m=o.querySelector(".color-chip"),p=r.querySelector(".color-none button"),g=a(n(f.value)||r.getAttribute("data-color-hex")),v=!!p&&!n(f.value),w=!1,y=window.zaismaFloat(s,{anchor:o,home:r,isAnchorWidth:s.classList.contains("in-place"),onToggle:function(t){o.setAttribute("aria-expanded",String(t)),t&&b()}});function b(a){var n=t(e(g[0],g[1],g[2])),o=v?"var(--clear-swatch)":n;[r,s].forEach((function(a){a.style.setProperty("--color-picked",o),a.style.setProperty("--color-full",t(e(g[0],g[1],1))),a.style.setProperty("--color-brightness",String(g[2]))}));var p=c.clientWidth-20,y=c.clientHeight-20,b=function(t,e){var a=c.cutCorners||[0,0,0,0],n=(l.firstElementChild.cutCorners||[5])[0],r=[c.clientWidth,c.clientHeight];return[[1,1],[-1,1],[-1,-1],[1,-1]].forEach((function(o,s){var c=o[0]>0?t-i:r[0]-t-i,l=o[1]>0?e-i:r[1]-e-i,d=a[s]-n-(c+l);a[s]>n&&d>0&&(t+=o[0]*d/2,e+=o[1]*d/2)})),[t,e]}(i+g[0]/360*p,i+(1-g[1])*y);l.style.left=b[0]+"px",l.style.top=b[1]+"px",c.setAttribute("aria-valuetext",n),m.style.setProperty("--swatch",o),h.textContent=v?"None":n,f.value=v?"":n,a||(d.value=n);var E=Math.round(100*g[2]);Number(u.value)!==E&&(u.value=String(E),w=!0,u.dispatchEvent(new Event("input",{bubbles:!0})),w=!1)}function E(){r.dispatchEvent(new CustomEvent("zaisma:color",{bubbles:!0,detail:{colorValue:f.value}}))}function x(t){return Math.max(0,Math.min(1,t))}function A(t){var e=c.getBoundingClientRect();g[0]=359.99*x((t.clientX-e.left-i)/(e.width-20)),g[1]=1-x((t.clientY-e.top-i)/(e.height-20)),v=!1,b(),E()}c.addEventListener("pointerdown",(function(t){c.setPointerCapture(t.pointerId),c.classList.add("is-held"),A(t),c.focus({preventScroll:!0}),t.preventDefault()})),c.addEventListener("pointermove",(function(t){c.hasPointerCapture(t.pointerId)&&A(t)})),c.addEventListener("pointerup",(function(){c.classList.remove("is-held")})),c.addEventListener("pointercancel",(function(){c.classList.remove("is-held")})),c.addEventListener("keydown",(function(t){var e=t.shiftKey?30:5,a=t.shiftKey?.2:.05;if("ArrowLeft"===t.key)g[0]=Math.max(0,g[0]-e);else if("ArrowRight"===t.key)g[0]=Math.min(359.99,g[0]+e);else if("ArrowUp"===t.key)g[1]=Math.min(1,g[1]+a);else{if("ArrowDown"!==t.key)return;g[1]=Math.max(0,g[1]-a)}t.preventDefault(),v=!1,b(),E()})),u.addEventListener("input",(function(){w||(g[2]=Number(u.value)/100,v=!1,b(),E())})),d.addEventListener("input",(function(){var t=function(t){var e=String(t||"").replace(/[^0-9a-f]/gi,"");return 3===e.length&&(e=e.replace(/./g,"$&$&")),6===e.length?"#"+e.toUpperCase():null}(d.value);t&&(g=a(t),v=!1,b(!0),E())})),d.addEventListener("blur",(function(){b()})),p&&p.addEventListener("click",(function(){v=!0,b(),E()})),o.addEventListener("click",(function(){y.isOpen()?y.close(!1):y.open()})),s.classList.contains("in-place")&&y.open(),b()}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["world-pane"]||(t["world-pane"]=!0,function(){var t=0;function e(e){var a=document.querySelector("[data-world-pane]"),n=document.querySelector(".world-stage");if(a&&n&&!n.classList.contains("is-framed")&&(window.innerWidth!==t||e)){if(t=window.innerWidth,window.innerWidth>760||window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)").matches)return void(a.style.marginTop="");var i=Array.prototype.find.call(a.querySelectorAll("h1, h2"),(function(t){return t.getClientRects().length>0})),r=a.parentElement.querySelector("header.top");a.style.marginTop="0px";var o=(i?i.getBoundingClientRect().bottom:a.getBoundingClientRect().top+120)-a.getBoundingClientRect().top+24,s=r?r.offsetTop+r.offsetHeight+12:12;a.style.marginTop=Math.round(Math.max(s,window.innerHeight-o))+"px"}}window.zaismaPlaceWorldPane=e,window.zaismaWatch.each("[data-world-pane]",(function(t){e(!0),window.zaismaWatch.size(t,(function(){e(!0)}))})),window.zaismaWatch.whenRead((function(){e(!0)})),window.addEventListener("resize",(function(){e()})),window.zaismaWatch.fontsIn((function(){e(!0)}))}())}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["account-link"]||(t["account-link"]=!0,/(^|; )(__Host-)?zaisma_in=1/.test(document.cookie)&&window.zaismaWatch.each("header.top[data-account-from-cookie] .end > a:is(.run-wrap,.cut-btn)",(function(t){t.href="/account";var e=t.querySelector(".face > span:not([class])");e&&(e.textContent="Account")})))}(),function(){var t=window.zaismaPieces=window.zaismaPieces||{};t["hidden-amounts"]||(t["hidden-amounts"]=!0,function(){var t="zaisma.payments_amounts_hidden",e=!1;try{e="yes"===localStorage.getItem(t)}catch{}var a="#payments .number-amount, [data-amount]",n="[data-amounts-toggle]";function i(t){t.hasAttribute("data-amount")||t.setAttribute("data-amount",t.textContent),t.textContent=e?"\u2022\u2022\u2022":t.getAttribute("data-amount")}function r(t){t.setAttribute("aria-pressed",String(e));var a=t.querySelector("span:not([class])");a&&(a.textContent=e?"Show amounts":"Hide amounts")}window.zaismaWatch.each(a,i),window.zaismaWatch.each(n,r),document.addEventListener("click",(function(o){if(o.target.closest&&o.target.closest("[data-amounts-toggle]")){e=!e;try{localStorage.setItem(t,e?"yes":"no")}catch{}document.querySelectorAll(a).forEach(i),document.querySelectorAll(n).forEach(r)}}))}())}(),function(){function t(t){return!!t&&!t.matches('[aria-current="page"], [aria-pressed="true"], :disabled, [aria-disabled="true"], :has(> input:checked), :has(> input:disabled)')}window.zaismaWatch.each("[data-edge-light]",(function(e){var a=e.querySelector(":scope > .edge-light");if(a){var n=e.getAttribute("data-edge-light"),i="bottom"===n||"top"===n,r=null,o=null,s=null;e.addEventListener("pointerover",(function(a){if(!a.pointerType||"mouse"===a.pointerType){e.classList.add("is-awake");var n=a.target.closest("[data-lights]");n&&e.contains(n)&&t(n)?d(n):!o&&r&&(o=setTimeout(u,250))}})),e.addEventListener("pointerleave",(function(){u(),e.classList.remove("is-awake")})),e.addEventListener("focusin",(function(a){var n=a.target.closest("[data-lights]");n&&e.contains(n)&&t(n)&&n.matches(":focus-visible")&&(e.classList.add("is-awake"),d(n))})),e.addEventListener("focusout",(function(t){e.contains(t.relatedTarget)||(u(),e.classList.remove("is-awake"))})),e.addEventListener("click",(function(){setTimeout((function(){r&&!t(r)&&u()}),0)})),e.addEventListener("scroll",(function(){r&&l(r,!1)}),!0);var c=e.matches("[data-lights].is-pointed")?e:e.querySelector("[data-lights].is-pointed");c&&d(c)}function l(t,n){var r=e.getBoundingClientRect(),o=t.getBoundingClientRect();n||(a.style.transition="opacity var(--motion-state)"),a.style.setProperty("--light-at",(i?o.left+o.width/2-r.left:o.top+o.height/2-r.top)+"px"),a.style.setProperty("--light-span",(i?o.width:o.height)+"px"),n||(a.offsetWidth,a.style.transition="")}function d(t){clearTimeout(o),o=null,l(t,e.classList.contains("is-lit")),r=t,e.classList.add("is-awake","is-lit"),s||!window.ResizeObserver||((s=new ResizeObserver((function(){r&&(r.getClientRects().length?l(r,!1):u())}))).observe(e),e.querySelectorAll("[data-lights]").forEach((function(t){s.observe(t)})))}function u(){clearTimeout(o),o=null,r=null,e.classList.remove("is-lit")}}))}(),function(){var t=getComputedStyle(document.documentElement);function e(e,a){return parseFloat(t.getPropertyValue(e))||a}function a(t){return document.querySelector('[aria-controls="'+t.id+'"][aria-expanded]')}function n(t){return Array.prototype.slice.call(t.querySelectorAll('[role="menuitem"]')).filter((function(t){return!t.closest("[hidden]")}))}var i=new WeakMap;window.zaismaWatch.each('.dropdown[role="menu"]',(function(t){var r=window.zaismaFloat(t,{anchor:function(){return i.get(t)||a(t)},anchorRect:function(t){var a=t.getBoundingClientRect(),n=t.closest(".top");if(!n)return a;var i=n.getBoundingClientRect();if(i.height>i.width)return{left:i.right+e("--gap-control-stack",8),right:i.right+e("--gap-control-stack",8),top:a.bottom,bottom:a.bottom,width:0,height:0};var r=i.bottom;return{left:a.left,right:a.right,top:r-1,bottom:r,width:a.width,height:1}},isAlwaysBelow:function(t){var e=t.closest(".top");return!!e&&e.offsetHeight<=e.offsetWidth&&!("fixed"===getComputedStyle(e).position&&e.offsetParent)},gapPx:e("--gap-control-stack",8),edgePx:e("--pad-frame",10),scrollBox:function(){return t.querySelector(".floating-body")},onToggle:function(e){var n=i.get(t)||a(t);n&&n.setAttribute("aria-expanded",String(e))},onPlaced:function(){var e=["menu-large","menu-small","menu-large","menu-small"],a=t.classList.contains("from-start");e[t.classList.contains("is-above")?a?3:2:a?0:1]="0",t.getAttribute("data-glass-corners")!==e.join(" ")&&(t.setAttribute("data-glass-corners",e.join(" ")),t.redrawGlass&&t.redrawGlass())}});t.zaismaPlace=r.place,t.addEventListener("keydown",(function(e){var a=n(t),i=a.indexOf(document.activeElement);("ArrowDown"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),a[(i+("ArrowDown"===e.key?1:a.length-1))%a.length].focus()),("Home"===e.key||"End"===e.key)&&(e.preventDefault(),a["Home"===e.key?0:a.length-1].focus()),"Tab"===e.key&&r.close(!1)})),t.addEventListener("click",(function(t){t.target.closest('[role="menuitem"]:not([aria-haspopup], [data-keeps-open])')&&r.close(!1)}))})),document.addEventListener("click",(function(t){var e=t.target.closest&&t.target.closest("[aria-controls][aria-expanded]"),a=e&&document.getElementById(e.getAttribute("aria-controls"));if(a&&a.matches('.dropdown[role="menu"]')&&a.floating){if(a.floating.isOpen()&&i.get(a)===e)return void a.floating.close(!1);i.set(a,e),a.floating.open();var r=n(a)[0];0===t.detail&&r?r.focus({preventScroll:!0}):(a.tabIndex=-1,a.focus({preventScroll:!0}))}}))}(),window.zaismaWatch.each("[data-select]",(function(t){var e=t.querySelector(".select-button"),a=t.querySelector(".select-list"),n=a.querySelector('[role="listbox"]'),i=a.querySelector(".floating-body"),r=t.querySelector('input[type="hidden"]'),o=e.closest(".field"),s=t.querySelector(".select-value");function c(){a.style.maxHeight="";var t=i.scrollHeight-i.clientHeight;t>0&&t<12&&(a.style.maxHeight=Math.floor(a.getBoundingClientRect().height-(12-t))+"px")}if(document.fonts?document.fonts.ready.then(c):c(),window.zaismaWatch.resize(c),a.classList.contains("in-place")){var l=a.querySelector('[aria-selected="true"]')||a.querySelector('[role="option"]');l&&i.scrollHeight>i.clientHeight&&(i.scrollTop=l.offsetTop-(i.clientHeight-l.offsetHeight)/2,a.style.setProperty("--line-from-top",i.offsetTop+l.offsetTop-i.scrollTop+l.offsetHeight/2+"px"))}else{var d=Array.prototype.slice.call(n.querySelectorAll('[role="option"]')),u=-1,f="",h=0,m=window.zaismaFloat(a,{anchor:o,home:t,focusOnClose:e,lineOf:function(){var t=d[Math.max(0,v())];return i.offsetTop+t.offsetTop-i.scrollTop+t.offsetHeight/2},onShown:function(){c();var t=d[Math.max(0,v())];i.scrollHeight>i.clientHeight&&(i.scrollTop=t.offsetTop-(i.clientHeight-t.offsetHeight)/2)},onToggle:function(t){e.setAttribute("aria-expanded",String(t)),o.classList.toggle("is-open",t),t&&(w(Math.max(0,v())),n.focus({preventScroll:!0}))}}),p=v()>=0,g=!1;e.addEventListener("pointerdown",(function(t){"mouse"!==t.pointerType||0!==t.button||(g=!0,b(),document.addEventListener("pointerup",(function(){setTimeout((function(){g=!1}),0)}),{once:!0}))})),e.addEventListener("mousedown",(function(t){0===t.button&&t.preventDefault()})),e.addEventListener("click",(function(){g||b()})),e.addEventListener("keydown",(function(t){("ArrowDown"===t.key||"ArrowUp"===t.key)&&(t.preventDefault(),e.disabled||m.open())})),n.addEventListener("click",(function(t){var e=t.target.closest('[role="option"]');e&&y(d.indexOf(e))})),n.addEventListener("pointermove",(function(t){var e=t.target.closest('[role="option"]');e&&d.indexOf(e)!==u&&w(d.indexOf(e))})),n.addEventListener("keydown",(function(t){var e=t.key,a={ArrowDown:1,ArrowUp:-1,PageDown:5,PageUp:-5}[e];if(a)return w(u+a),void t.preventDefault();if("Home"===e||"End"===e)return w("Home"===e?0:d.length-1),void t.preventDefault();if("Enter"===e||" "===e)return y(u),void t.preventDefault();if("Tab"!==e){if(1===e.length&&!t.metaKey&&!t.ctrlKey){var n=Date.now();f=n-h>900?e.toLowerCase():f+e.toLowerCase(),h=n;var i=d.findIndex((function(t){return 0===t.textContent.toLowerCase().indexOf(f)}));i>=0&&w(i)}}else m.close(!1)}))}function v(){return d.findIndex((function(t){return"true"===t.getAttribute("aria-selected")}))}function w(t){u=Math.max(0,Math.min(d.length-1,t)),d.forEach((function(t,e){t.classList.toggle("is-active",e===u)})),n.setAttribute("aria-activedescendant",d[u].id);var e=d[u],a=e.offsetTop;a<i.scrollTop?i.scrollTop=a:a+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop=a+e.offsetHeight-i.clientHeight)}function y(t){d.forEach((function(e,a){e.setAttribute("aria-selected",String(a===t))})),s.textContent=d[t].textContent,s.classList.remove("is-placeholder"),(r.value!==d[t].getAttribute("data-choice-value")||!p)&&(r.value=d[t].getAttribute("data-choice-value"),r.dispatchEvent(new Event("change",{bubbles:!0}))),p=!0,m.close(!0)}function b(){e.disabled||(m.isOpen()?m.close(!1):m.open())}}));` };
11488
11507
  var MINIFIED_COMPONENT_SCRIPT = { sourceSha256: "6f8d2736988a1ea7c758589dec4b97d9cf5db1aa889e4435c006e411cc9d3c06", minifiedText: `(function(){var e=window.matchMedia("(orientation: landscape) and (max-height: 500px) and (pointer: coarse)"),t=document.documentElement,n=window.visualViewport,a=null,i=null,r=null,o=null,s=0,c=0,l=0,d=0,u=!1,f=/^(text|search|email|url|tel|password|number)$/;function p(e,n){t.style.setProperty(e,n+"px")}function m(){var e,t,i,r;e=n?n.offsetTop:0,t=n?n.offsetLeft:0,i=S(),r=n?n.width:window.innerWidth,p("--typing-height",i),p("--typing-shown-width",r),a&&(p("--typing-top",e+Math.max(0,(i-a.offsetHeight)/2)),p("--typing-left",t+(r-a.offsetWidth)/2)),d=requestAnimationFrame(m)}function v(e){var t=document.createElement("div");return t.className="typing-veil"+(e?" is-shown":""),t.setAttribute("popover","manual"),document.body.appendChild(t),t.showPopover&&t.showPopover(),t}function h(){return o&&1e3*parseFloat(getComputedStyle(o).transitionDuration)||0}function g(){if(document.dispatchEvent(new Event("typing-bar-lowered")),o){var e=o,t=h();o=null,e.offsetWidth,e.classList.remove("is-shown"),setTimeout((function(){e.remove()}),t)}}function y(){window.zaismaRedrawEdges&&window.zaismaRedrawEdges()}function w(){for(var e=[],n=a;n;n=n.parentElement)e.push([n,n.style.transition]),n.style.transition="none";cancelAnimationFrame(d),a.classList.remove("is-typing-bar","is-typing-shown","is-typing-leaving"),r.remove(),t.classList.remove("is-typing"),a=r=null,t.offsetWidth,e.forEach((function(e){e[0].style.transition=e[1]})),y()}function b(e){i=e,a=function(e){var t=e.closest(".cut-field, .pin-field, .find"),n=t&&t.parentElement;return n&&n.classList.contains("row-cell")?n.closest(".layout-row"):t||e.closest(".stack-cell")||e.parentElement}(e),(r=document.createElement("div")).className="typing-cover",a.after(r),a.classList.add("is-typing-bar"),t.classList.add("is-typing"),m(),y()}function E(){o&&(o.remove(),o=null),requestAnimationFrame((function(){a&&a.classList.add("is-typing-shown")}))}function L(e){t.style.setProperty("--typing-ground",getComputedStyle(e).getPropertyValue("--glass-ground"))}function S(){return n?n.height:window.innerHeight}function A(){c+=1,clearTimeout(s),cancelAnimationFrame(l),l=0}function x(e){if(A(),u=!1,a)return w(),L(e),b(e),void E();var t=S(),r=performance.now();function d(){if(document.activeElement!==e)return i=null,void g();b(e),function(e,t,a,i){var r=S(),o=n?n.offsetTop:0,s=performance.now(),c=r!==e;l=requestAnimationFrame((function e(d){var u=S(),f=n?n.offsetTop:0;if((u!==r||f!==o)&&(r=u,o=f,s=d,c=!0),d-t>=a||c&&d-t>=500&&d-s>=250)return l=0,void i();l=requestAnimationFrame(e)}))}(t,r,900,E)}if(i=e,L(e),o)d();else{(o=v(!1)).offsetWidth,o.classList.add("is-shown");var f=c,p=o,m=0;p.addEventListener("transitionend",y),m=s=setTimeout(y,h()+100)}function y(e){e&&(e.target!==p||"opacity"!==e.propertyName)||(p.removeEventListener("transitionend",y),clearTimeout(m),f===c&&d())}}function q(){if(!u){if(A(),!a)return i=null,void g();if(o)return w(),i=null,void g();u=!0,a.classList.add("is-typing-leaving"),s=setTimeout((function(){u=!1,o=v(!0),w(),i=null,g()}),1e3*parseFloat(getComputedStyle(a).animationDuration)||0)}}function C(e){e.preventDefault(),e.stopPropagation()}document.addEventListener("focusin",(function(t){e.matches&&function(e){return e&&("TEXTAREA"===e.tagName||"INPUT"===e.tagName&&f.test(e.type))&&!e.readOnly&&!e.disabled}(t.target)&&x(t.target)})),document.addEventListener("focusout",(function(){setTimeout((function(){var e=document.activeElement;i&&e!==i&&(!a||!a.contains(e))&&q()}),0)})),document.addEventListener("pointerdown",(function(e){!r||e.target!==r||(e.preventDefault(),i.blur(),q(),document.addEventListener("click",C,{capture:!0,once:!0}),setTimeout((function(){document.removeEventListener("click",C,!0)}),700))}),!0),e.addEventListener("change",(function(){e.matches||q()})),document.addEventListener("zaisma:sheet-leaving",(function(e){a&&e.target.contains(a)&&q()}),!0),window.zaismaTypingBar={lift:x}})(),function(){document.addEventListener("click",(function(e){var t=e.target.closest&&e.target.closest(".find > .carving-end > .tertiary-btn");if(t){var n=t.closest(".find").querySelector('input[type="search"]');n&&(n.value="",n.dispatchEvent(new Event("input",{bubbles:!0})),n.focus())}else{var a=e.target.closest&&e.target.closest(".field:not(.code) > .carving-end > .cut-btn[aria-controls]");if(a){var i=document.getElementById(a.getAttribute("aria-controls"));if(i){var r="password"===i.type;i.type=r?"text":"password",a.setAttribute("aria-label",r?"Hide":"Show"),a.setAttribute("aria-pressed",String(r))}}}}));var e="input[data-characters]";function t(e,t){var n=new RegExp("^"+e.getAttribute("data-characters")+"$");return e.hasAttribute("data-uppercase")&&(t=t.toUpperCase()),Array.from(t).filter((function(e){return n.test(e)})).join("")}function n(e,n,a){var i=t(e,n);if(i!==n||"paste"===a.type){a.preventDefault();var r=e.selectionStart,o=e.selectionEnd,s=e.maxLength>=0?e.maxLength-e.value.length+o-r:i.length;(i=i.slice(0,Math.max(0,s)))&&(e.setRangeText(i,r,o,"end"),e.dispatchEvent(new Event("input",{bubbles:!0})))}}function a(e){var n=t(e,e.value);if(e.maxLength>=0&&(n=n.slice(0,e.maxLength)),n!==e.value){var a=t(e,e.value.slice(0,e.selectionStart||0)).length;e.value=n,e.setSelectionRange(Math.min(a,n.length),Math.min(a,n.length))}}document.addEventListener("paste",(function(t){var a=t.target;a.matches&&a.matches(e)&&t.clipboardData&&n(a,t.clipboardData.getData("text/plain"),t)})),document.addEventListener("beforeinput",(function(t){var a=t.target;!a.matches||!a.matches(e)||"insertText"!==t.inputType||t.isComposing||"string"!=typeof t.data||n(a,t.data,t)})),document.addEventListener("input",(function(t){t.target.matches&&t.target.matches(e)&&!t.isComposing&&a(t.target)}),!0),document.addEventListener("compositionend",(function(t){t.target.matches&&t.target.matches(e)&&a(t.target)}),!0);var i=".field > input:not([type='hidden']), .find > input[type='search']";function r(e){var t=e.parentElement,n=e.scrollWidth-e.clientWidth;t.classList.toggle("more-left",n>1&&e.scrollLeft>1),t.classList.toggle("more-right",n>1&&e.scrollLeft<n-1)}function o(e){requestAnimationFrame((function(){r(e)}))}["input","focusin","focusout","keyup","click","scroll"].forEach((function(e){document.addEventListener(e,(function(e){e.target.matches&&e.target.matches(i)&&o(e.target)}),!0)})),document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.matches&&e.matches(i)&&o(e)})),window.zaismaWatch.each(i,(function(e){r(e),window.zaismaWatch.size(e,(function(){r(e)}))}))}(),function(){function e(e){return"string"==typeof e?document.getElementById(e):e}function t(e){return e.querySelector(".pin-input")}function n(e){var n=t(e).value.length;Array.prototype.forEach.call(e.querySelectorAll(".pin-mark"),(function(e,t){e.classList.toggle("is-filled",t<n),e.classList.toggle("is-next",t===Math.min(n,5))}))}function a(e,n){var a=e.querySelector(".field-error");a.textContent=n||"",a.hidden=!n,Array.prototype.forEach.call(e.querySelectorAll(".pin-mark"),(function(e){e.classList.toggle("is-marked",!!n)}));var i=e.querySelector(".pin-marks");n&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(i.classList.remove("is-shaking"),i.offsetWidth,i.classList.add("is-shaking")),n?t(e).setAttribute("aria-invalid","true"):t(e).removeAttribute("aria-invalid")}window.zaismaPinField={digits:function(n){return t(e(n)).value},clear:function(a){var i=e(a);t(i).value="",n(i)},focus:function(n){t(e(n)).focus({preventScroll:!0})},setError:function(t,n){a(e(t),n)},setDisabled:function(n,a){var i=e(n);t(i).disabled=!!a,a?i.setAttribute("aria-busy","true"):i.removeAttribute("aria-busy")}},window.zaismaWatch.each("[data-pin]",(function(e){var i=t(e);function r(){var e=i.value.length;try{i.setSelectionRange(e,e)}catch{}}e.querySelector(".pin-marks").addEventListener("animationend",(function(e){"pin-shake"===e.animationName&&e.currentTarget.classList.remove("is-shaking")})),i.addEventListener("input",(function(){var t=i.value.replace(/\\D/g,"").slice(0,6);t!==i.value&&(i.value=t),e.querySelector(".pin-mark.is-marked")&&a(e,""),n(e),6===t.length&&e.dispatchEvent(new CustomEvent("zaisma:pin-complete",{bubbles:!0,detail:{digits:t}}))})),i.addEventListener("focus",r),i.addEventListener("keydown",(function(e){/^(ArrowLeft|ArrowRight|Home|End|ArrowUp|ArrowDown)$/.test(e.key)&&(e.preventDefault(),r())})),n(e)}))}(),function(){if(!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var e=window.matchMedia("(hover: hover)").matches;document.addEventListener("click",(function(e){var a=e.target.closest&&e.target.closest(".run-wrap");!a||a.disabled||n(a)||setTimeout((function(){n(a)?a.flaresWhenDone=!0:t(a)}),0)})),document.addEventListener("animationend",(function(e){"run-flare"===e.animationName&&e.target.classList&&e.target.classList.remove("is-flaring")})),document.querySelectorAll(".run-wrap").forEach(a),window.zaismaWatch.page((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){e.querySelectorAll&&e.querySelectorAll(".run-wrap").forEach(a)}))}))}))}function t(e){e.classList.remove("is-flaring"),e.offsetWidth,e.classList.add("is-flaring")}function n(e){return"true"===e.getAttribute("aria-busy")}function a(a){if(!a.dataset.rise){a.dataset.rise="1";var i=a.querySelector(".run");i&&(new MutationObserver((function(){n(a)?o():(a.flaresWhenDone&&(a.flaresWhenDone=!1,t(a)),e&&a.matches(":hover")&&r())})).observe(a,{attributes:!0,attributeFilter:["aria-busy"]}),e&&(a.addEventListener("pointerenter",(function(){n(a)||r()})),i.addEventListener("animationend",(function(e){"slab-glint"===e.animationName&&i.classList.remove("glint")})),a.addEventListener("pointerleave",o),a.addEventListener("pointermove",(function(e){if(!n(a)){var t=a.getBoundingClientRect(),r=(e.clientX-t.left)/t.width-.5;i.style.setProperty("--refl",(50-70*r).toFixed(1)+"%")}}))))}function r(){a.classList.add("over"),a.style.setProperty("--lift","-1.5px"),i.classList.contains("glint")||i.classList.add("glint")}function o(){a.classList.remove("over"),a.style.removeProperty("--lift"),i.style.removeProperty("--refl"),i.classList.remove("glint")}}}(),function(){var e=[];document.addEventListener("submit",(function(t){if(!("dialog"===t.target.getAttribute("method")||t.submitter&&"dialog"===t.submitter.getAttribute("formmethod"))){var n=t.submitter&&t.submitter.closest(".shell")||t.target.querySelector('.shell[type="submit"]');!function(e,t){setTimeout((function(){e.defaultPrevented||t()}),0)}(t,(function(){!function(t){!t||"true"===t.getAttribute("aria-busy")||(window.zaismaWait(t,new Promise((function(t){e.push(t)}))),"BUTTON"===t.tagName&&setTimeout((function(){t.disabled=!0}),0))}(n)}))}})),window.addEventListener("pageshow",(function(t){t.persisted&&(e.splice(0).forEach((function(e){e()})),document.querySelectorAll('.shell[aria-busy="true"]').forEach((function(e){e.disabled=!1})))}))}(),window.zaismaWatch.each(".toggle-btn",(function(e){var t=e.querySelector(":scope > .face"),n=e.querySelector(":scope > .toggle-front");function a(){var a=function(e){var t=/polygon\\(([^)]*)\\)/.exec(e||"");return t?t[1].split(",").map((function(e){var t=e.trim().split(/\\s+/);return[parseFloat(t[0]),parseFloat(t[1])]})):null}(t.style.getPropertyValue("--cut-shape")),i=parseFloat(getComputedStyle(e).getPropertyValue("--toggle-lift"))||0;a&&a.length>=3&&n.style.setProperty("--front-shape",function(e,t){var n=e.length,a=e.map((function(e){return e[0]})),i=Math.min.apply(null,a),r=Math.max.apply(null,a);function o(t,n){var a=-1;return e.forEach((function(i,r){Math.abs(i[0]-t)<.01&&(a<0||(n?i[1]<e[a][1]:i[1]>e[a][1]))&&(a=r)})),a}for(var s=o(i,!0),c=(o(i,!1),o(r,!0)),l=o(r,!1),d=1,u=s,f=0;f<n&&u!==c;f++,u=(u+1)%n)if(u===l&&l!==c){d=-1;break}var p=function(t,a){for(var i=[],r=t,o=0;o<=n&&(i.push(e[r]),r!==a);o++)r=(r+d+n)%n;return i}(c,s),m=p.map((function(e){return e[0].toFixed(2)+"px calc("+(e[1]+t).toFixed(2)+"px - max(var(--toggle-rise), 0px))"})),v=p.slice().reverse().map((function(e){return e[0].toFixed(2)+"px "+(e[1]+t).toFixed(2)+"px"}));return"polygon("+m.concat(v).join(", ")+")"}(a,i))}t&&n&&(a(),new MutationObserver(a).observe(t,{attributes:!0,attributeFilter:["style"]}))})),document.addEventListener("change",(function(e){var t=e.target;if(t.classList&&t.classList.contains("check-input")){var n=t.closest(".check");!n||!t.checked||(n.classList.add("is-just-ticked"),n.addEventListener("pointerleave",(function(){n.classList.remove("is-just-ticked")}),{once:!0}))}})),window.zaismaWatch.each(".choice-cards",(function(e){function t(){var t=e.children,n=t.length>1&&t[1].offsetTop>t[0].offsetTop+1;e.classList.toggle("is-stacked",n),Array.prototype.forEach.call(t,(function(e){e.setAttribute("data-edge-light",n?"left":"bottom")}))}t(),window.zaismaWatch.size(e,t)})),function(){function e(e){return e<1e3?e+"\xA0bytes":e<1e6?Math.round(e/1e3)+"\xA0KB":e<1e9?Number((e/1e6).toFixed(1))+"\xA0MB":Number((e/1e9).toFixed(2))+"\xA0GB"}document.querySelectorAll("[data-file-drop]").forEach((function(t){var n=t.querySelector(".file-drop"),a=t.querySelector(".file-drop-input"),i=t.querySelector(".file-drop-list"),r=t.querySelector(".field-error"),o=Number(t.getAttribute("data-most-bytes"))||0,s=(a.getAttribute("accept")||"").split(",").map((function(e){return e.trim().toLowerCase()})).filter(Boolean),c=0;a.addEventListener("dragenter",(function(){c++,n.classList.add("is-over")})),a.addEventListener("dragleave",(function(){(c=Math.max(0,c-1))||n.classList.remove("is-over")})),a.addEventListener("drop",(function(){c=0,n.classList.remove("is-over")})),a.addEventListener("change",(function(){var t=Array.prototype.slice.call(a.files),c=t.find((function(e){return!function(e){if(!s.length)return!0;var t=e.name.toLowerCase(),n=(e.type||"").toLowerCase();return s.some((function(e){return"."===e.charAt(0)?t.slice(-e.length)===e:/\\/\\*$/.test(e)?0===n.indexOf(e.slice(0,-1)):n===e}))}(e)})),f=o?t.find((function(e){return e.size>o})):null,p=c?c.name+" isn't a "+function(){var e=s.map((function(e){var t=e.split("/");return"."===e.charAt(0)?e:"*"===t[1]?t[0]+" file":"."+t[1]}));return e.length>1?e.slice(0,-1).join(", ")+" or "+e[e.length-1]:e[0]}()+".":f?f.name+" is "+e(f.size)+"; the most is "+e(o)+".":"";p&&(a.value="",t=[]),function(e){r.textContent=e,r.hidden=!e,n.classList.toggle("is-marked",!!e);var t=(a.getAttribute("aria-describedby")||"").split(" ").filter((function(e){return e&&e!==r.id}));e?(t.push(r.id),a.setAttribute("aria-invalid","true")):a.removeAttribute("aria-invalid"),a.setAttribute("aria-describedby",t.join(" "))}(p),function(t){d.forEach((function(e){e.url&&URL.revokeObjectURL(e.url)})),i.textContent="",d=[],t.forEach((function(t){var n=l.content.firstElementChild.cloneNode(!0),a=n.querySelector(".file-drop-preview"),r=0===(t.type||"").indexOf("image/")?URL.createObjectURL(t):"";r&&(a.style.setProperty("--picture","url("+JSON.stringify(r)+")"),a.setAttribute("data-picture",r),a.disabled=!1,a.querySelector(".ico").outerHTML=u),a.setAttribute("aria-label","View "+t.name),n.querySelector(".file-drop-name").textContent=t.name,n.querySelector(".file-drop-size").textContent=e(t.size),n.querySelector(".file-drop-remove button").setAttribute("aria-label","Remove "+t.name),i.appendChild(n),d.push({file:t,url:r})})),i.hidden=!t.length}(t)}));var l=t.querySelector(".file-drop-row-template"),d=[],u=t.querySelector(".file-drop-zoom-template").innerHTML;var f=t.querySelector(".file-drop-view");i.addEventListener("click",(function(e){var t=e.target.closest&&e.target.closest(".file-drop-preview[data-picture]");t&&(f.src=t.getAttribute("data-picture"),f.alt=t.getAttribute("aria-label").replace(/^View /,""))})),i.addEventListener("click",(function(e){var n=e.target.closest&&e.target.closest(".file-drop-remove button");if(n){var r=n.closest(".file-drop-row"),o=Array.prototype.indexOf.call(i.children,r),s=r.querySelector(".file-drop-name, .progress-words > span").textContent;if(d[o]){var c=new DataTransfer;d.forEach((function(e,t){t!==o&&c.items.add(e.file)})),d[o].url&&URL.revokeObjectURL(d[o].url),a.files=c.files,d.splice(o,1)}r.remove(),i.hidden=!i.children.length,t.dispatchEvent(new CustomEvent("zaisma:file-remove",{bubbles:!0,detail:{fileName:s}})),i.children.length?i.children[Math.min(o,i.children.length-1)].querySelector(".file-drop-remove button").focus():a.focus()}}))}))}(),function(){function e(e){var t=document.createRange();t.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(t)}document.addEventListener("click",(function(t){var n=t.target.closest&&t.target.closest(".copy-field");if(n&&t.target.closest(".well")){var a=n.querySelector(".copy-field-text"),i=n.querySelector(".copy-said");t.target.closest(".carving-end > .tertiary-btn")||!n.classList.contains("is-code")?navigator.clipboard&&navigator.clipboard.writeText?(r("Copied"),navigator.clipboard.writeText(a.getAttribute("data-copy")||a.textContent).catch(o)):o():e(a)}function r(e){i.textContent=e,n.classList.add("is-copied"),clearTimeout(i.timer),i.timer=setTimeout((function(){n.classList.remove("is-copied"),i.timer=setTimeout((function(){i.textContent=""}),400)}),1600)}function o(){e(a);var t=!1;try{t=document.execCommand("copy")}catch{}t&&r("Copied")}}))}(),function(){function e(e){var t=e.querySelector("[data-code-wrap]"),n=e.querySelector(".code-scroll"),a=e.querySelector(".code-lines");!t||!n||!a||(t.hidden=!e.classList.contains("is-wrapped")&&a.scrollWidth<=n.clientWidth+1)}var t="function"==typeof ResizeObserver?new ResizeObserver((function(t){t.forEach((function(t){var n=t.target.closest(".code-block");n&&e(n)}))})):null;window.zaismaWatch.each(".code-block",(function(n){e(n),t&&t.observe(n.querySelector(".code-scroll"))})),document.addEventListener("click",(function(t){var n=t.target.closest&&t.target.closest("[data-code-wrap], [data-code-copy]"),a=n&&n.closest(".code-block");if(a){if(n.hasAttribute("data-code-wrap")){var i=!a.classList.contains("is-wrapped");return a.classList.toggle("is-wrapped",i),n.setAttribute("aria-pressed",String(i)),void e(a)}var r=a.querySelector(".code-lines"),o=a.querySelector(".code-said");navigator.clipboard&&navigator.clipboard.writeText?(s(),navigator.clipboard.writeText(r.textContent).catch(c)):c()}function s(){o.textContent="Copied",a.classList.add("is-copied"),clearTimeout(o.timer),o.timer=setTimeout((function(){o.textContent="",a.classList.remove("is-copied")}),1600)}function c(){var e=document.createRange();e.selectNodeContents(r);var t=window.getSelection();t.removeAllRanges(),t.addRange(e);var n=!1;try{n=document.execCommand("copy")}catch{}n&&s()}}))}(),document.addEventListener("click",(function(e){var t=e.target.closest&&e.target.closest("[data-qr-png]");if(t){var n=new Image;n.onload=function(){var e=Object.assign(document.createElement("canvas"),{width:1024,height:1024}),a=e.getContext("2d");a.imageSmoothingEnabled=!1,a.drawImage(n,0,0,1024,1024),e.toBlob((function(e){var n=Object.assign(document.createElement("a"),{href:URL.createObjectURL(e),download:t.getAttribute("data-qr-png")});n.click(),setTimeout((function(){URL.revokeObjectURL(n.href)}),1e3)}),"image/png")},n.src=t.getAttribute("data-qr-svg")}})),function(){function e(e){return Array.prototype.slice.call(e.querySelectorAll("[data-media-slide]"))}function t(e){var t=e.querySelector("[data-media-slide]:not([hidden])");return t?Number(t.getAttribute("data-media-slide")):0}function n(e){var t=e.querySelector("video:not(.video-stand-in)");t&&t.pause();var n=e.querySelector("iframe");n&&n.remove()}function a(a,r,o){var s=e(a);if(s.length){r=(r+s.length)%s.length;var c=t(a),l=r!==c&&a.open?r>c?1:-1:0;s.forEach((function(e,t){t!==r?(n(e),e.hidden=!0):e.hidden=!1}));var d=s[r],u=d.querySelector("video:not(.video-stand-in)");d.shownMs=0,d.youtubeShare=0,l&&d.animate&&!i&&d.animate([{opacity:0,transform:"translateX("+32*l+"px)"},{opacity:1,transform:"none"}],{duration:300,easing:"cubic-bezier(0.2, 0, 0, 1)"}),d.hasAttribute("data-youtube-video-id")?function(e,t){if(!e.querySelector("iframe")){var n=document.createElement("iframe");n.className="media-youtube",n.src="https://www.youtube-nocookie.com/embed/"+encodeURIComponent(e.getAttribute("data-youtube-video-id"))+"?rel=0&modestbranding=1&enablejsapi=1"+(t?"&autoplay=1":""),n.title=e.getAttribute("data-youtube-title")||"YouTube video",n.allow="autoplay; encrypted-media; fullscreen; picture-in-picture",n.setAttribute("allowfullscreen",""),n.referrerPolicy="strict-origin-when-cross-origin",n.addEventListener("load",(function(){n.contentWindow.postMessage(JSON.stringify({event:"listening",id:1,channel:"widget"}),"https://www.youtube-nocookie.com")})),e.querySelector(".media-frame").appendChild(n)}}(d,o):u&&o&&u.play().catch((function(){}));var f=a.querySelector("[data-media-at]");f&&(f.textContent=String(r+1)),a.querySelectorAll(".media-thumb").forEach((function(e){var t=Number(e.getAttribute("data-media-to"))===r;e.querySelector(".media-thumb-time").style.setProperty("--groove-filled","0"),t?(e.setAttribute("aria-current","true"),e.scrollIntoView({block:"nearest",inline:"nearest"})):e.removeAttribute("aria-current")}))}}window.addEventListener("message",(function(e){if("https://www.youtube-nocookie.com"===e.origin&&"string"==typeof e.data){var t;try{t=JSON.parse(e.data)}catch{return}var n=Array.prototype.slice.call(document.querySelectorAll("iframe.media-youtube")).filter((function(t){return t.contentWindow===e.source}))[0];if(n&&t&&t.info){var a=n.closest("[data-media-slide]"),i=a.closest("[data-media-viewer]");t.info.duration&&(a.youtubeLengthSec=t.info.duration),"number"==typeof t.info.currentTime&&(a.youtubeShare=t.info.currentTime/(a.youtubeLengthSec||Number(a.getAttribute("data-media-length"))||1)),0===t.info.playerState&&i.isAuto&&r(i)}}}));var i=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function r(n){var i=t(n)+1;i>=e(n).length?n.isAuto=!1:a(n,i,!0)}document.addEventListener("ended",(function(e){var t=e.target instanceof HTMLVideoElement?e.target.closest("[data-media-viewer]"):null;t&&t.isAuto&&r(t)}),!0),document.addEventListener("click",(function(e){var t=e.target instanceof Element?e.target:null;if(t){var n=t.closest("[data-media-to]");if(n){var o=n.closest("[data-media-viewer]"),s=o||document.getElementById(n.getAttribute("aria-controls")||"");if(!s)return;s.isAuto=!o&&!i,a(s,Number(n.getAttribute("data-media-to")),!0),function(e){if(!e.isRunning){e.isRunning=!0;var t=performance.now();requestAnimationFrame((function n(a){if(e.open&&!e.classList.contains("is-leaving")){var i=a-t;t=a;var o=e.querySelector("[data-media-slide]:not([hidden])"),s=o&&o.querySelector("video:not(.video-stand-in)"),c=0;s?c=s.currentTime/(isFinite(s.duration)&&s.duration>0?s.duration:1):o&&o.hasAttribute("data-youtube-video-id")?c=o.youtubeShare||0:o&&e.isAuto&&(document.hidden||(o.shownMs=(o.shownMs||0)+i),(c=o.shownMs/6e3)>=1&&(r(e),c=1));var l=e.querySelector('.media-thumb[aria-current="true"] .media-thumb-time');l&&l.style.setProperty("--groove-filled",Math.max(0,Math.min(1,c)).toFixed(4)),requestAnimationFrame(n)}else e.isRunning=!1}))}}(s)}}})),document.addEventListener("keydown",(function(e){if("ArrowLeft"===e.key||"ArrowRight"===e.key){var n=document.querySelector("dialog[data-media-viewer][open]");!n||e.target instanceof Element&&e.target.closest("input")||(e.preventDefault(),n.isAuto=!1,a(n,t(n)+("ArrowRight"===e.key?1:-1)))}}));var o=null;document.addEventListener("pointerdown",(function(e){var t=e.target instanceof Element?e.target.closest(".media-shown"):null;o=t&&"mouse"!==e.pointerType?{x:e.clientX,y:e.clientY,viewer:t.closest("[data-media-viewer]")}:null})),document.addEventListener("pointerup",(function(e){if(o){var n=e.clientX-o.x,i=e.clientY-o.y,r=o.viewer;o=null,Math.abs(n)>48&&Math.abs(n)>2*Math.abs(i)&&(r.isAuto=!1,a(r,t(r)+(n<0?1:-1)))}})),document.querySelectorAll("[data-media-viewer]").forEach((function(t){new MutationObserver((function(){(t.classList.contains("is-leaving")||!t.open)&&e(t).forEach(n)})).observe(t,{attributes:!0,attributeFilter:["class","open"]})}))}(),function(){function e(e){return e instanceof Element?e.closest("[data-video-player]"):null}function t(e,t){return isFinite(t.duration)&&t.duration>0?t.duration:Number(e.getAttribute("data-video-length"))||1}function n(e){var n=e.target;if(n instanceof HTMLVideoElement){var i=n.closest("[data-video-player]");if(i){Math.min(1,n.currentTime/t(i,n));var r=Math.floor(n.currentTime/60),o=Math.floor(n.currentTime%60);i.querySelector(".video-seek-input[data-is-dragged]")||a(i,n,n.currentTime);var s=i.querySelector(".video-seek-input");s.hasAttribute("data-is-dragged")||(s.value=String(n.currentTime)),i.querySelector("[data-video-time]").textContent=r+":"+String(o).padStart(2,"0");var c=i.querySelector("[data-video-play]");c.setAttribute("aria-label",n.paused?"Play":"Pause"),c.setAttribute("data-is-on",String(!n.paused));var d=n.muted?0:n.volume,u=i.querySelector("[data-video-sound]");u.setAttribute("data-sound-at",0===d?"off":d<=.5?"low":"high"),u.setAttribute("aria-label",0===d?"Sound on":"Mute"),i.querySelector(".video-level-groove").style.setProperty("--groove-filled",d.toFixed(4));var f=i.querySelector(".video-level-input");f.hasAttribute("data-is-dragged")||(f.value=String(d)),("play"===e.type||"pause"===e.type||"ended"===e.type)&&l(i),"play"===e.type&&function(e,t){e.isGliding||(e.isGliding=!0,function n(){t.paused||t.ended||!e.isConnected?e.isGliding=!1:(e.querySelector(".video-seek-input[data-is-dragged]")||a(e,t,t.currentTime),requestAnimationFrame(n))}())}(i,n)}}}function a(e,n,a){for(var i=t(e,n),r=Math.min(1,a/i),o=a,s=0;s<n.buffered.length;s++)n.buffered.start(s)<=a+.5&&n.buffered.end(s)>=a&&(o=n.buffered.end(s));e.querySelector(".video-progress").style.setProperty("--groove-filled",r.toFixed(4));var c=e.querySelector(".video-seek");c.style.setProperty("--played",r.toFixed(4)),c.style.setProperty("--loaded",Math.min(1,o/i).toFixed(4))}document.addEventListener("click",(function(t){var n=e(t.target);if(n){var a=t.target,i=n.querySelector("video:not(.video-stand-in)"),r=a===i||!!a.closest("[data-video-press]");if(r&&n.isWakeTouch)return void(n.isWakeTouch=!1);a.closest("[data-video-play]")||r?i.paused?i.play().catch((function(){})):i.pause():a.closest("[data-video-sound]")?i.muted||0===i.volume?(i.muted=!1,0===i.volume&&(i.volume=.5)):i.muted=!0:a.closest("[data-video-full-screen]")&&(document.fullscreenElement?document.exitFullscreen():n.requestFullscreen?n.requestFullscreen():i.webkitEnterFullscreen&&i.webkitEnterFullscreen())}})),document.addEventListener("fullscreenchange",(function(){document.querySelectorAll("[data-video-player] [data-video-full-screen]").forEach((function(e){var t=document.fullscreenElement===e.closest("[data-video-player]");e.setAttribute("data-is-on",String(t)),e.setAttribute("aria-label",t?"Exit full screen":"Full screen")}))})),["timeupdate","play","pause","volumechange","ended","progress"].forEach((function(e){document.addEventListener(e,n,!0)})),document.addEventListener("durationchange",(function(e){var t=e.target;if(t instanceof HTMLVideoElement&&isFinite(t.duration)&&t.duration>0){var n=t.closest("[data-video-player]");n&&(n.querySelector(".video-seek-input").max=String(t.duration))}}),!0);function i(e,t){if(clearTimeout(e.bufferingTimer),!t)return e.classList.remove("is-buffering"),e.setAttribute("aria-busy","false"),void(e.querySelector(".video-status").textContent="");e.bufferingTimer=setTimeout((function(){var t=e.querySelector("video:not(.video-stand-in)");t.paused||t.readyState>=3||(e.classList.add("is-buffering"),e.setAttribute("aria-busy","true"),e.querySelector(".video-status").textContent="Loading",l(e))}),500)}function r(e){var t=e.target instanceof Element?e.target.closest(".video-seek-input"):null;if(t){var n=t.closest("[data-video-player]"),i=n.querySelector("video:not(.video-stand-in)");a(n,i,Number(t.value)),i.currentTime=Number(t.value)}}function o(e){var t=e.target instanceof Element?e.target.closest(".video-seek-input"):null;if(t){var n=t.closest("[data-video-player]").querySelector("video:not(.video-stand-in)");"none"===n.preload&&(n.preload="auto",n.load(),n.currentTime=Number(t.value))}}["waiting","stalled"].forEach((function(e){document.addEventListener(e,(function(e){var t=e.target instanceof HTMLVideoElement&&!e.target.classList.contains("video-stand-in")?e.target.closest("[data-video-player]"):null;t&&i(t,!0)}),!0)})),["playing","canplay","pause","ended","emptied"].forEach((function(e){document.addEventListener(e,(function(e){var t=e.target instanceof HTMLVideoElement&&!e.target.classList.contains("video-stand-in")?e.target.closest("[data-video-player]"):null;t&&i(t,!1)}),!0)})),document.addEventListener("input",r),document.addEventListener("change",r),document.addEventListener("input",(function(e){var t=e.target instanceof Element?e.target.closest(".video-level-input"):null;if(t){var n=t.closest("[data-video-player]"),a=n.querySelector("video:not(.video-stand-in)");n.querySelector(".video-level-groove").style.setProperty("--groove-filled",Number(t.value).toFixed(4)),a.volume=Number(t.value),a.muted=0===a.volume}})),document.addEventListener("pointerdown",(function(e){var t=e.target instanceof Element?e.target.closest(".video-seek-input, .video-level-input"):null;t&&t.setAttribute("data-is-dragged","")})),document.addEventListener("pointerdown",o),document.addEventListener("keydown",o),["pointerup","pointercancel"].forEach((function(e){document.addEventListener(e,(function(){document.querySelectorAll(".video-controls [data-is-dragged]").forEach((function(e){e.removeAttribute("data-is-dragged")}))}))}));var s=2500;function c(e){e.querySelector("video:not(.video-stand-in)").paused||e.classList.contains("is-buffering")||e.querySelector(".video-controls [data-is-dragged], .video-controls :focus-visible")||e.classList.add("is-quiet")}function l(e){e.classList.remove("is-quiet"),clearTimeout(e.quietTimer),e.quietTimer=setTimeout((function(){c(e)}),s)}document.addEventListener("pointermove",(function(t){var n=e(t.target);n&&l(n)})),document.addEventListener("pointerdown",(function(t){var n=e(t.target);n&&(n.isWakeTouch="mouse"!==t.pointerType&&n.classList.contains("is-quiet"),l(n))})),document.addEventListener("pointerout",(function(t){var n=e(t.target);n&&"mouse"===t.pointerType&&!(t.relatedTarget instanceof Element&&n.contains(t.relatedTarget))&&(clearTimeout(n.quietTimer),c(n))})),document.addEventListener("focusin",(function(t){var n=e(t.target);n&&l(n)}))}(),window.zaismaWatch.each("form.find[data-suggest]",(function(e){var t=e.querySelector('input[type="search"]'),n=e.querySelector(".find-list"),a=n.querySelector('[role="listbox"]'),i=n.querySelector(".floating-body"),r=e.querySelector(".find-finish"),o=r.firstElementChild,s=r.lastElementChild,c=e.querySelector("template.find-icon"),l=e.querySelector("template.find-cover"),d=n.id.replace(/-list$/,""),u=e.getAttribute("data-suggest"),f=[],p=-1,m=0,v=null,h=new Map,g=window.zaismaFloat(n,{anchor:e,focusOnClose:t,isAnchorWidth:!0,anchorRect:function(){var t=e.getBoundingClientRect(),a=e.closest("body > .top");return a&&t.width<parseFloat(getComputedStyle(n).getPropertyValue("--list-least-width"))?a.getBoundingClientRect():t},onToggle:function(n){t.setAttribute("aria-expanded",String(n)),e.classList.toggle("is-open",n),w()}});function y(){return g.isOpen()}function w(){var e=y()&&(f[p]||f[0]),n=t.value,a=e&&e.getAttribute("data-finish"),i=a&&n&&a.length>n.length&&0===a.toLowerCase().indexOf(n.toLowerCase())&&t.scrollLeft<1;o.textContent=i?n:"",s.textContent=i?a.slice(n.length):""}function b(e){if(p=e,f.forEach((function(t,n){t.classList.toggle("is-active",n===e)})),e>=0){t.setAttribute("aria-activedescendant",f[e].id);var n=f[e];n.offsetTop<i.scrollTop?i.scrollTop=n.offsetTop:n.offsetTop+n.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop=n.offsetTop+n.offsetHeight-i.clientHeight)}else t.removeAttribute("aria-activedescendant");w()}var E=e.closest("body > .top")&&window.matchMedia("(orientation: landscape) and (max-height: 500px) and (max-width: 64em)");function L(){return!!E&&E.matches}function S(){L()||(y()?g.place():g.open(),w())}function A(){g.close(!1),w()}function x(e,t){var n=document.createElement("span"),a=t?e.toLowerCase().indexOf(t.toLowerCase()):-1;if(a<0)return n.textContent=e,n;var i=document.createElement("b");return i.textContent=e.slice(a,a+t.length),n.append(e.slice(0,a),i,e.slice(a+t.length)),n}function q(e,t){var n=document.createElement(e);return n.className="select-option flush-row compact find-"+t,n.setAttribute("role","option"),n.id=d+"-row-"+f.length,n.setAttribute("data-cut-line","8"),n}function C(e,n){var i=new Map;f.forEach((function(e){e.findKey&&i.set(e.findKey,e)}));var r=(e.games||[]).slice(0,3),o=(e.finishes||[]).slice(0,3).map((function(e){return function(e,t,n){var a=n.get("finish "+e);return a?(a.replaceChild(x(e,t),a.lastChild),a):((a=q("div","finish-row")).setAttribute("data-finish",e),a.findKey="finish "+e,a.append(c.content.cloneNode(!0),x(e,t)),a)}(e,n,i)})),s=r.map((function(e){return function(e,t,n){var a=n.get("game "+e.page_url);if(a){var i=a.querySelector(".find-game-words");return i.replaceChild(x(e.title,t),i.firstChild),i.lastChild.textContent=e.fact,a}(a=q("a","game")).href=e.page_url,a.tabIndex=-1,a.findKey="game "+e.page_url;var r=l.content.firstElementChild.cloneNode(!0),o=r.querySelector(".cover-picture");if(e.cover_url){var s=o.querySelector("img");/^\\/img\\/[A-Za-z0-9_-]+$/.test(e.cover_url)?s.srcset=[320,480].map((function(t){return e.cover_url+"/w"+t+".webp "+t+"w"})).join(", "):s.removeAttribute("srcset"),s.src=e.cover_url,e.cover_placeholder_data_url&&/^data:image\\/(webp|png|jpeg);base64,[A-Za-z0-9+\\/=]+$/.test(e.cover_placeholder_data_url)&&s.parentElement.style.setProperty("--placeholder","url("+e.cover_placeholder_data_url+")")}else o.remove(),r.classList.add("is-placeholder");var c=document.createElement("span"),d=document.createElement("span");return c.className="find-game-words",d.className="find-game-fact",d.textContent=e.fact,c.append(x(e.title,t),d),a.append(r,c),a}(e,n,i)}));if(!o.length&&!s.length)return b(-1),A(),void k();if(o.length+s.length!==f.length||!o.concat(s).every((function(e,t){return f[t]===e}))){var u=a.querySelector(".find-head");u||((u=document.createElement("div")).className="find-head words-margin",u.setAttribute("role","presentation"),u.textContent="Games"),a.replaceChildren.apply(a,o.concat(s.length?[u]:[],s)),o.concat(s).forEach((function(e,t){e.id=d+"-row-"+t}))}f=o.concat(s);var p=r.findIndex((function(e){return e.title.toLowerCase()===n.toLowerCase()}));f.length&&document.activeElement===t?(S(),b(p<0?-1:o.length+p)):(b(-1),A())}function k(){Promise.allSettled(n.getAnimations({subtree:!0}).map((function(e){return e.finished}))).then((function(){y()||(f=[],a.textContent="",b(-1))}))}function T(){if(!L()){var e=t.value.trim();if(v&&(v.abort(),v=null),!e)return b(-1),A(),void k();if(h.has(e))return void C(h.get(e),e);v=new AbortController,fetch(u+(u.indexOf("?")<0?"?":"&")+"search_text="+encodeURIComponent(e),{signal:v.signal,headers:{Accept:"application/json"}}).then((function(e){return e.ok?e.json():{finishes:[],games:[]}})).then((function(n){h.set(e,n),t.value.trim()===e&&C(n,e)})).catch((function(){}))}}function M(){var n=y()&&f[p];n&&"A"===n.tagName?location.href=n.href:(n&&(t.value=n.getAttribute("data-finish"),t.dispatchEvent(new Event("input",{bubbles:!0}))),e.requestSubmit())}function z(){!y()&&t.value.trim()&&(clearTimeout(m),T())}E&&E.addEventListener("change",(function(){L()&&A()})),e.addEventListener("submit",(function(){clearTimeout(m),v&&v.abort(),A(),matchMedia("(pointer: coarse)").matches&&t.blur()})),t.addEventListener("input",(function(){clearTimeout(m),w(),t.value.trim()?m=setTimeout(T,200):T()})),t.addEventListener("scroll",w),t.addEventListener("focus",z),t.addEventListener("click",z),t.addEventListener("keydown",(function(e){var n=e.key;if("ArrowDown"===n||"ArrowUp"===n){if(e.preventDefault(),!y())return void(f.length?(S(),b(0)):T());b(p<0?"ArrowDown"===n?0:f.length-1:(p+("ArrowDown"===n?1:-1)+f.length)%f.length)}else"Tab"===n&&!e.shiftKey&&y()&&s.textContent?(e.preventDefault(),function(){var e=f[p]||f[0];!e||!e.hasAttribute("data-finish")||(t.value=e.getAttribute("data-finish"),t.dispatchEvent(new Event("input",{bubbles:!0})))}()):"Enter"===n?(e.preventDefault(),M()):"Escape"===n&&y()&&(e.preventDefault(),A())})),t.addEventListener("focusout",(function(){setTimeout((function(){document.activeElement!==t&&A()}),0)})),n.addEventListener("pointerdown",(function(e){e.preventDefault()})),n.addEventListener("pointermove",(function(e){var t=e.target.closest(".select-option"),n=f.indexOf(t);n>=0&&n!==p&&b(n)})),n.addEventListener("click",(function(e){var t=e.target.closest(".select-option"),n=f.indexOf(t);n<0||(e.preventDefault(),b(n),M())}))})),function(){var e=matchMedia("(prefers-reduced-motion: reduce)").matches;function t(e){var t=0;e.querySelectorAll('[data-filter-panel]:not([data-filter-panel=""])').forEach((function(e){var n=e.querySelector('a[role="menuitem"]');n&&"page"!==n.getAttribute("aria-current")&&t++}));var n=document.querySelector('[aria-controls="'+e.id+'"]'),a=n&&n.querySelector(".slab"),i=n&&n.querySelector(".cut-count");t&&!i&&a&&((i=document.createElement("span")).className="cut-count",a.appendChild(i)),i&&(t?i.textContent=String(t):i.remove());var r=e.querySelector('[data-filter-panel=""] a[role="menuitem"][data-keeps-open]'),o=r&&r.previousElementSibling;r&&(r.hidden=!t),o&&o.matches("hr")&&(o.hidden=!t),e.zaismaPlace&&e.zaismaPlace()}var n=getComputedStyle(document.documentElement),a=1e3*(parseFloat(n.getPropertyValue("--motion-float"))||.12),i=n.getPropertyValue("--ease-glide").trim()||"cubic-bezier(.2, .8, .2, 1)";function r(e){var t=e.filterStep;t&&(e.filterStep=null,cancelAnimationFrame(t.castFrame),t.runs.forEach((function(e){e.cancel()})),t.leaving.hidden=!0,["position","top","left","width"].forEach((function(e){t.leaving.style.removeProperty(e)})),e.classList.remove("is-stepping"))}function o(t,n,o){r(t);var s=null,c=t.querySelector("[data-filter-panel]:not([hidden])"),l=t.offsetHeight,d=c?{top:c.offsetTop,left:c.offsetLeft,width:c.offsetWidth}:null;if(t.querySelectorAll("[data-filter-panel]").forEach((function(e){e.hidden=e.getAttribute("data-filter-panel")!==n,e.hidden||(s=e)})),t.zaismaPlace&&t.zaismaPlace(),s&&c&&s!==c&&!e&&s.animate){var u=n?12:-12,f=t.offsetHeight,p=[];if(c.hidden=!1,c.style.position="absolute",c.style.top=d.top+"px",c.style.left=d.left+"px",c.style.width=d.width+"px",t.classList.add("is-stepping"),p.push(s.animate([{transform:"translateX("+u+"px)",opacity:0},{transform:"none",opacity:1}],{duration:a,easing:i})),p.push(c.animate([{transform:"none",opacity:1},{transform:"translateX("+-u+"px)",opacity:0}],{duration:a,easing:i,fill:"forwards"})),f!==l){var m=t.classList.contains("is-above")?f-l:0;p.push(t.animate([{height:l+"px",transform:"translateY("+m+"px)"},{height:f+"px",transform:"none"}],{duration:a,easing:i}))}var v=t.filterStep={leaving:c,runs:p,castFrame:0};(function e(){t.filterStep===v&&(t.floatCast&&window.zaismaCast&&window.zaismaCast(t),v.castFrame=requestAnimationFrame(e))})(),p[0].finished.then((function(){t.filterStep===v&&(r(t),window.zaismaCast&&window.zaismaCast(t))}),(function(){}))}if(o&&s){var h=(""===n&&t.lastGroupName?t.querySelector('[data-filter-opens="'+t.lastGroupName+'"]'):null)||s.querySelector('[aria-current="page"]')||s.querySelector('[role="menuitem"]');h&&h.focus({preventScroll:!0})}}window.zaismaWatch.each(".filter-menu",(function(e){e.addEventListener("click",(function(n){if(n.target.closest('[data-filter-panel=""] a[role="menuitem"][data-keeps-open]')){e.querySelectorAll('[data-filter-panel]:not([data-filter-panel=""])').forEach((function(t){var n=t.querySelector('a[role="menuitem"]'),a=e.querySelector(".dropdown-tick");if(n&&"page"!==n.getAttribute("aria-current")){a=a&&a.cloneNode(!0),t.querySelectorAll('[aria-current="page"]').forEach((function(e){e.removeAttribute("aria-current");var t=e.querySelector(".dropdown-tick");t&&t.remove()})),n.setAttribute("aria-current","page"),a&&n.appendChild(a);var i=e.querySelector('[data-filter-opens="'+t.getAttribute("data-filter-panel")+'"] .filter-picked'),r=n.querySelector("span");i&&r&&(i.textContent=r.textContent)}})),t(e);var a=e.querySelector(".filter-group");return a&&a.focus({preventScroll:!0}),void(e.zaismaPlace&&e.zaismaPlace())}var i=n.target.closest('[data-filter-panel]:not([data-filter-panel=""]) [role="menuitem"][data-keeps-open]');if(i){var r=i.closest("[data-filter-panel]"),s=r.getAttribute("data-filter-panel"),c=e.querySelector(".dropdown-tick");c=c&&c.cloneNode(!0),r.querySelectorAll('[aria-current="page"]').forEach((function(e){e.removeAttribute("aria-current");var t=e.querySelector(".dropdown-tick");t&&t.remove()})),i.setAttribute("aria-current","page"),c&&i.appendChild(c);var l=e.querySelector('[data-filter-opens="'+s+'"]'),d=i.querySelector("span");return l&&d&&l.querySelector(".filter-picked")&&(l.querySelector(".filter-picked").textContent=d.textContent),e.lastGroupName=s,t(e),void o(e,"",!0)}var u=n.target.closest("[data-filter-opens]");u&&((s=u.getAttribute("data-filter-opens"))&&(e.lastGroupName=s),o(e,s,0===n.detail))})),e.addEventListener("keydown",(function(t){var n=document.activeElement;"ArrowRight"===t.key&&n&&n.matches(".filter-group")&&(t.preventDefault(),e.lastGroupName=n.getAttribute("data-filter-opens"),o(e,e.lastGroupName,!0)),"ArrowLeft"===t.key&&n&&n.closest('[data-filter-panel]:not([data-filter-panel=""])')&&(t.preventDefault(),o(e,"",!0))})),e.addEventListener("beforetoggle",(function(t){"open"===t.newState&&o(e,"",!1)}))}))}(),function(){var e={done:'<div class="notice glass glass-bar done" role="status" data-notice="done" data-notice-urgency="information" data-glass data-glass-corners="strip"><svg class="edge" aria-hidden="true"></svg><svg class="ico" viewBox="0 0 20 20" aria-hidden="true" stroke-width="2.2"><path d="M4.2 10.4l3.9 3.9 7.7-8.6"/></svg><span class="notice-text words-margin beside-controls compact"></span></div>',undo:'<div class="notice glass glass-bar done" role="status" data-notice="done" data-notice-urgency="information" data-notice-undo data-glass data-glass-corners="strip"><svg class="edge" aria-hidden="true"></svg><svg class="ico" viewBox="0 0 20 20" aria-hidden="true" stroke-width="2.2"><path d="M4.2 10.4l3.9 3.9 7.7-8.6"/></svg><span class="notice-text words-margin beside-controls"></span><form class="notice-undo" method="post" action="#"><button class="shell tertiary-btn" type="submit"><span class="face flush-row" data-cut-line="10"><svg class="cut-line" aria-hidden="true"><polygon/></svg><span class="tertiary-words"><span class="tertiary-label one-line">Undo</span></span><span class="tertiary-line light-fill across light-line light-glint" aria-hidden="true"></span></span></button></form></div>',problem:'<div class="notice glass glass-bar problem" role="alert" data-notice="problem" data-notice-urgency="information" data-glass data-glass-corners="strip"><svg class="edge" aria-hidden="true"></svg><svg class="ico" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 2.8 18.2 17H1.8z"/><path d="M10 8v4.2M10 14.6v.1"/></svg><span class="notice-text words-margin beside-controls compact"></span><button class="shell tertiary-btn icon-only small" data-layer-close="" type="button" aria-label="Close"><span class="face flush-row" data-cut-line="9"><svg class="cut-line" aria-hidden="true"><polygon/></svg><span class="tertiary-words"><svg class="ico" viewBox="0 0 20 20" aria-hidden="true" stroke-width="1.8"><path d="M5 5l10 10M15 5 5 15"/></svg></span></span></button></div>',card:'<aside class="playing-card glass" id="layer-card" role="status" data-glass data-glass-corners="pane" hidden><svg class="edge" aria-hidden="true"></svg><div class="playing-card-in"><div class="layout-stack"><div class="stack-cell is-words"><p></p></div></div></div></aside>',urgent:'<aside class="playing-card glass urgent-card" id="layer-urgent" role="alert" data-notice-urgency="urgent" popover="manual" data-glass data-glass-corners="pane"><svg class="edge" aria-hidden="true"></svg><div class="playing-card-in"><div class="pane-parts"><div class="pane-head" data-control-height="small"><div class="pane-head-words"><h2 class="playing-card-title"></h2></div><div class="pane-head-end"><button class="shell tertiary-btn icon-only small" data-layer-close="" type="button" aria-label="Close"><span class="face flush-row" data-cut-line="9"><svg class="cut-line" aria-hidden="true"><polygon/></svg><span class="tertiary-words"><svg class="ico" viewBox="0 0 20 20" aria-hidden="true" stroke-width="1.8"><path d="M5 5l10 10M15 5 5 15"/></svg></span></span></button></div></div><div class="pane-body"><p class="urgent-card-text words-margin"></p></div></div></div></aside>'},t={urgent:0,ask:1,information:2},n=document.documentElement,a=function(){return n.classList.contains("is-playing")},i=function(){return window.matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches},r=parseFloat(getComputedStyle(n).getPropertyValue("--gap-control-stack"))||8,o=[],s=0,c=-1/0,l=null,d=null,u=[];function f(e){var t=e.getAttribute("data-notice-urgency");return"information"===t||"ask"===t||"urgent"===t?t:e.querySelector("a, button, input, select, textarea")?"ask":"information"}function p(e){for(var t=0;t<o.length;t++)if(o[t].el===e)return o[t];return null}function m(e){return{element:e.el,leave:function(){k(e)}}}function v(e){return e.order=s++,e.queuedAtMs=Date.now(),e.isShown=!1,o.push(e),y(),m(e)}var h=function(e,n){return t[e.noticeUrgency]-t[n.noticeUrgency]||e.order-n.order},g=function(e){return"information"===e.noticeUrgency&&"problem"!==e.tone};function y(){clearTimeout(l),l=null;var e=Date.now(),t=a(),n=u.length>0||!(!document.fullscreenElement||document.fullscreenElement===document.documentElement),i=o.filter((function(e){return!e.isShown})).sort(h);i.forEach((function(e){"urgent"===e.noticeUrgency&&function(e){(e.sheetsToClose||[]).forEach((function(e){var t=document.getElementById(e);t&&t.open&&t.close()})),e.el||(e.el=b(e)),e.isShown=!0,e.isOverGame=a(),e.el.hidden=!1,L(e.el)}(e)})),i=i.filter((function(e){return"urgent"!==e.noticeUrgency}));var r=o.filter((function(e){return e.isShown&&"urgent"!==e.noticeUrgency&&e.isOverGame===t})).length,s=t?n?0:1:3,d=e-c;if(t&&s&&!r&&i.length&&d<300)return l=setTimeout(y,300-d),M();for(var f=0;f<i.length&&r<s;f++){var p=i[f];t&&g(p)&&e-p.queuedAtMs>1e4?w(p):(E(p),r++)}M()}function w(e){C(e);var t=o.indexOf(e);-1!==t&&o.splice(t,1),e.el&&!e.isMade&&e.el.matches(".notice")&&e.el.remove()}function b(t){var n=document.createElement("template"),i="urgent"===t.noticeUrgency?"urgent":a()?"card":t.undoAction?"undo":"problem"===t.tone?"problem":"done";n.innerHTML=e[i];var r=n.content.firstElementChild;if(r.id="layer-"+t.order,r.setAttribute("data-notice-urgency",t.noticeUrgency),"urgent"===i){var o=r.querySelector(".playing-card-title");o&&o.remove(),r.querySelector(".urgent-card-text").textContent=t.text}else"card"===i?r.querySelector("p").textContent=t.text:(r.querySelector(".notice-text").textContent=t.text,"undo"===i&&r.querySelector("form").setAttribute("action",t.undoAction));return r.zaismaLayer=t,(document.querySelector("main")||document.body).appendChild(r),r}function E(e){e.el||(e.el=b(e)),e.isShown=!0,e.isOverGame=a();var t=e.el;t.classList.remove("is-leaving"),t.hidden=!1,function(e){var t=e.el;if(!t.zaismaHeld){t.zaismaHeld=!0;var n=function(){var e=p(t);e&&clearTimeout(e.timer)};t.addEventListener("pointerenter",n),t.addEventListener("pointerdown",n),t.addEventListener("pointerleave",(function(){var e=p(t);e&&e.isShown&&(g(e)||x(e))&&q(e)}))}}(e),(g(e)||x(e))&&q(e),t.matches(".notice")&&T()}function L(e){e.showPopover&&(e.matches(":popover-open")&&e.hidePopover(),e.showPopover())}function S(){o.forEach((function(e){e.isShown&&"urgent"===e.noticeUrgency&&L(e.el)}))}var A=window.matchMedia?window.matchMedia("(max-width: 760px), (max-height: 500px)"):{matches:!1};function x(e){return A.matches&&e.el.hasAttribute("data-notice-folds")}function q(e){clearTimeout(e.timer),x(e)?e.timer=setTimeout((function(){var t=e.el.querySelector("[data-notice-close]");t&&t.click()}),8e3):e.timer=setTimeout((function(){k(e)}),e.undoAction||e.el.hasAttribute("data-notice-undo")?8e3:4e3)}function C(e){e.isOverGame&&e.el&&e.el.matches(".playing-card:not(.urgent-card), .urgent-card[data-notice-marks]")&&window.dispatchEvent(new CustomEvent("zaisma:card-left",{detail:{card:e.el}}))}function k(e){var t=o.indexOf(e);if(-1!==t){if(C(e),o.splice(t,1),clearTimeout(e.timer),e.isShown){var n=e.el;e.isShown=!1,n.hidePopover&&n.matches(":popover-open")&&n.hidePopover(),n.matches(".notice")?(n.classList.add("is-leaving"),setTimeout((function(){n.remove(),T()}),300)):(n.hidden=!0,e.isMade&&setTimeout((function(){n.remove()}),300)),e.isOverGame&&"urgent"!==e.noticeUrgency&&(c=Date.now())}y()}}function T(){var e=0;o.filter((function(e){return e.isShown&&e.el.matches(".notice")})).sort((function(e,t){return e.order-t.order})).forEach((function(t){t.el.style.setProperty("--notice-shift",e+"px"),e+=t.el.offsetHeight+r}))}function M(){var e=u.length?"sheet":o.some((function(e){return e.isShown&&e.el.matches(".playing-card")}))?"card":null;e!==d&&(d=e,J.coveredBy=e,window.dispatchEvent(new CustomEvent("zaisma:covered",{detail:{coveredBy:e}})))}function z(e){if(!e.zaismaLayer&&!e.classList.contains("in-place")){var t={el:e,noticeUrgency:f(e),tone:"problem"===e.getAttribute("data-notice")?"problem":"done"};e.zaismaLayer=t,e.hidden=!0,v(t)}}function P(e){e.querySelectorAll&&(e.matches("[data-notice]")&&z(e),e.querySelectorAll("[data-notice]").forEach(z))}P(document.body),window.zaismaWatch&&window.zaismaWatch.page((function(e){e.forEach((function(e){e.addedNodes.forEach(P)}))}));var F=window.MutationObserver?new MutationObserver((function(e){e.forEach((function(e){var t=p(e.target);t&&t.isShown&&e.target.hidden&&k(t)}))})):null;document.addEventListener("click",(function(e){var t=e.target;if(t.closest){var n=t.closest("[data-layer-close]"),a=n&&n.closest("[data-notice], .urgent-card");if(!a){var i=t.closest("a, button");a=i&&i.closest(".urgent-card")}var r=a&&p(a);r&&k(r)}})),document.addEventListener("fullscreenchange",(function(){S(),y()}));var N=HTMLDialogElement.prototype.close,O=HTMLDialogElement.prototype.showModal;function B(e){return e.open&&e.matches(".sheet")&&!e.classList.contains("in-place")}function D(e){var t=u.indexOf(e);-1!==t&&(u.splice(t,1),y())}function R(e,t){if(!e.classList.contains("is-leaving")){e.classList.add("is-leaving"),e.dispatchEvent&&e.dispatchEvent(new Event("zaisma:sheet-leaving")),D(e);var n=setTimeout(i,400);e.addEventListener("transitionend",a)}function a(t){t.target===e&&"opacity"===t.propertyName&&i()}function i(){clearTimeout(n),e.removeEventListener("transitionend",a),e.classList.contains("is-leaving")&&(e.classList.remove("is-leaving"),N.apply(e,t))}}var W=window.matchMedia?window.matchMedia("(min-width: 761px), (orientation: landscape) and (max-height: 500px)"):{matches:!1},I=new Map,H=null,U=!(window.CSS&&CSS.supports("overlay","auto"));function _(e){var t=I.get(e);if(t&&e.open){if(!e.classList.contains("is-compact"))return e.classList.remove("is-anchored","is-above","is-at-end","is-on-page"),e.style.removeProperty("--sheet-left"),void e.style.removeProperty("--sheet-top");e.classList.toggle("is-on-page",t.isOnPage);var n=t.opener.isConnected?t.opener.getBoundingClientRect():t.rect;n.width||n.height?t.rect=n:n=t.rect;var a=document.documentElement.clientWidth,i=window.innerHeight;if(n.bottom<0||n.top>i||n.right<0||n.left>a)return void e.close();e.style.setProperty("--sheet-max-height",i-32+"px");var r=Math.max(n.top,i-n.bottom)-8-16;if(e.classList.toggle("is-anchored",W.matches||e.offsetHeight<=r),e.classList.contains("is-anchored")){var o=window.zaismaPlace(n,{width:e.offsetWidth,height:e.offsetHeight},{roomRect:{left:0,top:0,right:a,bottom:i},gapPx:8,edgePx:16}),s=e.classList.contains("is-on-page");e.style.setProperty("--sheet-left",Math.round(o.leftPx+(s?window.scrollX:0))+"px"),e.style.setProperty("--sheet-top",Math.round(o.topPx+(s?window.scrollY:0))+"px"),e.classList.toggle("is-above",o.isAbove),e.classList.toggle("is-at-end",o.isAtEnd)}}}function j(){I.forEach((function(e,t){_(t)}))}document.addEventListener("click",(function(e){var t=e.target.closest&&e.target.closest("button, a, [role='button']");H=t?{button:t,at:performance.now()}:null}),!0),HTMLDialogElement.prototype.showModal=function(){var e=this.open,t=this.matches(".sheet")&&!this.classList.contains("in-place");if(!e&&t){if(u.length>=2){var n=u[u.length-1];console.warn("Sheets go two deep at most: #"+this.id+" replaces #"+n.id+"."),D(n),n.classList.remove("is-leaving"),N.apply(n)}this.zaismaOpener=document.activeElement}!e&&t&&this.classList.toggle("is-over-sheet",u.length>0);var a=!e&&t&&U&&!i();if(a&&this.classList.add("is-arriving"),O.apply(this,arguments),a){var r=this;!function e(t,n){requestAnimationFrame((function(a){if(!(n&&a-n<25)&&t<30)return e(t+1,a);r.classList.remove("is-arriving")}))}(0,0)}e||!t||(u.push(this),function(e){if(!e.matches(".placement-docked")){var t=H&&performance.now()-H.at<2e3&&H.button.isConnected?H.button:null;!t||!e.classList.contains("is-compact")||e.matches(".in-place, .store-panel, .placement-middle, .is-picture")||t.closest("[popover]")||e.contains(t)||t.closest("dialog[open]")||(I.set(e,{opener:t,rect:t.getBoundingClientRect(),isOnPage:!(!window.zaismaIsOnPage||!window.zaismaIsOnPage(t,e))}),e.classList.add("is-anchored"),e.classList.toggle("is-on-page",I.get(e).isOnPage),V&&V.observe(e))}}(this),_(this),function(e){window.zaismaInput&&window.zaismaInput.isKeyboard()&&!e.hasAttribute("data-takes-own-focus")||(e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}))}(this),S(),y())};var V=window.ResizeObserver?new ResizeObserver((function(e){e.forEach((function(e){I.has(e.target)&&_(e.target)}))})):null;function G(e,t,n,a){"data-sheet-tab"===t&&function(e){if(W.matches&&e.open&&!e.classList.contains("in-place")){var t=e.offsetHeight;t>(parseFloat(e.style.minHeight)||0)&&(e.style.minHeight=t+"px")}}(e);var r=null;if(e.querySelectorAll("["+t+"]").forEach((function(e){var a=e.getAttribute(t)===n;e.hidden=!a,a&&(r=e)})),r){r.classList.remove("is-from-end","is-from-start"),a&&!i()&&(r.offsetWidth,r.classList.add(a>0?"is-from-end":"is-from-start"));var o=function(){r.querySelectorAll("[data-cut-line]").forEach((function(e){e.redrawCut&&e.redrawCut()}))};r.classList.contains("is-from-end")||r.classList.contains("is-from-start")?r.addEventListener("animationend",o,{once:!0}):window.requestAnimationFrame&&requestAnimationFrame(o)}return r}function K(e,t){var n=e.querySelector("["+t+"]");return n?n.getAttribute(t):null}function X(e,t,n){var a=n&&!1===n.isBackShown?[]:e.zaismaSteps||[K(e,"data-sheet-step")],r=a.indexOf(t);-1===r?a.push(t):a.length=r+1,e.zaismaSteps=a;var o=e.open?e.getBoundingClientRect():null,s=G(e,"data-sheet-step",t,e.open?-1===r?1:-1:0);if(s){if(e.querySelector("[data-sheet-step-compact]")){var c=s.hasAttribute("data-sheet-step-compact");if(c!==e.classList.contains("is-compact")&&(e.classList.toggle("is-compact",c),e.classList.toggle("is-task-step",!c),_(e),o&&!i()&&e.animate)){var l=e.getBoundingClientRect(),d=Math.round(o.left+o.width/2-l.left-l.width/2)+"px "+Math.round(o.top+o.height/2-l.top-l.height/2)+"px";e.animate([{translate:d},{translate:"0 0"}],{duration:300,easing:"cubic-bezier(.2, .8, .2, 1)"})}}var u=s.querySelector("[data-sheet-back]");u&&(u.hidden=a.length<2);var f=s.querySelector(".sheet-title");f&&f.id&&e.setAttribute("aria-labelledby",f.id)}}function Y(e){(e.style.minHeight="",e.zaismaSteps)&&(e.zaismaSteps=null,X(e,K(e,"data-sheet-step")),e.zaismaSteps=null);var t=e.querySelector("[data-sheet-tab-opening]")||e.querySelector("[data-sheet-tab-to]");t&&$(e,t.getAttribute("data-sheet-tab-to"))}function $(e,t){G(e,"data-sheet-tab",t,0);var n=e.querySelector('[data-sheet-tab-to="'+t+'"]'),a=n&&n.closest(".tab-switch");a&&a.pickTab&&a.pickTab(n)}window.addEventListener("resize",j),window.addEventListener("scroll",j,{passive:!0,capture:!0}),document.addEventListener("close",(function(e){var t=e.target;if(t.matches&&t.matches(".sheet")){if(t.isBeingRaised)return t.isBeingRaised=!1,void e.stopImmediatePropagation();D(t),function(e){var t=getComputedStyle(e).display;if(t&&"none"!==t&&e.addEventListener){var n=!1,a=setTimeout(r,700);e.addEventListener("transitionend",i)}else Y(e);function i(t){t.target===e&&"display"===t.propertyName&&r()}function r(){n||(n=!0,clearTimeout(a),e.removeEventListener("transitionend",i),e.open||Y(e))}}(t);var n=t.zaismaOpener,a=u[u.length-1];t.zaismaOpener=null,a&&(n&&n.isConnected&&a.contains(n)?n:a).focus({preventScroll:!0}),I.has(t)&&(I.delete(t),V&&V.unobserve(t),t.classList.remove("is-anchored","is-above","is-at-end","is-on-page"),t.style.removeProperty("--sheet-left"),t.style.removeProperty("--sheet-top"),t.style.removeProperty("--sheet-max-height"))}}),!0),HTMLDialogElement.prototype.close=function(){B(this)?R(this,arguments):N.apply(this,arguments)},document.addEventListener("cancel",(function(e){e.target.matches&&B(e.target)&&(e.preventDefault(),R(e.target,[]))}),!0),document.addEventListener("submit",(function(e){if(!e.defaultPrevented){var t=e.submitter&&e.submitter.getAttribute("formmethod")||e.target.getAttribute("method"),n=e.target.closest("dialog");!t||"dialog"!==t.toLowerCase()||!n||!B(n)||(e.preventDefault(),R(n,e.submitter&&e.submitter.hasAttribute("value")?[e.submitter.value]:[]))}})),document.addEventListener("click",(function(e){if(e.target.closest){var t=e.target.closest("[aria-controls]:not([aria-expanded])"),n=t&&document.getElementById(t.getAttribute("aria-controls"));if(n&&n.matches("dialog.sheet"))return e.preventDefault(),n.classList.contains("is-leaving")&&(n.classList.remove("is-leaving"),-1===u.indexOf(n)&&u.push(n),y()),void(n.open||n.showModal());var a=e.target.closest("[data-sheet-step-to]"),i=a&&a.closest("dialog");if(i)return e.preventDefault(),void X(i,a.getAttribute("data-sheet-step-to"));var r=e.target.closest("[data-layer-show]");if(r)return e.preventDefault(),void J.say({cardId:r.getAttribute("data-layer-show")});var o=e.target.closest("[data-sheet-back]");if(o){var s=o.closest("dialog");return void(s&&s.zaismaSteps&&s.zaismaSteps.length>1&&X(s,s.zaismaSteps[s.zaismaSteps.length-2]))}var c=e.target.closest("[data-sheet-tab-to]"),l=c&&c.closest("dialog");if(l)return void $(l,c.getAttribute("data-sheet-tab-to"));var d=e.target.closest("dialog.light-box[open]");if(d&&u[u.length-1]===d&&!e.target.closest("a, button, input, video, .floating-pane, .light-box.on-pane .glass-pane"))return void d.close();var f=e.target.matches("dialog.sheet[open]")?e.target:null;if(f&&e.detail&&u[u.length-1]===f){var p=f.getBoundingClientRect();(e.clientX<p.left||e.clientX>p.right||e.clientY<p.top||e.clientY>p.bottom)&&f.close()}}}));var J=window.zaismaLayers={coveredBy:null,openSheets:u,raiseOpenSheets:function(){var e=document.activeElement;u.forEach((function(e){e.isBeingRaised=!0,e.style.transition="none",N.apply(e),O.apply(e),requestAnimationFrame((function(){e.style.transition=""}))})),e&&u.length&&e.focus({preventScroll:!0})},say:function(e){var t=e.cardId?document.getElementById(e.cardId):null;if(e.cardId&&!t)return null;var n=t?p(t):o.filter((function(t){return t.isMade&&t.text===e.text}))[0];if(n)return m(n);var a=e.noticeUrgency||(t?f(t):"information"),i=e.sheetsToClose||(t&&t.getAttribute("data-sheets-to-close")?t.getAttribute("data-sheets-to-close").split(" "):[]),r={el:t,text:e.text||"",noticeUrgency:a,tone:"problem"===e.tone?"problem":"done",undoAction:e.undoAction||null,sheetsToClose:i,isMade:!t};return t&&(t.zaismaLayer=r,F&&F.observe(t,{attributes:!0,attributeFilter:["hidden"]})),v(r)},show:function(e){return e?J.say({cardId:e.id}):null},leave:function(e){var t=e&&p(e.element||e);t&&k(t)},step:X};y()}(),window.zaismaWatch.each("form[data-steps]",(function(e){var t=Array.prototype.slice.call(e.querySelectorAll(":scope > .step-bodies > .step-body")),n=Array.prototype.slice.call(e.closest(".pane-in").querySelectorAll(".step-line > li")),a=e.querySelector(":scope > .layout-row"),i=a.querySelector(".cut-btn"),r=a.querySelector(".run-wrap").querySelector(".run-words:not(.label-busy)"),o=Number(e.getAttribute("data-steps"))||0,s=t.length-1,c=e.getAttribute("data-finish-label"),l=0;function d(e){n.forEach((function(t,n){t.classList.remove("is-leaving","is-waiting"),t.classList.toggle("is-done",n<e),t.classList.toggle("is-current",n===e),n===e?t.setAttribute("aria-current","step"):t.removeAttribute("aria-current")}))}function u(a){var u=o;o=Math.max(0,Math.min(s,a)),t.forEach((function(e,t){e.classList.toggle("is-away",t!==o)})),clearTimeout(l),o<u&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches?(n.forEach((function(e,t){t>o&&(e.classList.contains("is-current")||e.classList.contains("is-done"))&&(e.classList.remove("is-current","is-done"),e.classList.add("is-leaving")),e.removeAttribute("aria-current")})),n[o].classList.remove("is-done"),n[o].classList.add("is-current","is-waiting"),n[o].setAttribute("aria-current","step"),l=setTimeout((function(){d(o)}),450)):d(o),i.hidden=0===o,r&&(r.textContent=o===s?c:"Next");var f=t[o].querySelector("input, select, textarea, button");f&&document.activeElement&&e.contains(document.activeElement)&&f.focus({preventScroll:!0})}e.goToStep=u,i.addEventListener("click",(function(){u(o-1)})),e.addEventListener("submit",(function(e){if(o!==s){e.preventDefault();for(var n=t[o].querySelectorAll("input, select, textarea"),a=0;a<n.length;a++)if(!n[a].checkValidity())return void n[a].reportValidity();u(o+1)}}))})),function(){var e=["purchase_pin","password","passkey"],t={purchase_pin:"Enter all 6 digits of your purchase PIN.",password:"Enter your password."},n=new WeakMap;function a(e,t){return document.getElementById(e+"-"+t)}function i(e,t){var n="purchase_pin"===document.getElementById(e).dataset.method,i=a(e,"problem");i.hidden=n||!t,i.querySelector("p").textContent=n?"":t||"",window.zaismaPinField.setError(a(e,"pin-field"),n?t:"")}function r(t,n,i){var r=i.method;a(n,"reason").querySelector("p").textContent=i.options.reason||"",a(n,"pin").hidden="purchase_pin"!==r,a(n,"password").hidden="password"!==r,e.forEach((function(e){var t=a(n,"way-"+e);t.hidden=e===r||-1===i.methods.indexOf(e),t.disabled=i.isBusy})),a(n,"go-cell").hidden="purchase_pin"===r;var o=a(n,"go");o.querySelector(".label-idle").textContent="passkey"===r?"Use your passkey":"Confirm",i.isBusy?o.setAttribute("aria-busy","true"):o.removeAttribute("aria-busy"),o.disabled=i.isBusy,window.zaismaPinField.setDisabled(a(n,"pin-field"),i.isBusy&&"purchase_pin"===r),t.dataset.method=r,a(n,"face").dataset.method=r}function o(e){window.zaismaPinField.clear(a(e,"pin-field")),a(e,"password-field").value=""}function s(e,t){"purchase_pin"===t.method?window.zaismaPinField.focus(a(e,"pin-field")):"password"===t.method&&a(e,"password-field").focus({preventScroll:!0})}async function c(e,c,l){if(!l.isBusy&&n.get(e)===l){var d,u,f=l.method;if(i(c,""),"passkey"===f){l.isBusy=!0,r(e,c,l);var p=await window.zaismaPasskeyTap(l.options.passkeyPurpose);if(p.error)return l.isBusy=!1,r(e,c,l),i(c,p.error);d={method:"passkey",passkey_tap:p.tap}}else{var m="purchase_pin"===f?window.zaismaPinField.digits(a(c,"pin-field")):a(c,"password-field").value;if(!m||"purchase_pin"===f&&m.length<6)return i(c,t[f]);d="purchase_pin"===f?{method:f,purchase_pin:m}:{method:f,password:m},l.isBusy=!0,r(e,c,l)}try{u=await l.options.send(d)}catch{u={ok:!1,message:"Zaisma didn't answer. Check your connection and try again."}}if(l.isBusy=!1,u&&u.ok)return l.isDone=!0,o(c),r(e,c,l),e.close(),void l.options.onConfirmed();var v=u&&u.removed_methods||[];l.methods=l.methods.filter((function(e){return-1===v.indexOf(e)})),-1===l.methods.indexOf(l.method)&&(l.method=l.methods[0]||l.method),o(c),r(e,c,l),i(c,u&&u.message||"That didn't work. Try again."),s(c,l)}}window.zaismaConfirmItsYou=function(t,l){var d=document.getElementById(t);if(!d)return!1;if(d.open)return!0;var u=l.methods.filter((function(e){return"passkey"!==e||window.PublicKeyCredential&&window.zaismaPasskeyTap}));if(!u.length)return!1;var f={options:l,methods:u,method:u[0],isBusy:!1,isDone:!1};d.dataset.confirmWired||(d.dataset.confirmWired="1",function(t,l){var d=function(){return n.get(t)};a(l,"go").addEventListener("click",(function(){var e=d();e&&c(t,l,e)})),e.forEach((function(e){a(l,"way-"+e).addEventListener("click",(function(){var n=d();!n||n.isBusy||-1===n.methods.indexOf(e)||(n.method=e,o(l),i(l,""),r(t,l,n),s(l,n))}))})),t.addEventListener("zaisma:pin-complete",(function(){var e=d();e&&"purchase_pin"===e.method&&c(t,l,e)})),t.addEventListener("keydown",(function(e){if("Enter"===e.key&&e.target instanceof HTMLInputElement){e.preventDefault();var n=d();n&&c(t,l,n)}})),t.addEventListener("cancel",(function(e){var t=d();t&&t.isBusy&&e.preventDefault()})),t.addEventListener("close",(function(){var e=d();n.delete(t),o(l),e&&!e.isDone&&e.options.onCancelled&&e.options.onCancelled()}))}(d,t)),n.set(d,f),o(t),i(t,""),r(d,t,f),d.classList.remove("is-leaving");var p=!navigator.userActivation||navigator.userActivation.isActive;return d.showModal(),"passkey"===f.method&&p?c(d,t,f):s(t,f),!0}}(),function(){document.addEventListener("click",(function(e){var t=e.target.closest&&e.target.closest("[data-load-more] > a.shell[href]");if(!(!t||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)){var n=t.parentElement,a=n.getAttribute("data-load-more").split(" "),r=document.getElementById(a[0]),o=n.querySelector(".load-more-words");r&&(e.preventDefault(),"true"!==t.getAttribute("aria-busy")&&window.zaismaWait(t,fetch(t.href,{headers:{accept:"text/html"},credentials:"same-origin"}).then((function(e){if(!e.ok)throw new Error(String(e.status));return e.text()})).then((function(e){var o=(new DOMParser).parseFromString(e,"text/html");if(o.getElementById(r.id)){a.forEach((function(e){var t=document.getElementById(e),n=o.getElementById(e);if(t&&n&&n.children.length){Array.prototype.slice.call(n.children).forEach((function(e){t.appendChild(document.importNode(e,!0))})),t.dispatchEvent(new Event("scroll"));var a=t.closest("[hidden]");a&&(a.hidden=!1)}}));var s=o.querySelector("[data-load-more]");if(s){var c=document.importNode(s,!0);n.replaceWith(c),i(c)}else n.remove()}else location.href=t.href})).catch((function(){n.classList.add("is-failed"),o&&(o.textContent="That didn't load. Check your connection, then try again.",o.hidden=!1)}))))}}));var e="IntersectionObserver"in window?new IntersectionObserver((function(e){e.forEach((function(e){var t=e.target.querySelector("a.shell[href]");e.isIntersecting&&t&&!e.target.classList.contains("is-failed")&&t.click()}))}),{rootMargin:"100% 0px"}):null,t=[],n=["scroll","wheel","touchmove"];function a(){t&&(t.forEach((function(t){e.observe(t)})),t=null,n.forEach((function(e){removeEventListener(e,a,!0)})))}function i(n){!e||!n.hasAttribute("data-loads-on-scroll")||(t?t.push(n):e.observe(n))}document.querySelectorAll("[data-loads-on-scroll]").forEach(i),e&&(n.forEach((function(e){addEventListener(e,a,{capture:!0,passive:!0})})),window.scrollY>0&&a()),window.zaismaLoadMore={watch:i}}(),function(){var e=location.pathname+location.search;var t={headers:{accept:"text/html"},credentials:"same-origin"};function n(e){if(!e.ok)throw new Error(String(e.status));return e.text().then((function(e){var t=(new DOMParser).parseFromString(e,"text/html"),n=!1;return document.querySelectorAll("[data-list-pages]").forEach((function(e){(function(e,t){var n=e.getAttribute("data-list-pages"),a=document.getElementById(n),i=t.getElementById(n),r=t.querySelector('[data-list-pages="'+CSS.escape(n)+'"]');if(!a||!i||!r)return!1;var o=e.querySelector(".list-foot-words"),s=r.querySelector(".list-foot-words");if(o.textContent===s.textContent)return!0;a.replaceChildren.apply(a,Array.prototype.map.call(i.childNodes,(function(e){return document.importNode(e,!0)})));var c=a.closest(".scrolls, .table-scroll");c&&(c.scrollTop=0,c.dispatchEvent(new Event("scroll"))),o.textContent=s.textContent,e.classList.remove("is-failed");var l=r.querySelectorAll("a, button");return e.querySelectorAll("a, button").forEach((function(t,n){var a=l[n];function i(){var n=t===document.activeElement,i=document.importNode(a,!0);i.classList.add("is-arriving"),t.replaceWith(i),n&&e.querySelector("a")&&e.querySelector("a").focus()}function r(){return"true"!==t.getAttribute("aria-busy")&&!t.querySelector(".waiting-glint")}t.zaismaSettling&&(t.zaismaSettling.disconnect(),t.zaismaSettling=null),t.tagName!==a.tagName?(t.removeAttribute("href"),r()?i():(t.zaismaSettling=new MutationObserver((function(){r()&&(t.zaismaSettling.disconnect(),t.zaismaSettling=null,i())})),t.zaismaSettling.observe(t,{attributes:!0,attributeFilter:["aria-busy"],childList:!0,subtree:!0}))):a.hasAttribute("href")&&t.setAttribute("href",a.getAttribute("href"))})),!0})(e,t)&&(n=!0)})),n}))}document.addEventListener("click",(function(a){var i=a.target.closest&&a.target.closest("[data-list-pages] a[href]");if(!(!i||0!==a.button||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)){a.preventDefault();var r=i.closest("[data-list-pages]"),o=i.href,s=new URL(o);s.searchParams.set("only_list_id",r.getAttribute("data-list-pages")),window.zaismaWait(i,fetch(s,t).then(n)).then((function(t){t?(history.pushState(null,"",o),e=location.pathname+location.search):location.href=o})).catch((function(){r.classList.add("is-failed"),r.querySelector(".list-foot-words").textContent="That didn't load."}))}})),window.addEventListener("popstate",(function(){var a=location.pathname+location.search;a===e||!document.querySelector("[data-list-pages]")||(e=a,window.zaismaWait(null,fetch(location.href,t).then(n)).then((function(e){e||location.reload()}),(function(){location.reload()})))}))}(),function(){var e=null,t=function(){return matchMedia("(prefers-reduced-motion: reduce)").matches},n=function(e){return!e.classList.contains("in-place")&&!e.classList.contains("urgent-card")&&!e.querySelector("a, button, input, select, textarea")};function a(e){e.classList.remove("is-swiping"),["--swipe-x","--swipe-y","--swipe-opacity"].forEach((function(t){e.style.removeProperty(t)}))}function i(e,n,a){e.classList.remove("is-swiping"),!t()&&"x"===n&&e.style.setProperty("--swipe-x",a*e.offsetWidth+"px"),!t()&&"y"===n&&e.style.setProperty("--swipe-y",-e.offsetHeight+"px"),window.zaismaLayers&&window.zaismaLayers.leave(e),e.hidden=!0}var r=new WeakSet;function o(e){r.has(e)||(r.add(e),new MutationObserver((function(){e.hidden||a(e)})).observe(e,{attributes:!0,attributeFilter:["hidden"]}))}document.querySelectorAll(".playing-card").forEach(o),document.querySelectorAll("[data-notice-copies]").forEach((function(e){var t=document.getElementById(e.getAttribute("data-notice-copies"));if(t){var n=e.closest(".notice-strip"),a=n&&n.querySelector(".av"),i=function(){e.textContent=t.textContent,a&&function(e,t){let n=7;for(const e of t)n=(31*n+e.codePointAt(0))%360;const a=t.trim().split(/\\s+/).filter(Boolean),i=a.length>1?[Array.from(a[0])[0],Array.from(a[1])[0]]:Array.from(a[0]||"?").slice(0,2);e.style.setProperty("--h",String(n)),e.textContent=i.join("").toUpperCase()}(a,t.textContent.trim()||"?")};i(),new MutationObserver(i).observe(t,{childList:!0,characterData:!0,subtree:!0})}})),document.addEventListener("click",(function(e){var t=e.target.closest&&e.target.closest("[data-notice-presses], [data-notice-close]");if(t){var n=document.getElementById(t.getAttribute("data-notice-presses")||t.getAttribute("data-notice-close")||"");t.hasAttribute("data-notice-close")&&t.closest("[data-notice-marks]")&&window.dispatchEvent(new Event("zaisma:notice-folded")),n&&n.click()}})),document.addEventListener("pointerdown",(function(t){var a=t.target.closest&&t.target.closest(".playing-card");!a||a.hidden||!n(a)||"mouse"===t.pointerType&&0!==t.button||(o(a),e={card:a,id:t.pointerId,x:t.clientX,y:t.clientY,axis:"",dx:0,dy:0})})),document.addEventListener("pointermove",(function(n){if(e&&n.pointerId===e.id){var a=n.clientX-e.x,i=n.clientY-e.y;if(!e.axis){if(Math.max(Math.abs(a),Math.abs(i))<8)return;if(e.axis=Math.abs(a)>=Math.abs(i)?"x":i<0?"y":"none","none"===e.axis)return void(e=null);try{e.card.setPointerCapture(n.pointerId)}catch{}t()||e.card.classList.add("is-swiping")}if(e.dx=a,e.dy=Math.min(0,i),!t()){var r="x"===e.axis?Math.abs(e.dx)/e.card.offsetWidth:-e.dy/e.card.offsetHeight;e.card.style.setProperty("x"===e.axis?"--swipe-x":"--swipe-y",("x"===e.axis?e.dx:e.dy)+"px"),e.card.style.setProperty("--swipe-opacity",String(Math.max(0,1-r)))}}})),document.addEventListener("pointerup",(function(t){if(e&&t.pointerId===e.id){var n=e.card,r=e.axis,o=e.dx,s=e.dy;e=null,!r||"x"===r&&Math.abs(o)>=56||"y"===r&&-s>=32?i(n,r,o<0?-1:1):a(n)}})),document.addEventListener("pointercancel",(function(t){!e||t.pointerId!==e.id||(a(e.card),e=null)})),document.addEventListener("keydown",(function(e){"Escape"===e.key&&document.querySelectorAll(".playing-card:not([hidden])").forEach((function(e){n(e)&&i(e,"",1)}))}))}(),(()=>{const e=()=>{const e=decodeURIComponent(location.hash.slice(1)),t=e?document.getElementById(e):null;t&&t.matches("details.list-row-fold")&&(t.open=!0)};e(),addEventListener("hashchange",e),document.addEventListener("click",(e=>{const t=e.target instanceof Element?e.target.closest("details.list-row-fold > summary"):null,n=t?t.parentElement:null;if(!n||!n.open)return;if(e.preventDefault(),n.classList.contains("is-closing"))return n.classList.remove("is-closing"),void clearTimeout(n.closeLater);if(matchMedia("(prefers-reduced-motion: reduce)").matches)return void(n.open=!1);n.classList.add("is-closing");const a=parseFloat(getComputedStyle(n,"::details-content").transitionDuration)||.4;n.closeLater=setTimeout((()=>{n.classList.contains("is-closing")&&(n.classList.remove("is-closing"),n.open=!1)}),1e3*a+20)}))})();` };
11489
11508
 
11490
11509
  // ../../apps/site/src/components/first-paint-script.ts
@@ -14189,7 +14208,7 @@ var GLASS_SCRIPT = `/* glass */(function () {
14189
14208
  runBatch(function () { panes.forEach(function (pane) { if (pane.isConnected) edgedIn(pane).forEach(cutEdged); }); });
14190
14209
  // A well's track or grid (a Game row's): what's edged in each of its cells is cut along the well's corners where it stands, and again as
14191
14210
  // a track scrolls by, so a card passing a corner takes the corner's cut and one past it is square.
14192
- document.querySelectorAll("[data-cut-line] > .track-holder > .layout-track, [data-cut-line] > .layout-grid, [data-cut-line] > .grid-one-line > .layout-grid, [data-cut-line] > .game-grid-group > .layout-grid").forEach(function (track) {
14211
+ document.querySelectorAll("[data-cut-line] > .track-holder > .layout-track, [data-cut-line] > .layout-grid, [data-cut-line] > .grid-one-line > .layout-grid, [data-cut-line] > .grid-lead-cell > .layout-grid, [data-cut-line] > .game-grid-group > .layout-grid").forEach(function (track) {
14193
14212
  var pieces = track.edgedPieces = Array.prototype.map.call(track.children, edgedPieceOf).filter(Boolean);
14194
14213
  runBatch(function () { pieces.forEach(cutEdged); });
14195
14214
  if (track.isCutOnScroll) return;
@@ -15162,6 +15181,10 @@ html.is-page-arriving main .glass:not(.glass .glass)::before, html.is-page-arriv
15162
15181
  /* Opened fresh (a reload, another site), nothing was on screen to move from: the panes come in at a calmer pace, beside a world that takes
15163
15182
  longer still, where a page switch's quick fade would read as a pop. */
15164
15183
  html.is-page-arriving-fresh main .glass:not(.glass .glass)::before, html.is-page-arriving-fresh main .glass:not(.glass .glass) > * { animation-duration: var(--motion-settle); }
15184
+ /* Opened fresh, the footer is new on screen too: it comes in with the panes, at their pace, never standing there before them. A page switch
15185
+ keeps it still, as the header is, the same on both pages. */
15186
+ html.is-page-arriving-fresh body > .foot::before, html.is-page-arriving-fresh body > .foot > * { animation: page-arrives var(--motion-settle) var(--ease-standard) both; }
15187
+ html.is-page-held body > .foot::before, html.is-page-held body > .foot > * { animation-play-state: paused; }
15165
15188
  @keyframes page-arrives { from { opacity: 0; } }
15166
15189
  `,
15167
15190
  render: backdrop,
@@ -15391,7 +15414,7 @@ var LIST = {
15391
15414
  players: { words: "Players", icon: "people" },
15392
15415
  follow: { words: "Follow", icon: "bell" },
15393
15416
  like: { words: "Like", icon: "heart" },
15394
- favorite: { words: "Favorite", icon: "star" },
15417
+ favorite: { words: "Favorite", icon: "heart" },
15395
15418
  report: { words: "Report", icon: "flag" },
15396
15419
  // Things to do to something.
15397
15420
  change: { words: "Change", icon: "pencil" },
@@ -15853,8 +15876,8 @@ var TERTIARY_ARROW = html`<span class="tertiary-arrow" aria-hidden="true">${icon
15853
15876
  function tertiaryButton(button, options = {}) {
15854
15877
  const { label, chosenIcon, pressedIcon } = faceOf(button);
15855
15878
  const isIconOnly = Boolean(options.isLabelHidden && chosenIcon);
15856
- const extra = html`${disabledAttribute(options)}${isIconOnly ? html` aria-label="${label}"` : ""}${options.controls ? html` aria-controls="${options.controls}"` : ""}`;
15857
- return controlMarkup(html`${opening(classes("tertiary-btn", isIconOnly && "icon-only", options.isSmall && "small", options.isFullWidth && "is-full", options.state), options, options.isBusy, extra)}<span class="face flush-row" data-cut-line="${options.isSmall ? 9 : 10}">${CUT_LINE}<span class="tertiary-words">${chosenIcon && pressedIcon ? iconPair(chosenIcon, pressedIcon) : chosenIcon ? icon(chosenIcon) : ""}${isIconOnly ? "" : html`<span class="tertiary-label one-line">${label}</span>`}${leavesZaisma(options.href) ? icon("out-of-page") : options.hasArrow ? TERTIARY_ARROW : ""}</span>${isIconOnly || options.hasArrow ? "" : raw('<span class="tertiary-line light-fill across light-line light-glint" aria-hidden="true"></span>')}</span>${closing(options)}`, options.isSmall ? "small" : "regular");
15879
+ const extra = html`${disabledAttribute(options)}${isIconOnly ? html` aria-label="${label}"` : ""}${options.controls ? html` aria-controls="${options.controls}"` : ""}${options.isExpanded !== void 0 ? html` aria-expanded="${options.isExpanded ? "true" : "false"}"` : ""}`;
15880
+ return controlMarkup(html`${opening(classes("tertiary-btn", isIconOnly && "icon-only", options.isSmall && "small", options.isTiny && "tiny", options.isFullWidth && "is-full", options.state), options, options.isBusy, extra)}<span class="face flush-row" data-cut-line="${options.isSmall || options.isTiny ? 9 : 10}">${CUT_LINE}<span class="tertiary-words">${chosenIcon && pressedIcon ? iconPair(chosenIcon, pressedIcon) : chosenIcon ? icon(chosenIcon) : ""}${isIconOnly ? "" : html`<span class="tertiary-label one-line">${label}</span>`}${leavesZaisma(options.href) ? icon("out-of-page") : options.hasArrow ? TERTIARY_ARROW : ""}</span>${isIconOnly || options.hasArrow ? "" : raw('<span class="tertiary-line light-fill across light-line light-glint" aria-hidden="true"></span>')}</span>${closing(options)}`, options.isTiny ? "tiny" : options.isSmall ? "small" : "regular");
15858
15881
  }
15859
15882
  component({
15860
15883
  name: "Tertiary button",
@@ -15873,8 +15896,10 @@ component({
15873
15896
  .tertiary-btn:not([data-is-on="true"]) .ico-pair > [data-shown-when="on"], .tertiary-btn[data-is-on="true"] .ico-pair > [data-shown-when="off"] { opacity: 0; }
15874
15897
  /* Small, and only its icon (a pane's Close, a sheet's Back): a square of a small control's size, its slab and no line under it when pointed at. */
15875
15898
  .tertiary-btn.small { --control-height: var(--control-height-small); }
15876
- /* On a touch screen a small one still takes a finger, as a small secondary button does: its hit area reaches out to 44px, its look unchanged. */
15877
- @media (pointer: coarse) { .tertiary-btn.small { position: relative; } .tertiary-btn.small::after { content: ""; position: absolute; inset: min(0px, calc((var(--touch-target) - 100%) / -2)); } }
15899
+ /* Tiny, and only its icon (a game card's More): a square of a tiny control's size, on a line no taller than its title. */
15900
+ .tertiary-btn.tiny { --control-height: var(--control-height-tiny); }
15901
+ /* On a touch screen a small or tiny one still takes a finger, as a small secondary button does: its hit area reaches out to 44px, its look unchanged. */
15902
+ @media (pointer: coarse) { .tertiary-btn:is(.small, .tiny) { position: relative; } .tertiary-btn:is(.small, .tiny)::after { content: ""; position: absolute; inset: min(0px, calc((var(--touch-target) - 100%) / -2)); } }
15878
15903
  .tertiary-btn.icon-only > .face { width: var(--control-height); padding-inline: 0; align-items: center; }
15879
15904
  .tertiary-btn.icon-only .ico { width: 18px; height: 18px; }
15880
15905
  .tertiary-btn:focus-visible { outline: none; }
@@ -15912,6 +15937,7 @@ component({
15912
15937
  label: "Only its icon, small: a sheet's Back and Close in its top corners, nothing behind them until pointed at",
15913
15938
  markup: html`<div style="width:300px">${glassPane({ paneWidth: "full", body: paneParts({ head: { start: tertiaryButton(action("back"), { type: "button", isLabelHidden: true, isSmall: true }), words: html`<h2 class="sheet-title">Liam</h2>`, end: tertiaryButton(action("close"), { type: "button", isLabelHidden: true, isSmall: true }) }, body: html`<p>Profile, Block and Report go here.</p>` }) })}</div>`
15914
15939
  },
15940
+ { label: "Tiny, only its icon: a game card's More", markup: tertiaryButton(action("more", "More for Kestrel"), { type: "button", isLabelHidden: true, isTiny: true }), isStill: true },
15915
15941
  { label: "Only its icon, pointed: its slab, with no orange line under it", markup: tertiaryButton(action("close"), { type: "button", isLabelHidden: true, isSmall: true, state: "is-pointed" }), isStill: true }
15916
15942
  ]
15917
15943
  });
@@ -16916,6 +16942,9 @@ var FIELD_STYLES = `
16916
16942
  what's in it, the pane's width where that's wider, never past it. */
16917
16943
  .cut-field > .field:not(.select, .long) { width: var(--size-card); min-width: 100%; max-width: 100%; }
16918
16944
  .cut-field.is-short > .field:not(.select, .long) { width: var(--size-field-short); min-width: 0; }
16945
+ /* Beside other controls in a row, a short field is short at least and takes what its cell is given: as wide as its label above it in a row of
16946
+ fitting things, so the control beside it meets it and they slant toward each other, never sitting apart. */
16947
+ .row-cell.is-control > .cut-field.is-short > .field:not(.select, .long) { min-width: 100%; }
16919
16948
  /* Leading a row that fills (a room code and its Join), a short field takes the row's room past its own width, so nothing sits apart from the
16920
16949
  row's start, and needs only its own width to keep its button beside it. */
16921
16950
  .row-cell.fills > .cut-field.is-short > .field:not(.select, .long) { width: 100%; min-width: var(--size-field-short); }
@@ -18086,7 +18115,7 @@ var factLine = (words3, factClass) => {
18086
18115
  };
18087
18116
  function keyDetails(options) {
18088
18117
  return html`<dl class="key-details words-margin hairline-above"${options.label ? html` aria-label="${options.label}"` : ""}>${options.details.map(
18089
- (detail) => html`<div class="key-detail"${detail.id ? html` id="${detail.id}"` : ""}${detail.isHidden ? raw(" hidden") : ""}><dt>${detail.label}</dt><dd class="key-detail-value">${detail.unit ? html`<span class="key-detail-amount">${detail.detailValue}</span><span class="key-detail-unit">${detail.unit}</span>` : detail.detailValue}</dd>${detail.under ? html`<dd class="key-detail-under${detail.isUnderGood ? " good" : ""}">${detail.under}</dd>` : ""}</div>`
18118
+ (detail) => html`<div class="key-detail${detail.isHeld ? " is-held" : ""}"${detail.id ? html` id="${detail.id}"` : ""}${detail.isHidden ? raw(" hidden") : ""}><dt>${detail.label}</dt><dd class="key-detail-value">${detail.unit ? html`<span class="key-detail-amount">${detail.detailValue}</span><span class="key-detail-unit">${detail.unit}</span>` : detail.detailValue}</dd>${detail.under ? html`<dd class="key-detail-under${detail.isUnderGood ? " good" : ""}">${detail.under}</dd>` : ""}</div>`
18090
18119
  )}</dl>`;
18091
18120
  }
18092
18121
  var UPDATE_IS_NEWS_FOR_MS = 7 * 24 * 60 * MINUTE_MS;
@@ -18111,6 +18140,7 @@ var KEY_DETAILS_STYLES = `
18111
18140
  .key-details { margin: 0; display: flex; flex-wrap: wrap; gap: var(--gap-words-control) var(--gap-block-block); }
18112
18141
  .key-detail { flex: none; min-width: var(--size-number); max-width: 100%; display: grid; align-content: start; gap: 2px; }
18113
18142
  .key-detail[hidden] { display: none; }
18143
+ .key-detail.is-held { visibility: hidden; }
18114
18144
  .stack-cell:has(> .key-details:not(:has(> .key-detail:not([hidden])))) { display: none; }
18115
18145
  .key-detail > dt { font: var(--type-facts); color: var(--ink-2); }
18116
18146
  .key-detail > dd { margin: 0; min-width: 0; }
@@ -20444,6 +20474,18 @@ var SWITCH_SCRIPT = `/* switches */(function () {
20444
20474
  scroller.scrollTo({ left: on.offsetLeft + on.offsetWidth / 2 - scroller.clientWidth / 2, behavior: isGliding ? "smooth" : "auto" });
20445
20475
  }
20446
20476
  showChosen(false);
20477
+ // Asked again once the page has settled: what made the tabs run past their room while the page arrived (a pane's scrollbar coming and
20478
+ // going, a slab stretched mid-slide) can end with no size changing, which would leave them scrolling, with a rail, where they fit.
20479
+ // The row's fades are asked again only when that changed it (never by a scroll event, which a list reads as the player moving).
20480
+ // It only clears a mark left behind: it never scrolls, since a scroll reads as the player moving (Browse loads more on one).
20481
+ function askRoomAgain() {
20482
+ var scroller = sw.parentElement;
20483
+ if (isVertical() || !scroller || !sw.classList.contains("is-past-room")) return;
20484
+ sw.classList.remove("is-past-room");
20485
+ if (scroller.scrollWidth > scroller.clientWidth + 1) { sw.classList.add("is-past-room"); return; }
20486
+ if (scroller.fadeEndsAgain) scroller.fadeEndsAgain();
20487
+ }
20488
+ window.zaismaWatch.afterSettling(askRoomAgain);
20447
20489
  // A switch of links that was on the last page too (the header's tabs; a stacked one has already slid, on the press): once this page shows, its slab slides from the last page's tab
20448
20490
  // to this one's. Only its position moves (and, sideways, its width as a stretch), as a compositor animation, like the old sidebar's glide:
20449
20491
  // nothing is laid out or redrawn while the new page is still starting, and the settles that follow (fonts, the first resize) can't cut it short.
@@ -20471,7 +20513,9 @@ var SWITCH_SCRIPT = `/* switches */(function () {
20471
20513
  var start = function () {
20472
20514
  requestAnimationFrame(function () {
20473
20515
  isWaitingToSlide = false; settle(); isWaitingToSlide = true;
20474
- var land = function () { isWaitingToSlide = false; settle(); };
20516
+ // Stretched as it slides from a wider tab, the slab reached past the tabs for a moment, which could read as tabs past their room:
20517
+ // once it lands, whether they are is asked again, and the row's fades with it (a scroll event), so no rail or fade is left behind.
20518
+ var land = function () { isWaitingToSlide = false; settle(); askRoomAgain(); };
20475
20519
  slideFromLastPage().finished.then(land, land);
20476
20520
  });
20477
20521
  };
@@ -20496,7 +20540,8 @@ var SWITCH_SCRIPT = `/* switches */(function () {
20496
20540
  if (slab.pickedTab !== tab) put(slab, tab, true);
20497
20541
  // In a row that scrolls, the picked tab comes whole into view, clear of the row's fades (SCROLL_FADE_SCRIPT's showWhole).
20498
20542
  var row = sw.closest("[data-fades-sideways]");
20499
- if (row && row.showWhole && !isVertical()) row.showWhole(tab, true); else showChosen(true);
20543
+ // Its own Well scrolling it, it's the tabs' own: the picked one comes to the middle (showChosen), as on arriving.
20544
+ if (row && row !== sw.parentElement && row.showWhole && !isVertical()) row.showWhole(tab, true); else showChosen(true);
20500
20545
  holdCurrentOpen();
20501
20546
  };
20502
20547
  function isDisabled(tab) { return tab.disabled || tab.getAttribute("aria-disabled") === "true"; }
@@ -20652,6 +20697,9 @@ component({
20652
20697
  /* Past its room (SWITCH_SCRIPT), it's as wide as its tabs again, one width each, so scrolled to its end the last keeps the inset the first has. */
20653
20698
  .well.switch-well.is-full .tab-switch.is-past-room { width: max-content; }
20654
20699
  .tab-switch:not(.vertical) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; background: none; box-shadow: none; clip-path: none; }
20700
+ /* A tab is never narrower than its words, however little room its Well has (larger text, a narrow sheet): past that the tabs run past the
20701
+ well and scroll in it (is-past-room), never squeezed into each other. Tabs that are their icons alone keep an icon's room instead. */
20702
+ .tab-switch:not(.vertical) > :is(a, button) { min-width: max-content; }
20655
20703
  /* The one you're on is marked by its slab and full ink, at the same weight as the others, so its words never move as it's chosen. */
20656
20704
  .tab-switch [aria-current="page"], .tab-switch [aria-pressed="true"] { color: var(--ink); }
20657
20705
  /* Pointed at (a mouse's; a tap shows nothing), a tab you're not on takes full ink, and the well's edge light (Edge light, Panes \u203A Glass)
@@ -21466,7 +21514,8 @@ function dropdown(options) {
21466
21514
  }
21467
21515
  var cardLabel = (options) => [
21468
21516
  options.title,
21469
- options.facts.tagWords?.toLowerCase() ?? "",
21517
+ options.isGone ? "not available" : options.facts.tagWords?.toLowerCase() ?? "",
21518
+ options.facts.reasonText?.toLowerCase() ?? "",
21470
21519
  options.facts.priceText ?? "",
21471
21520
  options.facts.friends?.length ? `${options.facts.friends.map((friend) => friend.username).join(", ")} playing` : "",
21472
21521
  options.facts.deviceNote ?? ""
@@ -21493,14 +21542,19 @@ function gameCard(options) {
21493
21542
  const facts = options.facts, isPlaceholder = options.picture === null;
21494
21543
  const hasTint = Boolean(options.tintColor && /^#[0-9a-fA-F]{6}$/.test(options.tintColor));
21495
21544
  const tint = hasTint ? html` style="--card-tint: ${options.tintColor}"` : "";
21496
- const className = ["cover", isPlaceholder ? "is-placeholder" : "", facts.deviceNote ? "is-other-device" : "", hasTint ? "has-tint" : "", options.state ?? ""].filter(Boolean).join(" ");
21497
- const tagAtEnd = facts.tagWords ? tag(facts.tagWords, /^(Updated|New)$/.test(facts.tagWords) ? "new" : "plain") : void 0;
21545
+ const className = ["cover", isPlaceholder ? "is-placeholder" : "", facts.deviceNote ? "is-other-device" : "", options.isGone ? "is-gone" : "", hasTint ? "has-tint" : "", options.state ?? ""].filter(Boolean).join(" ");
21546
+ const tagWords = options.isGone ? "Not available" : facts.tagWords;
21547
+ const tagAtEnd = tagWords ? tag(tagWords, /^(Updated|New)$/.test(tagWords) ? "new" : "plain") : void 0;
21498
21548
  const nameWords = html`<span class="cover-name one-line">${options.title}</span>`;
21499
21549
  const nameMarkup = facts.friends?.length ? html`<span class="cover-name-line">${pictureRow(facts.friends, "xs", { shownPictureCount: options.joinHref ? 1 : 3 })}${nameWords}</span>` : nameWords;
21500
21550
  const endMarkup = tagAtEnd ?? (facts.priceText ? tag(facts.priceText, "plain") : void 0);
21501
21551
  const art = isPlaceholder ? "" : html`<span class="cover-picture carving-art" data-cut-line="0">${picture(options.picture, { isEager: options.isEager, hasHighPriority: options.hasHighPriority })}</span>`;
21502
- const playerCountMarkup = facts.playerCount !== void 0 ? html`<span class="count">${icon("people")}<span>${facts.playerCount.toLocaleString("en-US")}<span class="sr"> playing now</span></span></span>` : "";
21503
- return html`<div class="${className} sleek-cast"${tint}${options.isCurrent ? raw(' aria-current="true"') : ""}><div class="cover-glass glass sleek" data-cut-line="0"><a class="cover-art carving holds-art${options.state ? ` ${options.state}` : ""}" data-cut-line="0" data-cut-square data-edge-light="bottom" data-lights href="${options.href}" aria-label="${cardLabel(options)}">${CUT_LINE}${art}${EDGE_LIGHT}</a><div class="cover-plate">${options.playHref ? gameCardActions(nameMarkup, options.playHref, options.href) : options.joinHref ? gameCardJoin(nameMarkup, options.joinHref) : html`<div class="cover-meta">${nameMarkup}${endMarkup ?? playerCountMarkup}</div>`}</div></div></div>`;
21552
+ const playerCountMarkup = facts.playerCount !== void 0 && !options.isGone ? html`<span class="count">${icon("people")}<span>${facts.playerCount.toLocaleString("en-US")}<span class="sr"> playing now</span></span></span>` : "";
21553
+ const menu = options.menu ? html`<span class="cover-more">${tertiaryButton(action("more", `More for ${options.title}`), { type: "button", isLabelHidden: true, isTiny: true, controls: options.menu.id, isExpanded: false })}${dropdown({ id: options.menu.id, label: options.menu.label, head: options.isGone ? { title: options.title, note: "Not available right now" } : facts.reasonText ? { title: options.title, note: facts.reasonText } : void 0, items: options.menu.items })}</span>` : "";
21554
+ const well2 = options.isGone ? html`<span class="cover-art carving holds-art${options.state ? ` ${options.state}` : ""}" data-cut-line="0" data-cut-square role="img" aria-label="${cardLabel(options)}">${CUT_LINE}${art}</span>` : html`<a class="cover-art carving holds-art${options.state ? ` ${options.state}` : ""}" data-cut-line="0" data-cut-square data-edge-light="bottom" data-lights href="${options.href}" aria-label="${cardLabel(options)}">${CUT_LINE}${art}${EDGE_LIGHT}</a>`;
21555
+ const line = options.playHref ? gameCardActions(nameMarkup, options.playHref, options.href) : options.joinHref ? gameCardJoin(nameMarkup, options.joinHref) : html`<div class="cover-meta">${nameMarkup}${endMarkup ?? playerCountMarkup}${menu}</div>`;
21556
+ const dataAttributeMarkup = options.dataAttributes ? html`${Object.entries(options.dataAttributes).map(([name, text5]) => html` data-${name}="${text5}"`)}` : "";
21557
+ return html`<div class="${className} sleek-cast"${tint}${dataAttributeMarkup}${options.isCurrent ? raw(' aria-current="true"') : ""}><div class="cover-glass glass sleek" data-cut-line="0">${well2}<div class="cover-plate${options.menu ? " has-more" : ""}">${line}</div></div></div>`;
21504
21558
  }
21505
21559
  var PLACE_SCRIPT = `/* place */(function () {
21506
21560
  // Whether a pane opened from this button can ride the page as it scrolls: neither the button nor the pane sits in something fixed or
@@ -21896,9 +21950,8 @@ var COVER_STYLES = `
21896
21950
  .cover-glass > .cover-plate > .cover-meta.has-actions > .layout-row > .row-cell.is-words, .cover-glass > .cover-plate > .cover-meta.has-actions > .layout-row > .row-cell.is-words > * { padding-block: 0; }
21897
21951
  .cover-name-line { display: flex; align-items: center; gap: var(--gap-words-words); flex: 1 1 0; min-width: 0; }
21898
21952
  .cover-name-line > .picture-row { flex: none; }
21899
- /* In a row of cards every card is one height, the tallest's (a track stretches its cards, a grid its cells), and the plate takes what's left,
21900
- so a price or a friend under one title never makes its card taller than the rest. */
21901
- .grid-cell > .cover { height: 100%; }
21953
+ /* A card is one shape wherever it sits: its cell never stretches it to its line's height (a lead cell two lines tall, a taller card beside it). */
21954
+ .layout-track > .cover { align-self: flex-start; }
21902
21955
  .cover-art { position: relative; display: block; aspect-ratio: 16 / 9; text-decoration: none; container-type: inline-size; }
21903
21956
  /* See all's art: four covers two by two, the card's glass between them; the art's own cut takes the outer corners. */
21904
21957
  .cover-mosaic { position: absolute; inset: 0; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: var(--pad-frame-compact); }
@@ -21935,6 +21988,19 @@ var COVER_STYLES = `
21935
21988
  /* Small (smallGameCard): the art alone, 64px across, in a row that says the rest and is the link (a search's games). */
21936
21989
  /* Its art is its whole width: no words margin, since it has no words under it. */
21937
21990
  .cover.is-small { flex: none; width: 64px; padding-inline: 0; }
21991
+ /* Gone for now (made private, or being deleted): the art greyed, no light, its tag saying so. */
21992
+ .cover.is-gone .cover-picture { filter: grayscale(1) brightness(0.7); }
21993
+ .cover.is-gone .cover-name { color: var(--ink-2); }
21994
+ /* Its More, at the line's end: a tiny control, so its plate is the one height every card's is. */
21995
+ .cover-meta .cover-more { position: relative; display: inline-flex; flex: none; }
21996
+ /* In a grid two across at the least (a phone's library), its plate measures its own width, so what its line says can give way on a narrow
21997
+ card. Only there: a plate that measures itself gives its card no width of its own, so anywhere that sizes to its cards would fold them away. */
21998
+ .layout-grid.is-at-least-two-across:not(.is-one-line) > .grid-cell > .cover .cover-plate { container-type: inline-size; }
21999
+ /* On a narrow card with a More (two across on a phone) players now and an Updated tag give the title their room; they're in its label and on
22000
+ its page. A price stays: a paid game never looks free. */
22001
+ @container (max-width: 180px) { .cover-plate.has-more > .cover-meta > :is(.count, .tag.new) { display: none; } }
22002
+ /* Gone, its tag is long: on a card under about two covers wide, its title keeps the line and its More's head says it isn't available. */
22003
+ @container (max-width: 300px) { .cover.is-gone .cover-plate.has-more > .cover-meta > .tag { display: none; } }
21938
22004
  /* Its line under the art: the title, cut to one line, and a tag or players now at its end. */
21939
22005
  /* In a row where some card has a control on its title line (Join), every title line there is as tall as that control, so the cards line up. */
21940
22006
  .cover-meta { display: flex; align-items: center; gap: var(--gap-words-words); font: var(--type-facts); color: var(--muted); }
@@ -22338,8 +22404,9 @@ component({
22338
22404
  summary: "Games in a well carved into their pane, as many across as fit, growing down as more load: Browse's games, with those for other devices after a line in the same well. The cards keep the frame gap from the well's edges and from each other, and take its corner cuts. Game row is its sibling that scrolls sideways under a heading.",
22339
22405
  styles: `
22340
22406
  /* The frame gap round the cards and between them, as in a Game row's well. */
22341
- .carving.game-grid { padding: var(--pad-frame); --rail-inset: var(--pad-frame); }
22342
- .carving.game-grid > .layout-grid, .carving.game-grid > .grid-one-line > .layout-grid { gap: var(--pad-frame); padding-inline: 0; }
22407
+ /* It fills what holds it, wherever that is: its cards measure their own width (their plates are containers), so it never shrinks to them. */
22408
+ .carving.game-grid { width: 100%; box-sizing: border-box; padding: var(--pad-frame); --rail-inset: var(--pad-frame); }
22409
+ .carving.game-grid > .layout-grid, .carving.game-grid > :is(.grid-one-line, .grid-lead-cell) > .layout-grid { gap: var(--pad-frame); padding-inline: 0; }
22343
22410
  /* Two groups in one well: the second after a line across it, the line the frame gap from the well's sides and from the cards round it. */
22344
22411
  .carving.game-grid.has-groups { display: flex; flex-direction: column; gap: var(--pad-frame); }
22345
22412
  .carving.game-grid.has-groups > .game-grid-group[hidden] { display: none; }
@@ -22398,6 +22465,9 @@ component({
22398
22465
  { label: "With Play and Details under it", markup: cardSample({ title: "Kestrel", picture: STAND_IN_COVER_PICTURES["kestrel"], href: "#kestrel", playHref: "#kestrel-play", facts: { playerCount: 12480 } }), isStill: true },
22399
22466
  { label: "Lifted: its foot lit, its art brighter, Play and Details showing", markup: cardSample({ title: "Kestrel", picture: STAND_IN_COVER_PICTURES["kestrel"], href: "#kestrel", playHref: "#kestrel-play", isCurrent: true, facts: { playerCount: 12480 } }), isStill: true },
22400
22467
  { label: "On a loop", markup: html`<div class="cover-sample" data-state-loop="cover">${standInCovers(["iron-vigil"])}</div>`, isStill: true },
22468
+ { label: "Gone for now: greyed, with no link", markup: cardSample({ title: "Hollow Tide", picture: STAND_IN_COVER_PICTURES["hollow-tide"], href: "#hollow-tide", facts: {}, isGone: true, menu: { id: "example-card-gone-more", label: "Hollow Tide", items: [{ ...action("remove"), action: "#game-card" }] } }) },
22469
+ { label: "Why it was chosen: the head of its More (For you)", markup: cardSample({ title: "Kestrel", picture: STAND_IN_COVER_PICTURES["kestrel"], href: "#kestrel", facts: { playerCount: 1730, reasonText: "Because you played Ashen Crown" }, menu: { id: "example-card-reason-more", label: "Kestrel", items: [{ ...action("details"), href: "#kestrel" }] } }) },
22470
+ { label: "With its More: Remove, in a menu", markup: cardSample({ title: "Verdant", picture: STAND_IN_COVER_PICTURES["verdant"], href: "#verdant", facts: { playerCount: 96 }, menu: { id: "example-card-more", label: "Verdant", items: [{ ...action("remove"), action: "#game-card" }] } }) },
22401
22471
  { label: "Small: the art alone, in a row that says the rest (a search's games)", markup: row({ widths: "fit", items: [{ kind: "block", markup: smallGameCard({ imageUrl: "/design/covers/kestrel.webp", placeholderDataUrl: STAND_IN_COVER_PICTURES["kestrel"].placeholderDataUrl }) }, { kind: "block", markup: smallGameCard({ imageUrl: null }) }] }) }
22402
22472
  ]
22403
22473
  });
@@ -23346,7 +23416,7 @@ function header(options) {
23346
23416
  const tabs = options.ownTabs ?? [
23347
23417
  { ...tab(action("home").label, "/", options.current === "home"), icon: action("home").icon },
23348
23418
  { ...tab(action("browse").label, "/games", options.current === "browse"), icon: action("browse").icon },
23349
- ...account && options.yourGamesHref ? [{ ...tab(action("yourGames").label, options.yourGamesHref, options.current === "your-games"), icon: action("yourGames").icon }] : [],
23419
+ ...options.yourGamesHref ? [{ ...tab(action("yourGames").label, options.yourGamesHref, options.current === "your-games"), icon: action("yourGames").icon }] : [],
23350
23420
  { ...tab(action("developer").label, account ? "/dashboard" : "/developers", options.current === "developer", true, isOpen), icon: action("developer").icon },
23351
23421
  { ...tab(action("forum").label, "/forum", options.current === "forum", true, isOpen), icon: action("forum").icon }
23352
23422
  ];
@@ -23442,8 +23512,12 @@ body > .top:not(:has(+ *)) > :not(.edge) { visibility: hidden; }
23442
23512
  .top.has-icon-tabs .nav { flex: 1 1 0; }
23443
23513
  ${tabIconsAlone(".top.has-icon-tabs .tab-switch")}
23444
23514
  ${signInIconAlone(".top.has-icon-tabs .end > [data-sign-in-narrows]")}
23445
- /* Last, Sign in is its icon too (a 320 px phone). Past that the tabs scroll in their Well, as any Switch does. */
23515
+ /* Then Sign in is its icon too (a 320 px phone). */
23446
23516
  ${signInIconAlone(".top.has-icon-sign-in .end > [data-sign-in-icon]")}
23517
+ /* Last, the tabs' icons draw in to an icon's width and a gap each side, so a developer's four tabs fit beside their picture on a 320 px phone,
23518
+ none cut at the well's edge. Past that the tabs scroll in their Well, as any Switch does. */
23519
+ .top.has-narrow-icon-tabs .tab-switch { --tab-room: var(--gap-control-stack); }
23520
+ .top.has-narrow-icon-tabs .tab-switch > :is(a, button) { min-width: calc(var(--size-icon) + 2 * var(--gap-control-stack)); }
23447
23521
  /* While it measures, what eases its width doesn't, so it reads what each step comes to. */
23448
23522
  .top.is-measuring .foldable { transition: none; }
23449
23523
  @media ${HEADER_SMALL_SCREEN_MEDIA} {
@@ -23498,8 +23572,8 @@ var INSTALL_SCRIPT = `/* install */(function () {
23498
23572
  })();
23499
23573
  `;
23500
23574
  var HEADER_FIT_SCRIPT = `/* header fit */(function () {
23501
- var railMedia = window.matchMedia(${JSON.stringify(HEADER_RAIL_MEDIA)}), LAST_STEP = 4;
23502
- function takeSteps(top, stepCount) { top.classList.toggle("has-search-button", stepCount > 0); top.classList.toggle("has-tight-tabs", stepCount > 1); top.classList.toggle("has-icon-tabs", stepCount > 2); top.classList.toggle("has-icon-sign-in", stepCount > 3); }
23575
+ var railMedia = window.matchMedia(${JSON.stringify(HEADER_RAIL_MEDIA)}), LAST_STEP = 5;
23576
+ function takeSteps(top, stepCount) { top.classList.toggle("has-search-button", stepCount > 0); top.classList.toggle("has-tight-tabs", stepCount > 1); top.classList.toggle("has-icon-tabs", stepCount > 2); top.classList.toggle("has-icon-sign-in", stepCount > 3); top.classList.toggle("has-narrow-icon-tabs", stepCount > 4); }
23503
23577
  // The tabs' own width: from the tabs themselves, as the slab gliding from the last page's tab can reach past them for a moment, and that's no room they need.
23504
23578
  function tabsWidth(tabs) {
23505
23579
  var endPx = 0;
@@ -23714,13 +23788,15 @@ var RAIL_SCRIPT = `/* rail */(function () {
23714
23788
  });
23715
23789
  }
23716
23790
  var wiredBars = new WeakSet(), isPageRailWaiting = false;
23791
+ // The page has begun after its header: what the header waits for to show whole (HEADER_FIT_SCRIPT), so the rail shows with it.
23792
+ function isPageArrived() { var top = document.querySelector("body > header.top"); return Boolean(top && top.nextElementSibling); }
23717
23793
  // Each rail is wired once: the page's, those of the boxes found at the start and those of boxes added later.
23718
23794
  function wireRails() {
23719
23795
  document.querySelectorAll("[data-rail]").forEach(function (bar) {
23720
23796
  if (wiredBars.has(bar)) return;
23721
23797
  // The page's rail comes first in its body: the browser's own scrollbar goes at once, so it never takes its room for a moment, and the
23722
- // rail is wired once the page is read, when the parts it marks and the header it starts below are there.
23723
- if (bar.getAttribute("data-rail") === "page" && document.readyState === "loading") { document.documentElement.classList.add("own-scroll"); if (!isPageRailWaiting) { isPageRailWaiting = true; window.zaismaWatch.whenRead(wireRails); } return; }
23798
+ // rail is wired once the header it starts below has the page after it, so it shows with the header; the parts it marks join it as they arrive.
23799
+ if (bar.getAttribute("data-rail") === "page" && document.readyState === "loading" && !isPageArrived()) { document.documentElement.classList.add("own-scroll"); if (!isPageRailWaiting) { isPageRailWaiting = true; window.zaismaWatch.arriving(function () { if (isPageArrived()) wireRails(); }); window.zaismaWatch.whenRead(wireRails); } return; }
23724
23800
  wiredBars.add(bar);
23725
23801
  var isPage = bar.getAttribute("data-rail") === "page", isSide = bar.getAttribute("data-rail") === "side", scroller = isPage ? null : bar.previousElementSibling;
23726
23802
  while (scroller && scroller.hasAttribute("data-rail")) scroller = scroller.previousElementSibling;
@@ -23764,7 +23840,7 @@ var RAIL_SCRIPT = `/* rail */(function () {
23764
23840
  var box = scroller.getBoundingClientRect(), r = part.getBoundingClientRect();
23765
23841
  return isSide ? r.left - box.left + scroller.scrollLeft : r.top - box.top + scroller.scrollTop;
23766
23842
  }
23767
- var marks = parts.map(function (part) {
23843
+ function markFor(part) {
23768
23844
  var mark = document.createElement("button"), name = document.createElement("span");
23769
23845
  mark.type = "button"; mark.className = "rail-mark"; mark.tabIndex = -1; name.className = "tag rail-name"; name.setAttribute("data-cut-line", "0"); name.appendChild(document.createElement("span")).textContent = part.getAttribute("data-rail-mark");
23770
23846
  mark.appendChild(name); bar.appendChild(mark);
@@ -23779,6 +23855,16 @@ var RAIL_SCRIPT = `/* rail */(function () {
23779
23855
  }
23780
23856
  mark.goToPart = go;
23781
23857
  return { part: part, mark: mark, name: name };
23858
+ }
23859
+ var marks = parts.map(markFor);
23860
+ // Wired while the page still arrives, the page's rail marks each part as it comes, with it.
23861
+ if (isPage && document.readyState === "loading") window.zaismaWatch.arriving(function () {
23862
+ var known = marks.map(function (m) { return m.part; });
23863
+ var more = Array.prototype.filter.call(document.querySelectorAll("[data-rail-mark]"), function (part) { return known.indexOf(part) < 0 && !part.closest("[data-rail-marks-own]"); });
23864
+ if (!more.length) return;
23865
+ if (!riding) { riding = document.createElement("span"); riding.className = "tag rail-name rail-riding"; riding.setAttribute("data-cut-line", "0"); riding.appendChild(document.createElement("span")); bar.appendChild(riding); }
23866
+ more.forEach(function (part) { marks.push(markFor(part)); });
23867
+ layOutSoon(rail);
23782
23868
  });
23783
23869
  // --label-shift moves a name from its mark.
23784
23870
  function spread(track) {
@@ -24118,6 +24204,11 @@ var SCROLL_FADE_SCRIPT = `/* scroll fades */(function () {
24118
24204
  var queued = false;
24119
24205
  box.addEventListener("scroll", function () { if (queued) return; queued = true; requestAnimationFrame(function () { queued = false; sync(box); }); }, { passive: true });
24120
24206
  window.zaismaWatch.size(box, function () { sync(box); }, inOnePass);
24207
+ // What's in it can change length while the box keeps its own (a menu stepping into a group and back out, the step it left hidden): it
24208
+ // syncs then too, so a fade shows only while there's really more to scroll to.
24209
+ function watchParts(parts) { Array.prototype.forEach.call(parts, function (part) { if (part.nodeType === 1) window.zaismaWatch.size(part, function () { sync(box); }, inOnePass); }); }
24210
+ watchParts(box.children);
24211
+ new MutationObserver(function (changes) { changes.forEach(function (change) { watchParts(change.addedNodes); }); }).observe(box, { childList: true });
24121
24212
  });
24122
24213
  syncAll(found);
24123
24214
  }
@@ -24201,6 +24292,8 @@ var SCROLL_FADE_SCRIPT = `/* scroll fades */(function () {
24201
24292
  window.zaismaWatch.size(row, ends); if (row.firstElementChild) window.zaismaWatch.size(row.firstElementChild, ends);
24202
24293
  // Words that narrow once their font arrives can leave a row that ran past its box fitting it again, its own size unchanged.
24203
24294
  window.zaismaWatch.fontArrived(ends);
24295
+ // What's in it can stop running past it with no size changing (a Switch no longer past its room): it asks for its ends again then.
24296
+ row.fadeEndsAgain = ends;
24204
24297
  ends();
24205
24298
  // Its fades show at once where the page starts, and only ease in and out from the next frame on, so nothing grows in after the first paint.
24206
24299
  requestAnimationFrame(function () { requestAnimationFrame(function () { row.isSideFadeEased = true; }); });
@@ -24355,6 +24448,9 @@ component({
24355
24448
  opens the nearest mark's name on a small glass label to its left; dragging, the name of the part the thumb is in rides beside it. */
24356
24449
  /* Its click area is far bigger than the etch: 24px tall and reaching in over the page, so a mark is easy to hit. */
24357
24450
  .rail-mark { position: absolute; left: -12px; width: 28px; height: 24px; margin-top: -12px; padding: 0; border: 0; cursor: pointer; background: none; }
24451
+ /* A mark added as its part arrives (the page's rail, wired with the header) fades in with it, never popping onto a rail already shown. */
24452
+ .rail-mark { transition: opacity var(--motion-arrive); }
24453
+ @starting-style { .rail.is-on .rail-mark { opacity: 0; } }
24358
24454
  .rail-mark::before { content: ""; position: absolute; left: 17px; right: 5px; top: 11.5px; height: 1px; }
24359
24455
  .rail-mark[hidden] { display: none; }
24360
24456
  /* While the thumb is dragged, the marks don't answer the pointer: only the part the thumb is in is named and lit. */
@@ -24433,8 +24529,8 @@ function gameRow(options) {
24433
24529
  const titleId = `${options.id}-title`;
24434
24530
  const title = html`<h2 class="game-row-title" id="${titleId}">${options.title}</h2>`;
24435
24531
  const isEmpty = options.items.length === 0 && options.emptyText !== void 0;
24436
- const seeAll = options.seeAll ? tertiaryButton("See all", { href: options.seeAll.href, isSmall: true }) : void 0;
24437
- const shown = options.items.slice(0, MAXIMUM_GAME_ROW_CARD_COUNT);
24532
+ const seeAll = options.seeAll ? tertiaryButton(options.seeAll.words ?? "See all", { href: options.seeAll.href, isSmall: true }) : void 0;
24533
+ const shown = options.inLines && !options.seeAll ? options.items : options.items.slice(0, MAXIMUM_GAME_ROW_CARD_COUNT);
24438
24534
  const pictures = options.seeAll?.coverPictures ?? [];
24439
24535
  const seeAllCard = options.seeAll && options.seeAll.gameCount > shown.length && shown.length ? gameCard({ title: "See all", picture: null, href: options.seeAll.href, facts: {}, seeAll: { gameCount: options.seeAll.gameCount, coverPictures: [...pictures.slice(shown.length), ...pictures.slice(0, shown.length)] } }) : void 0;
24440
24536
  const items = seeAllCard ? [...shown, { kind: "block", markup: seeAllCard }] : shown;
@@ -24448,7 +24544,7 @@ function gameRow(options) {
24448
24544
  items: [{ kind: "words", markup: title }, { kind: "block", markup: row({ widths: "lead-fills", items: [{ kind: "control", markup: tabSwitch({ label: "Sort", switchSize: "small", tabs: options.sortTabs }) }] }) }]
24449
24545
  })
24450
24546
  } : seeAll ? { kind: "block", markup: row({ widths: "lead-fills", items: [{ kind: "words", markup: title }, { kind: "control", markup: seeAll }] }) } : { kind: "block", markup: row({ widths: "lead-fills", items: [{ kind: "words", markup: title }] }) },
24451
- isEmpty ? { kind: "block", markup: stateNote({ stateKind: "empty", text: options.emptyText }) } : options.allInView ? { kind: "block", markup: gameGrid({ isAllOnOneLine: true, isAtLeastTwoAcross: true, isLeadWideAtTwoAcross: options.allInView.isLeadWide, whenEmpty: stateNote({ stateKind: "empty", text: options.emptyText ?? "" }), items: shown }) } : { kind: "block", markup: carving({ kind: "game-row-well", body: track({ whenEmpty: stateNote({ stateKind: "empty", text: options.emptyText ?? "" }), id: options.trackId, itemSize: "cover", items }) }) }
24547
+ isEmpty ? { kind: "block", markup: stateNote({ stateKind: "empty", text: options.emptyText }) } : options.inLines ? { kind: "block", markup: gameGrid({ id: options.trackId, label: options.title, isAtLeastTwoAcross: true, hasLeadCell: options.inLines.hasLeadCell, whenEmpty: stateNote({ stateKind: "empty", text: options.emptyText ?? "" }), items }) } : options.allInView ? { kind: "block", markup: gameGrid({ isAllOnOneLine: true, isAtLeastTwoAcross: true, isLeadWideAtTwoAcross: options.allInView.isLeadWide, whenEmpty: stateNote({ stateKind: "empty", text: options.emptyText ?? "" }), items: shown }) } : { kind: "block", markup: carving({ kind: "game-row-well", body: track({ whenEmpty: stateNote({ stateKind: "empty", text: options.emptyText ?? "" }), id: options.trackId, itemSize: "cover", items }) }) }
24452
24548
  ]
24453
24549
  })}</section>`) });
24454
24550
  }
@@ -24493,6 +24589,8 @@ component({
24493
24589
  render: gameRow,
24494
24590
  examples: [
24495
24591
  { label: "Popular, with See all for the whole list", isWide: true, markup: gameRow({ id: "example-shelf-popular", trackId: "example-shelf-popular-track", title: "Popular", seeAll: { href: "#shelf", gameCount: 48, coverPictures: Object.values(STAND_IN_COVER_PICTURES) }, items: STAND_IN_COVER_ITEMS }) },
24592
+ { label: "In lines, its first card the lead (Your games' Favorites)", isWide: true, markup: gameRow({ id: "example-row-favorites", trackId: "example-row-favorites-grid", title: "Favorites", inLines: { hasLeadCell: true }, items: STAND_IN_COVER_ITEMS }) },
24593
+ { label: "In lines, with its own words for the whole list (Recently played)", isWide: true, markup: gameRow({ id: "example-row-recent", trackId: "example-row-recent-grid", title: "Recently played", inLines: { hasLeadCell: false }, seeAll: { href: "#shelf", gameCount: 3, coverPictures: [], words: "All you've played" }, items: STAND_IN_COVER_ITEMS.slice(0, 3) }) },
24496
24594
  {
24497
24595
  label: "Continue playing, with its sort",
24498
24596
  isWide: true,
@@ -26593,7 +26691,9 @@ component({
26593
26691
  { label: "Covers", isWide: true, markup: glassPane({ paneWidth: "full", body: grid({ whenEmpty: noGames, itemSize: "cover", items: covers(["ashen-crown", "neon-drift", "hollow-tide", "verdant", "iron-vigil", "glasswing"]) }) }) },
26594
26692
  { label: "Where there's little room: one across, the cover and its long title whole", markup: glassPane({ paneWidth: "fit", body: grid({ whenEmpty: noGames, itemSize: "cover", items: [...covers(["ashen-crown", "neon-drift"]), block(gameCard({ title: "The Long and Winding Chronicles of the Ashen Crown", picture: STAND_IN_COVER_PICTURES["hollow-tide"] ?? null, href: "#grid", facts: { playerCount: 1204 } })), ...covers(["verdant"])] }) }) },
26595
26693
  { label: "Six covers on one line, then three, two and one across, as the room runs out", isWide: true, markup: glassPane({ paneWidth: "full", body: grid({ whenEmpty: noGames, itemSize: "cover", isAllOnOneLine: true, items: covers(["ashen-crown", "neon-drift", "hollow-tide", "verdant", "iron-vigil", "glasswing"]) }) }) },
26596
- { label: "On one line, stopping at two across however small the covers get", markup: glassPane({ paneWidth: "fit", body: grid({ whenEmpty: noGames, itemSize: "cover", isAllOnOneLine: true, isAtLeastTwoAcross: true, items: covers(["ashen-crown", "neon-drift", "hollow-tide", "verdant"]) }) }) },
26694
+ { label: "A lead cell: the first cover twice the rest, then the whole line where two fit", isWide: true, markup: glassPane({ paneWidth: "full", body: grid({ whenEmpty: noGames, itemSize: "cover", hasLeadCell: true, items: covers(["ashen-crown", "neon-drift", "hollow-tide", "verdant", "iron-vigil", "glasswing", "frostline", "kestrel"]) }) }) },
26695
+ { label: "Two to a line at the least, however narrow (a library on a phone)", isWide: true, markup: glassPane({ paneWidth: "full", body: grid({ whenEmpty: noGames, itemSize: "cover", isAtLeastTwoAcross: true, items: covers(["ashen-crown", "neon-drift", "hollow-tide", "verdant"]) }) }) },
26696
+ { label: "On one line, stopping at two across however small the covers get", isWide: true, markup: glassPane({ paneWidth: "full", body: grid({ whenEmpty: noGames, itemSize: "cover", isAllOnOneLine: true, isAtLeastTwoAcross: true, items: covers(["ashen-crown", "neon-drift", "hollow-tide", "verdant"]) }) }) },
26597
26697
  { label: "One cover alone stays a cover's size", isWide: true, markup: glassPane({ paneWidth: "full", body: grid({ whenEmpty: noGames, itemSize: "cover", items: covers(["ashen-crown"]) }) }) },
26598
26698
  { label: "With none: a State note in their place, with what starts it", markup: glassPane({ paneWidth: "fit", body: grid({ whenEmpty: noGames, itemSize: "cover", items: [] }) }) },
26599
26699
  { label: "Cards", isWide: true, markup: glassPane({ paneWidth: "full", body: grid({ whenEmpty: noGames, itemSize: "card", items: ["Ashen Crown", "Neon Drift", "Hollow Tide"].map((title) => block(glassPane({ paneWidth: "full", body: stack({ items: [words2(html`<h2>${title}</h2>`), words2(html`<p>Live · version 14</p>`), { kind: "control", markup: secondaryButton("Open", { type: "button", isFullWidth: true }) }] }) }))) }) }) }
@@ -27028,7 +27128,14 @@ var LIVE_WORLD_SCRIPT = pageScript("live-world", String.raw`(function () {
27028
27128
  if (window.IntersectionObserver) new IntersectionObserver(function (entries) { isInView = entries[entries.length - 1].isIntersecting; }).observe(stage);
27029
27129
  requestAnimationFrame(tick);
27030
27130
  }
27031
- function showCount(line, count) { if (!line) return; var isShown = count >= NUMBER_FROM; line.hidden = !isShown; if (isShown) line.textContent = count.toLocaleString("en-US") + " people playing right now."; }
27131
+ function showCount(line, count) {
27132
+ if (!line) return;
27133
+ var isShown = count >= NUMBER_FROM, wasHidden = line.hidden;
27134
+ line.hidden = !isShown;
27135
+ if (isShown) line.textContent = count.toLocaleString("en-US") + " people playing right now.";
27136
+ // It arrives once the page has asked, whatever has loaded by then: it fades in by itself, never popping onto the world.
27137
+ if (isShown && wasHidden && line.animate && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) line.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300, easing: "ease-out" });
27138
+ }
27032
27139
  function start() {
27033
27140
  Array.prototype.forEach.call(document.querySelectorAll(".world-stage"), birds);
27034
27141
  var line = document.querySelector(".world-page .world-count"); if (!line) return;
@@ -27686,6 +27793,19 @@ var STRESS_ACCOUNTS = [
27686
27793
  { account: "Empty_Handed", nameEnding: "empty" },
27687
27794
  { account: "Many_Things", nameEnding: "full" }
27688
27795
  ];
27796
+ var OPEN_GALLERY_PLACES_SHEET = `(async () => {
27797
+ const until = async (find) => { for (const endMs = Date.now() + 60000; Date.now() < endMs; await new Promise((done) => setTimeout(done, 100))) { const found = find(); if (found) return found; } return null; };
27798
+ const places = await until(() => document.getElementById("gallery-places") && document.getElementById("gallery-places-sheet") ? document.getElementById("gallery-places") : null);
27799
+ if (!places) throw new Error("The gallery's places and their sheet never came.");
27800
+ const isSheet = getComputedStyle(places).getPropertyValue("--sidebar-is-sheet").trim() === "1";
27801
+ const button = [...document.querySelectorAll('[data-sidebar-button][aria-controls^="gallery-places"]')].find((each) => each.getClientRects().length > 0);
27802
+ if (isSheet && !button) throw new Error("No Groups button in view.");
27803
+ if (isSheet) button.click(); else document.getElementById("gallery-places-sheet").showModal();
27804
+ const sheet = await until(() => { const found = document.getElementById("gallery-places-sheet"); return found && found.open ? found : null; });
27805
+ if (!sheet) throw new Error("The Groups button didn't open the places sheet.");
27806
+ await new Promise((done) => setTimeout(done, 400));
27807
+ return sheet.open;
27808
+ })()`;
27689
27809
  var OPEN_PLAYERS_SHEET = `(async () => { document.querySelector('[aria-controls="players"]').click(); await new Promise((done) => setTimeout(done, 600)); return true; })()`;
27690
27810
  var SHOW_PLAYING_CARDS = `(async () => {
27691
27811
  // Placed again on each screen, since the check switches screens in place without loading the page again.
@@ -27734,6 +27854,8 @@ var CHECKED_PAGE_LIST = [
27734
27854
  { name: "Game page, rooms tab", area: "Playing", path: "/g/cave-crew#rooms", shownStateName: "Game page", mainActionShows: "nowhere" },
27735
27855
  // The longest title and description a game can have, and every name on its page at its longest.
27736
27856
  { name: "Game page, long names", area: "Playing", path: "/g/wandering-lighthouse-keeper", account: "Longest_Names_Here", shownStateName: "Game page, no rooms", mainActionShows: "everywhere" },
27857
+ // A game with no pictures: its name and Play in a pane that fits them, not the page's width.
27858
+ { name: "Game page, no art", area: "Playing", path: "/g/chat-test", shownStateName: "Game page", mainActionShows: "everywhere" },
27737
27859
  { name: "Tester link", area: "Playing", path: "/t/7e57ed00dcafe0a1b2c3", mainActionShows: "everywhere" },
27738
27860
  { name: "Playing a game, the players sheet", area: "Playing", path: "/g/cave-crew?play", mainActionShows: "nowhere", setUp: OPEN_PLAYERS_SHEET, stateBeforeSetUp: "Game page" },
27739
27861
  { name: "Playing a game, asked to sign in", area: "Playing", path: "/g/tiny-farm?play", mainActionShows: "nowhere", setUp: SHOW_PLAYING_CARDS, stateBeforeSetUp: "Game page, no rooms" },
@@ -27749,6 +27871,16 @@ var CHECKED_PAGE_LIST = [
27749
27871
  { name: "Games", area: "Playing", path: "/games", mainActionShows: "nowhere", isCoverAboveFold: true },
27750
27872
  { name: "Games, signed in", area: "Playing", path: "/games", account: "Moss_Runner", mainActionShows: "nowhere", isCoverAboveFold: true },
27751
27873
  ...STRESS_ACCOUNTS.map(({ account, nameEnding }) => ({ name: `Games, ${nameEnding}`, area: "Playing", path: "/games", account, shownStateName: "Games, signed in", mainActionShows: "nowhere", isCoverAboveFold: true })),
27874
+ // Your games: a signed-in player's favorites, history and For you; a guest's from this device (none here, so its empty state); empty.
27875
+ { name: "Your games, signed in", area: "Playing", path: "/your-games", account: "Moss_Runner", mainActionShows: "nowhere", isCoverAboveFold: true },
27876
+ { name: "Your games, long names", area: "Playing", path: "/your-games", account: "Longest_Names_Here", shownStateName: "Your games, signed in", mainActionShows: "nowhere", isCoverAboveFold: true },
27877
+ { name: "Your games, full", area: "Playing", path: "/your-games", account: "Many_Things", shownStateName: "Your games, signed in", mainActionShows: "nowhere", isCoverAboveFold: true },
27878
+ { name: "Your games, empty", area: "Playing", path: "/your-games", account: "Empty_Handed", shownStateName: "Your games, signed in", mainActionShows: "nowhere" },
27879
+ { name: "Your games, a guest", area: "Playing", path: "/your-games", mainActionShows: "nowhere" },
27880
+ { name: "All you've played", area: "Playing", path: "/your-games/played", account: "Moss_Runner", mainActionShows: "nowhere", isCoverAboveFold: true },
27881
+ { name: "All you've played, long names", area: "Playing", path: "/your-games/played", account: "Longest_Names_Here", shownStateName: "All you've played", mainActionShows: "nowhere", isCoverAboveFold: true },
27882
+ { name: "All you've played, empty", area: "Playing", path: "/your-games/played", account: "Empty_Handed", shownStateName: "All you've played", mainActionShows: "nowhere" },
27883
+ { name: "All you've played, full", area: "Playing", path: "/your-games/played", account: "Many_Things", shownStateName: "All you've played", mainActionShows: "nowhere", isCoverAboveFold: true },
27752
27884
  { name: "Games, one genre", area: "Playing", path: "/games?genre=strategy", mainActionShows: "nowhere", isCoverAboveFold: true },
27753
27885
  { name: "Games, multiplayer", area: "Playing", path: "/games?players=multiplayer", mainActionShows: "nowhere", isCoverAboveFold: true },
27754
27886
  { name: "Games, a search", area: "Playing", path: "/games?search_text=farm", mainActionShows: "nowhere", isCoverAboveFold: true },
@@ -27793,7 +27925,7 @@ var CHECKED_PAGE_LIST = [
27793
27925
  { name: "Connect an app", area: "Signing in", path: "/mcp-start", isOnSignInSite: true, account: "Preview_Studio", mainActionShows: "everywhere" },
27794
27926
  { name: "Sign in with Zaisma", area: "Signing in", path: "/start", isOnSignInSite: true, account: "Moss_Runner", mainActionShows: "everywhere" },
27795
27927
  ...GALLERY_PLACES().map((place) => ({ name: galleryPageName(place), path: galleryPagePath(place.group, place.subgroup), ...GALLERY })),
27796
- { name: "Gallery: the sidebar over the page", path: "/design/inputs/fields", ...GALLERY, stateBeforeSetUp: "Gallery: inputs fields", setUp: `(async () => { const sheet = document.getElementById("gallery-places-sheet"); sheet.showModal(); await new Promise((done) => setTimeout(done, 400)); return sheet.open; })()` },
27928
+ { name: "Gallery: the sidebar over the page", path: "/design/inputs/fields", ...GALLERY, stateBeforeSetUp: "Gallery: inputs fields", setUp: OPEN_GALLERY_PLACES_SHEET },
27797
27929
  { name: "Screens", path: "/design/screens", ...GALLERY, screenNames: ["Laptop"] }
27798
27930
  ];
27799
27931
  var CHECKED_PAGES = CHECKED_PAGE_LIST;
@@ -28271,9 +28403,11 @@ var SHELL_STYLES = `
28271
28403
  block's gap, so the page starts a block's gap below it, and a link to a part of the page stops there. */
28272
28404
  :root { --header-gap: var(--gap-block-block); --header-room: calc(var(--pad-pane) + var(--header-height, 68px) + var(--header-gap)); scroll-padding-top: var(--header-room); }
28273
28405
  @media ${HEADER_SMALL_SCREEN_MEDIA} { :root { --header-room: calc(var(--pad-pane) + env(safe-area-inset-top, 0px) + var(--header-height, 68px) + var(--header-gap)); } }
28274
- /* The page's own color behind the backdrop; a game's background sets --backdrop-edge to its own color (BACKDROP_SCRIPT), so a strip a phone's browser bars uncover at an edge is that color. */
28275
- html { background: var(--backdrop-edge, var(--page)); }
28276
- body { position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: var(--type-reading); color: var(--ink); background: var(--backdrop-edge, var(--page));
28406
+ /* The page's own color behind the backdrop: Zaisma's own backdrop's base color, so the frames before the backdrop has painted (the page's top
28407
+ arriving before its body, the still being decoded) are the backdrop's color, never a beige or white flash. A game's background sets
28408
+ --backdrop-edge to its own color (BACKDROP_SCRIPT), so a strip a phone's browser bars uncover at an edge is that color. */
28409
+ html { background: var(--backdrop-edge, var(--backdrop-base)); }
28410
+ body { position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: var(--type-reading); color: var(--ink); background: var(--backdrop-edge, var(--backdrop-base));
28277
28411
  padding-top: var(--header-room); }
28278
28412
  body > main { position: relative; flex: 1 0 auto; width: 100%; }
28279
28413
  /* A rebuilt page's width is its shape's (PAGE_SHAPE_STYLES, layout.ts). The footer keeps a block's gap above it itself. A Steel page, until it's
@@ -28426,6 +28560,7 @@ function siteHeader(env2, options = {}) {
28426
28560
  isSearchOnComputerOnly: isDeveloperNav && !options.search,
28427
28561
  account: account ? { username: account.username } : null,
28428
28562
  isOnDeveloperPage: !options.isAdmin && (options.nav === "developer" || options.nav === "forum"),
28563
+ yourGamesHref: options.isAdmin ? void 0 : "/your-games",
28429
28564
  // The page has a runner of its own (Play, Save): Sign in is a secondary button, so only one runner is ever in view.
28430
28565
  hasPageRunner: options.hasPageRunner,
28431
28566
  sidebarButton: options.sidebarButton,
@@ -28671,11 +28806,9 @@ let played = [];
28671
28806
  try { played = JSON.parse(localStorage.getItem(PLAYED_KEY) || "[]").map((entry) => ({ slug: entry.slug, played_at_ms: entry.played_at_ms ?? entry.at, is_on_account: entry.is_on_account === true })).filter((entry) => typeof entry.slug === "string" && Number.isFinite(entry.played_at_ms)); } catch {}
28672
28807
  if (accountPlayed) {
28673
28808
  /* ---- What this device played that the account doesn't have, or played later, goes to the account once (is_on_account, once it's
28674
- taken), so the next visit shows it from its first paint. A full list keeps only what's newer than its oldest: anything older the
28675
- account would drop again. ---- */
28809
+ taken), so the next visit shows it from its first paint. The account keeps its whole history, so an older game goes too. ---- */
28676
28810
  const accountPlayedAtMs = new Map(accountPlayed.map((entry) => [entry.slug, entry.played_at_ms]));
28677
- const keptFromMs = accountPlayedAtMs.size >= ${KEPT_PLAYED_GAME_COUNT} ? Math.min(...accountPlayedAtMs.values()) : 0;
28678
- const sent = played.filter((entry) => !entry.is_on_account && entry.played_at_ms > Math.max(accountPlayedAtMs.get(entry.slug) || 0, keptFromMs)).sort((first, second) => second.played_at_ms - first.played_at_ms).slice(0, ${KEPT_PLAYED_GAME_COUNT});
28811
+ const sent = played.filter((entry) => !entry.is_on_account && entry.played_at_ms > (accountPlayedAtMs.get(entry.slug) || 0)).sort((first, second) => second.played_at_ms - first.played_at_ms).slice(0, ${KEPT_PLAYED_GAME_COUNT});
28679
28812
  if (!sent.length) return;
28680
28813
  fetch("/api/me/played", { method: "POST", keepalive: true, headers: { "content-type": "application/json" }, body: JSON.stringify({ played: sent.map((entry) => ({ slug: entry.slug, played_at_ms: entry.played_at_ms })) }) }).then((response) => {
28681
28814
  if (!response.ok) return;
@@ -30448,6 +30581,7 @@ var TOP_UP_REFUNDED = object({
30448
30581
  var STATS = object({
30449
30582
  period_duration_days: countOf(),
30450
30583
  play_stats: PLAY_STATS,
30584
+ favorite_count: countOf("Accounts with the game in their favorites now (Your games). Never who."),
30451
30585
  performance: nullable(PLAYER_PERFORMANCE),
30452
30586
  multiplayer_days: list(
30453
30587
  object({
@@ -53389,7 +53523,8 @@ var roomCodeItems = () => [
53389
53523
  { kind: "control", markup: visibilityButton({ show: "Show the room code", hide: "Hide the room code" }, { id: "room-eye", type: "button", isContentHidden: false, isHidden: true }) },
53390
53524
  { kind: "words", id: "room-closed", isHidden: true, markup: html`<p>This room doesn't take new players.</p>` }
53391
53525
  ] }) },
53392
- { kind: "block", markup: row({ widths: "fit", label: "Join a room", items: [
53526
+ // The field takes the row's room and Join its own, so they meet slanted toward each other and reach the sheet's edge, as This room's code does above.
53527
+ { kind: "block", markup: row({ widths: "lead-fills", label: "Join a room", items: [
53393
53528
  { kind: "control", markup: cutField({ id: "bar-join-code", name: "room", label: "Join a room by its code", type: "text", icon: "hash", placeholder: "ABC234", isShort: true, autocomplete: "off", ...ROOM_CODE_TYPING }) },
53394
53529
  { kind: "control", markup: secondaryButton(action("join"), { id: "room-join", type: "submit" }) }
53395
53530
  ] }) }
@@ -55078,17 +55213,19 @@ function gamePageResponse(env2, view) {
55078
55213
  const demoSlug = isForSale ? view.demoGameSlug : null;
55079
55214
  const otherGameLink = demoSlug ? secondaryButton("Try the demo", { href: `/g/${demoSlug}?play`, isBig: true, isFullWidth: true }) : view.fullGameSlug ? secondaryButton("Full game", { href: `/g/${view.fullGameSlug}?buy`, isBig: true, isFullWidth: true }) : null;
55080
55215
  const smallActions = [
55216
+ // The heart, for Your games' Favorites: a guest is asked to make an account, and favorites it with a press once back.
55217
+ ...view.tester || isClosed ? [] : [{ kind: "control", markup: view.viewer.account ? toggleButton(action("favorite", view.isFavorite ? "Remove from favorites" : "Favorite"), { id: "favorite", type: "button", isLabelHidden: true, isPressed: Boolean(view.isFavorite) }) : toggleButton(action("favorite"), { href: `/join?next=${encodeURIComponent(`/g/${game.slug}`)}`, isLabelHidden: true, isPressed: false }) }],
55081
55218
  { kind: "control", markup: secondaryButton(action("share"), { id: "share-page", type: "button", isLabelHidden: true, isBig: true, controls: "share-dialog" }) },
55082
55219
  { kind: "control", markup: secondaryButton(action("report"), { href: reportHref, isLabelHidden: true, isBig: true, dataAttributes: { report: "" } }) }
55083
55220
  ];
55084
- const shareAndReport = { kind: "block", markup: row({ widths: "fit", alignment: "end", label: "Share and Report", items: smallActions }) };
55221
+ const shareAndReport = { kind: "block", markup: row({ widths: "fit", alignment: "end", label: "Favorite, Share and Report", items: smallActions }) };
55085
55222
  const paneActions = stack({
55086
55223
  items: [
55087
55224
  // Play and Share and Report share one line on every screen. With a paid game's demo (or a demo's full game) under it, Share and Report
55088
55225
  // go beside that instead, so Buy, with its price, has its line.
55089
55226
  {
55090
55227
  kind: "block",
55091
- markup: !mainAction.length ? row({ widths: "fit", alignment: "end", label: "Share and Report", items: smallActions }) : otherGameLink ? stack({ items: [...mainAction, { kind: "block", markup: row({ widths: "lead-fills", label: `${demoSlug ? "Try the demo" : "Full game"}, Share and Report`, items: [{ kind: "control", markup: otherGameLink }, shareAndReport] }) }] }) : row({ widths: "lead-fills", label: "Play, Share and Report", items: [...mainAction, shareAndReport] })
55228
+ markup: !mainAction.length ? row({ widths: "fit", alignment: "end", label: "Favorite, Share and Report", items: smallActions }) : otherGameLink ? stack({ items: [...mainAction, { kind: "block", markup: row({ widths: "lead-fills", label: `${demoSlug ? "Try the demo" : "Full game"}, Favorite, Share and Report`, items: [{ kind: "control", markup: otherGameLink }, shareAndReport] }) }] }) : row({ widths: "lead-fills", label: "Play, Favorite, Share and Report", items: [...mainAction, shareAndReport] })
55092
55229
  }
55093
55230
  ]
55094
55231
  });
@@ -55102,6 +55239,7 @@ function gamePageResponse(env2, view) {
55102
55239
  purchaseWords(purchaseLabel)
55103
55240
  ].join(" \xB7 ").replace(/-/g, "\u2011");
55104
55241
  const lastPlayedAtMs = tester ? null : view.lastPlayedAtMs;
55242
+ const isLastPlayedHeld = !tester && lastPlayedAtMs === null && view.isPlayedOnDevice;
55105
55243
  const latestUpdateAtMs = view.updates[0]?.first_published_at_ms ?? null;
55106
55244
  const newSinceLink = textLink("What's new", "#updates");
55107
55245
  const titleBlock = stack({
@@ -55111,8 +55249,8 @@ function gamePageResponse(env2, view) {
55111
55249
  // Not on a phone, as the concept's phone has it: the name, who made it and Play keep its first screen.
55112
55250
  ...gameLine && view.deviceKind !== "phone" ? [{ kind: "words", markup: html`<p>${gameLine}</p>` }] : [],
55113
55251
  // The live line: hidden until it says something (people playing, or friends the page's script finds).
55114
- { kind: "block", id: "live-line", isHidden: playingNowPlayerCount < MINIMUM_PLAYING_NOW_PLAYER_COUNT && lastPlayedAtMs === null, markup: keyDetails({ details: [
55115
- ...tester ? [] : [{ id: "last-played", isHidden: lastPlayedAtMs === null, label: "Last played", detailValue: lastPlayedAtMs === null ? "" : ago(Date.now() - lastPlayedAtMs), under: html`<span id="new-since"${lastPlayedAtMs !== null && latestUpdateAtMs !== null && latestUpdateAtMs > lastPlayedAtMs ? "" : raw(" hidden")}>${newSinceLink}</span>` }],
55252
+ { kind: "block", id: "live-line", isHidden: playingNowPlayerCount < MINIMUM_PLAYING_NOW_PLAYER_COUNT && lastPlayedAtMs === null && !isLastPlayedHeld, markup: keyDetails({ details: [
55253
+ ...tester ? [] : [{ id: "last-played", isHidden: lastPlayedAtMs === null && !isLastPlayedHeld, isHeld: isLastPlayedHeld, label: "Last played", detailValue: lastPlayedAtMs === null ? isLastPlayedHeld ? "14 days ago" : "" : ago(Date.now() - lastPlayedAtMs), under: html`<span id="new-since"${lastPlayedAtMs !== null && latestUpdateAtMs !== null && latestUpdateAtMs > lastPlayedAtMs ? "" : raw(" hidden")}>${newSinceLink}</span>` }],
55116
55254
  { id: "playing-now", isHidden: playingNowPlayerCount < MINIMUM_PLAYING_NOW_PLAYER_COUNT, label: "Playing now", detailValue: playingNowPlayerCount.toLocaleString("en-US") },
55117
55255
  ...tester || !canSignIn || isClosed ? [] : [{ id: "friends-here", isHidden: true, label: "Friends playing", detailValue: "" }]
55118
55256
  ] }) },
@@ -55128,7 +55266,7 @@ function gamePageResponse(env2, view) {
55128
55266
  ];
55129
55267
  const media = shots.length ? gameMedia({ id: "screenshots", gameTitle: game.title, arrangement: "featured", whenEmpty: NO_EMPTY_NOTE, items: shots.map((shot) => ({ mediaKind: "picture", picture: shot })) }) : null;
55130
55268
  const gamePane = glassPane({
55131
- paneWidth: "full",
55269
+ paneWidth: media ? "full" : "fit",
55132
55270
  label: game.title,
55133
55271
  body: stack({ items: [{ kind: "block", markup: media ? columns({ split: "wide-first", isSideBySideWhenShort: true, columns: [media, titleBlock] }) : titleBlock }, ...paneFoot] })
55134
55272
  });
@@ -55366,6 +55504,33 @@ function warmUp() {
55366
55504
  if (document.readyState === "complete") setTimeout(warmUp, 1000);
55367
55505
  else addEventListener("load", () => setTimeout(warmUp, 1000));
55368
55506
  document.getElementById("share-page").onclick = (e) => shareFrom(e.currentTarget);
55507
+ // The heart: favorite or not, flipped at once and kept by the server. Only a press favorites a game, never an address.
55508
+ const heart = document.getElementById("favorite");
55509
+ // One request at a time: quick presses each flip the heart at once, and the server is told only the last, once the one before has answered.
55510
+ let savedFavorite = heart ? heart.getAttribute("aria-pressed") === "true" : false;
55511
+ let isSending = false;
55512
+ function showFavorite(isFavorite) {
55513
+ heart.setAttribute("aria-pressed", String(isFavorite));
55514
+ heart.setAttribute("aria-label", isFavorite ? "Remove from favorites" : "Favorite");
55515
+ }
55516
+ function sendFavorite() {
55517
+ const wanted = heart.getAttribute("aria-pressed") === "true";
55518
+ if (isSending || wanted === savedFavorite) return;
55519
+ isSending = true;
55520
+ fetch("/api/me/favorites/" + gamePage.slug + (wanted ? "" : "/remove"), { method: "POST", headers: { Accept: "application/json" } })
55521
+ .then((response) => response.ok ? (savedFavorite = wanted) : response.json().then((answer) => {
55522
+ showFavorite(savedFavorite);
55523
+ if (answer && answer.error && answer.error.message_for_people) zaismaLayers.say({ text: answer.error.message_for_people, tone: "problem" });
55524
+ }))
55525
+ .catch(() => showFavorite(savedFavorite))
55526
+ .finally(() => { isSending = false; sendFavorite(); });
55527
+ }
55528
+ function setFavorite(isFavorite) {
55529
+ if (!heart) return;
55530
+ showFavorite(isFavorite);
55531
+ sendFavorite();
55532
+ }
55533
+ if (heart) heart.addEventListener("click", () => setFavorite(heart.getAttribute("aria-pressed") !== "true"));
55369
55534
  // Remember the game for Continue playing: on this device (and in PLAYED_COOKIE, so the home shows it from its first paint), and with the account when signed in.
55370
55535
  ${KEEP_PLAYED_COOKIE_SOURCE}
55371
55536
  function remember() {
@@ -55381,10 +55546,12 @@ function remember() {
55381
55546
  // the updates since: ago() in foundations.ts.
55382
55547
  (() => {
55383
55548
  const lastPlayed = document.getElementById("last-played");
55384
- if (!lastPlayed || !lastPlayed.hidden || /(^|; )(__Host-)?zaisma_in=1/.test(document.cookie)) return;
55549
+ const isHeld = lastPlayed?.classList.contains("is-held");
55550
+ if (!lastPlayed || (!lastPlayed.hidden && !isHeld) || /(^|; )(__Host-)?zaisma_in=1/.test(document.cookie)) return;
55385
55551
  let playedAtMs = 0;
55386
55552
  try { playedAtMs = Number((JSON.parse(localStorage.getItem("zaisma:played") || "[]").find((entry) => entry.slug === gamePage.slug) || {}).played_at_ms) || 0; } catch {}
55387
- if (!playedAtMs) return;
55553
+ lastPlayed.classList.remove("is-held");
55554
+ if (!playedAtMs) { lastPlayed.hidden = true; return; }
55388
55555
  const minuteCount = Math.max(1, Math.round((Date.now() - playedAtMs) / 60000)), dayCount = Math.round(minuteCount / 1440);
55389
55556
  lastPlayed.querySelector(".key-detail-value").textContent = minuteCount < 60 ? minuteCount + " min ago" : minuteCount < 1440 ? Math.round(minuteCount / 60) + " h ago" : dayCount === 1 ? "yesterday" : dayCount + " days ago";
55390
55557
  document.getElementById("new-since").hidden = !(gamePage.latest_update_at_ms > playedAtMs);
@@ -61059,7 +61226,8 @@ async function playerPage(input) {
61059
61226
  demoGameSlug: null,
61060
61227
  fullGameSlug: null,
61061
61228
  ownedPaidGameIds: /* @__PURE__ */ new Set(),
61062
- lastPlayedAtMs: null
61229
+ lastPlayedAtMs: null,
61230
+ isPlayedOnDevice: false
61063
61231
  }));
61064
61232
  }
61065
61233
  function friendsHereHtml(gameSlug, friends) {