@graview/guest 0.1.60 → 0.1.62
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.
- package/README.md +69 -4
- package/dist/audit/page.generated.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/dist/headless/describe.d.ts +16 -1
- package/dist/headless/describe.d.ts.map +1 -1
- package/dist/headless/describe.js +33 -4
- package/dist/headless/describe.js.map +1 -1
- package/dist/headless/draw.d.ts +6 -3
- package/dist/headless/draw.d.ts.map +1 -1
- package/dist/headless/draw.js +4 -2
- package/dist/headless/draw.js.map +1 -1
- package/dist/headless/index.d.ts +13 -1
- package/dist/headless/index.d.ts.map +1 -1
- package/dist/headless/index.js +9 -5
- package/dist/headless/index.js.map +1 -1
- package/dist/headless/judge.d.ts +7 -2
- package/dist/headless/judge.d.ts.map +1 -1
- package/dist/headless/judge.js +3 -3
- package/dist/headless/judge.js.map +1 -1
- package/dist/headless/press.d.ts +4 -2
- package/dist/headless/press.d.ts.map +1 -1
- package/dist/headless/press.js.map +1 -1
- package/dist/headless/runtime.generated.d.ts.map +1 -1
- package/dist/headless/runtime.generated.js +1 -1
- package/dist/headless/runtime.generated.js.map +1 -1
- package/dist/host/css.d.ts +2 -124
- package/dist/host/css.d.ts.map +1 -1
- package/dist/host/css.js +8 -987
- package/dist/host/css.js.map +1 -1
- package/dist/host/device-pace.d.ts +21 -0
- package/dist/host/device-pace.d.ts.map +1 -0
- package/dist/host/device-pace.js +52 -0
- package/dist/host/device-pace.js.map +1 -0
- package/dist/host/draw-budget.d.ts +2 -1
- package/dist/host/draw-budget.d.ts.map +1 -1
- package/dist/host/draw-budget.js +4 -2
- package/dist/host/draw-budget.js.map +1 -1
- package/dist/host/links-words.d.ts +9 -1
- package/dist/host/links-words.d.ts.map +1 -1
- package/dist/host/links-words.js.map +1 -1
- package/dist/host/links.d.ts +20 -5
- package/dist/host/links.d.ts.map +1 -1
- package/dist/host/links.js +55 -11
- package/dist/host/links.js.map +1 -1
- package/dist/host/media.d.ts +7 -0
- package/dist/host/media.d.ts.map +1 -1
- package/dist/host/media.js +61 -7
- package/dist/host/media.js.map +1 -1
- package/dist/host/open-draw.d.ts +21 -1
- package/dist/host/open-draw.d.ts.map +1 -1
- package/dist/host/open-draw.js +57 -3
- package/dist/host/open-draw.js.map +1 -1
- package/dist/host/pictures.d.ts.map +1 -1
- package/dist/host/pictures.js +2 -1
- package/dist/host/pictures.js.map +1 -1
- package/dist/host/session.d.ts.map +1 -1
- package/dist/host/session.js +3 -2
- package/dist/host/session.js.map +1 -1
- package/dist/host/theme.d.ts +7 -1
- package/dist/host/theme.d.ts.map +1 -1
- package/dist/host/theme.js.map +1 -1
- package/dist/host/view-runtime.generated.d.ts.map +1 -1
- package/dist/host/view-runtime.generated.js +1 -1
- package/dist/host/view-runtime.generated.js.map +1 -1
- package/dist/host/view.d.ts +30 -7
- package/dist/host/view.d.ts.map +1 -1
- package/dist/host/view.js +55 -9
- package/dist/host/view.js.map +1 -1
- package/dist/host/where.d.ts.map +1 -1
- package/dist/host/where.js +3 -0
- package/dist/host/where.js.map +1 -1
- package/dist/host/worker-react.d.ts.map +1 -1
- package/dist/host/worker-react.js +6 -5
- package/dist/host/worker-react.js.map +1 -1
- package/dist/host/worker-start.d.ts +7 -2
- package/dist/host/worker-start.d.ts.map +1 -1
- package/dist/host/worker-start.js +3 -1
- package/dist/host/worker-start.js.map +1 -1
- package/dist/host/worker.js +1 -1
- package/dist/host/worker.js.map +1 -1
- package/dist/open-kit.d.ts +1 -48
- package/dist/open-kit.d.ts.map +1 -1
- package/dist/open-kit.js +7 -120
- package/dist/open-kit.js.map +1 -1
- package/dist/protocol.d.ts +2 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/package.json +3 -3
package/dist/host/session.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRo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,IAAI,CAAC,CAAC;gBACnB,OAAO,MAAM,CAAC;YAChB,CAAC;YACD,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,MAAM,CAAC,KAAK,EAAE,MAAM;YAClB,IAAI,QAAQ;gBAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;YACrF,OAAO,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;QAC1C,CAAC;QACD,IAAI,KAAK;YACP,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO;YACL,QAAQ,GAAG,IAAI,CAAC;YAChB,GAAG,EAAE,CAAC;QACR,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/host/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BrandLogo } from "@graview/core";
|
|
1
|
+
import { type BrandLogo, type BrandViews } from "@graview/core";
|
|
2
2
|
import type { GuestTheme } from "../protocol.js";
|
|
3
3
|
/**
|
|
4
4
|
* The app's look as an element inherits it: its `--graview-*` tokens, and
|
|
@@ -17,6 +17,12 @@ export interface GuestBrand {
|
|
|
17
17
|
readonly name?: string;
|
|
18
18
|
/** An inline SVG string, a `data:` image, or an address on the page's own origin — or one for each scheme, the guest handed the one its scheme draws. */
|
|
19
19
|
readonly logo?: string | BrandLogo;
|
|
20
|
+
/**
|
|
21
|
+
* What every worker view inherits (Roadmap f-app-wide-view-theme): the
|
|
22
|
+
* app's stylesheet, drawn in the view's region before its own, and the
|
|
23
|
+
* fade between records. Never handed to the view: the host draws them.
|
|
24
|
+
*/
|
|
25
|
+
readonly views?: BrandViews;
|
|
20
26
|
}
|
|
21
27
|
/**
|
|
22
28
|
* The look and the brand together: the tokens read, then the brand's name
|
package/dist/host/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/host/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/host/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAyBjD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAQrD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAW5E;AAED,mHAAmH;AACnH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,yJAAyJ;IACzJ,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;CAC7B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,UAAU,EAAE,KAAK,EAAE,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,UAAU,CAOrI;AAED,gEAAgE;AAChE,MAAM,WAAW,SAAS;IACxB,uGAAuG;IACvG,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IAClD,+BAA+B;IAC/B,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,UAAU,EAAE,KAAK,EAAE,MAAM,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAqErH"}
|
package/dist/host/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/host/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/host/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmC,MAAM,eAAe,CAAC;AAG5E;;;;;;;;GAQG;AAEH,MAAM,MAAM,GAA0F;IACpG,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IAC9B,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IAC9B,CAAC,OAAO,EAAE,iBAAiB,CAAC;IAC5B,CAAC,KAAK,EAAE,eAAe,CAAC;IACxB,CAAC,UAAU,EAAE,qBAAqB,CAAC;IACnC,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAC1B,CAAC,UAAU,EAAE,qBAAqB,CAAC;IACnC,CAAC,aAAa,EAAE,wBAAwB,CAAC;IACzC,CAAC,UAAU,EAAE,qBAAqB,CAAC;IACnC,CAAC,QAAQ,EAAE,kBAAkB,CAAC;CAC/B,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,MAAe;IACvC,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,WAAY,CAAC;IACjD,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAC7F,MAAM,IAAI,GAAG,OAAO,KAAK,MAAM,IAAI,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,C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,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-runtime.generated.d.ts","sourceRoot":"","sources":["../../src/host/view-runtime.generated.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"view-runtime.generated.d.ts","sourceRoot":"","sources":["../../src/host/view-runtime.generated.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,EAAE,MAA2niE,CAAC"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* A worker view's runtime as one classic script (FR-96): the host puts it in
|
|
4
4
|
* front of a view's own source. Carries Remote DOM (MIT, Shopify Inc.).
|
|
5
5
|
*/
|
|
6
|
-
export const VIEW_RUNTIME = "\"use strict\";\n/*! @remote-dom/core and @remote-dom/polyfill — Copyright 2020-present, Shopify Inc. — MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest's worker runtime — Elastic License 2.0. */\n\"use strict\";(()=>{var Ae=globalThis,no=Ae.addEventListener,ro=Ae.removeEventListener,oo=Ae.postMessage,io=globalThis.queueMicrotask,mn=globalThis.performance,so=mn?mn.now.bind(mn):Date.now,_e={listen:t=>no.call(Ae,\"message\",t),unlisten:t=>ro.call(Ae,\"message\",t),post:t=>oo.call(Ae,t),microtask:t=>io.call(globalThis,t),now:()=>so()};var v=Symbol(\"name\"),me=Symbol(\"prefix\"),fe=Symbol(\"value\"),S=Symbol(\"ns\"),q=Symbol(\"owner\"),I=Symbol(\"owner_document\"),re=Symbol(\"attributes\"),M=Symbol(\"prev\"),p=Symbol(\"next\"),R=Symbol(\"child\"),Y=Symbol(\"parent\"),pe=Symbol(\"host\"),K=Symbol(\"data\"),Te=Symbol(\"listeners\"),fn=Symbol(\"isTrusted\"),ke=Symbol(\"path\"),Pe=Symbol(\"stop_immediate_propagation\"),Ce=Symbol(\"dispatching\"),se=Symbol(\"content\"),D=Symbol(\"hooks\"),ft=Symbol(\"extensions\"),we=Symbol(\"hooks_dispatch\"),U=Symbol(\"is_connected\"),Ie=Symbol(\"create_element\"),$n=0,X=1,Me=2,De=3,Le=8,xe=9,Kn=10,he=11,A=\"http://www.w3.org/1999/xhtml\",Z=\"http://www.w3.org/2000/svg\",Zn=\"http://www.w3.org/XML/1998/namespace\",$e=\"http://www.w3.org/2000/xmlns/\";function pt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function G(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function Qn(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function P(t,e){let n=globalThis.DOMException;if(typeof n==\"function\")return new n(t,e);let r=new Error(t);return r.name=e,r}var Jn=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,er=/[\\0\\t\\n\\f\\r />=]/u,ao=/[\\0\\t\\n\\f\\r />]/u;function ae(t){if(t==null)return null;let e=String(t);return e===\"\"?null:e}function tr(t){Jn.test(t)||hn(t)}function pn(t){(t===\"\"||er.test(t))&&hn(t)}function ht(t,e,n){let r=ae(t),o=String(e),i=o.indexOf(\":\"),s=i<0?null:o.slice(0,i),a=i<0?o:o.slice(i+1);if((s!=null&&(s===\"\"||ao.test(s))||(n===\"element\"?!Jn.test(a):a===\"\"||er.test(a)))&&hn(o),s!=null&&r==null)throw P(`A namespace is required for the prefix in \"${o}\"`,\"NamespaceError\");if(s===\"xml\"&&r!==Zn)throw P(\"The xml prefix requires the XML namespace\",\"NamespaceError\");if((o===\"xmlns\"||s===\"xmlns\")&&r!==$e)throw P(\"The xmlns name requires the XMLNS namespace\",\"NamespaceError\");if(r===$e&&o!==\"xmlns\"&&s!==\"xmlns\")throw P(\"The XMLNS namespace requires the xmlns name or prefix\",\"NamespaceError\");return{namespace:r,qualifiedName:o,prefix:s,localName:a}}function hn(t){throw P(`Invalid name: \"${t}\"`,\"InvalidCharacterError\")}var gt=0,yt=1,nr=2,gn=3,lo=typeof performance>\"u\"?Date.now:performance.now.bind(performance),B=class{static NONE=gt;static CAPTURING_PHASE=yt;static AT_TARGET=nr;static BUBBLING_PHASE=gn;timeStamp=lo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=gt;[ke]=[];[Pe]=!1;[Ce]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,fn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[fn]}composedPath(){return[...this[ke]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[Pe]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function yn(t,e,n){if(t.cancelBubble)return;let o=e[Te]?.get(t.type)?.[n===yt?\"capture\":\"bubble\"];if(o)for(let i of[...o]){if(!o.has(i)||i.signal?.aborted)continue;t.eventPhase=t.target===e?nr:n,t.currentTarget=e;let s=i.normalizedListener;try{typeof s==\"object\"?s.handleEvent(t):s.call(e,t)}catch(a){setTimeout(co,0,a)}if(t[Pe])break}}function co(t){throw t}var Ke=[],bt=new WeakMap;function Et(t,e){let n=bt.get(t);n?n.push(e):bt.set(t,[e]),Ke[Ke.length-1].push(t)}function V(t){let e=[];Ke.push(e);let n;try{n=t()}catch(r){Ke.pop();try{rr(e)}catch{}throw r}return Ke.pop(),rr(e),n}function rr(t){let e,n=!1;for(let r of t){let o=bt.get(r);if(o){for(;o.length>0;){let i=o.shift();try{i()}catch(s){n||(e=s,n=!0)}}bt.delete(r)}}if(n)throw e}var Nt=[],Ze=[],bn=!1;function ve(t){for(let e of t)Nt.push(e),e[1]&&Ze.push(e[1]);if(!bn){bn=!0;try{let e,n=!1;for(let r=0;r<Nt.length;r++){let[o,i]=Nt[r];i&&Ze.splice(Ze.indexOf(i),1);try{o()}catch(s){n||(e=s,n=!0)}}if(n)throw e}finally{Nt.length=0,Ze.length=0,bn=!1}}}function Qe(t){let e=t;for(;e;){if(Ze.includes(e))return!0;e=e[Y]??e[pe]}return!1}var Je=Symbol(\"listenerRegistrations\"),ge=class{[Te]=void 0;[Je]=void 0;[I]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r==\"object\"&&r.capture===!0,i=typeof r==\"object\"&&r.once===!0,s=typeof r==\"object\"?r.signal:void 0;if(s?.aborted)return;let a=En(o),c=this[Je];c||(c=new Map,this[Je]=c);let u=c.get(e);u||(u={},c.set(e,u));let m=u[a];if(m||(m=new Map,u[a]=m),m.has(n))return;let h=this,g={type:e,listener:n,capture:o,once:i,normalizedListener:n,signal:s};(i||s)&&(g.normalizedListener=function(...C){if(g.signal?.aborted){Tt(h,g);return}return g.once&&Tt(h,g),typeof g.listener==\"object\"?g.listener.handleEvent(...C):g.listener.call(this,...C)});let y=this[Te];y||(y=new Map,this[Te]=y);let O=y.get(e);O||(O={},y.set(e,O));let E=O[a];if(E||(E=new Set,O[a]=E),m.set(n,g),E.add(g),s){let N=()=>{Tt(h,g)};g.abortListener=N,s.addEventListener(\"abort\",N,{once:!0})}this[I]?.defaultView[we].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return uo.call(this,e,n,r)}dispatchEvent(e){if(e[Ce])throw P(\"Failed to execute 'dispatchEvent' on 'EventTarget': The event is already being dispatched.\",\"InvalidStateError\");e[Ce]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[ke]=n;for(let i=n.length;i--;)if(yn(e,n[i],yt),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let i=0;i<o.length;i++)if(yn(e,o[i],gn),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[Ce]=!1,e.cancelBubble=!1,e[Pe]=!1,e.eventPhase=gt,e.currentTarget=null,e[ke]=[]}}};function uo(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=En(!!r),i=this[Je]?.get(t)?.[o]?.get(e);i&&Tt(this,i)}function En(t){return t?\"capture\":\"bubble\"}function Tt(t,e){let n=En(e.capture),r=t[Je],o=r?.get(e.type);if(!o)return;let i=o[n];if(!i||i.get(e.listener)!==e)return;i.delete(e.listener),i.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener(\"abort\",e.abortListener);let s=t[Te],a=s?.get(e.type);if(!a)return;let c=a[n];c?.delete(e)&&(c.size===0&&delete a[n],!a.bubble&&!a.capture&&s?.delete(e.type),t[I]?.defaultView[we].removeEventListener?.(t,e.type,e.listener,e.capture))}var Q=class extends Array{item(e){return this[e]??null}};var tt=0,or=1,wn=2,xn=3,nt=4,ir=0,sr=1,vt=2,St=3,ar=4,Tn=5,lr=6,cr=7,wt=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function mo(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let i=t[o];if(r){i===\"\\\\\"?o++:i===r&&(r=null);continue}if(i==='\"'||i===\"'\")r=i;else if(i===\"(\")n++;else if(i===\")\"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function W(t){throw P(`Invalid or unsupported selector: \"${t}\"`,\"SyntaxError\")}function Ot(t,e){let n=typeof e==\"string\"?rt(e):[{combinator:nt,matchers:e}],r=null,o=t[R];return o&&n[0].matchers.length&&vn(o,n,i=>(r=i,!1)),r}function Rt(t,e){let n=typeof e==\"string\"?rt(e):[{combinator:nt,matchers:e}],r=new Q,o=t[R];return o&&n[0].matchers.length&&vn(o,n,i=>{r.push(i)}),r}function rt(t,e=!1,n=!1){let r={combinator:nt,matchers:[]},o=[r],i=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:(['\"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,s=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,\"\");s===\"\"&&W(t);let a=0,c;for(;c=i.exec(s);){c.index!==a&&W(t),c[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&W(t),c[1]===\">\"?r.combinator=or:c[1]===\"+\"?r.combinator=xn:c[1]===\"~\"?r.combinator=wn:r.combinator=tt,r={combinator:nt,matchers:[]},o.push(r));let u=c[8]?G(c[8]):c[2]||c[7];c[7]!=null&&!c[6]&&r.matchers.length>0&&W(t);let h,g=c[4]??c[5]??c[7];if(c[2]){wt.test(u)||W(t);let y=c[5],O=y?.[0];if(c[3]==null&&(O==='\"'||O===\"'\")){let E=c[0].lastIndexOf(y);g=s.slice(c.index+E+1),i.lastIndex=s.length}else y!=null&&!wt.test(y)&&W(t);h=ar}else c[6]?(wt.test(u)||W(t),h=c[6]===\"#\"?vt:St):c[8]?h=c[9]==null?Tn:lr:c[7]===\"*\"?h=ir:c[7]&&wt.test(c[7])?h=sr:W(t);c[9]?([g,i.lastIndex]=mo(s,i.lastIndex),u!==\"has\"&&u!==\"not\"&&W(t),u===\"has\"&&e&&W(t),rt(g,e||u===\"has\",u===\"has\")):h===Tn&&W(t),r.matchers.push({type:h,name:u,value:g}),a=i.lastIndex}return(a!==s.length||r.matchers.length===0)&&W(t),o}function fo(t,e){let n=rt(e);return n[0]?.matchers.length?et(t,n):!1}function po(t,e){let n=rt(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=tt,i={type:cr,name:\":scope\"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(i)):n.unshift({combinator:tt,matchers:[i]}),n.some(({matchers:c})=>c.length===0))return!1;let s=o===xn||o===wn?t[p]:t[R];if(!s)return!1;let a=!1;return vn(s,n,()=>(a=!0,!1),t),a}function vn(t,e,n,r){let o=[],i=t;for(;i;){if(F(i)){if(et(i,e,r)&&n(i)===!1)return!1;let s=i[R];if(s){let a=i[p];a&&o.push(a),i=s;continue}}i=i[p]??o.pop()??null}return!0}function et(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===nt){if(!xt(t,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(t,a,n)}let i=r===or||r===tt?Y:M,s=t[i];if(!s)return!1;if(r===tt||r===wn){for(;s;){if(F(s)&&xt(s,o,n)){let a=e.slice(0,-1);if(a.length===0||et(s,a,n))return!0}s=s[i]}return!1}else{if(r===xn&&!F(s)){for(;s&&!F(s);)s=s[i];if(!s)return!1}if(!F(s)||!xt(s,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(s,a,n)}}function Nn(t,e){return t.getAttributeNS(null,t.namespaceURI===A?G(e):e)}function xt(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let s of e)if(xt(t,s,n)===!1)return!1;return!0}let{type:r,name:o,value:i}=e;switch(r){case ir:return o===\"*\";case sr:return t.namespaceURI===A?t.localName===G(o):t.localName===o;case vt:return Nn(t,\"id\")===o;case St:let s=Nn(t,\"class\");return s?pt(s).includes(o):!1;case ar:let a=Nn(t,o);return i==null?a!=null:a===i;case cr:return t===n;case Tn:W(`:${o}`);case lr:switch(o){case\"has\":return po(t,i||\"\");case\"not\":return!fo(t,i||\"\");default:W(`:${o}(${i})`)}}return!1}function ho(t){return t.nodeType===Me}function ot(t){return K in t}function On(t){return t.nodeType===De}function go(t){return t.nodeType===Le}function F(t){return t.nodeType===X}function Sn(t){return t.nodeType===he}function fr(t){return\"appendChild\"in t}function At(t){let e=[],n=[t],r=new Set(n),o=new Set,i;for(;n.length>0;){let s=n.pop();if(r.delete(s),o.has(s))continue;let a=[];for(let c of st(s)){if(o.has(c)||(o.add(c),e.push(c),a.push(c),!F(c)))continue;let u=c[re];if(u)for(let h of u)o.has(h)||(o.add(h),e.push(h));let m=c[se];m&&!o.has(m)&&!r.has(m)&&(r.add(m),n.push(m))}i??=a}return{nodes:e,treeNodes:i}}function it(t,e){for(let n of t)n[I]=e}function ur(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[I]=e,r}function dr(t,e){if(On(t))return e.createTextNode(t.data);if(go(t))return e.createComment(t.data);if(ho(t))return ur(t,e);if(F(t)){let n=e[Ie](t[v],t.namespaceURI,t[me],t.localName);if(t[re])for(let r=0;r<t[re].length;r++){let o=t[re].item(r);n.attributes.setNamedItem(ur(o,e))}return n}else{if(Sn(t))return e.createDocumentFragment();{let n=new t.constructor;return n[I]=e,n}}}function _t(t,e,n=t.ownerDocument){if(t.nodeType===xe)throw P(\"Cannot clone a document node\",\"NotSupportedError\");let r=dr(t,n);if(!e||!F(t)&&!Sn(t))return r;let o=new Set([t]),i=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;i.length>0;){let s=i[i.length-1],a,c;if(s.cloningContent)if(s.contentSource&&s.contentDestination)a=s.contentSource.childNodes[s.childIndex++],c=s.contentDestination;else{i.pop(),s.appendTo&&s.appendTo.appendChild(s.destination);continue}else if(a=s.source.childNodes[s.childIndex++],c=s.destination,!a){if(s.cloningContent=!0,s.childIndex=0,F(s.source)&&s.source.namespaceURI===A&&s.source.localName===\"template\"){let m=s.source[se];m&&(o.has(m)&&mr(),o.add(m),s.contentSource=m,s.contentDestination=s.destination.content)}continue}if(!a){i.pop(),s.appendTo&&s.appendTo.appendChild(s.destination);continue}o.has(a)&&mr(),o.add(a);let u=dr(a,n);F(a)||Sn(a)?i.push({source:a,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function mr(){throw new Error(\"Cannot clone a cyclic or repeated node graph\")}function kt(t,e){let n=String(e);return n===\"\"?null:Ot(t,[{type:vt,name:n}])}function Pt(t,e){let n=[...new Set(pt(String(e)))];return Rt(t,n.map(r=>({type:St,name:r})))}function Ct(t,e){let n=String(e),r=G(n),o=[];for(let i of It(t))F(i)&&(n===\"*\"||(i.namespaceURI===A?i[v]===r:i[v]===n))&&o.push(i);return o}function It(t){let e=[],n=[],r=t[R];for(;r;){e.push(r);let o=r[R],i=r[p];o?(i&&n.push(i),r=o):r=i??n.pop()??null}return e}function st(t){let e=It(t);return e.unshift(t),e}var J=class extends ge{nodeType=$n;[v]=\"\";[Y]=null;[pe]=null;[R]=null;[M]=null;[p]=null;[U]=!1;get[D](){return this[I].defaultView[we]}get localName(){return this[v]}get nodeName(){return this[v]}get ownerDocument(){return this[I]}get isConnected(){return this[U]}isDefaultNamespace(e){let n=ae(e);return yo(this)===n}get parentNode(){return this[Y]}set parentNode(e){}get parentElement(){let e=this[Y];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[M]}set previousSibling(e){}get nextSibling(){return this[p]}set nextSibling(e){}get previousElementSibling(){let e=this[M];for(;e&&e.nodeType!==1;)e=e[M];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[p];for(;e&&e.nodeType!==1;)e=e[p];return e}set nextElementSibling(e){}get firstChild(){return this[R]}set firstChild(e){}get lastChild(){let e=this[R];for(;e;){let n=e[p];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return ot(this)?this.data:null}set nodeValue(e){ot(this)&&(this.data=e)}get textContent(){if(ot(this))return this.data;let e=\"\";for(let n of It(this))On(n)&&(e+=n.data);return e}set textContent(e){if(ot(this))this.data=e;else if(fr(this)){let n=e==null?\"\":String(e);n===\"\"?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return _t(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function yo(t){let e=t;for(;e;)switch(e.nodeType){case X:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS($e,\"xmlns\");if(r!=null&&r.prefix==null)return ae(r.value);e=n.parentElement;break}case xe:e=e.documentElement;break;case Kn:case he:return null;case Me:e=e.ownerElement;break;default:e=e.parentElement}return null}var ee=Symbol(\"insertNode\"),_n=Symbol(\"preflightInsertions\"),Mt=Symbol(\"replaceNode\"),ye=class extends J{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=Se(e),r=this.parentNode;if(r)return Rn(o=>{le(r,n);let i=this[p];for(;i&&n.includes(i);)i=i[p];let s=An(r,n,o);this.parentNode===r?r[Mt](s,this,o):r[ee](s,i,o)})}before(...e){let n=Se(e),r=this.parentNode;if(r)return Rn(o=>{le(r,n);let i=this[M];for(;i&&n.includes(i);)i=i[M];let s=An(r,n,o);r[ee](s,i?i[p]:r.firstChild,o)})}after(...e){let n=Se(e),r=this.parentNode;if(r)return Rn(o=>{le(r,n);let i=this[p];for(;i&&n.includes(i);)i=i[p];let s=An(r,n,o);r[ee](s,i,o)})}};function Rn(t){return V(()=>{let e=[];try{t(e)}catch(n){try{ve(e)}catch{}throw n}ve(e)})}function Se(t){return t.map(e=>e instanceof J?e:String(e))}function at(t,e){return e instanceof J?e:t.ownerDocument.createTextNode(String(e))}function le(t,e){for(let n of e){if(!(n instanceof J))continue;let r=t;for(;r;){if(r===n)throw P(\"Cannot insert a node into itself or one of its descendants\",\"HierarchyRequestError\");r=r[Y]??r[pe]}}}function An(t,e,n){let r=[];for(let i of e)r.push(at(t,i));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[_n](r);for(let i of r)o[ee](i,null,n);return o}var Dt,kn=0,pr=0,hr=0,gr=0,Ge=!1,Cn=!1,lt=!1,Lt=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!=\"function\")throw new TypeError(\"MutationObserver callback must be a function\");this.#t=e}observe(e,n={}){let r=bo(n),o=Dt??=new WeakMap,i=o.get(e);i==null&&(i=new Map,o.set(e,i));let s=i.get(this);s==null?kn++:Pn(s,-1),i.set(this,r),Pn(r,1),this.#e.add(e)}disconnect(){let e=Dt;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),kn--,Pn(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,kn===0&&(Dt=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function te(t){let e=Dt;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[i,s]of o){if(r!==t.target&&!s.subtree)continue;let a=!1;if(t.type===\"attributes\"){if(!s.attributes||s.attributeFilter&&!s.attributeFilter.has(t.attributeName??\"\"))continue;a=s.attributeOldValue}else if(t.type===\"characterData\"){if(!s.characterData)continue;a=s.characterDataOldValue}else if(!s.childList)continue;n.set(i,n.get(i)===!0||a)}r=r.parentNode}for(let[o,i]of n)o.enqueue({addedNodes:t.addedNodes??new Q,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:i?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new Q,target:t.target,type:t.type})}function Gt(...t){let e=new Q;return e.push(...t),e}function bo(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError(\"attributeOldValue and attributeFilter require attributes to be enabled\");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError(\"characterDataOldValue requires characterData to be enabled\");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError(\"MutationObserver options must enable childList, attributes, or characterData\");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function Pn(t,e){t.attributes&&(pr+=e),t.characterData&&(hr+=e),t.childList&&(gr+=e),Ge=pr>0,Cn=hr>0,lt=gr>0}var oe=class extends ye{childNodes=new Q;children=new Q;appendChild(e){return V(()=>this[ee](e,null))}insertBefore(e,n){return V(()=>this[ee](e,n||null))}append(...e){return V(()=>{let n=Se(e.filter(r=>r!=null));n.length>1&&le(this,n);for(let r of n)this[ee](at(this,r),null)})}prepend(...e){return V(()=>{let n=Se(e.filter(o=>o!=null));n.length>1&&le(this,n);let r=this.firstChild;for(let o of n)this[ee](at(this,o),r)})}replaceChildren(...e){return V(()=>{let n=Se(e.filter(o=>o!=null));le(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[ee](at(this,o),null)})}removeChild(e){return V(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw P(\"The node is not a child of this node\",\"NotFoundError\");let n=this[U]?st(e):void 0,r=e[M],o=e[p],i=Ht(this,e);if(n)for(let s of n)s[U]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,\"disconnectedCallback\"),ve(this.collectRemovalHookEffects(e,i))}replaceChild(e,n){return V(()=>this[Mt](e,n))}[Mt](e,n,r){if(le(this,[e]),n.parentNode!==this)throw P(\"The reference node is not a child of this parent\",\"NotFoundError\");let o=n[M],i=n[p],s=this.prepareInsertion(e),a=this[U]?st(n):void 0,c=new Set(s.map(({node:g})=>g)),u=i;for(;u&&c.has(u);)u=u[p];let m=Ht(this,n);if(a){for(let y of a)y[U]=!1;let g=new Set(a);for(let y of s)g.has(y.node)&&(y.shouldDisconnect=!1)}this.commitInsertion(s,u);let h=this[U];return this.queueRemovalMutationRecord(this,n,o,i),this.queueInsertionMutationRecords(s),a&&this.enqueueTreeReactions(a,\"disconnectedCallback\"),this.enqueueInsertionReactions(s,h),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,m),...this.collectInsertionHookEffects(s)],r),n}querySelectorAll(e){return Rt(this,e)}querySelector(e){return Ot(this,e)}[ee](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[_n](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(le(this,[e]),n&&n.parentNode!==this)throw P(\"The reference node is not a child of this parent\",\"NotFoundError\")}insertIntoValidated(e,n,r){e===n&&(n=e[p]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let i=this[U];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,i),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):ve(e)}prepareInsertion(e){let n=[];if(e.nodeType===he){let s=e[R];for(;s;)n.push(s),s=s[p]}else n.push(e);let r=this[U],o=this[I],i=[];for(let s of n){let a=s[U],c=a||r,u,m;if(s[I]===o)c&&(u=st(s));else{let h=At(s);m=h.nodes,c&&(u=h.treeNodes)}i.push({node:s,nodes:u,adoption:m,shouldDisconnect:a})}return i}commitInsertion(e,n){for(let i of e){let s=i.node[Y];if(s){let a=i.node[M],c=i.node[p];i.source={parent:s,index:Ht(s,i.node),previousSibling:a,nextSibling:c}}}for(let i of e){let s=this.attachChild(i.node,n);i.insertIndex=s.index,i.previousSibling=s.previousSibling,i.nextSibling=s.nextSibling}let r=this[I];for(let{adoption:i}of e)i&&it(i,r);let o=this[U];for(let{nodes:i}of e)if(i)for(let s of i)s[U]=o}attachChild(e,n){if(n){let i=n[M];e[p]=n,e[M]=i,i?i[p]=e:this[R]=e,n[M]=e}else{e[p]=null;let i=this[R];if(i){let s;for(;s=i[p];)i=s;i[p]=e,e[M]=i}else this[R]=e,e[M]=null}let r=F(e);e[Y]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let i=n;for(;i&&!F(i);)i=i[p];i?this.children.splice(this.children.indexOf(i),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[M],nextSibling:e[p]}}queueRemovalMutationRecord(e,n,r,o){lt&&te({type:\"childList\",target:e,removedNodes:Gt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(lt)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),te({type:\"childList\",target:this,addedNodes:Gt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==X||Qe(this)?[]:[[()=>this[D].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:i}=r;i?.parent.nodeType===X&&!Qe(i.parent)&&n.push([()=>i.parent[D].removeChild?.(i.parent,o,i.index)]),this.nodeType===X&&!Qe(this)&&n.push([()=>this[D].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,\"disconnectedCallback\"),n&&this.enqueueTreeReactions(o,\"connectedCallback\"))}}enqueueTreeReactions(e,n){br(e,n)}};function yr(t,e,n,r){if(e.parentNode!==t)throw Error(\"not a child of this node\");let o=t[U]?n.treeNodes:void 0,i=e[M],s=e[p],a=Ht(t,e);if(o)for(let u of o)u[U]=!1;it(n.nodes,r),lt&&te({type:\"childList\",target:t,removedNodes:Gt(e),previousSibling:i,nextSibling:s}),o&&br(o,\"disconnectedCallback\");let c=[];t.nodeType===X&&!Qe(t)&&c.push([()=>t[D].removeChild?.(t,e,a)]),ve(c)}function Ht(t,e){let n=e[M],r=e[p];n?n[p]=r:t[R]=r,r&&(r[M]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),F(e)&&t.children.splice(t.children.indexOf(e),1),e[Y]=null,e[p]=null,e[M]=null,o}function br(t,e){for(let n of t){let r=n[e];typeof r==\"function\"&&Et(n,()=>r.call(n))}}function ct(t,e,n,r,o){let{observedAttributes:i}=t.constructor,{attributeChangedCallback:s}=t;s==null||i==null||!i.includes(e)||Et(t,()=>s.call(t,e,n,r,o))}var Ut=class{[R]=null;constructor(e){this[q]=e}getNamedItem(e){let n=String(e),r=this[q][S]===A?G(n):n,o=this[R];for(;o;){if(o.name===r)return o;o=o[p]}return null}getNamedItemNS(e,n){let r=ae(e),o=String(n),i=this[R];for(;i;){if(i.localName===o&&i[S]===r)return i;i=i[p]}return null}item(e){let n=this[R],r=0;for(;n;){if(r++===e)return n;n=n[p]}return null}get length(){let e=0,n=this[R];for(;n;)e++,n=n[p];return e}removeNamedItem(e){let n=String(e),r=this[q][S]===A?G(n):n;return V(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=ae(e),o=String(n);return V(()=>this.removeNamedItemImmediately(i=>i.localName===o&&i[S]===r))}removeNamedItemImmediately(e){let n=this[q],r=this[R],o=null;for(;r!=null;){if(e(r)){o&&(o[p]=r[p]),this[R]===r&&(this[R]=r[p]);let i=r.value;return r[p]=null,r[q]=null,Ge&&te({type:\"attributes\",target:n,attributeName:r.name,attributeNamespace:r[S],oldValue:i}),n[D].removeAttribute?.(n,r.name,r[S]),ct(n,r.localName,i,null,r[S]),r}o=r,r=r[p]}return null}setNamedItem(e){return V(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[q],r=e[q];if(r!=null&&r!==n)throw P(\"The attribute is already in use by another element.\",\"InUseAttributeError\");let o=null,i=this[R],s=null;for(;i;){if(i.localName===e.localName&&i[S]===e[S]){if(i===e)return i;s?s[p]=e:this[R]=e,e[p]=i[p],i[p]=null,o=i;break}s=i,i=i[p]}o==null&&(s?s[p]=e:this[R]=e),e[q]=n,e[I]=n[I],o&&(o[q]=null);let a=o==null||o.value!==e.value,c=o!=null&&o.name!==e.name;return a&&Ge&&te({type:\"attributes\",target:n,attributeName:e.name,attributeNamespace:e[S],oldValue:o?.value??null}),c&&n[D].removeAttribute?.(n,o.name,o[S]),(a||c)&&n[D].setAttribute?.(n,e.name,e.value,e[S]),a&&ct(n,e.localName,o?.value??null,e.value,e[S]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[R];for(;e;)yield e,e=e[p]}};var Oe=class extends J{nodeType=Me;[S]=null;[p]=null;[q]=null;constructor(e,n,r){super(),this[v]=e,this[fe]=n,r&&(this[S]=r)}get nodeName(){return this[v]}set nodeName(e){}get name(){return this[v]}set name(e){}get localName(){if(this[S]==null)return this[v];let e=this[v].indexOf(\":\");return e<0?this[v]:this[v].slice(e+1)}get prefix(){if(this[S]==null)return null;let e=this[v].indexOf(\":\");return e<0?null:this[v].slice(0,e)}get value(){return this[fe]}set value(e){let n=String(e),r=this[q];if(!r){this[fe]=n;return}V(()=>{let o=this[fe];this[fe]=n,Ge&&o!==n&&te({type:\"attributes\",target:r,attributeName:this[v],attributeNamespace:this[S],oldValue:o}),this[D].setAttribute?.(r,this[v],n,this[S]),ct(r,this.localName,o,n,this[S])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[q]}get namespaceURI(){return this[S]}get specified(){return!0}};var Eo={amp:\"&\",AMP:\"&\",apos:\"'\",gt:\">\",GT:\">\",lt:\"<\",LT:\"<\",quot:'\"',QUOT:'\"'},No=new Set([\"area\",\"base\",\"br\",\"col\",\"embed\",\"hr\",\"img\",\"input\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"]),To=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>'\"=/\\s]+(?:=(['\"])[^]*?\\3|=[^>'\"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,Tr=/\\s([^<>'\"=/\\n\\s]+)(?:=([\"'])([\\s\\S]*?)\\2|=([^>'\"\\n\\s]*)|)/g,wo=\"|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|\",xo=/^(?:color|face|size)$/i;function Er(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return Eo[n];let i=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(i)}catch{return e}})}function wr(t){return t.namespaceURI===A&&No.has(t.localName)}function Nr(t){let e=t.localName;return t[S]===Z&&(e===\"foreignObject\"||e===\"desc\"||e===\"title\")}function vo(t,e){if(wo.includes(`|${t}|`))return!0;if(t!==\"font\")return!1;for(let n of e.matchAll(Tr))if(xo.test(n[1]))return!0;return!1}function Bt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],i=r;for(let s of t.matchAll(To)){let a=s[1];if(a){let c=s[2],u=G(a),m=o[o.length-1]?.element??e,h=m[S]===Z?Z:A;if(u===\"svg\")h=Z;else if(h===Z){if(Nr(m))h=A;else if(vo(u,c)){for(;o.length>0;){let O=o[o.length-1];if(O.element[S]!==Z||Nr(O.element))break;o.pop(),i=O.target}h=A}}let g=h===A?u:a,y=n[Ie](g,h,null,g);for(let O of c.matchAll(Tr))y.setAttribute(O[1],Er(O[3]||O[4]||\"\"));if(i.append(y),wr(y)||h!==A&&s[4])continue;o.push({element:y,target:i}),i=h===A&&u===\"template\"?y.content:y}else if(s[5]){let c=G(s[5]);for(let u=o.length-1;u>=0;u--){let m=o[u],h=G(m.element[v]);if(h===c){i=m.target,o.length=u;break}if(m.element[S]===A&&h===\"template\")break}}else s[6]?i.append(n.createComment(s[6])):i.append(Er(s[7]))}return r}function Vt(t){return vr([{type:\"content\",child:t[R]}])}function xr(t){return vr([{type:\"opening\",node:t}])}function vr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case\"opening\":{let r=n.node;switch(r.nodeType){case X:{let o=r;e.push(`<${o[v]}`);let i=o[re]?.[R];for(;i;){e.push(` ${i[v]}`);let a=i[fe];a!==\"\"&&(a=String(a).replace(/&/g,\"&\").replace(/\"/g,\""\"),e.push(`=\"${a}\"`)),i=i[p]}if(e.push(\">\"),wr(o))break;let s=o.namespaceURI===A&&o.localName===\"template\"?o[se]:o;t.push({type:\"closing\",name:o[v]}),t.push({type:\"content\",child:s?.[R]??null});break}case De:{let o=r;e.push(o[K].replace(/&/g,\"&\").replace(/\"/g,\""\").replace(/</g,\"<\").replace(/>/g,\">\"));break}case Le:{let o=r;e.push(`<!--${o[K]}-->`);break}}break}case\"content\":{let r=n.child;r&&(t.push({type:\"content\",child:r[p]}),t.push({type:\"opening\",node:r}));break}case\"closing\":e.push(`</${n.name}>`);break}return e.join(\"\")}var H=class extends oe{nodeType=X;[S]=A;[me]=null;get namespaceURI(){return this[S]}get prefix(){return this[me]}get localName(){let e=this[me];return e==null?this[v]:this[v].slice(e.length+1)}get nodeName(){return this[S]===A?Qn(this[v]):this[v]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,\"id\")??\"\"}set id(e){this.setAttribute(\"id\",String(e))}get slot(){return this.getAttributeNS(null,\"slot\")??\"\"}set slot(e){let n=String(e);this.getAttributeNS(null,\"slot\")!==n&&this.attributes.setNamedItem(new Oe(\"slot\",n))}get attributes(){let e=this[re];return e||(e=new Ut(this),this[re]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Ct(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return Pt(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);pn(r);let i=this[S]===A?G(r):r,s=this.attributes.getNamedItemNS(null,i);s?s.value=o:this.attributes.setNamedItem(new Oe(i,o))}setAttributeNS(e,n,r){let o=ae(e),i=String(n),s=String(r),a=ht(o,i,\"attribute\"),c=this.attributes.getNamedItemNS(a.namespace,a.localName);c?c.value=s:this.attributes.setNamedItemNS(new Oe(a.qualifiedName,s,a.namespace))}toggleAttribute(e,n){let r=String(e);pn(r);let o=this[S]===A?G(r):r,i=this.attributes.getNamedItemNS(null,o),s=n===void 0?void 0:!!n;return i==null?s===!1?!1:(this.attributes.setNamedItem(new Oe(o,\"\")),!0):s===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[S]===A?G(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return xr(this)}get innerHTML(){return Vt(this)}set innerHTML(e){if(e==null||e===\"\")this.replaceChildren();else{let n=Bt(String(e),this);this.replaceChildren(n)}}};var He=class t extends H{[S]=Z;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var be=class extends ye{[K]=\"\";constructor(e){super(),this[K]=e==null?\"\":String(e)}setData(e){let n=Cn,r=n?this[K]:null,o=\"\";e!=null&&(o=typeof e==\"string\"?e:String(e)),this[K]=o,n&&r!==o&&te({type:\"characterData\",target:this,oldValue:r}),this[D].setText?.(this,o)}get data(){return this[K]}set data(e){this.setData(e)}};var Ue=class extends be{nodeType=De;[v]=\"#text\"};var Be=class extends be{nodeType=Le;[v]=\"#comment\"};var Ve=class extends oe{nodeType=he;[v]=\"#document-fragment\";[I]=typeof window<\"u\"?window.document:null;getElementById(e){return kt(this,e)}};var ze=class extends H{get content(){let e=this[se];return e||(e=this.ownerDocument.createDocumentFragment(),e[pe]=this,this[se]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(Bt(String(e),this))}get innerHTML(){let e=this[se];return e?Vt(e):\"\"}};var zt=class extends H{};var Ft=class extends H{};var jt=class extends H{};var ut=class extends oe{nodeType=xe;[v]=\"#document\";[U]=!0;constructor(e){super(),this.defaultView=e,this[I]=this,this.documentElement=Yt(new jt,this,\"html\"),this.body=Yt(new zt,this,\"body\"),this.head=Yt(new Ft,this,\"head\"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Pt(this,e)}createElement(e){let n=String(e);return tr(n),In(this,G(n))}createElementNS(e,n){let r=ht(e,n,\"element\");return In(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ie](e,n,r,o){return In(this,e,n,r,o)}createTextNode(e){let n=qt(new Ue(e),this);return this[D].createText?.(n,n.data),n}createComment(e){return qt(new Be(e),this)}createDocumentFragment(){return qt(new Ve,this)}createEvent(){return new B(\"\")}getElementById(e){return kt(this,e)}getElementsByTagName(e){return Ct(this,e)}importNode(e,n){if(e.nodeType===xe)throw P(\"Cannot import a document node\",\"NotSupportedError\");return _t(e,n,this)}adoptNode(e){if(e[I]===this)return e;let n=At(e);return V(()=>{let r=e.parentNode;return r?yr(r,e,n,this):it(n.nodes,this),e})}};function qt(t,e){return Object.defineProperty(t,I,{value:e,writable:!0,enumerable:!1}),t}function In(t,e,n=A,r=null,o=e){let i;if(n===Z)i=new He;else if(n===A&&o===\"template\")i=new ze;else if(n===A){let s=t.defaultView.customElements.get(o);i=s?new s:new H}else i=new H;return Yt(i,t,e,n,r)}function Yt(t,e,n,r=A,o=null){return qt(t,e),Object.defineProperties(t,{[v]:{value:n},[S]:{value:r},[me]:{value:o}}),e[D].createElement?.(t,r),t}var Wt=class extends B{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var Xt=class extends B{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var $t=class extends B{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var Kt=class extends B{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var Zt=class extends B{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var Qt=class extends B{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var Jt=class extends H{};var So=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,Oo=new Set([\"annotation-xml\",\"color-profile\",\"font-face\",\"font-face-src\",\"font-face-uri\",\"font-face-format\",\"font-face-name\",\"missing-glyph\"]);function Sr(t){return So.test(t)&&!Oo.has(t)}function Or(t){return P(`Invalid custom element name: \"${t}\"`,\"SyntaxError\")}var en=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Sr(e))throw Or(e);if(this.registry.has(e))throw P(`A custom element named \"${e}\" has already been defined`,\"NotSupportedError\");if(this.getName(n)!=null)throw P(\"This constructor has already been registered in this custom element registry\",\"NotSupportedError\");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let i of o)i(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!Sr(e))return Promise.reject(Or(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var Ro=[\"onerror\",\"onunhandledrejection\"],Ar=Symbol.for(\"@remote-dom/polyfill/global-property\");function _r(t){return Object.getOwnPropertyDescriptors(t)}function kr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ge.prototype)))n!==\"constructor\"&&typeof r.value==\"function\"&&(r.value=Mn(r.value.bind(t)),e[n]=r);return e}function Pr(t){let e={};for(let n of Ro)e[n]={configurable:!0,enumerable:!0,get:Mn(()=>t[n]),set:Mn(r=>{t[n]=r})};return e}function Ao(t){return Object.assign(_r(t),kr(t),Pr(t))}function Mn(t){return Object.defineProperty(t,Ar,{value:!0}),t}function Rr(t,e){for(let n of Reflect.ownKeys(e)){let r=_o(t,n);(r==null||ko(r))&&Object.defineProperty(t,n,e[n])}}function _o(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function ko(t){return[t.value,t.get,t.set].some(e=>typeof e==\"function\"&&e[Ar]===!0)}var Re=class extends ge{[D]={};[ft]=[];[we]=Co(this);name=\"\";window=this;parent=this;self=this;top=this;document=new ut(this);customElements=new en;location=globalThis.location;navigator=globalThis.navigator;Event=B;ErrorEvent=Xt;PromiseRejectionEvent=$t;ToggleEvent=Kt;FocusEvent=Zt;ClipboardEvent=Qt;EventTarget=ge;CustomEvent=Wt;Node=J;ParentNode=oe;ChildNode=ye;DocumentFragment=Ve;Document=ut;CharacterData=be;Comment=Be;Text=Ue;Element=H;HTMLElement=Jt;SVGElement=He;HTMLTemplateElement=ze;MutationObserver=Lt;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)Po(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener(\"error\",this.#t),e&&typeof e==\"function\"?(this.#n=e,this.#t=n=>{e(n.message??\"Error\",n.filename,n.lineno,n.colno,n.error)},this.addEventListener(\"error\",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener(\"unhandledrejection\",this.#e),e&&typeof e==\"function\"?(this.#e=e,this.addEventListener(\"unhandledrejection\",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=_r(e),i=Object.assign(kr(e),Pr(e));delete o.self,Object.defineProperties(globalThis,o),Rr(globalThis,i),typeof n>\"u\"||n===r&&n!==globalThis?Object.defineProperty(globalThis,\"self\",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),Rr(n,i))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,Ao(e))}};function Po(t,e){t[ft].push(e(t)??{})}function Co(t){return{createElement:ce.bind(null,t,\"createElement\"),setAttribute:ce.bind(null,t,\"setAttribute\"),removeAttribute:ce.bind(null,t,\"removeAttribute\"),createText:ce.bind(null,t,\"createText\"),setText:ce.bind(null,t,\"setText\"),insertChild:ce.bind(null,t,\"insertChild\"),removeChild:ce.bind(null,t,\"removeChild\"),addEventListener:ce.bind(null,t,\"addEventListener\"),removeEventListener:ce.bind(null,t,\"removeEventListener\")}}function ce(t,e,...n){for(let i of t[ft])i[e]?.apply(i,n);let r=t[D];r[e]?.apply(r,n)}var tn=new Re;var Dn=\"~\";var Ee=new WeakMap;function Fe(t){return Ee.get(t)}var Un=new WeakMap,Mo=0;function $(t){let e=Un.get(t);return e==null&&(e=String(Mo++),nn(t,e)),e}function nn(t,e){Un.set(t,e)}var Gn=new WeakMap;function Do(t){return Gn.get(t)}var Hn=new WeakMap;function Lo(t){let e=Hn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes(\"-\"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var Go=new WeakMap;function Ho(t){return Go.get(t)}function Bn(t,e,n){let r=Gn.get(t);if(r==null&&(r={},Gn.set(t,r)),r[e]===n)return;r[e]=n;let o=Ee.get(t);o?.mutate([[3,$(t),e,n,1]])}function Ne(t,e,n){let r=Hn.get(t);if(r==null&&(r={},Hn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=Ee.get(t);o?.mutate([[3,$(t),e,n,2]])}function je(t,e){if(Ee.get(t)!==e&&(Ee.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)je(t.childNodes[r],e)}function rn(t){if(Ee.get(t)!=null&&(Ee.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)rn(t.childNodes[n])}function qe(t){let{nodeType:e}=t;switch(e){case 1:return{id:$(t),type:e,element:t.localName,properties:Ln(Do(t)),attributes:Ln(Lo(t)),eventListeners:Ln(Ho(t)),children:Array.from(t.childNodes).map(qe)};case 3:case 8:return{id:$(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function Ln(t){return t?{...t}:void 0}function Vn(t,e,...n){let r=Un.get(t),o=Ee.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var Ye=tn[D];Ye.insertChild=(t,e,n)=>{let r=Fe(t);r!=null&&(je(e,r),r.mutate([[0,$(t),qe(e),n]]))};Ye.removeChild=(t,e,n)=>{let r=Fe(t);r!=null&&(rn(e),r.mutate([[1,$(t),n]]))};Ye.setText=(t,e)=>{let n=Fe(t);n?.mutate([[2,$(t),e]])};Ye.setAttribute=(t,e,n)=>{t.tagName.includes(\"-\")||Ne(t,e,n)};Ye.removeAttribute=(t,e)=>{t.tagName.includes(\"-\")||Ne(t,e)};Re.setGlobal(tn);function on(t){if(typeof t==\"string\")return{type:\"navigate\",to:t};let{place:e,record:n,where:r,section:o}=t??{},i={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e==\"string\"?{type:\"navigate\",place:e,...i}:typeof n==\"string\"?{type:\"navigate\",to:n,...i}:void 0}var Ir=[\"wheel\",\"drag\",\"pinch\"];function Mr(t){let e=t;return typeof t==\"object\"&&t!==null&&e.graview===\"host-hello\"&&typeof e.nonce==\"string\"}function Lr(t,e={}){let n,r=\"\",o,i=0,s=new Set,a=new Map,c=[],u=E=>{n?n.postMessage({...E,nonce:r}):c.push(E)},m=E=>{let N=E.data;if(!(!N||typeof N!=\"object\")){if(N.type===\"props\"){o=N.props;for(let C of s)C(N.props)}else N.type===\"answer\"?(a.get(N.id)?.(N),a.delete(N.id)):N.type===\"event\"&&typeof N.listener==\"number\"?e.onEvent?.(N):N.type===\"heartbeat\"&&typeof N.beat==\"number\"&&u({type:\"heartbeat\",beat:N.beat});e.onMessage?.(N)}},h=()=>{},g=E=>{if(n||!t.fromHost(E)||!Mr(E.data)||E.data.protocol!==1)return;let N=E.ports[0];if(N){n=N,r=E.data.nonce,n.onmessage=m,n.start?.(),h();for(let C of c.splice(0))u(C)}};h=t.listen(g),t.ready({graview:\"guest-ready\",protocol:1});let y,O={get props(){return o},subscribe(E){return s.add(E),()=>s.delete(E)},act(E,N={}){let C=i+=1;return new Promise(L=>{a.set(C,L),u({type:\"act\",id:C,name:E,args:N})})},navigate(E){let N=on(E);N&&u(N)},size(E){u({type:\"size\",height:E})},autoSize(E){let N=E??globalThis.document?.documentElement,C=globalThis.ResizeObserver;if(!N||!C||typeof N.getBoundingClientRect!=\"function\")return()=>{};y?.disconnect();let L=new C(()=>O.size(Math.ceil(N.getBoundingClientRect().height)));return L.observe(N),y=L,()=>L.disconnect()},close(){y?.disconnect(),h(),n?.close(),s.clear()}};return{guest:O,send:u}}var Hr=[\"globalThis\",\"Infinity\",\"NaN\",\"undefined\",\"isFinite\",\"isNaN\",\"parseFloat\",\"parseInt\",\"decodeURI\",\"decodeURIComponent\",\"encodeURI\",\"encodeURIComponent\",\"escape\",\"unescape\",\"Object\",\"Function\",\"Array\",\"Number\",\"Boolean\",\"String\",\"Symbol\",\"BigInt\",\"Date\",\"Promise\",\"RegExp\",\"Math\",\"JSON\",\"Reflect\",\"Proxy\",\"Intl\",\"Error\",\"AggregateError\",\"EvalError\",\"RangeError\",\"ReferenceError\",\"SyntaxError\",\"TypeError\",\"URIError\",\"SuppressedError\",\"Map\",\"Set\",\"WeakMap\",\"WeakSet\",\"WeakRef\",\"FinalizationRegistry\",\"Iterator\",\"AsyncIterator\",\"DisposableStack\",\"AsyncDisposableStack\",\"ArrayBuffer\",\"SharedArrayBuffer\",\"DataView\",\"Atomics\",\"Int8Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"Float16Array\",\"Float32Array\",\"Float64Array\",\"BigInt64Array\",\"BigUint64Array\"],Ur=[\"window\",\"parent\",\"top\",\"document\",\"customElements\",\"Event\",\"ErrorEvent\",\"PromiseRejectionEvent\",\"ToggleEvent\",\"FocusEvent\",\"ClipboardEvent\",\"CustomEvent\",\"EventTarget\",\"Node\",\"ParentNode\",\"ChildNode\",\"DocumentFragment\",\"Document\",\"CharacterData\",\"Comment\",\"Text\",\"Element\",\"HTMLElement\",\"SVGElement\",\"HTMLTemplateElement\",\"MutationObserver\"],Br=[\"self\",\"postMessage\",\"setTimeout\",\"clearTimeout\",\"setInterval\",\"clearInterval\",\"queueMicrotask\",\"structuredClone\",\"crypto\",\"console\",\"DOMException\"],Vr=[\"TEMPORARY\",\"PERSISTENT\"],gl=Object.freeze([...Hr,...Ur,...Br,...Vr]),yl=Object.freeze([\"constructor\",\"__defineGetter__\",\"__defineSetter__\",\"hasOwnProperty\",\"__lookupGetter__\",\"__lookupSetter__\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toString\",\"valueOf\",\"__proto__\",\"toLocaleString\"]),Gr=t=>typeof t==\"symbol\"?`[${t.description??\"symbol\"}]`:t;function zr(t=globalThis,e=[],n={}){let r=[],o=[],i=new Set([...Hr,...Ur,...Br,...e,\"constructor\",Symbol.toStringTag]),s=(x,k)=>{let j=Reflect.getOwnPropertyDescriptor(x,k);return j===void 0||!(\"value\"in j)||j.writable||j.configurable?!1:n.primitivesStay&&typeof k==\"symbol\"&&(typeof j.value!=\"object\"||j.value===null)&&typeof j.value!=\"function\"?!0:Vr.includes(k)&&typeof j.value==\"number\"},a=t,c=a.setTimeout,u=a.setInterval,m=a.crypto,h=(x,k)=>function(j,We,...mt){if(typeof j!=\"function\")throw new TypeError(`${k} takes a function: a guest view cannot run code from text`);return x.call(t,j,We,...mt)},g=m?Object.freeze({getRandomValues:x=>m.getRandomValues(x)}):void 0,y=a.document?.defaultView;if(y&&y!==a)for(let x of Reflect.ownKeys(y))typeof x==\"symbol\"||i.has(x)||Reflect.deleteProperty(y,x)||o.push(`window.${x}`);let O=[];for(let x=t;x&&x!==Object.prototype;x=Object.getPrototypeOf(x))O.push(x);for(let x of O)for(let k of Reflect.ownKeys(x))i.has(k)||(Reflect.deleteProperty(x,k)?r.push(Gr(k)):s(x,k)||o.push(Gr(k)));let E=()=>function(){throw new EvalError(\"A guest view cannot make code from text.\")},N=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let x of N){let k=E();Object.defineProperty(k,\"prototype\",{value:x,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(x,\"constructor\",{value:k,writable:!1,enumerable:!1,configurable:!1})||o.push(\"Function.prototype.constructor\"),x===Function.prototype&&Reflect.defineProperty(t,\"Function\",{value:k,writable:!0,enumerable:!1,configurable:!0})}let C=(x,k)=>{Reflect.defineProperty(t,x,{value:k,writable:!0,enumerable:!0,configurable:!0})||o.push(x)};C(\"setTimeout\",h(c,\"setTimeout\")),C(\"setInterval\",h(u,\"setInterval\")),g&&C(\"crypto\",g);for(let x of O.slice(1))Object.freeze(x);for(let x of Reflect.ownKeys(t)){let k=Reflect.getOwnPropertyDescriptor(t,x);Reflect.defineProperty(t,x,\"value\"in k?{...k,writable:!1,configurable:!1}:{...k,configurable:!1})}let L;try{L=Reflect.preventExtensions(t)}catch{L=!1}return{removed:r,stuck:o,sealed:L}}var dt=class extends HTMLElement{constructor(){super(),nn(this,Dn)}connect(e){if(Fe(this)===e||(je(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,Dn,qe(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Bn(this,e,n)}callRemoteMethod(e,...n){return Vn(this,e,...n)}};var d={},sn={empty:!0},Uo={id:\"text\",class:\"text\",title:\"text\",lang:\"text\",dir:{oneOf:[\"ltr\",\"rtl\",\"auto\"]},hidden:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},role:\"text\",style:\"style\",translate:{oneOf:[\"yes\",\"no\"]},spellcheck:{oneOf:[\"true\",\"false\"]},draggable:{oneOf:[\"true\",\"false\"]},inert:\"boolean\"},zn={div:d,section:d,article:d,aside:d,header:d,footer:d,nav:d,hgroup:d,search:d,address:d,figure:d,figcaption:d,blockquote:d,p:d,pre:d,hr:sn,br:sn,wbr:sn,h1:d,h2:d,h3:d,h4:d,h5:d,h6:d,span:d,strong:d,em:d,b:d,i:d,u:d,s:d,small:d,mark:d,abbr:d,cite:d,q:d,code:d,kbd:d,samp:d,var:d,sub:d,sup:d,dfn:d,bdi:d,bdo:d,ruby:d,rt:d,rp:d,time:{attributes:{datetime:\"text\"}},data:{attributes:{value:\"text\"}},del:{attributes:{datetime:\"text\"}},ins:{attributes:{datetime:\"text\"}},a:{attributes:{href:\"link\"}},ul:d,menu:d,dl:d,dt:d,dd:d,ol:{attributes:{start:\"number\",reversed:\"boolean\",type:{oneOf:[\"1\",\"a\",\"A\",\"i\",\"I\"]}}},li:{attributes:{value:\"number\"}},table:d,caption:d,thead:d,tbody:d,tfoot:d,tr:d,colgroup:{attributes:{span:\"number\"}},col:{attributes:{span:\"number\"},empty:!0},th:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\",scope:{oneOf:[\"row\",\"col\",\"rowgroup\",\"colgroup\"]},abbr:\"text\"}},td:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\"}},details:{attributes:{open:\"boolean\",name:\"text\"}},summary:d,button:{attributes:{type:{oneOf:[\"button\"]},disabled:\"boolean\",name:\"text\",value:\"text\"}},input:{empty:!0,attributes:{type:{oneOf:[\"text\",\"search\",\"number\",\"range\",\"checkbox\",\"radio\",\"date\",\"time\",\"datetime-local\",\"month\",\"week\",\"color\",\"email\",\"tel\",\"url\"]},name:\"text\",value:\"text\",placeholder:\"text\",min:\"text\",max:\"text\",step:\"text\",checked:\"boolean\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",size:\"number\",pattern:\"text\",multiple:\"boolean\",inputmode:\"text\",enterkeyhint:\"text\"}},select:{attributes:{name:\"text\",disabled:\"boolean\",multiple:\"boolean\",required:\"boolean\",size:\"number\"}},option:{attributes:{value:\"text\",selected:\"boolean\",disabled:\"boolean\",label:\"text\"}},optgroup:{attributes:{label:\"text\",disabled:\"boolean\"}},textarea:{attributes:{name:\"text\",placeholder:\"text\",rows:\"number\",cols:\"number\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",wrap:{oneOf:[\"soft\",\"hard\",\"off\"]}}},label:{attributes:{for:\"text\"}},fieldset:{attributes:{disabled:\"boolean\",name:\"text\"}},legend:d,output:d,meter:{attributes:{value:\"number\",min:\"number\",max:\"number\",low:\"number\",high:\"number\",optimum:\"number\"}},progress:{attributes:{value:\"number\",max:\"number\"}},img:{empty:!0,attributes:{src:\"image\",alt:\"text\",width:\"number\",height:\"number\",decoding:{oneOf:[\"async\",\"sync\",\"auto\"]}}},\"graview-video\":sn},Bo=[\"fill\",\"fill-opacity\",\"fill-rule\",\"stroke\",\"stroke-width\",\"stroke-linecap\",\"stroke-linejoin\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-opacity\",\"stroke-miterlimit\",\"opacity\",\"color\",\"display\",\"visibility\",\"transform-origin\",\"clip-path\",\"clip-rule\",\"marker-start\",\"marker-mid\",\"marker-end\",\"font-family\",\"font-size\",\"font-weight\",\"font-style\",\"text-anchor\",\"dominant-baseline\",\"alignment-baseline\",\"letter-spacing\",\"text-decoration\",\"paint-order\",\"vector-effect\",\"shape-rendering\",\"pointer-events\",\"stop-color\",\"stop-opacity\",\"overflow\",\"mask\",\"filter\",\"flood-color\",\"flood-opacity\",\"lighting-color\",\"color-interpolation-filters\"],Vo={id:\"text\",class:\"text\",style:\"style\",lang:\"text\",role:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},transform:\"geometry\",...Object.fromEntries(Bo.map(t=>[t,\"css\"]))},ue={x:\"geometry\",y:\"geometry\",width:\"geometry\",height:\"geometry\"},an={viewBox:\"geometry\",preserveAspectRatio:\"geometry\"},Fr={oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},jr={oneOf:[\"R\",\"G\",\"B\",\"A\"]},ne={...ue,in:\"text\",result:\"text\"},qr={gradientUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},gradientTransform:\"geometry\",spreadMethod:{oneOf:[\"pad\",\"reflect\",\"repeat\"]},href:\"fragment\"},Yr={svg:{attributes:{...ue,...an}},g:d,defs:d,symbol:{attributes:{...ue,...an,refX:\"geometry\",refY:\"geometry\"}},use:{attributes:{...ue,href:\"fragment\"}},title:d,desc:d,path:{attributes:{d:\"geometry\",pathLength:\"number\"}},rect:{attributes:{...ue,rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},circle:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",pathLength:\"number\"}},ellipse:{attributes:{cx:\"geometry\",cy:\"geometry\",rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},line:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",pathLength:\"number\"}},polyline:{attributes:{points:\"geometry\",pathLength:\"number\"}},polygon:{attributes:{points:\"geometry\",pathLength:\"number\"}},text:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\",lengthAdjust:{oneOf:[\"spacing\",\"spacingAndGlyphs\"]}}},tspan:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\"}},textPath:{attributes:{href:\"fragment\",startOffset:\"geometry\",method:{oneOf:[\"align\",\"stretch\"]},spacing:{oneOf:[\"auto\",\"exact\"]},side:{oneOf:[\"left\",\"right\"]}}},linearGradient:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",...qr}},radialGradient:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",fx:\"geometry\",fy:\"geometry\",fr:\"geometry\",...qr}},stop:{attributes:{offset:\"geometry\"}},clipPath:{attributes:{clipPathUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},mask:{attributes:{...ue,maskUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},maskContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},pattern:{attributes:{...ue,...an,patternUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternTransform:\"geometry\",href:\"fragment\"}},marker:{attributes:{...an,markerWidth:\"geometry\",markerHeight:\"geometry\",refX:\"geometry\",refY:\"geometry\",orient:\"geometry\",markerUnits:{oneOf:[\"strokeWidth\",\"userSpaceOnUse\"]}}},a:d,filter:{attributes:{...ue,filterUnits:Fr,primitiveUnits:Fr}},feBlend:{attributes:{...ne,in2:\"text\",mode:\"text\"}},feColorMatrix:{attributes:{...ne,type:{oneOf:[\"matrix\",\"saturate\",\"hueRotate\",\"luminanceToAlpha\"]},values:\"geometry\"}},feComponentTransfer:{attributes:ne},...Object.fromEntries([\"feFuncR\",\"feFuncG\",\"feFuncB\",\"feFuncA\"].map(t=>[t,{attributes:{type:{oneOf:[\"identity\",\"table\",\"discrete\",\"linear\",\"gamma\"]},tableValues:\"geometry\",slope:\"number\",intercept:\"number\",amplitude:\"number\",exponent:\"number\",offset:\"number\"}}])),feComposite:{attributes:{...ne,in2:\"text\",operator:{oneOf:[\"over\",\"in\",\"out\",\"atop\",\"xor\",\"lighter\",\"arithmetic\"]},k1:\"number\",k2:\"number\",k3:\"number\",k4:\"number\"}},feDisplacementMap:{attributes:{...ne,in2:\"text\",scale:\"number\",xChannelSelector:jr,yChannelSelector:jr}},feDropShadow:{attributes:{...ne,dx:\"number\",dy:\"number\",stdDeviation:\"geometry\"}},feFlood:{attributes:ne},feGaussianBlur:{attributes:{...ne,stdDeviation:\"geometry\",edgeMode:{oneOf:[\"duplicate\",\"wrap\",\"none\"]}}},feMerge:{attributes:ne},feMergeNode:{attributes:{in:\"text\"}},feMorphology:{attributes:{...ne,operator:{oneOf:[\"erode\",\"dilate\"]},radius:\"geometry\"}},feOffset:{attributes:{...ne,dx:\"number\",dy:\"number\"}},feTurbulence:{attributes:{...ue,result:\"text\",type:{oneOf:[\"fractalNoise\",\"turbulence\"]},baseFrequency:\"geometry\",numOctaves:\"number\",seed:\"number\",stitchTiles:{oneOf:[\"stitch\",\"noStitch\"]}}}};var Wr={section:[\"aria-label\",\"title\"]};function zo(t){return/^aria-[a-z]+$/.test(t)}function Fo(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var jo=new Map(Object.keys(Yr).map(t=>[t.toLowerCase(),t]));function Xr(t){return jo.get(t.toLowerCase())}function $r(t,e,n){let r=n.toLowerCase(),o=t===\"html\"?[zn[e]?.attributes,Uo]:[Yr[e]?.attributes,Vo],i=t===\"svg\"&&r===\"xlink:href\"?\"href\":r;for(let s of o)if(s){for(let[a,c]of Object.entries(s))if(a.toLowerCase()===i)return{name:a,kind:c}}if(zo(r)||Fo(r))return{name:r,kind:\"text\"}}var Kr=\"~\",ln=t=>typeof t==\"object\"&&t!==null&&!Array.isArray(t),ie=(t,e=0)=>{if(t===null||typeof t==\"string\"||typeof t==\"number\"||typeof t==\"boolean\"||t===void 0)return t;if(!(e>64||typeof t!=\"object\"))return Array.isArray(t)?t.map(n=>ie(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,ie(r,e+1)]))};function Zr(){let t=new Map,e=new Map,n=new Map([[Kr,{children:[],listeners:new Map}]]),r=0,o=u=>{let m=e.get(u);return m===void 0&&(m=r+=1,e.set(u,m),t.set(m,{listener:u,count:0})),t.get(m).count+=1,m},i=u=>{let m=t.get(u);m&&(m.count-=1,!(m.count>0)&&(t.delete(u),e.delete(m.listener)))},s=u=>{let m=n.get(u);if(m){n.delete(u);for(let h of m.listeners.values())i(h);for(let h of m.children)s(h)}},a=(u,m,h=0)=>{if(!ln(u)||h>64)return ie(u);let g=typeof u.id==\"string\"?u.id:void 0,y=m&&g!==void 0&&g!==Kr;y&&s(g);let O={children:[],listeners:new Map};y&&n.set(g,O);let E={};for(let[N,C]of Object.entries(u))N===\"children\"&&Array.isArray(C)?E[N]=C.map(L=>{let x=a(L,y,h+1);return y&&ln(L)&&typeof L.id==\"string\"&&O.children.push(L.id),x}):N===\"eventListeners\"&&ln(C)?E[N]=Object.fromEntries(Object.entries(C).map(([L,x])=>{if(typeof x!=\"function\"||!y)return[L,void 0];let k=o(x);return O.listeners.set(L,k),[L,{listener:k}]})):E[N]=ie(C,h+1);return E},c=u=>{if(!Array.isArray(u))return ie(u);let[m,h]=u,g=typeof h==\"string\"?n.get(h):void 0;if(m===0){let y=a(u[2],g!==void 0),O=ln(u[2])?u[2].id:void 0;if(g&&typeof O==\"string\"&&n.has(O)){let E=Number(u[3]);g.children.splice(Number.isInteger(E)&&E>=0&&E<=g.children.length?E:g.children.length,0,O)}return[m,ie(h),y,ie(u[3])]}if(m===1){let y=Number(u[2]);return g&&Number.isInteger(y)&&y>=0&&y<g.children.length&&s(g.children.splice(y,1)[0]),ie(u)}if(m===3&&u[4]===3){let y=String(u[2]),O=u[3],E=g&&typeof O==\"function\"?o(O):void 0,N=g?.listeners.get(y);return N!==void 0&&i(N),E===void 0?g?.listeners.delete(y):g.listeners.set(y,E),[m,ie(h),y,E===void 0?void 0:{listener:E},3]}return ie(u)};return{encode:u=>u.map(c),listener:u=>t.get(u)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var cn=\"graview-view-root\",qo=[\"value\",\"checked\",\"key\",\"pressed\",\"files\",\"refused\",\"x\",\"y\",\"width\",\"height\",\"deltaX\",\"deltaY\",\"deltaMode\",\"ctrlKey\",\"metaKey\",\"phase\",\"pointerId\",\"button\",\"pressure\",\"dx\",\"dy\",\"scale\",\"rotation\"],Yo=t=>t.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\"),Wo=t=>Object.freeze({html:t,toString:()=>t}),Qr=t=>typeof t==\"object\"&&t!==null&&typeof t.html==\"string\"&&Object.isFrozen(t),Jr=t=>t==null||t===!1?\"\":Array.isArray(t)?t.map(Jr).join(\"\"):Qr(t)?t.html:Yo(String(t));function eo(t){customElements.get(cn)||customElements.define(cn,dt);let e=Event,n=Zr(),r=new Set,o=new Set,i,s=[],a=new Set;for(let l of[\"closest\",\"matches\",\"dataset\"]){let f=()=>{throw new TypeError(`A view's element has no ${l}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute(\"data-\\u2026\").`)};l in Element.prototype||Object.defineProperty(Element.prototype,l,l===\"dataset\"?{get:f}:{value:f})}let c=document.createElement(cn),u=l=>{let f=b=>{for(let w of Array.from(b.childNodes)){if(w.nodeType!==1)continue;if($(w)===l)return w;let T=f(w);if(T)return T}};return f(c)},m=l=>{let f=u(l.target);if(!f)return;let b=new e(l.event,{bubbles:!0}),w={};for(let T of qo)l[T]!==void 0&&(w[T]=l[T]);for(let T of Object.keys(w))Object.defineProperty(b,T,{value:w[T],enumerable:!0});f.dispatchEvent(b);for(let T of o){if(T.type!==l.event)continue;let _;try{_=new Set(Array.from(c.querySelectorAll(T.selector)))}catch{continue}for(let z=f;z&&z!==c;z=z.parentNode)if(_.has(z)){T.listener(Object.freeze({type:l.event,target:f,element:z,...w}));break}}},h=l=>{if(l.type===\"dom-event\"&&typeof l.target==\"string\")return m(l);if(l.type===\"notice\")return t.warn(l.text);if(l.type!==\"props\")return;i=l.props;let f=t.now();for(let T of r)try{T(l.props)}catch(_){t.threw(_)}let b=t.now()-f,w=l.push;typeof w==\"number\"&&t.microtask(()=>t.microtask(()=>t.send({type:\"pushed\",push:w,ms:b})))},g;c.connect({mutate(l){g||(g=[],t.microtask(()=>{let f=g??[];g=void 0,t.send({type:\"render\",records:n.encode(f)})})),g.push(...l)},call:()=>{}});let y=l=>l.nodeType===1?l.getAttribute(\"data-key\")??l.getAttribute(\"id\"):null,O=(l,f)=>l.nodeType===f.nodeType&&(l.nodeType!==1||l.localName===f.localName&&l.namespaceURI===f.namespaceURI&&y(l)===y(f));function E(l,f){let b=Array.from(f.childNodes),w=0;for(let T of b){let _=l.childNodes[w]??null;if(_&&O(_,T)){N(_,T),w+=1;continue}if(y(T)!==null){let de=Array.from(l.childNodes).slice(w+1).find(Xe=>O(Xe,T));if(de){l.insertBefore(de,_),N(de,T),w+=1;continue}}l.insertBefore(T,_),w+=1}for(;l.childNodes.length>w;)l.removeChild(l.lastChild)}function N(l,f){if(l.nodeType!==1){l.data!==f.data&&(l.data=f.data);return}let b=l,w=f,T=C(b);for(let _ of b.getAttributeNames())w.hasAttribute(_)||(b.removeAttribute(_),T&&Ne(b,_,void 0));for(let _ of w.getAttributeNames()){let z=w.getAttribute(_);b.getAttribute(_)!==z&&b.setAttribute(_,z),T&&Ne(b,_,z)}E(b,w)}let C=l=>l.localName.includes(\"-\");function L(l){for(let f of Array.from(l.childNodes)){if(f.nodeType!==1)continue;let b=f;if(C(b))for(let w of b.getAttributeNames())Ne(b,w,b.getAttribute(w)??void 0);L(b)}}function x(l,f,b){for(let w of Array.from(l.childNodes)){if(w.nodeType!==1)continue;let T=w,_=T.localName,z=f||_.toLowerCase()===\"svg\",de=z?Xr(_):Object.prototype.hasOwnProperty.call(zn,_.toLowerCase())?_.toLowerCase():void 0;if(!de){b.add(`<${_}>`);continue}for(let Xe of T.getAttributeNames())(!$r(z?\"svg\":\"html\",de,Xe)||!z&&Wr[de]?.includes(Xe.toLowerCase()))&&b.add(`${de} ${Xe}`);x(T,z,b)}}function k(l){let f=document.createElement(\"div\"),b=Array.isArray(l)?l:[l];for(let T of b)if(T!=null)if(typeof T==\"string\"||Qr(T)){let _=document.createElement(\"div\");_.innerHTML=typeof T==\"string\"?T:T.html,f.append(...Array.from(_.childNodes))}else f.append(T);let w=new Set;x(f,!1,w),s=[...w],s.length>0&&t.warn(`The host will not draw: ${s.join(\", \")}`),L(f),E(c,f)}let j=[],We=new Set(Ir),mt=\"[]\",un=!1,Yn=()=>{un||(un=!0,t.microtask(()=>{un=!1;let l=[...new Map([...o].filter(b=>We.has(b.type)).map(b=>[`${b.type} ${b.selector}`,{event:b.type,selector:b.selector}])).entries()].sort(([b],[w])=>b<w?-1:b>w?1:0).map(([,b])=>b),f=JSON.stringify(l);f!==mt&&(mt=f,t.send({type:\"gestures\",bound:l}))}))},Wn=\"[]\",dn=!1,Xn=()=>{dn||(dn=!0,t.microtask(()=>{dn=!1;let l=[...new Set([...o].filter(b=>b.type===\"click\"&&typeof b.selector==\"string\").map(b=>b.selector))].sort().slice(0,200),f=JSON.stringify(l);f!==Wn&&(Wn=f,t.send({type:\"clicks\",selectors:l}))}))};return{view:Object.freeze({get props(){return i},onProps(l){return r.add(l),i&&l(i),()=>void r.delete(l)},render:k,style(l){typeof l!=\"string\"||j.includes(l)||(j.push(l),t.send({type:\"style\",sheets:[...j]}))},on(l,f,b){let w={type:l,selector:f,listener:b};return o.add(w),typeof l==\"string\"&&!a.has(l)&&(a.add(l),t.send({type:\"hears\",events:[l]})),We.has(l)&&Yn(),l===\"click\"&&Xn(),()=>{o.delete(w),We.has(l)&&Yn(),l===\"click\"&&Xn()}},act:(l,f={})=>t.act(l,f),navigate(l){if(typeof l==\"string\")return t.navigate(l);let f=on(l);f&&t.send(f)},html(l,...f){return Wo(l.reduce((b,w,T)=>b+w+(T<f.length?Jr(f[T]):\"\"),\"\"))},get refused(){return s},get hardening(){return t.hardening()}}),hear:h,find:l=>{try{let f=c.querySelectorAll(l)[0];return f?$(f):void 0}catch{return}},listened:l=>{let f=new Set;for(let b of o)if(b.type===l)try{for(let w of Array.from(c.querySelectorAll(b.selector))){let T=$(w);T&&f.add(T)}}catch{}return[...f]}}}var qn={removed:[],stuck:[],sealed:!1,worker:!1},Fn=Lr({listen(t){return _e.listen(t),()=>_e.unlisten(t)},fromHost:()=>!0,ready:t=>_e.post(t)},{onMessage:t=>to.hear(t)}),to=eo({send:t=>Fn.send(t),act:(t,e)=>Fn.guest.act(t,e),navigate:t=>Fn.guest.navigate(t),microtask:_e.microtask,now:_e.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>qn}),Xo=to.view;Object.defineProperty(globalThis,\"graview\",{value:Xo,enumerable:!0,configurable:!0,writable:!1});var jn=\"WorkerGlobalScope\"in globalThis?zr(globalThis,[\"graview\"]):qn;qn=jn;if(jn.stuck.length>0)throw new Error(`The view's worker could not be hardened: ${jn.stuck.join(\", \")} would not go.`);})();\n";
|
|
6
|
+
export const VIEW_RUNTIME = "\"use strict\";\n/*! @remote-dom/core and @remote-dom/polyfill — Copyright 2020-present, Shopify Inc. — MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest's worker runtime — Elastic License 2.0. */\n\"use strict\";(()=>{var Ae=globalThis,no=Ae.addEventListener,ro=Ae.removeEventListener,oo=Ae.postMessage,so=globalThis.queueMicrotask,dn=globalThis.performance,io=dn?dn.now.bind(dn):Date.now,_e={listen:t=>no.call(Ae,\"message\",t),unlisten:t=>ro.call(Ae,\"message\",t),post:t=>oo.call(Ae,t),microtask:t=>so.call(globalThis,t),now:()=>io()};var x=Symbol(\"name\"),fe=Symbol(\"prefix\"),me=Symbol(\"value\"),S=Symbol(\"ns\"),z=Symbol(\"owner\"),I=Symbol(\"owner_document\"),re=Symbol(\"attributes\"),D=Symbol(\"prev\"),p=Symbol(\"next\"),R=Symbol(\"child\"),Y=Symbol(\"parent\"),pe=Symbol(\"host\"),K=Symbol(\"data\"),Te=Symbol(\"listeners\"),fn=Symbol(\"isTrusted\"),Pe=Symbol(\"path\"),Ce=Symbol(\"stop_immediate_propagation\"),Me=Symbol(\"dispatching\"),ie=Symbol(\"content\"),k=Symbol(\"hooks\"),mt=Symbol(\"extensions\"),Oe=Symbol(\"hooks_dispatch\"),U=Symbol(\"is_connected\"),Ie=Symbol(\"create_element\"),$n=0,X=1,De=2,ke=3,Le=8,we=9,Kn=10,he=11,A=\"http://www.w3.org/1999/xhtml\",Z=\"http://www.w3.org/2000/svg\",Zn=\"http://www.w3.org/XML/1998/namespace\",$e=\"http://www.w3.org/2000/xmlns/\";function pt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function G(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function Qn(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function C(t,e){let n=globalThis.DOMException;if(typeof n==\"function\")return new n(t,e);let r=new Error(t);return r.name=e,r}var Jn=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,er=/[\\0\\t\\n\\f\\r />=]/u,ao=/[\\0\\t\\n\\f\\r />]/u;function ae(t){if(t==null)return null;let e=String(t);return e===\"\"?null:e}function tr(t){Jn.test(t)||pn(t)}function mn(t){(t===\"\"||er.test(t))&&pn(t)}function ht(t,e,n){let r=ae(t),o=String(e),s=o.indexOf(\":\"),i=s<0?null:o.slice(0,s),a=s<0?o:o.slice(s+1);if((i!=null&&(i===\"\"||ao.test(i))||(n===\"element\"?!Jn.test(a):a===\"\"||er.test(a)))&&pn(o),i!=null&&r==null)throw C(`A namespace is required for the prefix in \"${o}\"`,\"NamespaceError\");if(i===\"xml\"&&r!==Zn)throw C(\"The xml prefix requires the XML namespace\",\"NamespaceError\");if((o===\"xmlns\"||i===\"xmlns\")&&r!==$e)throw C(\"The xmlns name requires the XMLNS namespace\",\"NamespaceError\");if(r===$e&&o!==\"xmlns\"&&i!==\"xmlns\")throw C(\"The XMLNS namespace requires the xmlns name or prefix\",\"NamespaceError\");return{namespace:r,qualifiedName:o,prefix:i,localName:a}}function pn(t){throw C(`Invalid name: \"${t}\"`,\"InvalidCharacterError\")}var gt=0,yt=1,nr=2,hn=3,lo=typeof performance>\"u\"?Date.now:performance.now.bind(performance),B=class{static NONE=gt;static CAPTURING_PHASE=yt;static AT_TARGET=nr;static BUBBLING_PHASE=hn;timeStamp=lo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=gt;[Pe]=[];[Ce]=!1;[Me]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,fn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[fn]}composedPath(){return[...this[Pe]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[Ce]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function gn(t,e,n){if(t.cancelBubble)return;let o=e[Te]?.get(t.type)?.[n===yt?\"capture\":\"bubble\"];if(o)for(let s of[...o]){if(!o.has(s)||s.signal?.aborted)continue;t.eventPhase=t.target===e?nr:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i==\"object\"?i.handleEvent(t):i.call(e,t)}catch(a){setTimeout(co,0,a)}if(t[Ce])break}}function co(t){throw t}var Ke=[],Et=new WeakMap;function bt(t,e){let n=Et.get(t);n?n.push(e):Et.set(t,[e]),Ke[Ke.length-1].push(t)}function V(t){let e=[];Ke.push(e);let n;try{n=t()}catch(r){Ke.pop();try{rr(e)}catch{}throw r}return Ke.pop(),rr(e),n}function rr(t){let e,n=!1;for(let r of t){let o=Et.get(r);if(o){for(;o.length>0;){let s=o.shift();try{s()}catch(i){n||(e=i,n=!0)}}Et.delete(r)}}if(n)throw e}var Nt=[],Ze=[],yn=!1;function xe(t){for(let e of t)Nt.push(e),e[1]&&Ze.push(e[1]);if(!yn){yn=!0;try{let e,n=!1;for(let r=0;r<Nt.length;r++){let[o,s]=Nt[r];s&&Ze.splice(Ze.indexOf(s),1);try{o()}catch(i){n||(e=i,n=!0)}}if(n)throw e}finally{Nt.length=0,Ze.length=0,yn=!1}}}function Qe(t){let e=t;for(;e;){if(Ze.includes(e))return!0;e=e[Y]??e[pe]}return!1}var Je=Symbol(\"listenerRegistrations\"),ge=class{[Te]=void 0;[Je]=void 0;[I]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r==\"object\"&&r.capture===!0,s=typeof r==\"object\"&&r.once===!0,i=typeof r==\"object\"?r.signal:void 0;if(i?.aborted)return;let a=En(o),c=this[Je];c||(c=new Map,this[Je]=c);let u=c.get(e);u||(u={},c.set(e,u));let f=u[a];if(f||(f=new Map,u[a]=f),f.has(n))return;let h=this,g={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(g.normalizedListener=function(...M){if(g.signal?.aborted){Tt(h,g);return}return g.once&&Tt(h,g),typeof g.listener==\"object\"?g.listener.handleEvent(...M):g.listener.call(this,...M)});let y=this[Te];y||(y=new Map,this[Te]=y);let v=y.get(e);v||(v={},y.set(e,v));let b=v[a];if(b||(b=new Set,v[a]=b),f.set(n,g),b.add(g),i){let N=()=>{Tt(h,g)};g.abortListener=N,i.addEventListener(\"abort\",N,{once:!0})}this[I]?.defaultView[Oe].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return uo.call(this,e,n,r)}dispatchEvent(e){if(e[Me])throw C(\"Failed to execute 'dispatchEvent' on 'EventTarget': The event is already being dispatched.\",\"InvalidStateError\");e[Me]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[Pe]=n;for(let s=n.length;s--;)if(gn(e,n[s],yt),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let s=0;s<o.length;s++)if(gn(e,o[s],hn),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[Me]=!1,e.cancelBubble=!1,e[Ce]=!1,e.eventPhase=gt,e.currentTarget=null,e[Pe]=[]}}};function uo(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=En(!!r),s=this[Je]?.get(t)?.[o]?.get(e);s&&Tt(this,s)}function En(t){return t?\"capture\":\"bubble\"}function Tt(t,e){let n=En(e.capture),r=t[Je],o=r?.get(e.type);if(!o)return;let s=o[n];if(!s||s.get(e.listener)!==e)return;s.delete(e.listener),s.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener(\"abort\",e.abortListener);let i=t[Te],a=i?.get(e.type);if(!a)return;let c=a[n];c?.delete(e)&&(c.size===0&&delete a[n],!a.bubble&&!a.capture&&i?.delete(e.type),t[I]?.defaultView[Oe].removeEventListener?.(t,e.type,e.listener,e.capture))}var Q=class extends Array{item(e){return this[e]??null}};var tt=0,or=1,Tn=2,On=3,nt=4,sr=0,ir=1,xt=2,St=3,ar=4,Nn=5,lr=6,cr=7,Ot=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function fo(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let s=t[o];if(r){s===\"\\\\\"?o++:s===r&&(r=null);continue}if(s==='\"'||s===\"'\")r=s;else if(s===\"(\")n++;else if(s===\")\"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function W(t){throw C(`Invalid or unsupported selector: \"${t}\"`,\"SyntaxError\")}function vt(t,e){let n=typeof e==\"string\"?rt(e):[{combinator:nt,matchers:e}],r=null,o=t[R];return o&&n[0].matchers.length&&wn(o,n,s=>(r=s,!1)),r}function Rt(t,e){let n=typeof e==\"string\"?rt(e):[{combinator:nt,matchers:e}],r=new Q,o=t[R];return o&&n[0].matchers.length&&wn(o,n,s=>{r.push(s)}),r}function rt(t,e=!1,n=!1){let r={combinator:nt,matchers:[]},o=[r],s=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:(['\"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,i=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,\"\");i===\"\"&&W(t);let a=0,c;for(;c=s.exec(i);){c.index!==a&&W(t),c[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&W(t),c[1]===\">\"?r.combinator=or:c[1]===\"+\"?r.combinator=On:c[1]===\"~\"?r.combinator=Tn:r.combinator=tt,r={combinator:nt,matchers:[]},o.push(r));let u=c[8]?G(c[8]):c[2]||c[7];c[7]!=null&&!c[6]&&r.matchers.length>0&&W(t);let h,g=c[4]??c[5]??c[7];if(c[2]){Ot.test(u)||W(t);let y=c[5],v=y?.[0];if(c[3]==null&&(v==='\"'||v===\"'\")){let b=c[0].lastIndexOf(y);g=i.slice(c.index+b+1),s.lastIndex=i.length}else y!=null&&!Ot.test(y)&&W(t);h=ar}else c[6]?(Ot.test(u)||W(t),h=c[6]===\"#\"?xt:St):c[8]?h=c[9]==null?Nn:lr:c[7]===\"*\"?h=sr:c[7]&&Ot.test(c[7])?h=ir:W(t);c[9]?([g,s.lastIndex]=fo(i,s.lastIndex),u!==\"has\"&&u!==\"not\"&&W(t),u===\"has\"&&e&&W(t),rt(g,e||u===\"has\",u===\"has\")):h===Nn&&W(t),r.matchers.push({type:h,name:u,value:g}),a=s.lastIndex}return(a!==i.length||r.matchers.length===0)&&W(t),o}function mo(t,e){let n=rt(e);return n[0]?.matchers.length?et(t,n):!1}function po(t,e){let n=rt(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=tt,s={type:cr,name:\":scope\"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(s)):n.unshift({combinator:tt,matchers:[s]}),n.some(({matchers:c})=>c.length===0))return!1;let i=o===On||o===Tn?t[p]:t[R];if(!i)return!1;let a=!1;return wn(i,n,()=>(a=!0,!1),t),a}function wn(t,e,n,r){let o=[],s=t;for(;s;){if(j(s)){if(et(s,e,r)&&n(s)===!1)return!1;let i=s[R];if(i){let a=s[p];a&&o.push(a),s=i;continue}}s=s[p]??o.pop()??null}return!0}function et(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===nt){if(!wt(t,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(t,a,n)}let s=r===or||r===tt?Y:D,i=t[s];if(!i)return!1;if(r===tt||r===Tn){for(;i;){if(j(i)&&wt(i,o,n)){let a=e.slice(0,-1);if(a.length===0||et(i,a,n))return!0}i=i[s]}return!1}else{if(r===On&&!j(i)){for(;i&&!j(i);)i=i[s];if(!i)return!1}if(!j(i)||!wt(i,o,n))return!1;let a=e.slice(0,-1);return a.length===0||et(i,a,n)}}function bn(t,e){return t.getAttributeNS(null,t.namespaceURI===A?G(e):e)}function wt(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(wt(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case sr:return o===\"*\";case ir:return t.namespaceURI===A?t.localName===G(o):t.localName===o;case xt:return bn(t,\"id\")===o;case St:let i=bn(t,\"class\");return i?pt(i).includes(o):!1;case ar:let a=bn(t,o);return s==null?a!=null:a===s;case cr:return t===n;case Nn:W(`:${o}`);case lr:switch(o){case\"has\":return po(t,s||\"\");case\"not\":return!mo(t,s||\"\");default:W(`:${o}(${s})`)}}return!1}function ho(t){return t.nodeType===De}function ot(t){return K in t}function Sn(t){return t.nodeType===ke}function go(t){return t.nodeType===Le}function j(t){return t.nodeType===X}function xn(t){return t.nodeType===he}function mr(t){return\"appendChild\"in t}function At(t){let e=[],n=[t],r=new Set(n),o=new Set,s;for(;n.length>0;){let i=n.pop();if(r.delete(i),o.has(i))continue;let a=[];for(let c of it(i)){if(o.has(c)||(o.add(c),e.push(c),a.push(c),!j(c)))continue;let u=c[re];if(u)for(let h of u)o.has(h)||(o.add(h),e.push(h));let f=c[ie];f&&!o.has(f)&&!r.has(f)&&(r.add(f),n.push(f))}s??=a}return{nodes:e,treeNodes:s}}function st(t,e){for(let n of t)n[I]=e}function ur(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[I]=e,r}function dr(t,e){if(Sn(t))return e.createTextNode(t.data);if(go(t))return e.createComment(t.data);if(ho(t))return ur(t,e);if(j(t)){let n=e[Ie](t[x],t.namespaceURI,t[fe],t.localName);if(t[re])for(let r=0;r<t[re].length;r++){let o=t[re].item(r);n.attributes.setNamedItem(ur(o,e))}return n}else{if(xn(t))return e.createDocumentFragment();{let n=new t.constructor;return n[I]=e,n}}}function _t(t,e,n=t.ownerDocument){if(t.nodeType===we)throw C(\"Cannot clone a document node\",\"NotSupportedError\");let r=dr(t,n);if(!e||!j(t)&&!xn(t))return r;let o=new Set([t]),s=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;s.length>0;){let i=s[s.length-1],a,c;if(i.cloningContent)if(i.contentSource&&i.contentDestination)a=i.contentSource.childNodes[i.childIndex++],c=i.contentDestination;else{s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}else if(a=i.source.childNodes[i.childIndex++],c=i.destination,!a){if(i.cloningContent=!0,i.childIndex=0,j(i.source)&&i.source.namespaceURI===A&&i.source.localName===\"template\"){let f=i.source[ie];f&&(o.has(f)&&fr(),o.add(f),i.contentSource=f,i.contentDestination=i.destination.content)}continue}if(!a){s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}o.has(a)&&fr(),o.add(a);let u=dr(a,n);j(a)||xn(a)?s.push({source:a,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function fr(){throw new Error(\"Cannot clone a cyclic or repeated node graph\")}function Pt(t,e){let n=String(e);return n===\"\"?null:vt(t,[{type:xt,name:n}])}function Ct(t,e){let n=[...new Set(pt(String(e)))];return Rt(t,n.map(r=>({type:St,name:r})))}function Mt(t,e){let n=String(e),r=G(n),o=[];for(let s of It(t))j(s)&&(n===\"*\"||(s.namespaceURI===A?s[x]===r:s[x]===n))&&o.push(s);return o}function It(t){let e=[],n=[],r=t[R];for(;r;){e.push(r);let o=r[R],s=r[p];o?(s&&n.push(s),r=o):r=s??n.pop()??null}return e}function it(t){let e=It(t);return e.unshift(t),e}var J=class extends ge{nodeType=$n;[x]=\"\";[Y]=null;[pe]=null;[R]=null;[D]=null;[p]=null;[U]=!1;get[k](){return this[I].defaultView[Oe]}get localName(){return this[x]}get nodeName(){return this[x]}get ownerDocument(){return this[I]}get isConnected(){return this[U]}isDefaultNamespace(e){let n=ae(e);return yo(this)===n}get parentNode(){return this[Y]}set parentNode(e){}get parentElement(){let e=this[Y];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[D]}set previousSibling(e){}get nextSibling(){return this[p]}set nextSibling(e){}get previousElementSibling(){let e=this[D];for(;e&&e.nodeType!==1;)e=e[D];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[p];for(;e&&e.nodeType!==1;)e=e[p];return e}set nextElementSibling(e){}get firstChild(){return this[R]}set firstChild(e){}get lastChild(){let e=this[R];for(;e;){let n=e[p];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return ot(this)?this.data:null}set nodeValue(e){ot(this)&&(this.data=e)}get textContent(){if(ot(this))return this.data;let e=\"\";for(let n of It(this))Sn(n)&&(e+=n.data);return e}set textContent(e){if(ot(this))this.data=e;else if(mr(this)){let n=e==null?\"\":String(e);n===\"\"?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return _t(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function yo(t){let e=t;for(;e;)switch(e.nodeType){case X:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS($e,\"xmlns\");if(r!=null&&r.prefix==null)return ae(r.value);e=n.parentElement;break}case we:e=e.documentElement;break;case Kn:case he:return null;case De:e=e.ownerElement;break;default:e=e.parentElement}return null}var ee=Symbol(\"insertNode\"),An=Symbol(\"preflightInsertions\"),Dt=Symbol(\"replaceNode\"),ye=class extends J{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=Se(e),r=this.parentNode;if(r)return vn(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Rn(r,n,o);this.parentNode===r?r[Dt](i,this,o):r[ee](i,s,o)})}before(...e){let n=Se(e),r=this.parentNode;if(r)return vn(o=>{le(r,n);let s=this[D];for(;s&&n.includes(s);)s=s[D];let i=Rn(r,n,o);r[ee](i,s?s[p]:r.firstChild,o)})}after(...e){let n=Se(e),r=this.parentNode;if(r)return vn(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Rn(r,n,o);r[ee](i,s,o)})}};function vn(t){return V(()=>{let e=[];try{t(e)}catch(n){try{xe(e)}catch{}throw n}xe(e)})}function Se(t){return t.map(e=>e instanceof J?e:String(e))}function at(t,e){return e instanceof J?e:t.ownerDocument.createTextNode(String(e))}function le(t,e){for(let n of e){if(!(n instanceof J))continue;let r=t;for(;r;){if(r===n)throw C(\"Cannot insert a node into itself or one of its descendants\",\"HierarchyRequestError\");r=r[Y]??r[pe]}}}function Rn(t,e,n){let r=[];for(let s of e)r.push(at(t,s));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[An](r);for(let s of r)o[ee](s,null,n);return o}var kt,_n=0,pr=0,hr=0,gr=0,Ge=!1,Cn=!1,lt=!1,Lt=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!=\"function\")throw new TypeError(\"MutationObserver callback must be a function\");this.#t=e}observe(e,n={}){let r=Eo(n),o=kt??=new WeakMap,s=o.get(e);s==null&&(s=new Map,o.set(e,s));let i=s.get(this);i==null?_n++:Pn(i,-1),s.set(this,r),Pn(r,1),this.#e.add(e)}disconnect(){let e=kt;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),_n--,Pn(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,_n===0&&(kt=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function te(t){let e=kt;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[s,i]of o){if(r!==t.target&&!i.subtree)continue;let a=!1;if(t.type===\"attributes\"){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has(t.attributeName??\"\"))continue;a=i.attributeOldValue}else if(t.type===\"characterData\"){if(!i.characterData)continue;a=i.characterDataOldValue}else if(!i.childList)continue;n.set(s,n.get(s)===!0||a)}r=r.parentNode}for(let[o,s]of n)o.enqueue({addedNodes:t.addedNodes??new Q,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:s?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new Q,target:t.target,type:t.type})}function Gt(...t){let e=new Q;return e.push(...t),e}function Eo(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError(\"attributeOldValue and attributeFilter require attributes to be enabled\");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError(\"characterDataOldValue requires characterData to be enabled\");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError(\"MutationObserver options must enable childList, attributes, or characterData\");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function Pn(t,e){t.attributes&&(pr+=e),t.characterData&&(hr+=e),t.childList&&(gr+=e),Ge=pr>0,Cn=hr>0,lt=gr>0}var oe=class extends ye{childNodes=new Q;children=new Q;appendChild(e){return V(()=>this[ee](e,null))}insertBefore(e,n){return V(()=>this[ee](e,n||null))}append(...e){return V(()=>{let n=Se(e.filter(r=>r!=null));n.length>1&&le(this,n);for(let r of n)this[ee](at(this,r),null)})}prepend(...e){return V(()=>{let n=Se(e.filter(o=>o!=null));n.length>1&&le(this,n);let r=this.firstChild;for(let o of n)this[ee](at(this,o),r)})}replaceChildren(...e){return V(()=>{let n=Se(e.filter(o=>o!=null));le(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[ee](at(this,o),null)})}removeChild(e){return V(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw C(\"The node is not a child of this node\",\"NotFoundError\");let n=this[U]?it(e):void 0,r=e[D],o=e[p],s=Ht(this,e);if(n)for(let i of n)i[U]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,\"disconnectedCallback\"),xe(this.collectRemovalHookEffects(e,s))}replaceChild(e,n){return V(()=>this[Dt](e,n))}[Dt](e,n,r){if(le(this,[e]),n.parentNode!==this)throw C(\"The reference node is not a child of this parent\",\"NotFoundError\");let o=n[D],s=n[p],i=this.prepareInsertion(e),a=this[U]?it(n):void 0,c=new Set(i.map(({node:g})=>g)),u=s;for(;u&&c.has(u);)u=u[p];let f=Ht(this,n);if(a){for(let y of a)y[U]=!1;let g=new Set(a);for(let y of i)g.has(y.node)&&(y.shouldDisconnect=!1)}this.commitInsertion(i,u);let h=this[U];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),a&&this.enqueueTreeReactions(a,\"disconnectedCallback\"),this.enqueueInsertionReactions(i,h),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,f),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return Rt(this,e)}querySelector(e){return vt(this,e)}[ee](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[An](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(le(this,[e]),n&&n.parentNode!==this)throw C(\"The reference node is not a child of this parent\",\"NotFoundError\")}insertIntoValidated(e,n,r){e===n&&(n=e[p]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let s=this[U];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,s),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):xe(e)}prepareInsertion(e){let n=[];if(e.nodeType===he){let i=e[R];for(;i;)n.push(i),i=i[p]}else n.push(e);let r=this[U],o=this[I],s=[];for(let i of n){let a=i[U],c=a||r,u,f;if(i[I]===o)c&&(u=it(i));else{let h=At(i);f=h.nodes,c&&(u=h.treeNodes)}s.push({node:i,nodes:u,adoption:f,shouldDisconnect:a})}return s}commitInsertion(e,n){for(let s of e){let i=s.node[Y];if(i){let a=s.node[D],c=s.node[p];s.source={parent:i,index:Ht(i,s.node),previousSibling:a,nextSibling:c}}}for(let s of e){let i=this.attachChild(s.node,n);s.insertIndex=i.index,s.previousSibling=i.previousSibling,s.nextSibling=i.nextSibling}let r=this[I];for(let{adoption:s}of e)s&&st(s,r);let o=this[U];for(let{nodes:s}of e)if(s)for(let i of s)i[U]=o}attachChild(e,n){if(n){let s=n[D];e[p]=n,e[D]=s,s?s[p]=e:this[R]=e,n[D]=e}else{e[p]=null;let s=this[R];if(s){let i;for(;i=s[p];)s=i;s[p]=e,e[D]=s}else this[R]=e,e[D]=null}let r=j(e);e[Y]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let s=n;for(;s&&!j(s);)s=s[p];s?this.children.splice(this.children.indexOf(s),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[D],nextSibling:e[p]}}queueRemovalMutationRecord(e,n,r,o){lt&&te({type:\"childList\",target:e,removedNodes:Gt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(lt)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),te({type:\"childList\",target:this,addedNodes:Gt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==X||Qe(this)?[]:[[()=>this[k].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:s}=r;s?.parent.nodeType===X&&!Qe(s.parent)&&n.push([()=>s.parent[k].removeChild?.(s.parent,o,s.index)]),this.nodeType===X&&!Qe(this)&&n.push([()=>this[k].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,\"disconnectedCallback\"),n&&this.enqueueTreeReactions(o,\"connectedCallback\"))}}enqueueTreeReactions(e,n){Er(e,n)}};function yr(t,e,n,r){if(e.parentNode!==t)throw Error(\"not a child of this node\");let o=t[U]?n.treeNodes:void 0,s=e[D],i=e[p],a=Ht(t,e);if(o)for(let u of o)u[U]=!1;st(n.nodes,r),lt&&te({type:\"childList\",target:t,removedNodes:Gt(e),previousSibling:s,nextSibling:i}),o&&Er(o,\"disconnectedCallback\");let c=[];t.nodeType===X&&!Qe(t)&&c.push([()=>t[k].removeChild?.(t,e,a)]),xe(c)}function Ht(t,e){let n=e[D],r=e[p];n?n[p]=r:t[R]=r,r&&(r[D]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),j(e)&&t.children.splice(t.children.indexOf(e),1),e[Y]=null,e[p]=null,e[D]=null,o}function Er(t,e){for(let n of t){let r=n[e];typeof r==\"function\"&&bt(n,()=>r.call(n))}}function ct(t,e,n,r,o){let{observedAttributes:s}=t.constructor,{attributeChangedCallback:i}=t;i==null||s==null||!s.includes(e)||bt(t,()=>i.call(t,e,n,r,o))}var Ut=class{[R]=null;constructor(e){this[z]=e}getNamedItem(e){let n=String(e),r=this[z][S]===A?G(n):n,o=this[R];for(;o;){if(o.name===r)return o;o=o[p]}return null}getNamedItemNS(e,n){let r=ae(e),o=String(n),s=this[R];for(;s;){if(s.localName===o&&s[S]===r)return s;s=s[p]}return null}item(e){let n=this[R],r=0;for(;n;){if(r++===e)return n;n=n[p]}return null}get length(){let e=0,n=this[R];for(;n;)e++,n=n[p];return e}removeNamedItem(e){let n=String(e),r=this[z][S]===A?G(n):n;return V(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=ae(e),o=String(n);return V(()=>this.removeNamedItemImmediately(s=>s.localName===o&&s[S]===r))}removeNamedItemImmediately(e){let n=this[z],r=this[R],o=null;for(;r!=null;){if(e(r)){o&&(o[p]=r[p]),this[R]===r&&(this[R]=r[p]);let s=r.value;return r[p]=null,r[z]=null,Ge&&te({type:\"attributes\",target:n,attributeName:r.name,attributeNamespace:r[S],oldValue:s}),n[k].removeAttribute?.(n,r.name,r[S]),ct(n,r.localName,s,null,r[S]),r}o=r,r=r[p]}return null}setNamedItem(e){return V(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[z],r=e[z];if(r!=null&&r!==n)throw C(\"The attribute is already in use by another element.\",\"InUseAttributeError\");let o=null,s=this[R],i=null;for(;s;){if(s.localName===e.localName&&s[S]===e[S]){if(s===e)return s;i?i[p]=e:this[R]=e,e[p]=s[p],s[p]=null,o=s;break}i=s,s=s[p]}o==null&&(i?i[p]=e:this[R]=e),e[z]=n,e[I]=n[I],o&&(o[z]=null);let a=o==null||o.value!==e.value,c=o!=null&&o.name!==e.name;return a&&Ge&&te({type:\"attributes\",target:n,attributeName:e.name,attributeNamespace:e[S],oldValue:o?.value??null}),c&&n[k].removeAttribute?.(n,o.name,o[S]),(a||c)&&n[k].setAttribute?.(n,e.name,e.value,e[S]),a&&ct(n,e.localName,o?.value??null,e.value,e[S]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[R];for(;e;)yield e,e=e[p]}};var ve=class extends J{nodeType=De;[S]=null;[p]=null;[z]=null;constructor(e,n,r){super(),this[x]=e,this[me]=n,r&&(this[S]=r)}get nodeName(){return this[x]}set nodeName(e){}get name(){return this[x]}set name(e){}get localName(){if(this[S]==null)return this[x];let e=this[x].indexOf(\":\");return e<0?this[x]:this[x].slice(e+1)}get prefix(){if(this[S]==null)return null;let e=this[x].indexOf(\":\");return e<0?null:this[x].slice(0,e)}get value(){return this[me]}set value(e){let n=String(e),r=this[z];if(!r){this[me]=n;return}V(()=>{let o=this[me];this[me]=n,Ge&&o!==n&&te({type:\"attributes\",target:r,attributeName:this[x],attributeNamespace:this[S],oldValue:o}),this[k].setAttribute?.(r,this[x],n,this[S]),ct(r,this.localName,o,n,this[S])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[z]}get namespaceURI(){return this[S]}get specified(){return!0}};var bo={amp:\"&\",AMP:\"&\",apos:\"'\",gt:\">\",GT:\">\",lt:\"<\",LT:\"<\",quot:'\"',QUOT:'\"'},No=new Set([\"area\",\"base\",\"br\",\"col\",\"embed\",\"hr\",\"img\",\"input\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"]),To=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>'\"=/\\s]+(?:=(['\"])[^]*?\\3|=[^>'\"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,Tr=/\\s([^<>'\"=/\\n\\s]+)(?:=([\"'])([\\s\\S]*?)\\2|=([^>'\"\\n\\s]*)|)/g,Oo=\"|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|\",wo=/^(?:color|face|size)$/i;function br(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return bo[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function Or(t){return t.namespaceURI===A&&No.has(t.localName)}function Nr(t){let e=t.localName;return t[S]===Z&&(e===\"foreignObject\"||e===\"desc\"||e===\"title\")}function xo(t,e){if(Oo.includes(`|${t}|`))return!0;if(t!==\"font\")return!1;for(let n of e.matchAll(Tr))if(wo.test(n[1]))return!0;return!1}function Bt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],s=r;for(let i of t.matchAll(To)){let a=i[1];if(a){let c=i[2],u=G(a),f=o[o.length-1]?.element??e,h=f[S]===Z?Z:A;if(u===\"svg\")h=Z;else if(h===Z){if(Nr(f))h=A;else if(xo(u,c)){for(;o.length>0;){let v=o[o.length-1];if(v.element[S]!==Z||Nr(v.element))break;o.pop(),s=v.target}h=A}}let g=h===A?u:a,y=n[Ie](g,h,null,g);for(let v of c.matchAll(Tr))y.setAttribute(v[1],br(v[3]||v[4]||\"\"));if(s.append(y),Or(y)||h!==A&&i[4])continue;o.push({element:y,target:s}),s=h===A&&u===\"template\"?y.content:y}else if(i[5]){let c=G(i[5]);for(let u=o.length-1;u>=0;u--){let f=o[u],h=G(f.element[x]);if(h===c){s=f.target,o.length=u;break}if(f.element[S]===A&&h===\"template\")break}}else i[6]?s.append(n.createComment(i[6])):s.append(br(i[7]))}return r}function Vt(t){return xr([{type:\"content\",child:t[R]}])}function wr(t){return xr([{type:\"opening\",node:t}])}function xr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case\"opening\":{let r=n.node;switch(r.nodeType){case X:{let o=r;e.push(`<${o[x]}`);let s=o[re]?.[R];for(;s;){e.push(` ${s[x]}`);let a=s[me];a!==\"\"&&(a=String(a).replace(/&/g,\"&\").replace(/\"/g,\""\"),e.push(`=\"${a}\"`)),s=s[p]}if(e.push(\">\"),Or(o))break;let i=o.namespaceURI===A&&o.localName===\"template\"?o[ie]:o;t.push({type:\"closing\",name:o[x]}),t.push({type:\"content\",child:i?.[R]??null});break}case ke:{let o=r;e.push(o[K].replace(/&/g,\"&\").replace(/\"/g,\""\").replace(/</g,\"<\").replace(/>/g,\">\"));break}case Le:{let o=r;e.push(`<!--${o[K]}-->`);break}}break}case\"content\":{let r=n.child;r&&(t.push({type:\"content\",child:r[p]}),t.push({type:\"opening\",node:r}));break}case\"closing\":e.push(`</${n.name}>`);break}return e.join(\"\")}var H=class extends oe{nodeType=X;[S]=A;[fe]=null;get namespaceURI(){return this[S]}get prefix(){return this[fe]}get localName(){let e=this[fe];return e==null?this[x]:this[x].slice(e.length+1)}get nodeName(){return this[S]===A?Qn(this[x]):this[x]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,\"id\")??\"\"}set id(e){this.setAttribute(\"id\",String(e))}get slot(){return this.getAttributeNS(null,\"slot\")??\"\"}set slot(e){let n=String(e);this.getAttributeNS(null,\"slot\")!==n&&this.attributes.setNamedItem(new ve(\"slot\",n))}get attributes(){let e=this[re];return e||(e=new Ut(this),this[re]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Mt(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return Ct(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);mn(r);let s=this[S]===A?G(r):r,i=this.attributes.getNamedItemNS(null,s);i?i.value=o:this.attributes.setNamedItem(new ve(s,o))}setAttributeNS(e,n,r){let o=ae(e),s=String(n),i=String(r),a=ht(o,s,\"attribute\"),c=this.attributes.getNamedItemNS(a.namespace,a.localName);c?c.value=i:this.attributes.setNamedItemNS(new ve(a.qualifiedName,i,a.namespace))}toggleAttribute(e,n){let r=String(e);mn(r);let o=this[S]===A?G(r):r,s=this.attributes.getNamedItemNS(null,o),i=n===void 0?void 0:!!n;return s==null?i===!1?!1:(this.attributes.setNamedItem(new ve(o,\"\")),!0):i===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[S]===A?G(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return wr(this)}get innerHTML(){return Vt(this)}set innerHTML(e){if(e==null||e===\"\")this.replaceChildren();else{let n=Bt(String(e),this);this.replaceChildren(n)}}};var He=class t extends H{[S]=Z;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var Ee=class extends ye{[K]=\"\";constructor(e){super(),this[K]=e==null?\"\":String(e)}setData(e){let n=Cn,r=n?this[K]:null,o=\"\";e!=null&&(o=typeof e==\"string\"?e:String(e)),this[K]=o,n&&r!==o&&te({type:\"characterData\",target:this,oldValue:r}),this[k].setText?.(this,o)}get data(){return this[K]}set data(e){this.setData(e)}};var Ue=class extends Ee{nodeType=ke;[x]=\"#text\"};var Be=class extends Ee{nodeType=Le;[x]=\"#comment\"};var Ve=class extends oe{nodeType=he;[x]=\"#document-fragment\";[I]=typeof window<\"u\"?window.document:null;getElementById(e){return Pt(this,e)}};var Fe=class extends H{get content(){let e=this[ie];return e||(e=this.ownerDocument.createDocumentFragment(),e[pe]=this,this[ie]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(Bt(String(e),this))}get innerHTML(){let e=this[ie];return e?Vt(e):\"\"}};var Ft=class extends H{};var jt=class extends H{};var qt=class extends H{};var ut=class extends oe{nodeType=we;[x]=\"#document\";[U]=!0;constructor(e){super(),this.defaultView=e,this[I]=this,this.documentElement=Yt(new qt,this,\"html\"),this.body=Yt(new Ft,this,\"body\"),this.head=Yt(new jt,this,\"head\"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Ct(this,e)}createElement(e){let n=String(e);return tr(n),Mn(this,G(n))}createElementNS(e,n){let r=ht(e,n,\"element\");return Mn(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ie](e,n,r,o){return Mn(this,e,n,r,o)}createTextNode(e){let n=zt(new Ue(e),this);return this[k].createText?.(n,n.data),n}createComment(e){return zt(new Be(e),this)}createDocumentFragment(){return zt(new Ve,this)}createEvent(){return new B(\"\")}getElementById(e){return Pt(this,e)}getElementsByTagName(e){return Mt(this,e)}importNode(e,n){if(e.nodeType===we)throw C(\"Cannot import a document node\",\"NotSupportedError\");return _t(e,n,this)}adoptNode(e){if(e[I]===this)return e;let n=At(e);return V(()=>{let r=e.parentNode;return r?yr(r,e,n,this):st(n.nodes,this),e})}};function zt(t,e){return Object.defineProperty(t,I,{value:e,writable:!0,enumerable:!1}),t}function Mn(t,e,n=A,r=null,o=e){let s;if(n===Z)s=new He;else if(n===A&&o===\"template\")s=new Fe;else if(n===A){let i=t.defaultView.customElements.get(o);s=i?new i:new H}else s=new H;return Yt(s,t,e,n,r)}function Yt(t,e,n,r=A,o=null){return zt(t,e),Object.defineProperties(t,{[x]:{value:n},[S]:{value:r},[fe]:{value:o}}),e[k].createElement?.(t,r),t}var Wt=class extends B{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var Xt=class extends B{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var $t=class extends B{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var Kt=class extends B{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var Zt=class extends B{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var Qt=class extends B{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var Jt=class extends H{};var So=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,vo=new Set([\"annotation-xml\",\"color-profile\",\"font-face\",\"font-face-src\",\"font-face-uri\",\"font-face-format\",\"font-face-name\",\"missing-glyph\"]);function Sr(t){return So.test(t)&&!vo.has(t)}function vr(t){return C(`Invalid custom element name: \"${t}\"`,\"SyntaxError\")}var en=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Sr(e))throw vr(e);if(this.registry.has(e))throw C(`A custom element named \"${e}\" has already been defined`,\"NotSupportedError\");if(this.getName(n)!=null)throw C(\"This constructor has already been registered in this custom element registry\",\"NotSupportedError\");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let s of o)s(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!Sr(e))return Promise.reject(vr(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var Ro=[\"onerror\",\"onunhandledrejection\"],Ar=Symbol.for(\"@remote-dom/polyfill/global-property\");function _r(t){return Object.getOwnPropertyDescriptors(t)}function Pr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ge.prototype)))n!==\"constructor\"&&typeof r.value==\"function\"&&(r.value=In(r.value.bind(t)),e[n]=r);return e}function Cr(t){let e={};for(let n of Ro)e[n]={configurable:!0,enumerable:!0,get:In(()=>t[n]),set:In(r=>{t[n]=r})};return e}function Ao(t){return Object.assign(_r(t),Pr(t),Cr(t))}function In(t){return Object.defineProperty(t,Ar,{value:!0}),t}function Rr(t,e){for(let n of Reflect.ownKeys(e)){let r=_o(t,n);(r==null||Po(r))&&Object.defineProperty(t,n,e[n])}}function _o(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Po(t){return[t.value,t.get,t.set].some(e=>typeof e==\"function\"&&e[Ar]===!0)}var Re=class extends ge{[k]={};[mt]=[];[Oe]=Mo(this);name=\"\";window=this;parent=this;self=this;top=this;document=new ut(this);customElements=new en;location=globalThis.location;navigator=globalThis.navigator;Event=B;ErrorEvent=Xt;PromiseRejectionEvent=$t;ToggleEvent=Kt;FocusEvent=Zt;ClipboardEvent=Qt;EventTarget=ge;CustomEvent=Wt;Node=J;ParentNode=oe;ChildNode=ye;DocumentFragment=Ve;Document=ut;CharacterData=Ee;Comment=Be;Text=Ue;Element=H;HTMLElement=Jt;SVGElement=He;HTMLTemplateElement=Fe;MutationObserver=Lt;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)Co(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener(\"error\",this.#t),e&&typeof e==\"function\"?(this.#n=e,this.#t=n=>{e(n.message??\"Error\",n.filename,n.lineno,n.colno,n.error)},this.addEventListener(\"error\",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener(\"unhandledrejection\",this.#e),e&&typeof e==\"function\"?(this.#e=e,this.addEventListener(\"unhandledrejection\",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=_r(e),s=Object.assign(Pr(e),Cr(e));delete o.self,Object.defineProperties(globalThis,o),Rr(globalThis,s),typeof n>\"u\"||n===r&&n!==globalThis?Object.defineProperty(globalThis,\"self\",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),Rr(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,Ao(e))}};function Co(t,e){t[mt].push(e(t)??{})}function Mo(t){return{createElement:ce.bind(null,t,\"createElement\"),setAttribute:ce.bind(null,t,\"setAttribute\"),removeAttribute:ce.bind(null,t,\"removeAttribute\"),createText:ce.bind(null,t,\"createText\"),setText:ce.bind(null,t,\"setText\"),insertChild:ce.bind(null,t,\"insertChild\"),removeChild:ce.bind(null,t,\"removeChild\"),addEventListener:ce.bind(null,t,\"addEventListener\"),removeEventListener:ce.bind(null,t,\"removeEventListener\")}}function ce(t,e,...n){for(let s of t[mt])s[e]?.apply(s,n);let r=t[k];r[e]?.apply(r,n)}var tn=new Re;var Dn=\"~\";var be=new WeakMap;function je(t){return be.get(t)}var Hn=new WeakMap,Do=0;function $(t){let e=Hn.get(t);return e==null&&(e=String(Do++),nn(t,e)),e}function nn(t,e){Hn.set(t,e)}var Ln=new WeakMap;function ko(t){return Ln.get(t)}var Gn=new WeakMap;function Lo(t){let e=Gn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes(\"-\"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var Go=new WeakMap;function Ho(t){return Go.get(t)}function Un(t,e,n){let r=Ln.get(t);if(r==null&&(r={},Ln.set(t,r)),r[e]===n)return;r[e]=n;let o=be.get(t);o?.mutate([[3,$(t),e,n,1]])}function Ne(t,e,n){let r=Gn.get(t);if(r==null&&(r={},Gn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=be.get(t);o?.mutate([[3,$(t),e,n,2]])}function qe(t,e){if(be.get(t)!==e&&(be.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)qe(t.childNodes[r],e)}function rn(t){if(be.get(t)!=null&&(be.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)rn(t.childNodes[n])}function ze(t){let{nodeType:e}=t;switch(e){case 1:return{id:$(t),type:e,element:t.localName,properties:kn(ko(t)),attributes:kn(Lo(t)),eventListeners:kn(Ho(t)),children:Array.from(t.childNodes).map(ze)};case 3:case 8:return{id:$(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function kn(t){return t?{...t}:void 0}function Bn(t,e,...n){let r=Hn.get(t),o=be.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var Ye=tn[k];Ye.insertChild=(t,e,n)=>{let r=je(t);r!=null&&(qe(e,r),r.mutate([[0,$(t),ze(e),n]]))};Ye.removeChild=(t,e,n)=>{let r=je(t);r!=null&&(rn(e),r.mutate([[1,$(t),n]]))};Ye.setText=(t,e)=>{let n=je(t);n?.mutate([[2,$(t),e]])};Ye.setAttribute=(t,e,n)=>{t.tagName.includes(\"-\")||Ne(t,e,n)};Ye.removeAttribute=(t,e)=>{t.tagName.includes(\"-\")||Ne(t,e)};Re.setGlobal(tn);function on(t){if(typeof t==\"string\")return{type:\"navigate\",to:t};let{place:e,record:n,where:r,section:o}=t??{},s={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e==\"string\"?{type:\"navigate\",place:e,...s}:typeof n==\"string\"?{type:\"navigate\",to:n,...s}:void 0}var Ir=[\"wheel\",\"drag\",\"pinch\"];function Dr(t){let e=t;return typeof t==\"object\"&&t!==null&&e.graview===\"host-hello\"&&typeof e.nonce==\"string\"}function Lr(t,e={}){let n,r=\"\",o,s=0,i=new Set,a=new Map,c=[],u=b=>{n?n.postMessage({...b,nonce:r}):c.push(b)},f=b=>{let N=b.data;if(!(!N||typeof N!=\"object\")){if(N.type===\"props\"){o=N.props;for(let M of i)M(N.props)}else N.type===\"answer\"?(a.get(N.id)?.(N),a.delete(N.id)):N.type===\"event\"&&typeof N.listener==\"number\"?e.onEvent?.(N):N.type===\"heartbeat\"&&typeof N.beat==\"number\"&&u({type:\"heartbeat\",beat:N.beat});e.onMessage?.(N)}},h=()=>{},g=b=>{if(n||!t.fromHost(b)||!Dr(b.data)||b.data.protocol!==1)return;let N=b.ports[0];if(N){n=N,r=b.data.nonce,n.onmessage=f,n.start?.(),h();for(let M of c.splice(0))u(M)}};h=t.listen(g),t.ready({graview:\"guest-ready\",protocol:1});let y,v={get props(){return o},subscribe(b){return i.add(b),()=>i.delete(b)},act(b,N={}){let M=s+=1;return new Promise(L=>{a.set(M,L),u({type:\"act\",id:M,name:b,args:N})})},navigate(b){let N=on(b);N&&u(N)},size(b){u({type:\"size\",height:b})},autoSize(b){let N=b??globalThis.document?.documentElement,M=globalThis.ResizeObserver;if(!N||!M||typeof N.getBoundingClientRect!=\"function\")return()=>{};y?.disconnect();let L=new M(()=>v.size(Math.ceil(N.getBoundingClientRect().height)));return L.observe(N),y=L,()=>L.disconnect()},close(){y?.disconnect(),h(),n?.close(),i.clear()}};return{guest:v,send:u}}var Hr=[\"globalThis\",\"Infinity\",\"NaN\",\"undefined\",\"isFinite\",\"isNaN\",\"parseFloat\",\"parseInt\",\"decodeURI\",\"decodeURIComponent\",\"encodeURI\",\"encodeURIComponent\",\"escape\",\"unescape\",\"Object\",\"Function\",\"Array\",\"Number\",\"Boolean\",\"String\",\"Symbol\",\"BigInt\",\"Date\",\"Promise\",\"RegExp\",\"Math\",\"JSON\",\"Reflect\",\"Proxy\",\"Intl\",\"Error\",\"AggregateError\",\"EvalError\",\"RangeError\",\"ReferenceError\",\"SyntaxError\",\"TypeError\",\"URIError\",\"SuppressedError\",\"Map\",\"Set\",\"WeakMap\",\"WeakSet\",\"WeakRef\",\"FinalizationRegistry\",\"Iterator\",\"AsyncIterator\",\"DisposableStack\",\"AsyncDisposableStack\",\"ArrayBuffer\",\"SharedArrayBuffer\",\"DataView\",\"Atomics\",\"Int8Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"Int16Array\",\"Uint16Array\",\"Int32Array\",\"Uint32Array\",\"Float16Array\",\"Float32Array\",\"Float64Array\",\"BigInt64Array\",\"BigUint64Array\"],Ur=[\"window\",\"parent\",\"top\",\"document\",\"customElements\",\"Event\",\"ErrorEvent\",\"PromiseRejectionEvent\",\"ToggleEvent\",\"FocusEvent\",\"ClipboardEvent\",\"CustomEvent\",\"EventTarget\",\"Node\",\"ParentNode\",\"ChildNode\",\"DocumentFragment\",\"Document\",\"CharacterData\",\"Comment\",\"Text\",\"Element\",\"HTMLElement\",\"SVGElement\",\"HTMLTemplateElement\",\"MutationObserver\"],Br=[\"self\",\"postMessage\",\"setTimeout\",\"clearTimeout\",\"setInterval\",\"clearInterval\",\"queueMicrotask\",\"structuredClone\",\"crypto\",\"console\",\"DOMException\"],Vr=[\"TEMPORARY\",\"PERSISTENT\"],gl=Object.freeze([...Hr,...Ur,...Br,...Vr]),yl=Object.freeze([\"constructor\",\"__defineGetter__\",\"__defineSetter__\",\"hasOwnProperty\",\"__lookupGetter__\",\"__lookupSetter__\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"toString\",\"valueOf\",\"__proto__\",\"toLocaleString\"]),Gr=t=>typeof t==\"symbol\"?`[${t.description??\"symbol\"}]`:t;function Fr(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...Hr,...Ur,...Br,...e,\"constructor\",Symbol.toStringTag]),i=(w,P)=>{let q=Reflect.getOwnPropertyDescriptor(w,P);return q===void 0||!(\"value\"in q)||q.writable||q.configurable?!1:n.primitivesStay&&typeof P==\"symbol\"&&(typeof q.value!=\"object\"||q.value===null)&&typeof q.value!=\"function\"?!0:Vr.includes(P)&&typeof q.value==\"number\"},a=t,c=a.setTimeout,u=a.setInterval,f=a.crypto,h=(w,P)=>function(q,We,...ft){if(typeof q!=\"function\")throw new TypeError(`${P} takes a function: a guest view cannot run code from text`);return w.call(t,q,We,...ft)},g=f?Object.freeze({getRandomValues:w=>f.getRandomValues(w)}):void 0,y=a.document?.defaultView;if(y&&y!==a)for(let w of Reflect.ownKeys(y))typeof w==\"symbol\"||s.has(w)||Reflect.deleteProperty(y,w)||o.push(`window.${w}`);let v=[];for(let w=t;w&&w!==Object.prototype;w=Object.getPrototypeOf(w))v.push(w);for(let w of v)for(let P of Reflect.ownKeys(w))s.has(P)||(Reflect.deleteProperty(w,P)?r.push(Gr(P)):i(w,P)||o.push(Gr(P)));let b=()=>function(){throw new EvalError(\"A guest view cannot make code from text.\")},N=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let w of N){let P=b();Object.defineProperty(P,\"prototype\",{value:w,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(w,\"constructor\",{value:P,writable:!1,enumerable:!1,configurable:!1})||o.push(\"Function.prototype.constructor\"),w===Function.prototype&&Reflect.defineProperty(t,\"Function\",{value:P,writable:!0,enumerable:!1,configurable:!0})}let M=(w,P)=>{Reflect.defineProperty(t,w,{value:P,writable:!0,enumerable:!0,configurable:!0})||o.push(w)};M(\"setTimeout\",h(c,\"setTimeout\")),M(\"setInterval\",h(u,\"setInterval\")),g&&M(\"crypto\",g);for(let w of v.slice(1))Object.freeze(w);for(let w of Reflect.ownKeys(t)){let P=Reflect.getOwnPropertyDescriptor(t,w);Reflect.defineProperty(t,w,\"value\"in P?{...P,writable:!1,configurable:!1}:{...P,configurable:!1})}let L;try{L=Reflect.preventExtensions(t)}catch{L=!1}return{removed:r,stuck:o,sealed:L}}var dt=class extends HTMLElement{constructor(){super(),nn(this,Dn)}connect(e){if(je(this)===e||(qe(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,Dn,ze(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Un(this,e,n)}callRemoteMethod(e,...n){return Bn(this,e,...n)}};var d={},Vn={empty:!0},Uo={id:\"text\",class:\"text\",title:\"text\",lang:\"text\",dir:{oneOf:[\"ltr\",\"rtl\",\"auto\"]},hidden:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},role:\"text\",style:\"style\",translate:{oneOf:[\"yes\",\"no\"]},spellcheck:{oneOf:[\"true\",\"false\"]},draggable:{oneOf:[\"true\",\"false\"]},inert:\"boolean\"},Fn={div:d,section:d,article:d,aside:d,header:d,footer:d,nav:d,hgroup:d,search:d,address:d,figure:d,figcaption:d,blockquote:d,p:d,pre:d,hr:Vn,br:Vn,wbr:Vn,h1:d,h2:d,h3:d,h4:d,h5:d,h6:d,span:d,strong:d,em:d,b:d,i:d,u:d,s:d,small:d,mark:d,abbr:d,cite:d,q:d,code:d,kbd:d,samp:d,var:d,sub:d,sup:d,dfn:d,bdi:d,bdo:d,ruby:d,rt:d,rp:d,time:{attributes:{datetime:\"text\"}},data:{attributes:{value:\"text\"}},del:{attributes:{datetime:\"text\"}},ins:{attributes:{datetime:\"text\"}},a:{attributes:{href:\"link\"}},ul:d,menu:d,dl:d,dt:d,dd:d,ol:{attributes:{start:\"number\",reversed:\"boolean\",type:{oneOf:[\"1\",\"a\",\"A\",\"i\",\"I\"]}}},li:{attributes:{value:\"number\"}},table:d,caption:d,thead:d,tbody:d,tfoot:d,tr:d,colgroup:{attributes:{span:\"number\"}},col:{attributes:{span:\"number\"},empty:!0},th:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\",scope:{oneOf:[\"row\",\"col\",\"rowgroup\",\"colgroup\"]},abbr:\"text\"}},td:{attributes:{colspan:\"number\",rowspan:\"number\",headers:\"text\"}},details:{attributes:{open:\"boolean\",name:\"text\"}},summary:d,button:{attributes:{type:{oneOf:[\"button\"]},disabled:\"boolean\",name:\"text\",value:\"text\"}},input:{empty:!0,attributes:{type:{oneOf:[\"text\",\"search\",\"number\",\"range\",\"checkbox\",\"radio\",\"date\",\"time\",\"datetime-local\",\"month\",\"week\",\"color\",\"email\",\"tel\",\"url\"]},name:\"text\",value:\"text\",placeholder:\"text\",min:\"text\",max:\"text\",step:\"text\",checked:\"boolean\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",size:\"number\",pattern:\"text\",multiple:\"boolean\",inputmode:\"text\",enterkeyhint:\"text\"}},select:{attributes:{name:\"text\",disabled:\"boolean\",multiple:\"boolean\",required:\"boolean\",size:\"number\"}},option:{attributes:{value:\"text\",selected:\"boolean\",disabled:\"boolean\",label:\"text\"}},optgroup:{attributes:{label:\"text\",disabled:\"boolean\"}},textarea:{attributes:{name:\"text\",placeholder:\"text\",rows:\"number\",cols:\"number\",disabled:\"boolean\",readonly:\"boolean\",required:\"boolean\",maxlength:\"number\",minlength:\"number\",wrap:{oneOf:[\"soft\",\"hard\",\"off\"]}}},label:{attributes:{for:\"text\"}},fieldset:{attributes:{disabled:\"boolean\",name:\"text\"}},legend:d,output:d,meter:{attributes:{value:\"number\",min:\"number\",max:\"number\",low:\"number\",high:\"number\",optimum:\"number\"}},progress:{attributes:{value:\"number\",max:\"number\"}},img:{empty:!0,attributes:{src:\"image\",alt:\"text\",width:\"number\",height:\"number\",decoding:{oneOf:[\"async\",\"sync\",\"auto\"]}}},\"graview-video\":{empty:!0,attributes:{autoplay:\"boolean\",cover:\"boolean\"}}},Bo=[\"fill\",\"fill-opacity\",\"fill-rule\",\"stroke\",\"stroke-width\",\"stroke-linecap\",\"stroke-linejoin\",\"stroke-dasharray\",\"stroke-dashoffset\",\"stroke-opacity\",\"stroke-miterlimit\",\"opacity\",\"color\",\"display\",\"visibility\",\"transform-origin\",\"clip-path\",\"clip-rule\",\"marker-start\",\"marker-mid\",\"marker-end\",\"font-family\",\"font-size\",\"font-weight\",\"font-style\",\"text-anchor\",\"dominant-baseline\",\"alignment-baseline\",\"letter-spacing\",\"text-decoration\",\"paint-order\",\"vector-effect\",\"shape-rendering\",\"pointer-events\",\"stop-color\",\"stop-opacity\",\"overflow\",\"mask\",\"filter\",\"flood-color\",\"flood-opacity\",\"lighting-color\",\"color-interpolation-filters\"],Vo={id:\"text\",class:\"text\",style:\"style\",lang:\"text\",role:\"text\",tabindex:{oneOf:[\"-1\",\"0\"]},transform:\"geometry\",...Object.fromEntries(Bo.map(t=>[t,\"css\"]))},ue={x:\"geometry\",y:\"geometry\",width:\"geometry\",height:\"geometry\"},sn={viewBox:\"geometry\",preserveAspectRatio:\"geometry\"},jr={oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},qr={oneOf:[\"R\",\"G\",\"B\",\"A\"]},ne={...ue,in:\"text\",result:\"text\"},zr={gradientUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},gradientTransform:\"geometry\",spreadMethod:{oneOf:[\"pad\",\"reflect\",\"repeat\"]},href:\"fragment\"},Yr={svg:{attributes:{...ue,...sn}},g:d,defs:d,symbol:{attributes:{...ue,...sn,refX:\"geometry\",refY:\"geometry\"}},use:{attributes:{...ue,href:\"fragment\"}},title:d,desc:d,path:{attributes:{d:\"geometry\",pathLength:\"number\"}},rect:{attributes:{...ue,rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},circle:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",pathLength:\"number\"}},ellipse:{attributes:{cx:\"geometry\",cy:\"geometry\",rx:\"geometry\",ry:\"geometry\",pathLength:\"number\"}},line:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",pathLength:\"number\"}},polyline:{attributes:{points:\"geometry\",pathLength:\"number\"}},polygon:{attributes:{points:\"geometry\",pathLength:\"number\"}},text:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\",lengthAdjust:{oneOf:[\"spacing\",\"spacingAndGlyphs\"]}}},tspan:{attributes:{x:\"geometry\",y:\"geometry\",dx:\"geometry\",dy:\"geometry\",rotate:\"geometry\",textLength:\"geometry\"}},textPath:{attributes:{href:\"fragment\",startOffset:\"geometry\",method:{oneOf:[\"align\",\"stretch\"]},spacing:{oneOf:[\"auto\",\"exact\"]},side:{oneOf:[\"left\",\"right\"]}}},linearGradient:{attributes:{x1:\"geometry\",y1:\"geometry\",x2:\"geometry\",y2:\"geometry\",...zr}},radialGradient:{attributes:{cx:\"geometry\",cy:\"geometry\",r:\"geometry\",fx:\"geometry\",fy:\"geometry\",fr:\"geometry\",...zr}},stop:{attributes:{offset:\"geometry\"}},clipPath:{attributes:{clipPathUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},mask:{attributes:{...ue,maskUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},maskContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]}}},pattern:{attributes:{...ue,...sn,patternUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternContentUnits:{oneOf:[\"userSpaceOnUse\",\"objectBoundingBox\"]},patternTransform:\"geometry\",href:\"fragment\"}},marker:{attributes:{...sn,markerWidth:\"geometry\",markerHeight:\"geometry\",refX:\"geometry\",refY:\"geometry\",orient:\"geometry\",markerUnits:{oneOf:[\"strokeWidth\",\"userSpaceOnUse\"]}}},a:d,filter:{attributes:{...ue,filterUnits:jr,primitiveUnits:jr}},feBlend:{attributes:{...ne,in2:\"text\",mode:\"text\"}},feColorMatrix:{attributes:{...ne,type:{oneOf:[\"matrix\",\"saturate\",\"hueRotate\",\"luminanceToAlpha\"]},values:\"geometry\"}},feComponentTransfer:{attributes:ne},...Object.fromEntries([\"feFuncR\",\"feFuncG\",\"feFuncB\",\"feFuncA\"].map(t=>[t,{attributes:{type:{oneOf:[\"identity\",\"table\",\"discrete\",\"linear\",\"gamma\"]},tableValues:\"geometry\",slope:\"number\",intercept:\"number\",amplitude:\"number\",exponent:\"number\",offset:\"number\"}}])),feComposite:{attributes:{...ne,in2:\"text\",operator:{oneOf:[\"over\",\"in\",\"out\",\"atop\",\"xor\",\"lighter\",\"arithmetic\"]},k1:\"number\",k2:\"number\",k3:\"number\",k4:\"number\"}},feDisplacementMap:{attributes:{...ne,in2:\"text\",scale:\"number\",xChannelSelector:qr,yChannelSelector:qr}},feDropShadow:{attributes:{...ne,dx:\"number\",dy:\"number\",stdDeviation:\"geometry\"}},feFlood:{attributes:ne},feGaussianBlur:{attributes:{...ne,stdDeviation:\"geometry\",edgeMode:{oneOf:[\"duplicate\",\"wrap\",\"none\"]}}},feMerge:{attributes:ne},feMergeNode:{attributes:{in:\"text\"}},feMorphology:{attributes:{...ne,operator:{oneOf:[\"erode\",\"dilate\"]},radius:\"geometry\"}},feOffset:{attributes:{...ne,dx:\"number\",dy:\"number\"}},feTurbulence:{attributes:{...ue,result:\"text\",type:{oneOf:[\"fractalNoise\",\"turbulence\"]},baseFrequency:\"geometry\",numOctaves:\"number\",seed:\"number\",stitchTiles:{oneOf:[\"stitch\",\"noStitch\"]}}}};var Wr={section:[\"aria-label\",\"title\"]};function Fo(t){return/^aria-[a-z]+$/.test(t)}function jo(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var qo=new Map(Object.keys(Yr).map(t=>[t.toLowerCase(),t]));function Xr(t){return qo.get(t.toLowerCase())}function $r(t,e,n){let r=n.toLowerCase(),o=t===\"html\"?[Fn[e]?.attributes,Uo]:[Yr[e]?.attributes,Vo],s=t===\"svg\"&&r===\"xlink:href\"?\"href\":r;for(let i of o)if(i){for(let[a,c]of Object.entries(i))if(a.toLowerCase()===s)return{name:a,kind:c}}if(Fo(r)||jo(r))return{name:r,kind:\"text\"}}var Kr=\"~\",an=t=>typeof t==\"object\"&&t!==null&&!Array.isArray(t),se=(t,e=0)=>{if(t===null||typeof t==\"string\"||typeof t==\"number\"||typeof t==\"boolean\"||t===void 0)return t;if(!(e>64||typeof t!=\"object\"))return Array.isArray(t)?t.map(n=>se(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,se(r,e+1)]))};function Zr(){let t=new Map,e=new Map,n=new Map([[Kr,{children:[],listeners:new Map}]]),r=0,o=u=>{let f=e.get(u);return f===void 0&&(f=r+=1,e.set(u,f),t.set(f,{listener:u,count:0})),t.get(f).count+=1,f},s=u=>{let f=t.get(u);f&&(f.count-=1,!(f.count>0)&&(t.delete(u),e.delete(f.listener)))},i=u=>{let f=n.get(u);if(f){n.delete(u);for(let h of f.listeners.values())s(h);for(let h of f.children)i(h)}},a=(u,f,h=0)=>{if(!an(u)||h>64)return se(u);let g=typeof u.id==\"string\"?u.id:void 0,y=f&&g!==void 0&&g!==Kr;y&&i(g);let v={children:[],listeners:new Map};y&&n.set(g,v);let b={};for(let[N,M]of Object.entries(u))N===\"children\"&&Array.isArray(M)?b[N]=M.map(L=>{let w=a(L,y,h+1);return y&&an(L)&&typeof L.id==\"string\"&&v.children.push(L.id),w}):N===\"eventListeners\"&&an(M)?b[N]=Object.fromEntries(Object.entries(M).map(([L,w])=>{if(typeof w!=\"function\"||!y)return[L,void 0];let P=o(w);return v.listeners.set(L,P),[L,{listener:P}]})):b[N]=se(M,h+1);return b},c=u=>{if(!Array.isArray(u))return se(u);let[f,h]=u,g=typeof h==\"string\"?n.get(h):void 0;if(f===0){let y=a(u[2],g!==void 0),v=an(u[2])?u[2].id:void 0;if(g&&typeof v==\"string\"&&n.has(v)){let b=Number(u[3]);g.children.splice(Number.isInteger(b)&&b>=0&&b<=g.children.length?b:g.children.length,0,v)}return[f,se(h),y,se(u[3])]}if(f===1){let y=Number(u[2]);return g&&Number.isInteger(y)&&y>=0&&y<g.children.length&&i(g.children.splice(y,1)[0]),se(u)}if(f===3&&u[4]===3){let y=String(u[2]),v=u[3],b=g&&typeof v==\"function\"?o(v):void 0,N=g?.listeners.get(y);return N!==void 0&&s(N),b===void 0?g?.listeners.delete(y):g.listeners.set(y,b),[f,se(h),y,b===void 0?void 0:{listener:b},3]}return se(u)};return{encode:u=>u.map(c),listener:u=>t.get(u)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var ln=\"graview-view-root\",zo=[\"value\",\"checked\",\"key\",\"pressed\",\"files\",\"refused\",\"x\",\"y\",\"width\",\"height\",\"deltaX\",\"deltaY\",\"deltaMode\",\"ctrlKey\",\"metaKey\",\"phase\",\"pointerId\",\"button\",\"pressure\",\"dx\",\"dy\",\"scale\",\"rotation\"],Yo=t=>t.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\"),Wo=t=>Object.freeze({html:t,toString:()=>t}),Qr=t=>typeof t==\"object\"&&t!==null&&typeof t.html==\"string\"&&Object.isFrozen(t),Jr=t=>t==null||t===!1?\"\":Array.isArray(t)?t.map(Jr).join(\"\"):Qr(t)?t.html:Yo(String(t));function eo(t){customElements.get(ln)||customElements.define(ln,dt);let e=Event,n=Zr(),r=new Set,o=new Set,s,i=[],a=new Set;for(let l of[\"closest\",\"matches\",\"dataset\"]){let m=()=>{throw new TypeError(`A view's element has no ${l}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute(\"data-\\u2026\").`)};l in Element.prototype||Object.defineProperty(Element.prototype,l,l===\"dataset\"?{get:m}:{value:m})}let c=document.createElement(ln),u=l=>{let m=E=>{for(let O of Array.from(E.childNodes)){if(O.nodeType!==1)continue;if($(O)===l)return O;let T=m(O);if(T)return T}};return m(c)},f=l=>{let m=u(l.target);if(!m)return;let E=new e(l.event,{bubbles:!0}),O={};for(let T of zo)l[T]!==void 0&&(O[T]=l[T]);for(let T of Object.keys(O))Object.defineProperty(E,T,{value:O[T],enumerable:!0});m.dispatchEvent(E);for(let T of o){if(T.type!==l.event)continue;let _;try{_=new Set(Array.from(c.querySelectorAll(T.selector)))}catch{continue}for(let F=m;F&&F!==c;F=F.parentNode)if(_.has(F)){T.listener(Object.freeze({type:l.event,target:m,element:F,...O}));break}}},h=l=>{if(l.type===\"dom-event\"&&typeof l.target==\"string\")return f(l);if(l.type===\"notice\")return t.warn(l.text);if(l.type!==\"props\")return;s=l.props;let m=t.now();for(let T of r)try{T(l.props)}catch(_){t.threw(_)}let E=t.now()-m,O=l.push;typeof O==\"number\"&&t.microtask(()=>t.microtask(()=>t.send({type:\"pushed\",push:O,ms:E})))},g;c.connect({mutate(l){g||(g=[],t.microtask(()=>{let m=g??[];g=void 0,t.send({type:\"render\",records:n.encode(m)})})),g.push(...l)},call:()=>{}});let y=l=>l.nodeType===1?l.getAttribute(\"data-key\")??l.getAttribute(\"id\"):null,v=(l,m)=>l.nodeType===m.nodeType&&(l.nodeType!==1||l.localName===m.localName&&l.namespaceURI===m.namespaceURI&&y(l)===y(m));function b(l,m){let E=Array.from(m.childNodes),O=0;for(let T of E){let _=l.childNodes[O]??null;if(_&&v(_,T)){N(_,T),O+=1;continue}if(y(T)!==null){let de=Array.from(l.childNodes).slice(O+1).find(Xe=>v(Xe,T));if(de){l.insertBefore(de,_),N(de,T),O+=1;continue}}l.insertBefore(T,_),O+=1}for(;l.childNodes.length>O;)l.removeChild(l.lastChild)}function N(l,m){if(l.nodeType!==1){l.data!==m.data&&(l.data=m.data);return}let E=l,O=m,T=M(E);for(let _ of E.getAttributeNames())O.hasAttribute(_)||(E.removeAttribute(_),T&&Ne(E,_,void 0));for(let _ of O.getAttributeNames()){let F=O.getAttribute(_);E.getAttribute(_)!==F&&E.setAttribute(_,F),T&&Ne(E,_,F)}b(E,O)}let M=l=>l.localName.includes(\"-\");function L(l){for(let m of Array.from(l.childNodes)){if(m.nodeType!==1)continue;let E=m;if(M(E))for(let O of E.getAttributeNames())Ne(E,O,E.getAttribute(O)??void 0);L(E)}}function w(l,m,E){for(let O of Array.from(l.childNodes)){if(O.nodeType!==1)continue;let T=O,_=T.localName,F=m||_.toLowerCase()===\"svg\",de=F?Xr(_):Object.prototype.hasOwnProperty.call(Fn,_.toLowerCase())?_.toLowerCase():void 0;if(!de){E.add(`<${_}>`);continue}for(let Xe of T.getAttributeNames())(!$r(F?\"svg\":\"html\",de,Xe)||!F&&Wr[de]?.includes(Xe.toLowerCase()))&&E.add(`${de} ${Xe}`);w(T,F,E)}}function P(l){let m=document.createElement(\"div\"),E=Array.isArray(l)?l:[l];for(let T of E)if(T!=null)if(typeof T==\"string\"||Qr(T)){let _=document.createElement(\"div\");_.innerHTML=typeof T==\"string\"?T:T.html,m.append(...Array.from(_.childNodes))}else m.append(T);let O=new Set;w(m,!1,O),i=[...O],i.length>0&&t.warn(`The host will not draw: ${i.join(\", \")}`),L(m),b(c,m)}let q=[],We=new Set(Ir),ft=\"[]\",cn=!1,Yn=()=>{cn||(cn=!0,t.microtask(()=>{cn=!1;let l=[...new Map([...o].filter(E=>We.has(E.type)).map(E=>[`${E.type} ${E.selector}`,{event:E.type,selector:E.selector}])).entries()].sort(([E],[O])=>E<O?-1:E>O?1:0).map(([,E])=>E),m=JSON.stringify(l);m!==ft&&(ft=m,t.send({type:\"gestures\",bound:l}))}))},Wn=\"[]\",un=!1,Xn=()=>{un||(un=!0,t.microtask(()=>{un=!1;let l=[...new Set([...o].filter(E=>E.type===\"click\"&&typeof E.selector==\"string\").map(E=>E.selector))].sort().slice(0,200),m=JSON.stringify(l);m!==Wn&&(Wn=m,t.send({type:\"clicks\",selectors:l}))}))};return{view:Object.freeze({get props(){return s},onProps(l){return r.add(l),s&&l(s),()=>void r.delete(l)},render:P,style(l){typeof l!=\"string\"||q.includes(l)||(q.push(l),t.send({type:\"style\",sheets:[...q]}))},on(l,m,E){let O={type:l,selector:m,listener:E};return o.add(O),typeof l==\"string\"&&!a.has(l)&&(a.add(l),t.send({type:\"hears\",events:[l]})),We.has(l)&&Yn(),l===\"click\"&&Xn(),()=>{o.delete(O),We.has(l)&&Yn(),l===\"click\"&&Xn()}},act:(l,m={})=>t.act(l,m),navigate(l){if(typeof l==\"string\")return t.navigate(l);let m=on(l);m&&t.send(m)},html(l,...m){return Wo(l.reduce((E,O,T)=>E+O+(T<m.length?Jr(m[T]):\"\"),\"\"))},get refused(){return i},get hardening(){return t.hardening()}}),hear:h,find:l=>{try{let m=c.querySelectorAll(l)[0];return m?$(m):void 0}catch{return}},listened:l=>{let m=new Set;for(let E of o)if(E.type===l)try{for(let O of Array.from(c.querySelectorAll(E.selector))){let T=$(O);T&&m.add(T)}}catch{}return[...m]}}}var zn={removed:[],stuck:[],sealed:!1,worker:!1},jn=Lr({listen(t){return _e.listen(t),()=>_e.unlisten(t)},fromHost:()=>!0,ready:t=>_e.post(t)},{onMessage:t=>to.hear(t)}),to=eo({send:t=>jn.send(t),act:(t,e)=>jn.guest.act(t,e),navigate:t=>jn.guest.navigate(t),microtask:_e.microtask,now:_e.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>zn}),Xo=to.view;Object.defineProperty(globalThis,\"graview\",{value:Xo,enumerable:!0,configurable:!0,writable:!1});var qn=\"WorkerGlobalScope\"in globalThis?Fr(globalThis,[\"graview\"]):zn;zn=qn;if(qn.stuck.length>0)throw new Error(`The view's worker could not be hardened: ${qn.stuck.join(\", \")} would not go.`);})();\n";
|
|
7
7
|
//# sourceMappingURL=view-runtime.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-runtime.generated.js","sourceRoot":"","sources":["../../src/host/view-runtime.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAW,
|
|
1
|
+
{"version":3,"file":"view-runtime.generated.js","sourceRoot":"","sources":["../../src/host/view-runtime.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAW,kniEAAkniE,CAAC"}
|
package/dist/host/view.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnySchema, HostFiles, Principal, Store } from "@graview/core";
|
|
1
|
+
import type { AnySchema, HostFiles, PagesArrangement, Principal, Store } from "@graview/core";
|
|
2
2
|
import type { GuestPlace, GuestTheme } from "../protocol.js";
|
|
3
3
|
import { type WorkerViewManifest } from "./manifest.js";
|
|
4
4
|
import type { ViewRefusal } from "./open-draw.js";
|
|
@@ -27,7 +27,7 @@ export type WorkerViewFailure =
|
|
|
27
27
|
| "nodes"
|
|
28
28
|
/** It sent more than `messages` messages in `messageWindowMs`. */
|
|
29
29
|
| "flood"
|
|
30
|
-
/** It took longer than `pushMs
|
|
30
|
+
/** It took longer than `pushMs`, fitted to the device, to draw what it was shown. */
|
|
31
31
|
| "slow";
|
|
32
32
|
export interface WorkerViewLimits extends GuestLimits {
|
|
33
33
|
/** The longest a view's code may be, in bytes as UTF-8. 256 000 by default. */
|
|
@@ -41,14 +41,21 @@ export interface WorkerViewLimits extends GuestLimits {
|
|
|
41
41
|
/**
|
|
42
42
|
* How long the view may take over one push of what it is shown — its
|
|
43
43
|
* listeners' own time, as its runtime measures it, and the time until the
|
|
44
|
-
* runtime says it has drawn, as the host measures it — in milliseconds
|
|
45
|
-
* 1 000 by default. Time the host's own page was held
|
|
44
|
+
* runtime says it has drawn, as the host measures it — in milliseconds,
|
|
45
|
+
* on a fast device. 1 000 by default. Time the host's own page was held
|
|
46
|
+
* up is not counted. FITTED TO THE DEVICE (Roadmap
|
|
47
|
+
* f-view-budget-fits-device): the page measures how long its first view's
|
|
48
|
+
* worker took to start, once, and every view's `pushMs` and `drawMs` are
|
|
49
|
+
* this base times that pace — 1 for a start of 60 ms or under, up to 4.
|
|
50
|
+
* The sentence a stopped view is given names the budget it was held to.
|
|
46
51
|
*/
|
|
47
52
|
readonly pushMs?: number;
|
|
48
53
|
/**
|
|
49
54
|
* The most of any one second the host's page may spend drawing what the
|
|
50
|
-
* view sent, in milliseconds: past it the batch is left
|
|
51
|
-
* view is stopped as slow. 100 by default
|
|
55
|
+
* view sent, in milliseconds, on a fast device: past it the batch is left
|
|
56
|
+
* undrawn and the view is stopped as slow. 100 by default; fitted to the
|
|
57
|
+
* device as `pushMs` is. `messages`, `maxNodes` and the byte limits are
|
|
58
|
+
* never fitted: a flood is a flood on any device.
|
|
52
59
|
*/
|
|
53
60
|
readonly drawMs?: number;
|
|
54
61
|
}
|
|
@@ -88,8 +95,17 @@ export interface MountWorkerViewOptions<S extends AnySchema> {
|
|
|
88
95
|
readonly hrefOf?: (to: Arrival) => string | undefined;
|
|
89
96
|
/** The face's own way of going (`useGoTo`), read when the view goes: where `onNavigate` is not given, the arrival is gone to by it, and its `href` is a link's address. */
|
|
90
97
|
readonly goTo?: () => GoTo | undefined;
|
|
91
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* The app's named places — the registry's pictures, each over a kind —
|
|
100
|
+
* which the host reads through the one vocabulary (`placeVocabulary`,
|
|
101
|
+
* FR-235): with the Scene (`overview`), the home and each kind's list
|
|
102
|
+
* the viewer sees, it is what the view is told of (`props.places`) and
|
|
103
|
+
* may link to by slug. None handed, the vocabulary still names the
|
|
104
|
+
* Scene, the home and the lists.
|
|
105
|
+
*/
|
|
92
106
|
readonly places?: () => readonly GuestPlace[];
|
|
107
|
+
/** The app's arrangement (`views.arrangement()`): what the declaration calls the Scene, for the vocabulary's title of it. */
|
|
108
|
+
readonly arrangement?: () => PagesArrangement | undefined;
|
|
93
109
|
/**
|
|
94
110
|
* The app's look now. Read off the region by default: the `--graview-*`
|
|
95
111
|
* tokens it inherits, and the scheme of the nearest `data-graview-scheme`
|
|
@@ -192,6 +208,13 @@ export interface WorkerView {
|
|
|
192
208
|
readonly refused: readonly ViewRefusal[];
|
|
193
209
|
/** How tall what it drew is, in CSS pixels, as the host last measured it (`onContentHeight`); `undefined` before it draws. */
|
|
194
210
|
readonly contentHeight: number | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* How many times a fast device's time this page's views are given
|
|
213
|
+
* (Roadmap f-view-budget-fits-device): 1 on a fast page, up to 4; what
|
|
214
|
+
* the page measured once from its first worker's start, and `undefined`
|
|
215
|
+
* until this view's worker has said ready.
|
|
216
|
+
*/
|
|
217
|
+
readonly pace: number | undefined;
|
|
195
218
|
dispose(): void;
|
|
196
219
|
}
|
|
197
220
|
export { readTheme };
|