diff --git a/dist/readthedocs-addons.js b/dist/readthedocs-addons.js index 1d11f156..1e07c977 100644 --- a/dist/readthedocs-addons.js +++ b/dist/readthedocs-addons.js @@ -35,4 +35,4 @@ const Ki=1,Ji=2,Xi=e=>(...t)=>({_$litDirective$:e,values:t});class ea{constructo * SPDX-License-Identifier: BSD-3-Clause */ class ta extends ea{constructor(e){if(super(e),this.it=W,e.type!==Ji)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===W||null==e)return this._t=void 0,this.it=e;if(e===q)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}ta.directiveName="unsafeHTML",ta.resultType=1;const na=Xi(ta),ra=Xi(class extends ea{constructor(e){if(super(e),e.type!==Ki||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const n=e.element.classList;for(const e of this.st)e in t||(n.remove(e),this.st.delete(e));for(const e in t){const r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return q}});var oa,ia,aa,sa,ca,la,ua,da,fa,ha,pa,ma,ga;function ya(e){return ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ya(e)}function Aa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||wa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function va(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ba(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=wa(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function wa(e,t){if(e){if("string"==typeof e)return Ma(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}function Ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n\n
\n
\n
\n
\n ','\n
\n ','\n
\n \n
\n \n '])),!this.show,this.triggerCloseModal,ra(this.cssFormFocusClasses),this.inputIcon.node[0],this.queryInput,this.selectResultKeyboard,this.queryInputFocus,this.queryInputFocus,this.renderFilters(),this.results||this.renderRecentSearches(),it("https://about.readthedocs.com/","search"),"data:image/svg+xml;base64,PD94bWwg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LjkgICBjNC43LDIuMyw4LjIsNC45LDEwLjUsNy42YzYuMyw2LjcsOS41LDE1LjIsOS41LDI1LjdjMCwxMy41LTUsMjQuMS0xNC45LDMxLjljLTkuNyw3LjYtMjIuMiwxMS40LTM3LjMsMTEuNCAgIGMtMjIsMC0zOC42LTIuOC00OS43LTguNHYtMzcuNmwyNC4zLTEuOXYxM2MwLDcuOSw3LjYsMTEuOSwyMi43LDExLjlzMjIuNy01LjUsMjIuNy0xNi41YzAtNC0xLjQtNy4yLTQuMS05LjcgICBjLTIuNS0yLjUtNS00LjItNy42LTUuMWMtMi41LTAuOS01LjYtMS44LTkuMi0yLjdjLTMuNC0wLjktNi44LTEuOC0xMC4zLTIuN2MtMy4yLTAuOS02LjgtMi4xLTEwLjgtMy41Yy0zLjgtMS42LTgtMy45LTEyLjctNi44ICAgYy05LjItNS45LTEzLjgtMTUuOS0xMy44LTI5LjdjMC0xNC4xLDUtMjQuOSwxNC45LTMyLjRjOS45LTcuNiwyMi4zLTExLjQsMzcuMy0xMS40YzE1LjEsMCwzMC4xLDMuNiw0NC45LDEwLjh2MzIuNGwtMjQuMywxLjkgICB2LTExLjRDMjU5OS4xLDM4MS4yLDI1OTcsMzc4LjEsMjU5Mi45LDM3Ni41Ii8+CjwvZz4KPGRpdiB4bWxucz0iIiBpZD0ic2FrYS1ndWktcm9vdCI+PGRpdj48ZGl2PjxzdHlsZS8+PC9kaXY+PC9kaXY+PC9kaXY+PC9zdmc+")}},{key:"renderNoResultsFound",value:function(){var e=ci(ui,{title:"Not found"}),t=this.getUserQuery();this.results=F(ia||(ia=va(['\n
\n ','\n

No results for "','"

\n
\n

Try using the following special queries:

\n
    \n
  • \n Exact phrase: use double quotes to match a whole\n phrase: "adding a subproject".\n
  • \n
  • \n Prefix: use an asterisk at the end of any term to\n prefix a result: environ*.\n
  • \n
  • \n Fuzziness: add a tilde and a number to indicate\n the fuzziness of the word: getter~2.\n
  • \n
\n
\n\n \n
\n '])),e.node[0],t)}},{key:"renderFilters",value:function(){var e=this;return this.config.addons.search.filters.length?F(aa||(aa=va(['\n
\n Filters\n \n
\n "])),this.filters.map((function(t,n){return F(sa||(sa=va(["\n
  • \n \n \n
  • \n "])),e.filterClicked,n,t.value,t.default,n,t.name)}))):W}},{key:"renderResults",value:function(e){var t=this,n=ci(li,{title:"Result",classes:["header","icon"]});this.results=F(ca||(ca=va(['\n
    \n ',"\n
    \n "])),e.results.map((function(e,r){return F(la||(la=va(['
    \n \n ',"\n

    "," ","

    \n \n\n ","\n
    "])),t.followResultLink,t.getResultLink(e),n.node[0],e.title,t.renderExternalProject(e),e.blocks.map((function(n,o){return F(ua||(ua=va(["",""])),t.renderBlockResult(n,"".concat(n.id,"-").concat(r,"-").concat(o),e))})))})))}},{key:"followResultLink",value:function(e){var t=new CustomEvent(_e);document.dispatchEvent(t)}},{key:"getResultLink",value:function(e){var t=e.path;return e.project.slug!==this.config.projects.current.slug&&(t="".concat(e.domain).concat(e.path)),t}},{key:"renderBlockResult",value:function(e,t,n){var r=this,o=e.title;e.highlights.title.length&&(o=na(e.highlights.title[0]));var i=e.content.substring(0,80)+" ...";return e.highlights.content.length&&(i=i.length>80?na("... "+e.highlights.content[0].substring(0,80)+" ..."):na(e.highlights.content[0])),F(da||(da=va(["\n \n
    \n

    ','

    \n

    ',"

    \n
    \n \n "])),this.mouseenterResultHit,(function(){return r.storeRecentSearch(e,n)}),this.getResultLink(n),e.id,t,o,i)}},{key:"renderRecentSearches",value:function(){var e=this,t=this.getRecentSearches();if(!t||!t.length)return F(fa||(fa=va(["

    No recent searches

    "])));if(this.hideRecentSearches)return W;t.reverse();var n=ci(Ai,{title:"Result",classes:["header","icon"]}),r=ci(gi,{title:"Clear recent search",classes:["header","icon"]});return F(ha||(ha=va(['\n
    \n

    Recent:

    \n ',"\n
    \n "])),t.map((function(t){var o=t.block,i=t.result;return F(pa||(pa=va(['
    \n
    \n \n ',"\n

    "," ",'

    \n \n (from project ',") \n "])),e.project.slug):W}},{key:"closeModal",value:function(e){this.show=!1,document.activeElement.blur()}},{key:"showModal",value:function(e){this.show=!0}},{key:"updated",value:function(e){var t=this.shadowRoot.querySelector("input[type=search]");null!=t&&t.focus()}},{key:"queryInputFocus",value:function(e){"focusin"===e.type?this.cssFormFocusClasses={focus:!0}:"focusout"===e.type&&(this.cssFormFocusClasses={focus:!1})}},{key:"selectNextResult",value:function(e){var t,n,r=this.renderRoot.querySelectorAll("a.hit"),o=ba(r.entries());try{for(o.s();!(n=o.n()).done;){var i=Aa(n.value,2),a=i[0],s=i[1];if(s.classList.contains("active")){t=a;break}}}catch(e){o.e(e)}finally{o.f()}var c=r.length>0?r.length-1:0,l=0;void 0!==t&&(l=e?t+1:t-1),l>c?l=0:l<0&&(l=c);var u,d=ba(this.renderRoot.querySelectorAll("a.hit.active"));try{for(d.s();!(u=d.n()).done;){u.value.classList.remove("active")}}catch(e){d.e(e)}finally{d.f()}var f=r[l];f.classList.add("active"),f.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}},{key:"selectResultKeyboard",value:function(e){if("ArrowDown"===e.key&&(e.preventDefault(),this.selectNextResult(!0)),"ArrowUp"===e.key&&(e.preventDefault(),this.selectNextResult(!1)),"Enter"===e.key){e.preventDefault();var t=this.renderRoot.querySelector("a.hit.active");null!==t&&t.click()}"Escape"===e.key&&(e.preventDefault(),this.triggerCloseModal())}},{key:"getUserQuery",value:function(){return this.renderRoot.querySelector("input[type=search]").value}},{key:"showSpinIcon",value:function(){"circle-notch"!==this.inputIcon.iconName&&(this.inputIcon=ci(pi,{title:"Spinner",classes:["spinner","fa-spin"]}))}},{key:"showMagnifierIcon",value:function(){this.inputIcon=ci(di,{title:"Search"})}},{key:"removeAllResults",value:function(){this.results=null}},{key:"fetchResults",value:function(e){var t=this;this.removeAllResults(),this.showSpinIcon();return rt((function(){t.hideRecentSearches=!0;var n="/_/api/v3/search/?"+new URLSearchParams({q:e}).toString();window.location.href.startsWith("http://localhost")&&(n="/_/readthedocs-search.json"),ut(n,{method:"GET",headers:{"X-RTD-Hosting-Integrations-Version":et}}).then((function(e){if(!e.ok)throw new Error;return e.json()})).then((function(e){e.results.length>0?t.renderResults(e):t.renderNoResultsFound(),t.showMagnifierIcon()})).catch((function(e){console.error(e),t.removeAllResults()}))}),250)}},{key:"getCurrentFilter",value:function(){var e,t=[],n=ba(this.renderRoot.querySelectorAll(".filters input[type=checkbox]:checked"));try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.value)}}catch(e){n.e(e)}finally{n.f()}return t.join(" ")||this.defaultFilter.value}},{key:"queryInput",value:function(e){var t=this,n=this.getUserQuery();if(n.length>=3){null!==this.currentQueryRequest&&this.currentQueryRequest.cancel(),n=this.getCurrentFilter()+" "+n,this.currentQueryRequest=this.fetchResults(n),this.currentQueryRequest()}else{this.hideRecentSearches=!1,rt((function(){t.removeAllResults()}),300)()}}},{key:"filterClicked",value:function(e){this.queryInput()}},{key:"mouseenterResultHit",value:function(e){var t,n=ba(this.renderRoot.querySelectorAll("a.hit.active"));try{for(n.s();!(t=n.n()).done;){t.value.classList.remove("active")}}catch(e){n.e(e)}finally{n.f()}}},{key:"triggerCloseModal",value:function(){var e=new CustomEvent(_e);document.dispatchEvent(e)}},{key:"connectedCallback",value:function(){Sa(t,"connectedCallback",this,3)([]),document.addEventListener(De,this._handleShowModal),document.addEventListener(_e,this._handleCloseModal)}},{key:"disconnectedCallback",value:function(){document.removeEventListener(De,this._handleShowModal),document.removeEventListener(_e,this._handleCloseModal),Sa(t,"disconnectedCallback",this,3)([])}}])}(ce);_a(Oa,"elementName","readthedocs-search"),_a(Oa,"properties",{config:{state:!0},filters:{state:!0},show:{state:!0},inputIcon:{state:!0},results:{state:!0},hideRecentSearches:{state:!0},cssFormFocusClasses:{state:!0},triggerKeycode:{type:Number,attribute:"trigger-keycode"},triggerSelector:{type:String,attribute:"trigger-selector"},triggerEvent:{type:String,attribute:"trigger-event"}}),_a(Oa,"styles",Zi.A);var za=function(e){function t(){return Ca(this,t),ja(this,t,arguments)}return Ta(t,e),La(t)}(nt);_a(za,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.search.json"),_a(za,"addonEnabledPath","addons.search.enabled"),_a(za,"addonName","Search"),_a(za,"enabledOnHttpStatus",[200,404]),_a(za,"elementClass",Oa),customElements.define(Oa.elementName,Oa);var Ba=n(2374),$a=n(3329),Pa=n(8968);function Ra(e){return Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ra(e)}function Ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ya(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n\n '," ","\n "])),e.node[0],this.config.versions.current.slug));var r=ci(wi,{classes:["icon"]}),o=W;return this.config.projects.translations.length>0&&(o=F(as||(as=xs(['\n ',"\n "," "])),t.node[0],this.config.projects.current.language.code)),F(ss||(ss=xs(['\n
    \n \n '," ",'\n ',"\n
    \n "])),this._toggleOpen,this.readthedocsLogo,o,n,r.node[0])}},{key:"renderFooter",value:function(){return F(cs||(cs=xs(['\n \n \n Addons documentation\n \n Hosted by\n Read the Docs\n \n '])),it("https://docs.readthedocs.io/page/addons.html","flyout"),it("https://about.readthedocs.com/","flyout"))}},{key:"showSearch",value:function(){var e=new CustomEvent(Be);document.dispatchEvent(e);var t=new CustomEvent(De);document.dispatchEvent(t),this._close()}},{key:"renderSearch",value:function(){return he().get(this.config,"addons.search.enabled",!1)?F(ls||(ls=xs(['\n
    \n
    Search
    \n
    \n
    \n \n \n
    \n
    \n '])),this.showSearch):W}},{key:"renderVCS",value:function(){if(!this.config.addons.flyout.vcs||!this.config.addons.flyout.vcs.view_url)return W;var e=this.config.addons.flyout.vcs;return F(us||(us=xs(["\n
    \n
    On ",'
    \n
    \n View\n
    \n
    \n '])),e.name,e.view_url)}},{key:"renderReadTheDocs",value:function(){return F(ds||(ds=xs(['\n
    \n
    On Read the Docs
    \n
    \n Project Home\n
    \n
    \n Builds\n
    \n
    \n '])),it(this.config.projects.current.urls.home.replace("readthedocs.org","app.readthedocs.org").replace("readthedocs.com","app.readthedocs.com").replace("app.app.","app."),"flyout"),it(this.config.projects.current.urls.builds.replace("readthedocs.org","app.readthedocs.org").replace("readthedocs.com","app.readthedocs.com").replace("app.app.","app."),"flyout"))}},{key:"renderDownloads",value:function(){if(!Object.keys(this.config.versions.current.downloads).length)return W;var e={pdf:"PDF",epub:"EPUB",htmlzip:"HTML"};return F(fs||(fs=xs(['\n
    \n
    Downloads
    \n ',"\n
    \n "])),Object.entries(this.config.versions.current.downloads).map((function(t){var n=Ls(t,2),r=n[0],o=n[1];return F(hs||(hs=xs(['
    \n ',"\n
    "])),o,e[r])})))}},{key:"renderVersions",value:function(){var e=this;if(!this.config.versions.active.length||"single_version_without_translations"===this.config.projects.current.versioning_scheme)return W;return F(gs||(gs=xs(['\n
    \n
    Versions
    \n ',"\n
    \n "])),this.config.versions.active.map((function(t){return F(ys||(ys=xs(["
    ","
    "])),function(t){var n=st(t.urls.documentation,e.config.readthedocs.resolver.filename),r=F(ps||(ps=xs(['',""])),n,t.slug);return e.config.versions.current.slug==t.slug?F(ms||(ms=xs(["",""])),r):r}(t))})))}},{key:"renderLanguages",value:function(){var e=this;if(!this.config.projects.translations.length)return W;var t=this.config.projects.translations.concat(this.config.projects.current);return t=t.sort((function(e,t){return e.language.code.localeCompare(t.language.code)})),F(bs||(bs=xs(['\n
    \n
    Languages
    \n ',"\n
    \n "])),t.map((function(t){return F(ws||(ws=xs(["
    ","
    "])),function(t){var n=st(t.urls.documentation,e.config.readthedocs.resolver.filename),r=F(As||(As=xs(['',""])),n,t.language.code);return e.config.projects.current.slug===t.slug?F(vs||(vs=xs(["",""])),r):r}(t))})))}},{key:"updateCSSClasses",value:function(){this.classes={floating:this.floating,container:!0},this.classes[this.position]=!0}},{key:"render",value:function(){return null===this.config?W:(this.updateCSSClasses(),F(Ms||(Ms=xs(["\n
    \n ","\n
    \n "," ","\n "," ","\n "," ","\n
    \n ","\n
    \n
    \n "])),ra(this.classes),this.renderHeader(),ra({closed:!this.opened}),this.renderLanguages(),this.renderVersions(),this.renderDownloads(),this.renderReadTheDocs(),this.renderVCS(),this.renderSearch(),this.renderFooter()))}},{key:"connectedCallback",value:function(){_s(t,"connectedCallback",this,3)([]),document.addEventListener(ze,this._showFlyout),document.addEventListener(Be,this._hideFlyout),window.addEventListener("click",this._onOutsideClick)}},{key:"disconnectedCallback",value:function(){document.removeEventListener(ze,this.showFlyout),document.removeEventListener(Be,this.hideFlyout),window.removeEventListener("click",this._onOutsideClick),_s(t,"disconnectedCallback",this,3)([])}}])}(ce);$s(Rs,"elementName","readthedocs-flyout"),$s(Rs,"properties",{config:{state:!0},opened:{type:Boolean},floating:{type:Boolean},position:{type:String}}),$s(Rs,"styles",Cs.A);var Us=function(e){function t(){return Ss(this,t),Ts(this,t,arguments)}return zs(t,e),ks(t,null,[{key:"requiresUrlParam",value:function(){return lt.isSinglePageApplication()}}])}(nt);$s(Us,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.flyout.json"),$s(Us,"addonEnabledPath","addons.flyout.enabled"),$s(Us,"addonName","Flyout"),$s(Us,"elementClass",Rs),customElements.define(Rs.elementName,Rs);var Ys=n(4333);function Qs(e){return Qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qs(e)}function Fs(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return qs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qs(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div.wy-side-scroll",s=document.querySelector(a),this.elementAboveTheFold(s)?(e.setAttribute("data-ea-type","readthedocs-sidebar"),e.classList.add("ethical-rtd"),e.classList.add("ethical-dark-theme"),c=!0):(t=["section","nav"],this.setFixedFooterAdProperties(t,e),c=!0)):lt.isSphinxFuroLikeTheme()?(a=".sidebar-tree",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.setAttribute("data-ea-type","image"),c=!0)):lt.isSphinxBookThemeLikeTheme()?(a=".sidebar-primary-items__start.sidebar-primary__section",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),c=!0)):lt.isSphinxAlabasterLikeTheme()?(a="div.sphinxsidebar > div.sphinxsidebarwrapper",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),c=!0)):lt.isMaterialMkDocsTheme()?(a=".md-sidebar--primary:not([hidden]) > .md-sidebar__scrollwrap, .md-sidebar--post > .md-sidebar__scrollwrap",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),c=!0)):lt.isDocusaurusTheme()?(a=".menu.thin-scrollbar.menu_SIkG",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.classList.add("ethical-docusaurus"),e.setAttribute("data-ea-type","image"),c=!0)):lt.isDocsify()?(a="main > aside > div.sidebar-nav",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.classList.add("ethical-docsify"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),c=!0)):lt.isAntora()?(a="aside nav.nav-menu",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),c=!0)):lt.isMdBook()?(a="nav#sidebar mdbook-sidebar-scrollbox",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),c=!0)):lt.isVitePress()&&(a="aside",s=document.querySelector(a),this.elementAboveTheFold(s)&&(e.classList.add("ethical-alabaster"),e.setAttribute("data-ea-type","readthedocs-sidebar"),e.setAttribute("data-ea-style","image"),c=!0)),a&&c){var l=document.querySelector(a);l&&l.append(e)}else{e.setAttribute("data-ea-type","text");var u=lt.getRootSelector(),d=document.querySelector(u);d?d.append(e):console.debug("Could not find root element to append ad")}}var f=this.config.addons.ethicalads,h=he().get(f,"keywords",[]),p=he().get(f,"campaign_types",[]);if(null!==e){e.setAttribute("data-ea-manual","true"),e.setAttribute("data-ea-publisher",f.publisher),h.length&&e.setAttribute("data-ea-keywords",h.join("|")),p.length&&e.setAttribute("data-ea-campaign-types",p.join("|"));var m=e.getAttribute("data-ea-style")||"nostyle",g=e.getAttribute("data-ea-type")||"notype",y="".concat(g,"-").concat(m);if(e.getAttribute("id")||e.setAttribute("id","readthedocs-ea-".concat(y,"-").concat(n)),lt.documentationThemeMode===xe&&e.classList.add("dark"),"fixedfooter"==m){var A=new MutationObserver((function(e,n){var r,o=Fs(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if("attributes"===i.type){var a=window.getComputedStyle(i.target).height;console.debug("fixedFooterAdHeight",a);var s,c=Fs(t);try{for(c.s();!(s=c.n()).done;){var l=s.value;document.querySelector(l).style.setProperty("padding-bottom",a)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){o.e(e)}finally{o.f()}}));A.observe(e,{attributes:!0,childList:!1,subtree:!1})}}return e}},{key:"elementAboveTheFold",value:function(e){if(!e)return!1;var t=document.createElement("div");e.append(t);var n=t.offsetTop;return t.remove(),!(!n||n-window.scrollY+300>window.innerHeight)}},{key:"setFixedFooterAdProperties",value:function(e,t){t.setAttribute("data-ea-type","text"),t.setAttribute("data-ea-style","fixedfooter")}},{key:"addEaPlacementToElement",value:function(e){he().get(this.config,"addons.flyout.enabled",!1)&&e.setAttribute("data-ea-placement-bottom","90px")}},{key:"loadEthicalAdLibrary",value:function(){var e,t=document.createElement("script");t.setAttribute("id",tc),t.setAttribute("type","text/javascript"),t.setAttribute("async",!0),e="docs.readthedocs.io"===window.location.hostname||window.location.hostname.endsWith(".devthedocs.org")?"https://media.ethicalads.io/media/client/beta/ethicalads.min.js":"https://media.ethicalads.io/media/client/ethicalads.min.js",t.setAttribute("src",e),document.head.appendChild(t),document.getElementById(tc).addEventListener("load",(function(){"undefined"!=typeof ethicalads&ðicalads.load()}))}},{key:"addWidthListener",value:function(){var e=document.querySelector("#readthedocs-ea");e&&"stickybox"===e.dataset.eaStyle&&window.addEventListener("resize",(function(){window.innerWidth<=1300?e.style.display="none":e.style.display=""}))}},{key:"injectEthicalAds",value:function(){this.createAdPlacement(),this.addWidthListener(),this.loadEthicalAdLibrary()}}],[{key:"isEnabled",value:function(e,n){return!1===he().get(e,"addons.ethicalads.ad_free",!1)&&function(e,t,n,r){var o=Hs(Zs(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof o?function(e){return o.apply(n,e)}:o}(t,"isEnabled",this,2)([e,n])}}])}(nt);Js(nc,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.ethicalads.json"),Js(nc,"addonEnabledPath","addons.ethicalads.enabled"),Js(nc,"addonName","EthicalAds");const rc={alt:"Alt",cmd:"Cmd",ctrl:"Ctrl",shift:"Shift",joinWith:" + ",hideKey:"never"};let oc=rc;function ic(e){return{character:-1!==[16,17,18,91,93,224].indexOf(e.keyCode)?null:e.code.replace({alphanumeric:/^Key([A-Z01-9])$/,alpha:/^Key([A-Z])$/,always:/^Key(.*)$/,never:/^(.*)$/}[oc.hideKey],"$1"),modifiers:{cmd:e.metaKey,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey}}}const ac=e=>function(e){const t=ic(e),n=Object.entries(t.modifiers).reduce(((e,[t,n])=>(n&&e.push(oc[t]),e)),[]);return t.character&&n.push(t.character),n}(e).join(oc.joinWith);function sc(e){return sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sc(e)}function cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lc(e,t){for(var n=0;ne.concat(t,t+"-"+Cc[0],t+"-"+Cc[1])),[]),Lc=Math.min,jc=Math.max,xc=Math.round,Sc=(Math.floor,e=>({x:e,y:e})),Nc={left:"right",right:"left",bottom:"top",top:"bottom"},kc={start:"end",end:"start"};function Tc(e,t,n){return jc(e,Lc(t,n))}function Dc(e,t){return"function"==typeof e?e(t):e}function _c(e){return e.split("-")[0]}function Ic(e){return e.split("-")[1]}function Oc(e){return"x"===e?"y":"x"}function zc(e){return"y"===e?"height":"width"}const Bc=new Set(["top","bottom"]);function $c(e){return Bc.has(_c(e))?"y":"x"}function Pc(e){return Oc($c(e))}function Rc(e){return e.replace(/start|end/g,(e=>kc[e]))}function Uc(e){return e.replace(/left|right|bottom|top/g,(e=>Nc[e]))}function Yc(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Qc(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fc(e,t,n){let{reference:r,floating:o}=e;const i=$c(t),a=Pc(t),s=zc(a),c=_c(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Ic(t)){case"start":h[a]-=f*(n&&l?-1:1);break;case"end":h[a]+=f*(n&&l?-1:1)}return h}async function qc(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Dc(t,e),p=Yc(h),m=s[f?"floating"===d?"reference":"floating":d],g=Qc(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,A=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(A))&&await(null==i.getScale?void 0:i.getScale(A))||{x:1,y:1},b=Qc(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:A,strategy:c}):y);return{top:(g.top-b.top+p.top)/v.y,bottom:(b.bottom-g.bottom+p.bottom)/v.y,left:(g.left-b.left+p.left)/v.x,right:(b.right-g.right+p.right)/v.x}}const Wc=new Set(["left","top"]);function Vc(){return"undefined"!=typeof window}function Gc(e){return Kc(e)?(e.nodeName||"").toLowerCase():"#document"}function Hc(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Zc(e){var t;return null==(t=(Kc(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kc(e){return!!Vc()&&(e instanceof Node||e instanceof Hc(e).Node)}function Jc(e){return!!Vc()&&(e instanceof Element||e instanceof Hc(e).Element)}function Xc(e){return!!Vc()&&(e instanceof HTMLElement||e instanceof Hc(e).HTMLElement)}function el(e){return!(!Vc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Hc(e).ShadowRoot)}const tl=new Set(["inline","contents"]);function nl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!tl.has(o)}const rl=new Set(["table","td","th"]);function ol(e){return rl.has(Gc(e))}const il=[":popover-open",":modal"];function al(e){return il.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const sl=["transform","translate","scale","rotate","perspective"],cl=["transform","translate","scale","rotate","perspective","filter"],ll=["paint","layout","strict","content"];function ul(e){const t=dl(),n=Jc(e)?pl(e):e;return sl.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||cl.some((e=>(n.willChange||"").includes(e)))||ll.some((e=>(n.contain||"").includes(e)))}function dl(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const fl=new Set(["html","body","#document"]);function hl(e){return fl.has(Gc(e))}function pl(e){return Hc(e).getComputedStyle(e)}function ml(e){return Jc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gl(e){if("html"===Gc(e))return e;const t=e.assignedSlot||e.parentNode||el(e)&&e.host||Zc(e);return el(t)?t.host:t}function yl(e){const t=gl(e);return hl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xc(t)&&nl(t)?t:yl(t)}function Al(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=yl(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Hc(o);if(i){const e=vl(a);return t.concat(a,a.visualViewport||[],nl(o)?o:[],e&&n?Al(e):[])}return t.concat(o,Al(o,[],n))}function vl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bl(e){const t=pl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xc(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=xc(n)!==i||xc(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function wl(e){return Jc(e)?e:e.contextElement}function Ml(e){const t=wl(e);if(!Xc(t))return Sc(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bl(t);let a=(i?xc(n.width):n.width)/r,s=(i?xc(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Cl=Sc(0);function El(e){const t=Hc(e);return dl()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Cl}function Ll(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=wl(e);let a=Sc(1);t&&(r?Jc(r)&&(a=Ml(r)):a=Ml(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Hc(e))&&t}(i,n,r)?El(i):Sc(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Hc(i),t=r&&Jc(r)?Hc(r):r;let n=e,o=vl(n);for(;o&&r&&t!==n;){const e=Ml(o),t=o.getBoundingClientRect(),r=pl(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=Hc(o),o=vl(n)}}return Qc({width:u,height:d,x:c,y:l})}function jl(e,t){const n=ml(e).scrollLeft;return t?t.left+n:Ll(Zc(e)).left+n}function xl(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:jl(e,r)),y:r.top+t.scrollTop}}const Sl=new Set(["absolute","fixed"]);function Nl(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Hc(e),r=Zc(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=dl();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Zc(e),n=ml(e),r=e.ownerDocument.body,o=jc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=jc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jl(e);const s=-n.scrollTop;return"rtl"===pl(r).direction&&(a+=jc(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Zc(e));else if(Jc(t))r=function(e,t){const n=Ll(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Xc(e)?Ml(e):Sc(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=El(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Qc(r)}function kl(e,t){const n=gl(e);return!(n===t||!Jc(n)||hl(n))&&("fixed"===pl(n).position||kl(n,t))}function Tl(e,t,n){const r=Xc(t),o=Zc(t),i="fixed"===n,a=Ll(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Sc(0);function l(){c.x=jl(o)}if(r||!r&&!i)if(("body"!==Gc(t)||nl(o))&&(s=ml(t)),r){const e=Ll(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?Sc(0):xl(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function Dl(e){return"static"===pl(e).position}function _l(e,t){if(!Xc(e)||"fixed"===pl(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Zc(e)===n&&(n=n.ownerDocument.body),n}function Il(e,t){const n=Hc(e);if(al(e))return n;if(!Xc(e)){let t=gl(e);for(;t&&!hl(t);){if(Jc(t)&&!Dl(t))return t;t=gl(t)}return n}let r=_l(e,t);for(;r&&ol(r)&&Dl(r);)r=_l(r,t);return r&&hl(r)&&Dl(r)&&!ul(r)?n:r||function(e){let t=gl(e);for(;Xc(t)&&!hl(t);){if(ul(t))return t;if(al(t))return null;t=gl(t)}return null}(e)||n}const Ol={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Zc(r),s=!!t&&al(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Sc(1);const u=Sc(0),d=Xc(r);if((d||!d&&!i)&&(("body"!==Gc(r)||nl(a))&&(c=ml(r)),Xc(r))){const e=Ll(r);l=Ml(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?Sc(0):xl(a,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:Zc,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?al(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Al(e,[],!1).filter((e=>Jc(e)&&"body"!==Gc(e))),o=null;const i="fixed"===pl(e).position;let a=i?gl(e):e;for(;Jc(a)&&!hl(a);){const t=pl(a),n=ul(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Sl.has(o.position)||nl(a)&&!n&&kl(e,a))?r=r.filter((e=>e!==a)):o=t,a=gl(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Nl(t,n,o);return e.top=jc(r.top,e.top),e.right=Lc(r.right,e.right),e.bottom=Lc(r.bottom,e.bottom),e.left=jc(r.left,e.left),e}),Nl(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Il,getElementRects:async function(e){const t=this.getOffsetParent||Il,n=this.getDimensions,r=await n(e.floating);return{reference:Tl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=bl(e);return{width:t,height:n}},getScale:Ml,isElement:Jc,isRTL:function(e){return"rtl"===pl(e).direction}};const zl=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=_c(n),s=Ic(n),c="y"===$c(n),l=Wc.has(a)?-1:1,u=i&&c?-1:1,d=Dc(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),c?{x:h*u,y:f*l}:{x:f*l,y:h*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Bl=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:a,placement:s,platform:c,elements:l}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:f=Ec,autoAlignment:h=!0,...p}=Dc(e,t),m=void 0!==d||f===Ec?function(e,t,n){return(e?[...n.filter((t=>Ic(t)===e)),...n.filter((t=>Ic(t)!==e))]:n.filter((e=>_c(e)===e))).filter((n=>!e||Ic(n)===e||!!t&&Rc(n)!==n))}(d||null,h,f):f,g=await qc(t,p),y=(null==(n=a.autoPlacement)?void 0:n.index)||0,A=m[y];if(null==A)return{};const v=function(e,t,n){void 0===n&&(n=!1);const r=Ic(e),o=Pc(e),i=zc(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Uc(a)),[a,Uc(a)]}(A,i,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==A)return{reset:{placement:m[0]}};const b=[g[_c(A)],g[v[0]],g[v[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:A,overflows:b}],M=m[y+1];if(M)return{data:{index:y+1,overflows:w},reset:{placement:M}};const C=w.map((e=>{const t=Ic(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),E=C.filter((e=>e[2].slice(0,Ic(e[0])?2:3).every((e=>e<=0)))),L=(null==(o=E[0])?void 0:o[0])||C[0][0];return L!==s?{data:{index:y+1,overflows:w},reset:{placement:L}}:{}}}},$l=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Dc(e,t),l={x:n,y:r},u=await qc(t,c),d=$c(_c(o)),f=Oc(d);let h=l[f],p=l[d];if(i){const e="y"===f?"bottom":"right";h=Tc(h+u["y"===f?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";p=Tc(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},Pl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Dc(e,t)||{};if(null==l)return{};const d=Yc(u),f={x:n,y:r},h=Pc(o),p=zc(h),m=await a.getDimensions(l),g="y"===h,y=g?"top":"left",A=g?"bottom":"right",v=g?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[h]-f[h]-i.floating[p],w=f[h]-i.reference[h],M=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let C=M?M[v]:0;C&&await(null==a.isElement?void 0:a.isElement(M))||(C=s.floating[v]||i.floating[p]);const E=b/2-w/2,L=C/2-m[p]/2-1,j=Lc(d[y],L),x=Lc(d[A],L),S=j,N=C-m[p]-x,k=C/2-m[p]/2+E,T=Tc(S,k,N),D=!c.arrow&&null!=Ic(o)&&k!==T&&i.reference[p]/2-(k{const r=new Map,o={platform:Ol,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fc(l,r,c),f=r,h={},p=0;for(let n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n
    '),t.insertAdjacentHTML("afterbegin",'
    Loading...
    '),t.setAttribute(nu,i.href),t.classList.add("tooltip"),document.body.insertAdjacentElement("beforeend",t),t.addEventListener("mouseenter",c),t.addEventListener("mouseleave",u),o=t,t}}var iu=function(e){function t(){var e;return Fl(this,t),eu(e=Vl(this,t),"_handleRootDOMChanged",(function(t){e.config&&e.setupTooltips()})),document.adoptedStyleSheets.push(Mc.A),e.config=null,e}return Jl(t,e),Wl(t,[{key:"setupTooltips",value:function(){var e=lt.getDocumentationTool(),t=this.config.addons.options.root_selector||lt.getRootSelector(),n=this.config.addons.linkpreviews.selector||lt.getLinkSelector();console.debug("".concat(au.addonName,": Using '").concat(n,"' as CSS selector."));var r,o=Yl(document.querySelectorAll(n));try{for(o.s();!(r=o.n()).done;){var i=r.value;try{var a=new URL(i.href),s=a.hostname,c=window.location.pathname.replace("/index.html","")==a.pathname.replace("/index.html","");s!==window.location.hostname||c||(i.classList.add("link-preview"),ou(i,e,null,t))}catch(e){console.debug("Skipping link preview on element due to invalid URL: ".concat(i))}}}catch(e){o.e(e)}finally{o.f()}}},{key:"render",value:function(){return W}},{key:"loadConfig",value:function(e){au.isEnabled(e)&&(this.config=e,this.setupTooltips())}},{key:"connectedCallback",value:function(){Hl(t,"connectedCallback",this,3)([]),document.addEventListener(Ue,this._handleRootDOMChanged)}},{key:"disconnectedCallback",value:function(){document.removeEventListener(Ue,this._handleRootDOMChanged),Hl(t,"disconnectedCallback",this,3)([])}}])}(ce);eu(iu,"elementName","readthedocs-linkpreviews"),eu(iu,"properties",{config:{state:!0}});var au=function(e){function t(){return Fl(this,t),Vl(this,t,arguments)}return Jl(t,e),Wl(t)}(nt);eu(au,"jsonValidationURI","http://v1.schemas.readthedocs.org/addons.linkpreviews.json"),eu(au,"addonEnabledPath","addons.linkpreviews.enabled"),eu(au,"addonName","LinkPreviews"),eu(au,"elementClass",iu),customElements.define(iu.elementName,iu);var su,cu,lu,uu,du,fu=n(9358);function hu(e){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(e)}function pu(e){return function(e){if(Array.isArray(e))return yu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=gu(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function gu(e,t){if(e){if("string"==typeof e)return yu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yu(e,t):void 0}}function yu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n'," of\n ","\n "," \n "," \n "])),this.chunks.length?this.chunkIndex:0,this.chunks.length||0,this.previousChunk,this.iconArrowUp.node[0],this.nextChunk,this.iconArrowDown.node[0]):W}},{key:"renderDocDiff",value:function(){return he().get(this.config,"addons.doc_diff.enabled",!1)?F(cu||(cu=Au(['\n