hypothesis 1.1702.0 → 1.1704.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.
@@ -1 +1 @@
1
- !function(){"use strict";var s={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?bb4566","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?1d5af0","styles/annotator.css":"styles/annotator.css?876ce4","styles/annotator.css.map":"styles/annotator.css.map?78e935","styles/highlights.css":"styles/highlights.css?ef86d1","styles/highlights.css.map":"styles/highlights.css.map?6ce8dd","styles/katex.min.css":"styles/katex.min.css?7fbc4d","styles/katex.min.css.map":"styles/katex.min.css.map?6974c9","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?1e1216","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?5a12c5","styles/sidebar.css":"styles/sidebar.css?b5f6ce","styles/sidebar.css.map":"styles/sidebar.css.map?3f1fa6","styles/ui-playground.css":"styles/ui-playground.css?614ddc","styles/ui-playground.css.map":"styles/ui-playground.css.map?3ed883","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?e8c9dd","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?5cd572","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?15453f","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?e1f35e"};function e(s){s.setAttribute("data-hypothesis-asset","")}function t(s,t){var r=s.createElement("link");r.rel="stylesheet",r.type="text/css",r.href=t,e(r),s.head.appendChild(r)}function r(s,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.esModule,n=void 0===o||o,i=r.forceReload,a=void 0!==i&&i,l=s.createElement("script");n&&(l.type="module"),a&&(t+="#ts=".concat(Date.now())),l.src=t,l.async=!1,e(l),s.head.appendChild(l)}function o(s,t,r,o){var n=s.createElement("link");n.rel=t,n.href=o,n.type="application/annotator+".concat(r),e(n),s.head.appendChild(n)}function n(s,t,r){var o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).crossOrigin,n=s.createElement("link");n.rel="preload",n.as=t,n.href=r,(o||"fetch"===t)&&(n.crossOrigin="anonymous",n.removeAttribute=()=>{}),e(n),s.head.appendChild(n)}function i(s,e){return s.assetRoot+"build/"+s.manifest[e]}function a(s){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var t=function(){var s,e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).currentScript;return t?(s=t.src,(e=s.match(/(https?):\/\/([^:/]+)/))?{protocol:e[1],hostname:e[2]}:null):null}(e);if(!t)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",t.hostname)).replace("{current_scheme}",t.protocol)}if(function(){var s=[()=>Object.fromEntries([]),()=>new URL(document.location.href),()=>new Request("https://hypothes.is"),()=>Element.prototype.attachShadow,()=>CSS.supports("display: grid"),()=>(document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0)];try{return s.every((s=>s()))}catch(s){return!1}}()){var l=function(s){for(var e={},t=s.querySelectorAll("script.js-hypothesis-config"),r=0;r<t.length;r++){var o=void 0;try{o=JSON.parse(t[r].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),o={}}Object.assign(e,o)}return e}(document),c=a(l.assetRoot||"__ASSET_ROOT__");if(document.querySelector("hypothesis-app")){!function(s,e){n(s,"fetch",e.apiUrl),n(s,"fetch",e.apiUrl+"links");for(var o=0,a=["scripts/sidebar.bundle.js"];o<a.length;o++)r(s,i(e,a[o]),{esModule:!0});for(var l=0,c=["styles/katex.min.css","styles/sidebar.css"];l<c.length;l++)t(s,i(e,c[l]))}(document,{assetRoot:c,manifest:s,apiUrl:l.apiUrl})}else{var p=function(){var s;return null===(s=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome)||void 0===s||null===(s=s.runtime)||void 0===s?void 0:s.id}();if(p&&!function(s){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("script.js-hypothesis-config[data-extension-id=".concat(s,"]"))}(p))throw new Error("Could not start Hypothesis extension as configuration is missing");var d=l,u=a(d.notebookAppUrl||"__NOTEBOOK_APP_URL__"),h=a(d.profileAppUrl||"__PROFILE_APP_URL__"),y=a(d.sidebarAppUrl||"__SIDEBAR_APP_URL__");!function(s,e){if(!s.querySelector('link[type="application/annotator+html"]')){o(s,"sidebar","html",e.sidebarAppUrl),o(s,"notebook","html",e.notebookAppUrl),o(s,"profile","html",e.profileAppUrl),n(s,"style",i(e,"styles/annotator.css"),{crossOrigin:!0}),o(s,"hypothesis-client","javascript",e.assetRoot+"build/boot.js");for(var a=0,l=["scripts/annotator.bundle.js"];a<l.length;a++)r(s,i(e,l[a]),{esModule:!1});var c=[];void 0!==window.PDFViewerApplication&&c.push("styles/pdfjs-overrides.css"),c.push("styles/highlights.css");for(var p=0,d=c;p<d.length;p++)t(s,i(e,d[p]))}}(document,{assetRoot:c,manifest:s,notebookAppUrl:u,profileAppUrl: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";var s={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?ffc7b5","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?a8ba5d","styles/annotator.css":"styles/annotator.css?876ce4","styles/annotator.css.map":"styles/annotator.css.map?78e935","styles/highlights.css":"styles/highlights.css?ef86d1","styles/highlights.css.map":"styles/highlights.css.map?6ce8dd","styles/katex.min.css":"styles/katex.min.css?7fbc4d","styles/katex.min.css.map":"styles/katex.min.css.map?6974c9","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?1e1216","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?5a12c5","styles/sidebar.css":"styles/sidebar.css?b5f6ce","styles/sidebar.css.map":"styles/sidebar.css.map?3f1fa6","styles/ui-playground.css":"styles/ui-playground.css?614ddc","styles/ui-playground.css.map":"styles/ui-playground.css.map?3ed883","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?86a19a","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?6ad87c","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?a9e548","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?cb4106"};function e(s){s.setAttribute("data-hypothesis-asset","")}function t(s,t){var r=s.createElement("link");r.rel="stylesheet",r.type="text/css",r.href=t,e(r),s.head.appendChild(r)}function r(s,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.esModule,n=void 0===o||o,i=r.forceReload,a=void 0!==i&&i,l=s.createElement("script");n&&(l.type="module"),a&&(t+="#ts=".concat(Date.now())),l.src=t,l.async=!1,e(l),s.head.appendChild(l)}function o(s,t,r,o){var n=s.createElement("link");n.rel=t,n.href=o,n.type="application/annotator+".concat(r),e(n),s.head.appendChild(n)}function n(s,t,r){var o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).crossOrigin,n=s.createElement("link");n.rel="preload",n.as=t,n.href=r,(o||"fetch"===t)&&(n.crossOrigin="anonymous",n.removeAttribute=()=>{}),e(n),s.head.appendChild(n)}function i(s,e){return s.assetRoot+"build/"+s.manifest[e]}function a(s){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var t=function(){var s,e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).currentScript;return t?(s=t.src,(e=s.match(/(https?):\/\/([^:/]+)/))?{protocol:e[1],hostname:e[2]}:null):null}(e);if(!t)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",t.hostname)).replace("{current_scheme}",t.protocol)}if(function(){var s=[()=>Object.fromEntries([]),()=>new URL(document.location.href),()=>new Request("https://hypothes.is"),()=>Element.prototype.attachShadow,()=>CSS.supports("display: grid"),()=>(document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0)];try{return s.every((s=>s()))}catch(s){return!1}}()){var l=function(s){for(var e={},t=s.querySelectorAll("script.js-hypothesis-config"),r=0;r<t.length;r++){var o=void 0;try{o=JSON.parse(t[r].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),o={}}Object.assign(e,o)}return e}(document),c=a(l.assetRoot||"__ASSET_ROOT__");if(document.querySelector("hypothesis-app")){!function(s,e){n(s,"fetch",e.apiUrl),n(s,"fetch",e.apiUrl+"links");for(var o=0,a=["scripts/sidebar.bundle.js"];o<a.length;o++)r(s,i(e,a[o]),{esModule:!0});for(var l=0,c=["styles/katex.min.css","styles/sidebar.css"];l<c.length;l++)t(s,i(e,c[l]))}(document,{assetRoot:c,manifest:s,apiUrl:l.apiUrl})}else{var p=function(){var s;return null===(s=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome)||void 0===s||null===(s=s.runtime)||void 0===s?void 0:s.id}();if(p&&!function(s){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("script.js-hypothesis-config[data-extension-id=".concat(s,"]"))}(p))throw new Error("Could not start Hypothesis extension as configuration is missing");var d=l,u=a(d.notebookAppUrl||"__NOTEBOOK_APP_URL__"),h=a(d.profileAppUrl||"__PROFILE_APP_URL__"),y=a(d.sidebarAppUrl||"__SIDEBAR_APP_URL__");!function(s,e){if(!s.querySelector('link[type="application/annotator+html"]')){o(s,"sidebar","html",e.sidebarAppUrl),o(s,"notebook","html",e.notebookAppUrl),o(s,"profile","html",e.profileAppUrl),n(s,"style",i(e,"styles/annotator.css"),{crossOrigin:!0}),o(s,"hypothesis-client","javascript",e.assetRoot+"build/boot.js");for(var a=0,l=["scripts/annotator.bundle.js"];a<l.length;a++)r(s,i(e,l[a]),{esModule:!1});var c=[];void 0!==window.PDFViewerApplication&&c.push("styles/pdfjs-overrides.css"),c.push("styles/highlights.css");for(var p=0,d=c;p<d.length;p++)t(s,i(e,d[p]))}}(document,{assetRoot:c,manifest:s,notebookAppUrl:u,profileAppUrl: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/.")}();
package/build/boot.js CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var s={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?bb4566","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?1d5af0","styles/annotator.css":"styles/annotator.css?876ce4","styles/annotator.css.map":"styles/annotator.css.map?78e935","styles/highlights.css":"styles/highlights.css?ef86d1","styles/highlights.css.map":"styles/highlights.css.map?6ce8dd","styles/katex.min.css":"styles/katex.min.css?7fbc4d","styles/katex.min.css.map":"styles/katex.min.css.map?6974c9","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?1e1216","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?5a12c5","styles/sidebar.css":"styles/sidebar.css?b5f6ce","styles/sidebar.css.map":"styles/sidebar.css.map?3f1fa6","styles/ui-playground.css":"styles/ui-playground.css?614ddc","styles/ui-playground.css.map":"styles/ui-playground.css.map?3ed883","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?e8c9dd","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?5cd572","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?15453f","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?e1f35e"};function e(s){s.setAttribute("data-hypothesis-asset","")}function t(s,t){var r=s.createElement("link");r.rel="stylesheet",r.type="text/css",r.href=t,e(r),s.head.appendChild(r)}function r(s,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.esModule,n=void 0===o||o,i=r.forceReload,a=void 0!==i&&i,l=s.createElement("script");n&&(l.type="module"),a&&(t+="#ts=".concat(Date.now())),l.src=t,l.async=!1,e(l),s.head.appendChild(l)}function o(s,t,r,o){var n=s.createElement("link");n.rel=t,n.href=o,n.type="application/annotator+".concat(r),e(n),s.head.appendChild(n)}function n(s,t,r){var o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).crossOrigin,n=s.createElement("link");n.rel="preload",n.as=t,n.href=r,(o||"fetch"===t)&&(n.crossOrigin="anonymous",n.removeAttribute=()=>{}),e(n),s.head.appendChild(n)}function i(s,e){return s.assetRoot+"build/"+s.manifest[e]}function a(s){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var t=function(){var s,e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).currentScript;return t?(s=t.src,(e=s.match(/(https?):\/\/([^:/]+)/))?{protocol:e[1],hostname:e[2]}:null):null}(e);if(!t)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",t.hostname)).replace("{current_scheme}",t.protocol)}if(function(){var s=[()=>Object.fromEntries([]),()=>new URL(document.location.href),()=>new Request("https://hypothes.is"),()=>Element.prototype.attachShadow,()=>CSS.supports("display: grid"),()=>(document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0)];try{return s.every((s=>s()))}catch(s){return!1}}()){var l=function(s){for(var e={},t=s.querySelectorAll("script.js-hypothesis-config"),r=0;r<t.length;r++){var o=void 0;try{o=JSON.parse(t[r].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),o={}}Object.assign(e,o)}return e}(document),c=a(l.assetRoot||"https://cdn.hypothes.is/hypothesis/1.1702.0/");if(document.querySelector("hypothesis-app")){!function(s,e){n(s,"fetch",e.apiUrl),n(s,"fetch",e.apiUrl+"links");for(var o=0,a=["scripts/sidebar.bundle.js"];o<a.length;o++)r(s,i(e,a[o]),{esModule:!0});for(var l=0,c=["styles/katex.min.css","styles/sidebar.css"];l<c.length;l++)t(s,i(e,c[l]))}(document,{assetRoot:c,manifest:s,apiUrl:l.apiUrl})}else{var p=function(){var s;return null===(s=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome)||void 0===s||null===(s=s.runtime)||void 0===s?void 0:s.id}();if(p&&!function(s){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("script.js-hypothesis-config[data-extension-id=".concat(s,"]"))}(p))throw new Error("Could not start Hypothesis extension as configuration is missing");var d=l,u=a(d.notebookAppUrl||"https://hypothes.is/notebook"),h=a(d.profileAppUrl||"https://hypothes.is/user-profile"),y=a(d.sidebarAppUrl||"https://hypothes.is/app.html");!function(s,e){if(!s.querySelector('link[type="application/annotator+html"]')){o(s,"sidebar","html",e.sidebarAppUrl),o(s,"notebook","html",e.notebookAppUrl),o(s,"profile","html",e.profileAppUrl),n(s,"style",i(e,"styles/annotator.css"),{crossOrigin:!0}),o(s,"hypothesis-client","javascript",e.assetRoot+"build/boot.js");for(var a=0,l=["scripts/annotator.bundle.js"];a<l.length;a++)r(s,i(e,l[a]),{esModule:!1});var c=[];void 0!==window.PDFViewerApplication&&c.push("styles/pdfjs-overrides.css"),c.push("styles/highlights.css");for(var p=0,d=c;p<d.length;p++)t(s,i(e,d[p]))}}(document,{assetRoot:c,manifest:s,notebookAppUrl:u,profileAppUrl: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";var s={"scripts/annotator.bundle.js":"scripts/annotator.bundle.js?ffc7b5","scripts/ui-playground.bundle.js":"scripts/ui-playground.bundle.js?a8ba5d","styles/annotator.css":"styles/annotator.css?876ce4","styles/annotator.css.map":"styles/annotator.css.map?78e935","styles/highlights.css":"styles/highlights.css?ef86d1","styles/highlights.css.map":"styles/highlights.css.map?6ce8dd","styles/katex.min.css":"styles/katex.min.css?7fbc4d","styles/katex.min.css.map":"styles/katex.min.css.map?6974c9","styles/pdfjs-overrides.css":"styles/pdfjs-overrides.css?1e1216","styles/pdfjs-overrides.css.map":"styles/pdfjs-overrides.css.map?5a12c5","styles/sidebar.css":"styles/sidebar.css?b5f6ce","styles/sidebar.css.map":"styles/sidebar.css.map?3f1fa6","styles/ui-playground.css":"styles/ui-playground.css?614ddc","styles/ui-playground.css.map":"styles/ui-playground.css.map?3ed883","scripts/annotator.bundle.js.map":"scripts/annotator.bundle.js.map?86a19a","scripts/sidebar.bundle.js":"scripts/sidebar.bundle.js?6ad87c","scripts/ui-playground.bundle.js.map":"scripts/ui-playground.bundle.js.map?a9e548","scripts/sidebar.bundle.js.map":"scripts/sidebar.bundle.js.map?cb4106"};function e(s){s.setAttribute("data-hypothesis-asset","")}function t(s,t){var r=s.createElement("link");r.rel="stylesheet",r.type="text/css",r.href=t,e(r),s.head.appendChild(r)}function r(s,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.esModule,n=void 0===o||o,i=r.forceReload,a=void 0!==i&&i,l=s.createElement("script");n&&(l.type="module"),a&&(t+="#ts=".concat(Date.now())),l.src=t,l.async=!1,e(l),s.head.appendChild(l)}function o(s,t,r,o){var n=s.createElement("link");n.rel=t,n.href=o,n.type="application/annotator+".concat(r),e(n),s.head.appendChild(n)}function n(s,t,r){var o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).crossOrigin,n=s.createElement("link");n.rel="preload",n.as=t,n.href=r,(o||"fetch"===t)&&(n.crossOrigin="anonymous",n.removeAttribute=()=>{}),e(n),s.head.appendChild(n)}function i(s,e){return s.assetRoot+"build/"+s.manifest[e]}function a(s){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(-1===s.indexOf("{"))return s;var t=function(){var s,e,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).currentScript;return t?(s=t.src,(e=s.match(/(https?):\/\/([^:/]+)/))?{protocol:e[1],hostname:e[2]}:null):null}(e);if(!t)throw new Error("Could not process URL template because script origin is unknown");return s=(s=s.replace("{current_host}",t.hostname)).replace("{current_scheme}",t.protocol)}if(function(){var s=[()=>Object.fromEntries([]),()=>new URL(document.location.href),()=>new Request("https://hypothes.is"),()=>Element.prototype.attachShadow,()=>CSS.supports("display: grid"),()=>(document.evaluate("/html/body",document,null,XPathResult.ANY_TYPE,null),!0)];try{return s.every((s=>s()))}catch(s){return!1}}()){var l=function(s){for(var e={},t=s.querySelectorAll("script.js-hypothesis-config"),r=0;r<t.length;r++){var o=void 0;try{o=JSON.parse(t[r].textContent||"")}catch(s){console.warn("Could not parse settings from js-hypothesis-config tags",s),o={}}Object.assign(e,o)}return e}(document),c=a(l.assetRoot||"https://cdn.hypothes.is/hypothesis/1.1704.0/");if(document.querySelector("hypothesis-app")){!function(s,e){n(s,"fetch",e.apiUrl),n(s,"fetch",e.apiUrl+"links");for(var o=0,a=["scripts/sidebar.bundle.js"];o<a.length;o++)r(s,i(e,a[o]),{esModule:!0});for(var l=0,c=["styles/katex.min.css","styles/sidebar.css"];l<c.length;l++)t(s,i(e,c[l]))}(document,{assetRoot:c,manifest:s,apiUrl:l.apiUrl})}else{var p=function(){var s;return null===(s=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).chrome)||void 0===s||null===(s=s.runtime)||void 0===s?void 0:s.id}();if(p&&!function(s){return!!(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector("script.js-hypothesis-config[data-extension-id=".concat(s,"]"))}(p))throw new Error("Could not start Hypothesis extension as configuration is missing");var d=l,u=a(d.notebookAppUrl||"https://hypothes.is/notebook"),h=a(d.profileAppUrl||"https://hypothes.is/user-profile"),y=a(d.sidebarAppUrl||"https://hypothes.is/app.html");!function(s,e){if(!s.querySelector('link[type="application/annotator+html"]')){o(s,"sidebar","html",e.sidebarAppUrl),o(s,"notebook","html",e.notebookAppUrl),o(s,"profile","html",e.profileAppUrl),n(s,"style",i(e,"styles/annotator.css"),{crossOrigin:!0}),o(s,"hypothesis-client","javascript",e.assetRoot+"build/boot.js");for(var a=0,l=["scripts/annotator.bundle.js"];a<l.length;a++)r(s,i(e,l[a]),{esModule:!1});var c=[];void 0!==window.PDFViewerApplication&&c.push("styles/pdfjs-overrides.css"),c.push("styles/highlights.css");for(var p=0,d=c;p<d.length;p++)t(s,i(e,d[p]))}}(document,{assetRoot:c,manifest:s,notebookAppUrl:u,profileAppUrl: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,6 +1,6 @@
1
1
  {
2
- "scripts/annotator.bundle.js": "scripts/annotator.bundle.js?bb4566",
3
- "scripts/ui-playground.bundle.js": "scripts/ui-playground.bundle.js?1d5af0",
2
+ "scripts/annotator.bundle.js": "scripts/annotator.bundle.js?ffc7b5",
3
+ "scripts/ui-playground.bundle.js": "scripts/ui-playground.bundle.js?a8ba5d",
4
4
  "styles/annotator.css": "styles/annotator.css?876ce4",
5
5
  "styles/annotator.css.map": "styles/annotator.css.map?78e935",
6
6
  "styles/highlights.css": "styles/highlights.css?ef86d1",
@@ -13,8 +13,8 @@
13
13
  "styles/sidebar.css.map": "styles/sidebar.css.map?3f1fa6",
14
14
  "styles/ui-playground.css": "styles/ui-playground.css?614ddc",
15
15
  "styles/ui-playground.css.map": "styles/ui-playground.css.map?3ed883",
16
- "scripts/annotator.bundle.js.map": "scripts/annotator.bundle.js.map?e8c9dd",
17
- "scripts/sidebar.bundle.js": "scripts/sidebar.bundle.js?5cd572",
18
- "scripts/ui-playground.bundle.js.map": "scripts/ui-playground.bundle.js.map?15453f",
19
- "scripts/sidebar.bundle.js.map": "scripts/sidebar.bundle.js.map?e1f35e"
16
+ "scripts/annotator.bundle.js.map": "scripts/annotator.bundle.js.map?86a19a",
17
+ "scripts/sidebar.bundle.js": "scripts/sidebar.bundle.js?6ad87c",
18
+ "scripts/ui-playground.bundle.js.map": "scripts/ui-playground.bundle.js.map?a9e548",
19
+ "scripts/sidebar.bundle.js.map": "scripts/sidebar.bundle.js.map?cb4106"
20
20
  }
@@ -1,23 +1,23 @@
1
1
  !function(){"use strict";var e,t,n,o,i,r,s,a,l,c,h,d,u={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function _(e,t){for(var n in t)e[n]=t[n];return e}function m(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,o,i,r,s){var a={type:e,props:o,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++n:s,__i:-1,__u:0};return null==s&&null!=t.vnode&&t.vnode(a),a}function b(e){return e.children}function y(e,t){this.props=e,this.context=t}function v(e,t){if(null==t)return e.__?v(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?v(e):null}function x(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return x(e)}}function C(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!S.__r++||i!=t.debounceRendering)&&((i=t.debounceRendering)||r)(S)}function S(){
2
- for(var e,n,i,r,a,l,c,h=1;o.length;)o.length>h&&o.sort(s),e=o.shift(),h=o.length,e.__d&&(i=void 0,a=(r=(n=e).__v).__e,l=[],c=[],n.__P&&((i=_({},r)).__v=r.__v+1,t.vnode&&t.vnode(i),N(n.__P,i,r,n.__n,n.__P.namespaceURI,32&r.__u?[a]:null,l,null==a?v(r):a,!!(32&r.__u),c),i.__v=r.__v,i.__.__k[i.__i]=i,O(l,i,c),i.__e!=a&&x(i)));S.__r=0}function A(e,t,n,o,i,r,s,a,l,c,h){var d,p,_,m,y,x,C,S=o&&o.__k||f,A=t.length;for(l=function(e,t,n,o,i){var r,s,a,l,c,h=n.length,d=h,u=0;for(e.__k=new Array(i),r=0;r<i;r++)null!=(s=t[r])&&"boolean"!=typeof s&&"function"!=typeof s?(l=r+u,(s=e.__k[r]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?w(null,s,null,null,null):g(s)?w(b,{children:s},null,null,null):null==s.constructor&&s.__b>0?w(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!=(c=s.__i=E(s,n,l,d))&&(d--,(a=n[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(i>h?u--:i<h&&u++),"function"!=typeof s.type&&(s.__u|=4)):c!=l&&(c==l-1?u--:c==l+1?u++:(c>l?u--:u++,
3
- s.__u|=4))):e.__k[r]=null;if(d)for(r=0;r<h;r++)null!=(a=n[r])&&0==(2&a.__u)&&(a.__e==o&&(o=v(a)),F(a,a));return o}(n,t,S,l,A),d=0;d<A;d++)null!=(_=n.__k[d])&&(p=-1==_.__i?u:S[_.__i]||u,_.__i=d,x=N(e,_,p,i,r,s,a,l,c,h),m=_.__e,_.ref&&p.ref!=_.ref&&(p.ref&&B(p.ref,null,_),h.push(_.ref,_.__c||m,_)),null==y&&null!=m&&(y=m),(C=!!(4&_.__u))||p.__k===_.__k?l=R(_,l,e,C):"function"==typeof _.type&&void 0!==x?l=x:m&&(l=m.nextSibling),_.__u&=-7);return n.__e=y,l}function R(e,t,n,o){var i,r;if("function"==typeof e.type){for(i=e.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=e,t=R(i[r],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=v(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function E(e,t,n,o){var i,r,s,a=e.key,l=e.type,c=t[n],h=null!=c&&0==(2&c.__u);if(null===c&&null==e.key||h&&a==c.key&&l==c.type)return n;if(o>(h?1:0))for(i=n-1,r=n+1;i>=0||r<t.length;)if(null!=(c=t[s=i>=0?i--:r++])&&0==(2&c.__u)&&a==c.key&&l==c.type)return s;return-1}
4
- function k(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function P(e,t,n,o,i){var r,s;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||k(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||k(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])r=t!=(t=t.replace(a,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=l,e.addEventListener(t,r?h:c,r)):e.removeEventListener(t,r?h:c,r);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function T(e){return function(n){
5
- if(this.l){var o=this.l[n.type+e];if(null==n.t)n.t=l++;else if(n.t<o.u)return;return o(t.event?t.event(n):n)}}}function N(e,n,o,i,r,s,a,l,c,h){var d,u,f,p,w,v,x,C,S,R,E,k,P,T,N,O,B,F=n.type;if(null!=n.constructor)return null;128&o.__u&&(c=!!(32&o.__u),s=[l=n.__e=o.__e]),(d=t.__b)&&d(n);e:if("function"==typeof F)try{if(C=n.props,S="prototype"in F&&F.prototype.render,R=(d=F.contextType)&&i[d.__c],E=d?R?R.props.value:d.__:i,o.__c?x=(u=n.__c=o.__c).__=u.__E:(S?n.__c=u=new F(C,E):(n.__c=u=new y(C,E),u.constructor=F,u.render=H),R&&R.sub(u),u.props=C,u.state||(u.state={}),u.context=E,u.__n=i,f=u.__d=!0,u.__h=[],u._sb=[]),S&&null==u.__s&&(u.__s=u.state),S&&null!=F.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=_({},u.__s)),_(u.__s,F.getDerivedStateFromProps(C,u.__s))),p=u.props,w=u.state,u.__v=n,f)S&&null==F.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),S&&null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{
6
- if(S&&null==F.getDerivedStateFromProps&&C!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(C,E),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(C,u.__s,E)||n.__v==o.__v){for(n.__v!=o.__v&&(u.props=C,u.state=u.__s,u.__d=!1),n.__e=o.__e,n.__k=o.__k,n.__k.some((function(e){e&&(e.__=n)})),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(C,u.__s,E),S&&null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,w,v)}))}if(u.context=E,u.props=C,u.__P=e,u.__e=!1,P=t.__r,T=0,S){for(u.state=u.__s,u.__d=!1,P&&P(n),d=u.render(u.props,u.state,u.context),N=0;N<u._sb.length;N++)u.__h.push(u._sb[N]);u._sb=[]}else do{u.__d=!1,P&&P(n),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++T<25);u.state=u.__s,null!=u.getChildContext&&(i=_(_({},i),u.getChildContext())),S&&!f&&null!=u.getSnapshotBeforeUpdate&&(v=u.getSnapshotBeforeUpdate(p,w)),O=d,
7
- null!=d&&d.type===b&&null==d.key&&(O=I(d.props.children)),l=A(e,g(O)?O:[O],n,o,i,r,s,a,l,c,h),u.base=n.__e,n.__u&=-161,u.__h.length&&a.push(u),x&&(u.__E=u.__=null)}catch(e){if(n.__v=null,c||null!=s)if(e.then){for(n.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,n.__e=l}else{for(B=s.length;B--;)m(s[B]);M(n)}else n.__e=o.__e,n.__k=o.__k,e.then||M(n);t.__e(e,n,o)}else null==s&&n.__v==o.__v?(n.__k=o.__k,n.__e=o.__e):l=n.__e=L(o.__e,n,o,i,r,s,a,c,h);return(d=t.diffed)&&d(n),128&n.__u?void 0:l}function M(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(M)}function O(e,n,o){for(var i=0;i<o.length;i++)B(o[i],o[++i],o[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function I(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:g(e)?e.map(I):_({},e)}function L(n,o,i,r,s,a,l,c,h){var d,f,p,_,w,b,y,x=i.props,C=o.props,S=o.type
8
- ;if("svg"==S?s="http://www.w3.org/2000/svg":"math"==S?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=a)for(d=0;d<a.length;d++)if((w=a[d])&&"setAttribute"in w==!!S&&(S?w.localName==S:3==w.nodeType)){n=w,a[d]=null;break}if(null==n){if(null==S)return document.createTextNode(C);n=document.createElementNS(s,S,C.is&&C),c&&(t.__m&&t.__m(o,a),c=!1),a=null}if(null==S)x===C||c&&n.data==C||(n.data=C);else{if(a=a&&e.call(n.childNodes),x=i.props||u,!c&&null!=a)for(x={},d=0;d<n.attributes.length;d++)x[(w=n.attributes[d]).name]=w.value;for(d in x)if(w=x[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=w;else if(!(d in C)){if("value"==d&&"defaultValue"in C||"checked"==d&&"defaultChecked"in C)continue;P(n,d,null,w,s)}for(d in C)w=C[d],"children"==d?_=w:"dangerouslySetInnerHTML"==d?f=w:"value"==d?b=w:"checked"==d?y=w:c&&"function"!=typeof w||x[d]===w||P(n,d,w,x[d],s);if(f)c||p&&(f.__html==p.__html||f.__html==n.innerHTML)||(n.innerHTML=f.__html),o.__k=[];else if(p&&(n.innerHTML=""),
9
- A("template"==o.type?n.content:n,g(_)?_:[_],o,i,r,"foreignObject"==S?"http://www.w3.org/1999/xhtml":s,a,l,a?a[0]:i.__k&&v(i,0),c,h),null!=a)for(d=a.length;d--;)m(a[d]);c||(d="value","progress"==S&&null==b?n.removeAttribute("value"):null!=b&&(b!==n[d]||"progress"==S&&!b||"option"==S&&b!=x[d])&&P(n,d,b,x[d],s),d="checked",null!=y&&y!=n[d]&&P(n,d,y,x[d],s))}return n}function B(e,n,o){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,o)}}function F(e,n,o){var i,r;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||B(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&F(i[r],n,o||"function"!=typeof e.type);o||m(e.__e),e.__c=e.__=e.__e=void 0}function H(e,t,n){return this.constructor(e,n)}function D(n,o,i){var r,s,a;o==document&&(o=document.documentElement),t.__&&t.__(n,o),r=!1?null:o.__k,s=[],a=[],
10
- N(o,n=o.__k=function(t,n,o){var i,r,s,a={};for(s in n)"key"==s?i=n[s]:"ref"==s?r=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return w(t,a,i,r,null)}(b,null,[n]),r||u,u,o.namespaceURI,r?null:o.firstChild?e.call(o.childNodes):null,s,r?r.__e:o.firstChild,false,a),O(s,n,a)}function V(e){function t(e){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,C(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e=f.slice,t={__e:function(e,t,n,o){
11
- for(var i,r,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,o||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},n=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},y.prototype.render=b,o=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,a=/(PointerCapture)$|Capture$/i,l=0,c=T(!1),h=T(!0),d=0;var U,z,q,$,W=0,j=[],X=t,Y=X.__b,K=X.__r,G=X.diffed,Q=X.__c,J=X.unmount,Z=X.__;function ee(e,t){X.__h&&X.__h(z,e,W||t),W=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function te(e){
12
- return W=1,function(e,t,n){var o=ee(U++,2);if(o.t=e,!o.__c&&(o.__=[ge(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=z,!z.__f)){var i=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var s=o.__c.props!==e;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),r&&r.call(this,e,t,n)||s};z.__f=!0;var r=z.shouldComponentUpdate,s=z.componentWillUpdate;z.componentWillUpdate=function(e,t,n){if(this.__e){var o=r;r=void 0,i(e,t,n),r=o}s&&s.call(this,e,t,n)},z.shouldComponentUpdate=i}return o.__N||o.__}(ge,e)}function ne(e,t){var n=ee(U++,3);!X.__s&&pe(n.__H,t)&&(n.__=e,n.u=t,z.__H.__h.push(n))}function oe(e,t){var n=ee(U++,4);!X.__s&&pe(n.__H,t)&&(n.__=e,n.u=t,z.__h.push(n))}function ie(e){return W=5,re((function(){return{current:e}}),[])}function re(e,t){var n=ee(U++,7)
13
- ;return pe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function se(e,t){return W=8,re((function(){return e}),t)}function ae(e){var t=z.context[e.__c],n=ee(U++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(z)),t.props.value):e.__}function le(){var e=ee(U++,11);if(!e.__){for(var t=z.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ce(){for(var e;e=j.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach(fe),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){z=null,Y&&Y(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Z&&Z(e,t)},X.__r=function(e){K&&K(e),U=0;var t=(z=e.__c).__H;t&&(q===z?(t.__h=[],z.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(ue),t.__h.forEach(fe),t.__h=[],U=0)),q=z},X.diffed=function(e){G&&G(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&$===X.requestAnimationFrame||(($=X.requestAnimationFrame)||de)(ce)),
14
- t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),q=z=null},X.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ue),e.__h=e.__h.filter((function(e){return!e.__||fe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],X.__e(n,e.__v)}})),Q&&Q(e,t)},X.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ue(e)}catch(e){t=e}})),n.__H=void 0,t&&X.__e(t,n.__v))};var he="function"==typeof requestAnimationFrame;function de(e){var t,n=function(){clearTimeout(o),he&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);he&&(t=requestAnimationFrame(n))}function ue(e){var t=z,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),z=t}function fe(e){var t=z;e.__c=e.__(),z=t}function pe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ge(e,t){return"function"==typeof t?t(e):t}function _e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t)
15
- ;if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class me{constructor(){_e(this,"_listeners",void 0),this._listeners=new Map}add(e,t,n,o){e.addEventListener(t,n,o);const i=Symbol();return this._listeners.set(i,{eventTarget:e,eventType:t,listener:n,options:o}),i}remove(e){const t=this._listeners.get(e);if(t){const{eventTarget:n,eventType:o,listener:i,options:r}=t;n.removeEventListener(o,i,r),this._listeners.delete(e)}}removeAll(){this._listeners.forEach((({eventTarget:e,eventType:t,listener:n,options:o})=>{e.removeEventListener(t,n,o)})),this._listeners.clear()}}function we(e){e.focus()}function be(e,{autofocus:t=!1,loop:n=!0,horizontal:o=!0,vertical:i=!0,selector:r="a,button",containerVisible:s=!0,focusElement:a=we}={}){const l=ie(null),c=function(e){const t=ie({callback:e,
16
- call:(...e)=>t.current.callback(...e)});return t.current.callback=e,t.current.call}(a);ne((()=>{if(!s)return()=>{};if(!e.current)throw new Error("Container ref not set");const a=e.current,h=()=>{const e=Array.from(a.querySelectorAll(r)).filter((e=>null!==e.offsetParent&&!function(e){return"boolean"==typeof e.disabled&&e.disabled}(e)));return document.activeElement===a&&e.unshift(a),e},d=(e=h(),t=-1,n=!1,o)=>{t<0&&(t=e.findIndex((e=>0===e.tabIndex)))<0&&(t=0);for(const[i,r]of e.entries())r.tabIndex=i===t?0:-1,i===t&&n&&(l.current=r,c(r,o))},u=h(),f=l.current?u.indexOf(l.current):0;d(u,f,t);const p=new me;p.add(a,"focusin",(e=>{if(e.target===a&&l.current)return void c(l.current);const n=h(),o=n.indexOf(e.target);o>=0&&d(n,o,t)})),p.add(a,"keydown",(e=>{const t=h();let r=t.findIndex((e=>0===e.tabIndex)),s=!1;o&&"ArrowLeft"===e.key||i&&"ArrowUp"===e.key?(0===r?r=n?t.length-1:r:--r,s=!0):o&&"ArrowRight"===e.key||i&&"ArrowDown"===e.key?(r===t.length-1?r=n?0:r:++r,s=!0):"Home"===e.key?(r=0,
17
- s=!0):"End"===e.key&&(r=t.length-1,s=!0),s&&(d(t,r,!0,e),e.preventDefault(),e.stopPropagation())}));const g=new MutationObserver((()=>{d()}));return g.observe(a,{subtree:!0,attributes:!0,attributeFilter:["disabled"],childList:!0}),()=>{p.removeAll(),g.disconnect()}}),[t,e,c,o,n,r,i,s])}function ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ve{constructor(e){ye(this,"_target",void 0),ye(this,"_value",void 0),this._target=e,this._value=null}get current(){return this._value}set current(e){this._value=e,this._updateTarget()}get target(){return this._target}set target(e){e!==this._target&&(this._target=e,this._updateTarget())}
18
- _updateTarget(){const e=this._value;"function"==typeof this._target?this._target(e):this._target&&(this._target.current=e)}}function xe(e){const t=ie(new ve(e));return t.current.target=e,t.current}var Ce=0;function Se(e,n,o,i,r,s){n||(n={});var a,l,c=n;if("ref"in c)for(l in c={},n)"ref"==l?a=n[l]:c[l]=n[l];var h={type:e,props:c,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ce,__i:-1,__u:0,__source:r,__self:s};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return t.vnode&&t.vnode(h),h}var Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ee,ke={exports:{}};var Pe,Te=(Ee||(Ee=1,Pe=ke,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,n(i)))}return e}function n(n){
19
- if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var r in n)e.call(n,r)&&n[r]&&(i=o(i,r));return i}function o(e,t){return t?e?e+" "+t:e+t:e}Pe.exports?(t.default=t,Pe.exports=t):window.classNames=t}()),ke.exports),Ne=Re(Te);function Me({children:e,classes:t,elementRef:n,active:o=!1,variant:i="raised",width:r="full",...s}){return Se("div",{"data-component":"Card",...s,ref:n,className:Ne("rounded-lg border bg-white",{"shadow hover:shadow-md":"raised"===i,"shadow-md":o&&"raised"===i},{"w-full":"full"===r,"w-auto":"auto"===r},t),children:e})}function Oe({children:e,classes:t,elementRef:n,size:o="md",...i}){return Se("div",{"data-component":"CardContent",...i,ref:n,className:Ne({"p-3 space-y-4":"md"===o,"p-2 space-y-3":"sm"===o,"p-4 space-y-6":"lg"===o},t),children:e})}function Ie(e){return Se("svg",{
20
- xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"AnnotateIcon",...e,children:Se("g",{"fill-rule":"evenodd",children:[Se("path",{fill:"none",d:"M0 0h16v16H0z"}),Se("path",{fill:"currentColor",
2
+ for(var e,n,i,r,a,l,c,h=1;o.length;)o.length>h&&o.sort(s),e=o.shift(),h=o.length,e.__d&&(i=void 0,r=void 0,a=(r=(n=e).__v).__e,l=[],c=[],n.__P&&((i=_({},r)).__v=r.__v+1,t.vnode&&t.vnode(i),N(n.__P,i,r,n.__n,n.__P.namespaceURI,32&r.__u?[a]:null,l,null==a?v(r):a,!!(32&r.__u),c),i.__v=r.__v,i.__.__k[i.__i]=i,O(l,i,c),r.__e=r.__=null,i.__e!=a&&x(i)));S.__r=0}function A(e,t,n,o,i,r,s,a,l,c,h){var d,p,_,m,y,x,C,S=o&&o.__k||f,A=t.length;for(l=function(e,t,n,o,i){var r,s,a,l,c,h=n.length,d=h,u=0;for(e.__k=new Array(i),r=0;r<i;r++)null!=(s=t[r])&&"boolean"!=typeof s&&"function"!=typeof s?(l=r+u,(s=e.__k[r]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?w(null,s,null,null,null):g(s)?w(b,{children:s},null,null,null):null==s.constructor&&s.__b>0?w(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!=(c=s.__i=E(s,n,l,d))&&(d--,(a=n[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(i>h?u--:i<h&&u++),
3
+ "function"!=typeof s.type&&(s.__u|=4)):c!=l&&(c==l-1?u--:c==l+1?u++:(c>l?u--:u++,s.__u|=4))):e.__k[r]=null;if(d)for(r=0;r<h;r++)null!=(a=n[r])&&0==(2&a.__u)&&(a.__e==o&&(o=v(a)),F(a,a));return o}(n,t,S,l,A),d=0;d<A;d++)null!=(_=n.__k[d])&&(p=-1==_.__i?u:S[_.__i]||u,_.__i=d,x=N(e,_,p,i,r,s,a,l,c,h),m=_.__e,_.ref&&p.ref!=_.ref&&(p.ref&&B(p.ref,null,_),h.push(_.ref,_.__c||m,_)),null==y&&null!=m&&(y=m),(C=!!(4&_.__u))||p.__k===_.__k?l=R(_,l,e,C):"function"==typeof _.type&&void 0!==x?l=x:m&&(l=m.nextSibling),_.__u&=-7);return n.__e=y,l}function R(e,t,n,o){var i,r;if("function"==typeof e.type){for(i=e.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=e,t=R(i[r],t,n,o));return t}e.__e!=t&&(o&&(t&&e.type&&!t.parentNode&&(t=v(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function E(e,t,n,o){var i,r,s,a=e.key,l=e.type,c=t[n],h=null!=c&&0==(2&c.__u);if(null===c&&null==e.key||h&&a==c.key&&l==c.type)return n;if(o>(h?1:0))for(i=n-1,
4
+ r=n+1;i>=0||r<t.length;)if(null!=(c=t[s=i>=0?i--:r++])&&0==(2&c.__u)&&a==c.key&&l==c.type)return s;return-1}function k(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function P(e,t,n,o,i){var r,s;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||k(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||k(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])r=t!=(t=t.replace(a,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=l,e.addEventListener(t,r?h:c,r)):e.removeEventListener(t,r?h:c,r);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}
5
+ "function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function T(e){return function(n){if(this.l){var o=this.l[n.type+e];if(null==n.t)n.t=l++;else if(n.t<o.u)return;return o(t.event?t.event(n):n)}}}function N(e,n,o,i,r,s,a,l,c,h){var d,u,f,p,w,v,x,C,S,R,E,k,P,T,N,O,B,F=n.type;if(null!=n.constructor)return null;128&o.__u&&(c=!!(32&o.__u),s=[l=n.__e=o.__e]),(d=t.__b)&&d(n);e:if("function"==typeof F)try{if(C=n.props,S="prototype"in F&&F.prototype.render,R=(d=F.contextType)&&i[d.__c],E=d?R?R.props.value:d.__:i,o.__c?x=(u=n.__c=o.__c).__=u.__E:(S?n.__c=u=new F(C,E):(n.__c=u=new y(C,E),u.constructor=F,u.render=H),R&&R.sub(u),u.props=C,u.state||(u.state={}),u.context=E,u.__n=i,f=u.__d=!0,u.__h=[],u._sb=[]),S&&null==u.__s&&(u.__s=u.state),S&&null!=F.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=_({},u.__s)),_(u.__s,F.getDerivedStateFromProps(C,u.__s))),p=u.props,w=u.state,u.__v=n,
6
+ f)S&&null==F.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),S&&null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(S&&null==F.getDerivedStateFromProps&&C!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(C,E),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(C,u.__s,E)||n.__v==o.__v){for(n.__v!=o.__v&&(u.props=C,u.state=u.__s,u.__d=!1),n.__e=o.__e,n.__k=o.__k,n.__k.some((function(e){e&&(e.__=n)})),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(C,u.__s,E),S&&null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,w,v)}))}if(u.context=E,u.props=C,u.__P=e,u.__e=!1,P=t.__r,T=0,S){for(u.state=u.__s,u.__d=!1,P&&P(n),d=u.render(u.props,u.state,u.context),N=0;N<u._sb.length;N++)u.__h.push(u._sb[N]);u._sb=[]}else do{u.__d=!1,P&&P(n),d=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++T<25);u.state=u.__s,
7
+ null!=u.getChildContext&&(i=_(_({},i),u.getChildContext())),S&&!f&&null!=u.getSnapshotBeforeUpdate&&(v=u.getSnapshotBeforeUpdate(p,w)),O=d,null!=d&&d.type===b&&null==d.key&&(O=I(d.props.children)),l=A(e,g(O)?O:[O],n,o,i,r,s,a,l,c,h),u.base=n.__e,n.__u&=-161,u.__h.length&&a.push(u),x&&(u.__E=u.__=null)}catch(e){if(n.__v=null,c||null!=s)if(e.then){for(n.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,n.__e=l}else{for(B=s.length;B--;)m(s[B]);M(n)}else n.__e=o.__e,n.__k=o.__k,e.then||M(n);t.__e(e,n,o)}else null==s&&n.__v==o.__v?(n.__k=o.__k,n.__e=o.__e):l=n.__e=L(o.__e,n,o,i,r,s,a,c,h);return(d=t.diffed)&&d(n),128&n.__u?void 0:l}function M(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(M)}function O(e,n,o){for(var i=0;i<o.length;i++)B(o[i],o[++i],o[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function I(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:g(e)?e.map(I):_({},e)}
8
+ function L(n,o,i,r,s,a,l,c,h){var d,f,p,_,w,b,y,x=i.props,C=o.props,S=o.type;if("svg"==S?s="http://www.w3.org/2000/svg":"math"==S?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=a)for(d=0;d<a.length;d++)if((w=a[d])&&"setAttribute"in w==!!S&&(S?w.localName==S:3==w.nodeType)){n=w,a[d]=null;break}if(null==n){if(null==S)return document.createTextNode(C);n=document.createElementNS(s,S,C.is&&C),c&&(t.__m&&t.__m(o,a),c=!1),a=null}if(null==S)x===C||c&&n.data==C||(n.data=C);else{if(a=a&&e.call(n.childNodes),x=i.props||u,!c&&null!=a)for(x={},d=0;d<n.attributes.length;d++)x[(w=n.attributes[d]).name]=w.value;for(d in x)if(w=x[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=w;else if(!(d in C)){if("value"==d&&"defaultValue"in C||"checked"==d&&"defaultChecked"in C)continue;P(n,d,null,w,s)}for(d in C)w=C[d],"children"==d?_=w:"dangerouslySetInnerHTML"==d?f=w:"value"==d?b=w:"checked"==d?y=w:c&&"function"!=typeof w||x[d]===w||P(n,d,w,x[d],s)
9
+ ;if(f)c||p&&(f.__html==p.__html||f.__html==n.innerHTML)||(n.innerHTML=f.__html),o.__k=[];else if(p&&(n.innerHTML=""),A("template"==o.type?n.content:n,g(_)?_:[_],o,i,r,"foreignObject"==S?"http://www.w3.org/1999/xhtml":s,a,l,a?a[0]:i.__k&&v(i,0),c,h),null!=a)for(d=a.length;d--;)m(a[d]);c||(d="value","progress"==S&&null==b?n.removeAttribute("value"):null!=b&&(b!==n[d]||"progress"==S&&!b||"option"==S&&b!=x[d])&&P(n,d,b,x[d],s),d="checked",null!=y&&y!=n[d]&&P(n,d,y,x[d],s))}return n}function B(e,n,o){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,o)}}function F(e,n,o){var i,r;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||B(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&F(i[r],n,o||"function"!=typeof e.type);o||m(e.__e),e.__c=e.__=e.__e=void 0}function H(e,t,n){return this.constructor(e,n)}
10
+ function D(n,o,i){var r,s,a;o==document&&(o=document.documentElement),t.__&&t.__(n,o),r=!1?null:o.__k,s=[],a=[],N(o,n=o.__k=function(t,n,o){var i,r,s,a={};for(s in n)"key"==s?i=n[s]:"ref"==s?r=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return w(t,a,i,r,null)}(b,null,[n]),r||u,u,o.namespaceURI,r?null:o.firstChild?e.call(o.childNodes):null,s,r?r.__e:o.firstChild,false,a),O(s,n,a)}function V(e){function t(e){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,C(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,
11
+ t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e=f.slice,t={__e:function(e,t,n,o){for(var i,r,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,o||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},n=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},y.prototype.render=b,o=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,a=/(PointerCapture)$|Capture$/i,l=0,c=T(!1),h=T(!0),d=0;var U,z,q,$,W=0,j=[],X=t,Y=X.__b,K=X.__r,G=X.diffed,Q=X.__c,J=X.unmount,Z=X.__;function ee(e,t){
12
+ X.__h&&X.__h(z,e,W||t),W=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function te(e){return W=1,function(e,t,n){var o=ee(U++,2);if(o.t=e,!o.__c&&(o.__=[ge(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=z,!z.__f)){var i=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var s=o.__c.props!==e;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),r&&r.call(this,e,t,n)||s};z.__f=!0;var r=z.shouldComponentUpdate,s=z.componentWillUpdate;z.componentWillUpdate=function(e,t,n){if(this.__e){var o=r;r=void 0,i(e,t,n),r=o}s&&s.call(this,e,t,n)},z.shouldComponentUpdate=i}return o.__N||o.__}(ge,e)}function ne(e,t){var n=ee(U++,3);!X.__s&&pe(n.__H,t)&&(n.__=e,n.u=t,z.__H.__h.push(n))}function oe(e,t){var n=ee(U++,4);!X.__s&&pe(n.__H,t)&&(n.__=e,n.u=t,
13
+ z.__h.push(n))}function ie(e){return W=5,re((function(){return{current:e}}),[])}function re(e,t){var n=ee(U++,7);return pe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function se(e,t){return W=8,re((function(){return e}),t)}function ae(e){var t=z.context[e.__c],n=ee(U++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(z)),t.props.value):e.__}function le(){var e=ee(U++,11);if(!e.__){for(var t=z.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ce(){for(var e;e=j.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach(fe),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){z=null,Y&&Y(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Z&&Z(e,t)},X.__r=function(e){K&&K(e),U=0;var t=(z=e.__c).__H;t&&(q===z?(t.__h=[],z.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(ue),t.__h.forEach(fe),t.__h=[],U=0)),q=z},X.diffed=function(e){G&&G(e);var t=e.__c
14
+ ;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&$===X.requestAnimationFrame||(($=X.requestAnimationFrame)||de)(ce)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),q=z=null},X.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ue),e.__h=e.__h.filter((function(e){return!e.__||fe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],X.__e(n,e.__v)}})),Q&&Q(e,t)},X.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ue(e)}catch(e){t=e}})),n.__H=void 0,t&&X.__e(t,n.__v))};var he="function"==typeof requestAnimationFrame;function de(e){var t,n=function(){clearTimeout(o),he&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);he&&(t=requestAnimationFrame(n))}function ue(e){var t=z,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),z=t}function fe(e){var t=z;e.__c=e.__(),z=t}function pe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ge(e,t){return"function"==typeof t?t(e):t}function _e(e,t,n){return(t=function(e){
15
+ var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class me{constructor(){_e(this,"_listeners",void 0),this._listeners=new Map}add(e,t,n,o){e.addEventListener(t,n,o);const i=Symbol();return this._listeners.set(i,{eventTarget:e,eventType:t,listener:n,options:o}),i}remove(e){const t=this._listeners.get(e);if(t){const{eventTarget:n,eventType:o,listener:i,options:r}=t;n.removeEventListener(o,i,r),this._listeners.delete(e)}}removeAll(){this._listeners.forEach((({eventTarget:e,eventType:t,listener:n,options:o})=>{e.removeEventListener(t,n,o)})),this._listeners.clear()}}function we(e){e.focus()}
16
+ function be(e,{autofocus:t=!1,loop:n=!0,horizontal:o=!0,vertical:i=!0,selector:r="a,button",containerVisible:s=!0,focusElement:a=we}={}){const l=ie(null),c=function(e){const t=ie({callback:e,call:(...e)=>t.current.callback(...e)});return t.current.callback=e,t.current.call}(a);ne((()=>{if(!s)return()=>{};if(!e.current)throw new Error("Container ref not set");const a=e.current,h=()=>{const e=Array.from(a.querySelectorAll(r)).filter((e=>null!==e.offsetParent&&!function(e){return"boolean"==typeof e.disabled&&e.disabled}(e)));return document.activeElement===a&&e.unshift(a),e},d=(e=h(),t=-1,n=!1,o)=>{t<0&&(t=e.findIndex((e=>0===e.tabIndex)))<0&&(t=0);for(const[i,r]of e.entries())r.tabIndex=i===t?0:-1,i===t&&n&&(l.current=r,c(r,o))},u=h(),f=l.current?u.indexOf(l.current):0;d(u,f,t);const p=new me;p.add(a,"focusin",(e=>{if(e.target===a&&l.current)return void c(l.current);const n=h(),o=n.indexOf(e.target);o>=0&&d(n,o,t)})),p.add(a,"keydown",(e=>{const t=h();let r=t.findIndex((e=>0===e.tabIndex)),s=!1
17
+ ;o&&"ArrowLeft"===e.key||i&&"ArrowUp"===e.key?(0===r?r=n?t.length-1:r:--r,s=!0):o&&"ArrowRight"===e.key||i&&"ArrowDown"===e.key?(r===t.length-1?r=n?0:r:++r,s=!0):"Home"===e.key?(r=0,s=!0):"End"===e.key&&(r=t.length-1,s=!0),s&&(d(t,r,!0,e),e.preventDefault(),e.stopPropagation())}));const g=new MutationObserver((()=>{d()}));return g.observe(a,{subtree:!0,attributes:!0,attributeFilter:["disabled"],childList:!0}),()=>{p.removeAll(),g.disconnect()}}),[t,e,c,o,n,r,i,s])}function ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class ve{constructor(e){ye(this,"_target",void 0),ye(this,"_value",void 0),this._target=e,this._value=null}
18
+ get current(){return this._value}set current(e){this._value=e,this._updateTarget()}get target(){return this._target}set target(e){e!==this._target&&(this._target=e,this._updateTarget())}_updateTarget(){const e=this._value;"function"==typeof this._target?this._target(e):this._target&&(this._target.current=e)}}function xe(e){const t=ie(new ve(e));return t.current.target=e,t.current}var Ce=0;function Se(e,n,o,i,r,s){n||(n={});var a,l,c=n;if("ref"in c)for(l in c={},n)"ref"==l?a=n[l]:c[l]=n[l];var h={type:e,props:c,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ce,__i:-1,__u:0,__source:r,__self:s};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return t.vnode&&t.vnode(h),h}var Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ee,ke={exports:{}}
19
+ ;var Pe,Te=(Ee||(Ee=1,Pe=ke,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,n(i)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var r in n)e.call(n,r)&&n[r]&&(i=o(i,r));return i}function o(e,t){return t?e?e+" "+t:e+t:e}Pe.exports?(t.default=t,Pe.exports=t):window.classNames=t}()),ke.exports),Ne=Re(Te);function Me({children:e,classes:t,elementRef:n,active:o=!1,variant:i="raised",width:r="full",...s}){return Se("div",{"data-component":"Card",...s,ref:n,className:Ne("rounded-lg border bg-white",{"shadow hover:shadow-md":"raised"===i,"shadow-md":o&&"raised"===i},{"w-full":"full"===r,"w-auto":"auto"===r},t),children:e})}function Oe({children:e,classes:t,elementRef:n,size:o="md",...i}){return Se("div",{
20
+ "data-component":"CardContent",...i,ref:n,className:Ne({"p-3 space-y-4":"md"===o,"p-2 space-y-3":"sm"===o,"p-4 space-y-6":"lg"===o},t),children:e})}function Ie(e){return Se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"AnnotateIcon",...e,children:Se("g",{"fill-rule":"evenodd",children:[Se("path",{fill:"none",d:"M0 0h16v16H0z"}),Se("path",{fill:"currentColor",
21
21
  d:"M14 0a2 2 0 0 1 2 2v13a1 1 0 0 1-1.555.832l-4.262-1.757A1 1 0 0 0 9.802 14H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm-2.109 3.5h-.484l-.14.006-.122.018a.7.7 0 0 0-.2.071l-.076.054-.108.1-.097.1-1.632 1.999-.091.12-.084.129a2.6 2.6 0 0 0-.291.722l-.03.142-.027.218-.009.223v2.646l.01.086.027.08a.54.54 0 0 0 .236.236l.067.028.07.017.074.005h2.907l.074-.005.094-.025a.5.5 0 0 0 .169-.108.5.5 0 0 0 .082-.096l.029-.051.027-.081.01-.086V7.336l-.006-.073-.018-.068a.44.44 0 0 0-.124-.178.6.6 0 0 0-.103-.074l-.055-.026-.087-.024-.092-.009h-.579l-.057-.006-.054-.017a.3.3 0 0 1-.096-.07.2.2 0 0 1-.045-.078l-.004-.04.01-.043.022-.043 1.311-2.227.047-.09.037-.106a.5.5 0 0 0-.06-.394.53.53 0 0 0-.255-.22l-.084-.028-.092-.016zm-5.924 0h-.424l-.121.006-.108.018a.6.6 0 0 0-.174.071l-.067.054-.095.1-.084.1-1.429 1.999-.08.12-.096.174a2.8 2.8 0 0 0-.232.677l-.025.142-.024.218L3 7.402v2.646l.008.086.024.08a.5.5 0 0 0 .097.148q.052.055.11.088l.058.028.062.017.065.005h2.543l.065-.005.082-.025a.515.515 0 0 0 .22-.204l.025-.051.024-.081.008-.086V7.336l-.005-.073-.023-.09a.487.487 0 0 0-.191-.23l-.048-.026-.076-.024-.08-.009H5.46l-.05-.006-.047-.017a.3.3 0 0 1-.084-.07.2.2 0 0 1-.04-.078l-.003-.04.008-.043.02-.043L6.411 4.36l.04-.09.033-.106a.55.55 0 0 0-.053-.394.5.5 0 0 0-.222-.22l-.074-.028-.08-.016z"
22
22
  })]})})}function Le(e){return Se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CancelIcon",...e,children:Se("g",{"fill-rule":"evenodd",children:[Se("path",{fill:"none",d:"M0 0h16v16H0z"}),Se("path",{fill:"currentColor",d:"m12.322 5.085-.08.087-2.828 2.827 2.829 2.83a1 1 0 0 1-1.32 1.497l-.095-.083L8 9.414l-2.828 2.829c-.915.914-2.272-.388-1.494-1.328l.08-.087L6.584 8 3.757 5.172a1 1 0 0 1 1.32-1.498l.095.083L8 6.585l2.828-2.828c.886-.885 2.188.309 1.56 1.239z"})]})})}function Be(e){return Se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretDownIcon",...e,children:Se("g",{"fill-rule":"evenodd",children:[Se("path",{fill:"none",d:"M0 0h16v16H0z"}),Se("path",{fill:"currentColor",d:"M3.293 5.293a1 1 0 0 1 1.32-.083l.094.083L8 8.585l3.293-3.292a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 .083 1.32l-.083.094-4 4a1 1 0 0 1-1.32.083l-.094-.083-4-4a1 1 0 0 1 0-1.414"
23
23
  })]})})}function Fe(e){return Se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretLeftIcon",...e,children:Se("g",{"fill-rule":"evenodd",children:[Se("path",{fill:"none",d:"M0 0h16v16H0z"}),Se("path",{fill:"currentColor",d:"M9.293 3.293a1 1 0 0 1 1.497 1.32l-.083.094L7.415 8l3.292 3.293a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.32.083l-.094-.083-4-4a1 1 0 0 1-.083-1.32l.083-.094z"})]})})}function He(e){return Se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true",viewBox:"0 0 16 16","data-component":"CaretRightIcon",...e,children:Se("g",{"fill-rule":"evenodd",children:[Se("path",{fill:"none",d:"M0 0h16v16H0z"}),Se("path",{fill:"currentColor",d:"M5.293 3.293a1 1 0 0 1 1.32-.083l.094.083 4 4a1 1 0 0 1 .083 1.32l-.083.094-4 4a1 1 0 0 1-1.497-1.32l.083-.094L8.585 8 5.293 4.707a1 1 0 0 1-.083-1.32z"})]})})}function De(e){return Se("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",
@@ -149,7 +149,7 @@ this._contentReady&&(await this._contentReady,this._contentReady=void 0);const t
149
149
  this._updateAnchors(this.anchors.concat(n),!0),this._sidebarRPC.call("syncAnchoringStatus",e),n}detach(e,t=!0){this._annotations.delete(e);const n=[];for(const t of this.anchors)t.annotation.$tag!==e?n.push(t):t.highlights&&this._highlighter.removeHighlights(t.highlights);this._updateAnchors(n,t)}_updateAnchors(e,t){this.anchors=e,this._clusterToolbar?.scheduleClusterUpdates(),t&&this._bucketBarClient.update(this.anchors)}async createAnnotation(e){if("selection"===e)return this.createAnnotationFromSelection();if(!["rect","point"].includes(e))throw new Error("Unsupported annotation tool");{let t=!1;try{this._hostRPC.call("activeToolChanged",e);const t=await this._drawTool.draw(e),n=await this.getDocumentInfo(),o=[{source:n.uri,selector:await this._integration.describe(this.element,t)}],i={uri:n.uri,document:n.metadata,target:o,$tag:"a:"+Ct(8)};return this._sidebarRPC.call("createAnnotation",i),this.anchor(i),i}catch(e){if(e instanceof oo&&["canceled","restarted"].includes(e.kind))return t="restarted"===e.kind,
150
150
  null;throw e}finally{t||this._hostRPC.call("activeToolChanged",null)}}}async createAnnotationFromSelection({highlight:e=!1}={}){const t=this.selectedRanges;this.selectedRanges=[];const n=await this.getDocumentInfo(),o=this.element,i=(await Promise.all(t.map((e=>this._integration.describe(o,e))))).map((e=>({source:n.uri,selector:e}))),r={uri:n.uri,document:n.metadata,target:i,$highlight:e,$cluster:e?"user-highlights":"user-annotations",$tag:"a:"+Ct(8)};return this._sidebarRPC.call("createAnnotation",r),this.anchor(r),ir(),r}_hoverAnnotations(e){this._hoveredAnnotations.clear(),e.forEach((e=>this._hoveredAnnotations.add(e)));for(const t of this.anchors)if(t.highlights){const n=e.includes(t.annotation.$tag);this._highlighter.setHighlightsFocused(t.highlights,n)}this._sidebarRPC.call("hoverAnnotations",e)}_onSelection(e){const t=this._integration.getAnnotatableRange(e);if(!t)return void this._onClearSelection();const n=document.getSelection(),o=Hn(n),i=Un(n);i?(this.selectedRanges=[t],
151
151
  this._hostRPC.call("textSelected"),this._adder.annotationsForSelection=tr(),this._isAdderVisible=!0,this._adder.show(i,o)):this._onClearSelection()}_onClearSelection(){this._isAdderVisible=!1,this._adder.hide(),this.selectedRanges=[],this._informHostOnNextSelectionClear&&this._hostRPC.call("textUnselected"),this._informHostOnNextSelectionClear=!0}selectAnnotations(e,{toggle:t=!1,focusInSidebar:n=!1}={}){t?this._sidebarRPC.call("toggleAnnotationSelection",e):this._sidebarRPC.call("showAnnotations",e,n),this._sidebarRPC.call("openSidebar")}setHighlightsVisible(e,t=!0){this._highlighter.setHighlightsVisible(e),this._highlightsVisible=e,t&&this._hostRPC.call("highlightsVisibleChanged",e)}get highlightsVisible(){return this._highlightsVisible}fitSideBySide(e){this._sidebarLayout=e,this._integration.fitSideBySide(e)}get hoveredAnnotationTags(){return this._hoveredAnnotations}_handleShortcut(e){dn(e,"Ctrl+Shift+H")&&this.setHighlightsVisible(!this._highlightsVisible)}_setOutsideAssignmentNoticeVisible(e){
152
- this._outsideAssignmentNotice||(this._outsideAssignmentNotice=new Ji(this.element)),this._outsideAssignmentNotice.setVisible(e)}}function ar(e,t){const n=new URL(e),o=new URLSearchParams;return o.append("config",JSON.stringify(t)),n.hash=o.toString(),n.toString()}function lr(e,t){const n={};for(const[e,o]of Object.entries(t))"notebookAppUrl"!==e&&"sidebarAppUrl"!==e&&null!=o&&(n[e]=o);n.origin=new URL(e).origin,n.version="1.1702.0";const o=new URL(window.location.href);if(o.hash="",n.hostURL=o.toString(),Array.isArray(n.services)&&n.services?.length>0){const e=n.services[0];e.onLoginRequest&&(e.onLoginRequestProvided=!0),e.onLogoutRequest&&(e.onLogoutRequestProvided=!0),e.onSignupRequest&&(e.onSignupRequestProvided=!0),e.onProfileRequest&&(e.onProfileRequestProvided=!0),e.onHelpRequest&&(e.onHelpRequestProvided=!0)}return n}function cr({closed:e,onClose:t,children:n,"data-testid":o,"aria-label":i}){const r=ie(null);return ne((()=>{e?r.current?.close():r.current?.showModal()}),[e]),ne((()=>{const e=r.current
152
+ this._outsideAssignmentNotice||(this._outsideAssignmentNotice=new Ji(this.element)),this._outsideAssignmentNotice.setVisible(e)}}function ar(e,t){const n=new URL(e),o=new URLSearchParams;return o.append("config",JSON.stringify(t)),n.hash=o.toString(),n.toString()}function lr(e,t){const n={};for(const[e,o]of Object.entries(t))"notebookAppUrl"!==e&&"sidebarAppUrl"!==e&&null!=o&&(n[e]=o);n.origin=new URL(e).origin,n.version="1.1704.0";const o=new URL(window.location.href);if(o.hash="",n.hostURL=o.toString(),Array.isArray(n.services)&&n.services?.length>0){const e=n.services[0];e.onLoginRequest&&(e.onLoginRequestProvided=!0),e.onLogoutRequest&&(e.onLogoutRequestProvided=!0),e.onSignupRequest&&(e.onSignupRequestProvided=!0),e.onProfileRequest&&(e.onProfileRequestProvided=!0),e.onHelpRequest&&(e.onHelpRequestProvided=!0)}return n}function cr({closed:e,onClose:t,children:n,"data-testid":o,"aria-label":i}){const r=ie(null);return ne((()=>{e?r.current?.close():r.current?.showModal()}),[e]),ne((()=>{const e=r.current
153
153
  ;return e?.addEventListener("cancel",t),()=>{e?.removeEventListener("cancel",t)}}),[t]),Se("dialog",{ref:r,className:"relative m-5 w-full h-full backdrop:bg-black/50","data-testid":o,"aria-label":i,children:n})}function hr({closed:e,children:t,...n}){return Se("div",{...n,className:Ne("fixed z-max top-0 left-0 right-0 bottom-0 p-3 bg-black/50",{hidden:e}),children:Se("div",{className:"relative w-full h-full",children:t})})}function dr({document_:e=document,...t}){return Se(re((()=>function(e){return"function"==typeof e.createElement("dialog").showModal}(e)?cr:hr),[e]),{...t})}function ur({config:e,groupId:t}){return Se("iframe",{title:"Hypothesis annotation notebook",className:"h-full w-full border-0",allow:"fullscreen; clipboard-write",src:ar(e.notebookAppUrl,{...lr(e.notebookAppUrl,e),group:t})})}function fr({eventBus:e,config:t}){const[n,o]=te(0),[i,r]=te(!0),[s,a]=te(null),l=ie(""),c=ie(null);ne((()=>(l.current=document.body.style.overflow,()=>{document.body.style.overflow=l.current})),[]),ne((()=>{
154
154
  document.body.style.overflow=i?l.current:"hidden"}),[i]),ne((()=>{const t=e.createEmitter();return t.subscribe("openNotebook",(e=>{r(!1),o((e=>e+1)),a(e)})),c.current=t,()=>{t.destroy()}}),[e]);const h=se((()=>{r(!0),c.current?.publish("closeNotebook")}),[]);return null===s?null:Se(dr,{closed:i,onClose:h,"data-testid":"notebook-outer","aria-label":"Hypothesis notebook",children:[Se("div",{className:"absolute right-0 m-3",children:Se(ot,{title:"Close notebook",onClick:h,variant:"dark",classes:Ne("!bg-transparent enabled:hover:!bg-grey-3"),"data-testid":"close-button",children:Se(Le,{className:"w-4 h-4"})})}),Se(ur,{config:t,groupId:s},n)]})}class pr{constructor(e,t,n){this._container=new vn("notebook",(()=>Se(fr,{eventBus:t,config:n}))),e.append(this._container.element),this._container.render()}destroy(){this._container.destroy()}}function gr({eventBus:e,config:t}){const[n,o]=te(!0),i=ie(null);ne((()=>{const t=e.createEmitter();return t.subscribe("openProfile",(()=>{o(!1)})),i.current=t,()=>{t.destroy()}
155
155
  }),[e]);const r=()=>{o(!0),i.current?.publish("closeProfile")};return n?null:Se(dr,{closed:n,onClose:r,"data-testid":"profile-outer","aria-label":"Hypothesis profile",children:[Se("div",{className:"absolute right-0 m-3",children:Se(ot,{title:"Close profile dialog",onClick:r,variant:"dark",classes:Ne("!bg-transparent enabled:hover:!bg-grey-3"),children:Se(Le,{className:"w-4 h-4"})})}),Se("iframe",{title:"Hypothesis profile",className:"h-full w-full border-0",src:t.profileAppUrl})]})}class _r{constructor(e,t,n){this._container=new vn("profile",(()=>Se(gr,{eventBus:t,config:n}))),e.append(this._container.element),this._container.render()}destroy(){this._container.destroy()}}function mr({above:e,below:t,buckets:n,onFocusAnnotations:o,onScrollToAnnotation:i,onSelectAnnotations:r}){const s=e.anchors.length>0,a=t.anchors.length>0,l=e=>e.anchors.map((e=>e.tag));return Se("ul",{className:"relative",children:[s&&Se("li",{className:"absolute right-0 pointer-events-auto mt-[-11px]",style:{top:e.position},children:Se(vt,{