hypothesis 1.1189.0 → 1.1190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/boot.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";function s(s){s.setAttribute("data-hypothesis-asset","")}function t(t,e){var n=t.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,s(n),t.head.appendChild(n)}function e(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.esModule,o=void 0===r||r,a=n.forceReload,i=void 0!==a&&a,l=t.createElement("script");o&&(l.type="module"),i&&(e+="#ts=".concat(Date.now())),l.src=e,l.async=!1,s(l),t.head.appendChild(l)}function n(t,e,n,r){var o=t.createElement("link");o.rel=e,o.href=r,o.type="application/annotator+".concat(n),s(o),t.head.appendChild(o)}function r(t,e,n){var r=t.createElement("link");r.rel="preload",r.as=e,r.href=n,"fetch"===e&&(r.crossOrigin="anonymous"),s(r),t.head.appendChild(r)}function o(s,t){return s.assetRoot+"build/"+s.manifest[t]}function a(s){var t=s.match(/(https?):\/\/([^:/]+)/);return t?{protocol:t[1],hostname:t[2]}:null}function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=s.currentScript;return t?a(t.src):null}function l(s){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var e=i(t);if(!e)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",e.hostname)).replace("{current_scheme}",e.protocol)}var c={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?b1bac5","styles/annotator.css":"styles/annotator.css?a96c69","styles/annotator.css.map":"styles/annotator.css.map?a570a6","styles/highlights.css":"styles/highlights.css?6b4ebd","styles/highlights.css.map":"styles/highlights.css.map?241350","styles/katex.min.css":"styles/katex.min.css?e9b69c","styles/katex.min.css.map":"styles/katex.min.css.map?42d80c","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?c95edf","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?1d8ac6","styles/sidebar.css":"styles/sidebar.css?138c32","styles/sidebar.css.map":"styles/sidebar.css.map?e64bf1","styles/ui-playground.css":"styles/ui-playground.css?0417f3","styles/ui-playground.css.map":"styles/ui-playground.css.map?7c15fa","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?f830c0","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?f7e798","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?921f5f","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?0070d9","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?6a4c84"};if(function(){var s=[function(){return Object.fromEntries([])},function(){return new URL(document.location.href)},function(){return new Request("https://hypothes.is")},function(){return Element.prototype.attachShadow},function(){return CSS.supports("display: grid")},function(){return document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0}];try{return s.every((function(s){return s()}))}catch(s){return!1}}()){var p=function(s){for(var t={},e=s.querySelectorAll("script.js-hypothesis-config"),n=0;n<e.length;n++){var r=void 0;try{r=JSON.parse(e[n].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),r={}}Object.assign(t,r)}return t}(document),u=l(p.assetRoot||"https://cdn.hypothes.is/hypothesis/1.1189.0/");if(document.querySelector("hypothesis-app")){!function(s,n){r(s,"fetch",n.apiUrl),r(s,"fetch",n.apiUrl+"links");for(var a=0,i=["scripts/sidebar.bundle.js"];a<i.length;a++)e(s,o(n,i[a]),{esModule:!0});for(var l=0,c=["styles/katex.min.css","styles/sidebar.css"];l<c.length;l++)t(s,o(n,c[l]))}(document,{assetRoot:u,manifest:c,apiUrl:p.apiUrl})}else{var d=p,h=l(d.notebookAppUrl||"https://hypothes.is/notebook"),y=l(d.sidebarAppUrl||"https://hypothes.is/app.html");!function(s,a){if(!s.querySelector('link[type="application/annotator+html"]')){n(s,"sidebar","html",a.sidebarAppUrl),n(s,"notebook","html",a.notebookAppUrl),r(s,"style",o(a,"styles/annotator.css")),n(s,"hypothesis-client","javascript",a.assetRoot+"build/boot.js");for(var i=0,l=["scripts/annotator.bundle.js"];i<l.length;i++)e(s,o(a,l[i]),{esModule:!1});var c=[];void 0!==window.PDFViewerApplication&&c.push("styles/pdfjs-overrides.css"),c.push("styles/highlights.css");for(var p=0,u=c;p<u.length;p++)t(s,o(a,u[p]))}}(document,{assetRoot:u,manifest:c,notebookAppUrl:h,sidebarAppUrl:y})}}else console.warn("The Hypothesis annotation tool is not supported in this browser. See https://web.hypothes.is/help/which-browsers-are-supported-by-hypothesis/.")}();
1
+ !function(){"use strict";function s(s){s.setAttribute("data-hypothesis-asset","")}function t(t,e){var n=t.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,s(n),t.head.appendChild(n)}function e(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.esModule,o=void 0===r||r,a=n.forceReload,i=void 0!==a&&a,l=t.createElement("script");o&&(l.type="module"),i&&(e+="#ts=".concat(Date.now())),l.src=e,l.async=!1,s(l),t.head.appendChild(l)}function n(t,e,n,r){var o=t.createElement("link");o.rel=e,o.href=r,o.type="application/annotator+".concat(n),s(o),t.head.appendChild(o)}function r(t,e,n){var r=t.createElement("link");r.rel="preload",r.as=e,r.href=n,"fetch"===e&&(r.crossOrigin="anonymous"),s(r),t.head.appendChild(r)}function o(s,t){return s.assetRoot+"build/"+s.manifest[t]}function a(s){var t=s.match(/(https?):\/\/([^:/]+)/);return t?{protocol:t[1],hostname:t[2]}:null}function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=s.currentScript;return t?a(t.src):null}function l(s){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var e=i(t);if(!e)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",e.hostname)).replace("{current_scheme}",e.protocol)}var c={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?73b02b","styles/annotator.css":"styles/annotator.css?06256b","styles/annotator.css.map":"styles/annotator.css.map?fc23a9","styles/highlights.css":"styles/highlights.css?6b4ebd","styles/highlights.css.map":"styles/highlights.css.map?241350","styles/katex.min.css":"styles/katex.min.css?e9b69c","styles/katex.min.css.map":"styles/katex.min.css.map?42d80c","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?c95edf","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?1d8ac6","styles/sidebar.css":"styles/sidebar.css?d2d454","styles/sidebar.css.map":"styles/sidebar.css.map?3774ea","styles/ui-playground.css":"styles/ui-playground.css?e7ad8b","styles/ui-playground.css.map":"styles/ui-playground.css.map?3790c8","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?f830c0","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?84c080","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?99ff43","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?cfed99","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?6a4c84"};if(function(){var s=[function(){return Object.fromEntries([])},function(){return new URL(document.location.href)},function(){return new Request("https://hypothes.is")},function(){return Element.prototype.attachShadow},function(){return CSS.supports("display: grid")},function(){return document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0}];try{return s.every((function(s){return s()}))}catch(s){return!1}}()){var p=function(s){for(var t={},e=s.querySelectorAll("script.js-hypothesis-config"),n=0;n<e.length;n++){var r=void 0;try{r=JSON.parse(e[n].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),r={}}Object.assign(t,r)}return t}(document),u=l(p.assetRoot||"https://cdn.hypothes.is/hypothesis/1.1190.0/");if(document.querySelector("hypothesis-app")){!function(s,n){r(s,"fetch",n.apiUrl),r(s,"fetch",n.apiUrl+"links");for(var a=0,i=["scripts/sidebar.bundle.js"];a<i.length;a++)e(s,o(n,i[a]),{esModule:!0});for(var l=0,c=["styles/katex.min.css","styles/sidebar.css"];l<c.length;l++)t(s,o(n,c[l]))}(document,{assetRoot:u,manifest:c,apiUrl:p.apiUrl})}else{var d=p,h=l(d.notebookAppUrl||"https://hypothes.is/notebook"),y=l(d.sidebarAppUrl||"https://hypothes.is/app.html");!function(s,a){if(!s.querySelector('link[type="application/annotator+html"]')){n(s,"sidebar","html",a.sidebarAppUrl),n(s,"notebook","html",a.notebookAppUrl),r(s,"style",o(a,"styles/annotator.css")),n(s,"hypothesis-client","javascript",a.assetRoot+"build/boot.js");for(var i=0,l=["scripts/annotator.bundle.js"];i<l.length;i++)e(s,o(a,l[i]),{esModule:!1});var c=[];void 0!==window.PDFViewerApplication&&c.push("styles/pdfjs-overrides.css"),c.push("styles/highlights.css");for(var p=0,u=c;p<u.length;p++)t(s,o(a,u[p]))}}(document,{assetRoot:u,manifest:c,notebookAppUrl:h,sidebarAppUrl:y})}}else console.warn("The Hypothesis annotation tool is not supported in this browser. See https://web.hypothes.is/help/which-browsers-are-supported-by-hypothesis/.")}();
@@ -1,20 +1,20 @@
1
1
  {
2
- "scripts/annotator.bundle.js": "scripts/annotator.bundle.js?b1bac5",
3
- "styles/annotator.css": "styles/annotator.css?a96c69",
4
- "styles/annotator.css.map": "styles/annotator.css.map?a570a6",
2
+ "scripts/annotator.bundle.js": "scripts/annotator.bundle.js?73b02b",
3
+ "styles/annotator.css": "styles/annotator.css?06256b",
4
+ "styles/annotator.css.map": "styles/annotator.css.map?fc23a9",
5
5
  "styles/highlights.css": "styles/highlights.css?6b4ebd",
6
6
  "styles/highlights.css.map": "styles/highlights.css.map?241350",
7
7
  "styles/katex.min.css": "styles/katex.min.css?e9b69c",
8
8
  "styles/katex.min.css.map": "styles/katex.min.css.map?42d80c",
9
9
  "styles/pdfjs-overrides.css": "styles/pdfjs-overrides.css?c95edf",
10
10
  "styles/pdfjs-overrides.css.map": "styles/pdfjs-overrides.css.map?1d8ac6",
11
- "styles/sidebar.css": "styles/sidebar.css?138c32",
12
- "styles/sidebar.css.map": "styles/sidebar.css.map?e64bf1",
13
- "styles/ui-playground.css": "styles/ui-playground.css?0417f3",
14
- "styles/ui-playground.css.map": "styles/ui-playground.css.map?7c15fa",
11
+ "styles/sidebar.css": "styles/sidebar.css?d2d454",
12
+ "styles/sidebar.css.map": "styles/sidebar.css.map?3774ea",
13
+ "styles/ui-playground.css": "styles/ui-playground.css?e7ad8b",
14
+ "styles/ui-playground.css.map": "styles/ui-playground.css.map?3790c8",
15
15
  "scripts/annotator.bundle.js.map": "scripts/annotator.bundle.js.map?f830c0",
16
- "scripts/sidebar.bundle.js": "scripts/sidebar.bundle.js?f7e798",
17
- "scripts/ui-playground.bundle.js": "scripts/ui-playground.bundle.js?921f5f",
18
- "scripts/ui-playground.bundle.js.map": "scripts/ui-playground.bundle.js.map?0070d9",
16
+ "scripts/sidebar.bundle.js": "scripts/sidebar.bundle.js?84c080",
17
+ "scripts/ui-playground.bundle.js": "scripts/ui-playground.bundle.js?99ff43",
18
+ "scripts/ui-playground.bundle.js.map": "scripts/ui-playground.bundle.js.map?cfed99",
19
19
  "scripts/sidebar.bundle.js.map": "scripts/sidebar.bundle.js.map?6a4c84"
20
20
  }
@@ -127,7 +127,7 @@ this._sidebarRPC.on("setHighlightsVisible",(t=>{this.setHighlightsVisible(t,!1)}
127
127
  ;const n=No(t);if(!n)return;const i=en(n,null===(e=t.annotation)||void 0===e?void 0:e.$cluster);i.forEach((e=>{e._annotation=t.annotation})),t.highlights=i,this._hoveredAnnotations.has(t.annotation.$tag)&&rn(i,!0)};this.detach(t.$tag,!1),this._annotations.add(t.$tag),t.target||(t.target=[]);const n=await Promise.all(t.target.map((async e=>{if(!e.selector||!e.selector.some((t=>"TextQuoteSelector"===t.type)))return{annotation:t,target:e};let n;try{const i=await this._integration.anchor(this.element,e.selector),o=je.fromRange(i);n={annotation:t,target:e,range:o}}catch(i){n={annotation:t,target:e}}return n})));if(!this._annotations.has(t.$tag))return[];for(const t of n)e(t);return t.$orphan=n.length>0&&n.every((t=>t.target.selector&&!t.range)),this._updateAnchors(this.anchors.concat(n),!0),this._sidebarRPC.call("syncAnchoringStatus",t),n}detach(t,e=!0){this._annotations.delete(t);const n=[];for(const e of this.anchors)e.annotation.$tag!==t?n.push(e):e.highlights&&on(e.highlights);this._updateAnchors(n,e)}
