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iI,EAAqBS,KAAK,KAAM,IAC3DF,EAAmBxF,KAAOiF,EAAqBS,KAAK,KAAMF,EAAmBxF,KAAK0F,KAAKF,G,KC7CvF,IAAIG,EAAsBtD,EAAoBQ,OAAEvB,EAAW,CAAC,MAAM,IAAOe,EAAoB,OAC7FsD,EAAsBtD,EAAoBQ,EAAE8C,E","sources":["webpack://sphinx-wagtail-theme/webpack/runtime/chunk loaded","webpack://sphinx-wagtail-theme/./js/theme.js","webpack://sphinx-wagtail-theme/webpack/bootstrap","webpack://sphinx-wagtail-theme/webpack/runtime/compat get default export","webpack://sphinx-wagtail-theme/webpack/runtime/define property getters","webpack://sphinx-wagtail-theme/webpack/runtime/global","webpack://sphinx-wagtail-theme/webpack/runtime/hasOwnProperty shorthand","webpack://sphinx-wagtail-theme/webpack/runtime/make namespace object","webpack://sphinx-wagtail-theme/webpack/runtime/jsonp chunk loading","webpack://sphinx-wagtail-theme/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// T3Docs\nimport '../sass/theme.scss';\nimport autocomplete from 'autocompleter';\nimport 'bootstrap';\n\n// Ensure our own namespace\nif (typeof window.T3Docs === 'undefined') {\n window.T3Docs = {};\n}\n\n/**\n * Inject collapsible menu\n */\nfunction makeMenuExpandable() {\n function toggleCurrent(event) {\n const expandButton = event.currentTarget;\n const element = expandButton.parentElement;\n const siblings =\n element.parentElement.parentElement.querySelectorAll('li.current');\n\n siblings.forEach((sibling) => {\n if (sibling !== element) {\n sibling.classList.remove('current');\n }\n });\n\n element.classList.toggle('current');\n }\n\n const toc = document.querySelector('.toc');\n const links = Array.from(toc.getElementsByTagName('a'));\n const template = document.querySelector('[data-toggle-item-template]');\n const templateChild = template.content.firstElementChild;\n\n links.forEach((link) => {\n if (link.nextSibling) {\n const expandButton = templateChild.cloneNode(true);\n expandButton.addEventListener('click', toggleCurrent, true);\n link.before(expandButton);\n }\n });\n}\n\nmakeMenuExpandable();\n\n// Wrap tables to make them responsive\nfunction makeTablesResponsive() {\n var tables = document.querySelectorAll('.rst-content table.docutils');\n for (var i = 0; i < tables.length; i++) {\n const wrapper = document.createElement('div');\n wrapper.classList.add('table-responsive');\n tables[i].parentNode.insertBefore(wrapper, tables[i]);\n wrapper.appendChild(tables[i]);\n }\n}\n\nmakeTablesResponsive();\n\ndocument.addEventListener('DOMContentLoaded', () => {\n // Wire up light/dark mode button.\n document\n .getElementById('wagtail-theme')\n .addEventListener('click', (event) => {\n document.dispatchEvent(new CustomEvent('theme:toggle-theme-mode', event));\n });\n\n // Search.\n var searchform = document.getElementById('search-form');\n var searchinput = document.getElementById('searchinput');\n if (searchform && searchinput) {\n autocomplete({\n input: searchinput,\n fetch: (text, update) => {\n // Populate autocomplete suggestions from the Sphinx `Search` object.\n if (typeof window.T3Docs.autocomplete === 'undefined') {\n window.T3Docs.autocomplete = [];\n // Add page titles first.\n Object.keys(Search._index.titles).forEach((item) => {\n window.T3Docs.autocomplete.push({\n label: Search._index.titles[item],\n docname: Search._index.docnames[item],\n group: 'Pages',\n });\n });\n // Add autodoc/code terms second.\n Object.keys(Search._index.objects).forEach((item) => {\n Object.keys(Search._index.objects[item]).forEach((subitem) => {\n window.T3Docs.autocomplete.push({\n label: `${item}.${subitem}`,\n group: 'Code reference',\n });\n });\n });\n }\n var suggestions = window.T3Docs.autocomplete.filter((entry) =>\n entry.label.toLowerCase().includes(text.toLowerCase()),\n );\n update(suggestions);\n },\n minLength: 3,\n render: (item) => {\n var div = document.createElement('div');\n div.textContent = item.label;\n return div;\n },\n customize: (input, inputRect, container) => {\n // Do not force same width as input box - allow it to go wider.\n // eslint-disable-next-line no-param-reassign\n container.style.minWidth = inputRect.width + 'px';\n // eslint-disable-next-line no-param-reassign\n container.style.width = 'auto';\n },\n onSelect: (item) => {\n // If they selected a page, disable search form and go straight to it.\n if (item.docname !== undefined) {\n searchform.onsubmit = function onsubmit() {\n return false;\n };\n // Figure out the URL from the docname.\n // Mostly taken from Sphinx's searchtools.js\n var linkUrl;\n if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {\n var dirname = item.docname + '/';\n if (dirname.match(/\\/index\\/$/)) {\n dirname = dirname.substring(0, dirname.length - 6);\n } else if (dirname === 'index/') {\n dirname = '';\n }\n linkUrl = DOCUMENTATION_OPTIONS.URL_ROOT + dirname;\n } else {\n // normal html builders\n linkUrl =\n DOCUMENTATION_OPTIONS.URL_ROOT +\n item.docname +\n DOCUMENTATION_OPTIONS.FILE_SUFFIX;\n }\n // Go to the URL.\n window.location.href = linkUrl;\n }\n // Otherwise submit the query.\n else {\n searchinput.value = item.label;\n searchform.submit();\n }\n },\n });\n }\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t505: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunksphinx_wagtail_theme\"] = self[\"webpackChunksphinx_wagtail_theme\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [736], () => (__webpack_require__(144)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","window","T3Docs","toggleCurrent","event","element","currentTarget","parentElement","querySelectorAll","forEach","sibling","classList","remove","toggle","toc","document","querySelector","links","Array","from","getElementsByTagName","templateChild","content","firstElementChild","link","nextSibling","expandButton","cloneNode","addEventListener","before","makeMenuExpandable","tables","i","length","wrapper","createElement","add","parentNode","insertBefore","appendChild","makeTablesResponsive","getElementById","dispatchEvent","CustomEvent","searchform","searchinput","autocomplete","input","fetch","text","update","Object","keys","Search","_index","titles","item","push","label","docname","docnames","group","objects","subitem","filter","entry","toLowerCase","includes","minLength","render","div","textContent","customize","inputRect","container","style","minWidth","width","onSelect","undefined","linkUrl","onsubmit","DOCUMENTATION_OPTIONS","BUILDER","dirname","match","substring","URL_ROOT","FILE_SUFFIX","location","href","value","submit","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","this","Function","e","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","bind","__webpack_exports__"],"sourceRoot":""}