128
128
  _updateAnchors(t,e){var n;this.anchors=t,null===(n=this._clusterToolbar)||void 0===n||n.scheduleClusterUpdates(),e&&this._bucketBarClient.update(this.anchors)}async createAnnotation({highlight:t=!1}={}){const e=this.selectedRanges;this.selectedRanges=[];const n=await this.getDocumentInfo(),i=this.element,o=(await Promise.all(e.map((t=>this._integration.describe(i,t))))).map((t=>({source:n.uri,selector:t}))),r={uri:n.uri,document:n.metadata,target:o,$highlight:t,$cluster:t?"user-highlights":"user-annotations",$tag:"a:"+Et(8)};return this._sidebarRPC.call("createAnnotation",r),this.anchor(r),ko(),r}_hoverAnnotations(t){this._hoveredAnnotations.clear(),t.forEach((t=>this._hoveredAnnotations.add(t)));for(const e of this.anchors)if(e.highlights){const n=t.includes(e.annotation.$tag);rn(e.highlights,n)}this._sidebarRPC.call("hoverAnnotations",t)}_scrollToClosestOffScreenAnchor(t,e){const n=function(t,e){let n=null,i=0;for(let r of t){var o;if(null===(o=r.highlights)||void 0===o||!o.length)continue
129
129
  ;const t=sn(r.highlights).top;"up"===e&&t>=137||"down"===e&&t<=window.innerHeight-22||(!n||"up"===e&&t>i||"down"===e&&t<i)&&(n=r,i=t)}return n}(this.anchors.filter((({annotation:e})=>t.includes(e.$tag))),e);n&&this._integration.scrollToAnchor(n)}_onSelection(t){const e=this._integration.getAnnotatableRange(t);if(!e)return void this._onClearSelection();const n=document.getSelection(),i=Ze(n),o=Qe(n);o?(this.selectedRanges=[e],this._hostRPC.call("textSelected"),this._adder.annotationsForSelection=So(),this._isAdderVisible=!0,this._adder.show(o,i)):this._onClearSelection()}_onClearSelection(){this._isAdderVisible=!1,this._adder.hide(),this.selectedRanges=[],this._informHostOnNextSelectionClear&&this._hostRPC.call("textUnselected"),this._informHostOnNextSelectionClear=!0}selectAnnotations(t,{toggle:e=!1,focusInSidebar:n=!1}={}){e?this._sidebarRPC.call("toggleAnnotationSelection",t):this._sidebarRPC.call("showAnnotations",t,n),this._sidebarRPC.call("openSidebar")}setHighlightsVisible(t,e=!0){!function(t,e){
130
- t.classList.toggle("hypothesis-highlights-always-on",e)}(this.element,t),this._highlightsVisible=t,e&&this._hostRPC.call("highlightsVisibleChanged",t)}get highlightsVisible(){return this._highlightsVisible}fitSideBySide(t){this._sideBySideActive=this._integration.fitSideBySide(t)}get sideBySideActive(){return this._sideBySideActive}get hoveredAnnotationTags(){return this._hoveredAnnotations}_handleShortcut(t){Jt(t,"Ctrl+Shift+H")&&this.setHighlightsVisible(!this._highlightsVisible)}}function To(t,e){const n=new URL(t),i=new URLSearchParams;return i.append("config",JSON.stringify(e)),n.hash=i.toString(),n.toString()}function Ro(t,e){var n;const i={};for(let[t,n]of Object.entries(e))"notebookAppUrl"!==t&&"sidebarAppUrl"!==t&&null!=n&&(i[t]=n);i.origin=new URL(t).origin,i.version="1.1189.0";const o=new URL(window.location.href);if(o.hash="",i.hostURL=o.toString(),Array.isArray(i.services)&&(null===(n=i.services)||void 0===n?void 0:n.length)>0){const t=i.services[0]
130
+ t.classList.toggle("hypothesis-highlights-always-on",e)}(this.element,t),this._highlightsVisible=t,e&&this._hostRPC.call("highlightsVisibleChanged",t)}get highlightsVisible(){return this._highlightsVisible}fitSideBySide(t){this._sideBySideActive=this._integration.fitSideBySide(t)}get sideBySideActive(){return this._sideBySideActive}get hoveredAnnotationTags(){return this._hoveredAnnotations}_handleShortcut(t){Jt(t,"Ctrl+Shift+H")&&this.setHighlightsVisible(!this._highlightsVisible)}}function To(t,e){const n=new URL(t),i=new URLSearchParams;return i.append("config",JSON.stringify(e)),n.hash=i.toString(),n.toString()}function Ro(t,e){var n;const i={};for(let[t,n]of Object.entries(e))"notebookAppUrl"!==t&&"sidebarAppUrl"!==t&&null!=n&&(i[t]=n);i.origin=new URL(t).origin,i.version="1.1190.0";const o=new URL(window.location.href);if(o.hash="",i.hostURL=o.toString(),Array.isArray(i.services)&&(null===(n=i.services)||void 0===n?void 0:n.length)>0){const t=i.services[0]
131
131
  ;t.onLoginRequest&&(t.onLoginRequestProvided=!0),t.onLogoutRequest&&(t.onLogoutRequestProvided=!0),t.onSignupRequest&&(t.onSignupRequestProvided=!0),t.onProfileRequest&&(t.onProfileRequestProvided=!0),t.onHelpRequest&&(t.onHelpRequestProvided=!0)}return i}function Lo({config:t,groupId:e}){return ht("iframe",{title:"Hypothesis annotation notebook",className:"h-full w-full border-0",allowFullScreen:!0,src:To(t.notebookAppUrl,{...Ro(t.notebookAppUrl,t),group:e})})}function Po({eventBus:t,config:e}){const[n,i]=K(0),[o,r]=K(!0),[s,a]=K(null),l=tt(""),c=tt(null);Q((()=>(l.current=document.body.style.overflow,()=>{document.body.style.overflow=l.current})),[]),Q((()=>{document.body.style.overflow=o?l.current:"hidden"}),[o]),Q((()=>{const e=t.createEmitter();return e.subscribe("openNotebook",(t=>{r(!1),i((t=>t+1)),a(t)})),c.current=e,()=>{e.destroy()}}),[t]);return null===s?null:ht("div",{className:h("fixed z-max top-0 left-0 right-0 bottom-0 p-3 bg-black/50",{hidden:o}),"data-testid":"notebook-outer",
132
132
  children:ht("div",{className:"relative w-full h-full","data-testid":"notebook-inner",children:[ht("div",{className:"absolute right-0 m-3",children:ht(Se,{title:"Close the Notebook",onClick:()=>{var t;r(!0),null===(t=c.current)||void 0===t||t.publish("closeNotebook")},variant:"dark",children:ht(oe,{className:"w-4 h-4"})})}),ht(Lo,{config:e,groupId:s},n)]})})}class Oo{constructor(t,e,n){this._outerContainer=document.createElement("hypothesis-notebook"),t.appendChild(this._outerContainer),this.shadowRoot=Ie(this._outerContainer),B(ht(Po,{eventBus:e,config:n}),this.shadowRoot)}destroy(){B(null,this.shadowRoot),this._outerContainer.remove()}}var Mo={},Io={get exports(){return Mo},set exports(t){Mo=t}};!function(t){!function(e,n,i,o){var r,s=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),l=Math.round,c=Math.abs,h=Date.now;function u(t,e,n){return setTimeout(v(t,n),e)}function d(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var i
133
133
  ;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==o)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function p(t,n,i){var o="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=e.console&&(e.console.warn||e.console.log);return r&&r.call(e.console,o,i),t.apply(this,arguments)}}r="function"!=typeof Object.assign?function(t){if(t===o||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==o&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var g=p((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===o)&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),m=p((function(t,e){return g(t,e,!0)
@@ -635,7 +635,7 @@ function $v({onLogin:e,onSignUp:t}){return as().isLoggedIn()?null:Qr(qv,{icon:"r
635
635
  r.selectTab(e)},u="annotation"===o&&0===a&&!l,d="note"===o&&0===i;return Qr("div",{className:Kn("space-y-3 pb-[9px]"),children:[Qr("div",{className:"flex gap-x-6 theme-clean:ml-[15px]",role:"tablist",children:[Qr(Gv,{count:a,isWaitingToAnchor:l,isSelected:"annotation"===o,label:"Annotations",onSelect:()=>c("annotation"),children:"Annotations"}),Qr(Gv,{count:i,isWaitingToAnchor:l,isSelected:"note"===o,label:"Page notes",onSelect:()=>c("note"),children:"Page Notes"}),s>0&&Qr(Gv,{count:s,isWaitingToAnchor:l,isSelected:"orphan"===o,label:"Orphans",onSelect:()=>c("orphan"),children:"Orphans"})]}),"note"===o&&n.enableExperimentalNewNoteButton&&Qr("div",{className:"flex justify-end",children:Qr(jc,{"data-testid":"new-note-button",onClick:()=>e.createPageNote(),variant:"primary",style:Io(["ctaBackgroundColor"],n),children:[Qr(fc,{}),"New note"]})}),!t&&d&&Qr(Yc,{"data-testid":"notes-unavailable-message",variant:"flat",children:Qr(Wc,{classes:"text-center",children:"There are no page notes in this group."})
636
636
  }),!t&&u&&Qr(Yc,{"data-testid":"annotations-unavailable-message",variant:"flat",children:Qr(Wc,{classes:"text-center !space-y-1",children:[Qr("p",{children:"There are no annotations in this group."}),Qr("p",{children:["Create one by selecting some text and clicking the"," ",Qr(il,{className:"w-em h-em inline m-0.5 -mt-0.5",title:"Annotate"})," ","button."]})]})})]})}),["annotationsService","settings"]);var Yv=Do((function({frameSync:e,onLogin:t,onSignUp:n,loadAnnotationsService:r,streamer:o}){const i=Ps(),a=as(),s=a.focusedGroupId(),l=a.hasAppliedFilter()||a.hasSelectedAnnotations(),c=a.isLoading(),u=a.isLoggedIn(),d=a.directLinkedAnnotationId(),h=d?a.findAnnotationByID(d):void 0,p=h?Es(h):"annotation",m=a.searchUris(),f=a.hasSidebarOpened(),g=a.profile().userid,v=!(c||!d)&&!h,b=a.directLinkedGroupFetchFailed(),_=v||b,w=!_,y=!_&&!l,x=d&&!u&&!v&&!c,k=jr(s);Hr((()=>{if(!k.current||k.current!==s){if(k.current){const e=a.focusState().active;a.clearSelection(),e&&a.toggleFocusMode(!0)}k.current=s}
637
637
  s&&m.length&&r.load({groupId:s,uris:m})}),[a,r,s,g,m]),Hr((()=>{h&&!1===h.$orphan?(e.hoverAnnotation(h),e.scrollToAnnotation(h),a.selectTab(p)):h&&a.selectTab(p)}),[p,e,h,a]);const S=a.hasFetchedProfile();return Hr((()=>{S&&(f||u)&&o.connect({applyUpdatesImmediately:!1})}),[S,u,f,o]),Qr("div",{children:[Qr("h2",{className:"sr-only",children:"Annotations"}),w&&Qr(Iv,{}),Qr($v,{onLogin:t,onSignUp:n}),v&&Qr(Lv,{errorType:"annotation",onLoginRequest:t,showClearSelection:!0}),b&&Qr(Lv,{errorType:"group",onLoginRequest:t}),y&&Qr(Vv,{isLoading:c}),Qr(Mv,{threads:i.children}),x&&Qr(Ov,{onLogin:t})]})}),["frameSync","loadAnnotationsService","streamer"]);var Wv=Do((function({api:e,toastMessenger:t}){const n=as(),r=n.routeParams().q,o=qr((async t=>{const r={_separate_replies:!0,offset:0,limit:20,...ws(t)};try{n.annotationFetchStarted();const t=await e.search(r);n.addAnnotations([...t.rows,...t.replies])}finally{n.annotationFetchFinished()}}),[e,n]);return Hr((()=>{n.setSortKey("Newest"),n.clearAnnotations(),
638
- o(r).catch((e=>{t.error(`Unable to fetch annotations: ${e.message}`)}))}),[r,o,n,t]),Qr(Mv,{threads:Ps().children})}),["api","toastMessenger"]);class Kv{constructor(e,t,n=window){var r,o,i,a;const s="N/A";let l=s;e.userid&&(l=e.userid,e.displayName&&(l=`${e.displayName} (${l})`)),this.version="1.1189.0",this.userAgent=n.navigator.userAgent,this.urls=t.map((e=>e.uri)).join(", ")||s,this.fingerprint=null!==(r=null===(o=t[0])||void 0===o||null===(i=o.metadata)||void 0===i?void 0:i.documentFingerprint)&&void 0!==r?r:s,this.account=l,this.timestamp=(new Date).toString();const c=null===(a=t[0])||void 0===a?void 0:a.segment;if(c){const e=[];c.cfi&&e.push(["CFI",c.cfi]),c.url&&e.push(["URL",c.url]),this.segment=e.map((([e,t])=>`${e}: ${t}`)).join(", ")}}asFormattedString(){return`Version: ${this.version}\nUser Agent: ${this.userAgent}\nURL: ${this.urls}\nFingerprint: ${this.fingerprint}\nAccount: ${this.account}\nDate: ${this.timestamp}\n`}asEncodedURLString(){return encodeURIComponent(this.asFormattedString())}}
638
+ o(r).catch((e=>{t.error(`Unable to fetch annotations: ${e.message}`)}))}),[r,o,n,t]),Qr(Mv,{threads:Ps().children})}),["api","toastMessenger"]);class Kv{constructor(e,t,n=window){var r,o,i,a;const s="N/A";let l=s;e.userid&&(l=e.userid,e.displayName&&(l=`${e.displayName} (${l})`)),this.version="1.1190.0",this.userAgent=n.navigator.userAgent,this.urls=t.map((e=>e.uri)).join(", ")||s,this.fingerprint=null!==(r=null===(o=t[0])||void 0===o||null===(i=o.metadata)||void 0===i?void 0:i.documentFingerprint)&&void 0!==r?r:s,this.account=l,this.timestamp=(new Date).toString();const c=null===(a=t[0])||void 0===a?void 0:a.segment;if(c){const e=[];c.cfi&&e.push(["CFI",c.cfi]),c.url&&e.push(["URL",c.url]),this.segment=e.map((([e,t])=>`${e}: ${t}`)).join(", ")}}asFormattedString(){return`Version: ${this.version}\nUser Agent: ${this.userAgent}\nURL: ${this.urls}\nFingerprint: ${this.fingerprint}\nAccount: ${this.account}\nDate: ${this.timestamp}\n`}asEncodedURLString(){return encodeURIComponent(this.asFormattedString())}}
639
639
  function Zv(e){const n=t(e);return!(null==n||!n.authority)&&n.authority!==e.authDomain}function Xv({commandName:e,icon:t}){return Qr("span",{className:"whitespace-nowrap","data-testid":"instruction",children:[Qr(t,{className:Kn("w-em h-em","mx-1 -mt-1","text-color-text-light inline")}),Qr("em",{"data-testid":"command-name",children:e})]})}var Jv=Do((function({settings:e}){const t=!Zv(e);return Qr("ol",{className:"list-decimal pl-10 space-y-2",children:[Qr("li",{children:["To create an annotation, select text and then select the"," ",Qr(Xv,{icon:il,commandName:"Annotate"})," button."]}),Qr("li",{children:["To create a highlight (",Qr(Xc,{href:"https://web.hypothes.is/help/why-are-highlights-private-by-default/",target:"_blank",underline:"always",children:"visible only to you"}),"), select text and then select the"," ",Qr(Xv,{icon:Ql,commandName:"Highlight"})," button."]}),t&&Qr("li",{
640
640
  children:["To annotate in a private group, select the group from the groups dropdown. Don't see your group? Ask the group creator to send a"," ",Qr(Xc,{href:"https://web.hypothes.is/help/how-to-join-a-private-group/",target:"_blank",underline:"always",children:"join link"}),"."]}),Qr("li",{children:["To reply to an annotation, select the"," ",Qr(Xv,{icon:Nc,commandName:"Reply"})," button."]})]})}),["settings"]);function Qv({label:e,children:t,classes:n}){return Qr(nr,{children:[Qr("dt",{className:"col-span-1 sm:text-right font-medium",children:e}),Qr("dd",{className:Kn("col-span-1 sm:col-span-3 text-color-text-light break-words",n),children:t})]})}var eb=Do((function({toastMessenger:e,versionData:t}){return Qr("div",{className:"space-y-4",children:[Qr("dl",{className:"grid grid-cols-1 sm:grid-cols-4 sm:gap-x-2",children:[Qr(Qv,{label:"Version",children:t.version}),Qr(Qv,{label:"User Agent",children:t.userAgent}),Qr(Qv,{classes:Kn("break-all"),label:"URL",children:t.urls}),Qr(Qv,{label:"Fingerprint",
641
641
  children:t.fingerprint}),t.segment&&Qr(Qv,{label:"Segment",children:t.segment}),Qr(Qv,{label:"Account",children:t.account}),Qr(Qv,{label:"Date",children:t.timestamp})]}),Qr("div",{className:"flex items-center justify-center",children:Qr(jc,{onClick:()=>{try{uu(t.asFormattedString()),e.success("Copied version info to clipboard")}catch(t){e.error("Unable to copy version info")}},icon:Nl,children:"Copy version details"})})]})}),["toastMessenger"]);function tb({children:e,onClick:t}){return Qr(Jc,{color:"brand",onClick:t,underline:"hover",children:Qr("div",{className:"flex items-center gap-x-1",children:[e,Qr(cl,{className:"w-em h-em"})]})})}function nb({linkText:e,url:t}){return Qr("div",{className:"flex-1 flex items-center justify-center border-r last-of-type:border-r-0 text-md font-medium",children:Qr(Xc,{color:"text-light",href:t,target:"_blank",children:Qr("div",{className:"flex items-center gap-x-2",children:[Qr("span",{children:e})," ",Qr(jl,{className:"w-3 h-3"})]})})})}var rb=Do((function({session:e}){
@@ -665,7 +665,7 @@ className:"grow flex items-center justify-end",children:[e&&Qr(nr,{children:[h>0
665
665
  t.text=n.text,t.permissions=n.isPrivate?ou(e.user):iu(e.user,e.group)),{...e,...t}}_initialize(e,t=new Date){const n=this._store.getDefault("annotationPrivacy"),r=this._store.focusedGroupId(),o=this._store.profile();if(!r)throw new Error("Cannot create annotation without a group");const i=o.userid;if(!i)throw new Error("Cannot create annotation when logged out");const s=o.user_info,l="s:"+a(8),c=Object.assign({created:t.toISOString(),group:r,permissions:au(i,r,n),tags:[],text:"",updated:t.toISOString(),user:i,user_info:s,$tag:l,hidden:!1,links:{},document:{title:""}},e);return Si(c)&&(c.permissions=ou(i)),c}create(e,t=new Date){const n=this._initialize(e,t);this._store.addAnnotations([n]),this._store.deleteNewAndEmptyDrafts(),Si(n)||this._store.createDraft(n,{tags:n.tags,text:n.text,isPrivate:!wi(n)}),Ci(n)?this._store.selectTab("note"):Ei(n)&&this._store.selectTab("annotation"),(n.references||[]).forEach((e=>{this._store.setExpanded(e,!0)}))}createPageNote(){const e=this._store.mainFrame()
666
666
  ;if(!this._store.isLoggedIn())return void this._store.openSidebarPanel("loginPrompt");if(!e)return;const t={target:[],uri:e.uri};this.create(t)}async delete(e){await this._api.annotation.delete({id:e.id}),this._activity.reportActivity("delete",e),this._store.removeAnnotations([e])}async flag(e){await this._api.annotation.flag({id:e.id}),this._activity.reportActivity("flag",e),this._store.updateFlagStatus(e.id,!0)}reply(e,t){const n={group:e.group,permissions:wi(e)?iu(t,e.group):ou(t),references:(e.references||[]).concat(e.id),target:[{source:e.target[0].source}],uri:e.uri};this.create(n)}async save(e){let t,n;const r=this._applyDraftChanges(e);let o;bi(e)?(t=this._api.annotation.update({id:e.id},r),n="update"):(t=this._api.annotation.create({},r),n="create"),this._store.annotationSaveStarted(e);try{o=await t,this._activity.reportActivity(n,o)}finally{this._store.annotationSaveFinished(e)}for(let[t,n]of Object.entries(e))if(t.startsWith("$")){o[t]=n}return this._store.removeDraft(e),
667
667
  this._store.addAnnotations([o]),o}}Pb.$inject=["annotationActivity","api","store"];class Hb{constructor(e){this._rpc=e.rpc,this._reportConfig=e.reportActivity}reportActivity(e,t){if(!this._rpc||!this._reportConfig)return;let n;switch(e){case"create":n=new Date(t.created).toISOString();break;case"update":n=new Date(t.updated).toISOString();break;default:n=(new Date).toISOString()}const r={date:n,annotation:{id:t.id,isShared:su(t.permissions)}};this._reportConfig.events.includes(e)&&function(e,t,n,r=[]){const o={jsonrpc:"2.0",method:n,params:r};e.postMessage(o,t)}(this._rpc.targetFrame,this._rpc.origin,this._reportConfig.method,[e,r])}}Hb.$inject=["settings"];class Fb extends Error{constructor(e,t,n=""){let r="Network request failed";t&&(r+=` (${t.status})`),n&&(r+=`: ${n}`),super(r),this.url=e,this.response=t,this.reason=n}}async function jb(e,t){let n,r;try{n=await fetch(e,t)}catch(t){throw new Fb(e,null,t.message)}if(204===n.status)return null;try{r=await n.json()}catch(t){
668
- throw new Fb(e,n,"Failed to parse response")}var o;if(!n.ok)throw new Fb(e,n,null===(o=r)||void 0===o?void 0:o.reason);return r}function Ub(e){const t={};for(let[n,r]of Object.entries(e))n.startsWith("$")||(t[n]=r);return t}function qb(e){return"url"in e}function $b(e,t,{getAccessToken:n,getClientId:r,onRequestStarted:o,onRequestFinished:i}){return async(a,s)=>{o();try{const[o,l]=await Promise.all([e,n()]),c=function(e,t){let n=e;const r=t.split(".");for(let[e,t]of r.entries()){const o=n[t];if(!o||qb(o)){if(o&&e===r.length-1)return o;break}n=o}return null}(o,t);if(!c)throw new Error(`Missing API route: ${t}`);const u={"Content-Type":"application/json","Hypothesis-Client-Version":"1.1189.0"};l&&(u.Authorization="Bearer "+l);const d=r();d&&(u["X-Client-Id"]=d);const{url:h,unusedParams:p}=za(c.url,a),m=new URL(h);for(let[e,t]of Object.entries(p)){Array.isArray(t)||(t=[t]);for(let n of t)null!=n&&m.searchParams.append(e,n.toString())}return await jb(m.toString(),{body:s?JSON.stringify(Ub(s)):null,headers:u,
668
+ throw new Fb(e,n,"Failed to parse response")}var o;if(!n.ok)throw new Fb(e,n,null===(o=r)||void 0===o?void 0:o.reason);return r}function Ub(e){const t={};for(let[n,r]of Object.entries(e))n.startsWith("$")||(t[n]=r);return t}function qb(e){return"url"in e}function $b(e,t,{getAccessToken:n,getClientId:r,onRequestStarted:o,onRequestFinished:i}){return async(a,s)=>{o();try{const[o,l]=await Promise.all([e,n()]),c=function(e,t){let n=e;const r=t.split(".");for(let[e,t]of r.entries()){const o=n[t];if(!o||qb(o)){if(o&&e===r.length-1)return o;break}n=o}return null}(o,t);if(!c)throw new Error(`Missing API route: ${t}`);const u={"Content-Type":"application/json","Hypothesis-Client-Version":"1.1190.0"};l&&(u.Authorization="Bearer "+l);const d=r();d&&(u["X-Client-Id"]=d);const{url:h,unusedParams:p}=za(c.url,a),m=new URL(h);for(let[e,t]of Object.entries(p)){Array.isArray(t)||(t=[t]);for(let n of t)null!=n&&m.searchParams.append(e,n.toString())}return await jb(m.toString(),{body:s?JSON.stringify(Ub(s)):null,headers:u,
669
669
  method:c.method})}finally{i()}}}class Gb{constructor(e,t,n){const r=e.routes();this._clientId=null;const o=()=>this._clientId,i=e=>$b(r,e,{getAccessToken:()=>t.getAccessToken(),getClientId:o,onRequestStarted:n.apiRequestStarted,onRequestFinished:n.apiRequestFinished});this.search=i("search"),this.annotation={create:i("annotation.create"),delete:i("annotation.delete"),get:i("annotation.read"),update:i("annotation.update"),flag:i("annotation.flag"),hide:i("annotation.hide"),unhide:i("annotation.unhide")},this.group={member:{delete:i("group.member.delete")},read:i("group.read")},this.groups={list:i("groups.read")},this.profile={groups:{read:i("profile.groups.read")},read:i("profile.read"),update:i("profile.update")}}setClientId(e){this._clientId=e}}Gb.$inject=["apiRoutes","auth","store"];var Vb={},Yb={get exports(){return Vb},set exports(e){Vb=e}},Wb={};function Kb(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},
670
670
  this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var Zb=Kb;Kb.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},Kb.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},Kb.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1)}var r=this
671
671
  ;return this._timer=setTimeout((function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout((function(){r._operationTimeoutCb(r._attempts)}),r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)}),n),this._options.unref&&this._timer.unref(),!0},Kb.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},Kb.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},Kb.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},Kb.prototype.start=Kb.prototype.try,Kb.prototype.errors=function(){return this._errors},Kb.prototype.attempts=function(){return this._attempts},Kb.prototype.mainError=function(){
@@ -702,8 +702,8 @@ null!==(n=this._socket)&&void 0!==n&&n.isConnected()&&this._socket.send(t)}async
702
702
  var t;this._updateImmediately=null===(t=e.applyUpdatesImmediately)||void 0===t||t,this._reconnectSetUp||(this._reconnectSetUp=!0,d_(this._store.subscribe,(()=>this._store.profile().userid),(()=>this._reconnect()))),this._socket||await this._reconnect()}}A_.$inject=["store","apiRoutes","auth","groups","session"];class T_{constructor(e){this._storage=e}filter(e,t=null){const n=this._storage.getObject("hypothesis.user.tags.list")||[];let r=0;return n.filter((n=>{if(null!==t&&r>=t)return!1;const o=n.split(/\W+/),i=new RegExp(`^${p(e)}`,"i");return!(!o.some((e=>e.match(i)))&&!n.match(i))&&(++r,!0)}))}store(e){const t=this._storage.getObject("hypothesis.user.tags.map")||{};e.forEach((e=>{t[e]?(t[e].count+=1,t[e].updated=Date.now()):t[e]={text:e,count:1,updated:Date.now()}})),this._storage.setObject("hypothesis.user.tags.map",t);const n=Object.keys(t).sort(((e,n)=>t[e].count!==t[n].count?t[n].count-t[e].count:e.localeCompare(n)));this._storage.setObject("hypothesis.user.tags.list",n)}}T_.$inject=["localStorage"]
703
703
  ;class M_{constructor(e){this._store=e}forceVisible(e){e.children.forEach((e=>{this.forceVisible(e)})),e.visible||this._store.setForcedVisible(e.id,!0)}}M_.$inject=["store"];class L_{constructor(e){this._store=e}dismiss(e){const t=this._store.getToastMessage(e);t&&!t.isDismissed&&(this._store.updateToastMessage({...t,isDismissed:!0}),setTimeout((()=>{this._store.removeToastMessage(e)}),500))}_addMessage(e,t,{autoDismiss:n=!0,moreInfoURL:r="",visuallyHidden:o=!1}={}){if(this._store.hasToastMessage(e,t))return;const i=a(10),s={type:e,id:i,message:t,moreInfoURL:r,visuallyHidden:o};this._store.addToastMessage({isDismissed:!1,...s}),n&&setTimeout((()=>{this.dismiss(i)}),5e3)}error(e,t){this._addMessage("error",e,t)}success(e,t){this._addMessage("success",e,t)}notice(e,t){this._addMessage("notice",e,t)}}L_.$inject=["store"];class z_{constructor(){this._providers=new Map,this._instances=new Map,this._constructing=new Set}get(e){if(this._instances.has(e))return this._instances.get(e);const t=this._providers.get(e)
704
704
  ;if(!t)throw new Error(`"${e}" is not registered`);if("value"in t)return this._instances.set(e,t.value),t.value;if(this._constructing.has(e))throw new Error(`Encountered a circular dependency when constructing "${e}"`);this._constructing.add(e);try{const n=[],r="class"in t&&t.class.$inject||"factory"in t&&t.factory.$inject||[];for(const t of r)try{n.push(this.get(t))}catch(n){const r=new Error(`Failed to construct dependency "${t}" of "${e}": ${n.message}`);throw r.cause=n,r}let o;if(t.class)o=new t.class(...n);else{o=(0,t.factory)(...n)}return this._instances.set(e,o),o}finally{this._constructing.delete(e)}}register(e,t){if("function"==typeof t)t={class:t};else if(!function(e){return"object"==typeof e&&null!==e&&("value"in e||"function"==typeof e.class||"function"==typeof e.factory)}(t))throw new Error(`Invalid provider for "${e}"`);return this._providers.set(e,t),this}run(e){const t="Injector.run";this.register(t,{factory:e});try{return this.get(t)}finally{this._instances.delete(t),this._providers.delete(t)
705
- }}}const R_=function(e){for(var t={},n=e.querySelectorAll("script.js-hypothesis-config"),r=0;r<n.length;r++){var o=void 0;try{o=JSON.parse(n[r].textContent||"")}catch(e){console.warn("Could not parse settings from js-hypothesis-config tags",e),o={}}Object.assign(t,o)}return t}(document),I_=function(t){const{version:n,origin:r}=e(t.location.href);return"1.1189.0"!==n?(console.warn(`The Hypothesis sidebar is using a different version (1.1189.0) than the host page (${n}). It may not work.`),!1):"null"===t.origin?(console.warn("Hypothesis has been loaded in a sandboxed frame. This is not supported."),!1):t.origin===r||(console.warn(`The Hypothesis sidebar is running in a different origin (${t.origin}) than expected (${r}). It may not work.`),!1)}(window);function O_(e,t){e.setClientId(t.clientId)}function D_(e,t,n){e.load(),t.load(),n.sync()}function B_(e,t,n){e.init(),t.init(),n.init()}function P_(e,t){"sidebar"===t.route()&&e.connect()}R_.sentry&&I_&&function(t){const n=function(){let e=import.meta.url
706
- ;return e?new URL(e).origin:null}(),r=n?[n]:void 0;Dn({dsn:t.dsn,environment:t.environment,allowUrls:r,ignoreErrors:["Network request failed","Object Not Found Matching Id"],release:"1.1189.0",beforeSend:(e,t)=>{if(Hn>=5)return u("Client-side Sentry quota reached. No further Sentry events will be sent"),null;++Hn;try{const n=t&&t.originalException;n instanceof Event&&(e.extra||(e.extra={}),Object.assign(e.extra,{type:n.type,detail:n.detail,isTrusted:n.isTrusted}))}catch(e){}return e}});try{bt("host_config",e(window.location.href))}catch(e){}bt("loaded_scripts",Array.from(document.querySelectorAll("script")).filter((e=>!e.type||e.type.match(/javascript|module/))).map((e=>e.src||"<inline>"))),Pn(((e,t)=>{vt(e,{tags:{context:t}})}))}(R_.sentry),function(e){e.addEventListener("click",(e=>{const t=e.target;if("A"===t.tagName){const e=t;"_blank"===e.target&&(e.rel="noopener")}}))}(document.body),O_.$inject=["api","streamer"],D_.$inject=["groups","session","router"],
705
+ }}}const R_=function(e){for(var t={},n=e.querySelectorAll("script.js-hypothesis-config"),r=0;r<n.length;r++){var o=void 0;try{o=JSON.parse(n[r].textContent||"")}catch(e){console.warn("Could not parse settings from js-hypothesis-config tags",e),o={}}Object.assign(t,o)}return t}(document),I_=function(t){const{version:n,origin:r}=e(t.location.href);return"1.1190.0"!==n?(console.warn(`The Hypothesis sidebar is using a different version (1.1190.0) than the host page (${n}). It may not work.`),!1):"null"===t.origin?(console.warn("Hypothesis has been loaded in a sandboxed frame. This is not supported."),!1):t.origin===r||(console.warn(`The Hypothesis sidebar is running in a different origin (${t.origin}) than expected (${r}). It may not work.`),!1)}(window);function O_(e,t){e.setClientId(t.clientId)}function D_(e,t,n){e.load(),t.load(),n.sync()}function B_(e,t,n){e.init(),t.init(),n.init()}function P_(e,t){"sidebar"===t.route()&&e.connect()}R_.sentry&&I_&&function(t){const n=function(){let e=import.meta.url
706
+ ;return e?new URL(e).origin:null}(),r=n?[n]:void 0;Dn({dsn:t.dsn,environment:t.environment,allowUrls:r,ignoreErrors:["Network request failed","Object Not Found Matching Id"],release:"1.1190.0",beforeSend:(e,t)=>{if(Hn>=5)return u("Client-side Sentry quota reached. No further Sentry events will be sent"),null;++Hn;try{const n=t&&t.originalException;n instanceof Event&&(e.extra||(e.extra={}),Object.assign(e.extra,{type:n.type,detail:n.detail,isTrusted:n.isTrusted}))}catch(e){}return e}});try{bt("host_config",e(window.location.href))}catch(e){}bt("loaded_scripts",Array.from(document.querySelectorAll("script")).filter((e=>!e.type||e.type.match(/javascript|module/))).map((e=>e.src||"<inline>"))),Pn(((e,t)=>{vt(e,{tags:{context:t}})}))}(R_.sentry),function(e){e.addEventListener("click",(e=>{const t=e.target;if("A"===t.tagName){const e=t;"_blank"===e.target&&(e.rel="noopener")}}))}(document.body),O_.$inject=["api","streamer"],D_.$inject=["groups","session","router"],
707
707
  B_.$inject=["autosaveService","persistedDefaults","serviceURL"],P_.$inject=["frameSync","store"],function(e,{reset:t=!1}={}){t&&eo.clear();for(let[t,n]of Object.entries(e))eo.set(t,n)}(Lo);const H_=document.querySelector("hypothesis-app");!function(e=window){e.addEventListener("message",v)}(),async function(i,a=window){const c=function(t){const i=e(t.location.href),a=["annotations","group","query","appType","openSidebar","showHighlights","services","branding","enableExperimentalNewNoteButton","focus","requestConfigFromFrame","theme","usernameUrl"],s={openSidebar:n,requestConfigFromFrame:e=>{if("string"==typeof e)return e;const t=function(e){return"object"==typeof e&&null!==e?e:{}}(e);return{origin:o(t.origin),ancestorLevel:r(t.ancestorLevel)}}},l={};for(let[e,t]of Object.entries(i))a.includes(e)&&null!==t&&(s[e]?l[e]=s[e](t):l[e]=t);return l}(window),u=function(e,t){const n=e.requestConfigFromFrame;if(!n)return null
708
708
  ;if("number"!=typeof n.ancestorLevel||"string"!=typeof n.origin)throw new Error("Improper `requestConfigFromFrame` object. Both `ancestorLevel` and `origin` need to be specified");return{targetFrame:l(n.ancestorLevel,t),origin:n.origin}}(c,a);let d;if(u){const e=await async function(e,t){return{...await s(t.targetFrame,t.origin,"requestConfig",[],3e3),...e.group?{group:e.group}:{}}}(c,u);d=function(e,t){const n=e.services;return Array.isArray(n)?(n.forEach(((e,n)=>{"$rpc:requestGroups"===e.groups&&(e.groups=s(t.targetFrame,t.origin,"requestGroups",[n],0).catch((()=>{throw new Error("Unable to fetch groups")})))})),e):e}(e,u)}else d=c;const h={...i,...d};return u&&(h.rpc=u),h.apiUrl=function(e){const n=t(e);if(n){if(n.apiUrl)return n.apiUrl;throw new Error("Service should contain an apiUrl value.")}return e.apiUrl}(h),h}(R_).then((e=>{!function(e,t){const n=new z_
709
709
  ;n.register("annotationsService",Pb).register("annotationActivity",Hb).register("api",Gb).register("apiRoutes",e_).register("auth",r_).register("autosaveService",o_).register("frameSync",m_).register("groups",v_).register("loadAnnotationsService",b_).register("localStorage",w_).register("persistedDefaults",x_).register("router",k_).register("serviceURL",S_).register("session",N_).register("streamer",A_).register("streamFilter",C_).register("tags",T_).register("threadsService",M_).register("toastMessenger",L_).register("store",{factory:is}),n.register("$window",{value:window}).register("settings",{value:e}),n.run(B_),n.run(O_),n.run(D_),n.run(g),n.run(P_),xr(Qr(Oo.Provider,{value:n,children:Qr(Db,{})}),t)}(e,H_)})).catch((e=>function(e,t){console.error("Failed to start Hypothesis client: ",e),xr(Qr(Bb,{error:e}),t)}(e,H_)));
@@ -139,32 +139,33 @@ className:U("relative flex items-center gap-x-1.5",{"cursor-pointer":!m,"opacity
139
139
  fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/input/InputGroup.js",lineNumber:34,columnNumber:5})};var sr="/home/runner/work/frontend-shared/frontend-shared/src/components/input/IconButton.js";const br=function({children:e,classes:i,elementRef:n,pressed:l,expanded:r,icon:o,disableTouchSizing:m=!1,size:t="md",title:u,variant:a="secondary",...c}){return Ne(mr,{...c,classes:U("focus-visible-ring transition-colors whitespace-nowrap flex items-center","justify-center gap-x-2 rounded-sm",{"text-grey-7 bg-transparent enabled:hover:text-grey-9 aria-pressed:text-brand aria-expanded:text-brand":"secondary"===a,"text-brand bg-transparent enabled:hover:text-grey-9 disabled:text-grey-7":"primary"===a,"text-grey-7 bg-grey-2 enabled:hover:text-grey-9 enabled:hover:bg-grey-3 disabled:text-grey-5 aria-pressed:bg-grey-3 aria-expanded:bg-grey-3":"dark"===a,"p-2":"md"===t,"p-1":"xs"===t,"p-1.5":"sm"===t,"p-2.5":"lg"===t,"touch:min-w-touch-minimum touch:min-h-touch-minimum":!m},dr,i),elementRef:n,
140
140
  title:u,pressed:l,expanded:r,"data-component":"IconButton",unstyled:!0,children:[o&&Ne(o,{className:"w-em h-em"},void 0,!1,{fileName:sr,lineNumber:83,columnNumber:16}),e]},void 0,!0,{fileName:sr,lineNumber:48,columnNumber:5})};const hr=function({children:e,classes:i,elementRef:n,hasError:l,type:r="text",...o}){return o.id||o["aria-label"]||console.warn("`Input` component should have either an `id` or an `aria-label` attribute"),Ne("input",{...o,type:r,ref:n,className:U("focus-visible-ring ring-inset border rounded-sm w-full p-2","bg-grey-0 focus:bg-white disabled:bg-grey-1","placeholder:text-color-grey-5 disabled:placeholder:color-grey-6",{"ring-inset ring-2 ring-red-error":l},dr,i),"data-component":"Input",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/input/Input.js",lineNumber:38,columnNumber:5})};const fr=function({children:e,classes:i,elementRef:n,active:l=!1,variant:r="raised",width:o="full",...m}){return Ne("div",{...m,ref:n,
141
141
  className:U("rounded-sm border bg-white",{"shadow hover:shadow-md":"raised"===r,"shadow-md":l&&"raised"===r},{"w-full":"full"===o,"w-auto":"auto"===o},i),"data-component":"Card",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/layout/Card.js",lineNumber:36,columnNumber:5})};const vr=function({children:e,classes:i,elementRef:n,size:l="md",...r}){return Ne("div",{...r,ref:n,className:U({"p-3 space-y-4":"md"===l,"p-2 space-y-3":"sm"===l,"p-4 space-y-6":"lg"===l},i),"data-component":"CardContent",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardContent.js",lineNumber:28,columnNumber:5})};const pr=function({children:e,classes:i,elementRef:n,...l}){return Ne("div",{...l,className:U("grow text-lg text-brand font-semibold",i),ref:n,"data-component":"CardTitle",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardTitle.js",lineNumber:24,columnNumber:5})}
142
- ;var gr="/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardHeader.js";const wr=function({children:e,classes:i,elementRef:n,onClose:l,title:r,...o}){return Ne("div",{...o,className:U("flex items-center gap-x-2 mx-3 py-2 border-b",i),ref:n,"data-component":"CardHeader",children:[r&&Ne(pr,{children:r},void 0,!1,{fileName:gr,lineNumber:45,columnNumber:17}),e,l&&Ne(br,{onClick:l,title:"Close",children:Ne(Si,{},void 0,!1,{fileName:gr,lineNumber:49,columnNumber:11})},void 0,!1,{fileName:gr,lineNumber:48,columnNumber:9})]},void 0,!0,{fileName:gr,lineNumber:36,columnNumber:5})};const Cr=function({children:e,classes:i,elementRef:n,...l}){return Ne("div",{...l,className:U("flex items-center justify-end space-x-3",i),ref:n,"data-component":"CardActions",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardActions.js",lineNumber:23,columnNumber:5})};var Lr="/home/runner/work/frontend-shared/frontend-shared/src/components/layout/Panel.js"
143
- ;const yr=function({children:e,elementRef:i,buttons:n,icon:l,onClose:r,title:o,...m}){return Ne(fr,{...m,elementRef:i,"data-composite-component":"Panel",children:[Ne(wr,{onClose:r,children:[l&&Ne(l,{className:"w-em h-em"},void 0,!1,{fileName:Lr,lineNumber:47,columnNumber:18}),Ne(pr,{children:o},void 0,!1,{fileName:Lr,lineNumber:48,columnNumber:9})]},void 0,!0,{fileName:Lr,lineNumber:46,columnNumber:7}),Ne(vr,{children:[e,n&&Ne(Cr,{children:n},void 0,!1,{fileName:Lr,lineNumber:52,columnNumber:21})]},void 0,!0,{fileName:Lr,lineNumber:50,columnNumber:7})]},void 0,!0,{fileName:Lr,lineNumber:41,columnNumber:5})};const xr=function({children:e,classes:i,elementRef:n,unstyled:l=!1,...r}){return Ne("a",{"data-base-component":"LinkBase","data-component":"LinkBase",...r,className:U({"focus-visible-ring":!l},i),rel:"noopener noreferrer",ref:n,children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/LinkBase.js",lineNumber:24,columnNumber:5})}
144
- ;const kr=function({children:e,classes:i,elementRef:n,underline:l="none",color:r="brand",...o}){return Ne(xr,{...o,classes:U("rounded-sm",{"text-brand hover:text-brand-dark":"brand"===r,"text-color-text-light hover:text-brand":"text-light"===r,"text-color-text hover:text-brand-dark":"text"===r},{"no-underline hover:no-underline":"none"===l,"underline hover:underline":"always"===l,"no-underline hover:underline":"hover"===l},i),elementRef:n,"data-component":"Link",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/Link.js",lineNumber:32,columnNumber:5})};const _r=function({children:e,classes:i,elementRef:n,color:l="brand",inline:r=!1,underline:o="none",variant:m="secondary",...t}){return Ne(mr,{...t,elementRef:n,classes:U("focus-visible-ring transition-colors whitespace-nowrap","aria-pressed:font-semibold aria-expanded:font-semibold rounded-sm",{inline:r,"flex items-center":!r},{"text-brand enabled:hover:text-brand-dark":"brand"===l,
145
- "text-color-text enabled:hover:text-brand-dark":"text"===l,"text-color-text-light enabled:hover:text-brand":"text-light"===l},{"no-underline hover:no-underline":"none"===o,"underline enabled:hover:underline":"always"===o,"no-underline enabled:hover:underline":"hover"===o},{"font-semibold":"primary"===m},i),"data-component":"LinkButton",unstyled:!0,children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/LinkButton.js",lineNumber:37,columnNumber:5})};var Sr={exports:{}};function Mr(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(i){var n=e[i];"object"!=typeof n||Object.isFrozen(n)||Mr(n)})),e}Sr.exports=Mr,Sr.exports.default=Mr;class Br{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}
146
- function Tr(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function zr(e,...i){const n=Object.create(null);for(const i in e)n[i]=e[i];return i.forEach((function(e){for(const i in e)n[i]=e[i]})),n}const Ir=e=>!!e.scope||e.sublanguage&&e.language;class Ar{constructor(e,i){this.buffer="",this.classPrefix=i.classPrefix,e.walk(this)}addText(e){this.buffer+=Tr(e)}openNode(e){if(!Ir(e))return;let i="";i=e.sublanguage?`language-${e.language}`:((e,{prefix:i})=>{if(e.includes(".")){const n=e.split(".");return[`${i}${n.shift()}`,...n.map(((e,i)=>`${e}${"_".repeat(i+1)}`))].join(" ")}return`${i}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(i)}closeNode(e){Ir(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const jr=(e={})=>{const i={children:[]};return Object.assign(i,e),i};class Hr{constructor(){this.rootNode=jr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}
147
- get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const i=jr({scope:e});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,i){return"string"==typeof i?e.addText(i):i.children&&(e.openNode(i),i.children.forEach((i=>this._walk(e,i))),e.closeNode(i)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{Hr._collapse(e)})))}}class Zr extends Hr{constructor(e){super(),this.options=e}addKeyword(e,i){""!==e&&(this.openNode(i),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,i){const n=e.root;n.sublanguage=!0,n.language=i,this.add(n)}toHTML(){return new Ar(this,this.options).value()}finalize(){return!0}}function Er(e){return e?"string"==typeof e?e:e.source:null
148
- }function Pr(e){return Fr("(?=",e,")")}function Rr(e){return Fr("(?:",e,")*")}function Dr(e){return Fr("(?:",e,")?")}function Fr(...e){const i=e.map((e=>Er(e))).join("");return i}function Ur(...e){const i=function(e){const i=e[e.length-1];return"object"==typeof i&&i.constructor===Object?(e.splice(e.length-1,1),i):{}}(e),n="("+(i.capture?"":"?:")+e.map((e=>Er(e))).join("|")+")";return n}function Or(e){return new RegExp(e.toString()+"|").exec("").length-1}const Vr=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function qr(e,{joinWith:i}){let n=0;return e.map((e=>{n+=1;const i=n;let l=Er(e),r="";for(;l.length>0;){const e=Vr.exec(l);if(!e){r+=l;break}r+=l.substring(0,e.index),l=l.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+i):(r+=e[0],"("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(i)}const $r="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Gr={begin:"\\\\[\\s\\S]",relevance:0},Wr={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Gr]
149
- },Kr={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Gr]},Yr=function(e,i,n={}){const l=zr({scope:"comment",begin:e,end:i,contains:[]},n);l.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=Ur("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return l.contains.push({begin:Fr(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),l},Xr=Yr("//","$"),Qr=Yr("/\\*","\\*/"),Jr=Yr("#","$"),eo={scope:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},io={scope:"number",begin:$r,relevance:0},no={scope:"number",begin:"\\b(0b[01]+)",relevance:0},lo={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Gr,{begin:/\[/,end:/\]/,relevance:0,contains:[Gr]}]}]},ro={scope:"title",begin:"[a-zA-Z]\\w*",relevance:0},oo={scope:"title",begin:"[a-zA-Z_]\\w*",relevance:0},mo={
150
- begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var to=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:$r,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const i=/^#![ ]*\//;return e.binary&&(e.begin=Fr(i,/.*\b/,e.binary,/\b.*/)),zr({scope:"meta",begin:i,end:/$/,relevance:0,"on:begin":(e,i)=>{0!==e.index&&i.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Gr,APOS_STRING_MODE:Wr,QUOTE_STRING_MODE:Kr,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:Yr,C_LINE_COMMENT_MODE:Xr,C_BLOCK_COMMENT_MODE:Qr,HASH_COMMENT_MODE:Jr,NUMBER_MODE:eo,C_NUMBER_MODE:io,BINARY_NUMBER_MODE:no,REGEXP_MODE:lo,TITLE_MODE:ro,UNDERSCORE_TITLE_MODE:oo,METHOD_GUARD:mo,
151
- END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,i)=>{i.data._beginMatch=e[1]},"on:end":(e,i)=>{i.data._beginMatch!==e[1]&&i.ignoreMatch()}})}});function uo(e,i){"."===e.input[e.index-1]&&i.ignoreMatch()}function ao(e,i){void 0!==e.className&&(e.scope=e.className,delete e.className)}function co(e,i){i&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=uo,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function No(e,i){Array.isArray(e.illegal)&&(e.illegal=Ur(...e.illegal))}function so(e,i){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function bo(e,i){void 0===e.relevance&&(e.relevance=1)}const ho=(e,i)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((i=>{delete e[i]})),e.keywords=n.keywords,
152
- e.begin=Fr(n.beforeMatch,Pr(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},fo=["of","and","for","in","not","or","if","then","parent","list","value"];function vo(e,i,n="keyword"){const l=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function(n){Object.assign(l,vo(e[n],i,n))})),l;function r(e,n){i&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(i){const n=i.split("|");l[n[0]]=[e,po(n[0],n[1])]}))}}function po(e,i){return i?Number(i):function(e){return fo.includes(e.toLowerCase())}(e)?0:1}const go={},wo=e=>{console.error(e)},Co=(e,...i)=>{console.log(`WARN: ${e}`,...i)},Lo=(e,i)=>{go[`${e}/${i}`]||(console.log(`Deprecated as of ${e}. ${i}`),go[`${e}/${i}`]=!0)},yo=new Error;function xo(e,i,{key:n}){let l=0;const r=e[n],o={},m={};for(let e=1;e<=i.length;e++)m[e+l]=r[e],o[e+l]=!0,l+=Or(i[e-1]);e[n]=m,e[n]._emit=o,e[n]._multi=!0}function ko(e){!function(e){
153
- e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw wo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),yo;if("object"!=typeof e.beginScope||null===e.beginScope)throw wo("beginScope must be object"),yo;xo(e,e.begin,{key:"beginScope"}),e.begin=qr(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw wo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),yo;if("object"!=typeof e.endScope||null===e.endScope)throw wo("endScope must be object"),yo;xo(e,e.end,{key:"endScope"}),e.end=qr(e.end,{joinWith:""})}}(e)}function _o(e){function i(i,n){return new RegExp(Er(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},
154
- this.regexes=[],this.matchAt=1,this.position=0}addRule(e,i){i.position=this.position++,this.matchIndexes[this.matchAt]=i,this.regexes.push([i,e]),this.matchAt+=Or(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=i(qr(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const i=this.matcherRe.exec(e);if(!i)return null;const n=i.findIndex(((e,i)=>i>0&&void 0!==e)),l=this.matchIndexes[n];return i.splice(0,n),Object.assign(i,l)}}class l{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const i=new n;return this.rules.slice(e).forEach((([e,n])=>i.addRule(e,n))),i.compile(),this.multiRegexes[e]=i,i}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,i){this.rules.push([e,i]),"begin"===i.type&&this.count++}exec(e){const i=this.getMatcher(this.regexIndex)
155
- ;i.lastIndex=this.lastIndex;let n=i.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,n=i.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=zr(e.classNameAliases||{}),function n(r,o){const m=r;if(r.isCompiled)return m;[ao,so,ko,ho].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),r.__beforeBegin=null,[co,No,bo].forEach((e=>e(r,o))),r.isCompiled=!0;let t=null;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),t=r.keywords.$pattern,delete r.keywords.$pattern),t=t||/\w+/,r.keywords&&(r.keywords=vo(r.keywords,e.case_insensitive)),m.keywordPatternRe=i(t,!0),o&&(r.begin||(r.begin=/\B|\b/),
156
- m.beginRe=i(m.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(m.endRe=i(m.end)),m.terminatorEnd=Er(m.end)||"",r.endsWithParent&&o.terminatorEnd&&(m.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(m.illegalRe=i(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(i){return zr(e,{variants:null},i)})));if(e.cachedVariants)return e.cachedVariants;if(So(e))return zr(e,{starts:e.starts?zr(e.starts):null});if(Object.isFrozen(e))return zr(e);return e}("self"===e?r:e)}))),r.contains.forEach((function(e){n(e,m)})),r.starts&&n(r.starts,o),m.matcher=function(e){const i=new l;return e.contains.forEach((e=>i.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&i.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&i.addRule(e.illegal,{type:"illegal"}),i}(m),m}(e)}function So(e){return!!e&&(e.endsWithParent||So(e.starts))}class Mo extends Error{constructor(e,i){super(e),
157
- this.name="HTMLInjectionError",this.html=i}}const Bo=Tr,To=zr,zo=Symbol("nomatch");var Io=function(e){const i=Object.create(null),n=Object.create(null),l=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",m={disableAutodetect:!0,name:"Plain text",contains:[]};let t={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Zr};function u(e){return t.noHighlightRe.test(e)}function a(e,i,n){let l="",r="";"object"==typeof i?(l=e,n=i.ignoreIllegals,r=i.language):(Lo("10.7.0","highlight(lang, code, ...args) has been deprecated."),Lo("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,l=i),void 0===n&&(n=!0);const o={code:l,language:r};p("before:highlight",o);const m=o.result?o.result:c(o.language,o.code,n);return m.code=o.code,p("after:highlight",m),m}
158
- function c(e,n,l,m){const u=Object.create(null);function a(){if(!x.keywords)return void _.addText(S);let e=0;x.keywordPatternRe.lastIndex=0;let i=x.keywordPatternRe.exec(S),n="";for(;i;){n+=S.substring(e,i.index);const r=C.case_insensitive?i[0].toLowerCase():i[0],o=(l=r,x.keywords[l]);if(o){const[e,l]=o;if(_.addText(n),n="",u[r]=(u[r]||0)+1,u[r]<=7&&(M+=l),e.startsWith("_"))n+=i[0];else{const n=C.classNameAliases[e]||e;_.addKeyword(i[0],n)}}else n+=i[0];e=x.keywordPatternRe.lastIndex,i=x.keywordPatternRe.exec(S)}var l;n+=S.substring(e),_.addText(n)}function N(){null!=x.subLanguage?function(){if(""===S)return;let e=null;if("string"==typeof x.subLanguage){if(!i[x.subLanguage])return void _.addText(S);e=c(x.subLanguage,S,!0,k[x.subLanguage]),k[x.subLanguage]=e._top}else e=d(S,x.subLanguage.length?x.subLanguage:null);x.relevance>0&&(M+=e.relevance),_.addSublanguage(e._emitter,e.language)}():a(),S=""}function s(e,i){let n=1;const l=i.length-1;for(;n<=l;){if(!e._emit[n]){n++;continue}
159
- const l=C.classNameAliases[e[n]]||e[n],r=i[n];l?_.addKeyword(r,l):(S=r,a(),S=""),n++}}function b(e,i){return e.scope&&"string"==typeof e.scope&&_.openNode(C.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(_.addKeyword(S,C.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),S=""):e.beginScope._multi&&(s(e.beginScope,i),S="")),x=Object.create(e,{parent:{value:x}}),x}function f(e,i,n){let l=function(e,i){const n=e&&e.exec(i);return n&&0===n.index}(e.endRe,n);if(l){if(e["on:end"]){const n=new Br(e);e["on:end"](i,n),n.isMatchIgnored&&(l=!1)}if(l){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return f(e.parent,i,n)}function v(e){return 0===x.matcher.regexIndex?(S+=e[0],1):(z=!0,0)}function p(e){const i=e[0],l=n.substring(e.index),r=f(x,e,l);if(!r)return zo;const o=x;x.endScope&&x.endScope._wrap?(N(),_.addKeyword(i,x.endScope._wrap)):x.endScope&&x.endScope._multi?(N(),s(x.endScope,e)):o.skip?S+=i:(o.returnEnd||o.excludeEnd||(S+=i),N(),o.excludeEnd&&(S=i));do{
160
- x.scope&&_.closeNode(),x.skip||x.subLanguage||(M+=x.relevance),x=x.parent}while(x!==r.parent);return r.starts&&b(r.starts,e),o.returnEnd?0:i.length}let g={};function w(i,o){const m=o&&o[0];if(S+=i,null==m)return N(),0;if("begin"===g.type&&"end"===o.type&&g.index===o.index&&""===m){if(S+=n.slice(o.index,o.index+1),!r){const i=new Error(`0 width match regex (${e})`);throw i.languageName=e,i.badRule=g.rule,i}return 1}if(g=o,"begin"===o.type)return function(e){const i=e[0],n=e.rule,l=new Br(n),r=[n.__beforeBegin,n["on:begin"]];for(const n of r)if(n&&(n(e,l),l.isMatchIgnored))return v(i);return n.skip?S+=i:(n.excludeBegin&&(S+=i),N(),n.returnBegin||n.excludeBegin||(S=i)),b(n,e),n.returnBegin?0:i.length}(o);if("illegal"===o.type&&!l){const e=new Error('Illegal lexeme "'+m+'" for mode "'+(x.scope||"<unnamed>")+'"');throw e.mode=x,e}if("end"===o.type){const e=p(o);if(e!==zo)return e}if("illegal"===o.type&&""===m)return 1;if(T>1e5&&T>3*o.index){
161
- throw new Error("potential infinite loop, way more iterations than matches")}return S+=m,m.length}const C=h(e);if(!C)throw wo(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const L=_o(C);let y="",x=m||L;const k={},_=new t.__emitter(t);!function(){const e=[];for(let i=x;i!==C;i=i.parent)i.scope&&e.unshift(i.scope);e.forEach((e=>_.openNode(e)))}();let S="",M=0,B=0,T=0,z=!1;try{for(x.matcher.considerAll();;){T++,z?z=!1:x.matcher.considerAll(),x.matcher.lastIndex=B;const e=x.matcher.exec(n);if(!e)break;const i=w(n.substring(B,e.index),e);B=e.index+i}return w(n.substring(B)),_.closeAllNodes(),_.finalize(),y=_.toHTML(),{language:e,value:y,relevance:M,illegal:!1,_emitter:_,_top:x}}catch(i){if(i.message&&i.message.includes("Illegal"))return{language:e,value:Bo(n),illegal:!0,relevance:0,_illegalBy:{message:i.message,index:B,context:n.slice(B-100,B+100),mode:i.mode,resultSoFar:y},_emitter:_};if(r)return{language:e,value:Bo(n),illegal:!1,relevance:0,errorRaised:i,_emitter:_,_top:x};throw i}}function d(e,n){
162
- n=n||t.languages||Object.keys(i);const l=function(e){const i={value:Bo(e),illegal:!1,relevance:0,_top:m,_emitter:new t.__emitter(t)};return i._emitter.addText(e),i}(e),r=n.filter(h).filter(v).map((i=>c(i,e,!1)));r.unshift(l);const o=r.sort(((e,i)=>{if(e.relevance!==i.relevance)return i.relevance-e.relevance;if(e.language&&i.language){if(h(e.language).supersetOf===i.language)return 1;if(h(i.language).supersetOf===e.language)return-1}return 0})),[u,a]=o,d=u;return d.secondBest=a,d}function N(e){let i=null;const l=function(e){let i=e.className+" ";i+=e.parentNode?e.parentNode.className:"";const n=t.languageDetectRe.exec(i);if(n){const i=h(n[1]);return i||(Co(o.replace("{}",n[1])),Co("Falling back to no-highlight mode for this block.",e)),i?n[1]:"no-highlight"}return i.split(/\s+/).find((e=>u(e)||h(e)))}(e);if(u(l))return;if(p("before:highlightElement",{el:e,language:l}),
163
- e.children.length>0&&(t.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),t.throwUnescapedHTML)){throw new Mo("One of your code blocks includes unescaped HTML.",e.innerHTML)}i=e;const r=i.textContent,m=l?a(r,{language:l,ignoreIllegals:!0}):d(r);e.innerHTML=m.value,function(e,i,l){const r=i&&n[i]||l;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,l,m.language),e.result={language:m.language,re:m.relevance,relevance:m.relevance},m.secondBest&&(e.secondBest={language:m.secondBest.language,relevance:m.secondBest.relevance}),p("after:highlightElement",{el:e,result:m,text:r})}let s=!1;function b(){if("loading"===document.readyState)return void(s=!0);document.querySelectorAll(t.cssSelector).forEach(N)}function h(e){return e=(e||"").toLowerCase(),i[e]||i[n[e]]}
164
- function f(e,{languageName:i}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=i}))}function v(e){const i=h(e);return i&&!i.disableAutodetect}function p(e,i){const n=e;l.forEach((function(e){e[n]&&e[n](i)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){s&&b()}),!1),Object.assign(e,{highlight:a,highlightAuto:d,highlightAll:b,highlightElement:N,highlightBlock:function(e){return Lo("10.7.0","highlightBlock will be removed entirely in v12.0"),Lo("10.7.0","Please use highlightElement now."),N(e)},configure:function(e){t=To(t,e)},initHighlighting:()=>{b(),Lo("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){b(),Lo("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(n,l){let o=null;try{o=l(e)}catch(e){if(wo("Language definition for '{}' could not be registered.".replace("{}",n)),!r)throw e;wo(e),o=m}o.name||(o.name=n),i[n]=o,
165
- o.rawDefinition=l.bind(null,e),o.aliases&&f(o.aliases,{languageName:n})},unregisterLanguage:function(e){delete i[e];for(const i of Object.keys(n))n[i]===e&&delete n[i]},listLanguages:function(){return Object.keys(i)},getLanguage:h,registerAliases:f,autoDetection:v,inherit:To,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=i=>{e["before:highlightBlock"](Object.assign({block:i.el},i))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=i=>{e["after:highlightBlock"](Object.assign({block:i.el},i))})}(e),l.push(e)}}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString="11.6.0",e.regex={concat:Fr,lookahead:Pr,either:Ur,optional:Dr,anyNumberOfTimes:Rr};for(const e in to)"object"==typeof to[e]&&Sr.exports(to[e]);return Object.assign(e,to),e}({}),Ao=Io;Io.HighlightJS=Io,Io.default=Io;var jo=Ao;function Ho(e){
166
- const i=e.regex,n=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(r,{begin:/\(/,end:/\)/}),m=e.inherit(e.APOS_STRING_MODE,{className:"string"}),t=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,t,m,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,t,m]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10
167
- }),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},l,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[t]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(/</,i.lookahead(i.concat(n,i.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}
142
+ ;var gr="/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardHeader.tsx";const wr=function({children:e,classes:i,elementRef:n,onClose:l,title:r,...o}){return Ne("div",{...o,className:U("flex items-center gap-x-2 mx-3 py-2 border-b",i),ref:n,"data-component":"CardHeader",children:[r&&Ne(pr,{children:r},void 0,!1,{fileName:gr,lineNumber:51,columnNumber:17}),e,l&&Ne(br,{onClick:l,title:"Close",classes:U("-mr-2.5"),children:Ne(Si,{},void 0,!1,{fileName:gr,lineNumber:63,columnNumber:11})},void 0,!1,{fileName:gr,lineNumber:54,columnNumber:9})]},void 0,!0,{fileName:gr,lineNumber:42,columnNumber:5})};const Cr=function({children:e,classes:i,elementRef:n,...l}){return Ne("div",{...l,className:U("flex items-center justify-end space-x-3",i),ref:n,"data-component":"CardActions",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/layout/CardActions.js",lineNumber:23,columnNumber:5})}
143
+ ;var Lr="/home/runner/work/frontend-shared/frontend-shared/src/components/layout/Panel.js";const yr=function({children:e,elementRef:i,buttons:n,icon:l,onClose:r,title:o,...m}){return Ne(fr,{...m,elementRef:i,"data-composite-component":"Panel",children:[Ne(wr,{onClose:r,children:[l&&Ne(l,{className:"w-em h-em"},void 0,!1,{fileName:Lr,lineNumber:47,columnNumber:18}),Ne(pr,{children:o},void 0,!1,{fileName:Lr,lineNumber:48,columnNumber:9})]},void 0,!0,{fileName:Lr,lineNumber:46,columnNumber:7}),Ne(vr,{children:[e,n&&Ne(Cr,{children:n},void 0,!1,{fileName:Lr,lineNumber:52,columnNumber:21})]},void 0,!0,{fileName:Lr,lineNumber:50,columnNumber:7})]},void 0,!0,{fileName:Lr,lineNumber:41,columnNumber:5})};const xr=function({children:e,classes:i,elementRef:n,unstyled:l=!1,...r}){return Ne("a",{"data-base-component":"LinkBase","data-component":"LinkBase",...r,className:U({"focus-visible-ring":!l},i),rel:"noopener noreferrer",ref:n,children:e},void 0,!1,{
144
+ fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/LinkBase.js",lineNumber:24,columnNumber:5})};const kr=function({children:e,classes:i,elementRef:n,underline:l="none",color:r="brand",...o}){return Ne(xr,{...o,classes:U("rounded-sm",{"text-brand hover:text-brand-dark":"brand"===r,"text-color-text-light hover:text-brand":"text-light"===r,"text-color-text hover:text-brand-dark":"text"===r},{"no-underline hover:no-underline":"none"===l,"underline hover:underline":"always"===l,"no-underline hover:underline":"hover"===l},i),elementRef:n,"data-component":"Link",children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/Link.js",lineNumber:32,columnNumber:5})};const _r=function({children:e,classes:i,elementRef:n,color:l="brand",inline:r=!1,underline:o="none",variant:m="secondary",...t}){return Ne(mr,{...t,elementRef:n,
145
+ classes:U("focus-visible-ring transition-colors whitespace-nowrap","aria-pressed:font-semibold aria-expanded:font-semibold rounded-sm",{inline:r,"flex items-center":!r},{"text-brand enabled:hover:text-brand-dark":"brand"===l,"text-color-text enabled:hover:text-brand-dark":"text"===l,"text-color-text-light enabled:hover:text-brand":"text-light"===l},{"no-underline hover:no-underline":"none"===o,"underline enabled:hover:underline":"always"===o,"no-underline enabled:hover:underline":"hover"===o},{"font-semibold":"primary"===m},i),"data-component":"LinkButton",unstyled:!0,children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/LinkButton.js",lineNumber:37,columnNumber:5})};var Sr={exports:{}};function Mr(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(i){
146
+ var n=e[i];"object"!=typeof n||Object.isFrozen(n)||Mr(n)})),e}Sr.exports=Mr,Sr.exports.default=Mr;class Br{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Tr(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function zr(e,...i){const n=Object.create(null);for(const i in e)n[i]=e[i];return i.forEach((function(e){for(const i in e)n[i]=e[i]})),n}const Ir=e=>!!e.scope||e.sublanguage&&e.language;class Ar{constructor(e,i){this.buffer="",this.classPrefix=i.classPrefix,e.walk(this)}addText(e){this.buffer+=Tr(e)}openNode(e){if(!Ir(e))return;let i="";i=e.sublanguage?`language-${e.language}`:((e,{prefix:i})=>{if(e.includes(".")){const n=e.split(".");return[`${i}${n.shift()}`,...n.map(((e,i)=>`${e}${"_".repeat(i+1)}`))].join(" ")}return`${i}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(i)}closeNode(e){Ir(e)&&(this.buffer+="</span>")}value(){return this.buffer}
147
+ span(e){this.buffer+=`<span class="${e}">`}}const jr=(e={})=>{const i={children:[]};return Object.assign(i,e),i};class Hr{constructor(){this.rootNode=jr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const i=jr({scope:e});this.add(i),this.stack.push(i)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,i){return"string"==typeof i?e.addText(i):i.children&&(e.openNode(i),i.children.forEach((i=>this._walk(e,i))),e.closeNode(i)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{Hr._collapse(e)})))}}class Zr extends Hr{constructor(e){super(),this.options=e}addKeyword(e,i){""!==e&&(this.openNode(i),this.addText(e),this.closeNode())}
148
+ addText(e){""!==e&&this.add(e)}addSublanguage(e,i){const n=e.root;n.sublanguage=!0,n.language=i,this.add(n)}toHTML(){return new Ar(this,this.options).value()}finalize(){return!0}}function Er(e){return e?"string"==typeof e?e:e.source:null}function Pr(e){return Fr("(?=",e,")")}function Rr(e){return Fr("(?:",e,")*")}function Dr(e){return Fr("(?:",e,")?")}function Fr(...e){const i=e.map((e=>Er(e))).join("");return i}function Ur(...e){const i=function(e){const i=e[e.length-1];return"object"==typeof i&&i.constructor===Object?(e.splice(e.length-1,1),i):{}}(e),n="("+(i.capture?"":"?:")+e.map((e=>Er(e))).join("|")+")";return n}function Or(e){return new RegExp(e.toString()+"|").exec("").length-1}const Vr=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function qr(e,{joinWith:i}){let n=0;return e.map((e=>{n+=1;const i=n;let l=Er(e),r="";for(;l.length>0;){const e=Vr.exec(l);if(!e){r+=l;break}r+=l.substring(0,e.index),l=l.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+i):(r+=e[0],
149
+ "("===e[0]&&n++)}return r})).map((e=>`(${e})`)).join(i)}const $r="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Gr={begin:"\\\\[\\s\\S]",relevance:0},Wr={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Gr]},Kr={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Gr]},Yr=function(e,i,n={}){const l=zr({scope:"comment",begin:e,end:i,contains:[]},n);l.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=Ur("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return l.contains.push({begin:Fr(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),l},Xr=Yr("//","$"),Qr=Yr("/\\*","\\*/"),Jr=Yr("#","$"),eo={scope:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},io={scope:"number",begin:$r,relevance:0},no={scope:"number",begin:"\\b(0b[01]+)",relevance:0},lo={begin:/(?=\/[^/\n]*\/)/,contains:[{
150
+ scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Gr,{begin:/\[/,end:/\]/,relevance:0,contains:[Gr]}]}]},ro={scope:"title",begin:"[a-zA-Z]\\w*",relevance:0},oo={scope:"title",begin:"[a-zA-Z_]\\w*",relevance:0},mo={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var to=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:$r,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const i=/^#![ ]*\//;return e.binary&&(e.begin=Fr(i,/.*\b/,e.binary,/\b.*/)),zr({scope:"meta",begin:i,end:/$/,relevance:0,"on:begin":(e,i)=>{0!==e.index&&i.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Gr,APOS_STRING_MODE:Wr,QUOTE_STRING_MODE:Kr,PHRASAL_WORDS_MODE:{
151
+ begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:Yr,C_LINE_COMMENT_MODE:Xr,C_BLOCK_COMMENT_MODE:Qr,HASH_COMMENT_MODE:Jr,NUMBER_MODE:eo,C_NUMBER_MODE:io,BINARY_NUMBER_MODE:no,REGEXP_MODE:lo,TITLE_MODE:ro,UNDERSCORE_TITLE_MODE:oo,METHOD_GUARD:mo,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,i)=>{i.data._beginMatch=e[1]},"on:end":(e,i)=>{i.data._beginMatch!==e[1]&&i.ignoreMatch()}})}});function uo(e,i){"."===e.input[e.index-1]&&i.ignoreMatch()}function ao(e,i){void 0!==e.className&&(e.scope=e.className,delete e.className)}function co(e,i){i&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=uo,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function No(e,i){Array.isArray(e.illegal)&&(e.illegal=Ur(...e.illegal))}function so(e,i){if(e.match){
152
+ if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function bo(e,i){void 0===e.relevance&&(e.relevance=1)}const ho=(e,i)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((i=>{delete e[i]})),e.keywords=n.keywords,e.begin=Fr(n.beforeMatch,Pr(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},fo=["of","and","for","in","not","or","if","then","parent","list","value"];function vo(e,i,n="keyword"){const l=Object.create(null);return"string"==typeof e?r(n,e.split(" ")):Array.isArray(e)?r(n,e):Object.keys(e).forEach((function(n){Object.assign(l,vo(e[n],i,n))})),l;function r(e,n){i&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(i){const n=i.split("|");l[n[0]]=[e,po(n[0],n[1])]}))}}function po(e,i){return i?Number(i):function(e){return fo.includes(e.toLowerCase())}(e)?0:1}const go={},wo=e=>{
153
+ console.error(e)},Co=(e,...i)=>{console.log(`WARN: ${e}`,...i)},Lo=(e,i)=>{go[`${e}/${i}`]||(console.log(`Deprecated as of ${e}. ${i}`),go[`${e}/${i}`]=!0)},yo=new Error;function xo(e,i,{key:n}){let l=0;const r=e[n],o={},m={};for(let e=1;e<=i.length;e++)m[e+l]=r[e],o[e+l]=!0,l+=Or(i[e-1]);e[n]=m,e[n]._emit=o,e[n]._multi=!0}function ko(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw wo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),yo;if("object"!=typeof e.beginScope||null===e.beginScope)throw wo("beginScope must be object"),yo;xo(e,e.begin,{key:"beginScope"}),e.begin=qr(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){
154
+ if(e.skip||e.excludeEnd||e.returnEnd)throw wo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),yo;if("object"!=typeof e.endScope||null===e.endScope)throw wo("endScope must be object"),yo;xo(e,e.end,{key:"endScope"}),e.end=qr(e.end,{joinWith:""})}}(e)}function _o(e){function i(i,n){return new RegExp(Er(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,i){i.position=this.position++,this.matchIndexes[this.matchAt]=i,this.regexes.push([i,e]),this.matchAt+=Or(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=i(qr(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const i=this.matcherRe.exec(e);if(!i)return null;const n=i.findIndex(((e,i)=>i>0&&void 0!==e)),l=this.matchIndexes[n];return i.splice(0,n),Object.assign(i,l)}}class l{constructor(){this.rules=[],this.multiRegexes=[],
155
+ this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const i=new n;return this.rules.slice(e).forEach((([e,n])=>i.addRule(e,n))),i.compile(),this.multiRegexes[e]=i,i}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,i){this.rules.push([e,i]),"begin"===i.type&&this.count++}exec(e){const i=this.getMatcher(this.regexIndex);i.lastIndex=this.lastIndex;let n=i.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const i=this.getMatcher(0);i.lastIndex=this.lastIndex+1,n=i.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=zr(e.classNameAliases||{}),function n(r,o){const m=r;if(r.isCompiled)return m
156
+ ;[ao,so,ko,ho].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),r.__beforeBegin=null,[co,No,bo].forEach((e=>e(r,o))),r.isCompiled=!0;let t=null;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),t=r.keywords.$pattern,delete r.keywords.$pattern),t=t||/\w+/,r.keywords&&(r.keywords=vo(r.keywords,e.case_insensitive)),m.keywordPatternRe=i(t,!0),o&&(r.begin||(r.begin=/\B|\b/),m.beginRe=i(m.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(m.endRe=i(m.end)),m.terminatorEnd=Er(m.end)||"",r.endsWithParent&&o.terminatorEnd&&(m.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(m.illegalRe=i(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(i){return zr(e,{variants:null},i)})));if(e.cachedVariants)return e.cachedVariants;if(So(e))return zr(e,{starts:e.starts?zr(e.starts):null});if(Object.isFrozen(e))return zr(e)
157
+ ;return e}("self"===e?r:e)}))),r.contains.forEach((function(e){n(e,m)})),r.starts&&n(r.starts,o),m.matcher=function(e){const i=new l;return e.contains.forEach((e=>i.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&i.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&i.addRule(e.illegal,{type:"illegal"}),i}(m),m}(e)}function So(e){return!!e&&(e.endsWithParent||So(e.starts))}class Mo extends Error{constructor(e,i){super(e),this.name="HTMLInjectionError",this.html=i}}const Bo=Tr,To=zr,zo=Symbol("nomatch");var Io=function(e){const i=Object.create(null),n=Object.create(null),l=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",m={disableAutodetect:!0,name:"Plain text",contains:[]};let t={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Zr};function u(e){return t.noHighlightRe.test(e)}function a(e,i,n){
158
+ let l="",r="";"object"==typeof i?(l=e,n=i.ignoreIllegals,r=i.language):(Lo("10.7.0","highlight(lang, code, ...args) has been deprecated."),Lo("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),r=e,l=i),void 0===n&&(n=!0);const o={code:l,language:r};p("before:highlight",o);const m=o.result?o.result:c(o.language,o.code,n);return m.code=o.code,p("after:highlight",m),m}function c(e,n,l,m){const u=Object.create(null);function a(){if(!x.keywords)return void _.addText(S);let e=0;x.keywordPatternRe.lastIndex=0;let i=x.keywordPatternRe.exec(S),n="";for(;i;){n+=S.substring(e,i.index);const r=C.case_insensitive?i[0].toLowerCase():i[0],o=(l=r,x.keywords[l]);if(o){const[e,l]=o;if(_.addText(n),n="",u[r]=(u[r]||0)+1,u[r]<=7&&(M+=l),e.startsWith("_"))n+=i[0];else{const n=C.classNameAliases[e]||e;_.addKeyword(i[0],n)}}else n+=i[0];e=x.keywordPatternRe.lastIndex,i=x.keywordPatternRe.exec(S)}var l;n+=S.substring(e),_.addText(n)}function N(){
159
+ null!=x.subLanguage?function(){if(""===S)return;let e=null;if("string"==typeof x.subLanguage){if(!i[x.subLanguage])return void _.addText(S);e=c(x.subLanguage,S,!0,k[x.subLanguage]),k[x.subLanguage]=e._top}else e=d(S,x.subLanguage.length?x.subLanguage:null);x.relevance>0&&(M+=e.relevance),_.addSublanguage(e._emitter,e.language)}():a(),S=""}function s(e,i){let n=1;const l=i.length-1;for(;n<=l;){if(!e._emit[n]){n++;continue}const l=C.classNameAliases[e[n]]||e[n],r=i[n];l?_.addKeyword(r,l):(S=r,a(),S=""),n++}}function b(e,i){return e.scope&&"string"==typeof e.scope&&_.openNode(C.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(_.addKeyword(S,C.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),S=""):e.beginScope._multi&&(s(e.beginScope,i),S="")),x=Object.create(e,{parent:{value:x}}),x}function f(e,i,n){let l=function(e,i){const n=e&&e.exec(i);return n&&0===n.index}(e.endRe,n);if(l){if(e["on:end"]){const n=new Br(e);e["on:end"](i,n),n.isMatchIgnored&&(l=!1)}if(l){
160
+ for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return f(e.parent,i,n)}function v(e){return 0===x.matcher.regexIndex?(S+=e[0],1):(z=!0,0)}function p(e){const i=e[0],l=n.substring(e.index),r=f(x,e,l);if(!r)return zo;const o=x;x.endScope&&x.endScope._wrap?(N(),_.addKeyword(i,x.endScope._wrap)):x.endScope&&x.endScope._multi?(N(),s(x.endScope,e)):o.skip?S+=i:(o.returnEnd||o.excludeEnd||(S+=i),N(),o.excludeEnd&&(S=i));do{x.scope&&_.closeNode(),x.skip||x.subLanguage||(M+=x.relevance),x=x.parent}while(x!==r.parent);return r.starts&&b(r.starts,e),o.returnEnd?0:i.length}let g={};function w(i,o){const m=o&&o[0];if(S+=i,null==m)return N(),0;if("begin"===g.type&&"end"===o.type&&g.index===o.index&&""===m){if(S+=n.slice(o.index,o.index+1),!r){const i=new Error(`0 width match regex (${e})`);throw i.languageName=e,i.badRule=g.rule,i}return 1}if(g=o,"begin"===o.type)return function(e){const i=e[0],n=e.rule,l=new Br(n),r=[n.__beforeBegin,n["on:begin"]];for(const n of r)if(n&&(n(e,l),
161
+ l.isMatchIgnored))return v(i);return n.skip?S+=i:(n.excludeBegin&&(S+=i),N(),n.returnBegin||n.excludeBegin||(S=i)),b(n,e),n.returnBegin?0:i.length}(o);if("illegal"===o.type&&!l){const e=new Error('Illegal lexeme "'+m+'" for mode "'+(x.scope||"<unnamed>")+'"');throw e.mode=x,e}if("end"===o.type){const e=p(o);if(e!==zo)return e}if("illegal"===o.type&&""===m)return 1;if(T>1e5&&T>3*o.index){throw new Error("potential infinite loop, way more iterations than matches")}return S+=m,m.length}const C=h(e);if(!C)throw wo(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const L=_o(C);let y="",x=m||L;const k={},_=new t.__emitter(t);!function(){const e=[];for(let i=x;i!==C;i=i.parent)i.scope&&e.unshift(i.scope);e.forEach((e=>_.openNode(e)))}();let S="",M=0,B=0,T=0,z=!1;try{for(x.matcher.considerAll();;){T++,z?z=!1:x.matcher.considerAll(),x.matcher.lastIndex=B;const e=x.matcher.exec(n);if(!e)break;const i=w(n.substring(B,e.index),e);B=e.index+i}return w(n.substring(B)),_.closeAllNodes(),_.finalize(),y=_.toHTML(),{
162
+ language:e,value:y,relevance:M,illegal:!1,_emitter:_,_top:x}}catch(i){if(i.message&&i.message.includes("Illegal"))return{language:e,value:Bo(n),illegal:!0,relevance:0,_illegalBy:{message:i.message,index:B,context:n.slice(B-100,B+100),mode:i.mode,resultSoFar:y},_emitter:_};if(r)return{language:e,value:Bo(n),illegal:!1,relevance:0,errorRaised:i,_emitter:_,_top:x};throw i}}function d(e,n){n=n||t.languages||Object.keys(i);const l=function(e){const i={value:Bo(e),illegal:!1,relevance:0,_top:m,_emitter:new t.__emitter(t)};return i._emitter.addText(e),i}(e),r=n.filter(h).filter(v).map((i=>c(i,e,!1)));r.unshift(l);const o=r.sort(((e,i)=>{if(e.relevance!==i.relevance)return i.relevance-e.relevance;if(e.language&&i.language){if(h(e.language).supersetOf===i.language)return 1;if(h(i.language).supersetOf===e.language)return-1}return 0})),[u,a]=o,d=u;return d.secondBest=a,d}function N(e){let i=null;const l=function(e){let i=e.className+" ";i+=e.parentNode?e.parentNode.className:"";const n=t.languageDetectRe.exec(i);if(n){
163
+ const i=h(n[1]);return i||(Co(o.replace("{}",n[1])),Co("Falling back to no-highlight mode for this block.",e)),i?n[1]:"no-highlight"}return i.split(/\s+/).find((e=>u(e)||h(e)))}(e);if(u(l))return;if(p("before:highlightElement",{el:e,language:l}),e.children.length>0&&(t.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),t.throwUnescapedHTML)){throw new Mo("One of your code blocks includes unescaped HTML.",e.innerHTML)}i=e;const r=i.textContent,m=l?a(r,{language:l,ignoreIllegals:!0}):d(r);e.innerHTML=m.value,function(e,i,l){const r=i&&n[i]||l;e.classList.add("hljs"),e.classList.add(`language-${r}`)}(e,l,m.language),e.result={language:m.language,re:m.relevance,relevance:m.relevance},m.secondBest&&(e.secondBest={language:m.secondBest.language,relevance:m.secondBest.relevance}),
164
+ p("after:highlightElement",{el:e,result:m,text:r})}let s=!1;function b(){if("loading"===document.readyState)return void(s=!0);document.querySelectorAll(t.cssSelector).forEach(N)}function h(e){return e=(e||"").toLowerCase(),i[e]||i[n[e]]}function f(e,{languageName:i}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=i}))}function v(e){const i=h(e);return i&&!i.disableAutodetect}function p(e,i){const n=e;l.forEach((function(e){e[n]&&e[n](i)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){s&&b()}),!1),Object.assign(e,{highlight:a,highlightAuto:d,highlightAll:b,highlightElement:N,highlightBlock:function(e){return Lo("10.7.0","highlightBlock will be removed entirely in v12.0"),Lo("10.7.0","Please use highlightElement now."),N(e)},configure:function(e){t=To(t,e)},initHighlighting:()=>{b(),Lo("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){b(),
165
+ Lo("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(n,l){let o=null;try{o=l(e)}catch(e){if(wo("Language definition for '{}' could not be registered.".replace("{}",n)),!r)throw e;wo(e),o=m}o.name||(o.name=n),i[n]=o,o.rawDefinition=l.bind(null,e),o.aliases&&f(o.aliases,{languageName:n})},unregisterLanguage:function(e){delete i[e];for(const i of Object.keys(n))n[i]===e&&delete n[i]},listLanguages:function(){return Object.keys(i)},getLanguage:h,registerAliases:f,autoDetection:v,inherit:To,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=i=>{e["before:highlightBlock"](Object.assign({block:i.el},i))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=i=>{e["after:highlightBlock"](Object.assign({block:i.el},i))})}(e),l.push(e)}}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString="11.6.0",e.regex={concat:Fr,lookahead:Pr,either:Ur,
166
+ optional:Dr,anyNumberOfTimes:Rr};for(const e in to)"object"==typeof to[e]&&Sr.exports(to[e]);return Object.assign(e,to),e}({}),Ao=Io;Io.HighlightJS=Io,Io.default=Io;var jo=Ao;function Ho(e){const i=e.regex,n=i.concat(/[\p{L}_]/u,i.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(r,{begin:/\(/,end:/\)/}),m=e.inherit(e.APOS_STRING_MODE,{className:"string"}),t=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{
167
+ className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,t,m,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,t,m]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},l,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[t]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i.concat(/</,i.lookahead(i.concat(n,i.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:i.concat(/<\//,i.lookahead(i.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,
168
+ endsParent:!0}]}]}}
168
169
  const Zo=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Eo=["true","false","null","undefined","NaN","Infinity"],Po=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ro=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Do=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Fo=["arguments","this","super","console","window","document","localStorage","module","global"],Uo=[].concat(Do,Po,Ro)
169
170
  ;function Oo(e){const i=e.regex,n="[A-Za-z$_][0-9A-Za-z$_]*",l="<>",r="</>",o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,i)=>{const n=e[0].length+e.index,l=e.input[n];if("<"===l||","===l)return void i.ignoreMatch();let r;">"===l&&(((e,{after:i})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,i)})(e,{after:n})||i.ignoreMatch());(r=e.input.substring(n).match(/^\s+extends\s+/))&&0===r.index&&i.ignoreMatch()}},m={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:Zo,literal:Eo,built_in:Uo,"variable.language":Fo},t="\\.([0-9](_?[0-9])*)",u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",a={className:"number",variants:[{begin:`(\\b(${u})((${t})|\\.)?|(${t}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{begin:`\\b(${u})\\b((${t})\\b|\\.)?|(${t})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",
170
171
  end:"\\}",keywords:m,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},N={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},h=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,N,s,a];c.contains=h.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(h)});const f=[].concat(b,c.contains),v=f.concat([{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(f)}]),p={className:"params",begin:/\(/,end:/\)/,